| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 "ash-max-previews-to-use-shape"; | 109 "ash-max-previews-to-use-shape"; |
| 110 | 110 |
| 111 // Enables the heads-up display for tracking touch points. | 111 // Enables the heads-up display for tracking touch points. |
| 112 const char kAshTouchHud[] = "ash-touch-hud"; | 112 const char kAshTouchHud[] = "ash-touch-hud"; |
| 113 | 113 |
| 114 // Uses the 1st display in --ash-host-window-bounds as internal display. | 114 // Uses the 1st display in --ash-host-window-bounds as internal display. |
| 115 // This is for debugging on linux desktop. | 115 // This is for debugging on linux desktop. |
| 116 const char kAshUseFirstDisplayAsInternal[] = | 116 const char kAshUseFirstDisplayAsInternal[] = |
| 117 "ash-use-first-display-as-internal"; | 117 "ash-use-first-display-as-internal"; |
| 118 | 118 |
| 119 // Use new window behavior for virtual keyboard (do not change work area in | |
| 120 // non-sticky mode). | |
| 121 const char kAshUseNewVKWindowBehavior[] = "ash-use-new-vk-window-behavior"; | |
| 122 | |
| 123 // (Most) Chrome OS hardware reports ACPI power button releases correctly. | 119 // (Most) Chrome OS hardware reports ACPI power button releases correctly. |
| 124 // Standard hardware reports releases immediately after presses. If set, we | 120 // Standard hardware reports releases immediately after presses. If set, we |
| 125 // lock the screen or shutdown the system immediately in response to a press | 121 // lock the screen or shutdown the system immediately in response to a press |
| 126 // instead of displaying an interactive animation. | 122 // instead of displaying an interactive animation. |
| 127 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button"; | 123 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button"; |
| 128 | 124 |
| 129 #if defined(OS_WIN) | 125 #if defined(OS_WIN) |
| 130 // Force Ash to open its root window on the desktop, even on Windows 8 where | 126 // Force Ash to open its root window on the desktop, even on Windows 8 where |
| 131 // it would normally end up in metro. | 127 // it would normally end up in metro. |
| 132 const char kForceAshToDesktop[] = "ash-force-desktop"; | 128 const char kForceAshToDesktop[] = "ash-force-desktop"; |
| 133 | 129 |
| 134 #endif | 130 #endif |
| 135 | 131 |
| 136 #if defined(OS_CHROMEOS) | 132 #if defined(OS_CHROMEOS) |
| 137 // Constrains the pointer movement within a root window on desktop. | 133 // Constrains the pointer movement within a root window on desktop. |
| 138 bool ConstrainPointerToRoot() { | 134 bool ConstrainPointerToRoot() { |
| 139 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root"; | 135 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root"; |
| 140 | 136 |
| 141 return base::SysInfo::IsRunningOnChromeOS() || | 137 return base::SysInfo::IsRunningOnChromeOS() || |
| 142 base::CommandLine::ForCurrentProcess()->HasSwitch( | 138 base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 143 kAshConstrainPointerToRoot); | 139 kAshConstrainPointerToRoot); |
| 144 } | 140 } |
| 145 | 141 |
| 146 #endif | 142 #endif |
| 147 | 143 |
| 148 } // namespace switches | 144 } // namespace switches |
| 149 } // namespace ash | 145 } // namespace ash |
| OLD | NEW |