Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Side by Side Diff: views/controls/button/checkbox.h

Issue 113443: ChromeCanvas->gfx::Canvas (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « views/border.cc ('k') | views/controls/button/checkbox.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_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 "views/controls/button/native_button.h" 8 #include "views/controls/button/native_button.h"
9 9
10 namespace views { 10 namespace views {
(...skipping 23 matching lines...) Expand all
34 // Sets/Gets whether or not the checkbox is checked. 34 // Sets/Gets whether or not the checkbox is checked.
35 virtual void SetChecked(bool checked); 35 virtual void SetChecked(bool checked);
36 bool checked() const { return checked_; } 36 bool checked() const { return checked_; }
37 37
38 // Returns the indentation of the text from the left edge of the view. 38 // Returns the indentation of the text from the left edge of the view.
39 static int GetTextIndent(); 39 static int GetTextIndent();
40 40
41 // Overridden from View: 41 // Overridden from View:
42 virtual gfx::Size GetPreferredSize(); 42 virtual gfx::Size GetPreferredSize();
43 virtual void Layout(); 43 virtual void Layout();
44 virtual void PaintFocusBorder(ChromeCanvas* canvas); 44 virtual void PaintFocusBorder(gfx::Canvas* canvas);
45 virtual View* GetViewForPoint(const gfx::Point& point); 45 virtual View* GetViewForPoint(const gfx::Point& point);
46 virtual View* GetViewForPoint(const gfx::Point& point, 46 virtual View* GetViewForPoint(const gfx::Point& point,
47 bool can_create_floating); 47 bool can_create_floating);
48 virtual void OnMouseEntered(const MouseEvent& e); 48 virtual void OnMouseEntered(const MouseEvent& e);
49 virtual void OnMouseMoved(const MouseEvent& e); 49 virtual void OnMouseMoved(const MouseEvent& e);
50 virtual void OnMouseExited(const MouseEvent& e); 50 virtual void OnMouseExited(const MouseEvent& e);
51 virtual bool OnMousePressed(const MouseEvent& e); 51 virtual bool OnMousePressed(const MouseEvent& e);
52 virtual void OnMouseReleased(const MouseEvent& e, bool canceled); 52 virtual void OnMouseReleased(const MouseEvent& e, bool canceled);
53 virtual bool OnMouseDragged(const MouseEvent& e); 53 virtual bool OnMouseDragged(const MouseEvent& e);
54 virtual void WillGainFocus(); 54 virtual void WillGainFocus();
(...skipping 20 matching lines...) Expand all
75 75
76 // True if the checkbox is checked. 76 // True if the checkbox is checked.
77 bool checked_; 77 bool checked_;
78 78
79 DISALLOW_COPY_AND_ASSIGN(Checkbox); 79 DISALLOW_COPY_AND_ASSIGN(Checkbox);
80 }; 80 };
81 81
82 } // namespace views 82 } // namespace views
83 83
84 #endif // #ifndef VIEWS_CONTROLS_BUTTON_CHECKBOX_H_ 84 #endif // #ifndef VIEWS_CONTROLS_BUTTON_CHECKBOX_H_
OLDNEW
« no previous file with comments | « views/border.cc ('k') | views/controls/button/checkbox.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698