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;
|
|
|
|
}
|
|
|
|
|
2020-06-28 20:29:44 +02:00
|
|
|
// True if CEF was initialized with the Alloy runtime.
|
|
|
|
bool IsAlloyRuntimeEnabled();
|
2020-06-25 04:34:12 +02:00
|
|
|
|
|
|
|
// True if CEF was initialized with the Chrome runtime.
|
|
|
|
bool IsChromeRuntimeEnabled();
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
inline bool IsCefBuildEnabled() {
|
|
|
|
return false;
|
|
|
|
}
|
2020-06-28 20:29:44 +02:00
|
|
|
inline bool IsAlloyRuntimeEnabled() {
|
2020-06-25 04:34:12 +02:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
inline bool IsChromeRuntimeEnabled() {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
} // namespace cef
|
|
|
|
|
2020-06-28 20:29:44 +02:00
|
|
|
#endif // CEF_LIBCEF_FEATURES_RUNTIME_H_
|