diff options
author | bryeung@chromium.org <bryeung@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-03 00:38:27 +0000 |
---|---|---|
committer | bryeung@chromium.org <bryeung@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-03 00:38:27 +0000 |
commit | 7f05552488f8f9ea5000512fd1972894aee7ee82 (patch) | |
tree | 0e2ed5a562335907e44307a1d99e9c6ab8d8a3ec /webkit/tools | |
parent | 9d7e8fd4a448491817b816585d6f375d71c0a97a (diff) | |
download | chromium_src-7f05552488f8f9ea5000512fd1972894aee7ee82.zip chromium_src-7f05552488f8f9ea5000512fd1972894aee7ee82.tar.gz chromium_src-7f05552488f8f9ea5000512fd1972894aee7ee82.tar.bz2 |
Re-lands 58186:
Original message:
"""
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=phajdan.jr@chromium.org
Review URL: http://codereview.chromium.org/3354005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58438 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools')
-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 62cf0a4..6a8f5e3 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 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: @@ -537,29 +537,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 @@ -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 = base::VKEY_F1 + (i - 1); + code = app::VKEY_F1 + (i - 1); break; } } |