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

Unified Diff: chrome/test/automated_ui_tests/automated_ui_tests.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/test/automated_ui_tests/automated_ui_tests.h ('k') | chrome/test/automation/window_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/automated_ui_tests/automated_ui_tests.cc
===================================================================
--- chrome/test/automated_ui_tests/automated_ui_tests.cc (revision 71220)
+++ chrome/test/automated_ui_tests/automated_ui_tests.cc (working copy)
@@ -6,7 +6,6 @@
#include <string>
#include <vector>
-#include "app/keyboard_codes.h"
#include "base/command_line.h"
#include "base/environment.h"
#include "base/file_util.h"
@@ -32,6 +31,7 @@
#include "chrome/test/automation/window_proxy.h"
#include "chrome/test/ui/ui_test.h"
#include "googleurl/src/gurl.h"
+#include "ui/base/keycodes/keyboard_codes.h"
#if defined(TOOLKIT_VIEWS)
#include "views/view.h"
@@ -487,35 +487,35 @@
}
bool AutomatedUITest::PressDownArrow() {
- return SimulateKeyPressInActiveWindow(app::VKEY_DOWN, 0);
+ return SimulateKeyPressInActiveWindow(ui::VKEY_DOWN, 0);
}
bool AutomatedUITest::PressEnterKey() {
- return SimulateKeyPressInActiveWindow(app::VKEY_RETURN, 0);
+ return SimulateKeyPressInActiveWindow(ui::VKEY_RETURN, 0);
}
bool AutomatedUITest::PressEscapeKey() {
- return SimulateKeyPressInActiveWindow(app::VKEY_ESCAPE, 0);
+ return SimulateKeyPressInActiveWindow(ui::VKEY_ESCAPE, 0);
}
bool AutomatedUITest::PressPageDown() {
- return SimulateKeyPressInActiveWindow(app::VKEY_PRIOR, 0);
+ return SimulateKeyPressInActiveWindow(ui::VKEY_PRIOR, 0);
}
bool AutomatedUITest::PressPageUp() {
- return SimulateKeyPressInActiveWindow(app::VKEY_NEXT, 0);
+ return SimulateKeyPressInActiveWindow(ui::VKEY_NEXT, 0);
}
bool AutomatedUITest::PressSpaceBar() {
- return SimulateKeyPressInActiveWindow(app::VKEY_SPACE, 0);
+ return SimulateKeyPressInActiveWindow(ui::VKEY_SPACE, 0);
}
bool AutomatedUITest::PressTabKey() {
- return SimulateKeyPressInActiveWindow(app::VKEY_TAB, 0);
+ return SimulateKeyPressInActiveWindow(ui::VKEY_TAB, 0);
}
bool AutomatedUITest::PressUpArrow() {
- return SimulateKeyPressInActiveWindow(app::VKEY_UP, 0);
+ return SimulateKeyPressInActiveWindow(ui::VKEY_UP, 0);
}
bool AutomatedUITest::StarPage() {
@@ -605,7 +605,7 @@
return true;
}
-bool AutomatedUITest::SimulateKeyPressInActiveWindow(app::KeyboardCode key,
+bool AutomatedUITest::SimulateKeyPressInActiveWindow(ui::KeyboardCode key,
int flags) {
scoped_refptr<WindowProxy> window(automation()->GetActiveWindow());
if (window.get() == NULL) {
« no previous file with comments | « chrome/test/automated_ui_tests/automated_ui_tests.h ('k') | chrome/test/automation/window_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698