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 | 8 |
9 namespace ash { | 9 namespace ash { |
10 namespace switches { | 10 namespace switches { |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 | 141 |
142 // Specifies the layout mode and offsets for the secondary display for | 142 // Specifies the layout mode and offsets for the secondary display for |
143 // testing. The format is "<t|r|b|l>,<offset>" where t=TOP, r=RIGHT, | 143 // testing. The format is "<t|r|b|l>,<offset>" where t=TOP, r=RIGHT, |
144 // b=BOTTOM and L=LEFT. For example, 'r,-100' means the secondary display | 144 // b=BOTTOM and L=LEFT. For example, 'r,-100' means the secondary display |
145 // is positioned on the right with -100 offset. (above than primary) | 145 // is positioned on the right with -100 offset. (above than primary) |
146 const char kAshSecondaryDisplayLayout[] = "ash-secondary-display-layout"; | 146 const char kAshSecondaryDisplayLayout[] = "ash-secondary-display-layout"; |
147 | 147 |
148 // Enables the heads-up display for tracking touch points. | 148 // Enables the heads-up display for tracking touch points. |
149 const char kAshTouchHud[] = "ash-touch-hud"; | 149 const char kAshTouchHud[] = "ash-touch-hud"; |
150 | 150 |
151 // Use alternate layout of the shelf for testing a new look and feel: | |
152 // Slightly smaller profile, only 2 states for the "bar highlight" on | |
153 // launcher buttons, app list icon with more visible state indication, | |
154 // app list icon repositionable and defaulting as 1st item in shelf, | |
155 // more visible state indication for background on status area. | |
156 // crbug's [244983, 244990, 244994, 245005, 245012] | |
157 const char kAshUseAlternateShelfLayout[] = "ash-use-alternate-shelf"; | |
158 | |
159 // Uses the 1st display in --ash-host-window-bounds as internal display. | 151 // Uses the 1st display in --ash-host-window-bounds as internal display. |
160 // This is for debugging on linux desktop. | 152 // This is for debugging on linux desktop. |
161 const char kAshUseFirstDisplayAsInternal[] = | 153 const char kAshUseFirstDisplayAsInternal[] = |
162 "ash-use-first-display-as-internal"; | 154 "ash-use-first-display-as-internal"; |
163 | 155 |
164 // (Most) Chrome OS hardware reports ACPI power button releases correctly. | 156 // (Most) Chrome OS hardware reports ACPI power button releases correctly. |
165 // Standard hardware reports releases immediately after presses. If set, we | 157 // Standard hardware reports releases immediately after presses. If set, we |
166 // lock the screen or shutdown the system immediately in response to a press | 158 // lock the screen or shutdown the system immediately in response to a press |
167 // instead of displaying an interactive animation. | 159 // instead of displaying an interactive animation. |
168 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button"; | 160 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button"; |
169 | 161 |
170 #if defined(OS_WIN) | 162 #if defined(OS_WIN) |
171 // Force Ash to open its root window on the desktop, even on Windows 8 where | 163 // Force Ash to open its root window on the desktop, even on Windows 8 where |
172 // it would normally end up in metro. | 164 // it would normally end up in metro. |
173 const char kForceAshToDesktop[] = "ash-force-desktop"; | 165 const char kForceAshToDesktop[] = "ash-force-desktop"; |
174 | 166 |
175 #endif | 167 #endif |
176 | 168 |
177 bool UseAlternateFrameCaptionButtonStyle() { | 169 bool UseAlternateFrameCaptionButtonStyle() { |
178 return CommandLine::ForCurrentProcess()-> | 170 return CommandLine::ForCurrentProcess()-> |
179 HasSwitch(kAshEnableAlternateFrameCaptionButtonStyle); | 171 HasSwitch(kAshEnableAlternateFrameCaptionButtonStyle); |
180 } | 172 } |
181 | 173 |
182 bool UseAlternateShelfLayout() { | |
183 return !CommandLine::ForCurrentProcess()-> | |
184 HasSwitch(kAshDisableAlternateShelfLayout); | |
185 } | |
186 | |
187 bool UseDragOffShelf() { | 174 bool UseDragOffShelf() { |
188 return !CommandLine::ForCurrentProcess()-> | 175 return !CommandLine::ForCurrentProcess()-> |
189 HasSwitch(kAshDisableDragOffShelf); | 176 HasSwitch(kAshDisableDragOffShelf); |
190 } | 177 } |
191 | 178 |
192 bool UseImmersiveFullscreenForAllWindows() { | 179 bool UseImmersiveFullscreenForAllWindows() { |
193 return !CommandLine::ForCurrentProcess()->HasSwitch( | 180 return !CommandLine::ForCurrentProcess()->HasSwitch( |
194 kAshEnableImmersiveFullscreenForBrowserOnly); | 181 kAshEnableImmersiveFullscreenForBrowserOnly); |
195 } | 182 } |
196 | 183 |
(...skipping 26 matching lines...) Expand all Loading... |
223 | 210 |
224 #if defined(OS_CHROMEOS) | 211 #if defined(OS_CHROMEOS) |
225 bool UseUsbChargerNotification() { | 212 bool UseUsbChargerNotification() { |
226 return !CommandLine::ForCurrentProcess()-> | 213 return !CommandLine::ForCurrentProcess()-> |
227 HasSwitch(kAshDisableUsbChargerNotification); | 214 HasSwitch(kAshDisableUsbChargerNotification); |
228 } | 215 } |
229 #endif | 216 #endif |
230 | 217 |
231 } // namespace switches | 218 } // namespace switches |
232 } // namespace ash | 219 } // namespace ash |
OLD | NEW |