Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
Hiding some of the deprecated android.webkit API's
Browse files Browse the repository at this point in the history
Change-Id: I1775a2ff615d1633fe9a20a5af49623222d3d27b
  • Loading branch information
kristianmonsen committed Sep 7, 2012
1 parent 5cc2351 commit f491258
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 112 deletions.
47 changes: 0 additions & 47 deletions api/17.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26107,35 +26107,6 @@ package android.view.textservice {

package android.webkit {

public final deprecated class CacheManager {
ctor public CacheManager();
method public static deprecated boolean cacheDisabled();
method public static deprecated boolean endCacheTransaction();
method public static deprecated android.webkit.CacheManager.CacheResult getCacheFile(java.lang.String, java.util.Map<java.lang.String, java.lang.String>);
method public static deprecated java.io.File getCacheFileBaseDir();
method public static deprecated void saveCacheFile(java.lang.String, android.webkit.CacheManager.CacheResult);
method public static deprecated boolean startCacheTransaction();
}

public static deprecated class CacheManager.CacheResult {
ctor public CacheManager.CacheResult();
method public java.lang.String getContentDisposition();
method public long getContentLength();
method public java.lang.String getETag();
method public java.lang.String getEncoding();
method public long getExpires();
method public java.lang.String getExpiresString();
method public int getHttpStatusCode();
method public java.io.InputStream getInputStream();
method public java.lang.String getLastModified();
method public java.lang.String getLocalPath();
method public java.lang.String getLocation();
method public java.lang.String getMimeType();
method public java.io.OutputStream getOutputStream();
method public void setEncoding(java.lang.String);
method public void setInputStream(java.io.InputStream);
}

public class ConsoleMessage {
ctor public ConsoleMessage(java.lang.String, java.lang.String, int, android.webkit.ConsoleMessage.MessageLevel);
method public int lineNumber();
Expand Down Expand Up @@ -26298,7 +26269,6 @@ package android.webkit {

public class WebHistoryItem implements java.lang.Cloneable {
method public android.graphics.Bitmap getFavicon();
method public deprecated int getId();
method public java.lang.String getOriginalUrl();
method public java.lang.String getTitle();
method public java.lang.String getUrl();
Expand Down Expand Up @@ -26357,7 +26327,6 @@ package android.webkit {
method public synchronized boolean getLoadsImagesAutomatically();
method public synchronized int getMinimumFontSize();
method public synchronized int getMinimumLogicalFontSize();
method public deprecated boolean getNavDump();
method public synchronized android.webkit.WebSettings.PluginState getPluginState();
method public deprecated synchronized boolean getPluginsEnabled();
method public deprecated synchronized java.lang.String getPluginsPath();
Expand All @@ -26368,10 +26337,7 @@ package android.webkit {
method public synchronized java.lang.String getStandardFontFamily();
method public deprecated synchronized android.webkit.WebSettings.TextSize getTextSize();
method public synchronized int getTextZoom();
method public deprecated synchronized boolean getUseDoubleTree();
method public deprecated boolean getUseWebViewBackgroundForOverscrollBackground();
method public synchronized boolean getUseWideViewPort();
method public deprecated synchronized int getUserAgent();
method public synchronized java.lang.String getUserAgentString();
method public void setAllowContentAccess(boolean);
method public void setAllowFileAccess(boolean);
Expand Down Expand Up @@ -26406,7 +26372,6 @@ package android.webkit {
method public synchronized void setLoadsImagesAutomatically(boolean);
method public synchronized void setMinimumFontSize(int);
method public synchronized void setMinimumLogicalFontSize(int);
method public deprecated void setNavDump(boolean);
method public void setNeedInitialFocus(boolean);
method public synchronized void setPluginState(android.webkit.WebSettings.PluginState);
method public deprecated synchronized void setPluginsEnabled(boolean);
Expand All @@ -26421,10 +26386,7 @@ package android.webkit {
method public void setSupportZoom(boolean);
method public deprecated synchronized void setTextSize(android.webkit.WebSettings.TextSize);
method public synchronized void setTextZoom(int);
method public deprecated synchronized void setUseDoubleTree(boolean);
method public deprecated void setUseWebViewBackgroundForOverscrollBackground(boolean);
method public synchronized void setUseWideViewPort(boolean);
method public deprecated synchronized void setUserAgent(int);
method public synchronized void setUserAgentString(java.lang.String);
method public synchronized boolean supportMultipleWindows();
method public boolean supportZoom();
Expand Down Expand Up @@ -26529,12 +26491,8 @@ package android.webkit {
method public void clearSslPreferences();
method public void clearView();
method public android.webkit.WebBackForwardList copyBackForwardList();
method public deprecated void debugDump();
method public void destroy();
method public static deprecated void disablePlatformNotifications();
method public void documentHasImages(android.os.Message);
method public deprecated void emulateShiftHeld();
method public static deprecated void enablePlatformNotifications();
method public static java.lang.String findAddress(java.lang.String);
method public deprecated int findAll(java.lang.String);
method public void findAllAsync(java.lang.String);
Expand All @@ -26552,7 +26510,6 @@ package android.webkit {
method public android.webkit.WebSettings getSettings();
method public java.lang.String getTitle();
method public java.lang.String getUrl();
method public deprecated int getVisibleTitleHeight();
method public void goBack();
method public void goBackOrForward(int);
method public void goForward();
Expand All @@ -26577,11 +26534,9 @@ package android.webkit {
method public void removeJavascriptInterface(java.lang.String);
method public void requestFocusNodeHref(android.os.Message);
method public void requestImageRef(android.os.Message);
method public deprecated boolean restorePicture(android.os.Bundle, java.io.File);
method public android.webkit.WebBackForwardList restoreState(android.os.Bundle);
method public void resumeTimers();
method public void savePassword(java.lang.String, java.lang.String, java.lang.String);
method public deprecated boolean savePicture(android.os.Bundle, java.io.File);
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>);
Expand All @@ -26593,7 +26548,6 @@ package android.webkit {
method public void setInitialScale(int);
method public void setMapTrackballToArrowKeys(boolean);
method public void setNetworkAvailable(boolean);
method public deprecated void setPictureListener(android.webkit.WebView.PictureListener);
method public void setVerticalScrollbarOverlay(boolean);
method public void setWebChromeClient(android.webkit.WebChromeClient);
method public void setWebViewClient(android.webkit.WebViewClient);
Expand Down Expand Up @@ -26677,7 +26631,6 @@ package android.webkit {
method public boolean hasFormData();
method public boolean hasHttpAuthUsernamePassword();
method public boolean hasUsernamePassword();
field protected static final java.lang.String LOGTAG = "webviewdatabase";
}

public class WebViewFragment extends android.app.Fragment {
Expand Down
46 changes: 0 additions & 46 deletions api/current.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26774,35 +26774,6 @@ package android.view.textservice {

package android.webkit {

public final deprecated class CacheManager {
ctor public CacheManager();
method public static deprecated boolean cacheDisabled();
method public static deprecated boolean endCacheTransaction();
method public static deprecated android.webkit.CacheManager.CacheResult getCacheFile(java.lang.String, java.util.Map<java.lang.String, java.lang.String>);
method public static deprecated java.io.File getCacheFileBaseDir();
method public static deprecated void saveCacheFile(java.lang.String, android.webkit.CacheManager.CacheResult);
method public static deprecated boolean startCacheTransaction();
}

public static deprecated class CacheManager.CacheResult {
ctor public CacheManager.CacheResult();
method public java.lang.String getContentDisposition();
method public long getContentLength();
method public java.lang.String getETag();
method public java.lang.String getEncoding();
method public long getExpires();
method public java.lang.String getExpiresString();
method public int getHttpStatusCode();
method public java.io.InputStream getInputStream();
method public java.lang.String getLastModified();
method public java.lang.String getLocalPath();
method public java.lang.String getLocation();
method public java.lang.String getMimeType();
method public java.io.OutputStream getOutputStream();
method public void setEncoding(java.lang.String);
method public void setInputStream(java.io.InputStream);
}

public class ConsoleMessage {
ctor public ConsoleMessage(java.lang.String, java.lang.String, int, android.webkit.ConsoleMessage.MessageLevel);
method public int lineNumber();
Expand Down Expand Up @@ -26965,7 +26936,6 @@ package android.webkit {

public class WebHistoryItem implements java.lang.Cloneable {
method public android.graphics.Bitmap getFavicon();
method public deprecated int getId();
method public java.lang.String getOriginalUrl();
method public java.lang.String getTitle();
method public java.lang.String getUrl();
Expand Down Expand Up @@ -27026,7 +26996,6 @@ package android.webkit {
method public boolean getMediaPlaybackRequiresUserGesture();
method public synchronized int getMinimumFontSize();
method public synchronized int getMinimumLogicalFontSize();
method public deprecated boolean getNavDump();
method public synchronized android.webkit.WebSettings.PluginState getPluginState();
method public deprecated synchronized boolean getPluginsEnabled();
method public deprecated synchronized java.lang.String getPluginsPath();
Expand All @@ -27037,10 +27006,7 @@ package android.webkit {
method public synchronized java.lang.String getStandardFontFamily();
method public deprecated synchronized android.webkit.WebSettings.TextSize getTextSize();
method public synchronized int getTextZoom();
method public deprecated synchronized boolean getUseDoubleTree();
method public deprecated boolean getUseWebViewBackgroundForOverscrollBackground();
method public synchronized boolean getUseWideViewPort();
method public deprecated synchronized int getUserAgent();
method public synchronized java.lang.String getUserAgentString();
method public void setAllowContentAccess(boolean);
method public void setAllowFileAccess(boolean);
Expand Down Expand Up @@ -27076,7 +27042,6 @@ package android.webkit {
method public void setMediaPlaybackRequiresUserGesture(boolean);
method public synchronized void setMinimumFontSize(int);
method public synchronized void setMinimumLogicalFontSize(int);
method public deprecated void setNavDump(boolean);
method public void setNeedInitialFocus(boolean);
method public synchronized void setPluginState(android.webkit.WebSettings.PluginState);
method public deprecated synchronized void setPluginsEnabled(boolean);
Expand All @@ -27091,10 +27056,8 @@ package android.webkit {
method public void setSupportZoom(boolean);
method public deprecated synchronized void setTextSize(android.webkit.WebSettings.TextSize);
method public synchronized void setTextZoom(int);
method public deprecated synchronized void setUseDoubleTree(boolean);
method public deprecated void setUseWebViewBackgroundForOverscrollBackground(boolean);
method public synchronized void setUseWideViewPort(boolean);
method public deprecated synchronized void setUserAgent(int);
method public synchronized void setUserAgentString(java.lang.String);
method public synchronized boolean supportMultipleWindows();
method public boolean supportZoom();
Expand Down Expand Up @@ -27199,12 +27162,8 @@ package android.webkit {
method public void clearSslPreferences();
method public void clearView();
method public android.webkit.WebBackForwardList copyBackForwardList();
method public deprecated void debugDump();
method public void destroy();
method public static deprecated void disablePlatformNotifications();
method public void documentHasImages(android.os.Message);
method public deprecated void emulateShiftHeld();
method public static deprecated void enablePlatformNotifications();
method public static java.lang.String findAddress(java.lang.String);
method public deprecated int findAll(java.lang.String);
method public void findAllAsync(java.lang.String);
Expand All @@ -27222,7 +27181,6 @@ package android.webkit {
method public android.webkit.WebSettings getSettings();
method public java.lang.String getTitle();
method public java.lang.String getUrl();
method public deprecated int getVisibleTitleHeight();
method public void goBack();
method public void goBackOrForward(int);
method public void goForward();
Expand All @@ -27247,11 +27205,9 @@ package android.webkit {
method public void removeJavascriptInterface(java.lang.String);
method public void requestFocusNodeHref(android.os.Message);
method public void requestImageRef(android.os.Message);
method public deprecated boolean restorePicture(android.os.Bundle, java.io.File);
method public android.webkit.WebBackForwardList restoreState(android.os.Bundle);
method public void resumeTimers();
method public void savePassword(java.lang.String, java.lang.String, java.lang.String);
method public deprecated boolean savePicture(android.os.Bundle, java.io.File);
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>);
Expand All @@ -27263,7 +27219,6 @@ package android.webkit {
method public void setInitialScale(int);
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);
method public void setWebChromeClient(android.webkit.WebChromeClient);
method public void setWebViewClient(android.webkit.WebViewClient);
Expand Down Expand Up @@ -27347,7 +27302,6 @@ package android.webkit {
method public boolean hasFormData();
method public boolean hasHttpAuthUsernamePassword();
method public boolean hasUsernamePassword();
field protected static final java.lang.String LOGTAG = "webviewdatabase";
}

public class WebViewFragment extends android.app.Fragment {
Expand Down
1 change: 1 addition & 0 deletions core/java/android/webkit/CacheManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
/**
* Manages the HTTP cache used by an application's {@link WebView} instances.
* @deprecated Access to the HTTP cache will be removed in a future release.
* @hide Since {@link android.os.Build.VERSION_CODES#JELLY_BEAN_MR1}
*/
// The class CacheManager provides the persistent cache of content that is
// received over the network. The component handles parsing of HTTP headers and
Expand Down
1 change: 1 addition & 0 deletions core/java/android/webkit/WebHistoryItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public WebHistoryItem() {
* same object.
* @return The id for this item.
* @deprecated This method is now obsolete.
* @hide Since API level {@link android.os.Build.VERSION_CODES#JELLY_BEAN_MR1}
*/
@Deprecated
public int getId() {
Expand Down
10 changes: 8 additions & 2 deletions core/java/android/webkit/WebSettings.java
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ protected WebSettings() {
* is false.
*
* @deprecated This method is now obsolete.
* @hide Since API level {@link android.os.Build.VERSION_CODES#JELLY_BEAN_MR1}
*/
@Deprecated
public void setNavDump(boolean enabled) {
Expand All @@ -176,6 +177,7 @@ public void setNavDump(boolean enabled) {
* @return whether dumping the navigation cache is enabled
* @see #setNavDump
* @deprecated This method is now obsolete.
* @hide Since API level {@link android.os.Build.VERSION_CODES#JELLY_BEAN_MR1}
*/
@Deprecated
public boolean getNavDump() {
Expand Down Expand Up @@ -377,6 +379,7 @@ public void setUseWebViewBackgroundForOverscrollBackground(boolean view) {
*
* @see #setUseWebViewBackgroundForOverscrollBackground
* @deprecated This method is now obsolete.
* @hide Since API level {@link android.os.Build.VERSION_CODES#JELLY_BEAN_MR1}
*/
@Deprecated
public boolean getUseWebViewBackgroundForOverscrollBackground() {
Expand Down Expand Up @@ -518,6 +521,7 @@ public boolean getLightTouchEnabled() {
* it now has no effect.
*
* @deprecated This setting now has no effect.
* @hide Since API level {@link android.os.Build.VERSION_CODES#JELLY_BEAN_MR1}
*/
@Deprecated
public synchronized void setUseDoubleTree(boolean use) {
Expand All @@ -529,6 +533,7 @@ public synchronized void setUseDoubleTree(boolean use) {
* it now has no effect.
*
* @deprecated This setting now has no effect.
* @hide Since API level {@link android.os.Build.VERSION_CODES#JELLY_BEAN_MR1}
*/
@Deprecated
public synchronized boolean getUseDoubleTree() {
Expand All @@ -547,6 +552,7 @@ public synchronized boolean getUseDoubleTree() {
*
* @param ua the integer code for the user-agent string
* @deprecated Please use {@link #setUserAgentString} instead.
* @hide Since API level {@link android.os.Build.VERSION_CODES#JELLY_BEAN_MR1}
*/
@Deprecated
public synchronized void setUserAgent(int ua) {
Expand All @@ -565,6 +571,7 @@ public synchronized void setUserAgent(int ua) {
* @return the integer code for the user-agent string
* @see #setUserAgent
* @deprecated Please use {@link #getUserAgentString} instead.
* @hide Since API level {@link android.os.Build.VERSION_CODES#JELLY_BEAN_MR1}
*/
@Deprecated
public synchronized int getUserAgent() {
Expand Down Expand Up @@ -1251,8 +1258,7 @@ public synchronized String getUserAgentString() {
/**
* Returns the default User-Agent used by a WebView.
* An instance of WebView could use a different User-Agent if a call
* is made to {@link WebSettings#setUserAgent(int)} or
* {@link WebSettings#setUserAgentString(String)}.
* is made to {@link WebSettings#setUserAgentString(String)}.
*
* @param context a Context object used to access application assets
*/
Expand Down

0 comments on commit f491258

Please sign in to comment.