Chromium Code Reviews| 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 100 | 100 |
| 101 // Enables the heads-up display for tracking touch points. | 101 // Enables the heads-up display for tracking touch points. |
| 102 const char kAshTouchHud[] = "ash-touch-hud"; | 102 const char kAshTouchHud[] = "ash-touch-hud"; |
| 103 | 103 |
| 104 // (Most) Chrome OS hardware reports ACPI power button releases correctly. | 104 // (Most) Chrome OS hardware reports ACPI power button releases correctly. |
| 105 // Standard hardware reports releases immediately after presses. If set, we | 105 // Standard hardware reports releases immediately after presses. If set, we |
| 106 // lock the screen or shutdown the system immediately in response to a press | 106 // lock the screen or shutdown the system immediately in response to a press |
| 107 // instead of displaying an interactive animation. | 107 // instead of displaying an interactive animation. |
| 108 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button"; | 108 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button"; |
| 109 | 109 |
| 110 // By default we use classic IME (i.e. InputMethodChromeOS) in kMus. This flag | |
| 111 // enables the servicified IME (i.e. InputMethodMus) instead. | |
| 112 const char kUseServicifiedIME[] = "use-servicified-ime"; | |
|
sky
2017/05/05 14:22:36
'serficified' is a bit unusual of a name. How abou
Hadi
2017/05/05 14:51:57
Done.
| |
| 113 | |
| 110 // Constrains the pointer movement within a root window on desktop. | 114 // Constrains the pointer movement within a root window on desktop. |
| 111 bool ConstrainPointerToRoot() { | 115 bool ConstrainPointerToRoot() { |
| 112 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root"; | 116 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root"; |
| 113 | 117 |
| 114 return base::SysInfo::IsRunningOnChromeOS() || | 118 return base::SysInfo::IsRunningOnChromeOS() || |
| 115 base::CommandLine::ForCurrentProcess()->HasSwitch( | 119 base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 116 kAshConstrainPointerToRoot); | 120 kAshConstrainPointerToRoot); |
| 117 } | 121 } |
| 118 | 122 |
| 119 } // namespace switches | 123 } // namespace switches |
| 120 } // namespace ash | 124 } // namespace ash |
| OLD | NEW |