| Index: android_webview/java/src/org/chromium/android_webview/AwContents.java
|
| diff --git a/android_webview/java/src/org/chromium/android_webview/AwContents.java b/android_webview/java/src/org/chromium/android_webview/AwContents.java
|
| index 0481380996096e2664edfce53789d9d95776f335..35dd817e468c228fb9fe4bf5ea8ff9abaffa6934 100644
|
| --- a/android_webview/java/src/org/chromium/android_webview/AwContents.java
|
| +++ b/android_webview/java/src/org/chromium/android_webview/AwContents.java
|
| @@ -89,8 +89,24 @@ public class AwContents {
|
| mCleanupReference.cleanupNow();
|
| }
|
|
|
| + public int findAllSync(String searchString) {
|
| + return nativeFindAllSync(mNativeAwContents, searchString);
|
| + }
|
| +
|
| + public void findAllAsync(String searchString) {
|
| + nativeFindAllAsync(mNativeAwContents, searchString);
|
| + }
|
| +
|
| + public void findNext(boolean forward) {
|
| + nativeFindNext(mNativeAwContents, forward);
|
| + }
|
| +
|
| + public void clearMatches() {
|
| + nativeClearMatches(mNativeAwContents);
|
| + }
|
| +
|
| /**
|
| - * @return load progress of the WebContents
|
| + * @return load progress of the WebContents.
|
| */
|
| public int getMostRecentProgress() {
|
| // WebContentsDelegateAndroid conveniently caches the most recent notified value for us.
|
| @@ -120,6 +136,12 @@ public class AwContents {
|
| mContentsClient.onReceivedHttpAuthRequest(handler, host, realm);
|
| }
|
|
|
| + @CalledByNative
|
| + public void onFindResultReceived(int activeMatchOrdinal, int numberOfMatches,
|
| + boolean isDoneCounting) {
|
| + mContentsClient.onFindResultReceived(activeMatchOrdinal, numberOfMatches, isDoneCounting);
|
| + }
|
| +
|
| //--------------------------------------------------------------------------------------------
|
| // Native methods
|
| //--------------------------------------------------------------------------------------------
|
| @@ -134,4 +156,9 @@ public class AwContents {
|
|
|
| private native void nativeSetIoThreadClient(int nativeAwContents,
|
| AwContentsIoThreadClient ioThreadClient);
|
| +
|
| + private native int nativeFindAllSync(int nativeAwContents, String searchString);
|
| + private native void nativeFindAllAsync(int nativeAwContents, String searchString);
|
| + private native void nativeFindNext(int nativeAwContents, boolean forward);
|
| + private native void nativeClearMatches(int nativeAwContents);
|
| }
|
|
|