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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 bool ConstrainPointerToRoot() { | 141 bool ConstrainPointerToRoot() { |
139 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root"; | 142 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root"; |
140 | 143 |
141 return base::SysInfo::IsRunningOnChromeOS() || | 144 return base::SysInfo::IsRunningOnChromeOS() || |
142 base::CommandLine::ForCurrentProcess()->HasSwitch( | 145 base::CommandLine::ForCurrentProcess()->HasSwitch( |
143 kAshConstrainPointerToRoot); | 146 kAshConstrainPointerToRoot); |
144 } | 147 } |
145 | 148 |
146 } // namespace switches | 149 } // namespace switches |
147 } // namespace ash | 150 } // namespace ash |
OLD | NEW |