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 #ifndef VIEWS_CONTROLS_BUTTON_NATIVE_BUTTON_GTK_H_ | 5 #ifndef VIEWS_CONTROLS_BUTTON_NATIVE_BUTTON_GTK_H_ |
6 #define VIEWS_CONTROLS_BUTTON_NATIVE_BUTTON_GTK_H_ | 6 #define VIEWS_CONTROLS_BUTTON_NATIVE_BUTTON_GTK_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "app/gtk_signal.h" | 9 #include "ui/base/gtk/gtk_signal.h" |
10 #include "views/controls/button/native_button_wrapper.h" | 10 #include "views/controls/button/native_button_wrapper.h" |
11 #include "views/controls/native_control_gtk.h" | 11 #include "views/controls/native_control_gtk.h" |
12 | 12 |
13 namespace views { | 13 namespace views { |
14 | 14 |
15 // A View that hosts a native GTK button. | 15 // A View that hosts a native GTK button. |
16 class NativeButtonGtk : public NativeControlGtk, public NativeButtonWrapper { | 16 class NativeButtonGtk : public NativeControlGtk, public NativeButtonWrapper { |
17 public: | 17 public: |
18 explicit NativeButtonGtk(NativeButton* native_button); | 18 explicit NativeButtonGtk(NativeButton* native_button); |
19 virtual ~NativeButtonGtk(); | 19 virtual ~NativeButtonGtk(); |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 void SetGroupFrom(NativeButtonWrapper* wrapper); | 105 void SetGroupFrom(NativeButtonWrapper* wrapper); |
106 // Invoked when the radio button's state is changed. | 106 // Invoked when the radio button's state is changed. |
107 void OnToggled(); | 107 void OnToggled(); |
108 | 108 |
109 DISALLOW_COPY_AND_ASSIGN(NativeRadioButtonGtk); | 109 DISALLOW_COPY_AND_ASSIGN(NativeRadioButtonGtk); |
110 }; | 110 }; |
111 | 111 |
112 } // namespace views | 112 } // namespace views |
113 | 113 |
114 #endif // VIEWS_CONTROLS_BUTTON_NATIVE_BUTTON_GTK_H_ | 114 #endif // VIEWS_CONTROLS_BUTTON_NATIVE_BUTTON_GTK_H_ |
OLD | NEW |