OSDN Git Service

Rename WebResourceRequest.hasUserGestureInsecure to hasGesture.
authorMarcin Kosiba <mkosiba@google.com>
Fri, 5 Sep 2014 10:21:01 +0000 (11:21 +0100)
committerMarcin Kosiba <mkosiba@google.com>
Fri, 5 Sep 2014 14:22:32 +0000 (14:22 +0000)
This is in response to API council feedback.

BUG: 17253647
Change-Id: I6da2aa2510a73276fcdbad9219adfeaaed41d3ba

api/current.txt
core/java/android/webkit/WebResourceRequest.java

index a0d47e4..9eb3900 100644 (file)
@@ -36538,6 +36538,7 @@ package android.webkit {
     method public abstract java.lang.String getMethod();
     method public abstract java.util.Map<java.lang.String, java.lang.String> getRequestHeaders();
     method public abstract android.net.Uri getUrl();
+    method public abstract boolean hasGesture();
     method public abstract boolean hasUserGestureInsecure();
     method public abstract boolean isForMainFrame();
   }
index dc7c808..b46ac9a 100644 (file)
@@ -41,7 +41,7 @@ public interface WebResourceRequest {
     boolean isForMainFrame();
 
     /**
-     * Gets whether a gesture was associated with the request.
+     * Gets whether a gesture (such as a link click) was associated with the request.
      * <p>
      * <strong>IMPORTANT:</strong>
      * This should not be used to implement any form of security. It is possible for the content
@@ -49,6 +49,11 @@ public interface WebResourceRequest {
      *
      * @return whether a gesture was associated with the request.
      */
+    boolean hasGesture();
+
+    /*
+     * @removed
+     */
     boolean hasUserGestureInsecure();
 
     /**