| 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 3f826a97f614b2b1a921164564ff77bb8a4d300a..c0a1a6f74e4710b3faf59ed294c8d8ac82071fc3 100644
|
| --- a/android_webview/java/src/org/chromium/android_webview/AwContents.java
|
| +++ b/android_webview/java/src/org/chromium/android_webview/AwContents.java
|
| @@ -102,8 +102,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.
|
| @@ -182,6 +198,12 @@ public class AwContents {
|
| mContentsClient.onReceivedHttpAuthRequest(handler, host, realm);
|
| }
|
|
|
| + @CalledByNative
|
| + public void onFindResultReceived(int activeMatchOrdinal, int numberOfMatches,
|
| + boolean isDoneCounting) {
|
| + mContentsClient.onFindResultReceived(activeMatchOrdinal, numberOfMatches, isDoneCounting);
|
| + }
|
| +
|
| // -------------------------------------------------------------------------------------------
|
| // Helper methods
|
| // -------------------------------------------------------------------------------------------
|
| @@ -270,4 +292,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);
|
| }
|
|
|