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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 // Disable ability to dock windows at the desktop edge. | 61 // Disable ability to dock windows at the desktop edge. |
62 const char kAshDisableDockedWindows[] = "ash-disable-docked-windows"; | 62 const char kAshDisableDockedWindows[] = "ash-disable-docked-windows"; |
63 | 63 |
64 // Disallow items to be dragged from the app launcher list into the launcher. | 64 // Disallow items to be dragged from the app launcher list into the launcher. |
65 const char kAshDisableDragAndDropAppListToLauncher[] = | 65 const char kAshDisableDragAndDropAppListToLauncher[] = |
66 "ash-disable-drag-and-drop-applist-to-launcher"; | 66 "ash-disable-drag-and-drop-applist-to-launcher"; |
67 | 67 |
68 // Disable dragging items off the shelf to unpin them. | 68 // Disable dragging items off the shelf to unpin them. |
69 const char kAshDisableDragOffShelf[] = "ash-disable-drag-off-shelf"; | 69 const char kAshDisableDragOffShelf[] = "ash-disable-drag-off-shelf"; |
70 | 70 |
71 // Disables overview mode for window switching. | |
72 const char kAshDisableOverviewMode[] = "ash-disable-overview-mode"; | |
73 | |
74 #if defined(OS_CHROMEOS) | 71 #if defined(OS_CHROMEOS) |
75 // Disable the notification when a low-power USB charger is connected. | 72 // Disable the notification when a low-power USB charger is connected. |
76 const char kAshDisableUsbChargerNotification[] = | 73 const char kAshDisableUsbChargerNotification[] = |
77 "ash-disable-usb-charger-notification"; | 74 "ash-disable-usb-charger-notification"; |
78 | 75 |
79 // TODO(jamescook): Remove this unused flag. It exists only to allow the | 76 // TODO(jamescook): Remove this unused flag. It exists only to allow the |
80 // "Enable audio device menu" about:flags item to have the tri-state | 77 // "Enable audio device menu" about:flags item to have the tri-state |
81 // default/enabled/disabled UI. | 78 // default/enabled/disabled UI. |
82 const char kAshEnableAudioDeviceMenu[] = "ash-enable-audio-device-menu"; | 79 const char kAshEnableAudioDeviceMenu[] = "ash-enable-audio-device-menu"; |
83 #endif // defined(OS_CHROMEOS) | 80 #endif // defined(OS_CHROMEOS) |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 bool UseMultiUserTray() { | 210 bool UseMultiUserTray() { |
214 #if defined(OS_CHROMEOS) | 211 #if defined(OS_CHROMEOS) |
215 // TODO(skuhne): If this gets removed for good, remove also | 212 // TODO(skuhne): If this gets removed for good, remove also |
216 // |SystemTray::user_items_| and the use of it. | 213 // |SystemTray::user_items_| and the use of it. |
217 return CommandLine::ForCurrentProcess()->HasSwitch(kAshEnableMultiUserTray); | 214 return CommandLine::ForCurrentProcess()->HasSwitch(kAshEnableMultiUserTray); |
218 #else | 215 #else |
219 return false; | 216 return false; |
220 #endif | 217 #endif |
221 } | 218 } |
222 | 219 |
223 bool UseOverviewMode() { | |
224 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableOverviewMode); | |
225 } | |
226 | |
227 bool UseDockedWindows() { | 220 bool UseDockedWindows() { |
228 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableDockedWindows); | 221 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableDockedWindows); |
229 } | 222 } |
230 | 223 |
231 bool ShowAudioDeviceMenu() { | 224 bool ShowAudioDeviceMenu() { |
232 #if defined(OS_CHROMEOS) | 225 #if defined(OS_CHROMEOS) |
233 return !CommandLine::ForCurrentProcess()-> | 226 return !CommandLine::ForCurrentProcess()-> |
234 HasSwitch(kAshDisableAudioDeviceMenu); | 227 HasSwitch(kAshDisableAudioDeviceMenu); |
235 #else | 228 #else |
236 return false; | 229 return false; |
237 #endif | 230 #endif |
238 } | 231 } |
239 | 232 |
240 #if defined(OS_CHROMEOS) | 233 #if defined(OS_CHROMEOS) |
241 bool UseUsbChargerNotification() { | 234 bool UseUsbChargerNotification() { |
242 return !CommandLine::ForCurrentProcess()-> | 235 return !CommandLine::ForCurrentProcess()-> |
243 HasSwitch(kAshDisableUsbChargerNotification); | 236 HasSwitch(kAshDisableUsbChargerNotification); |
244 } | 237 } |
245 #endif | 238 #endif |
246 | 239 |
247 } // namespace switches | 240 } // namespace switches |
248 } // namespace ash | 241 } // namespace ash |
OLD | NEW |