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

Unified Diff: ui/native_theme/native_theme.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: ui/native_theme/native_theme.h
diff --git a/ui/native_theme/native_theme.h b/ui/native_theme/native_theme.h
index 664aa50e4ee938f6bd30422bae9cf4a66220b6de..4821ae18e3026da9381b55b21f3dabf05b63e79b 100644
--- a/ui/native_theme/native_theme.h
+++ b/ui/native_theme/native_theme.h
@@ -175,6 +175,12 @@ class NATIVE_THEME_EXPORT NativeTheme {
bool is_hovering;
};
+ enum ScrollbarOverlayColorTheme {
+ ScrollbarOverlayColorThemeDefault,
+ ScrollbarOverlayColorThemeDark,
+ ScrollbarOverlayColorThemeLight
+ };
+
struct SliderExtraParams {
bool vertical;
bool in_drag;
@@ -211,6 +217,7 @@ class NATIVE_THEME_EXPORT NativeTheme {
ScrollbarArrowExtraParams scrollbar_arrow;
ScrollbarTrackExtraParams scrollbar_track;
ScrollbarThumbExtraParams scrollbar_thumb;
+ ScrollbarOverlayColorTheme scrollbar_theme;
bokan 2016/10/21 16:57:14 This doesn't belong here, this is a union (if you'
SliderExtraParams slider;
TextFieldExtraParams text_field;
TrackbarExtraParams trackbar;
@@ -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