mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2024-12-13 01:56:20 +01:00
03c9156c80
This change moves shared resource initialization to a common location and disables crash reporting initialization in chrome/ code via patch files. When using the Chrome runtime on macOS the Chrome application window will display, but web content is currently blank and the application does not exit cleanly. This will need to be debugged further in the future.
48 lines
968 B
C++
48 lines
968 B
C++
// 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.
|
|
|
|
#ifndef CEF_LIBCEF_FEATURES_RUNTIME_H_
|
|
#define CEF_LIBCEF_FEATURES_RUNTIME_H_
|
|
#pragma once
|
|
|
|
#include "cef/libcef/features/features.h"
|
|
|
|
namespace cef {
|
|
|
|
#if BUILDFLAG(ENABLE_CEF)
|
|
|
|
inline bool IsCefBuildEnabled() {
|
|
return true;
|
|
}
|
|
|
|
// True if CEF was initialized with the Alloy runtime.
|
|
bool IsAlloyRuntimeEnabled();
|
|
|
|
// True if CEF was initialized with the Chrome runtime.
|
|
bool IsChromeRuntimeEnabled();
|
|
|
|
// True if CEF crash reporting is enabled.
|
|
bool IsCrashReportingEnabled();
|
|
|
|
#else
|
|
|
|
inline bool IsCefBuildEnabled() {
|
|
return false;
|
|
}
|
|
inline bool IsAlloyRuntimeEnabled() {
|
|
return false;
|
|
}
|
|
inline bool IsChromeRuntimeEnabled() {
|
|
return false;
|
|
}
|
|
inline bool IsCrashReportingEnabled() {
|
|
return false;
|
|
}
|
|
|
|
#endif
|
|
|
|
} // namespace cef
|
|
|
|
#endif // CEF_LIBCEF_FEATURES_RUNTIME_H_
|