Revert of Add Masonry to key_silk_cases. (patchset #3 id:40001 of https://codereview...
[chromium-blink-merge.git] / ui / native_theme / native_theme_switches.cc
blob873af518985c1dc6226256118424e2a6493dd086
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "base/command_line.h"
6 #include "ui/native_theme/native_theme_switches.h"
8 namespace switches {
10 // Enables overlay scrollbars on Aura or Linux. Does nothing on Mac.
11 const char kEnableOverlayScrollbar[] = "enable-overlay-scrollbar";
13 // Disables overlay scrollbars on Aura or Linux. Does nothing on Mac.
14 const char kDisableOverlayScrollbar[] = "disable-overlay-scrollbar";
16 } // namespace switches
18 namespace ui {
20 bool IsOverlayScrollbarEnabled() {
21 const base::CommandLine& command_line =
22 *base::CommandLine::ForCurrentProcess();
24 if (command_line.HasSwitch(switches::kDisableOverlayScrollbar))
25 return false;
26 else if (command_line.HasSwitch(switches::kEnableOverlayScrollbar))
27 return true;
29 return false;
32 } // namespace ui