diff options
author | Android (Google) Code Review <android-gerrit@google.com> | 2009-10-23 12:21:56 -0400 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2009-10-23 12:21:56 -0400 |
commit | 7160f16bdcd50dec1aa684e0e1753427057fb218 (patch) | |
tree | fe3354b4834ab580f1d24be245ff3454ee852bae | |
parent | f107b76121f90297b7976f7398a7ce40b285d17b (diff) | |
parent | 28a61bf7b277d2ab6658706076d5e5391102f3ac (diff) | |
download | external_webkit-7160f16bdcd50dec1aa684e0e1753427057fb218.zip external_webkit-7160f16bdcd50dec1aa684e0e1753427057fb218.tar.gz external_webkit-7160f16bdcd50dec1aa684e0e1753427057fb218.tar.bz2 |
Merge change I28a61bf7 into eclair-mr2
* changes:
Allow java WebView to check the readonly status of a node.
-rw-r--r-- | WebKit/android/nav/WebView.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/WebKit/android/nav/WebView.cpp b/WebKit/android/nav/WebView.cpp index 8bf22f0..8fff1b9 100644 --- a/WebKit/android/nav/WebView.cpp +++ b/WebKit/android/nav/WebView.cpp @@ -1565,6 +1565,12 @@ static bool nativeCursorIsAnchor(JNIEnv *env, jobject obj) return node ? node->isAnchor() : false; } +static bool nativeCursorIsReadOnly(JNIEnv *env, jobject obj) +{ + const CachedNode* node = getCursorNode(env, obj); + return node ? node->isReadOnly() : false; +} + static bool nativeCursorIsTextInput(JNIEnv *env, jobject obj) { const CachedNode* node = getCursorNode(env, obj); @@ -2098,6 +2104,8 @@ static JNINativeMethod gJavaWebViewMethods[] = { (void*) nativeCursorIntersects }, { "nativeCursorIsAnchor", "()Z", (void*) nativeCursorIsAnchor }, + { "nativeCursorIsReadOnly", "()Z", + (void*) nativeCursorIsReadOnly }, { "nativeCursorIsTextInput", "()Z", (void*) nativeCursorIsTextInput }, { "nativeCursorPosition", "()Landroid/graphics/Point;", |