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

Unified Diff: chrome/browser/ui/views/wrench_menu.cc

Issue 7349021: Convert some more view methods to the ui/views style. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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
Index: chrome/browser/ui/views/wrench_menu.cc
===================================================================
--- chrome/browser/ui/views/wrench_menu.cc (revision 92600)
+++ chrome/browser/ui/views/wrench_menu.cc (working copy)
@@ -351,7 +351,7 @@
// All buttons are given the same width.
int width = GetMaxChildViewPreferredWidth();
for (int i = 0; i < child_count(); ++i)
- GetChildViewAt(i)->SetBounds(i * width, 0, width, height());
+ child_at(i)->SetBounds(i * width, 0, width, height());
}
// ButtonListener
@@ -364,7 +364,7 @@
int GetMaxChildViewPreferredWidth() {
int width = 0;
for (int i = 0; i < child_count(); ++i)
- width = std::max(width, GetChildViewAt(i)->GetPreferredSize().width());
+ width = std::max(width, child_at(i)->GetPreferredSize().width());
return width;
}
« no previous file with comments | « chrome/browser/ui/views/infobars/infobar_view.cc ('k') | chrome/test/interactive_ui/view_event_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698