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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 | 102 |
103 // Enables putting only browser windows into immersive fullscreen via <F4>. | 103 // Enables putting only browser windows into immersive fullscreen via <F4>. |
104 // <F4> puts all other windows into non-immersive fullscreen. | 104 // <F4> puts all other windows into non-immersive fullscreen. |
105 const char kAshEnableImmersiveFullscreenForBrowserOnly[] = | 105 const char kAshEnableImmersiveFullscreenForBrowserOnly[] = |
106 "ash-enable-immersive-browser-only"; | 106 "ash-enable-immersive-browser-only"; |
107 | 107 |
108 #if defined(OS_CHROMEOS) | 108 #if defined(OS_CHROMEOS) |
109 // Enables key bindings to scroll magnified screen. | 109 // Enables key bindings to scroll magnified screen. |
110 const char kAshEnableMagnifierKeyScroller[] = | 110 const char kAshEnableMagnifierKeyScroller[] = |
111 "ash-enable-magnifier-key-scroller"; | 111 "ash-enable-magnifier-key-scroller"; |
112 | |
113 // Enables the multi user icons in the system tray. | |
114 const char kAshEnableMultiUserTray[] = "ash-enable-multi-user-tray"; | |
115 #endif | 112 #endif |
116 | 113 |
117 // Enables software based mirroring. | 114 // Enables software based mirroring. |
118 const char kAshEnableSoftwareMirroring[] = "ash-enable-software-mirroring"; | 115 const char kAshEnableSoftwareMirroring[] = "ash-enable-software-mirroring"; |
119 | 116 |
120 // Enables touch view testing. | 117 // Enables touch view testing. |
121 const char kAshEnableTouchViewTesting[] = "ash-enable-touch-view-testing"; | 118 const char kAshEnableTouchViewTesting[] = "ash-enable-touch-view-testing"; |
122 | 119 |
123 // When this flag is set, system sounds will be played whether the | 120 // When this flag is set, system sounds will be played whether the |
124 // ChromeVox is enabled or not. | 121 // ChromeVox is enabled or not. |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 bool UseDragOffShelf() { | 188 bool UseDragOffShelf() { |
192 return !CommandLine::ForCurrentProcess()-> | 189 return !CommandLine::ForCurrentProcess()-> |
193 HasSwitch(kAshDisableDragOffShelf); | 190 HasSwitch(kAshDisableDragOffShelf); |
194 } | 191 } |
195 | 192 |
196 bool UseImmersiveFullscreenForAllWindows() { | 193 bool UseImmersiveFullscreenForAllWindows() { |
197 return !CommandLine::ForCurrentProcess()->HasSwitch( | 194 return !CommandLine::ForCurrentProcess()->HasSwitch( |
198 kAshEnableImmersiveFullscreenForBrowserOnly); | 195 kAshEnableImmersiveFullscreenForBrowserOnly); |
199 } | 196 } |
200 | 197 |
201 bool UseMultiUserTray() { | |
202 #if defined(OS_CHROMEOS) | |
203 // TODO(skuhne): If this gets removed for good, remove also | |
204 // |SystemTray::user_items_| and the use of it. | |
205 return CommandLine::ForCurrentProcess()->HasSwitch(kAshEnableMultiUserTray); | |
206 #else | |
207 return false; | |
208 #endif | |
209 } | |
210 | |
211 bool UseOverviewMode() { | 198 bool UseOverviewMode() { |
212 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableOverviewMode); | 199 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableOverviewMode); |
213 } | 200 } |
214 | 201 |
215 bool UseDockedWindows() { | 202 bool UseDockedWindows() { |
216 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableDockedWindows); | 203 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableDockedWindows); |
217 } | 204 } |
218 | 205 |
219 bool ShowAudioDeviceMenu() { | 206 bool ShowAudioDeviceMenu() { |
220 #if defined(OS_CHROMEOS) | 207 #if defined(OS_CHROMEOS) |
221 return !CommandLine::ForCurrentProcess()-> | 208 return !CommandLine::ForCurrentProcess()-> |
222 HasSwitch(kAshDisableAudioDeviceMenu); | 209 HasSwitch(kAshDisableAudioDeviceMenu); |
223 #else | 210 #else |
224 return false; | 211 return false; |
225 #endif | 212 #endif |
226 } | 213 } |
227 | 214 |
228 #if defined(OS_CHROMEOS) | 215 #if defined(OS_CHROMEOS) |
229 bool UseUsbChargerNotification() { | 216 bool UseUsbChargerNotification() { |
230 return !CommandLine::ForCurrentProcess()-> | 217 return !CommandLine::ForCurrentProcess()-> |
231 HasSwitch(kAshDisableUsbChargerNotification); | 218 HasSwitch(kAshDisableUsbChargerNotification); |
232 } | 219 } |
233 #endif | 220 #endif |
234 | 221 |
235 } // namespace switches | 222 } // namespace switches |
236 } // namespace ash | 223 } // namespace ash |
OLD | NEW |