Index: cc/base/switches.cc |
diff --git a/cc/base/switches.cc b/cc/base/switches.cc |
index 2dac58b691147a9b073b87274984fad8c5f9099d..6354a643d80de66d5d8adb15e9cffb4927b35130 100644 |
--- a/cc/base/switches.cc |
+++ b/cc/base/switches.cc |
@@ -131,6 +131,18 @@ const char kUseMapImage[] = "use-map-image"; |
// Prevents the layer tree unit tests from timing out. |
const char kCCLayerTreeTestNoTimeout[] = "cc-layer-tree-test-no-timeout"; |
+// Enables overlay scrollbars on Aura or Linux. Does nothing on Mac. |
+const char kEnableOverlayScrollbars[] = "enable-overlay-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"; |
+ |
+bool AreOverlayScrollbarsEnabled() { |
+ return CommandLine::ForCurrentProcess()->HasSwitch( |
+ cc::switches::kEnableOverlayScrollbars); |
+} |
+ |
bool IsImplSidePaintingEnabled() { |
const CommandLine& command_line = *CommandLine::ForCurrentProcess(); |