diff options
| author | Steve Block <steveblock@google.com> | 2009-07-28 18:20:50 +0100 |
|---|---|---|
| committer | Steve Block <steveblock@google.com> | 2009-07-29 17:02:37 +0100 |
| commit | 4faee09c422a70439129e9fb40dd82f03d42c98d (patch) | |
| tree | ff7acb43fadde0011cc543ff75c6537bd8633de2 /core/java/android/webkit/WebChromeClient.java | |
| parent | 0ac031b3d29c6de90895c875991585812dc7388f (diff) | |
Adds the Java side of the system to show the Geolocation permissions prompt.
Diffstat (limited to 'core/java/android/webkit/WebChromeClient.java')
| -rw-r--r-- | core/java/android/webkit/WebChromeClient.java | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/core/java/android/webkit/WebChromeClient.java b/core/java/android/webkit/WebChromeClient.java index fa78777cd9a3..d52406de7920 100644 --- a/core/java/android/webkit/WebChromeClient.java +++ b/core/java/android/webkit/WebChromeClient.java @@ -227,6 +227,20 @@ public class WebChromeClient { } /** + * Instructs the client to show a prompt to ask the user to set the + * Geolocation permission state for the specified origin. + * @hide pending API council approval. + */ + public void onGeolocationPermissionsShowPrompt(String origin, + GeolocationPermissions.Callback callback) {} + + /** + * Instructs the client to hide the Geolocation permissions prompt. + * @hide pending API council approval. + */ + public void onGeolocationPermissionsHidePrompt() {} + + /** * Tell the client that a JavaScript execution timeout has occured. And the * client may decide whether or not to interrupt the execution. If the * client returns true, the JavaScript will be interrupted. If the client @@ -249,6 +263,5 @@ public class WebChromeClient { * @param sourceID The name of the source file that caused the error. * @hide pending API council. */ - public void addMessageToConsole(String message, int lineNumber, String sourceID) { - } + public void addMessageToConsole(String message, int lineNumber, String sourceID) {} } |
