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 "third_party/skia/include/core/SkColor.h" | 8 #include "third_party/skia/include/core/SkColor.h" |
9 #include "ui/gfx/native_widget_types.h" | 9 #include "ui/gfx/native_widget_types.h" |
10 #include "ui/native_theme/native_theme_export.h" | 10 #include "ui/native_theme/native_theme_export.h" |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 kTabPanelBackground, | 71 kTabPanelBackground, |
72 kTextField, | 72 kTextField, |
73 kTrackbarThumb, | 73 kTrackbarThumb, |
74 kTrackbarTrack, | 74 kTrackbarTrack, |
75 kWindowResizeGripper, | 75 kWindowResizeGripper, |
76 kMaxPart, | 76 kMaxPart, |
77 }; | 77 }; |
78 | 78 |
79 // The state of the part. | 79 // The state of the part. |
80 enum State { | 80 enum State { |
81 kDisabled, | 81 // IDs defined as specific values for use in arrays. |
82 kHovered, | 82 kDisabled = 0, |
83 kNormal, | 83 kHovered = 1, |
84 kPressed, | 84 kNormal = 2, |
85 kMaxState, | 85 kPressed = 3, |
| 86 kMaxState = 4, |
86 }; | 87 }; |
87 | 88 |
88 // Each structure below holds extra information needed when painting a given | 89 // Each structure below holds extra information needed when painting a given |
89 // part. | 90 // part. |
90 | 91 |
91 struct ButtonExtraParams { | 92 struct ButtonExtraParams { |
92 bool checked; | 93 bool checked; |
93 bool indeterminate; // Whether the button state is indeterminate. | 94 bool indeterminate; // Whether the button state is indeterminate. |
94 bool is_default; // Whether the button is default button. | 95 bool is_default; // Whether the button is default button. |
95 bool is_focused; | 96 bool is_focused; |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 unsigned int thumb_inactive_color_; | 297 unsigned int thumb_inactive_color_; |
297 unsigned int thumb_active_color_; | 298 unsigned int thumb_active_color_; |
298 unsigned int track_color_; | 299 unsigned int track_color_; |
299 | 300 |
300 DISALLOW_COPY_AND_ASSIGN(NativeTheme); | 301 DISALLOW_COPY_AND_ASSIGN(NativeTheme); |
301 }; | 302 }; |
302 | 303 |
303 } // namespace ui | 304 } // namespace ui |
304 | 305 |
305 #endif // UI_NATIVE_THEME_NATIVE_THEME_H_ | 306 #endif // UI_NATIVE_THEME_NATIVE_THEME_H_ |
OLD | NEW |