diff options
author | Mike LeBeau <mlebeau@android.com> | 2009-09-29 19:40:28 -0700 |
---|---|---|
committer | Mike LeBeau <mlebeau@android.com> | 2009-09-29 19:40:28 -0700 |
commit | 2e4dbe70e7c0fe003dab0837fd1dba2703bdd6e2 (patch) | |
tree | 321d46e13922fcdf8e7bec427730a6ba32f1ff61 /core/java/android/webkit/GeolocationPermissions.java | |
parent | a4c96aa2fadb0c8642a2c8da5f8368cc3de06ed0 (diff) | |
download | frameworks_base-2e4dbe70e7c0fe003dab0837fd1dba2703bdd6e2.zip frameworks_base-2e4dbe70e7c0fe003dab0837fd1dba2703bdd6e2.tar.gz frameworks_base-2e4dbe70e7c0fe003dab0837fd1dba2703bdd6e2.tar.bz2 |
Unhide APIs for enabling geolocation in web views. I've confirmed
with Grace that these are okay to unhide.
Diffstat (limited to 'core/java/android/webkit/GeolocationPermissions.java')
-rwxr-xr-x | core/java/android/webkit/GeolocationPermissions.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/core/java/android/webkit/GeolocationPermissions.java b/core/java/android/webkit/GeolocationPermissions.java index c0cac01..483e9e9 100755 --- a/core/java/android/webkit/GeolocationPermissions.java +++ b/core/java/android/webkit/GeolocationPermissions.java @@ -28,7 +28,6 @@ import java.util.Set; /** * Implements the Java side of GeolocationPermissions. Simply marshalls calls * from the UI thread to the WebKit thread. - * @hide */ public final class GeolocationPermissions { /** @@ -72,6 +71,7 @@ public final class GeolocationPermissions { /** * Gets the singleton instance of the class. + * @hide */ public static GeolocationPermissions getInstance() { if (sInstance == null) { @@ -82,6 +82,7 @@ public final class GeolocationPermissions { /** * Creates the UI message handler. Must be called on the UI thread. + * @hide */ public void createUIHandler() { if (mUIHandler == null) { @@ -110,6 +111,7 @@ public final class GeolocationPermissions { /** * Creates the message handler. Must be called on the WebKit thread. + * @hide */ public void createHandler() { if (mHandler == null) { @@ -186,6 +188,7 @@ public final class GeolocationPermissions { * WebCore::SecurityOrigin::toString(). As long as all 'HTML 5 modules' * (Database, Geolocation etc) do so, it's safe to match up origins for the * purposes of displaying UI. + * @hide */ public void getOrigins(ValueCallback<Set> callback) { if (callback != null) { @@ -209,6 +212,7 @@ public final class GeolocationPermissions { /** * Gets the permission state for the specified origin. + * @hide */ public void getAllowed(String origin, ValueCallback<Boolean> callback) { if (callback == null) { @@ -241,6 +245,7 @@ public final class GeolocationPermissions { * Clears the permission state for the specified origin. This method may be * called before the WebKit thread has intialized the message handler. * Messages will be queued until this time. + * @hide */ public void clear(String origin) { // Called on the UI thread. @@ -261,6 +266,7 @@ public final class GeolocationPermissions { * Allows the specified origin. This method may be called before the WebKit * thread has intialized the message handler. Messages will be queued until * this time. + * @hide */ public void allow(String origin) { // Called on the UI thread. @@ -279,6 +285,7 @@ public final class GeolocationPermissions { /** * Clears the permission state for all origins. + * @hide */ public void clearAll() { // Called on the UI thread. |