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

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

Issue 2477463003: Replace ui::AXViewState with AXNodeData and AXActionData (Closed)
Patch Set: Fix test Created 4 years, 1 month 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
« no previous file with comments | « ui/views/controls/button/menu_button.cc ('k') | ui/views/controls/button/radio_button.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) 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_RADIO_BUTTON_H_ 5 #ifndef UI_VIEWS_CONTROLS_BUTTON_RADIO_BUTTON_H_
6 #define UI_VIEWS_CONTROLS_BUTTON_RADIO_BUTTON_H_ 6 #define UI_VIEWS_CONTROLS_BUTTON_RADIO_BUTTON_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "ui/views/controls/button/checkbox.h" 10 #include "ui/views/controls/button/checkbox.h"
11 11
12 namespace views { 12 namespace views {
13 13
14 // A native themed class representing a radio button. This class does not use 14 // A native themed class representing a radio button. This class does not use
15 // platform specific objects to replicate the native platforms looks and feel. 15 // platform specific objects to replicate the native platforms looks and feel.
16 class VIEWS_EXPORT RadioButton : public Checkbox { 16 class VIEWS_EXPORT RadioButton : public Checkbox {
17 public: 17 public:
18 // The button's class name. 18 // The button's class name.
19 static const char kViewClassName[]; 19 static const char kViewClassName[];
20 20
21 RadioButton(const base::string16& label, int group_id); 21 RadioButton(const base::string16& label, int group_id);
22 ~RadioButton() override; 22 ~RadioButton() override;
23 23
24 // Overridden from View: 24 // Overridden from View:
25 const char* GetClassName() const override; 25 const char* GetClassName() const override;
26 void GetAccessibleState(ui::AXViewState* state) override; 26 void GetAccessibleNodeData(ui::AXNodeData* node_data) override;
27 View* GetSelectedViewForGroup(int group) override; 27 View* GetSelectedViewForGroup(int group) override;
28 bool IsGroupFocusTraversable() const override; 28 bool IsGroupFocusTraversable() const override;
29 void OnFocus() override; 29 void OnFocus() override;
30 30
31 // Overridden from Button: 31 // Overridden from Button:
32 void NotifyClick(const ui::Event& event) override; 32 void NotifyClick(const ui::Event& event) override;
33 33
34 // Overridden from LabelButton: 34 // Overridden from LabelButton:
35 ui::NativeTheme::Part GetThemePart() const override; 35 ui::NativeTheme::Part GetThemePart() const override;
36 36
37 // Overridden from Checkbox: 37 // Overridden from Checkbox:
38 void SetChecked(bool checked) override; 38 void SetChecked(bool checked) override;
39 void PaintFocusRing(gfx::Canvas* canvas, const SkPaint& paint) override; 39 void PaintFocusRing(gfx::Canvas* canvas, const SkPaint& paint) override;
40 gfx::VectorIconId GetVectorIconId() const override; 40 gfx::VectorIconId GetVectorIconId() const override;
41 41
42 private: 42 private:
43 DISALLOW_COPY_AND_ASSIGN(RadioButton); 43 DISALLOW_COPY_AND_ASSIGN(RadioButton);
44 }; 44 };
45 45
46 } // namespace views 46 } // namespace views
47 47
48 #endif // UI_VIEWS_CONTROLS_BUTTON_RADIO_BUTTON_H_ 48 #endif // UI_VIEWS_CONTROLS_BUTTON_RADIO_BUTTON_H_
OLDNEW
« no previous file with comments | « ui/views/controls/button/menu_button.cc ('k') | ui/views/controls/button/radio_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698