Chromium Code Reviews| 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 "views/widget/widget.h" | 9 #include "views/widget/widget.h" |
| 10 | 10 |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 200 if (!checked()) | 200 if (!checked()) |
| 201 SetChecked(true); | 201 SetChecked(true); |
| 202 RequestFocus(); | 202 RequestFocus(); |
| 203 TextButtonBase::NotifyClick(event); | 203 TextButtonBase::NotifyClick(event); |
| 204 } | 204 } |
| 205 | 205 |
| 206 gfx::NativeTheme::Part RadioButton::GetThemePart() const { | 206 gfx::NativeTheme::Part RadioButton::GetThemePart() const { |
| 207 return gfx::NativeTheme::kRadio; | 207 return gfx::NativeTheme::kRadio; |
| 208 } | 208 } |
| 209 | 209 |
| 210 void RadioButton::GetExtraParams(gfx::NativeTheme::ExtraParams* params) const { | |
| 211 TextButtonBase::GetExtraParams(params); | |
| 212 params->button.checked = checked(); | |
| 213 #if defined(OS_WIN) | |
| 214 params->button.classic_state |= checked() ? DFCS_CHECKED : 0; | |
|
Ben Goodger (Google)
2011/06/23 17:31:34
ditto
Roger Tawa OOO till Jul 10th
2011/06/23 19:22:11
Yup.
| |
| 215 #endif | |
| 216 } | |
| 217 | |
| 210 } // namespace views | 218 } // namespace views |
| OLD | NEW |