summaryrefslogtreecommitdiffstats
path: root/core/java/android/webkit/WebView.java
diff options
context:
space:
mode:
authorVictoria Lease <violets@google.com>2012-03-22 15:53:48 -0700
committerVictoria Lease <violets@google.com>2012-03-26 08:49:49 -0700
commitd405a433e66a7bff086c5ba5653ae4268b2b994d (patch)
treeb2e3d77a95a2ada895c15b43510336e7f74eed3c /core/java/android/webkit/WebView.java
parent2e842a58ebbc3a8a0599dfb0c19d7cda7ed21e5f (diff)
downloadframeworks_base-d405a433e66a7bff086c5ba5653ae4268b2b994d.zip
frameworks_base-d405a433e66a7bff086c5ba5653ae4268b2b994d.tar.gz
frameworks_base-d405a433e66a7bff086c5ba5653ae4268b2b994d.tar.bz2
move FindListener into WebView
Also took advantage of the opportunity to adjust the javadoc. Bug: 6052412 Change-Id: I3de2cc6f2b5af20acb87d6e0a105ac12b1be679b
Diffstat (limited to 'core/java/android/webkit/WebView.java')
-rw-r--r--core/java/android/webkit/WebView.java24
1 files changed, 21 insertions, 3 deletions
diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java
index dd373de..d225594 100644
--- a/core/java/android/webkit/WebView.java
+++ b/core/java/android/webkit/WebView.java
@@ -312,6 +312,24 @@ public class WebView extends AbsoluteLayout
public static final String SCHEME_GEO = "geo:0,0?q=";
/**
+ * Interface to listen for find results.
+ * @hide
+ */
+ public interface FindListener {
+ /**
+ * Notify the listener about progress made by a find operation.
+ *
+ * @param numberOfMatches How many matches have been found.
+ * @param activeMatchOrdinal The zero-based ordinal of the currently selected match.
+ * @param isDoneCounting Whether the find operation has actually completed. The listener
+ * may be notified multiple times while the operation is underway, and the numberOfMatches
+ * value should not be considered final unless isDoneCounting is true.
+ */
+ public void onFindResultReceived(int numberOfMatches, int activeMatchOrdinal,
+ boolean isDoneCounting);
+ }
+
+ /**
* Interface to listen for new pictures as they change.
* @deprecated This interface is now obsolete.
*/
@@ -1228,10 +1246,10 @@ public class WebView extends AbsoluteLayout
}
/**
- * Register the interface to be used when a find-on-page result has become
- * available. This will replace the current handler.
+ * Register the listener to be notified as find-on-page operations progress.
+ * This will replace the current listener.
*
- * @param listener An implementation of FindListener
+ * @param listener An implementation of {@link WebView#FindListener}.
* @hide
*/
public void setFindListener(FindListener listener) {