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

Unified Diff: Source/web/WebSettingsImpl.cpp

Issue 979033003: Move code from StyleResolver to ViewportStyleResolver. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 5 years, 9 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
« no previous file with comments | « Source/web/WebSettingsImpl.h ('k') | public/web/WebSettings.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebSettingsImpl.cpp
diff --git a/Source/web/WebSettingsImpl.cpp b/Source/web/WebSettingsImpl.cpp
index 68045444a28ad53885233f0d6e4c1f125957ca0f..8bfedb43168e8e37939daf5c10064954f8bb50fc 100644
--- a/Source/web/WebSettingsImpl.cpp
+++ b/Source/web/WebSettingsImpl.cpp
@@ -763,4 +763,12 @@ void WebSettingsImpl::setV8CacheOptions(V8CacheOptions options)
m_settings->setV8CacheOptions(static_cast<blink::V8CacheOptions>(options));
}
+void WebSettingsImpl::setUseMobileViewportStyle(bool enabled)
+{
+ if (m_devToolsAgent)
+ m_devToolsAgent->setUseMobileViewportStyle(enabled);
+ else
+ m_settings->setUseMobileViewportStyle(enabled);
+}
+
} // namespace blink
« no previous file with comments | « Source/web/WebSettingsImpl.h ('k') | public/web/WebSettings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698