| 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 // This is for debugging on linux desktop. | 124 // This is for debugging on linux desktop. |
| 125 const char kAshUseFirstDisplayAsInternal[] = | 125 const char kAshUseFirstDisplayAsInternal[] = |
| 126 "ash-use-first-display-as-internal"; | 126 "ash-use-first-display-as-internal"; |
| 127 | 127 |
| 128 // (Most) Chrome OS hardware reports ACPI power button releases correctly. | 128 // (Most) Chrome OS hardware reports ACPI power button releases correctly. |
| 129 // Standard hardware reports releases immediately after presses. If set, we | 129 // Standard hardware reports releases immediately after presses. If set, we |
| 130 // lock the screen or shutdown the system immediately in response to a press | 130 // lock the screen or shutdown the system immediately in response to a press |
| 131 // instead of displaying an interactive animation. | 131 // instead of displaying an interactive animation. |
| 132 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button"; | 132 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button"; |
| 133 | 133 |
| 134 #if defined(OS_WIN) | |
| 135 // Force Ash to open its root window on the desktop, even on Windows 8 where | |
| 136 // it would normally end up in metro. | |
| 137 const char kForceAshToDesktop[] = "ash-force-desktop"; | |
| 138 | |
| 139 #endif | |
| 140 | |
| 141 #if defined(OS_CHROMEOS) | 134 #if defined(OS_CHROMEOS) |
| 142 // Constrains the pointer movement within a root window on desktop. | 135 // Constrains the pointer movement within a root window on desktop. |
| 143 bool ConstrainPointerToRoot() { | 136 bool ConstrainPointerToRoot() { |
| 144 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root"; | 137 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root"; |
| 145 | 138 |
| 146 return base::SysInfo::IsRunningOnChromeOS() || | 139 return base::SysInfo::IsRunningOnChromeOS() || |
| 147 base::CommandLine::ForCurrentProcess()->HasSwitch( | 140 base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 148 kAshConstrainPointerToRoot); | 141 kAshConstrainPointerToRoot); |
| 149 } | 142 } |
| 150 | 143 |
| 151 #endif | 144 #endif |
| 152 | 145 |
| 153 } // namespace switches | 146 } // namespace switches |
| 154 } // namespace ash | 147 } // namespace ash |
| OLD | NEW |