diff options
| author | Grace Kloba <klobag@google.com> | 2009-08-06 12:04:14 -0700 |
|---|---|---|
| committer | Grace Kloba <klobag@google.com> | 2009-08-06 13:06:10 -0700 |
| commit | e397a88e4fd65ee7d346f63a43e6608dba943ee9 (patch) | |
| tree | af34701fd7577542aa0ee45cb8572e99c5f7baf5 /core/java/android/webkit/WebSettings.java | |
| parent | b65aca2463dc30a99a36ffad90993bc8e6c637e3 (diff) | |
Couple of tuning for the Browser zoom.
1. Added a setting to control whether a page is loaded with overview mode;
2. If there is no viewport metag tag, a page will be loaded in the viewport
at least 800px wide.
3. When we adjust zoom scale in the overview mode, don't use animation.
4. When zoom out to close to min zoom scale, switch to overview mode. So double
tap will always have visual feedback unless it is mobile site.
Diffstat (limited to 'core/java/android/webkit/WebSettings.java')
| -rw-r--r-- | core/java/android/webkit/WebSettings.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/core/java/android/webkit/WebSettings.java b/core/java/android/webkit/WebSettings.java index e5813e6e3896..eeac1d268eaf 100644 --- a/core/java/android/webkit/WebSettings.java +++ b/core/java/android/webkit/WebSettings.java @@ -185,6 +185,7 @@ public class WebSettings { private boolean mSupportZoom = true; private boolean mBuiltInZoomControls = false; private boolean mAllowFileAccess = true; + private boolean mLoadWithOverviewMode = true; // Class to handle messages before WebCore is ready. private class EventHandler { @@ -427,6 +428,22 @@ public class WebSettings { } /** + * Set whether the WebView loads a page with overview mode. + * @hide Pending API council approval + */ + public void setLoadWithOverviewMode(boolean overview) { + mLoadWithOverviewMode = overview; + } + + /** + * Returns true if this WebView loads page with overview mode + * @hide Pending API council approval + */ + public boolean getLoadWithOverviewMode() { + return mLoadWithOverviewMode; + } + + /** * Store whether the WebView is saving form data. */ public void setSaveFormData(boolean save) { |
