| 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 29 matching lines...) Expand all Loading... |
| 40 "ash-disable-touch-exploration-mode"; | 40 "ash-disable-touch-exploration-mode"; |
| 41 | 41 |
| 42 // Enables key bindings to scroll magnified screen. | 42 // Enables key bindings to scroll magnified screen. |
| 43 const char kAshEnableMagnifierKeyScroller[] = | 43 const char kAshEnableMagnifierKeyScroller[] = |
| 44 "ash-enable-magnifier-key-scroller"; | 44 "ash-enable-magnifier-key-scroller"; |
| 45 | 45 |
| 46 // Enables the palette on every display, instead of only the internal one. | 46 // Enables the palette on every display, instead of only the internal one. |
| 47 const char kAshEnablePaletteOnAllDisplays[] = | 47 const char kAshEnablePaletteOnAllDisplays[] = |
| 48 "ash-enable-palette-on-all-displays"; | 48 "ash-enable-palette-on-all-displays"; |
| 49 | 49 |
| 50 // Enables the split view on tablet mode. |
| 51 const char kAshEnableTabletSplitView[] = "enable-tablet-splitview"; |
| 52 |
| 50 // Enables the observation of accelerometer events to enter touch-view mode. | 53 // Enables the observation of accelerometer events to enter touch-view mode. |
| 51 const char kAshEnableTouchView[] = "enable-touchview"; | 54 const char kAshEnableTouchView[] = "enable-touchview"; |
| 52 | 55 |
| 53 // Enables mirrored screen. | 56 // Enables mirrored screen. |
| 54 const char kAshEnableMirroredScreen[] = "ash-enable-mirrored-screen"; | 57 const char kAshEnableMirroredScreen[] = "ash-enable-mirrored-screen"; |
| 55 | 58 |
| 56 // Enables display scale tray settings. This uses force-device-scale-factor flag | 59 // Enables display scale tray settings. This uses force-device-scale-factor flag |
| 57 // to modify the dsf of the device to any non discrete value. | 60 // to modify the dsf of the device to any non discrete value. |
| 58 const char kAshEnableScaleSettingsTray[] = "ash-enable-scale-settings-tray"; | 61 const char kAshEnableScaleSettingsTray[] = "ash-enable-scale-settings-tray"; |
| 59 | 62 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 bool ConstrainPointerToRoot() { | 117 bool ConstrainPointerToRoot() { |
| 115 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root"; | 118 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root"; |
| 116 | 119 |
| 117 return base::SysInfo::IsRunningOnChromeOS() || | 120 return base::SysInfo::IsRunningOnChromeOS() || |
| 118 base::CommandLine::ForCurrentProcess()->HasSwitch( | 121 base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 119 kAshConstrainPointerToRoot); | 122 kAshConstrainPointerToRoot); |
| 120 } | 123 } |
| 121 | 124 |
| 122 } // namespace switches | 125 } // namespace switches |
| 123 } // namespace ash | 126 } // namespace ash |
| OLD | NEW |