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

Unified Diff: cc/base/switches.cc

Issue 18341009: Refactor cc scrollbar layers to separate solid-color vs desktop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments; plumb scrollbar color via flag. Created 7 years, 4 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 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();

Powered by Google App Engine
This is Rietveld 408576698