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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
86 // - Increases the height of the maximized header. | 86 // - Increases the height of the maximized header. |
87 // - Removes the maximize button's help bubble. | 87 // - Removes the maximize button's help bubble. |
88 // - Switches snapping a window left/right to be always 50%. | 88 // - Switches snapping a window left/right to be always 50%. |
89 const char kAshEnableAlternateFrameCaptionButtonStyle[] = | 89 const char kAshEnableAlternateFrameCaptionButtonStyle[] = |
90 "ash-enable-alternate-caption-button"; | 90 "ash-enable-alternate-caption-button"; |
91 | 91 |
92 // Always enable brightness control. Used by machines that don't report their | 92 // Always enable brightness control. Used by machines that don't report their |
93 // main monitor as internal. | 93 // main monitor as internal. |
94 const char kAshEnableBrightnessControl[] = "ash-enable-brightness-control"; | 94 const char kAshEnableBrightnessControl[] = "ash-enable-brightness-control"; |
95 | 95 |
96 // Disable ability to dock windows at the desktop edge. | 96 // Enable ability to dock windows at the desktop edge. |
97 const char kAshDisableDockedWindows[] = "ash-disable-docked-windows"; | 97 const char kAshEnableDockedWindows[] = "ash-enable-docked-windows"; |
sky
2013/12/09 17:03:08
Move this to match position in header.
| |
98 | 98 |
99 // Disable dragging items off the shelf to unpin them. | 99 // Disable dragging items off the shelf to unpin them. |
100 const char kAshDisableDragOffShelf[] = "ash-disable-drag-off-shelf"; | 100 const char kAshDisableDragOffShelf[] = "ash-disable-drag-off-shelf"; |
101 | 101 |
102 // Enables putting all windows into immersive fullscreen via <F4>. | 102 // Enables putting all windows into immersive fullscreen via <F4>. |
103 const char kAshEnableImmersiveFullscreenForAllWindows[] = | 103 const char kAshEnableImmersiveFullscreenForAllWindows[] = |
104 "ash-enable-immersive-all-windows"; | 104 "ash-enable-immersive-all-windows"; |
105 | 105 |
106 #if defined(OS_CHROMEOS) | 106 #if defined(OS_CHROMEOS) |
107 // Enables the "full multi profile mode" - as it was in M-31. | 107 // Enables the "full multi profile mode" - as it was in M-31. |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
243 #else | 243 #else |
244 return false; | 244 return false; |
245 #endif | 245 #endif |
246 } | 246 } |
247 | 247 |
248 bool UseOverviewMode() { | 248 bool UseOverviewMode() { |
249 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableOverviewMode); | 249 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableOverviewMode); |
250 } | 250 } |
251 | 251 |
252 bool UseDockedWindows() { | 252 bool UseDockedWindows() { |
253 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableDockedWindows); | 253 return CommandLine::ForCurrentProcess()->HasSwitch(kAshEnableDockedWindows); |
254 } | 254 } |
255 | 255 |
256 #if defined(OS_CHROMEOS) | 256 #if defined(OS_CHROMEOS) |
257 bool ShowAudioDeviceMenu() { | 257 bool ShowAudioDeviceMenu() { |
258 return !CommandLine::ForCurrentProcess()-> | 258 return !CommandLine::ForCurrentProcess()-> |
259 HasSwitch(kAshDisableAudioDeviceMenu); | 259 HasSwitch(kAshDisableAudioDeviceMenu); |
260 } | 260 } |
261 | 261 |
262 bool UseUsbChargerNotification() { | 262 bool UseUsbChargerNotification() { |
263 return !CommandLine::ForCurrentProcess()-> | 263 return !CommandLine::ForCurrentProcess()-> |
264 HasSwitch(kAshDisableUsbChargerNotification); | 264 HasSwitch(kAshDisableUsbChargerNotification); |
265 } | 265 } |
266 #endif | 266 #endif |
267 | 267 |
268 } // namespace switches | 268 } // namespace switches |
269 } // namespace ash | 269 } // namespace ash |
OLD | NEW |