diff options
author | John Reck <jreck@google.com> | 2012-03-06 14:30:50 -0800 |
---|---|---|
committer | John Reck <jreck@google.com> | 2012-03-06 14:30:50 -0800 |
commit | a7151f16f5233a27b2e2ea837ed801e8ac85ccfd (patch) | |
tree | 10cbd99b95e7208db983dddb5c8466658f934074 /Source/WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp | |
parent | cc845c6b387500f968dea35d760d4a6bddae805a (diff) | |
download | external_webkit-a7151f16f5233a27b2e2ea837ed801e8ac85ccfd.zip external_webkit-a7151f16f5233a27b2e2ea837ed801e8ac85ccfd.tar.gz external_webkit-a7151f16f5233a27b2e2ea837ed801e8ac85ccfd.tar.bz2 |
Support passing focus to the chrome
Bug: 6109044
This is primarily for tab navigation, arrow keys are handled differently
Change-Id: I72968014535afe21bbcb43913bd11cbb676daaf9
Diffstat (limited to 'Source/WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp')
-rw-r--r-- | Source/WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Source/WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp b/Source/WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp index 1328675..5e16152 100644 --- a/Source/WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp +++ b/Source/WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp @@ -161,8 +161,15 @@ void ChromeClientAndroid::focus() } void ChromeClientAndroid::unfocus() { notImplemented(); } -bool ChromeClientAndroid::canTakeFocus(FocusDirection) { notImplemented(); return false; } -void ChromeClientAndroid::takeFocus(FocusDirection) { notImplemented(); } +bool ChromeClientAndroid::canTakeFocus(FocusDirection direction) +{ + return android::WebViewCore::getWebViewCore(m_webFrame->page()->mainFrame()->view())->chromeCanTakeFocus(direction); +} + +void ChromeClientAndroid::takeFocus(FocusDirection direction) +{ + android::WebViewCore::getWebViewCore(m_webFrame->page()->mainFrame()->view())->chromeTakeFocus(direction); +} void ChromeClientAndroid::focusedNodeChanged(Node* node) { |