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