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/ash_switches.h" | 5 #include "ash/ash_switches.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 | 8 |
9 namespace ash { | 9 namespace ash { |
10 namespace switches { | 10 namespace switches { |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 // Enable advanced gestures (e.g. for window management). | 83 // Enable advanced gestures (e.g. for window management). |
84 const char kAshEnableAdvancedGestures[] = "ash-enable-advanced-gestures"; | 84 const char kAshEnableAdvancedGestures[] = "ash-enable-advanced-gestures"; |
85 | 85 |
86 // Always enable brightness control. Used by machines that don't report their | 86 // Always enable brightness control. Used by machines that don't report their |
87 // main monitor as internal. | 87 // main monitor as internal. |
88 const char kAshEnableBrightnessControl[] = "ash-enable-brightness-control"; | 88 const char kAshEnableBrightnessControl[] = "ash-enable-brightness-control"; |
89 | 89 |
90 // Enable the dock area on a desktop. | 90 // Enable the dock area on a desktop. |
91 const char kAshEnableDockedWindows[] = "ash-enable-docked-windows"; | 91 const char kAshEnableDockedWindows[] = "ash-enable-docked-windows"; |
92 | 92 |
93 // Enable dragging items off the shelf to unpin them. | 93 // Disable dragging items off the shelf to unpin them. |
94 const char kAshEnableDragOffShelf[] = "ash-enable-drag-off-shelf"; | 94 const char kAshDisableDragOffShelf[] = "ash-disable-drag-off-shelf"; |
95 | 95 |
96 // Enable immersive fullscreen mode, regardless of default setting. | 96 // Enable immersive fullscreen mode, regardless of default setting. |
97 const char kAshEnableImmersiveFullscreen[] = "ash-enable-immersive-fullscreen"; | 97 const char kAshEnableImmersiveFullscreen[] = "ash-enable-immersive-fullscreen"; |
98 | 98 |
99 #if defined(OS_LINUX) | 99 #if defined(OS_LINUX) |
100 // Enable memory monitoring. | 100 // Enable memory monitoring. |
101 const char kAshEnableMemoryMonitor[] = "ash-enable-memory-monitor"; | 101 const char kAshEnableMemoryMonitor[] = "ash-enable-memory-monitor"; |
102 #endif | 102 #endif |
103 | 103 |
104 // Enables the Oak tree viewer. | 104 // Enables the Oak tree viewer. |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 // Enables a mode which enforces all browser & application windows to be created | 178 // Enables a mode which enforces all browser & application windows to be created |
179 // in maximized mode. | 179 // in maximized mode. |
180 const char kForcedMaximizeMode[] = "forced-maximize-mode"; | 180 const char kForcedMaximizeMode[] = "forced-maximize-mode"; |
181 | 181 |
182 bool UseAlternateShelfLayout() { | 182 bool UseAlternateShelfLayout() { |
183 return CommandLine::ForCurrentProcess()-> | 183 return CommandLine::ForCurrentProcess()-> |
184 HasSwitch(ash::switches::kAshUseAlternateShelfLayout); | 184 HasSwitch(ash::switches::kAshUseAlternateShelfLayout); |
185 } | 185 } |
186 | 186 |
187 bool UseDragOffShelf() { | 187 bool UseDragOffShelf() { |
188 return CommandLine::ForCurrentProcess()-> | 188 return !CommandLine::ForCurrentProcess()-> |
189 HasSwitch(ash::switches::kAshEnableDragOffShelf); | 189 HasSwitch(ash::switches::kAshDisableDragOffShelf); |
190 } | 190 } |
191 | 191 |
192 bool ShowShelfAlignmentMenu() { | 192 bool ShowShelfAlignmentMenu() { |
193 return CommandLine::ForCurrentProcess()-> | 193 return CommandLine::ForCurrentProcess()-> |
194 HasSwitch(switches::kShowShelfAlignmentMenu); | 194 HasSwitch(switches::kShowShelfAlignmentMenu); |
195 } | 195 } |
196 | 196 |
197 #if defined(OS_CHROMEOS) | 197 #if defined(OS_CHROMEOS) |
198 bool ShowAudioDeviceMenu() { | 198 bool ShowAudioDeviceMenu() { |
199 return !CommandLine::ForCurrentProcess()-> | 199 return !CommandLine::ForCurrentProcess()-> |
200 HasSwitch(ash::switches::kAshDisableAudioDeviceMenu); | 200 HasSwitch(ash::switches::kAshDisableAudioDeviceMenu); |
201 } | 201 } |
202 | 202 |
203 bool UseUsbChargerNotification() { | 203 bool UseUsbChargerNotification() { |
204 return !CommandLine::ForCurrentProcess()-> | 204 return !CommandLine::ForCurrentProcess()-> |
205 HasSwitch(ash::switches::kAshDisableUsbChargerNotification); | 205 HasSwitch(ash::switches::kAshDisableUsbChargerNotification); |
206 } | 206 } |
207 #endif | 207 #endif |
208 | 208 |
209 } // namespace switches | 209 } // namespace switches |
210 } // namespace ash | 210 } // namespace ash |
OLD | NEW |