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

Unified Diff: cc/base/switches.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: cc/base/switches.cc
diff --git a/cc/base/switches.cc b/cc/base/switches.cc
index 64d31da17f0748941ca361472474ba2e367a4595..6800fdbec6c2beadefdd9217507c8f65b2fc1a9e 100644
--- a/cc/base/switches.cc
+++ b/cc/base/switches.cc
@@ -131,6 +131,21 @@ const char kCCLayerTreeTestNoTimeout[] = "cc-layer-tree-test-no-timeout";
const char kCCUnittestsTraceEventsToVLOG[] =
"cc-unittests-trace-events-to-vlog";
+// Allow forcing of solid-color scrollbars
jamesr 2013/07/03 21:26:24 what does it mean to "allow forcing"? Does the fl
+const char kForceSolidColorScrollbars[] = "force-solid-color-scrollbars";
+
+// Solid-color scrollbar color in hex ARGB format, e.g. 0x80808080.
+// The 0x/0X prefix is optional.
+const char kSolidColorScrollbarColor[] = "solid-color-scrollbar-color";
+
+// Solid-color scrollbar thickness in DIP.
+const char kSolidColorScrollbarThickness[] = "solid-color-scrollbar-thickness";
+
+bool ForceSolidColorScrollbars() {
jamesr 2013/07/03 21:26:24 the function name looks like it's doing something,
+ return CommandLine::ForCurrentProcess()->HasSwitch(
+ cc::switches::kForceSolidColorScrollbars);
+}
+
bool IsImplSidePaintingEnabled() {
const CommandLine& command_line = *CommandLine::ForCurrentProcess();
« no previous file with comments | « cc/base/switches.h ('k') | cc/layers/scrollbar_layer.h » ('j') | cc/layers/scrollbar_layer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698