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

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

Issue 7550038: Rename VIEWS_API to VIEWS_EXPORT. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 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/controls/button/menu_button.h ('k') | views/controls/button/text_button.h » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_RADIO_BUTTON_H_ 5 #ifndef VIEWS_CONTROLS_BUTTON_RADIO_BUTTON_H_
6 #define VIEWS_CONTROLS_BUTTON_RADIO_BUTTON_H_ 6 #define VIEWS_CONTROLS_BUTTON_RADIO_BUTTON_H_
7 #pragma once 7 #pragma once
8 8
9 #include "views/controls/button/checkbox.h" 9 #include "views/controls/button/checkbox.h"
10 10
11 namespace views { 11 namespace views {
12 12
13 // A native themed class representing a radio button. This class does not use 13 // A native themed class representing a radio button. This class does not use
14 // platform specific objects to replicate the native platforms looks and feel. 14 // platform specific objects to replicate the native platforms looks and feel.
15 class VIEWS_API RadioButton : public Checkbox { 15 class VIEWS_EXPORT RadioButton : public Checkbox {
16 public: 16 public:
17 // The button's class name. 17 // The button's class name.
18 static const char kViewClassName[]; 18 static const char kViewClassName[];
19 19
20 RadioButton(const std::wstring& label, int group_id); 20 RadioButton(const std::wstring& label, int group_id);
21 virtual ~RadioButton(); 21 virtual ~RadioButton();
22 22
23 // Overridden from View: 23 // Overridden from View:
24 virtual std::string GetClassName() const OVERRIDE; 24 virtual std::string GetClassName() const OVERRIDE;
25 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; 25 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
26 virtual View* GetSelectedViewForGroup(int group) OVERRIDE; 26 virtual View* GetSelectedViewForGroup(int group) OVERRIDE;
27 virtual bool IsGroupFocusTraversable() const OVERRIDE; 27 virtual bool IsGroupFocusTraversable() const OVERRIDE;
28 virtual void OnFocus() OVERRIDE; 28 virtual void OnFocus() OVERRIDE;
29 29
30 // Overridden from Button: 30 // Overridden from Button:
31 virtual void NotifyClick(const views::Event& event) OVERRIDE; 31 virtual void NotifyClick(const views::Event& event) OVERRIDE;
32 32
33 // Overridden from TextButtonBase: 33 // Overridden from TextButtonBase:
34 virtual gfx::NativeTheme::Part GetThemePart() const OVERRIDE; 34 virtual gfx::NativeTheme::Part GetThemePart() const OVERRIDE;
35 35
36 // Overridden from Checkbox: 36 // Overridden from Checkbox:
37 virtual void SetChecked(bool checked) OVERRIDE; 37 virtual void SetChecked(bool checked) OVERRIDE;
38 38
39 DISALLOW_COPY_AND_ASSIGN(RadioButton); 39 DISALLOW_COPY_AND_ASSIGN(RadioButton);
40 }; 40 };
41 41
42 } // namespace views 42 } // namespace views
43 43
44 #endif // VIEWS_CONTROLS_BUTTON_RADIO_BUTTON_H_ 44 #endif // VIEWS_CONTROLS_BUTTON_RADIO_BUTTON_H_
OLDNEW
« no previous file with comments | « views/controls/button/menu_button.h ('k') | views/controls/button/text_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698