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

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: Created 7 years, 7 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..f5e7592cc2fe270b2fc972857ba9ecc7603b75f4 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_deviceSupportsRotation(false)
+ , m_desktopViewportEnabled(false)
{
ASSERT(settings);
}
@@ -680,4 +682,24 @@ void WebSettingsImpl::setPinchVirtualViewportEnabled(bool enabled)
m_settings->setPinchVirtualViewportEnabled(enabled);
}
+bool WebSettingsImpl::deviceSupportsRotation() const
+{
+ return m_deviceSupportsRotation;
+}
+
+void WebSettingsImpl::setDeviceSupportsRotation(bool deviceSupportsRotation)
+{
+ m_deviceSupportsRotation = deviceSupportsRotation;
+}
+
+bool WebSettingsImpl::desktopViewportEnabled() const
+{
+ return m_desktopViewportEnabled;
+}
+
+void WebSettingsImpl::setDesktopViewportEnabled(bool desktopViewportEnabled)
+{
+ m_desktopViewportEnabled = desktopViewportEnabled;
+}
+
} // namespace WebKit

Powered by Google App Engine
This is Rietveld 408576698