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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 17558002: Set default pinch viewport overlay scrollbar thickness in WebPreferences. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Only set default thickness if pinch viewport enabled. 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
« no previous file with comments | « no previous file | webkit/common/webpreferences.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index 16bf2ab536404a6675c54aba13b507506ca2ca6f..364c4638309ab7da826b1edc03644ecae79a1ac7 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -550,8 +550,10 @@ WebPreferences WebContentsImpl::GetWebkitPrefs(RenderViewHost* rvh,
!command_line.HasSwitch(switches::kDisableThreadedHTMLParser);
prefs.experimental_websocket_enabled =
command_line.HasSwitch(switches::kEnableExperimentalWebSocket);
- prefs.pinch_virtual_viewport_enabled =
- command_line.HasSwitch(cc::switches::kEnablePinchVirtualViewport);
+ if (command_line.HasSwitch(cc::switches::kEnablePinchVirtualViewport)) {
+ prefs.pinch_virtual_viewport_enabled = true;
+ prefs.pinch_overlay_scrollbar_thickness = 10;
+ }
#if defined(OS_ANDROID)
prefs.user_gesture_required_for_media_playback = !command_line.HasSwitch(
« no previous file with comments | « no previous file | webkit/common/webpreferences.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698