summaryrefslogtreecommitdiffstats
path: root/webkit/tools
diff options
context:
space:
mode:
authorbryeung@chromium.org <bryeung@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-01 16:39:26 +0000
committerbryeung@chromium.org <bryeung@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-01 16:39:26 +0000
commit1eed61535cb6e15015edac43177ccdc25140855a (patch)
tree843a3c3b42bfaadc54cd6c835e4c313965a0e177 /webkit/tools
parentde6aadf4ddf69c76ddd60e03451fdbcb4061283f (diff)
downloadchromium_src-1eed61535cb6e15015edac43177ccdc25140855a.zip
chromium_src-1eed61535cb6e15015edac43177ccdc25140855a.tar.gz
chromium_src-1eed61535cb6e15015edac43177ccdc25140855a.tar.bz2
Move the keyboard files from base/ to app/.
Also moves the associated classes/enums from base:: to app::. TEST=try bots compile BUG=NONE Review URL: http://codereview.chromium.org/3165064 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58186 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools')
-rw-r--r--webkit/tools/test_shell/event_sending_controller.cc36
1 files changed, 18 insertions, 18 deletions
diff --git a/webkit/tools/test_shell/event_sending_controller.cc b/webkit/tools/test_shell/event_sending_controller.cc
index 4b3c028..02d8078 100644
--- a/webkit/tools/test_shell/event_sending_controller.cc
+++ b/webkit/tools/test_shell/event_sending_controller.cc
@@ -19,10 +19,10 @@
#include <queue>
#include <vector>
+#include "app/keyboard_codes.h"
#include "base/compiler_specific.h"
#include "base/file_path.h"
#include "base/file_util.h"
-#include "base/keyboard_codes.h"
#include "base/logging.h"
#include "base/message_loop.h"
#include "base/time.h"
@@ -215,16 +215,16 @@ bool GetEditCommand(const WebKeyboardEvent& event, std::string* name) {
return false;
switch (event.windowsKeyCode) {
- case base::VKEY_LEFT:
+ case app::VKEY_LEFT:
*name = "MoveToBeginningOfLine";
break;
- case base::VKEY_RIGHT:
+ case app::VKEY_RIGHT:
*name = "MoveToEndOfLine";
break;
- case base::VKEY_UP:
+ case app::VKEY_UP:
*name = "MoveToBeginningOfDocument";
break;
- case base::VKEY_DOWN:
+ case app::VKEY_DOWN:
*name = "MoveToEndOfDocument";
break;
default:
@@ -555,29 +555,29 @@ void EventSendingController::keyDown(
bool needs_shift_key_modifier = false;
if (L"\n" == code_str) {
generate_char = true;
- text = code = base::VKEY_RETURN;
+ text = code = app::VKEY_RETURN;
} else if (L"rightArrow" == code_str) {
- code = base::VKEY_RIGHT;
+ code = app::VKEY_RIGHT;
} else if (L"downArrow" == code_str) {
- code = base::VKEY_DOWN;
+ code = app::VKEY_DOWN;
} else if (L"leftArrow" == code_str) {
- code = base::VKEY_LEFT;
+ code = app::VKEY_LEFT;
} else if (L"upArrow" == code_str) {
- code = base::VKEY_UP;
+ code = app::VKEY_UP;
} else if (L"insert" == code_str) {
- code = base::VKEY_INSERT;
+ code = app::VKEY_INSERT;
} else if (L"delete" == code_str) {
- code = base::VKEY_BACK;
+ code = app::VKEY_BACK;
} else if (L"pageUp" == code_str) {
- code = base::VKEY_PRIOR;
+ code = app::VKEY_PRIOR;
} else if (L"pageDown" == code_str) {
- code = base::VKEY_NEXT;
+ code = app::VKEY_NEXT;
} else if (L"home" == code_str) {
- code = base::VKEY_HOME;
+ code = app::VKEY_HOME;
} else if (L"end" == code_str) {
- code = base::VKEY_END;
+ code = app::VKEY_END;
} else if (L"printScreen" == code_str) {
- code = base::VKEY_SNAPSHOT;
+ code = app::VKEY_SNAPSHOT;
} else {
// Compare the input string with the function-key names defined by the
// DOM spec (i.e. "F1",...,"F24"). If the input string is a function-key
@@ -587,7 +587,7 @@ void EventSendingController::keyDown(
function_key_name += L"F";
function_key_name += UTF8ToWide(base::IntToString(i));
if (function_key_name == code_str) {
- code = base::VKEY_F1 + (i - 1);
+ code = app::VKEY_F1 + (i - 1);
break;
}
}