Chromium Code Reviews| 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-developer-shortcuts"; | |
|
oshima
2016/09/14 16:34:10
I have slight preference to ash-dev-shortcuts, as
afakhry
2016/09/15 20:26:51
Done. ash-dev-shortcuts is shorter, hence is bette
| |
| 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 145 | 148 |
| 146 return base::SysInfo::IsRunningOnChromeOS() || | 149 return base::SysInfo::IsRunningOnChromeOS() || |
| 147 base::CommandLine::ForCurrentProcess()->HasSwitch( | 150 base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 148 kAshConstrainPointerToRoot); | 151 kAshConstrainPointerToRoot); |
| 149 } | 152 } |
| 150 | 153 |
| 151 #endif | 154 #endif |
| 152 | 155 |
| 153 } // namespace switches | 156 } // namespace switches |
| 154 } // namespace ash | 157 } // namespace ash |
| OLD | NEW |