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

Unified Diff: views/focus/focus_manager.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/examples/radio_button_example.cc ('k') | views/focus/focus_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/focus/focus_manager.cc
===================================================================
--- views/focus/focus_manager.cc (revision 86083)
+++ views/focus/focus_manager.cc (working copy)
@@ -125,13 +125,12 @@
// Intercept arrow key messages to switch between grouped views.
ui::KeyboardCode key_code = event.key_code();
- if (focused_view_ && focused_view_->GetGroup() != -1 &&
+ if (focused_view_ && focused_view_->group() != -1 &&
(key_code == ui::VKEY_UP || key_code == ui::VKEY_DOWN ||
key_code == ui::VKEY_LEFT || key_code == ui::VKEY_RIGHT)) {
bool next = (key_code == ui::VKEY_RIGHT || key_code == ui::VKEY_DOWN);
std::vector<View*> views;
- focused_view_->parent()->GetViewsWithGroup(focused_view_->GetGroup(),
- &views);
+ focused_view_->parent()->GetViewsInGroup(focused_view_->group(), &views);
std::vector<View*>::const_iterator iter = std::find(views.begin(),
views.end(),
focused_view_);
« no previous file with comments | « views/examples/radio_button_example.cc ('k') | views/focus/focus_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698