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

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: Address Jochen's comments. 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
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..f605b67a7f104caa7edf6995dbc1cabcb588b352 100644
--- a/content/browser/android/content_startup_flags.cc
+++ b/content/browser/android/content_startup_flags.cc
@@ -16,6 +16,11 @@
namespace content {
+namespace {
+const char kSolidColorScrollbarThicknessValue[] = "=3";
+const char kSolidColorScrollbarColorValue[] = "=0x80808080";
+} // namespace
+
void SetContentCommandLineFlags(int max_render_process_count,
const std::string& plugin_descriptor) {
// May be called multiple times, to cover all possible program entry points.
@@ -61,6 +66,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(kSolidColorScrollbarThicknessValue);
+ parsed_command_line->AppendSwitch(thickness_string);
+
+ std::string color_string(cc::switches::kSolidColorScrollbarColor);
+ color_string.append(kSolidColorScrollbarColorValue);
+ parsed_command_line->AppendSwitch(color_string);
// Run the GPU service as a thread in the browser instead of as a
// standalone process.

Powered by Google App Engine
This is Rietveld 408576698