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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 "ash-enable-alternate-caption-button"; | 101 "ash-enable-alternate-caption-button"; |
102 | 102 |
103 // Always enable brightness control. Used by machines that don't report their | 103 // Always enable brightness control. Used by machines that don't report their |
104 // main monitor as internal. | 104 // main monitor as internal. |
105 const char kAshEnableBrightnessControl[] = "ash-enable-brightness-control"; | 105 const char kAshEnableBrightnessControl[] = "ash-enable-brightness-control"; |
106 | 106 |
107 // Enables putting all windows into immersive fullscreen via <F4>. | 107 // Enables putting all windows into immersive fullscreen via <F4>. |
108 const char kAshEnableImmersiveFullscreenForAllWindows[] = | 108 const char kAshEnableImmersiveFullscreenForAllWindows[] = |
109 "ash-enable-immersive-all-windows"; | 109 "ash-enable-immersive-all-windows"; |
110 | 110 |
| 111 // Enables putting only browser windows into immersive fullscreen via <F4>. |
| 112 // <F4> puts all other windows into non-immersive fullscreen. |
| 113 const char kAshEnableImmersiveFullscreenForBrowserOnly[] = |
| 114 "ash-enable-immersive-browser-only"; |
| 115 |
111 #if defined(OS_CHROMEOS) | 116 #if defined(OS_CHROMEOS) |
112 // Enables the "full multi profile mode" - as it was in M-31. | 117 // Enables the "full multi profile mode" - as it was in M-31. |
113 const char kAshEnableFullMultiProfileMode[] = | 118 const char kAshEnableFullMultiProfileMode[] = |
114 "ash-enable-full-multi-profile-mode"; | 119 "ash-enable-full-multi-profile-mode"; |
115 #endif | 120 #endif |
116 | 121 |
117 #if defined(OS_LINUX) | 122 #if defined(OS_LINUX) |
118 // Enable memory monitoring. | 123 // Enable memory monitoring. |
119 const char kAshEnableMemoryMonitor[] = "ash-enable-memory-monitor"; | 124 const char kAshEnableMemoryMonitor[] = "ash-enable-memory-monitor"; |
120 #endif | 125 #endif |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 bool UseAlternateShelfLayout() { | 219 bool UseAlternateShelfLayout() { |
215 return !CommandLine::ForCurrentProcess()-> | 220 return !CommandLine::ForCurrentProcess()-> |
216 HasSwitch(kAshDisableAlternateShelfLayout); | 221 HasSwitch(kAshDisableAlternateShelfLayout); |
217 } | 222 } |
218 | 223 |
219 bool UseDragOffShelf() { | 224 bool UseDragOffShelf() { |
220 return !CommandLine::ForCurrentProcess()-> | 225 return !CommandLine::ForCurrentProcess()-> |
221 HasSwitch(kAshDisableDragOffShelf); | 226 HasSwitch(kAshDisableDragOffShelf); |
222 } | 227 } |
223 | 228 |
| 229 bool UseImmersiveFullscreenForAllWindows() { |
| 230 return !CommandLine::ForCurrentProcess()->HasSwitch( |
| 231 kAshEnableImmersiveFullscreenForBrowserOnly); |
| 232 } |
| 233 |
224 bool ShowShelfAlignmentMenu() { | 234 bool ShowShelfAlignmentMenu() { |
225 return !CommandLine::ForCurrentProcess()-> | 235 return !CommandLine::ForCurrentProcess()-> |
226 HasSwitch(kHideShelfAlignmentMenu); | 236 HasSwitch(kHideShelfAlignmentMenu); |
227 } | 237 } |
228 | 238 |
229 // Returns true if the full multi profile mode (M-31 version) is active. | 239 // Returns true if the full multi profile mode (M-31 version) is active. |
230 bool UseFullMultiProfileMode() { | 240 bool UseFullMultiProfileMode() { |
231 #if defined(OS_CHROMEOS) | 241 #if defined(OS_CHROMEOS) |
232 return CommandLine::ForCurrentProcess()-> | 242 return CommandLine::ForCurrentProcess()-> |
233 HasSwitch(kAshEnableFullMultiProfileMode); | 243 HasSwitch(kAshEnableFullMultiProfileMode); |
(...skipping 27 matching lines...) Expand all Loading... |
261 } | 271 } |
262 | 272 |
263 bool UseUsbChargerNotification() { | 273 bool UseUsbChargerNotification() { |
264 return !CommandLine::ForCurrentProcess()-> | 274 return !CommandLine::ForCurrentProcess()-> |
265 HasSwitch(kAshDisableUsbChargerNotification); | 275 HasSwitch(kAshDisableUsbChargerNotification); |
266 } | 276 } |
267 #endif | 277 #endif |
268 | 278 |
269 } // namespace switches | 279 } // namespace switches |
270 } // namespace ash | 280 } // namespace ash |
OLD | NEW |