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

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

Issue 2763373002: Overlay scrollbars flush with window edge (Closed)
Patch Set: Created 3 years, 9 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 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 }; 195 };
196 196
197 enum ScrollbarOverlayColorTheme { 197 enum ScrollbarOverlayColorTheme {
198 ScrollbarOverlayColorThemeDark, 198 ScrollbarOverlayColorThemeDark,
199 ScrollbarOverlayColorThemeLight 199 ScrollbarOverlayColorThemeLight
200 }; 200 };
201 201
202 struct ScrollbarThumbExtraParams { 202 struct ScrollbarThumbExtraParams {
203 bool is_hovering; 203 bool is_hovering;
204 ScrollbarOverlayColorTheme scrollbar_theme; 204 ScrollbarOverlayColorTheme scrollbar_theme;
205 bool isVerticalScrollbar;
bokan 2017/03/22 20:07:25 You shouldn't need to pass this param from Blink,
206 bool isLeftVerticalScrollbar;
207 bool hitStart;
bokan 2017/03/22 20:07:25 We should avoid repainting. A simpler solution wou
208 bool hitEnd;
205 }; 209 };
206 210
207 struct SliderExtraParams { 211 struct SliderExtraParams {
208 bool vertical; 212 bool vertical;
209 bool in_drag; 213 bool in_drag;
210 }; 214 };
211 215
212 struct TextFieldExtraParams { 216 struct TextFieldExtraParams {
213 bool is_text_area; 217 bool is_text_area;
214 bool is_listbox; 218 bool is_listbox;
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 private: 435 private:
432 // Observers to notify when the native theme changes. 436 // Observers to notify when the native theme changes.
433 base::ObserverList<NativeThemeObserver> native_theme_observers_; 437 base::ObserverList<NativeThemeObserver> native_theme_observers_;
434 438
435 DISALLOW_COPY_AND_ASSIGN(NativeTheme); 439 DISALLOW_COPY_AND_ASSIGN(NativeTheme);
436 }; 440 };
437 441
438 } // namespace ui 442 } // namespace ui
439 443
440 #endif // UI_NATIVE_THEME_NATIVE_THEME_H_ 444 #endif // UI_NATIVE_THEME_NATIVE_THEME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698