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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 // - Increases the height of the maximized header. | 81 // - Increases the height of the maximized header. |
82 // - Removes the maximize button's help bubble. | 82 // - Removes the maximize button's help bubble. |
83 // - Switches snapping a window left/right to be always 50%. | 83 // - Switches snapping a window left/right to be always 50%. |
84 const char kAshEnableAlternateFrameCaptionButtonStyle[] = | 84 const char kAshEnableAlternateFrameCaptionButtonStyle[] = |
85 "ash-enable-alternate-caption-button"; | 85 "ash-enable-alternate-caption-button"; |
86 | 86 |
87 // Always enable brightness control. Used by machines that don't report their | 87 // Always enable brightness control. Used by machines that don't report their |
88 // main monitor as internal. | 88 // main monitor as internal. |
89 const char kAshEnableBrightnessControl[] = "ash-enable-brightness-control"; | 89 const char kAshEnableBrightnessControl[] = "ash-enable-brightness-control"; |
90 | 90 |
91 // Enable the dock area on a desktop. | 91 // Disable ability to dock windows at the desktop edge. |
92 const char kAshEnableDockedWindows[] = "ash-enable-docked-windows"; | 92 const char kAshDisableDockedWindows[] = "ash-disable-docked-windows"; |
93 | 93 |
94 // Disable dragging items off the shelf to unpin them. | 94 // Disable dragging items off the shelf to unpin them. |
95 const char kAshDisableDragOffShelf[] = "ash-disable-drag-off-shelf"; | 95 const char kAshDisableDragOffShelf[] = "ash-disable-drag-off-shelf"; |
96 | 96 |
97 #if defined(OS_CHROMEOS) | 97 #if defined(OS_CHROMEOS) |
98 // Enables the "full multi profile mode" - as it was in M-31. | 98 // Enables the "full multi profile mode" - as it was in M-31. |
99 const char kAshEnableFullMultiProfileMode[] = | 99 const char kAshEnableFullMultiProfileMode[] = |
100 "ash-enable-full-multi-profile-mode"; | 100 "ash-enable-full-multi-profile-mode"; |
101 #endif | 101 #endif |
102 | 102 |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 HasSwitch(kAshEnableFullMultiProfileMode); | 216 HasSwitch(kAshEnableFullMultiProfileMode); |
217 #else | 217 #else |
218 return false; | 218 return false; |
219 #endif | 219 #endif |
220 } | 220 } |
221 | 221 |
222 bool UseOverviewMode() { | 222 bool UseOverviewMode() { |
223 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableOverviewMode); | 223 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableOverviewMode); |
224 } | 224 } |
225 | 225 |
| 226 bool UseDockedWindows() { |
| 227 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableDockedWindows); |
| 228 } |
| 229 |
226 #if defined(OS_CHROMEOS) | 230 #if defined(OS_CHROMEOS) |
227 bool ShowAudioDeviceMenu() { | 231 bool ShowAudioDeviceMenu() { |
228 return !CommandLine::ForCurrentProcess()-> | 232 return !CommandLine::ForCurrentProcess()-> |
229 HasSwitch(kAshDisableAudioDeviceMenu); | 233 HasSwitch(kAshDisableAudioDeviceMenu); |
230 } | 234 } |
231 | 235 |
232 bool UseUsbChargerNotification() { | 236 bool UseUsbChargerNotification() { |
233 return !CommandLine::ForCurrentProcess()-> | 237 return !CommandLine::ForCurrentProcess()-> |
234 HasSwitch(kAshDisableUsbChargerNotification); | 238 HasSwitch(kAshDisableUsbChargerNotification); |
235 } | 239 } |
236 #endif | 240 #endif |
237 | 241 |
238 } // namespace switches | 242 } // namespace switches |
239 } // namespace ash | 243 } // namespace ash |
OLD | NEW |