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

Unified Diff: views/focus/focus_search.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
« no previous file with comments | « views/examples/widget_example.cc ('k') | views/layout/box_layout.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/focus/focus_search.cc
===================================================================
--- views/focus/focus_search.cc (revision 92600)
+++ views/focus/focus_search.cc (working copy)
@@ -37,10 +37,8 @@
if (!starting_view) {
// Default to the first/last child
- starting_view =
- reverse ?
- root_->GetChildViewAt(root_->child_count() - 1) :
- root_->GetChildViewAt(0);
+ starting_view = reverse ? root_->child_at(root_->child_count() - 1) :
+ root_->child_at(0);
// If there was no starting view, then the one we select is a potential
// focus candidate.
check_starting_view = true;
@@ -159,7 +157,7 @@
// First let's try the left child.
if (can_go_down) {
if (starting_view->has_children()) {
- View* v = FindNextFocusableViewImpl(starting_view->GetChildViewAt(0),
+ View* v = FindNextFocusableViewImpl(starting_view->child_at(0),
true, false, true, skip_group_id,
focus_traversable,
focus_traversable_view);
@@ -225,7 +223,7 @@
if (starting_view->has_children()) {
View* view =
- starting_view->GetChildViewAt(starting_view->child_count() - 1);
+ starting_view->child_at(starting_view->child_count() - 1);
View* v = FindPreviousFocusableViewImpl(view, true, false, true,
skip_group_id,
focus_traversable,
« no previous file with comments | « views/examples/widget_example.cc ('k') | views/layout/box_layout.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698