diff options
author | Ben Murdoch <benm@google.com> | 2009-05-28 13:44:44 +0100 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2009-06-15 13:05:39 +0100 |
commit | 274680d9b8fce08f31c23dda796ecec937c942de (patch) | |
tree | fa3ac298bc070466553a8c73f5001e5ea39fbe0d /core/java/android/webkit/WebSettings.java | |
parent | a28547d03f09b8b78ce28404ecf7013130adca80 (diff) | |
download | frameworks_base-274680d9b8fce08f31c23dda796ecec937c942de.zip frameworks_base-274680d9b8fce08f31c23dda796ecec937c942de.tar.gz frameworks_base-274680d9b8fce08f31c23dda796ecec937c942de.tar.bz2 |
Add support for toggling DOM Storage support on and off.
Diffstat (limited to 'core/java/android/webkit/WebSettings.java')
-rw-r--r-- | core/java/android/webkit/WebSettings.java | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/core/java/android/webkit/WebSettings.java b/core/java/android/webkit/WebSettings.java index ea186fd..f57c647 100644 --- a/core/java/android/webkit/WebSettings.java +++ b/core/java/android/webkit/WebSettings.java @@ -163,6 +163,7 @@ public class WebSettings { private boolean mDatabaseEnabled = false; private String mAppCachePath = ""; private boolean mAppCacheEnabled = false; + private boolean mDomStorageEnabled = false; // Class to handle messages before WebCore is ready. private class EventHandler { @@ -963,6 +964,28 @@ public class WebSettings { } /** + * Set whether the DOM storage API is enabled. + * @param flag boolean True if the WebView should use the DOM storage + * API. + * @hide pending API council. + */ + public synchronized void setDomStorageEnabled(boolean flag) { + if (mDomStorageEnabled != flag) { + mDomStorageEnabled = flag; + postSync(); + } + } + + /** + * Returns true if the DOM Storage API's are enabled. + * @return True if the DOM Storage API's are enabled. + * @hide pending API council. + */ + public synchronized boolean getDomStorageEnabled() { + return mDomStorageEnabled; + } + + /** * Return the path to where database storage API databases are saved for * the current WebView. * @return the String path to the database storage API databases. |