Merge "Two WebView API cleanups"

This commit is contained in:
Jonathan Dixon
2012-04-16 01:05:06 -07:00
committed by Android (Google) Code Review
7 changed files with 17 additions and 24 deletions

View File

@@ -24806,7 +24806,7 @@ package android.webkit {
enum_constant public static final android.webkit.ConsoleMessage.MessageLevel WARNING;
}
public final class CookieManager {
public class CookieManager {
method public synchronized boolean acceptCookie();
method public static boolean allowFileSchemeCookies();
method public java.lang.String getCookie(java.lang.String);
@@ -24838,7 +24838,7 @@ package android.webkit {
method public abstract void onDownloadStart(java.lang.String, java.lang.String, java.lang.String, java.lang.String, long);
}
public final class GeolocationPermissions {
public class GeolocationPermissions {
method public void allow(java.lang.String);
method public void clear(java.lang.String);
method public void clearAll();
@@ -24864,8 +24864,6 @@ package android.webkit {
public class JsResult {
method public final void cancel();
method public final void confirm();
method protected final void wakeUp();
field protected boolean mResult;
}
public class MimeTypeMap {
@@ -24958,7 +24956,7 @@ package android.webkit {
method public java.lang.String getUrl();
}
public final class WebIconDatabase {
public class WebIconDatabase {
method public void close();
method public static android.webkit.WebIconDatabase getInstance();
method public void open(java.lang.String);
@@ -25127,7 +25125,7 @@ package android.webkit {
enum_constant public static final android.webkit.WebSettings.ZoomDensity MEDIUM;
}
public final class WebStorage {
public class WebStorage {
method public void deleteAllData();
method public void deleteOrigin(java.lang.String);
method public static android.webkit.WebStorage getInstance();

View File

@@ -25535,7 +25535,7 @@ package android.webkit {
enum_constant public static final android.webkit.ConsoleMessage.MessageLevel WARNING;
}
public final class CookieManager {
public class CookieManager {
method public synchronized boolean acceptCookie();
method public static boolean allowFileSchemeCookies();
method public java.lang.String getCookie(java.lang.String);
@@ -25567,7 +25567,7 @@ package android.webkit {
method public abstract void onDownloadStart(java.lang.String, java.lang.String, java.lang.String, java.lang.String, long);
}
public final class GeolocationPermissions {
public class GeolocationPermissions {
method public void allow(java.lang.String);
method public void clear(java.lang.String);
method public void clearAll();
@@ -25593,8 +25593,6 @@ package android.webkit {
public class JsResult {
method public final void cancel();
method public final void confirm();
method protected final void wakeUp();
field protected boolean mResult;
}
public class MimeTypeMap {
@@ -25687,7 +25685,7 @@ package android.webkit {
method public java.lang.String getUrl();
}
public final class WebIconDatabase {
public class WebIconDatabase {
method public void close();
method public static android.webkit.WebIconDatabase getInstance();
method public void open(java.lang.String);
@@ -25856,7 +25854,7 @@ package android.webkit {
enum_constant public static final android.webkit.WebSettings.ZoomDensity MEDIUM;
}
public final class WebStorage {
public class WebStorage {
method public void deleteAllData();
method public void deleteOrigin(java.lang.String);
method public static android.webkit.WebStorage getInstance();

View File

@@ -26,7 +26,7 @@ import android.util.Log;
* Manages the cookies used by an application's {@link WebView} instances.
* Cookies are manipulated according to RFC2109.
*/
public final class CookieManager {
public class CookieManager {
private static CookieManager sRef;

View File

@@ -50,7 +50,7 @@ import java.util.Vector;
// Within WebKit, Geolocation permissions may be applied either temporarily
// (for the duration of the page) or permanently. This class deals only with
// permanent permissions.
public final class GeolocationPermissions {
public class GeolocationPermissions {
/**
* A callback interface used by the host application to set the Geolocation
* permission state for an origin.

View File

@@ -22,8 +22,6 @@ package android.webkit;
* and provides a means for the client to indicate whether this action should proceed.
*/
public class JsResult {
// This is a basic result of a confirm or prompt dialog.
protected boolean mResult;
/**
* Callback interface, implemented by the WebViewProvider implementation to receive
* notifications when the JavaScript result represented by a JsResult instance has
@@ -32,11 +30,10 @@ public class JsResult {
public interface ResultReceiver {
public void onJsResultComplete(JsResult result);
}
/**
* This is the caller of the prompt and is the object that is waiting.
* @hide
*/
protected final ResultReceiver mReceiver;
// This is the caller of the prompt and is the object that is waiting.
private final ResultReceiver mReceiver;
// This is a basic result of a confirm or prompt dialog.
private boolean mResult;
/**
* Handle the result if the user cancelled the dialog.
@@ -69,7 +66,7 @@ public class JsResult {
}
/* Notify the caller that the JsResult has completed */
protected final void wakeUp() {
private final void wakeUp() {
mReceiver.onJsResultComplete(this);
}
}

View File

@@ -35,7 +35,7 @@ import java.util.Vector;
* WebIconDatabase object is a single instance and all methods operate on that
* single object.
*/
public final class WebIconDatabase {
public class WebIconDatabase {
private static final String LOGTAG = "WebIconDatabase";
// Global instance of a WebIconDatabase
private static WebIconDatabase sIconDatabase;

View File

@@ -27,7 +27,7 @@ import java.util.Set;
/**
* Functionality for manipulating the webstorage databases.
*/
public final class WebStorage {
public class WebStorage {
/**
* Encapsulates a callback function to be executed when a new quota is made