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 VIEWS_CONTROLS_BUTTON_NATIVE_BUTTON_WRAPPER_H_ | 5 #ifndef VIEWS_CONTROLS_BUTTON_NATIVE_BUTTON_WRAPPER_H_ |
6 #define VIEWS_CONTROLS_BUTTON_NATIVE_BUTTON_WRAPPER_H_ | 6 #define VIEWS_CONTROLS_BUTTON_NATIVE_BUTTON_WRAPPER_H_ |
7 | 7 |
8 #include "gfx/native_widget_types.h" | 8 #include "gfx/native_widget_types.h" |
9 | 9 |
10 namespace views { | 10 namespace views { |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 59 |
60 // Return the width of the button. Used for fixed size buttons (checkboxes and | 60 // Return the width of the button. Used for fixed size buttons (checkboxes and |
61 // radio buttons) only. | 61 // radio buttons) only. |
62 static int GetFixedWidth(); | 62 static int GetFixedWidth(); |
63 | 63 |
64 // Creates an appropriate NativeButtonWrapper for the platform. | 64 // Creates an appropriate NativeButtonWrapper for the platform. |
65 static NativeButtonWrapper* CreateNativeButtonWrapper(NativeButton* button); | 65 static NativeButtonWrapper* CreateNativeButtonWrapper(NativeButton* button); |
66 static NativeButtonWrapper* CreateCheckboxWrapper(Checkbox* checkbox); | 66 static NativeButtonWrapper* CreateCheckboxWrapper(Checkbox* checkbox); |
67 static NativeButtonWrapper* CreateRadioButtonWrapper( | 67 static NativeButtonWrapper* CreateRadioButtonWrapper( |
68 RadioButton* radio_button); | 68 RadioButton* radio_button); |
| 69 |
| 70 protected: |
| 71 virtual ~NativeButtonWrapper() {} |
69 }; | 72 }; |
70 | 73 |
71 } // namespace views | 74 } // namespace views |
72 | 75 |
73 #endif // VIEWS_CONTROLS_BUTTON_NATIVE_BUTTON_WRAPPER_H_ | 76 #endif // VIEWS_CONTROLS_BUTTON_NATIVE_BUTTON_WRAPPER_H_ |
OLD | NEW |