| 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 { |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 // Enables the palette on every display, instead of only the internal one. | 54 // Enables the palette on every display, instead of only the internal one. |
| 55 const char kAshEnablePaletteOnAllDisplays[] = | 55 const char kAshEnablePaletteOnAllDisplays[] = |
| 56 "ash-enable-palette-on-all-displays"; | 56 "ash-enable-palette-on-all-displays"; |
| 57 | 57 |
| 58 // Enables the observation of accelerometer events to enter touch-view mode. | 58 // Enables the observation of accelerometer events to enter touch-view mode. |
| 59 const char kAshEnableTouchView[] = "enable-touchview"; | 59 const char kAshEnableTouchView[] = "enable-touchview"; |
| 60 | 60 |
| 61 // Enables mirrored screen. | 61 // Enables mirrored screen. |
| 62 const char kAshEnableMirroredScreen[] = "ash-enable-mirrored-screen"; | 62 const char kAshEnableMirroredScreen[] = "ash-enable-mirrored-screen"; |
| 63 | 63 |
| 64 // Enables a smoother animation for screen rotation. |
| 65 const char kAshEnableSmoothScreenRotation[] = |
| 66 "ash-enable-smooth-screen-rotation"; |
| 67 |
| 64 // Specifies the estimated time (in milliseconds) from VSYNC event until when | 68 // Specifies the estimated time (in milliseconds) from VSYNC event until when |
| 65 // visible light can be noticed by the user. | 69 // visible light can be noticed by the user. |
| 66 const char kAshEstimatedPresentationDelay[] = | 70 const char kAshEstimatedPresentationDelay[] = |
| 67 "ash-estimated-presentation-delay"; | 71 "ash-estimated-presentation-delay"; |
| 68 | 72 |
| 69 // Enables the palette next to the status area. | 73 // Enables the palette next to the status area. |
| 70 const char kAshForceEnablePalette[] = "ash-force-enable-palette"; | 74 const char kAshForceEnablePalette[] = "ash-force-enable-palette"; |
| 71 | 75 |
| 72 // Enables required things for the selected UI mode, regardless of whether the | 76 // Enables required things for the selected UI mode, regardless of whether the |
| 73 // Chromebook is currently in the selected UI mode. | 77 // Chromebook is currently in the selected UI mode. |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 bool ConstrainPointerToRoot() { | 109 bool ConstrainPointerToRoot() { |
| 106 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root"; | 110 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root"; |
| 107 | 111 |
| 108 return base::SysInfo::IsRunningOnChromeOS() || | 112 return base::SysInfo::IsRunningOnChromeOS() || |
| 109 base::CommandLine::ForCurrentProcess()->HasSwitch( | 113 base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 110 kAshConstrainPointerToRoot); | 114 kAshConstrainPointerToRoot); |
| 111 } | 115 } |
| 112 | 116 |
| 113 } // namespace switches | 117 } // namespace switches |
| 114 } // namespace ash | 118 } // namespace ash |
| OLD | NEW |