diff options
Diffstat (limited to 'chromium/ui/base/ui_base_features.h')
-rw-r--r-- | chromium/ui/base/ui_base_features.h | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/chromium/ui/base/ui_base_features.h b/chromium/ui/base/ui_base_features.h index 83d7157f8d0..61f75131c9f 100644 --- a/chromium/ui/base/ui_base_features.h +++ b/chromium/ui/base/ui_base_features.h @@ -73,6 +73,11 @@ COMPONENT_EXPORT(UI_BASE_FEATURES) bool IsForcedColorsEnabled(); COMPONENT_EXPORT(UI_BASE_FEATURES) extern const base::Feature kEyeDropper; COMPONENT_EXPORT(UI_BASE_FEATURES) bool IsEyeDropperEnabled(); +// Used to enable form controls and scrollbar dark mode rendering. +COMPONENT_EXPORT(UI_BASE_FEATURES) +extern const base::Feature kCSSColorSchemeUARendering; +COMPONENT_EXPORT(UI_BASE_FEATURES) bool IsCSSColorSchemeUARenderingEnabled(); + // Used to enable the new controls UI. COMPONENT_EXPORT(UI_BASE_FEATURES) extern const base::Feature kFormControlsRefresh; @@ -94,9 +99,6 @@ COMPONENT_EXPORT(UI_BASE_FEATURES) bool IsNewShortcutMappingEnabled(); #endif -COMPONENT_EXPORT(UI_BASE_FEATURES) -extern const base::Feature kWebUIA11yEnhancements; - // Indicates whether DrmOverlayManager should used the synchronous API to // perform pageflip tests. COMPONENT_EXPORT(UI_BASE_FEATURES) @@ -105,6 +107,21 @@ extern const base::Feature kSynchronousPageFlipTesting; COMPONENT_EXPORT(UI_BASE_FEATURES) bool IsSynchronousPageFlipTestingEnabled(); +#if defined(USE_X11) || defined(USE_OZONE) +// Indicates whether the OzonePlatform feature is used on Linux. Although, it is +// available for all Ozone platforms, this always resolves to true for +// non-desktop Linux builds. The reason why it is needed for all Ozone builds is +// that we have many places in the code that Ozone takes independently of the +// platform, and it's highly important that when USE_X11 && USE_OZONE are true +// and the OzonePlatform feature is not enabled, the Ozone path is never taken. +// This will be removed as soon as Ozone/Linux is default and USE_X11 is +// removed. More info at +// https://docs.google.com/document/d/1PvKquOHWySbvbe4bgduAcpW0Pda4BBhXI7xphtyDtPQ +COMPONENT_EXPORT(UI_BASE_FEATURES) extern const base::Feature kUseOzonePlatform; + +COMPONENT_EXPORT(UI_BASE_FEATURES) bool IsUsingOzonePlatform(); +#endif + } // namespace features #endif // UI_BASE_UI_BASE_FEATURES_H_ |