Bug 1509266 - [4.0] Make type constants public and ContextElement non-final. r=me
authorEugen Sawin <esawin@mozilla.com>
Wed, 28 Nov 2018 19:37:08 +0100
changeset 505052 88831b1697c46e7f5c15f1e6d1776874cf214421
parent 505051 069d324080a54edeb3b8d76b16c9fe85c33a1d3b
child 505053 c65733e28a7460151569a933ac8323ad067e5cee
push id10290
push userffxbld-merge
push dateMon, 03 Dec 2018 16:23:23 +0000
treeherdermozilla-beta@700bed2445e6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1509266
milestone65.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1509266 - [4.0] Make type constants public and ContextElement non-final. r=me
mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoSession.java
--- a/mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoSession.java
+++ b/mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoSession.java
@@ -2579,24 +2579,23 @@ public class GeckoSession implements Par
          * @param session The GeckoSession that initiated the callback.
          * @param fullScreen True if the page is in full screen mode.
          */
         void onFullScreen(GeckoSession session, boolean fullScreen);
 
         /**
          * Element details for onContextMenu callbacks.
          */
-        public static final class ContextElement {
+        public static class ContextElement {
             @IntDef({TYPE_NONE, TYPE_IMAGE, TYPE_VIDEO, TYPE_AUDIO})
             /* package */ @interface Type {}
-            static final int TYPE_NONE = 0;
-            static final int TYPE_IMAGE = 1;
-            static final int TYPE_VIDEO = 2;
-            static final int TYPE_AUDIO = 3;
-
+            public static final int TYPE_NONE = 0;
+            public static final int TYPE_IMAGE = 1;
+            public static final int TYPE_VIDEO = 2;
+            public static final int TYPE_AUDIO = 3;
 
             /**
              * The link URI (href) of the element.
              */
             public final @Nullable String linkUri;
 
             /**
              * The title text of the element.