| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 // Enables the palette on every display, instead of only the internal one. | 51 // Enables the palette on every display, instead of only the internal one. |
| 52 const char kAshEnablePaletteOnAllDisplays[] = | 52 const char kAshEnablePaletteOnAllDisplays[] = |
| 53 "ash-enable-palette-on-all-displays"; | 53 "ash-enable-palette-on-all-displays"; |
| 54 | 54 |
| 55 // Enables the observation of accelerometer events to enter touch-view mode. | 55 // Enables the observation of accelerometer events to enter touch-view mode. |
| 56 const char kAshEnableTouchView[] = "enable-touchview"; | 56 const char kAshEnableTouchView[] = "enable-touchview"; |
| 57 | 57 |
| 58 // Enables mirrored screen. | 58 // Enables mirrored screen. |
| 59 const char kAshEnableMirroredScreen[] = "ash-enable-mirrored-screen"; | 59 const char kAshEnableMirroredScreen[] = "ash-enable-mirrored-screen"; |
| 60 | 60 |
| 61 // Enables display scale tray settings. This uses force-device-scale-factor flag |
| 62 // to modify the dsf of the device to any non discrete value. |
| 63 const char kAshEnableScaleSettingsTray[] = "ash-enable-scale-settings-tray"; |
| 64 |
| 61 // Disables a smoother animation for screen rotation. | 65 // Disables a smoother animation for screen rotation. |
| 62 const char kAshDisableSmoothScreenRotation[] = | 66 const char kAshDisableSmoothScreenRotation[] = |
| 63 "ash-disable-smooth-screen-rotation"; | 67 "ash-disable-smooth-screen-rotation"; |
| 64 | 68 |
| 65 // Specifies the estimated time (in milliseconds) from VSYNC event until when | 69 // Specifies the estimated time (in milliseconds) from VSYNC event until when |
| 66 // visible light can be noticed by the user. | 70 // visible light can be noticed by the user. |
| 67 const char kAshEstimatedPresentationDelay[] = | 71 const char kAshEstimatedPresentationDelay[] = |
| 68 "ash-estimated-presentation-delay"; | 72 "ash-estimated-presentation-delay"; |
| 69 | 73 |
| 70 // Enables the stylus tools next to the status area. | 74 // Enables the stylus tools next to the status area. |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 bool ConstrainPointerToRoot() { | 119 bool ConstrainPointerToRoot() { |
| 116 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root"; | 120 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root"; |
| 117 | 121 |
| 118 return base::SysInfo::IsRunningOnChromeOS() || | 122 return base::SysInfo::IsRunningOnChromeOS() || |
| 119 base::CommandLine::ForCurrentProcess()->HasSwitch( | 123 base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 120 kAshConstrainPointerToRoot); | 124 kAshConstrainPointerToRoot); |
| 121 } | 125 } |
| 122 | 126 |
| 123 } // namespace switches | 127 } // namespace switches |
| 124 } // namespace ash | 128 } // namespace ash |
| OLD | NEW |