Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(414)

Side by Side Diff: ash/ash_switches.cc

Issue 185143002: Revert of Ash:Shelf - Cleanup of Alternate Shelf (part 1) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/ash_switches.h ('k') | ash/dip_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ash/ash_switches.h ('k') | ash/dip_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698