From bdaa1aafd590aa88e16cee166f8e78404d8023a4 Mon Sep 17 00:00:00 2001 From: Mathew Inwood Date: Mon, 4 Jul 2011 15:15:27 +0100 Subject: SearchBox API to determine if it's supported by the current page. Change-Id: I0119243ed0e19e237c1f51de887af5c954f96693 --- core/java/android/webkit/SearchBox.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'core/java/android/webkit/SearchBox.java') 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 @@ -82,6 +82,11 @@ public interface SearchBox { void addSearchBoxListener(SearchBoxListener l); 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. @@ -89,4 +94,8 @@ public interface SearchBox { interface SearchBoxListener { void onSuggestionsReceived(String query, List suggestions); } + + interface IsSupportedCallback { + void searchBoxIsSupported(boolean supported); + } } -- cgit v1.2.3