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

Side by Side Diff: ash/ash_switches.cc

Issue 2921973002: Hide Night Light behind a flag (Closed)
Patch Set: James' comments Created 3 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 unified diff | Download patch
« no previous file with comments | « ash/ash_switches.h ('k') | ash/shell.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/ash_switches.h" 5 #include "ash/ash_switches.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/sys_info.h" 8 #include "base/sys_info.h"
9 9
10 namespace ash { 10 namespace ash {
(...skipping 22 matching lines...) Expand all
33 // Disable the Touch Exploration Mode. Touch Exploration Mode will no longer be 33 // Disable the Touch Exploration Mode. Touch Exploration Mode will no longer be
34 // turned on automatically when spoken feedback is enabled when this flag is 34 // turned on automatically when spoken feedback is enabled when this flag is
35 // set. 35 // set.
36 const char kAshDisableTouchExplorationMode[] = 36 const char kAshDisableTouchExplorationMode[] =
37 "ash-disable-touch-exploration-mode"; 37 "ash-disable-touch-exploration-mode";
38 38
39 // Enables key bindings to scroll magnified screen. 39 // Enables key bindings to scroll magnified screen.
40 const char kAshEnableMagnifierKeyScroller[] = 40 const char kAshEnableMagnifierKeyScroller[] =
41 "ash-enable-magnifier-key-scroller"; 41 "ash-enable-magnifier-key-scroller";
42 42
43 // Enables the NightLight feature.
44 const char kAshEnableNightLight[] = "ash-enable-night-light";
45
43 // Enables the palette on every display, instead of only the internal one. 46 // Enables the palette on every display, instead of only the internal one.
44 const char kAshEnablePaletteOnAllDisplays[] = 47 const char kAshEnablePaletteOnAllDisplays[] =
45 "ash-enable-palette-on-all-displays"; 48 "ash-enable-palette-on-all-displays";
46 49
47 // Enables the observation of accelerometer events to enter touch-view mode. 50 // Enables the observation of accelerometer events to enter touch-view mode.
48 const char kAshEnableTouchView[] = "enable-touchview"; 51 const char kAshEnableTouchView[] = "enable-touchview";
49 52
50 // Enables mirrored screen. 53 // Enables mirrored screen.
51 const char kAshEnableMirroredScreen[] = "ash-enable-mirrored-screen"; 54 const char kAshEnableMirroredScreen[] = "ash-enable-mirrored-screen";
52 55
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 bool ConstrainPointerToRoot() { 114 bool ConstrainPointerToRoot() {
112 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root"; 115 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root";
113 116
114 return base::SysInfo::IsRunningOnChromeOS() || 117 return base::SysInfo::IsRunningOnChromeOS() ||
115 base::CommandLine::ForCurrentProcess()->HasSwitch( 118 base::CommandLine::ForCurrentProcess()->HasSwitch(
116 kAshConstrainPointerToRoot); 119 kAshConstrainPointerToRoot);
117 } 120 }
118 121
119 } // namespace switches 122 } // namespace switches
120 } // namespace ash 123 } // namespace ash
OLDNEW
« no previous file with comments | « ash/ash_switches.h ('k') | ash/shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698