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

Unified Diff: views/focus/focus_search.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/focus/focus_manager_unittest.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 86083)
+++ views/focus/focus_search.cc (working copy)
@@ -33,7 +33,7 @@
View* initial_starting_view = starting_view;
int starting_view_group = -1;
if (starting_view)
- starting_view_group = starting_view->GetGroup();
+ starting_view_group = starting_view->group();
if (!starting_view) {
// Default to the first/last child
@@ -97,7 +97,7 @@
bool FocusSearch::IsViewFocusableCandidate(View* v, int skip_group_id) {
return IsFocusable(v) &&
(v->IsGroupFocusTraversable() || skip_group_id == -1 ||
- v->GetGroup() != skip_group_id);
+ v->group() != skip_group_id);
}
bool FocusSearch::IsFocusable(View* v) {
@@ -109,10 +109,10 @@
View* FocusSearch::FindSelectedViewForGroup(View* view) {
if (view->IsGroupFocusTraversable() ||
- view->GetGroup() == -1) // No group for that view.
+ view->group() == -1) // No group for that view.
return view;
- View* selected_view = view->GetSelectedViewForGroup(view->GetGroup());
+ View* selected_view = view->GetSelectedViewForGroup(view->group());
if (selected_view)
return selected_view;
« no previous file with comments | « views/focus/focus_manager_unittest.cc ('k') | views/layout/box_layout.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698