diff options
| author | Mathew Inwood <mathewi@google.com> | 2011-07-04 15:15:27 +0100 |
|---|---|---|
| committer | Mathew Inwood <mathewi@google.com> | 2011-07-07 12:56:39 +0100 |
| commit | bdaa1aafd590aa88e16cee166f8e78404d8023a4 (patch) | |
| tree | 072d66d3b9ab26f2af4aceac04e28c341e151073 /core/java/android/webkit/SearchBox.java | |
| parent | 2c742c2aebf20a0534c822eb8a36da99d9df79fe (diff) | |
SearchBox API to determine if it's supported by the current page.
Change-Id: I0119243ed0e19e237c1f51de887af5c954f96693
Diffstat (limited to 'core/java/android/webkit/SearchBox.java')
| -rw-r--r-- | core/java/android/webkit/SearchBox.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/java/android/webkit/SearchBox.java b/core/java/android/webkit/SearchBox.java index 57c7b035efad..5075302fb936 100644 --- a/core/java/android/webkit/SearchBox.java +++ b/core/java/android/webkit/SearchBox.java @@ -83,10 +83,19 @@ public interface SearchBox { void removeSearchBoxListener(SearchBoxListener l); /** + * Indicates if the searchbox API is supported in the current page. + */ + void isSupported(IsSupportedCallback callback); + + /** * Listeners (if any) will be called on the thread that created the * webview. */ interface SearchBoxListener { void onSuggestionsReceived(String query, List<String> suggestions); } + + interface IsSupportedCallback { + void searchBoxIsSupported(boolean supported); + } } |
