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

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

Issue 9562038: ui/gfx: Make gfx::Canvas inherit from gfx::CanvasSkia. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more fixes Created 8 years, 9 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) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
(...skipping 17 matching lines...) Expand all
29 29
30 // Sets/Gets whether or not the checkbox is checked. 30 // Sets/Gets whether or not the checkbox is checked.
31 virtual void SetChecked(bool checked); 31 virtual void SetChecked(bool checked);
32 bool checked() const { return checked_; } 32 bool checked() const { return checked_; }
33 33
34 protected: 34 protected:
35 // Overridden from View: 35 // Overridden from View:
36 virtual gfx::Size GetPreferredSize() OVERRIDE; 36 virtual gfx::Size GetPreferredSize() OVERRIDE;
37 virtual std::string GetClassName() const OVERRIDE; 37 virtual std::string GetClassName() const OVERRIDE;
38 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; 38 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
39 virtual void OnPaintFocusBorder(gfx::Canvas* canvas) OVERRIDE; 39 virtual void OnPaintFocusBorder(gfx::CanvasSkia* canvas) OVERRIDE;
40 40
41 private: 41 private:
42 // Overridden from Button: 42 // Overridden from Button:
43 virtual void NotifyClick(const views::Event& event) OVERRIDE; 43 virtual void NotifyClick(const views::Event& event) OVERRIDE;
44 44
45 // Overridden from TextButtonBase: 45 // Overridden from TextButtonBase:
46 virtual gfx::NativeTheme::Part GetThemePart() const OVERRIDE; 46 virtual gfx::NativeTheme::Part GetThemePart() const OVERRIDE;
47 virtual gfx::Rect GetThemePaintRect() const OVERRIDE; 47 virtual gfx::Rect GetThemePaintRect() const OVERRIDE;
48 virtual void GetExtraParams( 48 virtual void GetExtraParams(
49 gfx::NativeTheme::ExtraParams* params) const OVERRIDE; 49 gfx::NativeTheme::ExtraParams* params) const OVERRIDE;
50 virtual gfx::Rect GetTextBounds() const OVERRIDE; 50 virtual gfx::Rect GetTextBounds() const OVERRIDE;
51 51
52 // True if the checkbox is checked. 52 // True if the checkbox is checked.
53 bool checked_; 53 bool checked_;
54 54
55 DISALLOW_COPY_AND_ASSIGN(Checkbox); 55 DISALLOW_COPY_AND_ASSIGN(Checkbox);
56 }; 56 };
57 57
58 } // namespace views 58 } // namespace views
59 59
60 #endif // UI_VIEWS_CONTROLS_BUTTON_CHECKBOX_H_ 60 #endif // UI_VIEWS_CONTROLS_BUTTON_CHECKBOX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698