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

Unified Diff: views/controls/link.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/combobox/combobox.cc ('k') | views/controls/menu/menu_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/link.cc
===================================================================
--- views/controls/link.cc (revision 71220)
+++ views/controls/link.cc (working copy)
@@ -8,10 +8,10 @@
#include <gdk/gdk.h>
#endif
-#include "app/keyboard_codes.h"
#include "base/logging.h"
#include "gfx/color_utils.h"
#include "gfx/font.h"
+#include "ui/base/keycodes/keyboard_codes.h"
#include "views/event.h"
#if defined(OS_LINUX)
@@ -126,8 +126,8 @@
}
bool Link::OnKeyPressed(const KeyEvent& e) {
- bool activate = ((e.GetKeyCode() == app::VKEY_SPACE) ||
- (e.GetKeyCode() == app::VKEY_RETURN));
+ bool activate = ((e.GetKeyCode() == ui::VKEY_SPACE) ||
+ (e.GetKeyCode() == ui::VKEY_RETURN));
if (!activate)
return false;
@@ -144,8 +144,8 @@
bool Link::SkipDefaultKeyEventProcessing(const KeyEvent& e) {
// Make sure we don't process space or enter as accelerators.
- return (e.GetKeyCode() == app::VKEY_SPACE) ||
- (e.GetKeyCode() == app::VKEY_RETURN);
+ return (e.GetKeyCode() == ui::VKEY_SPACE) ||
+ (e.GetKeyCode() == ui::VKEY_RETURN);
}
AccessibilityTypes::Role Link::GetAccessibleRole() {
« no previous file with comments | « views/controls/combobox/combobox.cc ('k') | views/controls/menu/menu_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698