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

Unified Diff: views/controls/button/native_button_gtk.cc

Issue 6955002: Change chrome to use the new native themed radio button. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Addressed some more comments from review Created 9 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « views/controls/button/native_button_gtk.h ('k') | views/controls/button/native_button_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/button/native_button_gtk.cc
===================================================================
--- views/controls/button/native_button_gtk.cc (revision 86135)
+++ views/controls/button/native_button_gtk.cc (working copy)
@@ -184,15 +184,15 @@
}
////////////////////////////////////////////////////////////////////////////////
-NativeRadioButtonGtk::NativeRadioButtonGtk(RadioButton* radio_button)
+NativeRadioButtonGtk::NativeRadioButtonGtk(NativeRadioButton* radio_button)
: NativeCheckboxGtk(radio_button) {
}
NativeRadioButtonGtk::~NativeRadioButtonGtk() {
}
-RadioButton* NativeRadioButtonGtk::radio_button() {
- return static_cast<RadioButton*>(native_button_);
+NativeRadioButton* NativeRadioButtonGtk::radio_button() {
+ return static_cast<NativeRadioButton*>(native_button_);
}
////////////////////////////////////////////////////////////////////////////////
@@ -256,7 +256,7 @@
i != other.end();
++i) {
if (*i != native_button_) {
- if ((*i)->GetClassName() != RadioButton::kViewClassName) {
+ if ((*i)->GetClassName() != NativeRadioButton::kViewClassName) {
NOTREACHED() << "radio-button has same group as other non "
"radio-button views.";
continue;
@@ -265,7 +265,7 @@
// A button without wrapper will be added to the group in
// its own ViewHierachyChanged.
NativeButtonWrapper* wrapper =
- static_cast<RadioButton*>(*i)->native_wrapper();
+ static_cast<NativeRadioButton*>(*i)->native_wrapper();
if (wrapper) {
SetGroupFrom(wrapper);
break;
@@ -303,7 +303,7 @@
// static
NativeButtonWrapper* NativeButtonWrapper::CreateRadioButtonWrapper(
- RadioButton* radio_button) {
+ NativeRadioButton* radio_button) {
return new NativeRadioButtonGtk(radio_button);
}
« no previous file with comments | « views/controls/button/native_button_gtk.h ('k') | views/controls/button/native_button_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698