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_BASE_NATIVE_THEME_NATIVE_THEME_H_ | 5 #ifndef UI_BASE_NATIVE_THEME_NATIVE_THEME_H_ |
6 #define UI_BASE_NATIVE_THEME_NATIVE_THEME_H_ | 6 #define UI_BASE_NATIVE_THEME_NATIVE_THEME_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "third_party/skia/include/core/SkColor.h" | 9 #include "third_party/skia/include/core/SkColor.h" |
10 #include "ui/base/ui_export.h" | 10 #include "ui/base/ui_export.h" |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 kMaxState, | 86 kMaxState, |
87 }; | 87 }; |
88 | 88 |
89 // Each structure below holds extra information needed when painting a given | 89 // Each structure below holds extra information needed when painting a given |
90 // part. | 90 // part. |
91 | 91 |
92 struct ButtonExtraParams { | 92 struct ButtonExtraParams { |
93 bool checked; | 93 bool checked; |
94 bool indeterminate; // Whether the button state is indeterminate. | 94 bool indeterminate; // Whether the button state is indeterminate. |
95 bool is_default; // Whether the button is default button. | 95 bool is_default; // Whether the button is default button. |
| 96 bool is_focused; |
96 bool has_border; | 97 bool has_border; |
97 int classic_state; // Used on Windows when uxtheme is not available. | 98 int classic_state; // Used on Windows when uxtheme is not available. |
98 SkColor background_color; | 99 SkColor background_color; |
99 }; | 100 }; |
100 | 101 |
101 struct InnerSpinButtonExtraParams { | 102 struct InnerSpinButtonExtraParams { |
102 bool spin_up; | 103 bool spin_up; |
103 bool read_only; | 104 bool read_only; |
104 int classic_state; // Used on Windows when uxtheme is not available. | 105 int classic_state; // Used on Windows when uxtheme is not available. |
105 }; | 106 }; |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 static unsigned int thumb_inactive_color_; | 265 static unsigned int thumb_inactive_color_; |
265 static unsigned int thumb_active_color_; | 266 static unsigned int thumb_active_color_; |
266 static unsigned int track_color_; | 267 static unsigned int track_color_; |
267 | 268 |
268 DISALLOW_COPY_AND_ASSIGN(NativeTheme); | 269 DISALLOW_COPY_AND_ASSIGN(NativeTheme); |
269 }; | 270 }; |
270 | 271 |
271 } // namespace ui | 272 } // namespace ui |
272 | 273 |
273 #endif // UI_BASE_NATIVE_THEME_NATIVE_THEME_H_ | 274 #endif // UI_BASE_NATIVE_THEME_NATIVE_THEME_H_ |
OLD | NEW |