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

Side by Side Diff: ui/native_theme/native_theme_switches.cc

Issue 851853002: It is time. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Trying to reup because the last upload failed. Created 5 years, 11 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 unified diff | Download patch
« no previous file with comments | « ui/native_theme/native_theme_switches.h ('k') | ui/native_theme/native_theme_win.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 #include "base/command_line.h"
6 #include "ui/native_theme/native_theme_switches.h"
7
8 namespace switches {
9
10 // Enables overlay scrollbars on Aura or Linux. Does nothing on Mac.
11 const char kEnableOverlayScrollbar[] = "enable-overlay-scrollbar";
12
13 // Disables overlay scrollbars on Aura or Linux. Does nothing on Mac.
14 const char kDisableOverlayScrollbar[] = "disable-overlay-scrollbar";
15
16 } // namespace switches
17
18 namespace ui {
19
20 bool IsOverlayScrollbarEnabled() {
21 const base::CommandLine& command_line =
22 *base::CommandLine::ForCurrentProcess();
23
24 if (command_line.HasSwitch(switches::kDisableOverlayScrollbar))
25 return false;
26 else if (command_line.HasSwitch(switches::kEnableOverlayScrollbar))
27 return true;
28
29 return false;
30 }
31
32 } // namespace ui
OLDNEW
« no previous file with comments | « ui/native_theme/native_theme_switches.h ('k') | ui/native_theme/native_theme_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698