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

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

Issue 7057014: Variety of tweaks to View API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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.cc ('k') | views/controls/combobox/combobox.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/button/radio_button.cc
===================================================================
--- views/controls/button/radio_button.cc (revision 86084)
+++ views/controls/button/radio_button.cc (working copy)
@@ -21,7 +21,7 @@
RadioButton::RadioButton(const std::wstring& label, int group_id)
: Checkbox(label) {
- SetGroup(group_id);
+ set_group(group_id);
}
RadioButton::~RadioButton() {
@@ -43,7 +43,7 @@
container = container->parent();
if (container) {
std::vector<View*> other;
- container->GetViewsWithGroup(GetGroup(), &other);
+ container->GetViewsInGroup(group(), &other);
std::vector<View*>::iterator i;
for (i = other.begin(); i != other.end(); ++i) {
if (*i != this) {
@@ -71,7 +71,7 @@
View* RadioButton::GetSelectedViewForGroup(int group_id) {
std::vector<View*> views;
- GetWidget()->GetRootView()->GetViewsWithGroup(group_id, &views);
+ GetWidget()->GetRootView()->GetViewsInGroup(group_id, &views);
if (views.empty())
return NULL;
@@ -123,7 +123,7 @@
RadioButtonNt::RadioButtonNt(const std::wstring& label, int group_id)
: CheckboxNt(label) {
- SetGroup(group_id);
+ set_group(group_id);
}
RadioButtonNt::~RadioButtonNt() {
@@ -141,7 +141,7 @@
container = container->parent();
if (container) {
std::vector<View*> other;
- container->GetViewsWithGroup(GetGroup(), &other);
+ container->GetViewsInGroup(group(), &other);
std::vector<View*>::iterator i;
for (i = other.begin(); i != other.end(); ++i) {
if (*i != this) {
@@ -170,7 +170,7 @@
View* RadioButtonNt::GetSelectedViewForGroup(int group_id) {
std::vector<View*> views;
- GetWidget()->GetRootView()->GetViewsWithGroup(group_id, &views);
+ GetWidget()->GetRootView()->GetViewsInGroup(group_id, &views);
if (views.empty())
return NULL;
« no previous file with comments | « views/controls/button/native_button.cc ('k') | views/controls/combobox/combobox.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698