| 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_WIN_H_ | 5 #ifndef VIEWS_CONTROLS_BUTTON_NATIVE_BUTTON_WIN_H_ |
| 6 #define VIEWS_CONTROLS_BUTTON_NATIVE_BUTTON_WIN_H_ | 6 #define VIEWS_CONTROLS_BUTTON_NATIVE_BUTTON_WIN_H_ |
| 7 | 7 |
| 8 #include "views/controls/native_control_win.h" | 8 #include "views/controls/native_control_win.h" |
| 9 #include "views/controls/button/native_button_wrapper.h" | 9 #include "views/controls/button/native_button_wrapper.h" |
| 10 | 10 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 virtual gfx::Size GetPreferredSize(); | 30 virtual gfx::Size GetPreferredSize(); |
| 31 | 31 |
| 32 // Overridden from NativeControlWin: | 32 // Overridden from NativeControlWin: |
| 33 virtual bool ProcessMessage(UINT message, | 33 virtual bool ProcessMessage(UINT message, |
| 34 WPARAM w_param, | 34 WPARAM w_param, |
| 35 LPARAM l_param, | 35 LPARAM l_param, |
| 36 LRESULT* result); | 36 LRESULT* result); |
| 37 virtual bool OnKeyDown(int vkey); | 37 virtual bool OnKeyDown(int vkey); |
| 38 | 38 |
| 39 protected: | 39 protected: |
| 40 virtual bool NotifyOnKeyDown() const; | |
| 41 virtual void CreateNativeControl(); | 40 virtual void CreateNativeControl(); |
| 42 virtual void NativeControlCreated(HWND control_hwnd); | 41 virtual void NativeControlCreated(HWND control_hwnd); |
| 43 | 42 |
| 44 // Returns true if this button is actually a checkbox or radio button. | 43 // Returns true if this button is actually a checkbox or radio button. |
| 45 virtual bool IsCheckbox() const { return false; } | 44 virtual bool IsCheckbox() const { return false; } |
| 46 | 45 |
| 47 private: | 46 private: |
| 48 // The NativeButton we are bound to. | 47 // The NativeButton we are bound to. |
| 49 NativeButton* native_button_; | 48 NativeButton* native_button_; |
| 50 | 49 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 virtual void CreateNativeControl(); | 96 virtual void CreateNativeControl(); |
| 98 virtual bool IsRadioButton() const { return true; } | 97 virtual bool IsRadioButton() const { return true; } |
| 99 | 98 |
| 100 private: | 99 private: |
| 101 DISALLOW_COPY_AND_ASSIGN(NativeRadioButtonWin); | 100 DISALLOW_COPY_AND_ASSIGN(NativeRadioButtonWin); |
| 102 }; | 101 }; |
| 103 | 102 |
| 104 } // namespace views | 103 } // namespace views |
| 105 | 104 |
| 106 #endif // #ifndef VIEWS_CONTROLS_BUTTON_NATIVE_BUTTON_WIN_H_ | 105 #endif // #ifndef VIEWS_CONTROLS_BUTTON_NATIVE_BUTTON_WIN_H_ |
| OLD | NEW |