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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 "ash-disable-touch-exploration-mode"; | 44 "ash-disable-touch-exploration-mode"; |
45 | 45 |
46 #if defined(OS_CHROMEOS) | 46 #if defined(OS_CHROMEOS) |
47 // Enables fullscreen app list if Ash is in maximize mode. | 47 // Enables fullscreen app list if Ash is in maximize mode. |
48 const char kAshEnableFullscreenAppList[] = "ash-enable-fullscreen-app-list"; | 48 const char kAshEnableFullscreenAppList[] = "ash-enable-fullscreen-app-list"; |
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 unified desktop mode. | |
55 const char kAshEnableUnifiedDesktop[] = "ash-enable-unified-desktop"; | |
56 | |
57 // Enables the palette next to the status area. | 54 // Enables the palette next to the status area. |
58 const char kAshEnablePalette[] = "ash-enable-palette"; | 55 const char kAshEnablePalette[] = "ash-enable-palette"; |
59 | 56 |
60 // Enables experimental ash palette tools. | 57 // Enables experimental ash palette tools. |
61 const char kAshEnablePaletteExperimentalFeatures[] = | 58 const char kAshEnablePaletteExperimentalFeatures[] = |
62 "ash-enable-palette-experimental-features"; | 59 "ash-enable-palette-experimental-features"; |
63 | 60 |
64 // Enables the palette on every display, instead of only the internal one. | 61 // Enables the palette on every display, instead of only the internal one. |
65 const char kAshEnablePaletteOnAllDisplays[] = | 62 const char kAshEnablePaletteOnAllDisplays[] = |
66 "ash-enable-palette-on-all-displays"; | 63 "ash-enable-palette-on-all-displays"; |
67 | 64 |
68 #endif | 65 #endif |
69 | 66 |
70 // Enables the observation of accelerometer events to enter touch-view mode. | 67 // Enables the observation of accelerometer events to enter touch-view mode. |
71 const char kAshEnableTouchView[] = "enable-touchview"; | 68 const char kAshEnableTouchView[] = "enable-touchview"; |
72 | 69 |
73 // Enables mirrored screen. | 70 // Enables mirrored screen. |
74 const char kAshEnableMirroredScreen[] = "ash-enable-mirrored-screen"; | 71 const char kAshEnableMirroredScreen[] = "ash-enable-mirrored-screen"; |
75 | 72 |
76 // Enables / disables a stable order between overview sessions, independent of | 73 // Enables / disables a stable order between overview sessions, independent of |
77 // the MRU order which attempts to preserve relative window positions. | 74 // the MRU order which attempts to preserve relative window positions. |
78 const char kAshDisableStableOverviewOrder[] = | 75 const char kAshDisableStableOverviewOrder[] = |
79 "ash-disable-stable-overview-order"; | 76 "ash-disable-stable-overview-order"; |
80 const char kAshEnableStableOverviewOrder[] = "ash-enable-stable-overview-order"; | 77 const char kAshEnableStableOverviewOrder[] = "ash-enable-stable-overview-order"; |
81 | 78 |
82 // Enables software based mirroring. | |
83 const char kAshEnableSoftwareMirroring[] = "ash-enable-software-mirroring"; | |
84 | 79 |
85 // Enables touch view testing. | 80 // Enables touch view testing. |
86 // TODO(skuhne): Remove DEBUG_TOGGLE_TOUCH_VIEW accelerator once this flag is | 81 // TODO(skuhne): Remove DEBUG_TOGGLE_TOUCH_VIEW accelerator once this flag is |
87 // removed. | 82 // removed. |
88 const char kAshEnableTouchViewTesting[] = "ash-enable-touch-view-testing"; | 83 const char kAshEnableTouchViewTesting[] = "ash-enable-touch-view-testing"; |
89 | 84 |
90 // Hides notifications that are irrelevant to Chrome OS device factory testing, | 85 // Hides notifications that are irrelevant to Chrome OS device factory testing, |
91 // such as battery level updates. | 86 // such as battery level updates. |
92 const char kAshHideNotificationsForFactory[] = | 87 const char kAshHideNotificationsForFactory[] = |
93 "ash-hide-notifications-for-factory"; | 88 "ash-hide-notifications-for-factory"; |
94 | 89 |
95 // Sets a window size, optional position, and optional scale factor. | |
96 // "1024x768" creates a window of size 1024x768. | |
97 // "100+200-1024x768" positions the window at 100,200. | |
98 // "1024x768*2" sets the scale factor to 2 for a high DPI display. | |
99 // "800,0+800-800x800" for two displays at 800x800 resolution. | |
100 // "800,0+800-800x800,0+1600-800x800" for three displays at 800x800 resolution. | |
101 const char kAshHostWindowBounds[] = "ash-host-window-bounds"; | |
102 | |
103 // Specifies if Material Design elements in Chrome OS system UI are enabled. | 90 // Specifies if Material Design elements in Chrome OS system UI are enabled. |
104 // Can be disabled / enabled / experimental allowing to launch incrementally. | 91 // Can be disabled / enabled / experimental allowing to launch incrementally. |
105 const char kAshMaterialDesign[] = "ash-md"; | 92 const char kAshMaterialDesign[] = "ash-md"; |
106 const char kAshMaterialDesignDisabled[] = "disabled"; | 93 const char kAshMaterialDesignDisabled[] = "disabled"; |
107 const char kAshMaterialDesignEnabled[] = "enabled"; | 94 const char kAshMaterialDesignEnabled[] = "enabled"; |
108 const char kAshMaterialDesignExperimental[] = "experimental"; | 95 const char kAshMaterialDesignExperimental[] = "experimental"; |
109 | 96 |
110 // Specifies a maximum number of preview windows in overview mode that still | 97 // Specifies a maximum number of preview windows in overview mode that still |
111 // allows using mask layers to hide the original window header and use rounded | 98 // allows using mask layers to hide the original window header and use rounded |
112 // corners. | 99 // corners. |
113 const char kAshMaxWindowsToUseMaskInOverview[] = "ash-max-previews-to-use-mask"; | 100 const char kAshMaxWindowsToUseMaskInOverview[] = "ash-max-previews-to-use-mask"; |
114 | 101 |
115 // Specifies a maximum number of preview windows in overview mode that still | 102 // Specifies a maximum number of preview windows in overview mode that still |
116 // allows using alpha shapes to hide the original window header. | 103 // allows using alpha shapes to hide the original window header. |
117 const char kAshMaxWindowsToUseShapeInOverview[] = | 104 const char kAshMaxWindowsToUseShapeInOverview[] = |
118 "ash-max-previews-to-use-shape"; | 105 "ash-max-previews-to-use-shape"; |
119 | 106 |
120 // Enables the heads-up display for tracking touch points. | 107 // Enables the heads-up display for tracking touch points. |
121 const char kAshTouchHud[] = "ash-touch-hud"; | 108 const char kAshTouchHud[] = "ash-touch-hud"; |
122 | 109 |
123 // Uses the 1st display in --ash-host-window-bounds as internal display. | |
124 // This is for debugging on linux desktop. | |
125 const char kAshUseFirstDisplayAsInternal[] = | |
126 "ash-use-first-display-as-internal"; | |
127 | |
128 // (Most) Chrome OS hardware reports ACPI power button releases correctly. | 110 // (Most) Chrome OS hardware reports ACPI power button releases correctly. |
129 // Standard hardware reports releases immediately after presses. If set, we | 111 // Standard hardware reports releases immediately after presses. If set, we |
130 // lock the screen or shutdown the system immediately in response to a press | 112 // lock the screen or shutdown the system immediately in response to a press |
131 // instead of displaying an interactive animation. | 113 // instead of displaying an interactive animation. |
132 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button"; | 114 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button"; |
133 | 115 |
134 #if defined(OS_CHROMEOS) | 116 #if defined(OS_CHROMEOS) |
135 // Constrains the pointer movement within a root window on desktop. | 117 // Constrains the pointer movement within a root window on desktop. |
136 bool ConstrainPointerToRoot() { | 118 bool ConstrainPointerToRoot() { |
137 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root"; | 119 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root"; |
138 | 120 |
139 return base::SysInfo::IsRunningOnChromeOS() || | 121 return base::SysInfo::IsRunningOnChromeOS() || |
140 base::CommandLine::ForCurrentProcess()->HasSwitch( | 122 base::CommandLine::ForCurrentProcess()->HasSwitch( |
141 kAshConstrainPointerToRoot); | 123 kAshConstrainPointerToRoot); |
142 } | 124 } |
143 | 125 |
144 #endif | 126 #endif |
145 | 127 |
146 } // namespace switches | 128 } // namespace switches |
147 } // namespace ash | 129 } // namespace ash |
OLD | NEW |