1 // Copyright 2020 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 #ifndef CEF_LIBCEF_FEATURES_RUNTIME_H_ 6 #define CEF_LIBCEF_FEATURES_RUNTIME_H_ 7 #pragma once 8 9 #include "cef/libcef/features/features.h" 10 11 namespace cef { 12 13 #if BUILDFLAG(ENABLE_CEF) 14 IsCefBuildEnabled()15inline bool IsCefBuildEnabled() { 16 return true; 17 } 18 19 // True if CEF was initialized with the Alloy runtime. 20 bool IsAlloyRuntimeEnabled(); 21 22 // True if CEF was initialized with the Chrome runtime. 23 bool IsChromeRuntimeEnabled(); 24 25 // True if CEF crash reporting is enabled. 26 bool IsCrashReportingEnabled(); 27 28 #else 29 30 inline bool IsCefBuildEnabled() { 31 return false; 32 } 33 inline bool IsAlloyRuntimeEnabled() { 34 return false; 35 } 36 inline bool IsChromeRuntimeEnabled() { 37 return false; 38 } 39 inline bool IsCrashReportingEnabled() { 40 return false; 41 } 42 43 #endif 44 45 } // namespace cef 46 47 #endif // CEF_LIBCEF_FEATURES_RUNTIME_H_ 48