diff options
| author | 2011-12-21 14:21:36 +0000 | |
|---|---|---|
| committer | 2011-12-21 14:21:36 +0000 | |
| commit | 19644b613ef14434abe11e6cd16eb9e06057c9c6 (patch) | |
| tree | a22b8ba231079e9d7dfbababe45a5c154413aeaa | |
| parent | e4f0034226731724b67201d69fb4034ef857e2d3 (diff) | |
Make WebView.HitTestResult static
- we can do this, because HitTestResult never had a published constructor
so the only code that can create it has always lived in this package.
- doing this makes the class design cleaner, and smooths the way for allowing
the new WebView implementation to deal in these results in contexts where
the appropriate WebView instance is not readily available.
Change-Id: I9e1f1c0faeb16436b1861aab3c2871a5851dfb54
| -rw-r--r-- | api/16.txt | 2 | ||||
| -rw-r--r-- | api/current.txt | 2 | ||||
| -rw-r--r-- | core/java/android/webkit/WebView.java | 3 |
3 files changed, 3 insertions, 4 deletions
diff --git a/api/16.txt b/api/16.txt index 13fba29d2875..8e07844725c3 100644 --- a/api/16.txt +++ b/api/16.txt @@ -25259,7 +25259,7 @@ package android.webkit { field public static final java.lang.String SCHEME_TEL = "tel:"; } - public class WebView.HitTestResult { + public static class WebView.HitTestResult { method public java.lang.String getExtra(); method public int getType(); field public static final deprecated int ANCHOR_TYPE = 1; // 0x1 diff --git a/api/current.txt b/api/current.txt index db3b30d618b5..1f6ba1b3b921 100644 --- a/api/current.txt +++ b/api/current.txt @@ -25433,7 +25433,7 @@ package android.webkit { field public static final java.lang.String SCHEME_TEL = "tel:"; } - public class WebView.HitTestResult { + public static class WebView.HitTestResult { method public java.lang.String getExtra(); method public int getType(); field public static final deprecated int ANCHOR_TYPE = 1; // 0x1 diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java index baa7c0f4b482..e778e4696ea7 100644 --- a/core/java/android/webkit/WebView.java +++ b/core/java/android/webkit/WebView.java @@ -952,8 +952,7 @@ public class WebView extends AbsoluteLayout public void onNewPicture(WebView view, Picture picture); } - // FIXME: Want to make this public, but need to change the API file. - public /*static*/ class HitTestResult { + public static class HitTestResult { /** * Default HitTestResult, where the target is unknown */ |