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

Unified Diff: content/browser/renderer_host/render_view_host_impl.cc

Issue 254393008: Enabling new-style 'virtual viewport' pinch by default on ChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 8 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 | « chrome/browser/about_flags.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_view_host_impl.cc
diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc
index 894d68b86bbe6d7345812a0c65f688a544377b18..2d11d5fb2ef16f545135bef6ff2465ca10cc8342 100644
--- a/content/browser/renderer_host/render_view_host_impl.cc
+++ b/content/browser/renderer_host/render_view_host_impl.cc
@@ -436,7 +436,14 @@ WebPreferences RenderViewHostImpl::GetWebkitPrefs(const GURL& url) {
command_line.HasSwitch(switches::kEnableExperimentalWebPlatformFeatures);
prefs.region_based_columns_enabled =
command_line.HasSwitch(switches::kEnableRegionBasedColumns);
- if (command_line.HasSwitch(cc::switches::kEnablePinchVirtualViewport)) {
+
+#if defined(OS_CHROMEOS)
+ bool enable_pinch_virtual_viewport = true;
+#else
+ bool enable_pinch_virtual_viewport =
+ command_line.HasSwitch(cc::switches::kEnablePinchVirtualViewport);
+#endif
+ if (enable_pinch_virtual_viewport) {
prefs.pinch_virtual_viewport_enabled = true;
prefs.pinch_overlay_scrollbar_thickness = 10;
}
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698