Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 19644b61 authored by Jonathan Dixon's avatar Jonathan Dixon
Browse files

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
parent e4f00342
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -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
+1 −2
Original line number Diff line number Diff line
@@ -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
         */