| 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 #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 adjustable large cursor. | |
| 14 const char kAshAdjustableLargeCursor[] = "ash-adjustable-large-cursor"; | |
| 15 | |
| 16 // 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 |
| 17 // white background) to the login screen. Implies | 14 // white background) to the login screen. Implies |
| 18 // |kAshCopyHostBackgroundAtBoot| and doesn't make much sense if used in | 15 // |kAshCopyHostBackgroundAtBoot| and doesn't make much sense if used in |
| 19 // conjunction with |kDisableBootAnimation| (since the transition begins at the | 16 // conjunction with |kDisableBootAnimation| (since the transition begins at the |
| 20 // same time as the white/grayscale login screen animation). | 17 // same time as the white/grayscale login screen animation). |
| 21 const char kAshAnimateFromBootSplashScreen[] = | 18 const char kAshAnimateFromBootSplashScreen[] = |
| 22 "ash-animate-from-boot-splash-screen"; | 19 "ash-animate-from-boot-splash-screen"; |
| 23 | 20 |
| 24 // 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. |
| 25 // 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 |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 bool ConstrainPointerToRoot() { | 111 bool ConstrainPointerToRoot() { |
| 115 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root"; | 112 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root"; |
| 116 | 113 |
| 117 return base::SysInfo::IsRunningOnChromeOS() || | 114 return base::SysInfo::IsRunningOnChromeOS() || |
| 118 base::CommandLine::ForCurrentProcess()->HasSwitch( | 115 base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 119 kAshConstrainPointerToRoot); | 116 kAshConstrainPointerToRoot); |
| 120 } | 117 } |
| 121 | 118 |
| 122 } // namespace switches | 119 } // namespace switches |
| 123 } // namespace ash | 120 } // namespace ash |
| OLD | NEW |