summaryrefslogtreecommitdiffstats
path: root/WebKit
diff options
context:
space:
mode:
authorLeon Scroggins <scroggo@google.com>2009-10-23 11:51:20 -0400
committerLeon Scroggins <scroggo@google.com>2009-10-23 11:51:20 -0400
commit28a61bf7b277d2ab6658706076d5e5391102f3ac (patch)
treeb4aeb890137a051a8662d9a529103566b496a168 /WebKit
parentf514da7c6b4891ba0db5043e7be58bb49df9a72c (diff)
downloadexternal_webkit-28a61bf7b277d2ab6658706076d5e5391102f3ac.zip
external_webkit-28a61bf7b277d2ab6658706076d5e5391102f3ac.tar.gz
external_webkit-28a61bf7b277d2ab6658706076d5e5391102f3ac.tar.bz2
Allow java WebView to check the readonly status of a node.
Required for a change to frameworks/base (https://android-git.corp.google.com/g/30939 )
Diffstat (limited to 'WebKit')
-rw-r--r--WebKit/android/nav/WebView.cpp8
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;",