2020-06-25 04:34:12 +02:00
|
|
|
// Copyright 2020 The Chromium Embedded Framework Authors. All rights
|
|
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
|
|
// can be found in the LICENSE file.
|
|
|
|
|
2020-06-28 20:29:44 +02:00
|
|
|
#ifndef CEF_LIBCEF_FEATURES_RUNTIME_H_
|
|
|
|
#define CEF_LIBCEF_FEATURES_RUNTIME_H_
|
2020-06-25 04:34:12 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "cef/libcef/features/features.h"
|
|
|
|
|
|
|
|
namespace cef {
|
|
|
|
|
|
|
|
#if BUILDFLAG(ENABLE_CEF)
|
|
|
|
|
|
|
|
inline bool IsCefBuildEnabled() {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2024-04-30 03:09:17 +02:00
|
|
|
#if BUILDFLAG(ENABLE_ALLOY_BOOTSTRAP)
|
2020-06-28 20:29:44 +02:00
|
|
|
// True if CEF was initialized with the Alloy runtime.
|
|
|
|
bool IsAlloyRuntimeEnabled();
|
2024-04-30 03:09:17 +02:00
|
|
|
#endif
|
2020-06-25 04:34:12 +02:00
|
|
|
|
|
|
|
// True if CEF was initialized with the Chrome runtime.
|
|
|
|
bool IsChromeRuntimeEnabled();
|
|
|
|
|
2020-07-06 20:14:57 +02:00
|
|
|
// True if CEF crash reporting is enabled.
|
|
|
|
bool IsCrashReportingEnabled();
|
|
|
|
|
2024-04-30 03:09:17 +02:00
|
|
|
#else // !BUILDFLAG(ENABLE_CEF)
|
2020-06-25 04:34:12 +02:00
|
|
|
|
|
|
|
inline bool IsCefBuildEnabled() {
|
|
|
|
return false;
|
|
|
|
}
|
2024-04-30 03:09:17 +02:00
|
|
|
#if BUILDFLAG(ENABLE_ALLOY_BOOTSTRAP)
|
2020-06-28 20:29:44 +02:00
|
|
|
inline bool IsAlloyRuntimeEnabled() {
|
2020-06-25 04:34:12 +02:00
|
|
|
return false;
|
|
|
|
}
|
2024-04-30 03:09:17 +02:00
|
|
|
#endif
|
2020-06-25 04:34:12 +02:00
|
|
|
inline bool IsChromeRuntimeEnabled() {
|
|
|
|
return false;
|
|
|
|
}
|
2020-07-06 20:14:57 +02:00
|
|
|
inline bool IsCrashReportingEnabled() {
|
|
|
|
return false;
|
|
|
|
}
|
2020-06-25 04:34:12 +02:00
|
|
|
|
2024-04-30 03:09:17 +02:00
|
|
|
#endif // !BUILDFLAG(ENABLE_CEF)
|
2020-06-25 04:34:12 +02:00
|
|
|
|
|
|
|
} // namespace cef
|
|
|
|
|
2020-06-28 20:29:44 +02:00
|
|
|
#endif // CEF_LIBCEF_FEATURES_RUNTIME_H_
|