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_CHECKBOX_H_ | 5 #ifndef VIEWS_CONTROLS_BUTTON_CHECKBOX_H_ |
6 #define VIEWS_CONTROLS_BUTTON_CHECKBOX_H_ | 6 #define VIEWS_CONTROLS_BUTTON_CHECKBOX_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "views/controls/button/native_button.h" | 10 #include "views/controls/button/native_button.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 virtual void OnMouseMoved(const MouseEvent& e); | 52 virtual void OnMouseMoved(const MouseEvent& e); |
53 virtual void OnMouseExited(const MouseEvent& e); | 53 virtual void OnMouseExited(const MouseEvent& e); |
54 virtual bool OnMousePressed(const MouseEvent& e); | 54 virtual bool OnMousePressed(const MouseEvent& e); |
55 virtual void OnMouseReleased(const MouseEvent& e, bool canceled); | 55 virtual void OnMouseReleased(const MouseEvent& e, bool canceled); |
56 virtual bool OnMouseDragged(const MouseEvent& e); | 56 virtual bool OnMouseDragged(const MouseEvent& e); |
57 virtual void WillGainFocus(); | 57 virtual void WillGainFocus(); |
58 virtual void WillLoseFocus(); | 58 virtual void WillLoseFocus(); |
59 | 59 |
60 // Accessibility accessors, overridden from View. | 60 // Accessibility accessors, overridden from View. |
61 virtual bool GetAccessibleRole(AccessibilityTypes::Role* role); | 61 virtual bool GetAccessibleRole(AccessibilityTypes::Role* role); |
62 virtual bool GetAccessibleName(std::wstring* name); | |
63 | 62 |
64 // Overridden from NativeButton: | 63 // Overridden from NativeButton: |
65 virtual void SetLabel(const std::wstring& label); | 64 virtual void SetLabel(const std::wstring& label); |
66 | 65 |
67 protected: | 66 protected: |
68 virtual std::string GetClassName() const; | 67 virtual std::string GetClassName() const; |
69 | 68 |
70 // Overridden from NativeButton: | 69 // Overridden from NativeButton: |
71 virtual NativeButtonWrapper* CreateWrapper(); | 70 virtual NativeButtonWrapper* CreateWrapper(); |
72 virtual void InitBorder(); | 71 virtual void InitBorder(); |
(...skipping 12 matching lines...) Expand all Loading... |
85 | 84 |
86 // True if the checkbox is checked. | 85 // True if the checkbox is checked. |
87 bool checked_; | 86 bool checked_; |
88 | 87 |
89 DISALLOW_COPY_AND_ASSIGN(Checkbox); | 88 DISALLOW_COPY_AND_ASSIGN(Checkbox); |
90 }; | 89 }; |
91 | 90 |
92 } // namespace views | 91 } // namespace views |
93 | 92 |
94 #endif // VIEWS_CONTROLS_BUTTON_CHECKBOX_H_ | 93 #endif // VIEWS_CONTROLS_BUTTON_CHECKBOX_H_ |
OLD | NEW |