Bug 1500155 - Part 3 - Migrate existing code to use these new methods instead of the exisiting get/set<DataType>(Key, Value) methods. r=snorp
☠☠ backed out by f7c35130959c ☠ ☠
authorEmily Toop <etoop@mozilla.com>
Wed, 12 Dec 2018 13:18:25 +0000
changeset 450250 0d03623732b6f0ee20cb02c7446ae1086c48b13f
parent 450249 fcfa609101f8e4efb877d10e4ff6a65ddc286eb6
child 450251 4dd0b1c3524cafe7cfe7ba5d10105324b4906895
push id74573
push useretoop@mozilla.com
push dateWed, 12 Dec 2018 13:20:44 +0000
treeherderautoland@0f66513c5f23 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssnorp
bugs1500155
milestone66.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 1500155 - Part 3 - Migrate existing code to use these new methods instead of the exisiting get/set<DataType>(Key, Value) methods. r=snorp Differential Revision: https://phabricator.services.mozilla.com/D13419
mobile/android/geckoview/api.txt
--- a/mobile/android/geckoview/api.txt
+++ b/mobile/android/geckoview/api.txt
@@ -661,45 +661,50 @@ package org.mozilla.geckoview {
     field public final java.lang.String uri;
   }
 
   public final class GeckoSessionSettings implements android.os.Parcelable {
     ctor public GeckoSessionSettings();
     ctor public GeckoSessionSettings(org.mozilla.geckoview.GeckoSessionSettings);
     method public int describeContents();
     method public boolean equals(java.lang.Object);
-    method public boolean getBoolean(org.mozilla.geckoview.GeckoSessionSettings.Key<java.lang.Boolean>);
-    method public int getInt(org.mozilla.geckoview.GeckoSessionSettings.Key<java.lang.Integer>);
-    method public java.lang.String getString(org.mozilla.geckoview.GeckoSessionSettings.Key<java.lang.String>);
+    method public java.lang.String getChromeUri();
+    method public int getDisplayMode();
+    method public int getScreenId();
+    method public int getUserAgentMode();
+    method public java.lang.String getUserAgentOverride();
     method public int hashCode();
+    method public boolean isAllowJavascript();
+    method public boolean isFullAccessibilityTree();
+    method public boolean isSuspendMediaWhenInactive();
+    method public boolean isUseMultiprocess();
+    method public boolean isUsePrivateMode();
+    method public boolean isUseTrackingProtection();
     method public void readFromParcel(android.os.Parcel);
-    method public void setBoolean(org.mozilla.geckoview.GeckoSessionSettings.Key<java.lang.Boolean>, boolean);
-    method public void setInt(org.mozilla.geckoview.GeckoSessionSettings.Key<java.lang.Integer>, int);
-    method public void setString(org.mozilla.geckoview.GeckoSessionSettings.Key<java.lang.String>, java.lang.String);
+    method public void setAllowJavascript(boolean);
+    method public void setChromeUri(java.lang.String);
+    method public void setDisplayMode(int);
+    method public void setFullAccessibilityTree(boolean);
+    method public void setScreenId(int);
+    method public void setSuspendMediaWhenInactive(boolean);
+    method public void setUseMultiprocess(boolean);
+    method public void setUsePrivateMode(boolean);
+    method public void setUseTrackingProtection(boolean);
+    method public void setUserAgentMode(int);
+    method public void setUserAgentOverride(java.lang.String);
     method public java.lang.String toString();
     method public void writeToParcel(android.os.Parcel, int);
-    field public static final org.mozilla.geckoview.GeckoSessionSettings.Key<java.lang.Boolean> ALLOW_JAVASCRIPT;
-    field public static final org.mozilla.geckoview.GeckoSessionSettings.Key<java.lang.String> CHROME_URI;
     field public static final android.os.Parcelable.Creator<org.mozilla.geckoview.GeckoSessionSettings> CREATOR;
-    field public static final org.mozilla.geckoview.GeckoSessionSettings.Key<java.lang.Integer> DISPLAY_MODE;
     field public static final int DISPLAY_MODE_BROWSER = 0;
     field public static final int DISPLAY_MODE_FULLSCREEN = 3;
     field public static final int DISPLAY_MODE_MINIMAL_UI = 1;
     field public static final int DISPLAY_MODE_STANDALONE = 2;
-    field public static final org.mozilla.geckoview.GeckoSessionSettings.Key<java.lang.Boolean> FULL_ACCESSIBILITY_TREE;
-    field public static final org.mozilla.geckoview.GeckoSessionSettings.Key<java.lang.Integer> SCREEN_ID;
-    field public static final org.mozilla.geckoview.GeckoSessionSettings.Key<java.lang.Boolean> SUSPEND_MEDIA_WHEN_INACTIVE;
-    field public static final org.mozilla.geckoview.GeckoSessionSettings.Key<java.lang.Integer> USER_AGENT_MODE;
     field public static final int USER_AGENT_MODE_DESKTOP = 1;
     field public static final int USER_AGENT_MODE_MOBILE = 0;
     field public static final int USER_AGENT_MODE_VR = 2;
-    field public static final org.mozilla.geckoview.GeckoSessionSettings.Key<java.lang.String> USER_AGENT_OVERRIDE;
-    field public static final org.mozilla.geckoview.GeckoSessionSettings.Key<java.lang.Boolean> USE_MULTIPROCESS;
-    field public static final org.mozilla.geckoview.GeckoSessionSettings.Key<java.lang.Boolean> USE_PRIVATE_MODE;
-    field public static final org.mozilla.geckoview.GeckoSessionSettings.Key<java.lang.Boolean> USE_TRACKING_PROTECTION;
   }
 
   public static class GeckoSessionSettings.Key<T> {
   }
 
   public class GeckoView extends android.widget.FrameLayout {
     ctor public GeckoView(android.content.Context);
     ctor public GeckoView(android.content.Context, android.util.AttributeSet);