Add GN arg to disable Alloy bootstrap (see #3681, see #3685)

Set enable_alloy_bootstrap=false to build with Alloy bootstrap code
removed. Extension API is documented as deprecated in comments but
not compiled out with this arg.
This commit is contained in:
Marshall Greenblatt
2024-04-29 21:09:17 -04:00
parent d666ec5770
commit b5d84c254d
96 changed files with 1243 additions and 516 deletions

View File

@@ -29,7 +29,9 @@ class MainContextImpl : public MainContext {
std::string GetAppWorkingDirectory() override;
std::string GetMainURL(CefRefPtr<CefCommandLine> command_line) override;
cef_color_t GetBackgroundColor() override;
#if !defined(DISABLE_ALLOY_BOOTSTRAP)
bool UseChromeBootstrap() override;
#endif
bool UseViewsGlobal() override;
bool UseAlloyStyleGlobal() override;
bool TouchEventsEnabled() override;
@@ -73,7 +75,9 @@ class MainContextImpl : public MainContext {
cef_color_t browser_background_color_ = 0;
bool use_windowless_rendering_;
int windowless_frame_rate_ = 0;
#if !defined(DISABLE_ALLOY_BOOTSTRAP)
bool use_chrome_bootstrap_;
#endif
bool use_views_;
bool use_alloy_style_;