Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1092)

Unified Diff: third_party/WebKit/public/platform/WebThemeEngine.h

Issue 2426793002: Aura overlay scrollbars adjust color for dark backgrounds (Closed)
Patch Set: rename to ScrollbarOverlayColorTheme Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/public/platform/WebThemeEngine.h
diff --git a/third_party/WebKit/public/platform/WebThemeEngine.h b/third_party/WebKit/public/platform/WebThemeEngine.h
index 55f74b52a08b8399025b4d2a84d24d96e4f84222..9f20c1267e18c8f86a55cfc39f849f191c0d23b0 100644
--- a/third_party/WebKit/public/platform/WebThemeEngine.h
+++ b/third_party/WebKit/public/platform/WebThemeEngine.h
@@ -137,6 +137,13 @@ class WebThemeEngine {
int valueRectHeight;
};
+ // Extra parameters for Scrollbar, now only for overlay-scrollbar
+ enum ScrollbarOverlayColorTheme {
bokan 2016/10/21 16:57:14 Create a ScrollbarOverlayColorTheme.h file and put
+ ScrollbarOverlayColorThemeDefault,
+ ScrollbarOverlayColorThemeDark,
+ ScrollbarOverlayColorThemeLight
+ };
+
union ExtraParams {
ScrollbarTrackExtraParams scrollbarTrack;
ButtonExtraParams button;
@@ -145,6 +152,7 @@ class WebThemeEngine {
SliderExtraParams slider;
InnerSpinButtonExtraParams innerSpin;
ProgressBarExtraParams progressBar;
+ ScrollbarOverlayColorTheme scrollbarTheme;
bokan 2016/10/21 16:57:14 Similarly to the NativeTheme::ExtraParams, this is
};
// Gets the size of the given theme part. For variable sized items

Powered by Google App Engine
This is Rietveld 408576698