diff options
Diffstat (limited to 'core/java/android')
-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. |