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

Unified Diff: chrome/browser/ui/views/accessible_pane_view.cc

Issue 6246001: Move app/key* to ui/base/keycodes/* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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 | « chrome/browser/ui/views/accelerator_table_gtk.cc ('k') | chrome/browser/ui/views/bookmark_bar_view_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/accessible_pane_view.cc
===================================================================
--- chrome/browser/ui/views/accessible_pane_view.cc (revision 71220)
+++ chrome/browser/ui/views/accessible_pane_view.cc (working copy)
@@ -18,11 +18,11 @@
: pane_has_focus_(false),
ALLOW_THIS_IN_INITIALIZER_LIST(method_factory_(this)),
focus_manager_(NULL),
- home_key_(app::VKEY_HOME, false, false, false),
- end_key_(app::VKEY_END, false, false, false),
- escape_key_(app::VKEY_ESCAPE, false, false, false),
- left_key_(app::VKEY_LEFT, false, false, false),
- right_key_(app::VKEY_RIGHT, false, false, false),
+ home_key_(ui::VKEY_HOME, false, false, false),
+ end_key_(ui::VKEY_END, false, false, false),
+ escape_key_(ui::VKEY_ESCAPE, false, false, false),
+ left_key_(ui::VKEY_LEFT, false, false, false),
+ right_key_(ui::VKEY_RIGHT, false, false, false),
last_focused_view_storage_id_(-1) {
focus_search_.reset(new views::FocusSearch(this, true, true));
}
@@ -161,21 +161,21 @@
}
switch (accelerator.GetKeyCode()) {
- case app::VKEY_ESCAPE:
+ case ui::VKEY_ESCAPE:
RemovePaneFocus();
RestoreLastFocusedView();
return true;
- case app::VKEY_LEFT:
+ case ui::VKEY_LEFT:
focus_manager_->AdvanceFocus(true);
return true;
- case app::VKEY_RIGHT:
+ case ui::VKEY_RIGHT:
focus_manager_->AdvanceFocus(false);
return true;
- case app::VKEY_HOME:
+ case ui::VKEY_HOME:
focus_manager_->SetFocusedViewWithReason(
GetFirstFocusableChild(), views::FocusManager::kReasonFocusTraversal);
return true;
- case app::VKEY_END:
+ case ui::VKEY_END:
focus_manager_->SetFocusedViewWithReason(
GetLastFocusableChild(), views::FocusManager::kReasonFocusTraversal);
return true;
« no previous file with comments | « chrome/browser/ui/views/accelerator_table_gtk.cc ('k') | chrome/browser/ui/views/bookmark_bar_view_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698