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

Side by Side Diff: ui/native_theme/native_theme.h

Issue 2426793002: Aura overlay scrollbars adjust color for dark backgrounds (Closed)
Patch Set: remove deadcode(WebThemeEngineImpl::paintStateTransition), remove ScrollbarOverlayColorThemeDefault Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_NATIVE_THEME_NATIVE_THEME_H_ 5 #ifndef UI_NATIVE_THEME_NATIVE_THEME_H_
6 #define UI_NATIVE_THEME_NATIVE_THEME_H_ 6 #define UI_NATIVE_THEME_NATIVE_THEME_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/observer_list.h" 9 #include "base/observer_list.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 164
165 struct ScrollbarTrackExtraParams { 165 struct ScrollbarTrackExtraParams {
166 bool is_upper; 166 bool is_upper;
167 int track_x; 167 int track_x;
168 int track_y; 168 int track_y;
169 int track_width; 169 int track_width;
170 int track_height; 170 int track_height;
171 int classic_state; // Used on Windows when uxtheme is not available. 171 int classic_state; // Used on Windows when uxtheme is not available.
172 }; 172 };
173 173
174 enum ScrollbarOverlayColorTheme {
175 ScrollbarOverlayColorThemeDark,
176 ScrollbarOverlayColorThemeLight
177 };
178
174 struct ScrollbarThumbExtraParams { 179 struct ScrollbarThumbExtraParams {
175 bool is_hovering; 180 bool is_hovering;
181 ScrollbarOverlayColorTheme scrollbar_theme;
176 }; 182 };
177 183
178 struct SliderExtraParams { 184 struct SliderExtraParams {
179 bool vertical; 185 bool vertical;
180 bool in_drag; 186 bool in_drag;
181 }; 187 };
182 188
183 struct TextFieldExtraParams { 189 struct TextFieldExtraParams {
184 bool is_text_area; 190 bool is_text_area;
185 bool is_listbox; 191 bool is_listbox;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 const gfx::Rect& rect, 234 const gfx::Rect& rect,
229 const ExtraParams& extra) const = 0; 235 const ExtraParams& extra) const = 0;
230 236
231 // Paint part during state transition, used for overlay scrollbar state 237 // Paint part during state transition, used for overlay scrollbar state
232 // transition animation. 238 // transition animation.
233 virtual void PaintStateTransition(SkCanvas* canvas, 239 virtual void PaintStateTransition(SkCanvas* canvas,
234 Part part, 240 Part part,
235 State startState, 241 State startState,
236 State endState, 242 State endState,
237 double progress, 243 double progress,
238 const gfx::Rect& rect) const { } 244 const gfx::Rect& rect,
245 ScrollbarOverlayColorTheme theme) const {}
239 246
240 // Supports theme specific colors. 247 // Supports theme specific colors.
241 void SetScrollbarColors(unsigned inactive_color, 248 void SetScrollbarColors(unsigned inactive_color,
242 unsigned active_color, 249 unsigned active_color,
243 unsigned track_color); 250 unsigned track_color);
244 251
245 // Colors for GetSystemColor(). 252 // Colors for GetSystemColor().
246 enum ColorId { 253 enum ColorId {
247 // Windows 254 // Windows
248 kColorId_WindowBackground, 255 kColorId_WindowBackground,
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 private: 381 private:
375 // Observers to notify when the native theme changes. 382 // Observers to notify when the native theme changes.
376 base::ObserverList<NativeThemeObserver> native_theme_observers_; 383 base::ObserverList<NativeThemeObserver> native_theme_observers_;
377 384
378 DISALLOW_COPY_AND_ASSIGN(NativeTheme); 385 DISALLOW_COPY_AND_ASSIGN(NativeTheme);
379 }; 386 };
380 387
381 } // namespace ui 388 } // namespace ui
382 389
383 #endif // UI_NATIVE_THEME_NATIVE_THEME_H_ 390 #endif // UI_NATIVE_THEME_NATIVE_THEME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698