| 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/common/ash_switches.h" | 5 #include "ash/common/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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 // Enables key bindings to scroll magnified screen. | 53 // Enables key bindings to scroll magnified screen. |
| 54 const char kAshEnableMagnifierKeyScroller[] = | 54 const char kAshEnableMagnifierKeyScroller[] = |
| 55 "ash-enable-magnifier-key-scroller"; | 55 "ash-enable-magnifier-key-scroller"; |
| 56 | 56 |
| 57 // Enables the palette next to the status area. | 57 // Enables the palette next to the status area. |
| 58 const char kAshEnablePalette[] = "ash-enable-palette"; | 58 const char kAshEnablePalette[] = "ash-enable-palette"; |
| 59 | 59 |
| 60 // Enables the palette on every display, instead of only the internal one. | 60 // Enables the palette on every display, instead of only the internal one. |
| 61 const char kAshEnablePaletteOnAllDisplays[] = | 61 const char kAshEnablePaletteOnAllDisplays[] = |
| 62 "ash-enable-palette-on-all-displays"; | 62 "ash-enable-palette-on-all-displays"; |
| 63 | |
| 64 // Enables tablet power button behavior for convertible/tablet devices. | |
| 65 // TODO(warx): Enable or remove this switch once crbug.com/633304 is fully | |
| 66 // finished. | |
| 67 const char kAshEnableTabletPowerButton[] = "ash-enable-tablet-power-button"; | |
| 68 #endif | 63 #endif |
| 69 | 64 |
| 70 // Enables the observation of accelerometer events to enter touch-view mode. | 65 // Enables the observation of accelerometer events to enter touch-view mode. |
| 71 const char kAshEnableTouchView[] = "enable-touchview"; | 66 const char kAshEnableTouchView[] = "enable-touchview"; |
| 72 | 67 |
| 73 // Enables mirrored screen. | 68 // Enables mirrored screen. |
| 74 const char kAshEnableMirroredScreen[] = "ash-enable-mirrored-screen"; | 69 const char kAshEnableMirroredScreen[] = "ash-enable-mirrored-screen"; |
| 75 | 70 |
| 76 // Enables touch view testing. | 71 // Enables touch view testing. |
| 77 // TODO(skuhne): Remove DEBUG_TOGGLE_TOUCH_VIEW accelerator once this flag is | 72 // TODO(skuhne): Remove DEBUG_TOGGLE_TOUCH_VIEW accelerator once this flag is |
| (...skipping 28 matching lines...) Expand all Loading... |
| 106 | 101 |
| 107 return base::SysInfo::IsRunningOnChromeOS() || | 102 return base::SysInfo::IsRunningOnChromeOS() || |
| 108 base::CommandLine::ForCurrentProcess()->HasSwitch( | 103 base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 109 kAshConstrainPointerToRoot); | 104 kAshConstrainPointerToRoot); |
| 110 } | 105 } |
| 111 | 106 |
| 112 #endif | 107 #endif |
| 113 | 108 |
| 114 } // namespace switches | 109 } // namespace switches |
| 115 } // namespace ash | 110 } // namespace ash |
| OLD | NEW |