Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(302)

Unified Diff: Source/WebKit/chromium/src/WebSettingsImpl.cpp

Issue 15927026: Enabled using viewport on desktop browsers behind experimental flag (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Review Fixes 2 Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/WebKit/chromium/src/WebSettingsImpl.cpp
diff --git a/Source/WebKit/chromium/src/WebSettingsImpl.cpp b/Source/WebKit/chromium/src/WebSettingsImpl.cpp
index 33b9d144f753f4c0f3c3fa9a658a577c85a6769d..ffd6733615384b4ba41424feb0bb684be486f6af 100644
--- a/Source/WebKit/chromium/src/WebSettingsImpl.cpp
+++ b/Source/WebKit/chromium/src/WebSettingsImpl.cpp
@@ -58,6 +58,8 @@ WebSettingsImpl::WebSettingsImpl(Settings* settings)
, m_deferredImageDecodingEnabled(false)
, m_doubleTapToZoomEnabled(false)
, m_supportDeprecatedTargetDensityDPI(false)
+ , m_resizeAffectsLayoutWidth(false)
+ , m_layoutFallbackWidthIsWindowWidth(false)
{
ASSERT(settings);
}
@@ -680,4 +682,24 @@ void WebSettingsImpl::setPinchVirtualViewportEnabled(bool enabled)
m_settings->setPinchVirtualViewportEnabled(enabled);
}
+bool WebSettingsImpl::resizeAffectsLayoutWidth() const
+{
+ return m_resizeAffectsLayoutWidth;
+}
+
+void WebSettingsImpl::setResizeAffectsLayoutWidth(bool resizeAffectsLayoutWidth)
+{
+ m_resizeAffectsLayoutWidth = resizeAffectsLayoutWidth;
+}
+
+bool WebSettingsImpl::layoutFallbackWidthIsWindowWidth() const
+{
+ return m_layoutFallbackWidthIsWindowWidth;
+}
+
+void WebSettingsImpl::setLayoutFallbackWidthIsWindowWidth(bool layoutFallbackWidthIsWindowWidth)
+{
+ m_layoutFallbackWidthIsWindowWidth = layoutFallbackWidthIsWindowWidth;
+}
+
} // namespace WebKit

Powered by Google App Engine
This is Rietveld 408576698