OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this |
2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
3 // LICENSE file. | 3 // LICENSE file. |
4 | 4 |
5 #ifndef CHROME_VIEWS_CONTROLS_BUTTON_NATIVE_BUTTON_WRAPPER_H_ | 5 #ifndef CHROME_VIEWS_CONTROLS_BUTTON_NATIVE_BUTTON_WRAPPER_H_ |
6 #define CHROME_VIEWS_CONTROLS_BUTTON_NATIVE_BUTTON_WRAPPER_H_ | 6 #define CHROME_VIEWS_CONTROLS_BUTTON_NATIVE_BUTTON_WRAPPER_H_ |
7 | 7 |
8 class ChromeFont; | 8 class ChromeFont; |
9 | 9 |
10 namespace views { | 10 namespace views { |
11 | 11 |
12 class Checkbox; | 12 class Checkbox; |
13 class NativeButton; | 13 class NativeButton; |
14 class RadioButton; | 14 class RadioButton; |
| 15 class View; |
15 | 16 |
16 // A specialization of NativeControlWrapper that hosts a platform-native button. | 17 // A specialization of NativeControlWrapper that hosts a platform-native button. |
17 class NativeButtonWrapper { | 18 class NativeButtonWrapper { |
18 public: | 19 public: |
19 // Updates the native button's label from the state stored in its associated | 20 // Updates the native button's label from the state stored in its associated |
20 // NativeButton. | 21 // NativeButton. |
21 virtual void UpdateLabel() = 0; | 22 virtual void UpdateLabel() = 0; |
22 | 23 |
23 // Updates the native button's label font from the state stored in its | 24 // Updates the native button's label font from the state stored in its |
24 // associated NativeButton. | 25 // associated NativeButton. |
(...skipping 28 matching lines...) Expand all Loading... |
53 static NativeButtonWrapper* CreateNativeButtonWrapper(NativeButton* button); | 54 static NativeButtonWrapper* CreateNativeButtonWrapper(NativeButton* button); |
54 static NativeButtonWrapper* CreateCheckboxWrapper(Checkbox* checkbox); | 55 static NativeButtonWrapper* CreateCheckboxWrapper(Checkbox* checkbox); |
55 static NativeButtonWrapper* CreateRadioButtonWrapper( | 56 static NativeButtonWrapper* CreateRadioButtonWrapper( |
56 RadioButton* radio_button); | 57 RadioButton* radio_button); |
57 | 58 |
58 }; | 59 }; |
59 | 60 |
60 } // namespace views | 61 } // namespace views |
61 | 62 |
62 #endif // #ifndef CHROME_VIEWS_CONTROLS_BUTTON_NATIVE_BUTTON_WRAPPER_H_ | 63 #endif // #ifndef CHROME_VIEWS_CONTROLS_BUTTON_NATIVE_BUTTON_WRAPPER_H_ |
OLD | NEW |