Index: content/public/android/java/src/org/chromium/content/browser/ContentSettings.java |
diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentSettings.java b/content/public/android/java/src/org/chromium/content/browser/ContentSettings.java |
index c60f2edd175c11ab7b5e6d8a375550585b670aa5..cd7d600aee900155ebe727e313a11953adf5c70d 100644 |
--- a/content/public/android/java/src/org/chromium/content/browser/ContentSettings.java |
+++ b/content/public/android/java/src/org/chromium/content/browser/ContentSettings.java |
@@ -92,6 +92,7 @@ public class ContentSettings { |
private boolean mDomStorageEnabled = false; |
private boolean mDatabaseEnabled = false; |
private boolean mUseWideViewport = false; |
+ private boolean mLoadWithOverviewMode = false; |
// Not accessed by the native side. |
private boolean mSupportZoom = true; |
@@ -376,6 +377,22 @@ public class ContentSettings { |
return supportsMultiTouchZoom() && mDisplayZoomControls; |
} |
+ public void setLoadWithOverviewMode(boolean overview) { |
+ assert mCanModifySettings; |
+ synchronized (mContentSettingsLock) { |
+ if (mLoadWithOverviewMode != overview) { |
+ mLoadWithOverviewMode = overview; |
+ mEventHandler.syncSettingsLocked(); |
+ } |
+ } |
+ } |
+ |
+ public boolean getLoadWithOverviewMode() { |
+ synchronized (mContentSettingsLock) { |
+ return mLoadWithOverviewMode; |
+ } |
+ } |
+ |
/** |
* Sets the text zoom of the page in percent. Default is 100. |
* |
@@ -1191,6 +1208,7 @@ public class ContentSettings { |
*/ |
public void initFrom(ContentSettings settings) { |
setLayoutAlgorithm(settings.getLayoutAlgorithm()); |
+ setLoadWithOverviewMode(settings.getLoadWithOverviewMode()); |
setTextZoom(settings.getTextZoom()); |
setStandardFontFamily(settings.getStandardFontFamily()); |
setFixedFontFamily(settings.getFixedFontFamily()); |