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

Unified Diff: chrome/browser/ui/views/autocomplete/touch_autocomplete_popup_contents_view.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/autocomplete/touch_autocomplete_popup_contents_view.cc
===================================================================
--- chrome/browser/ui/views/autocomplete/touch_autocomplete_popup_contents_view.cc (revision 92600)
+++ chrome/browser/ui/views/autocomplete/touch_autocomplete_popup_contents_view.cc (working copy)
@@ -107,7 +107,7 @@
int popup_height = 0;
for (size_t i = 0; i < model_->result().size(); ++i) {
popup_height = std::max(popup_height,
- GetChildViewAt(i)->GetPreferredSize().height());
+ child_at(i)->GetPreferredSize().height());
}
popup_height = std::max(popup_height, opt_in_view_ ?
opt_in_view_->GetPreferredSize().height() : 0);
@@ -126,8 +126,8 @@
TouchAutocompletePopupContentsView::GetVisibleChildren() {
std::vector<View*> visible_children;
for (int i = 0; i < child_count(); ++i) {
- View* v = GetChildViewAt(i);
- if (GetChildViewAt(i)->IsVisible())
+ View* v = child_at(i);
+ if (child_at(i)->IsVisible())
visible_children.push_back(v);
}
return visible_children;

Powered by Google App Engine
This is Rietveld 408576698