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