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

Unified Diff: content/browser/android/content_startup_flags.cc

Issue 17550008: Make IsSolidColor() a property on CC scrollbar layers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Set color/thickness via command line also. 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 | « cc/trees/layer_tree_settings.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/android/content_startup_flags.cc
diff --git a/content/browser/android/content_startup_flags.cc b/content/browser/android/content_startup_flags.cc
index 1d959dc368f50db72b4778b0b3acea3206fdf437..b889a71e5b6306a1f8f27b2c300e168c2db3ea28 100644
--- a/content/browser/android/content_startup_flags.cc
+++ b/content/browser/android/content_startup_flags.cc
@@ -61,6 +61,15 @@ void SetContentCommandLineFlags(int max_render_process_count,
parsed_command_line->AppendSwitch(switches::kEnableGestureTapHighlight);
parsed_command_line->AppendSwitch(switches::kEnablePinch);
parsed_command_line->AppendSwitch(switches::kEnableOverscrollNotifications);
+ parsed_command_line->AppendSwitch(cc::switches::kForceSolidColorScrollbars);
+
+ std::string thickness_string(cc::switches::kSolidColorScrollbarThickness);
+ thickness_string.append("=3");
bulach 2013/06/28 19:55:48 nit: maybe extract these as named constants up abo
+ parsed_command_line->AppendSwitch(thickness_string);
+
+ std::string color_string(cc::switches::kSolidColorScrollbarColor);
+ color_string.append("=0x80808080");
+ parsed_command_line->AppendSwitch(color_string);
// Run the GPU service as a thread in the browser instead of as a
// standalone process.
« no previous file with comments | « cc/trees/layer_tree_settings.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698