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

Unified Diff: ui/native_theme/native_theme.h

Issue 2426793002: Aura overlay scrollbars adjust color for dark backgrounds (Closed)
Patch Set: fix 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: ui/native_theme/native_theme.h
diff --git a/ui/native_theme/native_theme.h b/ui/native_theme/native_theme.h
index 664aa50e4ee938f6bd30422bae9cf4a66220b6de..abd8cc5386d40b40027abf8e3b9c4805e2fc504b 100644
--- a/ui/native_theme/native_theme.h
+++ b/ui/native_theme/native_theme.h
@@ -171,8 +171,15 @@ class NATIVE_THEME_EXPORT NativeTheme {
int classic_state; // Used on Windows when uxtheme is not available.
};
+ enum ScrollbarOverlayColorTheme {
+ ScrollbarOverlayColorThemeDefault,
+ ScrollbarOverlayColorThemeDark,
+ ScrollbarOverlayColorThemeLight
+ };
+
struct ScrollbarThumbExtraParams {
bool is_hovering;
+ ScrollbarOverlayColorTheme scrollbar_theme;
};
struct SliderExtraParams {
@@ -235,7 +242,8 @@ class NATIVE_THEME_EXPORT NativeTheme {
State startState,
State endState,
double progress,
- const gfx::Rect& rect) const { }
+ const gfx::Rect& rect,
+ ScrollbarOverlayColorTheme theme) const {}
// Supports theme specific colors.
void SetScrollbarColors(unsigned inactive_color,

Powered by Google App Engine
This is Rietveld 408576698