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/common/ash_switches.h" | 5 #include "ash/common/ash_switches.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/sys_info.h" | 8 #include "base/sys_info.h" |
9 | 9 |
10 namespace ash { | 10 namespace ash { |
11 namespace switches { | 11 namespace switches { |
12 | 12 |
13 // Enables an animated transition from the boot splash screen (Chrome logo on a | 13 // Enables an animated transition from the boot splash screen (Chrome logo on a |
14 // white background) to the login screen. Implies | 14 // white background) to the login screen. Implies |
15 // |kAshCopyHostBackgroundAtBoot| and doesn't make much sense if used in | 15 // |kAshCopyHostBackgroundAtBoot| and doesn't make much sense if used in |
16 // conjunction with |kDisableBootAnimation| (since the transition begins at the | 16 // conjunction with |kDisableBootAnimation| (since the transition begins at the |
17 // same time as the white/grayscale login screen animation). | 17 // same time as the white/grayscale login screen animation). |
18 const char kAshAnimateFromBootSplashScreen[] = | 18 const char kAshAnimateFromBootSplashScreen[] = |
19 "ash-animate-from-boot-splash-screen"; | 19 "ash-animate-from-boot-splash-screen"; |
20 | 20 |
21 // Copies the host window's content to the system background layer at startup. | 21 // Copies the host window's content to the system background layer at startup. |
22 // Can make boot slightly slower, but also hides an even-longer awkward period | 22 // Can make boot slightly slower, but also hides an even-longer awkward period |
23 // where we display a white background if the login wallpaper takes a long time | 23 // where we display a white background if the login wallpaper takes a long time |
24 // to load. | 24 // to load. |
25 const char kAshCopyHostBackgroundAtBoot[] = "ash-copy-host-background-at-boot"; | 25 const char kAshCopyHostBackgroundAtBoot[] = "ash-copy-host-background-at-boot"; |
26 | 26 |
27 // Enable keyboard shortcuts useful for debugging. | 27 // Enable keyboard shortcuts useful for debugging. |
28 const char kAshDebugShortcuts[] = "ash-debug-shortcuts"; | 28 const char kAshDebugShortcuts[] = "ash-debug-shortcuts"; |
29 | 29 |
| 30 // Enable keyboard shortcuts used by developers only. |
| 31 const char kAshDeveloperShortcuts[] = "ash-dev-shortcuts"; |
| 32 |
30 // Disables the window backdrops normally used in maximize mode (TouchView). | 33 // Disables the window backdrops normally used in maximize mode (TouchView). |
31 const char kAshDisableMaximizeModeWindowBackdrop[] = | 34 const char kAshDisableMaximizeModeWindowBackdrop[] = |
32 "ash-disable-maximize-mode-window-backdrop"; | 35 "ash-disable-maximize-mode-window-backdrop"; |
33 | 36 |
34 #if defined(OS_CHROMEOS) | 37 #if defined(OS_CHROMEOS) |
35 // Disable the support for WebContents to lock the screen orientation. | 38 // Disable the support for WebContents to lock the screen orientation. |
36 const char kAshDisableScreenOrientationLock[] = | 39 const char kAshDisableScreenOrientationLock[] = |
37 "ash-disable-screen-orientation-lock"; | 40 "ash-disable-screen-orientation-lock"; |
38 #endif | 41 #endif |
39 | 42 |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 | 123 |
121 return base::SysInfo::IsRunningOnChromeOS() || | 124 return base::SysInfo::IsRunningOnChromeOS() || |
122 base::CommandLine::ForCurrentProcess()->HasSwitch( | 125 base::CommandLine::ForCurrentProcess()->HasSwitch( |
123 kAshConstrainPointerToRoot); | 126 kAshConstrainPointerToRoot); |
124 } | 127 } |
125 | 128 |
126 #endif | 129 #endif |
127 | 130 |
128 } // namespace switches | 131 } // namespace switches |
129 } // namespace ash | 132 } // namespace ash |
OLD | NEW |