| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 const char kAshEnableFullscreenAppList[] = "ash-enable-fullscreen-app-list"; | 51 const char kAshEnableFullscreenAppList[] = "ash-enable-fullscreen-app-list"; |
| 52 | 52 |
| 53 // Enables key bindings to scroll magnified screen. | 53 // Enables key bindings to scroll magnified screen. |
| 54 const char kAshEnableMagnifierKeyScroller[] = | 54 const char kAshEnableMagnifierKeyScroller[] = |
| 55 "ash-enable-magnifier-key-scroller"; | 55 "ash-enable-magnifier-key-scroller"; |
| 56 | 56 |
| 57 // 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. |
| 58 const char kAshEnablePaletteOnAllDisplays[] = | 58 const char kAshEnablePaletteOnAllDisplays[] = |
| 59 "ash-enable-palette-on-all-displays"; | 59 "ash-enable-palette-on-all-displays"; |
| 60 | 60 |
| 61 // Enables docking windows to the right or left (not to be confused with snapped | |
| 62 // windows). | |
| 63 const char kAshEnableDockedWindows[] = "ash-enable-docked-windows"; | |
| 64 | |
| 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 the palette next to the status area. | 67 // Enables the palette next to the status area. |
| 72 const char kAshForceEnablePalette[] = "ash-force-enable-palette"; | 68 const char kAshForceEnablePalette[] = "ash-force-enable-palette"; |
| 73 | 69 |
| 74 // Hides notifications that are irrelevant to Chrome OS device factory testing, | 70 // Hides notifications that are irrelevant to Chrome OS device factory testing, |
| (...skipping 12 matching lines...) Expand all Loading... |
| 87 | 83 |
| 88 // Constrains the pointer movement within a root window on desktop. | 84 // Constrains the pointer movement within a root window on desktop. |
| 89 bool ConstrainPointerToRoot() { | 85 bool ConstrainPointerToRoot() { |
| 90 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root"; | 86 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root"; |
| 91 | 87 |
| 92 return base::SysInfo::IsRunningOnChromeOS() || | 88 return base::SysInfo::IsRunningOnChromeOS() || |
| 93 base::CommandLine::ForCurrentProcess()->HasSwitch( | 89 base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 94 kAshConstrainPointerToRoot); | 90 kAshConstrainPointerToRoot); |
| 95 } | 91 } |
| 96 | 92 |
| 97 bool DockedWindowsEnabled() { | |
| 98 return base::CommandLine::ForCurrentProcess()->HasSwitch( | |
| 99 ash::switches::kAshEnableDockedWindows); | |
| 100 } | |
| 101 | |
| 102 } // namespace switches | 93 } // namespace switches |
| 103 } // namespace ash | 94 } // namespace ash |
| OLD | NEW |