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

Unified Diff: views/controls/table/group_table_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 | « views/controls/table/group_table_view.h ('k') | views/controls/table/native_table_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/table/group_table_view.cc
===================================================================
--- views/controls/table/group_table_view.cc (revision 71220)
+++ views/controls/table/group_table_view.cc (working copy)
@@ -63,7 +63,7 @@
}
}
-bool GroupTableView::OnKeyDown(app::KeyboardCode virtual_keycode) {
+bool GroupTableView::OnKeyDown(ui::KeyboardCode virtual_keycode) {
// In a list view, multiple items can be selected but only one item has the
// focus. This creates a problem when the arrow keys are used for navigating
// between items in the list view. An example will make this more clear:
@@ -89,8 +89,8 @@
// detect that one of the arrow keys is pressed. Thus, when it comes time
// for the list view control to actually switch the focus, the right item
// will be selected.
- if ((virtual_keycode != app::VKEY_UP) &&
- (virtual_keycode != app::VKEY_DOWN)) {
+ if ((virtual_keycode != ui::VKEY_UP) &&
+ (virtual_keycode != ui::VKEY_DOWN)) {
return TableView::OnKeyDown(virtual_keycode);
}
@@ -118,10 +118,10 @@
// If the user pressed the UP key, then the focus should be set to the
// topmost element in the group. If the user pressed the DOWN key, the focus
// should be set to the bottommost element.
- if (virtual_keycode == app::VKEY_UP) {
+ if (virtual_keycode == ui::VKEY_UP) {
SetFocusOnItem(group_range.start);
} else {
- DCHECK_EQ(virtual_keycode, app::VKEY_DOWN);
+ DCHECK_EQ(virtual_keycode, ui::VKEY_DOWN);
SetFocusOnItem(group_range.start + group_range.length - 1);
}
« no previous file with comments | « views/controls/table/group_table_view.h ('k') | views/controls/table/native_table_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698