OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // TestShellWebTheme::Control implements the generic rendering of controls | 5 // TestShellWebTheme::Control implements the generic rendering of controls |
6 // needed by TestShellWebTheme::Engine. See the comments in that class | 6 // needed by TestShellWebTheme::Engine. See the comments in that class |
7 // header file for why this class is needed and used. | 7 // header file for why this class is needed and used. |
8 // | 8 // |
9 // This class implements a generic set of widgets using Skia. The widgets | 9 // This class implements a generic set of widgets using Skia. The widgets |
10 // are optimized for testability, not a pleasing appearance. | 10 // are optimized for testability, not a pleasing appearance. |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 // six clickable parts - two arrows, the "thumb" indicating the current | 65 // six clickable parts - two arrows, the "thumb" indicating the current |
66 // position on the bar, the other two parts of the bar (before and after | 66 // position on the bar, the other two parts of the bar (before and after |
67 // the thumb) and the "gripper" on the thumb itself. | 67 // the thumb) and the "gripper" on the thumb itself. |
68 // | 68 // |
69 enum Type { | 69 enum Type { |
70 kUnknown_Type = 0, | 70 kUnknown_Type = 0, |
71 kTextField_Type, | 71 kTextField_Type, |
72 kPushButton_Type, | 72 kPushButton_Type, |
73 kUncheckedBox_Type, | 73 kUncheckedBox_Type, |
74 kCheckedBox_Type, | 74 kCheckedBox_Type, |
| 75 kIndeterminateCheckBox_Type, |
75 kUncheckedRadio_Type, | 76 kUncheckedRadio_Type, |
76 kCheckedRadio_Type, | 77 kCheckedRadio_Type, |
77 kHorizontalScrollTrackBack_Type, | 78 kHorizontalScrollTrackBack_Type, |
78 kHorizontalScrollTrackForward_Type, | 79 kHorizontalScrollTrackForward_Type, |
79 kHorizontalScrollThumb_Type, | 80 kHorizontalScrollThumb_Type, |
80 kHorizontalScrollGrip_Type, | 81 kHorizontalScrollGrip_Type, |
81 kVerticalScrollTrackBack_Type, | 82 kVerticalScrollTrackBack_Type, |
82 kVerticalScrollTrackForward_Type, | 83 kVerticalScrollTrackForward_Type, |
83 kVerticalScrollThumb_Type, | 84 kVerticalScrollThumb_Type, |
84 kVerticalScrollGrip_Type, | 85 kVerticalScrollGrip_Type, |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 const int width_; | 169 const int width_; |
169 const int height_; | 170 const int height_; |
170 | 171 |
171 DISALLOW_COPY_AND_ASSIGN(Control); | 172 DISALLOW_COPY_AND_ASSIGN(Control); |
172 }; | 173 }; |
173 | 174 |
174 } // namespace TestShellWebTheme | 175 } // namespace TestShellWebTheme |
175 | 176 |
176 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBTHEMECONTROL_H_ | 177 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBTHEMECONTROL_H_ |
177 | 178 |
OLD | NEW |