1 // Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights 2 // reserved. Use of this source code is governed by a BSD-style license that 3 // can be found in the LICENSE file. 4 // 5 6 #include <cstddef> 7 #include "include/cef_api_hash.h" 8 #include "include/cef_version.h" 9 cef_version_info(int entry)10CEF_EXPORT int cef_version_info(int entry) { 11 switch (entry) { 12 case 0: 13 return CEF_VERSION_MAJOR; 14 case 1: 15 return CEF_VERSION_MINOR; 16 case 2: 17 return CEF_VERSION_PATCH; 18 case 3: 19 return CEF_COMMIT_NUMBER; 20 case 4: 21 return CHROME_VERSION_MAJOR; 22 case 5: 23 return CHROME_VERSION_MINOR; 24 case 6: 25 return CHROME_VERSION_BUILD; 26 case 7: 27 return CHROME_VERSION_PATCH; 28 default: 29 return 0; 30 } 31 } 32 cef_api_hash(int entry)33CEF_EXPORT const char* cef_api_hash(int entry) { 34 switch (entry) { 35 case 0: 36 return CEF_API_HASH_PLATFORM; 37 case 1: 38 return CEF_API_HASH_UNIVERSAL; 39 case 2: 40 return CEF_COMMIT_HASH; 41 default: 42 return NULL; 43 } 44 } 45