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

Side by Side Diff: views/controls/button/radio_button.cc

Issue 7196002: Fix checkbox in windows uninstaller. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Fix trybot break in chromeos Created 9 years, 6 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 | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698