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

Side by Side Diff: chrome/views/checkbox.h

Issue 7344: Convert GetPreferredSize from:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 2 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
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 CHROME_VIEWS_CHECKBOX_H__ 5 #ifndef CHROME_VIEWS_CHECKBOX_H__
6 #define CHROME_VIEWS_CHECKBOX_H__ 6 #define CHROME_VIEWS_CHECKBOX_H__
7 7
8 #include "base/gfx/rect.h" 8 #include "base/gfx/rect.h"
9 #include "chrome/views/native_button.h" 9 #include "chrome/views/native_button.h"
10 10
(...skipping 28 matching lines...) Expand all
39 39
40 // Returns the x position of the text. This can also be used to indent 40 // Returns the x position of the text. This can also be used to indent
41 // subsequent dependent controls. 41 // subsequent dependent controls.
42 static int GetTextIndent(); 42 static int GetTextIndent();
43 43
44 virtual void SetIsSelected(bool f); 44 virtual void SetIsSelected(bool f);
45 bool IsSelected() const; 45 bool IsSelected() const;
46 46
47 virtual std::string GetClassName() const; 47 virtual std::string GetClassName() const;
48 48
49 virtual void GetPreferredSize(CSize *out); 49 virtual gfx::Size GetPreferredSize();
50 virtual void Layout(); 50 virtual void Layout();
51 51
52 virtual bool OnMousePressed(const MouseEvent& event); 52 virtual bool OnMousePressed(const MouseEvent& event);
53 virtual bool OnMouseDragged(const MouseEvent& event); 53 virtual bool OnMouseDragged(const MouseEvent& event);
54 virtual void OnMouseReleased(const MouseEvent& event, bool canceled); 54 virtual void OnMouseReleased(const MouseEvent& event, bool canceled);
55 virtual void OnMouseEntered(const MouseEvent& event); 55 virtual void OnMouseEntered(const MouseEvent& event);
56 virtual void OnMouseMoved(const MouseEvent& event); 56 virtual void OnMouseMoved(const MouseEvent& event);
57 virtual void OnMouseExited(const MouseEvent& event); 57 virtual void OnMouseExited(const MouseEvent& event);
58 58
59 virtual void Paint(ChromeCanvas* canvas); 59 virtual void Paint(ChromeCanvas* canvas);
(...skipping 16 matching lines...) Expand all
76 76
77 bool is_selected_; 77 bool is_selected_;
78 78
79 79
80 DISALLOW_EVIL_CONSTRUCTORS(CheckBox); 80 DISALLOW_EVIL_CONSTRUCTORS(CheckBox);
81 }; 81 };
82 } 82 }
83 83
84 #endif // CHROME_VIEWS_NATIVE_CHECKBOX_H__ 84 #endif // CHROME_VIEWS_NATIVE_CHECKBOX_H__
85 85
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698