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

Unified Diff: ui/native_theme/native_theme.h

Issue 2426793002: Aura overlay scrollbars adjust color for dark backgrounds (Closed)
Patch Set: fix test 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
« no previous file with comments | « third_party/WebKit/public/platform/WebThemeEngine.h ('k') | ui/native_theme/native_theme_aura.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..5ed382a0a38df7e1e0dd8ec2927189aa2e0e9a7e 100644
--- a/ui/native_theme/native_theme.h
+++ b/ui/native_theme/native_theme.h
@@ -171,8 +171,14 @@ class NATIVE_THEME_EXPORT NativeTheme {
int classic_state; // Used on Windows when uxtheme is not available.
};
+ enum ScrollbarOverlayColorTheme {
+ ScrollbarOverlayColorThemeDark,
+ ScrollbarOverlayColorThemeLight
+ };
+
struct ScrollbarThumbExtraParams {
bool is_hovering;
+ ScrollbarOverlayColorTheme scrollbar_theme;
};
struct SliderExtraParams {
@@ -235,7 +241,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,
« no previous file with comments | « third_party/WebKit/public/platform/WebThemeEngine.h ('k') | ui/native_theme/native_theme_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698