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

Unified Diff: views/controls/tree/tree_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/tree/tree_view.h ('k') | views/event.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/tree/tree_view.cc
===================================================================
--- views/controls/tree/tree_view.cc (revision 71220)
+++ views/controls/tree/tree_view.cc (working copy)
@@ -6,8 +6,6 @@
#include <vector>
-#include "app/keyboard_code_conversion_win.h"
-#include "app/keyboard_codes.h"
#include "app/l10n_util_win.h"
#include "app/resource_bundle.h"
#include "app/win/hwnd_util.h"
@@ -21,6 +19,8 @@
#include "gfx/icon_util.h"
#include "gfx/point.h"
#include "grit/app_resources.h"
+#include "ui/base/keycodes/keyboard_codes.h"
+#include "ui/base/keycodes/keyboard_code_conversion_win.h"
#include "views/focus/focus_manager.h"
#include "views/widget/widget.h"
@@ -441,7 +441,7 @@
NMTVKEYDOWN* key_down_message =
reinterpret_cast<NMTVKEYDOWN*>(l_param);
controller_->OnTreeViewKeyDown(
- app::KeyboardCodeForWindowsKeyCode(key_down_message->wVKey));
+ ui::KeyboardCodeForWindowsKeyCode(key_down_message->wVKey));
}
break;
@@ -451,7 +451,7 @@
return 0;
}
-bool TreeView::OnKeyDown(app::KeyboardCode virtual_key_code) {
+bool TreeView::OnKeyDown(ui::KeyboardCode virtual_key_code) {
if (virtual_key_code == VK_F2) {
if (!GetEditingNode()) {
TreeModelNode* selected_node = GetSelectedNode();
@@ -459,7 +459,7 @@
StartEditing(selected_node);
}
return true;
- } else if (virtual_key_code == app::VKEY_RETURN && !process_enter_) {
+ } else if (virtual_key_code == ui::VKEY_RETURN && !process_enter_) {
Widget* widget = GetWidget();
DCHECK(widget);
Accelerator accelerator(Accelerator(virtual_key_code,
« no previous file with comments | « views/controls/tree/tree_view.h ('k') | views/event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698