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 |
151 // Uses the 1st display in --ash-host-window-bounds as internal display. | 159 // Uses the 1st display in --ash-host-window-bounds as internal display. |
152 // This is for debugging on linux desktop. | 160 // This is for debugging on linux desktop. |
153 const char kAshUseFirstDisplayAsInternal[] = | 161 const char kAshUseFirstDisplayAsInternal[] = |
154 "ash-use-first-display-as-internal"; | 162 "ash-use-first-display-as-internal"; |
155 | 163 |
156 // (Most) Chrome OS hardware reports ACPI power button releases correctly. | 164 // (Most) Chrome OS hardware reports ACPI power button releases correctly. |
157 // Standard hardware reports releases immediately after presses. If set, we | 165 // Standard hardware reports releases immediately after presses. If set, we |
158 // lock the screen or shutdown the system immediately in response to a press | 166 // lock the screen or shutdown the system immediately in response to a press |
159 // instead of displaying an interactive animation. | 167 // instead of displaying an interactive animation. |
160 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button"; | 168 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button"; |
161 | 169 |
162 #if defined(OS_WIN) | 170 #if defined(OS_WIN) |
163 // Force Ash to open its root window on the desktop, even on Windows 8 where | 171 // Force Ash to open its root window on the desktop, even on Windows 8 where |
164 // it would normally end up in metro. | 172 // it would normally end up in metro. |
165 const char kForceAshToDesktop[] = "ash-force-desktop"; | 173 const char kForceAshToDesktop[] = "ash-force-desktop"; |
166 | 174 |
167 #endif | 175 #endif |
168 | 176 |
169 bool UseAlternateFrameCaptionButtonStyle() { | 177 bool UseAlternateFrameCaptionButtonStyle() { |
170 return CommandLine::ForCurrentProcess()-> | 178 return CommandLine::ForCurrentProcess()-> |
171 HasSwitch(kAshEnableAlternateFrameCaptionButtonStyle); | 179 HasSwitch(kAshEnableAlternateFrameCaptionButtonStyle); |
172 } | 180 } |
173 | 181 |
| 182 bool UseAlternateShelfLayout() { |
| 183 return !CommandLine::ForCurrentProcess()-> |
| 184 HasSwitch(kAshDisableAlternateShelfLayout); |
| 185 } |
| 186 |
174 bool UseDragOffShelf() { | 187 bool UseDragOffShelf() { |
175 return !CommandLine::ForCurrentProcess()-> | 188 return !CommandLine::ForCurrentProcess()-> |
176 HasSwitch(kAshDisableDragOffShelf); | 189 HasSwitch(kAshDisableDragOffShelf); |
177 } | 190 } |
178 | 191 |
179 bool UseImmersiveFullscreenForAllWindows() { | 192 bool UseImmersiveFullscreenForAllWindows() { |
180 return !CommandLine::ForCurrentProcess()->HasSwitch( | 193 return !CommandLine::ForCurrentProcess()->HasSwitch( |
181 kAshEnableImmersiveFullscreenForBrowserOnly); | 194 kAshEnableImmersiveFullscreenForBrowserOnly); |
182 } | 195 } |
183 | 196 |
(...skipping 26 matching lines...) Expand all Loading... |
210 | 223 |
211 #if defined(OS_CHROMEOS) | 224 #if defined(OS_CHROMEOS) |
212 bool UseUsbChargerNotification() { | 225 bool UseUsbChargerNotification() { |
213 return !CommandLine::ForCurrentProcess()-> | 226 return !CommandLine::ForCurrentProcess()-> |
214 HasSwitch(kAshDisableUsbChargerNotification); | 227 HasSwitch(kAshDisableUsbChargerNotification); |
215 } | 228 } |
216 #endif | 229 #endif |
217 | 230 |
218 } // namespace switches | 231 } // namespace switches |
219 } // namespace ash | 232 } // namespace ash |
OLD | NEW |