| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 "ash-disable-touch-exploration-mode"; | 48 "ash-disable-touch-exploration-mode"; |
| 49 | 49 |
| 50 // Enables key bindings to scroll magnified screen. | 50 // Enables key bindings to scroll magnified screen. |
| 51 const char kAshEnableMagnifierKeyScroller[] = | 51 const char kAshEnableMagnifierKeyScroller[] = |
| 52 "ash-enable-magnifier-key-scroller"; | 52 "ash-enable-magnifier-key-scroller"; |
| 53 | 53 |
| 54 // Enables the palette on every display, instead of only the internal one. | 54 // Enables the palette on every display, instead of only the internal one. |
| 55 const char kAshEnablePaletteOnAllDisplays[] = | 55 const char kAshEnablePaletteOnAllDisplays[] = |
| 56 "ash-enable-palette-on-all-displays"; | 56 "ash-enable-palette-on-all-displays"; |
| 57 | 57 |
| 58 // Enables docking windows to the right or left (not to be confused with snapped | |
| 59 // windows). | |
| 60 const char kAshEnableDockedWindows[] = "ash-enable-docked-windows"; | |
| 61 | |
| 62 // Enables the observation of accelerometer events to enter touch-view mode. | 58 // Enables the observation of accelerometer events to enter touch-view mode. |
| 63 const char kAshEnableTouchView[] = "enable-touchview"; | 59 const char kAshEnableTouchView[] = "enable-touchview"; |
| 64 | 60 |
| 65 // Enables mirrored screen. | 61 // Enables mirrored screen. |
| 66 const char kAshEnableMirroredScreen[] = "ash-enable-mirrored-screen"; | 62 const char kAshEnableMirroredScreen[] = "ash-enable-mirrored-screen"; |
| 67 | 63 |
| 68 // Specifies the estimated time (in milliseconds) from VSYNC event until when | 64 // Specifies the estimated time (in milliseconds) from VSYNC event until when |
| 69 // visible light can be noticed by the user. | 65 // visible light can be noticed by the user. |
| 70 const char kAshEstimatedPresentationDelay[] = | 66 const char kAshEstimatedPresentationDelay[] = |
| 71 "ash-estimated-presentation-delay"; | 67 "ash-estimated-presentation-delay"; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 98 | 94 |
| 99 // Constrains the pointer movement within a root window on desktop. | 95 // Constrains the pointer movement within a root window on desktop. |
| 100 bool ConstrainPointerToRoot() { | 96 bool ConstrainPointerToRoot() { |
| 101 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root"; | 97 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root"; |
| 102 | 98 |
| 103 return base::SysInfo::IsRunningOnChromeOS() || | 99 return base::SysInfo::IsRunningOnChromeOS() || |
| 104 base::CommandLine::ForCurrentProcess()->HasSwitch( | 100 base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 105 kAshConstrainPointerToRoot); | 101 kAshConstrainPointerToRoot); |
| 106 } | 102 } |
| 107 | 103 |
| 108 bool DockedWindowsEnabled() { | |
| 109 return base::CommandLine::ForCurrentProcess()->HasSwitch( | |
| 110 ash::switches::kAshEnableDockedWindows); | |
| 111 } | |
| 112 | |
| 113 } // namespace switches | 104 } // namespace switches |
| 114 } // namespace ash | 105 } // namespace ash |
| OLD | NEW |