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

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

Issue 851853002: It is time. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Trying to reup because the last upload failed. Created 5 years, 11 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef UI_VIEWS_CONTROLS_BUTTON_RADIO_BUTTON_H_
6 #define UI_VIEWS_CONTROLS_BUTTON_RADIO_BUTTON_H_
7
8 #include "base/strings/string16.h"
9 #include "ui/views/controls/button/checkbox.h"
10
11 namespace views {
12
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.
15 class VIEWS_EXPORT RadioButton : public Checkbox {
16 public:
17 // The button's class name.
18 static const char kViewClassName[];
19
20 RadioButton(const base::string16& label, int group_id);
21 virtual ~RadioButton();
22
23 // Overridden from View:
24 virtual const char* GetClassName() const override;
25 virtual void GetAccessibleState(ui::AXViewState* state) override;
26 virtual View* GetSelectedViewForGroup(int group) override;
27 virtual bool IsGroupFocusTraversable() const override;
28 virtual void OnFocus() override;
29
30 // Overridden from Button:
31 virtual void NotifyClick(const ui::Event& event) override;
32
33 // Overridden from LabelButton:
34 virtual ui::NativeTheme::Part GetThemePart() const override;
35
36 // Overridden from Checkbox:
37 virtual void SetChecked(bool checked) override;
38
39 private:
40 DISALLOW_COPY_AND_ASSIGN(RadioButton);
41 };
42
43 } // namespace views
44
45 #endif // UI_VIEWS_CONTROLS_BUTTON_RADIO_BUTTON_H_
OLDNEW
« no previous file with comments | « ui/views/controls/button/menu_button_unittest.cc ('k') | ui/views/controls/button/radio_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698