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

Unified Diff: views/controls/tabbed_pane/native_tabbed_pane_win.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: views/controls/tabbed_pane/native_tabbed_pane_win.cc
===================================================================
--- views/controls/tabbed_pane/native_tabbed_pane_win.cc (revision 92600)
+++ views/controls/tabbed_pane/native_tabbed_pane_win.cc (working copy)
@@ -57,7 +57,7 @@
// Switches to the tab page identified by the given index.
void SwitchToPage(View* host, View* page) {
for (int i = 0; i < host->child_count(); ++i) {
- View* child = host->GetChildViewAt(i);
+ View* child = host->child_at(i);
// The child might not have been laid out yet.
if (child == page)
child->SetBoundsRect(host->GetContentsBounds());
@@ -77,7 +77,7 @@
virtual void Layout(View* host) {
gfx::Rect bounds(host->GetContentsBounds());
for (int i = 0; i < host->child_count(); ++i) {
- View* child = host->GetChildViewAt(i);
+ View* child = host->child_at(i);
// We only layout visible children, since it may be expensive.
if (child->IsVisible() && child->bounds() != bounds)
child->SetBoundsRect(bounds);
@@ -88,7 +88,7 @@
// First, query the preferred sizes to determine a good width.
int width = 0;
for (int i = 0; i < host->child_count(); ++i) {
- View* page = host->GetChildViewAt(i);
+ View* page = host->child_at(i);
width = std::max(width, page->GetPreferredSize().width());
}
// After we know the width, decide on the height.
@@ -98,7 +98,7 @@
virtual int GetPreferredHeightForWidth(View* host, int width) {
int height = 0;
for (int i = 0; i < host->child_count(); ++i) {
- View* page = host->GetChildViewAt(i);
+ View* page = host->child_at(i);
height = std::max(height, page->GetHeightForWidth(width));
}
return height;
« no previous file with comments | « views/controls/tabbed_pane/native_tabbed_pane_gtk.cc ('k') | views/controls/textfield/native_textfield_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698