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

Unified Diff: Source/web/WebSettingsImpl.cpp

Issue 23038013: [Android WebView] Avoid expanding layout width to match the old WebView (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created a separate setting Created 7 years, 4 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/web/WebSettingsImpl.cpp
diff --git a/Source/web/WebSettingsImpl.cpp b/Source/web/WebSettingsImpl.cpp
index b0d0daffc21ebcb7d75e94cfbf3ac81060e9e971..df4c29b4bfbf21524a92aae171344e62d155a196 100644
--- a/Source/web/WebSettingsImpl.cpp
+++ b/Source/web/WebSettingsImpl.cpp
@@ -56,6 +56,7 @@ WebSettingsImpl::WebSettingsImpl(Settings* settings)
, m_deferredImageDecodingEnabled(false)
, m_doubleTapToZoomEnabled(false)
, m_supportDeprecatedTargetDensityDPI(false)
+ , m_expandLayoutToFillVisualViewport(true)
, m_pinchOverlayScrollbarThickness(0)
{
ASSERT(settings);
@@ -181,6 +182,11 @@ void WebSettingsImpl::setSupportDeprecatedTargetDensityDPI(bool supportDeprecate
m_supportDeprecatedTargetDensityDPI = supportDeprecatedTargetDensityDPI;
}
+void WebSettingsImpl::setExpandLayoutToFillVisualViewport(bool expandLayoutToFillVisualViewport)
+{
+ m_expandLayoutToFillVisualViewport = expandLayoutToFillVisualViewport;
+}
+
void WebSettingsImpl::setSupportsMultipleWindows(bool supportsMultipleWindows)
{
m_settings->setSupportsMultipleWindows(supportsMultipleWindows);

Powered by Google App Engine
This is Rietveld 408576698