diff options
| author | Jonathan Dixon <joth@google.com> | 2013-08-31 22:43:11 -0700 |
|---|---|---|
| committer | Jonathan Dixon <joth@google.com> | 2013-09-17 20:47:10 -0700 |
| commit | 5545d083d35620a625b65fafe97199660d85f059 (patch) | |
| tree | 5840c99c516a81d3965651bf4a7d073d0b14eff0 /core/java/android/webkit/WebView.java | |
| parent | 463850e0c658b37bbe29b9e9dec6ff7565bb883f (diff) | |
Update APIs for the Chromium WebView
Bug: 10361803
Bug: 8565831
Several obsolete APIs now deprecated.
TEXT_AUTOSIZING can now be unhidden.
Change-Id: Ib0afa4bb010f35816d3b9dd3695e8997f0ff0793
Diffstat (limited to 'core/java/android/webkit/WebView.java')
| -rw-r--r-- | core/java/android/webkit/WebView.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java index 15331dccced1..d05bba770738 100644 --- a/core/java/android/webkit/WebView.java +++ b/core/java/android/webkit/WebView.java @@ -1058,9 +1058,20 @@ public class WebView extends AbsoluteLayout * {@link android.os.Build.VERSION_CODES#HONEYCOMB} and * {@link android.os.Build.VERSION_CODES#ICE_CREAM_SANDWICH} inclusive, the * picture does not include fixed position elements or scrollable divs. + * <p> + * Note that from {@link android.os.Build.VERSION_CODES#JELLY_BEAN_MR1} the returned picture + * should only be drawn into bitmap-backed Canvas - using any other type of Canvas will involve + * additional conversion at a cost in memory and performance. Also the + * {@link android.graphics.Picture#createFromStream} and + * {@link android.graphics.Picture#writeToStream} methods are not supported on the + * returned object. + * + * @deprecated Use {@link #onDraw} to obtain a bitmap snapshot of the WebView, or + * {@link #saveWebArchive} or {@link #exportToPdf} to save the content to a file. * * @return a picture that captures the current contents of this WebView */ + @Deprecated public Picture capturePicture() { checkThread(); if (DebugFlags.TRACE_API) Log.d(LOGTAG, "capturePicture"); @@ -1342,7 +1353,10 @@ public class WebView extends AbsoluteLayout /** * Informs this WebView that memory is low so that it can free any available * memory. + * @deprecated Memory caches are automatically dropped when no longer needed, and in response + * to system memory pressure. */ + @Deprecated public void freeMemory() { checkThread(); if (DebugFlags.TRACE_API) Log.d(LOGTAG, "freeMemory"); |
