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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 | 125 |
126 struct MenuCheckExtraParams { | 126 struct MenuCheckExtraParams { |
127 bool is_radio; | 127 bool is_radio; |
128 // Used for the disabled state to indicate if the item is both disabled and | 128 // Used for the disabled state to indicate if the item is both disabled and |
129 // selected. | 129 // selected. |
130 bool is_selected; | 130 bool is_selected; |
131 }; | 131 }; |
132 | 132 |
133 struct MenuItemExtraParams { | 133 struct MenuItemExtraParams { |
134 bool is_selected; | 134 bool is_selected; |
| 135 int corner_radius; |
135 }; | 136 }; |
136 | 137 |
137 struct MenuListExtraParams { | 138 struct MenuListExtraParams { |
138 bool has_border; | 139 bool has_border; |
139 bool has_border_radius; | 140 bool has_border_radius; |
140 int arrow_x; | 141 int arrow_x; |
141 int arrow_y; | 142 int arrow_y; |
142 int arrow_size; | 143 int arrow_size; |
143 SkColor arrow_color; | 144 SkColor arrow_color; |
144 SkColor background_color; | 145 SkColor background_color; |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 private: | 377 private: |
377 // Observers to notify when the native theme changes. | 378 // Observers to notify when the native theme changes. |
378 base::ObserverList<NativeThemeObserver> native_theme_observers_; | 379 base::ObserverList<NativeThemeObserver> native_theme_observers_; |
379 | 380 |
380 DISALLOW_COPY_AND_ASSIGN(NativeTheme); | 381 DISALLOW_COPY_AND_ASSIGN(NativeTheme); |
381 }; | 382 }; |
382 | 383 |
383 } // namespace ui | 384 } // namespace ui |
384 | 385 |
385 #endif // UI_NATIVE_THEME_NATIVE_THEME_H_ | 386 #endif // UI_NATIVE_THEME_NATIVE_THEME_H_ |
OLD | NEW |