| 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 { |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 | 63 |
| 64 // Enables a smoother animation for screen rotation. | 64 // Enables a smoother animation for screen rotation. |
| 65 const char kAshEnableSmoothScreenRotation[] = | 65 const char kAshEnableSmoothScreenRotation[] = |
| 66 "ash-enable-smooth-screen-rotation"; | 66 "ash-enable-smooth-screen-rotation"; |
| 67 | 67 |
| 68 // Specifies the estimated time (in milliseconds) from VSYNC event until when | 68 // Specifies the estimated time (in milliseconds) from VSYNC event until when |
| 69 // visible light can be noticed by the user. | 69 // visible light can be noticed by the user. |
| 70 const char kAshEstimatedPresentationDelay[] = | 70 const char kAshEstimatedPresentationDelay[] = |
| 71 "ash-estimated-presentation-delay"; | 71 "ash-estimated-presentation-delay"; |
| 72 | 72 |
| 73 // Enables the palette next to the status area. | 73 // Enables the stylus tools next to the status area. |
| 74 const char kAshForceEnablePalette[] = "ash-force-enable-palette"; | 74 const char kAshForceEnableStylusTools[] = "force-enable-stylus-tools"; |
| 75 | 75 |
| 76 // 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 |
| 77 // Chromebook is currently in the selected UI mode. | 77 // Chromebook is currently in the selected UI mode. |
| 78 const char kAshForceTabletMode[] = "force-tablet-mode"; | 78 const char kAshForceTabletMode[] = "force-tablet-mode"; |
| 79 | 79 |
| 80 // Values for the kAshForceTabletMode flag. | 80 // Values for the kAshForceTabletMode flag. |
| 81 const char kAshForceTabletModeAuto[] = "auto"; | 81 const char kAshForceTabletModeAuto[] = "auto"; |
| 82 const char kAshForceTabletModeClamshell[] = "clamshell"; | 82 const char kAshForceTabletModeClamshell[] = "clamshell"; |
| 83 const char kAshForceTabletModeTouchView[] = "touch_view"; | 83 const char kAshForceTabletModeTouchView[] = "touch_view"; |
| 84 | 84 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 114 bool ConstrainPointerToRoot() { | 114 bool ConstrainPointerToRoot() { |
| 115 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root"; | 115 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root"; |
| 116 | 116 |
| 117 return base::SysInfo::IsRunningOnChromeOS() || | 117 return base::SysInfo::IsRunningOnChromeOS() || |
| 118 base::CommandLine::ForCurrentProcess()->HasSwitch( | 118 base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 119 kAshConstrainPointerToRoot); | 119 kAshConstrainPointerToRoot); |
| 120 } | 120 } |
| 121 | 121 |
| 122 } // namespace switches | 122 } // namespace switches |
| 123 } // namespace ash | 123 } // namespace ash |
| OLD | NEW |