OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 UI_VIEWS_CONTROLS_BUTTON_CHECKBOX_H_ | 5 #ifndef UI_VIEWS_CONTROLS_BUTTON_CHECKBOX_H_ |
6 #define UI_VIEWS_CONTROLS_BUTTON_CHECKBOX_H_ | 6 #define UI_VIEWS_CONTROLS_BUTTON_CHECKBOX_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 | 32 |
33 protected: | 33 protected: |
34 // Overridden from View: | 34 // Overridden from View: |
35 virtual gfx::Size GetPreferredSize() OVERRIDE; | 35 virtual gfx::Size GetPreferredSize() OVERRIDE; |
36 virtual std::string GetClassName() const OVERRIDE; | 36 virtual std::string GetClassName() const OVERRIDE; |
37 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 37 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
38 virtual void OnPaintFocusBorder(gfx::Canvas* canvas) OVERRIDE; | 38 virtual void OnPaintFocusBorder(gfx::Canvas* canvas) OVERRIDE; |
39 | 39 |
40 private: | 40 private: |
41 // Overridden from Button: | 41 // Overridden from Button: |
42 virtual void NotifyClick(const views::Event& event) OVERRIDE; | 42 virtual void NotifyClick(const ui::Event& event) OVERRIDE; |
43 | 43 |
44 // Overridden from TextButtonBase: | 44 // Overridden from TextButtonBase: |
45 virtual ui::NativeTheme::Part GetThemePart() const OVERRIDE; | 45 virtual ui::NativeTheme::Part GetThemePart() const OVERRIDE; |
46 virtual gfx::Rect GetThemePaintRect() const OVERRIDE; | 46 virtual gfx::Rect GetThemePaintRect() const OVERRIDE; |
47 virtual void GetExtraParams( | 47 virtual void GetExtraParams( |
48 ui::NativeTheme::ExtraParams* params) const OVERRIDE; | 48 ui::NativeTheme::ExtraParams* params) const OVERRIDE; |
49 virtual gfx::Rect GetTextBounds() const OVERRIDE; | 49 virtual gfx::Rect GetTextBounds() const OVERRIDE; |
50 | 50 |
51 // True if the checkbox is checked. | 51 // True if the checkbox is checked. |
52 bool checked_; | 52 bool checked_; |
53 | 53 |
54 DISALLOW_COPY_AND_ASSIGN(Checkbox); | 54 DISALLOW_COPY_AND_ASSIGN(Checkbox); |
55 }; | 55 }; |
56 | 56 |
57 } // namespace views | 57 } // namespace views |
58 | 58 |
59 #endif // UI_VIEWS_CONTROLS_BUTTON_CHECKBOX_H_ | 59 #endif // UI_VIEWS_CONTROLS_BUTTON_CHECKBOX_H_ |
OLD | NEW |