OLD | NEW |
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/common/ash_switches.h" | 5 #include "ash/common/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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 const char kAshEnableMirroredScreen[] = "ash-enable-mirrored-screen"; | 69 const char kAshEnableMirroredScreen[] = "ash-enable-mirrored-screen"; |
70 | 70 |
71 // Enables the palette next to the status area. | 71 // Enables the palette next to the status area. |
72 const char kAshForceEnablePalette[] = "ash-force-enable-palette"; | 72 const char kAshForceEnablePalette[] = "ash-force-enable-palette"; |
73 | 73 |
74 // Hides notifications that are irrelevant to Chrome OS device factory testing, | 74 // Hides notifications that are irrelevant to Chrome OS device factory testing, |
75 // such as battery level updates. | 75 // such as battery level updates. |
76 const char kAshHideNotificationsForFactory[] = | 76 const char kAshHideNotificationsForFactory[] = |
77 "ash-hide-notifications-for-factory"; | 77 "ash-hide-notifications-for-factory"; |
78 | 78 |
| 79 // Enables the shelf color to be derived from the wallpaper. |
| 80 const char kAshShelfColor[] = "ash-shelf-color"; |
| 81 const char kAshShelfColorLightMuted[] = "light_muted"; |
| 82 const char kAshShelfColorLightVibrant[] = "light_vibrant"; |
| 83 const char kAshShelfColorNormalMuted[] = "normal_muted"; |
| 84 const char kAshShelfColorNormalVibrant[] = "normal_vibrant"; |
| 85 const char kAshShelfColorDarkMuted[] = "dark_muted"; |
| 86 const char kAshShelfColorDarkVibrant[] = "dark_vibrant"; |
| 87 |
79 // Enables the heads-up display for tracking touch points. | 88 // Enables the heads-up display for tracking touch points. |
80 const char kAshTouchHud[] = "ash-touch-hud"; | 89 const char kAshTouchHud[] = "ash-touch-hud"; |
81 | 90 |
82 // (Most) Chrome OS hardware reports ACPI power button releases correctly. | 91 // (Most) Chrome OS hardware reports ACPI power button releases correctly. |
83 // Standard hardware reports releases immediately after presses. If set, we | 92 // Standard hardware reports releases immediately after presses. If set, we |
84 // lock the screen or shutdown the system immediately in response to a press | 93 // lock the screen or shutdown the system immediately in response to a press |
85 // instead of displaying an interactive animation. | 94 // instead of displaying an interactive animation. |
86 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button"; | 95 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button"; |
87 | 96 |
88 // Constrains the pointer movement within a root window on desktop. | 97 // Constrains the pointer movement within a root window on desktop. |
89 bool ConstrainPointerToRoot() { | 98 bool ConstrainPointerToRoot() { |
90 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root"; | 99 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root"; |
91 | 100 |
92 return base::SysInfo::IsRunningOnChromeOS() || | 101 return base::SysInfo::IsRunningOnChromeOS() || |
93 base::CommandLine::ForCurrentProcess()->HasSwitch( | 102 base::CommandLine::ForCurrentProcess()->HasSwitch( |
94 kAshConstrainPointerToRoot); | 103 kAshConstrainPointerToRoot); |
95 } | 104 } |
96 | 105 |
97 bool DockedWindowsEnabled() { | 106 bool DockedWindowsEnabled() { |
98 return base::CommandLine::ForCurrentProcess()->HasSwitch( | 107 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
99 ash::switches::kAshEnableDockedWindows); | 108 ash::switches::kAshEnableDockedWindows); |
100 } | 109 } |
101 | 110 |
102 } // namespace switches | 111 } // namespace switches |
103 } // namespace ash | 112 } // namespace ash |
OLD | NEW |