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

Side by Side Diff: ash/ash_switches.cc

Issue 140323010: Ash:Shelf - Cleanup of Alternate Shelf (part 1) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase + remove AlternateShelf from variable names Created 6 years, 11 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
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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 const char kAshSecondaryDisplayLayout[] = "ash-secondary-display-layout"; 175 const char kAshSecondaryDisplayLayout[] = "ash-secondary-display-layout";
176 176
177 // Use the old behavior where the user can pick the width of a side maximized 177 // Use the old behavior where the user can pick the width of a side maximized
178 // window. The user selects the width of the side maximized window based on how 178 // window. The user selects the width of the side maximized window based on how
179 // far off the edge of the work area they drag the window. 179 // far off the edge of the work area they drag the window.
180 const char kAshMultipleSnapWindowWidths[] = "ash-multiple-snap-window-widths"; 180 const char kAshMultipleSnapWindowWidths[] = "ash-multiple-snap-window-widths";
181 181
182 // Enables the heads-up display for tracking touch points. 182 // Enables the heads-up display for tracking touch points.
183 const char kAshTouchHud[] = "ash-touch-hud"; 183 const char kAshTouchHud[] = "ash-touch-hud";
184 184
185 // Use alternate layout of the shelf for testing a new look and feel:
186 // Slightly smaller profile, only 2 states for the "bar highlight" on
187 // launcher buttons, app list icon with more visible state indication,
188 // app list icon repositionable and defaulting as 1st item in shelf,
189 // more visible state indication for background on status area.
190 // crbug's [244983, 244990, 244994, 245005, 245012]
191 const char kAshUseAlternateShelfLayout[] = "ash-use-alternate-shelf";
192
193 // Uses the 1st display in --ash-host-window-bounds as internal display. 185 // Uses the 1st display in --ash-host-window-bounds as internal display.
194 // This is for debugging on linux desktop. 186 // This is for debugging on linux desktop.
195 const char kAshUseFirstDisplayAsInternal[] = 187 const char kAshUseFirstDisplayAsInternal[] =
196 "ash-use-first-display-as-internal"; 188 "ash-use-first-display-as-internal";
197 189
198 // (Most) Chrome OS hardware reports ACPI power button releases correctly. 190 // (Most) Chrome OS hardware reports ACPI power button releases correctly.
199 // Standard hardware reports releases immediately after presses. If set, we 191 // Standard hardware reports releases immediately after presses. If set, we
200 // lock the screen or shutdown the system immediately in response to a press 192 // lock the screen or shutdown the system immediately in response to a press
201 // instead of displaying an interactive animation. 193 // instead of displaying an interactive animation.
202 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button"; 194 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button";
(...skipping 10 matching lines...) Expand all
213 const char kHideShelfAlignmentMenu[] = "hide-launcher-alignment-menu"; 205 const char kHideShelfAlignmentMenu[] = "hide-launcher-alignment-menu";
214 206
215 bool UseAlternateFrameCaptionButtonStyle() { 207 bool UseAlternateFrameCaptionButtonStyle() {
216 // For the sake of simplicity, the alternate caption button style is only 208 // For the sake of simplicity, the alternate caption button style is only
217 // used if snapped windows are always 50% of the screen's width. 209 // used if snapped windows are always 50% of the screen's width.
218 CommandLine* command_line = CommandLine::ForCurrentProcess(); 210 CommandLine* command_line = CommandLine::ForCurrentProcess();
219 return command_line->HasSwitch(kAshEnableAlternateFrameCaptionButtonStyle) && 211 return command_line->HasSwitch(kAshEnableAlternateFrameCaptionButtonStyle) &&
220 !command_line->HasSwitch(kAshMultipleSnapWindowWidths); 212 !command_line->HasSwitch(kAshMultipleSnapWindowWidths);
221 } 213 }
222 214
223 bool UseAlternateShelfLayout() {
224 return !CommandLine::ForCurrentProcess()->
225 HasSwitch(kAshDisableAlternateShelfLayout);
226 }
227
228 bool UseDragOffShelf() { 215 bool UseDragOffShelf() {
229 return !CommandLine::ForCurrentProcess()-> 216 return !CommandLine::ForCurrentProcess()->
230 HasSwitch(kAshDisableDragOffShelf); 217 HasSwitch(kAshDisableDragOffShelf);
231 } 218 }
232 219
233 bool UseImmersiveFullscreenForAllWindows() { 220 bool UseImmersiveFullscreenForAllWindows() {
234 return !CommandLine::ForCurrentProcess()->HasSwitch( 221 return !CommandLine::ForCurrentProcess()->HasSwitch(
235 kAshEnableImmersiveFullscreenForBrowserOnly); 222 kAshEnableImmersiveFullscreenForBrowserOnly);
236 } 223 }
237 224
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 } 262 }
276 263
277 bool UseUsbChargerNotification() { 264 bool UseUsbChargerNotification() {
278 return !CommandLine::ForCurrentProcess()-> 265 return !CommandLine::ForCurrentProcess()->
279 HasSwitch(kAshDisableUsbChargerNotification); 266 HasSwitch(kAshDisableUsbChargerNotification);
280 } 267 }
281 #endif 268 #endif
282 269
283 } // namespace switches 270 } // namespace switches
284 } // namespace ash 271 } // namespace ash
OLDNEW
« no previous file with comments | « ash/ash_switches.h ('k') | ash/dip_unittest.cc » ('j') | ash/shelf/app_list_button.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698