diff options
author | Elliott Slaughter <eds@google.com> | 2010-06-30 11:39:52 -0700 |
---|---|---|
committer | Elliott Slaughter <eds@google.com> | 2010-07-12 09:06:10 -0700 |
commit | b48fdbe79260b1603cfef5e304e068c29d4bc257 (patch) | |
tree | 63c97c34209598767662ca088ab364101d0f6c04 /core/java/android/webkit/BrowserFrame.java | |
parent | 2707d6026240bcca6f0e35e2e1138958882e90ce (diff) | |
download | frameworks_base-b48fdbe79260b1603cfef5e304e068c29d4bc257.zip frameworks_base-b48fdbe79260b1603cfef5e304e068c29d4bc257.tar.gz frameworks_base-b48fdbe79260b1603cfef5e304e068c29d4bc257.tar.bz2 |
Browser save page as web archive.
Change-Id: Id34a93b2e9bb6c185338989d1eeb6929d0bd06c5
Diffstat (limited to 'core/java/android/webkit/BrowserFrame.java')
-rw-r--r-- | core/java/android/webkit/BrowserFrame.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/core/java/android/webkit/BrowserFrame.java b/core/java/android/webkit/BrowserFrame.java index 7b1aab2..b021ded 100644 --- a/core/java/android/webkit/BrowserFrame.java +++ b/core/java/android/webkit/BrowserFrame.java @@ -301,6 +301,18 @@ class BrowserFrame extends Handler { } /** + * Saves the contents of the frame as a web archive. + * + * @param basename The filename where the archive should be placed. + * @param autoname If false, takes filename to be a file. If true, filename + * is assumed to be a directory in which a filename will be + * chosen according to the url of the current page. + */ + /* package */ String saveWebArchive(String basename, boolean autoname) { + return nativeSaveWebArchive(basename, autoname); + } + + /** * Go back or forward the number of steps given. * @param steps A negative or positive number indicating the direction * and number of steps to move. @@ -1040,5 +1052,7 @@ class BrowserFrame extends Handler { */ private native HashMap getFormTextData(); + private native String nativeSaveWebArchive(String basename, boolean autoname); + private native void nativeOrientationChanged(int orientation); } |