| OLD | NEW |
| 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 #include "views/controls/button/radio_button.h" | 5 #include "views/controls/button/radio_button.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "ui/base/accessibility/accessible_view_state.h" | 8 #include "ui/base/accessibility/accessible_view_state.h" |
| 9 #include "ui/views/widget/widget.h" | 9 #include "views/widget/widget.h" |
| 10 | 10 |
| 11 namespace views { | 11 namespace views { |
| 12 | 12 |
| 13 // static | 13 // static |
| 14 const char RadioButton::kViewClassName[] = "views/RadioButton"; | 14 const char RadioButton::kViewClassName[] = "views/RadioButton"; |
| 15 | 15 |
| 16 RadioButton::RadioButton(const string16& label, int group_id) | 16 RadioButton::RadioButton(const string16& label, int group_id) |
| 17 : Checkbox(label) { | 17 : Checkbox(label) { |
| 18 SetGroup(group_id); | 18 SetGroup(group_id); |
| 19 set_focusable(true); | 19 set_focusable(true); |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 SetChecked(true); | 95 SetChecked(true); |
| 96 RequestFocus(); | 96 RequestFocus(); |
| 97 TextButtonBase::NotifyClick(event); | 97 TextButtonBase::NotifyClick(event); |
| 98 } | 98 } |
| 99 | 99 |
| 100 gfx::NativeTheme::Part RadioButton::GetThemePart() const { | 100 gfx::NativeTheme::Part RadioButton::GetThemePart() const { |
| 101 return gfx::NativeTheme::kRadio; | 101 return gfx::NativeTheme::kRadio; |
| 102 } | 102 } |
| 103 | 103 |
| 104 } // namespace views | 104 } // namespace views |
| OLD | NEW |