diff options
| author | Jeff Brown <jeffbrown@google.com> | 2010-07-13 17:46:27 -0700 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2010-07-13 17:46:27 -0700 |
| commit | b47b5d4ad21fc9f19fc8e6c0f453032658cad4cf (patch) | |
| tree | 912ddbedb179477ed845b749e301d9be1ba2caeb /WebKit/android/nav | |
| parent | b34d9d688a0b9fc74c04ac9aba0ad7d6cbe10010 (diff) | |
| parent | 652e9a017a7c5c772361bf57279fae0c26992329 (diff) | |
| download | external_webkit-b47b5d4ad21fc9f19fc8e6c0f453032658cad4cf.zip external_webkit-b47b5d4ad21fc9f19fc8e6c0f453032658cad4cf.tar.gz external_webkit-b47b5d4ad21fc9f19fc8e6c0f453032658cad4cf.tar.bz2 | |
am 652e9a01: Migrate to new keycode constants in keycodes.h.
Merge commit '652e9a017a7c5c772361bf57279fae0c26992329' into gingerbread-plus-aosp
* commit '652e9a017a7c5c772361bf57279fae0c26992329':
Migrate to new keycode constants in keycodes.h.
Diffstat (limited to 'WebKit/android/nav')
| -rw-r--r-- | WebKit/android/nav/WebView.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/WebKit/android/nav/WebView.cpp b/WebKit/android/nav/WebView.cpp index 6c58852..2ed6148 100644 --- a/WebKit/android/nav/WebView.cpp +++ b/WebKit/android/nav/WebView.cpp @@ -637,19 +637,19 @@ void getVisibleRect(WebCore::IntRect* rect) checkException(env); } -static CachedFrame::Direction KeyToDirection(KeyCode keyCode) +static CachedFrame::Direction KeyToDirection(int32_t keyCode) { switch (keyCode) { - case kKeyCodeDpadRight: + case AKEYCODE_DPAD_RIGHT: DBG_NAV_LOGD("keyCode=%s", "right"); return CachedFrame::RIGHT; - case kKeyCodeDpadLeft: + case AKEYCODE_DPAD_LEFT: DBG_NAV_LOGD("keyCode=%s", "left"); return CachedFrame::LEFT; - case kKeyCodeDpadDown: + case AKEYCODE_DPAD_DOWN: DBG_NAV_LOGD("keyCode=%s", "down"); return CachedFrame::DOWN; - case kKeyCodeDpadUp: + case AKEYCODE_DPAD_UP: DBG_NAV_LOGD("keyCode=%s", "up"); return CachedFrame::UP; default: @@ -686,7 +686,7 @@ bool moveCursor(int keyCode, int count, bool ignoreScroll) } m_viewImpl->m_moveGeneration++; - CachedFrame::Direction direction = KeyToDirection((KeyCode) keyCode); + CachedFrame::Direction direction = KeyToDirection(keyCode); const CachedFrame* cachedFrame, * oldFrame = 0; const CachedNode* cursor = root->currentCursor(&oldFrame); WebCore::IntPoint cursorLocation = root->cursorLocation(); |
