diff options
| author | 2014-09-05 11:21:01 +0100 | |
|---|---|---|
| committer | 2014-09-05 14:22:32 +0000 | |
| commit | 100c20c900addf3c9458c697907b80eeeb860fd5 (patch) | |
| tree | 29f4b46e9580656d1fc716f56d911ddb362f1135 | |
| parent | ae62d71d36022a7a62e00abc447c680f6d3ee83f (diff) | |
Rename WebResourceRequest.hasUserGestureInsecure to hasGesture.
This is in response to API council feedback.
BUG: 17253647
Change-Id: I6da2aa2510a73276fcdbad9219adfeaaed41d3ba
| -rw-r--r-- | api/current.txt | 1 | ||||
| -rw-r--r-- | core/java/android/webkit/WebResourceRequest.java | 7 |
2 files changed, 7 insertions, 1 deletions
diff --git a/api/current.txt b/api/current.txt index a0d47e4d746f..9eb3900a8600 100644 --- a/api/current.txt +++ b/api/current.txt @@ -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(); } diff --git a/core/java/android/webkit/WebResourceRequest.java b/core/java/android/webkit/WebResourceRequest.java index dc7c808d266c..b46ac9a54223 100644 --- a/core/java/android/webkit/WebResourceRequest.java +++ b/core/java/android/webkit/WebResourceRequest.java @@ -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(); /** |