Loading api/current.txt +9 −9 Original line number Diff line number Diff line Loading @@ -26996,7 +26996,7 @@ package android.webkit { } public abstract class WebSettings { method public boolean enableSmoothTransition(); method public deprecated boolean enableSmoothTransition(); method public boolean getAllowContentAccess(); method public boolean getAllowFileAccess(); method public abstract boolean getAllowFileAccessFromFileURLs(); Loading Loading @@ -27062,7 +27062,7 @@ package android.webkit { method public void setDefaultZoom(android.webkit.WebSettings.ZoomDensity); method public void setDisplayZoomControls(boolean); method public synchronized void setDomStorageEnabled(boolean); method public void setEnableSmoothTransition(boolean); method public deprecated void setEnableSmoothTransition(boolean); method public synchronized void setFantasyFontFamily(java.lang.String); method public synchronized void setFixedFontFamily(java.lang.String); method public synchronized void setGeolocationDatabasePath(java.lang.String); Loading Loading @@ -27101,7 +27101,7 @@ package android.webkit { field public static final int LOAD_CACHE_ELSE_NETWORK = 1; // 0x1 field public static final int LOAD_CACHE_ONLY = 3; // 0x3 field public static final int LOAD_DEFAULT = -1; // 0xffffffff field public static final int LOAD_NORMAL = 0; // 0x0 field public static final deprecated int LOAD_NORMAL = 0; // 0x0 field public static final int LOAD_NO_CACHE = 2; // 0x2 } Loading Loading @@ -27184,13 +27184,13 @@ package android.webkit { ctor public WebView(android.content.Context); ctor public WebView(android.content.Context, android.util.AttributeSet); ctor public WebView(android.content.Context, android.util.AttributeSet, int); ctor public WebView(android.content.Context, android.util.AttributeSet, int, boolean); ctor public deprecated WebView(android.content.Context, android.util.AttributeSet, int, boolean); method public void addJavascriptInterface(java.lang.Object, java.lang.String); method public boolean canGoBack(); method public boolean canGoBackOrForward(int); method public boolean canGoForward(); method public boolean canZoomIn(); method public boolean canZoomOut(); method public deprecated boolean canZoomIn(); method public deprecated boolean canZoomOut(); method public android.graphics.Picture capturePicture(); method public void clearCache(boolean); method public void clearFormData(); Loading Loading @@ -27218,7 +27218,7 @@ package android.webkit { method public java.lang.String[] getHttpAuthUsernamePassword(java.lang.String, java.lang.String); method public java.lang.String getOriginalUrl(); method public int getProgress(); method public float getScale(); method public deprecated float getScale(); method public android.webkit.WebSettings getSettings(); method public java.lang.String getTitle(); method public java.lang.String getUrl(); Loading Loading @@ -27255,13 +27255,13 @@ package android.webkit { method public android.webkit.WebBackForwardList saveState(android.os.Bundle); method public void saveWebArchive(java.lang.String); method public void saveWebArchive(java.lang.String, boolean, android.webkit.ValueCallback<java.lang.String>); method public void setCertificate(android.net.http.SslCertificate); method public deprecated void setCertificate(android.net.http.SslCertificate); method public void setDownloadListener(android.webkit.DownloadListener); method public void setFindListener(android.webkit.WebView.FindListener); method public void setHorizontalScrollbarOverlay(boolean); method public void setHttpAuthUsernamePassword(java.lang.String, java.lang.String, java.lang.String, java.lang.String); method public void setInitialScale(int); method public void setMapTrackballToArrowKeys(boolean); method public deprecated void setMapTrackballToArrowKeys(boolean); method public void setNetworkAvailable(boolean); method public deprecated void setPictureListener(android.webkit.WebView.PictureListener); method public void setVerticalScrollbarOverlay(boolean); core/java/android/webkit/WebSettings.java +11 −0 Original line number Diff line number Diff line Loading @@ -102,7 +102,12 @@ public abstract class WebSettings { /** * Normal cache usage mode. Use with {@link #setCacheMode}. * * @deprecated This value is obsolete, as from API level * {@link android.os.Build.VERSION_CODES#HONEYCOMB} and onwards it has the * same effect as {@link #LOAD_DEFAULT}. */ @Deprecated public static final int LOAD_NORMAL = 0; /** Loading Loading @@ -333,7 +338,10 @@ public abstract class WebSettings { * If it is true, WebView will choose a solution to maximize the performance. * e.g. the WebView's content may not be updated during the transition. * If it is false, WebView will keep its fidelity. The default value is false. * * @deprecated This method is now obsolete, and will become a no-op in future. */ @Deprecated public void setEnableSmoothTransition(boolean enable) { throw new MustOverrideException(); } Loading @@ -343,7 +351,10 @@ public abstract class WebSettings { * zooming. * * @see #setEnableSmoothTransition * * @deprecated This method is now obsolete, and will become a no-op in future. */ @Deprecated public boolean enableSmoothTransition() { throw new MustOverrideException(); } Loading core/java/android/webkit/WebView.java +29 −0 Original line number Diff line number Diff line Loading @@ -469,7 +469,13 @@ public class WebView extends AbsoluteLayout * @param defStyle the default style resource ID * @param privateBrowsing whether this WebView will be initialized in * private mode * * @deprecated Private browsing is no longer supported directly via * WebView and will be removed in a future release. Prefer using * {@link WebSettings}, {@link WebViewDatabase}, {@link CookieManager} * and {@link WebStorage} for fine-grained control of privacy data. */ @Deprecated public WebView(Context context, AttributeSet attrs, int defStyle, boolean privateBrowsing) { this(context, attrs, defStyle, null, privateBrowsing); Loading Loading @@ -568,7 +574,11 @@ public class WebView extends AbsoluteLayout /** * Sets the SSL certificate for the main top-level page. * * @deprecated Calling this function has no useful effect, and will be * ignored in future releases. */ @Deprecated public void setCertificate(SslCertificate certificate) { checkThread(); mProvider.setCertificate(certificate); Loading Loading @@ -1017,7 +1027,12 @@ public class WebView extends AbsoluteLayout * Gets the current scale of this WebView. * * @return the current scale * * @deprecated This method is prone to inaccuracy due to race conditions * between the web rendering and UI threads; prefer * {@link WebViewClient#onScaleChanged}. */ @Deprecated @ViewDebug.ExportedProperty(category = "webview") public float getScale() { checkThread(); Loading Loading @@ -1594,6 +1609,10 @@ public class WebView extends AbsoluteLayout public void onGlobalFocusChanged(View oldFocus, View newFocus) { } /** * @deprecated Only the default case, true, will be supported in a future version. */ @Deprecated public void setMapTrackballToArrowKeys(boolean setMap) { checkThread(); mProvider.setMapTrackballToArrowKeys(setMap); Loading Loading @@ -1627,7 +1646,12 @@ public class WebView extends AbsoluteLayout * Gets whether this WebView can be zoomed in. * * @return true if this WebView can be zoomed in * * @deprecated This method is prone to inaccuracy due to race conditions * between the web rendering and UI threads; prefer * {@link WebViewClient#onScaleChanged}. */ @Deprecated public boolean canZoomIn() { checkThread(); return mProvider.canZoomIn(); Loading @@ -1637,7 +1661,12 @@ public class WebView extends AbsoluteLayout * Gets whether this WebView can be zoomed out. * * @return true if this WebView can be zoomed out * * @deprecated This method is prone to inaccuracy due to race conditions * between the web rendering and UI threads; prefer * {@link WebViewClient#onScaleChanged}. */ @Deprecated public boolean canZoomOut() { checkThread(); return mProvider.canZoomOut(); Loading Loading
api/current.txt +9 −9 Original line number Diff line number Diff line Loading @@ -26996,7 +26996,7 @@ package android.webkit { } public abstract class WebSettings { method public boolean enableSmoothTransition(); method public deprecated boolean enableSmoothTransition(); method public boolean getAllowContentAccess(); method public boolean getAllowFileAccess(); method public abstract boolean getAllowFileAccessFromFileURLs(); Loading Loading @@ -27062,7 +27062,7 @@ package android.webkit { method public void setDefaultZoom(android.webkit.WebSettings.ZoomDensity); method public void setDisplayZoomControls(boolean); method public synchronized void setDomStorageEnabled(boolean); method public void setEnableSmoothTransition(boolean); method public deprecated void setEnableSmoothTransition(boolean); method public synchronized void setFantasyFontFamily(java.lang.String); method public synchronized void setFixedFontFamily(java.lang.String); method public synchronized void setGeolocationDatabasePath(java.lang.String); Loading Loading @@ -27101,7 +27101,7 @@ package android.webkit { field public static final int LOAD_CACHE_ELSE_NETWORK = 1; // 0x1 field public static final int LOAD_CACHE_ONLY = 3; // 0x3 field public static final int LOAD_DEFAULT = -1; // 0xffffffff field public static final int LOAD_NORMAL = 0; // 0x0 field public static final deprecated int LOAD_NORMAL = 0; // 0x0 field public static final int LOAD_NO_CACHE = 2; // 0x2 } Loading Loading @@ -27184,13 +27184,13 @@ package android.webkit { ctor public WebView(android.content.Context); ctor public WebView(android.content.Context, android.util.AttributeSet); ctor public WebView(android.content.Context, android.util.AttributeSet, int); ctor public WebView(android.content.Context, android.util.AttributeSet, int, boolean); ctor public deprecated WebView(android.content.Context, android.util.AttributeSet, int, boolean); method public void addJavascriptInterface(java.lang.Object, java.lang.String); method public boolean canGoBack(); method public boolean canGoBackOrForward(int); method public boolean canGoForward(); method public boolean canZoomIn(); method public boolean canZoomOut(); method public deprecated boolean canZoomIn(); method public deprecated boolean canZoomOut(); method public android.graphics.Picture capturePicture(); method public void clearCache(boolean); method public void clearFormData(); Loading Loading @@ -27218,7 +27218,7 @@ package android.webkit { method public java.lang.String[] getHttpAuthUsernamePassword(java.lang.String, java.lang.String); method public java.lang.String getOriginalUrl(); method public int getProgress(); method public float getScale(); method public deprecated float getScale(); method public android.webkit.WebSettings getSettings(); method public java.lang.String getTitle(); method public java.lang.String getUrl(); Loading Loading @@ -27255,13 +27255,13 @@ package android.webkit { method public android.webkit.WebBackForwardList saveState(android.os.Bundle); method public void saveWebArchive(java.lang.String); method public void saveWebArchive(java.lang.String, boolean, android.webkit.ValueCallback<java.lang.String>); method public void setCertificate(android.net.http.SslCertificate); method public deprecated void setCertificate(android.net.http.SslCertificate); method public void setDownloadListener(android.webkit.DownloadListener); method public void setFindListener(android.webkit.WebView.FindListener); method public void setHorizontalScrollbarOverlay(boolean); method public void setHttpAuthUsernamePassword(java.lang.String, java.lang.String, java.lang.String, java.lang.String); method public void setInitialScale(int); method public void setMapTrackballToArrowKeys(boolean); method public deprecated void setMapTrackballToArrowKeys(boolean); method public void setNetworkAvailable(boolean); method public deprecated void setPictureListener(android.webkit.WebView.PictureListener); method public void setVerticalScrollbarOverlay(boolean);
core/java/android/webkit/WebSettings.java +11 −0 Original line number Diff line number Diff line Loading @@ -102,7 +102,12 @@ public abstract class WebSettings { /** * Normal cache usage mode. Use with {@link #setCacheMode}. * * @deprecated This value is obsolete, as from API level * {@link android.os.Build.VERSION_CODES#HONEYCOMB} and onwards it has the * same effect as {@link #LOAD_DEFAULT}. */ @Deprecated public static final int LOAD_NORMAL = 0; /** Loading Loading @@ -333,7 +338,10 @@ public abstract class WebSettings { * If it is true, WebView will choose a solution to maximize the performance. * e.g. the WebView's content may not be updated during the transition. * If it is false, WebView will keep its fidelity. The default value is false. * * @deprecated This method is now obsolete, and will become a no-op in future. */ @Deprecated public void setEnableSmoothTransition(boolean enable) { throw new MustOverrideException(); } Loading @@ -343,7 +351,10 @@ public abstract class WebSettings { * zooming. * * @see #setEnableSmoothTransition * * @deprecated This method is now obsolete, and will become a no-op in future. */ @Deprecated public boolean enableSmoothTransition() { throw new MustOverrideException(); } Loading
core/java/android/webkit/WebView.java +29 −0 Original line number Diff line number Diff line Loading @@ -469,7 +469,13 @@ public class WebView extends AbsoluteLayout * @param defStyle the default style resource ID * @param privateBrowsing whether this WebView will be initialized in * private mode * * @deprecated Private browsing is no longer supported directly via * WebView and will be removed in a future release. Prefer using * {@link WebSettings}, {@link WebViewDatabase}, {@link CookieManager} * and {@link WebStorage} for fine-grained control of privacy data. */ @Deprecated public WebView(Context context, AttributeSet attrs, int defStyle, boolean privateBrowsing) { this(context, attrs, defStyle, null, privateBrowsing); Loading Loading @@ -568,7 +574,11 @@ public class WebView extends AbsoluteLayout /** * Sets the SSL certificate for the main top-level page. * * @deprecated Calling this function has no useful effect, and will be * ignored in future releases. */ @Deprecated public void setCertificate(SslCertificate certificate) { checkThread(); mProvider.setCertificate(certificate); Loading Loading @@ -1017,7 +1027,12 @@ public class WebView extends AbsoluteLayout * Gets the current scale of this WebView. * * @return the current scale * * @deprecated This method is prone to inaccuracy due to race conditions * between the web rendering and UI threads; prefer * {@link WebViewClient#onScaleChanged}. */ @Deprecated @ViewDebug.ExportedProperty(category = "webview") public float getScale() { checkThread(); Loading Loading @@ -1594,6 +1609,10 @@ public class WebView extends AbsoluteLayout public void onGlobalFocusChanged(View oldFocus, View newFocus) { } /** * @deprecated Only the default case, true, will be supported in a future version. */ @Deprecated public void setMapTrackballToArrowKeys(boolean setMap) { checkThread(); mProvider.setMapTrackballToArrowKeys(setMap); Loading Loading @@ -1627,7 +1646,12 @@ public class WebView extends AbsoluteLayout * Gets whether this WebView can be zoomed in. * * @return true if this WebView can be zoomed in * * @deprecated This method is prone to inaccuracy due to race conditions * between the web rendering and UI threads; prefer * {@link WebViewClient#onScaleChanged}. */ @Deprecated public boolean canZoomIn() { checkThread(); return mProvider.canZoomIn(); Loading @@ -1637,7 +1661,12 @@ public class WebView extends AbsoluteLayout * Gets whether this WebView can be zoomed out. * * @return true if this WebView can be zoomed out * * @deprecated This method is prone to inaccuracy due to race conditions * between the web rendering and UI threads; prefer * {@link WebViewClient#onScaleChanged}. */ @Deprecated public boolean canZoomOut() { checkThread(); return mProvider.canZoomOut(); Loading