| OLD | NEW |
| 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 #include "ui/views/controls/button/radio_button.h" | 5 #include "ui/views/controls/button/radio_button.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "ui/accessibility/ax_node_data.h" | 8 #include "ui/accessibility/ax_node_data.h" |
| 9 #include "ui/base/resource/resource_bundle.h" | 9 #include "ui/base/resource/resource_bundle.h" |
| 10 #include "ui/events/event_utils.h" | 10 #include "ui/events/event_utils.h" |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 RadioButton* peer = static_cast<RadioButton*>(*i); | 141 RadioButton* peer = static_cast<RadioButton*>(*i); |
| 142 peer->SetChecked(false); | 142 peer->SetChecked(false); |
| 143 } | 143 } |
| 144 } | 144 } |
| 145 } | 145 } |
| 146 } | 146 } |
| 147 Checkbox::SetChecked(checked); | 147 Checkbox::SetChecked(checked); |
| 148 } | 148 } |
| 149 | 149 |
| 150 void RadioButton::PaintFocusRing(gfx::Canvas* canvas, | 150 void RadioButton::PaintFocusRing(gfx::Canvas* canvas, |
| 151 const cc::PaintFlags& paint) { | 151 const cc::PaintFlags& flags) { |
| 152 canvas->DrawCircle(gfx::RectF(image()->bounds()).CenterPoint(), | 152 canvas->DrawCircle(gfx::RectF(image()->bounds()).CenterPoint(), |
| 153 image()->width() / 2, paint); | 153 image()->width() / 2, flags); |
| 154 } | 154 } |
| 155 | 155 |
| 156 const gfx::VectorIcon& RadioButton::GetVectorIcon() const { | 156 const gfx::VectorIcon& RadioButton::GetVectorIcon() const { |
| 157 return checked() ? kRadioButtonActiveIcon : kRadioButtonNormalIcon; | 157 return checked() ? kRadioButtonActiveIcon : kRadioButtonNormalIcon; |
| 158 } | 158 } |
| 159 | 159 |
| 160 } // namespace views | 160 } // namespace views |
| OLD | NEW |