Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 isLeftVerticalScrollbar; | |
|
Evan Stade
2017/03/28 00:01:56
nit: is_left_vertical_scrollbar
but also, it seem
chaopeng
2017/03/28 02:58:40
Sorry, I don't get this one. Why we need is right
Evan Stade
2017/03/28 03:14:36
I meant that the Part enum should have different v
| |
| 205 }; | 206 }; |
| 206 | 207 |
| 207 struct SliderExtraParams { | 208 struct SliderExtraParams { |
| 208 bool vertical; | 209 bool vertical; |
| 209 bool in_drag; | 210 bool in_drag; |
| 210 }; | 211 }; |
| 211 | 212 |
| 212 struct TextFieldExtraParams { | 213 struct TextFieldExtraParams { |
| 213 bool is_text_area; | 214 bool is_text_area; |
| 214 bool is_listbox; | 215 bool is_listbox; |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 431 private: | 432 private: |
| 432 // Observers to notify when the native theme changes. | 433 // Observers to notify when the native theme changes. |
| 433 base::ObserverList<NativeThemeObserver> native_theme_observers_; | 434 base::ObserverList<NativeThemeObserver> native_theme_observers_; |
| 434 | 435 |
| 435 DISALLOW_COPY_AND_ASSIGN(NativeTheme); | 436 DISALLOW_COPY_AND_ASSIGN(NativeTheme); |
| 436 }; | 437 }; |
| 437 | 438 |
| 438 } // namespace ui | 439 } // namespace ui |
| 439 | 440 |
| 440 #endif // UI_NATIVE_THEME_NATIVE_THEME_H_ | 441 #endif // UI_NATIVE_THEME_NATIVE_THEME_H_ |
| OLD | NEW |