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

Side by Side Diff: ash/ash_switches.cc

Issue 198063003: Revert of Shelf Cleanup (- binary files) (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 25 matching lines...) Expand all
36 36
37 // Default wallpaper to use (as paths to trusted, non-user-writable JPEG files). 37 // Default wallpaper to use (as paths to trusted, non-user-writable JPEG files).
38 const char kAshDefaultWallpaperLarge[] = "ash-default-wallpaper-large"; 38 const char kAshDefaultWallpaperLarge[] = "ash-default-wallpaper-large";
39 const char kAshDefaultWallpaperSmall[] = "ash-default-wallpaper-small"; 39 const char kAshDefaultWallpaperSmall[] = "ash-default-wallpaper-small";
40 40
41 // Use the normal visual style for the caption buttons (minimize, maximize, 41 // Use the normal visual style for the caption buttons (minimize, maximize,
42 // restore, close). 42 // restore, close).
43 const char kAshDisableAlternateFrameCaptionButtonStyle[] = 43 const char kAshDisableAlternateFrameCaptionButtonStyle[] =
44 "ash-disable-alternate-caption-button"; 44 "ash-disable-alternate-caption-button";
45 45
46 #if defined(OS_CHROMEOS) 46 // Disable the alternate shelf layout.
47 // Disable the status tray volume menu for allowing the user to choose an audio 47 const char kAshDisableAlternateShelfLayout[] =
48 // input and output device. 48 "ash-disable-alternate-shelf-layout";
49 const char kAshDisableAudioDeviceMenu[] =
50 "ash-disable-audio-device-menu";
51 #endif
52 49
53 // Disable ability to dock windows at the desktop edge. 50 // Disable ability to dock windows at the desktop edge.
54 const char kAshDisableDockedWindows[] = "ash-disable-docked-windows"; 51 const char kAshDisableDockedWindows[] = "ash-disable-docked-windows";
55 52
56 // Disables overview mode for window switching. 53 // Disables overview mode for window switching.
57 const char kAshDisableOverviewMode[] = "ash-disable-overview-mode"; 54 const char kAshDisableOverviewMode[] = "ash-disable-overview-mode";
58 55
59 // Enable advanced gestures (e.g. for window management). 56 // Enable advanced gestures (e.g. for window management).
60 const char kAshEnableAdvancedGestures[] = "ash-enable-advanced-gestures"; 57 const char kAshEnableAdvancedGestures[] = "ash-enable-advanced-gestures";
61 58
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 113
117 // Specifies the layout mode and offsets for the secondary display for 114 // Specifies the layout mode and offsets for the secondary display for
118 // testing. The format is "<t|r|b|l>,<offset>" where t=TOP, r=RIGHT, 115 // testing. The format is "<t|r|b|l>,<offset>" where t=TOP, r=RIGHT,
119 // b=BOTTOM and L=LEFT. For example, 'r,-100' means the secondary display 116 // b=BOTTOM and L=LEFT. For example, 'r,-100' means the secondary display
120 // is positioned on the right with -100 offset. (above than primary) 117 // is positioned on the right with -100 offset. (above than primary)
121 const char kAshSecondaryDisplayLayout[] = "ash-secondary-display-layout"; 118 const char kAshSecondaryDisplayLayout[] = "ash-secondary-display-layout";
122 119
123 // Enables the heads-up display for tracking touch points. 120 // Enables the heads-up display for tracking touch points.
124 const char kAshTouchHud[] = "ash-touch-hud"; 121 const char kAshTouchHud[] = "ash-touch-hud";
125 122
123 // Use alternate layout of the shelf for testing a new look and feel:
124 // Slightly smaller profile, only 2 states for the "bar highlight" on
125 // launcher buttons, app list icon with more visible state indication,
126 // app list icon repositionable and defaulting as 1st item in shelf,
127 // more visible state indication for background on status area.
128 // crbug's [244983, 244990, 244994, 245005, 245012]
129 const char kAshUseAlternateShelfLayout[] = "ash-use-alternate-shelf";
130
126 // Uses the 1st display in --ash-host-window-bounds as internal display. 131 // Uses the 1st display in --ash-host-window-bounds as internal display.
127 // This is for debugging on linux desktop. 132 // This is for debugging on linux desktop.
128 const char kAshUseFirstDisplayAsInternal[] = 133 const char kAshUseFirstDisplayAsInternal[] =
129 "ash-use-first-display-as-internal"; 134 "ash-use-first-display-as-internal";
130 135
131 // (Most) Chrome OS hardware reports ACPI power button releases correctly. 136 // (Most) Chrome OS hardware reports ACPI power button releases correctly.
132 // Standard hardware reports releases immediately after presses. If set, we 137 // Standard hardware reports releases immediately after presses. If set, we
133 // lock the screen or shutdown the system immediately in response to a press 138 // lock the screen or shutdown the system immediately in response to a press
134 // instead of displaying an interactive animation. 139 // instead of displaying an interactive animation.
135 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button"; 140 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button";
136 141
137 #if defined(OS_WIN) 142 #if defined(OS_WIN)
138 // Force Ash to open its root window on the desktop, even on Windows 8 where 143 // Force Ash to open its root window on the desktop, even on Windows 8 where
139 // it would normally end up in metro. 144 // it would normally end up in metro.
140 const char kForceAshToDesktop[] = "ash-force-desktop"; 145 const char kForceAshToDesktop[] = "ash-force-desktop";
141 146
142 #endif 147 #endif
143 148
144 bool UseAlternateFrameCaptionButtonStyle() { 149 bool UseAlternateFrameCaptionButtonStyle() {
145 return !CommandLine::ForCurrentProcess()-> 150 return !CommandLine::ForCurrentProcess()->
146 HasSwitch(kAshDisableAlternateFrameCaptionButtonStyle); 151 HasSwitch(kAshDisableAlternateFrameCaptionButtonStyle);
147 } 152 }
148 153
154 bool UseAlternateShelfLayout() {
155 return !CommandLine::ForCurrentProcess()->
156 HasSwitch(kAshDisableAlternateShelfLayout);
157 }
158
149 bool UseImmersiveFullscreenForAllWindows() { 159 bool UseImmersiveFullscreenForAllWindows() {
150 return !CommandLine::ForCurrentProcess()->HasSwitch( 160 return !CommandLine::ForCurrentProcess()->HasSwitch(
151 kAshEnableImmersiveFullscreenForBrowserOnly); 161 kAshEnableImmersiveFullscreenForBrowserOnly);
152 } 162 }
153 163
154 bool UseOverviewMode() { 164 bool UseOverviewMode() {
155 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableOverviewMode); 165 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableOverviewMode);
156 } 166 }
157 167
158 bool UseDockedWindows() { 168 bool UseDockedWindows() {
159 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableDockedWindows); 169 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableDockedWindows);
160 } 170 }
161 171
162 } // namespace switches 172 } // namespace switches
163 } // namespace ash 173 } // 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