| 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 16 matching lines...) Expand all Loading... |
| 27 // Enable keyboard shortcuts useful for debugging. | 27 // Enable keyboard shortcuts useful for debugging. |
| 28 const char kAshDebugShortcuts[] = "ash-debug-shortcuts"; | 28 const char kAshDebugShortcuts[] = "ash-debug-shortcuts"; |
| 29 | 29 |
| 30 // Enable keyboard shortcuts used by developers only. | 30 // Enable keyboard shortcuts used by developers only. |
| 31 const char kAshDeveloperShortcuts[] = "ash-dev-shortcuts"; | 31 const char kAshDeveloperShortcuts[] = "ash-dev-shortcuts"; |
| 32 | 32 |
| 33 // Disables the window backdrops normally used in maximize mode (TouchView). | 33 // Disables the window backdrops normally used in maximize mode (TouchView). |
| 34 const char kAshDisableMaximizeModeWindowBackdrop[] = | 34 const char kAshDisableMaximizeModeWindowBackdrop[] = |
| 35 "ash-disable-maximize-mode-window-backdrop"; | 35 "ash-disable-maximize-mode-window-backdrop"; |
| 36 | 36 |
| 37 #if defined(OS_CHROMEOS) | |
| 38 // Disable the support for WebContents to lock the screen orientation. | 37 // Disable the support for WebContents to lock the screen orientation. |
| 39 const char kAshDisableScreenOrientationLock[] = | 38 const char kAshDisableScreenOrientationLock[] = |
| 40 "ash-disable-screen-orientation-lock"; | 39 "ash-disable-screen-orientation-lock"; |
| 41 #endif | |
| 42 | 40 |
| 43 // Disable the Touch Exploration Mode. Touch Exploration Mode will no longer be | 41 // Disable the Touch Exploration Mode. Touch Exploration Mode will no longer be |
| 44 // turned on automatically when spoken feedback is enabled when this flag is | 42 // turned on automatically when spoken feedback is enabled when this flag is |
| 45 // set. | 43 // set. |
| 46 const char kAshDisableTouchExplorationMode[] = | 44 const char kAshDisableTouchExplorationMode[] = |
| 47 "ash-disable-touch-exploration-mode"; | 45 "ash-disable-touch-exploration-mode"; |
| 48 | 46 |
| 49 #if defined(OS_CHROMEOS) | |
| 50 // Enables fullscreen app list if Ash is in maximize mode. | 47 // Enables fullscreen app list if Ash is in maximize mode. |
| 51 const char kAshEnableFullscreenAppList[] = "ash-enable-fullscreen-app-list"; | 48 const char kAshEnableFullscreenAppList[] = "ash-enable-fullscreen-app-list"; |
| 52 | 49 |
| 53 // Enables key bindings to scroll magnified screen. | 50 // Enables key bindings to scroll magnified screen. |
| 54 const char kAshEnableMagnifierKeyScroller[] = | 51 const char kAshEnableMagnifierKeyScroller[] = |
| 55 "ash-enable-magnifier-key-scroller"; | 52 "ash-enable-magnifier-key-scroller"; |
| 56 | 53 |
| 57 // Enables the palette next to the status area. | 54 // Enables the palette next to the status area. |
| 58 const char kAshEnablePalette[] = "ash-enable-palette"; | 55 const char kAshEnablePalette[] = "ash-enable-palette"; |
| 59 | 56 |
| 60 // Enables the palette on every display, instead of only the internal one. | 57 // Enables the palette on every display, instead of only the internal one. |
| 61 const char kAshEnablePaletteOnAllDisplays[] = | 58 const char kAshEnablePaletteOnAllDisplays[] = |
| 62 "ash-enable-palette-on-all-displays"; | 59 "ash-enable-palette-on-all-displays"; |
| 63 #endif | |
| 64 | 60 |
| 65 // Enables the observation of accelerometer events to enter touch-view mode. | 61 // Enables the observation of accelerometer events to enter touch-view mode. |
| 66 const char kAshEnableTouchView[] = "enable-touchview"; | 62 const char kAshEnableTouchView[] = "enable-touchview"; |
| 67 | 63 |
| 68 // Enables mirrored screen. | 64 // Enables mirrored screen. |
| 69 const char kAshEnableMirroredScreen[] = "ash-enable-mirrored-screen"; | 65 const char kAshEnableMirroredScreen[] = "ash-enable-mirrored-screen"; |
| 70 | 66 |
| 71 // Enables touch view testing. | 67 // Enables touch view testing. |
| 72 // TODO(skuhne): Remove DEBUG_TOGGLE_TOUCH_VIEW accelerator once this flag is | 68 // TODO(skuhne): Remove DEBUG_TOGGLE_TOUCH_VIEW accelerator once this flag is |
| 73 // removed. | 69 // removed. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 87 | 83 |
| 88 // Enables the heads-up display for tracking touch points. | 84 // Enables the heads-up display for tracking touch points. |
| 89 const char kAshTouchHud[] = "ash-touch-hud"; | 85 const char kAshTouchHud[] = "ash-touch-hud"; |
| 90 | 86 |
| 91 // (Most) Chrome OS hardware reports ACPI power button releases correctly. | 87 // (Most) Chrome OS hardware reports ACPI power button releases correctly. |
| 92 // Standard hardware reports releases immediately after presses. If set, we | 88 // Standard hardware reports releases immediately after presses. If set, we |
| 93 // lock the screen or shutdown the system immediately in response to a press | 89 // lock the screen or shutdown the system immediately in response to a press |
| 94 // instead of displaying an interactive animation. | 90 // instead of displaying an interactive animation. |
| 95 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button"; | 91 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button"; |
| 96 | 92 |
| 97 #if defined(OS_CHROMEOS) | |
| 98 // Constrains the pointer movement within a root window on desktop. | 93 // Constrains the pointer movement within a root window on desktop. |
| 99 bool ConstrainPointerToRoot() { | 94 bool ConstrainPointerToRoot() { |
| 100 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root"; | 95 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root"; |
| 101 | 96 |
| 102 return base::SysInfo::IsRunningOnChromeOS() || | 97 return base::SysInfo::IsRunningOnChromeOS() || |
| 103 base::CommandLine::ForCurrentProcess()->HasSwitch( | 98 base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 104 kAshConstrainPointerToRoot); | 99 kAshConstrainPointerToRoot); |
| 105 } | 100 } |
| 106 | 101 |
| 107 #endif | |
| 108 | |
| 109 } // namespace switches | 102 } // namespace switches |
| 110 } // namespace ash | 103 } // namespace ash |
| OLD | NEW |