blob: 1e07bae78c69df43c5a6d7d7978d053debdc82b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
// Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
// source code is governed by a BSD-style license that can be found in the
// LICENSE file.
#ifndef CHROME_VIEWS_CONTROLS_BUTTON_RADIO_BUTTON_H_
#define CHROME_VIEWS_CONTROLS_BUTTON_RADIO_BUTTON_H_
#include "chrome/views/controls/button/checkbox.h"
namespace views {
// A Checkbox subclass representing a radio button.
class RadioButton : public Checkbox {
public:
// The button's class name.
static const char kViewClassName[];
RadioButton();
RadioButton(const std::wstring& label);
RadioButton(const std::wstring& label, int group_id);
virtual ~RadioButton();
// Overridden from Checkbox:
virtual void SetChecked(bool checked);
// Overridden from View:
virtual View* GetSelectedViewForGroup(int group_id);
virtual bool IsGroupFocusTraversable() const;
virtual void OnMouseReleased(const views::MouseEvent& event, bool canceled);
protected:
virtual std::string GetClassName() const;
// Overridden from NativeButton:
virtual void CreateWrapper();
private:
DISALLOW_COPY_AND_ASSIGN(RadioButton);
};
} // namespace views
#endif // #ifndef CHROME_VIEWS_CONTROLS_BUTTON_RADIO_BUTTON_H_
|