diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-12 14:27:29 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-13 09:35:20 +0000 |
commit | c30a6232df03e1efbd9f3b226777b07e087a1122 (patch) | |
tree | e992f45784689f373bcc38d1b79a239ebe17ee23 /chromium/ui/base/ui_base_features.h | |
parent | 7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3 (diff) | |
download | qtwebengine-chromium-85-based.tar.gz |
BASELINE: Update Chromium to 85.0.4183.14085-based
Change-Id: Iaa42f4680837c57725b1344f108c0196741f6057
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
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_ |