diff options
author | John Reck <jreck@google.com> | 2012-01-31 13:24:40 -0800 |
---|---|---|
committer | John Reck <jreck@google.com> | 2012-01-31 13:37:06 -0800 |
commit | 6978cfc9ce9dcd4b7c83d9f8b3ecca9cc52474c1 (patch) | |
tree | dee49c9601536179e389e47d1858a6558c7a6d6d /Source/WebKit/android/jni/WebViewCore.cpp | |
parent | dea0c131566f424923425970fe5621305d136e5a (diff) | |
download | external_webkit-6978cfc9ce9dcd4b7c83d9f8b3ecca9cc52474c1.zip external_webkit-6978cfc9ce9dcd4b7c83d9f8b3ecca9cc52474c1.tar.gz external_webkit-6978cfc9ce9dcd4b7c83d9f8b3ecca9cc52474c1.tar.bz2 |
Support select all
Framework CL: 161649
Change-Id: I16e889da0199c16270ed0576511eb21d63434ff0
Diffstat (limited to 'Source/WebKit/android/jni/WebViewCore.cpp')
-rw-r--r-- | Source/WebKit/android/jni/WebViewCore.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/WebKit/android/jni/WebViewCore.cpp b/Source/WebKit/android/jni/WebViewCore.cpp index cb08171..43b0f1d 100644 --- a/Source/WebKit/android/jni/WebViewCore.cpp +++ b/Source/WebKit/android/jni/WebViewCore.cpp @@ -5021,6 +5021,12 @@ static void SelectWordAt(JNIEnv* env, jobject obj, jint nativeClass, jint x, jin viewImpl->selectWordAt(x, y); } +static void SelectAll(JNIEnv* env, jobject obj, jint nativeClass) +{ + WebViewCore* viewImpl = reinterpret_cast<WebViewCore*>(nativeClass); + viewImpl->mainFrame()->selection()->selectAll(); +} + // ---------------------------------------------------------------------------- /* @@ -5149,6 +5155,8 @@ static JNINativeMethod gJavaWebViewCoreMethods[] = { (void*) ClearSelection }, { "nativeSelectWordAt", "(III)V", (void*) SelectWordAt }, + { "nativeSelectAll", "(I)V", + (void*) SelectAll }, }; int registerWebViewCore(JNIEnv* env) |