diff options
author | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-02 19:54:58 +0000 |
---|---|---|
committer | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-02 19:54:58 +0000 |
commit | 0cc3dfe387313821853e658a6e2fb3b729eac9e5 (patch) | |
tree | 6bdf4d23c62ae78cafc6e7c5a2599cce70dfef22 /webkit/tools/test_shell/event_sending_controller.cc | |
parent | 3c70591cc7d0d8cc162c10f7d3ac3b2ac15e4e69 (diff) | |
download | chromium_src-0cc3dfe387313821853e658a6e2fb3b729eac9e5.zip chromium_src-0cc3dfe387313821853e658a6e2fb3b729eac9e5.tar.gz chromium_src-0cc3dfe387313821853e658a6e2fb3b729eac9e5.tar.bz2 |
Revert 58388 - Revert 58215 - Revert 58186 - 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
TBR=bryeung@chromium.org
TBR=phajdan.jr@chromium.org
Review URL: http://codereview.chromium.org/3361003
TBR=bryeung@chromium.org
Review URL: http://codereview.chromium.org/3337006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58390 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell/event_sending_controller.cc')
-rw-r--r-- | webkit/tools/test_shell/event_sending_controller.cc | 36 |
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 6a8f5e3..62cf0a4 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" @@ -217,16 +217,16 @@ bool GetEditCommand(const WebKeyboardEvent& event, std::string* name) { return false; switch (event.windowsKeyCode) { - case app::VKEY_LEFT: + case base::VKEY_LEFT: *name = "MoveToBeginningOfLine"; break; - case app::VKEY_RIGHT: + case base::VKEY_RIGHT: *name = "MoveToEndOfLine"; break; - case app::VKEY_UP: + case base::VKEY_UP: *name = "MoveToBeginningOfDocument"; break; - case app::VKEY_DOWN: + case base::VKEY_DOWN: *name = "MoveToEndOfDocument"; break; default: @@ -537,29 +537,29 @@ void EventSendingController::keyDown( bool needs_shift_key_modifier = false; if (L"\n" == code_str) { generate_char = true; - text = code = app::VKEY_RETURN; + text = code = base::VKEY_RETURN; } else if (L"rightArrow" == code_str) { - code = app::VKEY_RIGHT; + code = base::VKEY_RIGHT; } else if (L"downArrow" == code_str) { - code = app::VKEY_DOWN; + code = base::VKEY_DOWN; } else if (L"leftArrow" == code_str) { - code = app::VKEY_LEFT; + code = base::VKEY_LEFT; } else if (L"upArrow" == code_str) { - code = app::VKEY_UP; + code = base::VKEY_UP; } else if (L"insert" == code_str) { - code = app::VKEY_INSERT; + code = base::VKEY_INSERT; } else if (L"delete" == code_str) { - code = app::VKEY_BACK; + code = base::VKEY_BACK; } else if (L"pageUp" == code_str) { - code = app::VKEY_PRIOR; + code = base::VKEY_PRIOR; } else if (L"pageDown" == code_str) { - code = app::VKEY_NEXT; + code = base::VKEY_NEXT; } else if (L"home" == code_str) { - code = app::VKEY_HOME; + code = base::VKEY_HOME; } else if (L"end" == code_str) { - code = app::VKEY_END; + code = base::VKEY_END; } else if (L"printScreen" == code_str) { - code = app::VKEY_SNAPSHOT; + code = base::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 @@ -569,7 +569,7 @@ void EventSendingController::keyDown( function_key_name += L"F"; function_key_name += UTF8ToWide(base::IntToString(i)); if (function_key_name == code_str) { - code = app::VKEY_F1 + (i - 1); + code = base::VKEY_F1 + (i - 1); break; } } |