diff options
author | Derek Sollenberger <djsollen@google.com> | 2009-06-29 13:46:51 -0400 |
---|---|---|
committer | Derek Sollenberger <djsollen@google.com> | 2009-06-29 13:46:51 -0400 |
commit | 5c6846a9fb474dce40db8859579e0d6a3f802787 (patch) | |
tree | cec8e36b466f125f9c7ff364c140b8d71300e884 /WebKit/android/nav/WebView.cpp | |
parent | 9ef86237529ed76780c62ff0e49c8a0a85a6562c (diff) | |
download | external_webkit-5c6846a9fb474dce40db8859579e0d6a3f802787.zip external_webkit-5c6846a9fb474dce40db8859579e0d6a3f802787.tar.gz external_webkit-5c6846a9fb474dce40db8859579e0d6a3f802787.tar.bz2 |
Adding support for plugins to request the keyboard.
Diffstat (limited to 'WebKit/android/nav/WebView.cpp')
-rw-r--r-- | WebKit/android/nav/WebView.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/WebKit/android/nav/WebView.cpp b/WebKit/android/nav/WebView.cpp index 022ca6f..b220617 100644 --- a/WebKit/android/nav/WebView.cpp +++ b/WebKit/android/nav/WebView.cpp @@ -134,7 +134,7 @@ WebView(JNIEnv* env, jobject javaWebView, int viewImpl) m_javaGlue.m_getScaledMaxYScroll = GetJMethod(env, clazz, "getScaledMaxYScroll", "()I"); m_javaGlue.m_getVisibleRect = GetJMethod(env, clazz, "sendOurVisibleRect", "()Landroid/graphics/Rect;"); m_javaGlue.m_rebuildWebTextView = GetJMethod(env, clazz, "rebuildWebTextView", "()V"); - m_javaGlue.m_displaySoftKeyboard = GetJMethod(env, clazz, "displaySoftKeyboard", "()V"); + m_javaGlue.m_displaySoftKeyboard = GetJMethod(env, clazz, "displaySoftKeyboard", "(Z)V"); m_javaGlue.m_viewInvalidate = GetJMethod(env, clazz, "viewInvalidate", "()V"); m_javaGlue.m_viewInvalidateRect = GetJMethod(env, clazz, "viewInvalidate", "(IIII)V"); m_javaGlue.m_postInvalidateDelayed = GetJMethod(env, clazz, @@ -940,7 +940,7 @@ bool motionUp(int x, int y, int slop) viewInvalidate(); if (result->isTextField() || result->isTextArea()) { rebuildWebTextView(); - displaySoftKeyboard(); + displaySoftKeyboard(true); } else { setFollowedLink(true); if (type != NORMAL_CACHEDNODETYPE) @@ -1256,11 +1256,11 @@ void rebuildWebTextView() checkException(env); } -void displaySoftKeyboard() +void displaySoftKeyboard(bool isTextView) { JNIEnv* env = JSC::Bindings::getJNIEnv(); env->CallVoidMethod(m_javaGlue.object(env).get(), - m_javaGlue.m_displaySoftKeyboard); + m_javaGlue.m_displaySoftKeyboard, isTextView); checkException(env); } |