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

Side by Side Diff: ash/ash_switches.cc

Issue 176883022: 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 // Disable the alternate shelf layout. 46 #if defined(OS_CHROMEOS)
47 const char kAshDisableAlternateShelfLayout[] = 47 // Disable the status tray volume menu for allowing the user to choose an audio
48 "ash-disable-alternate-shelf-layout"; 48 // input and output device.
49 const char kAshDisableAudioDeviceMenu[] =
50 "ash-disable-audio-device-menu";
51 #endif
49 52
50 // Disable ability to dock windows at the desktop edge. 53 // Disable ability to dock windows at the desktop edge.
51 const char kAshDisableDockedWindows[] = "ash-disable-docked-windows"; 54 const char kAshDisableDockedWindows[] = "ash-disable-docked-windows";
52 55
53 // Disables overview mode for window switching. 56 // Disables overview mode for window switching.
54 const char kAshDisableOverviewMode[] = "ash-disable-overview-mode"; 57 const char kAshDisableOverviewMode[] = "ash-disable-overview-mode";
55 58
56 // Enable advanced gestures (e.g. for window management). 59 // Enable advanced gestures (e.g. for window management).
57 const char kAshEnableAdvancedGestures[] = "ash-enable-advanced-gestures"; 60 const char kAshEnableAdvancedGestures[] = "ash-enable-advanced-gestures";
58 61
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 116
114 // Specifies the layout mode and offsets for the secondary display for 117 // Specifies the layout mode and offsets for the secondary display for
115 // testing. The format is "<t|r|b|l>,<offset>" where t=TOP, r=RIGHT, 118 // testing. The format is "<t|r|b|l>,<offset>" where t=TOP, r=RIGHT,
116 // b=BOTTOM and L=LEFT. For example, 'r,-100' means the secondary display 119 // b=BOTTOM and L=LEFT. For example, 'r,-100' means the secondary display
117 // is positioned on the right with -100 offset. (above than primary) 120 // is positioned on the right with -100 offset. (above than primary)
118 const char kAshSecondaryDisplayLayout[] = "ash-secondary-display-layout"; 121 const char kAshSecondaryDisplayLayout[] = "ash-secondary-display-layout";
119 122
120 // Enables the heads-up display for tracking touch points. 123 // Enables the heads-up display for tracking touch points.
121 const char kAshTouchHud[] = "ash-touch-hud"; 124 const char kAshTouchHud[] = "ash-touch-hud";
122 125
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
131 // Uses the 1st display in --ash-host-window-bounds as internal display. 126 // Uses the 1st display in --ash-host-window-bounds as internal display.
132 // This is for debugging on linux desktop. 127 // This is for debugging on linux desktop.
133 const char kAshUseFirstDisplayAsInternal[] = 128 const char kAshUseFirstDisplayAsInternal[] =
134 "ash-use-first-display-as-internal"; 129 "ash-use-first-display-as-internal";
135 130
136 // (Most) Chrome OS hardware reports ACPI power button releases correctly. 131 // (Most) Chrome OS hardware reports ACPI power button releases correctly.
137 // Standard hardware reports releases immediately after presses. If set, we 132 // Standard hardware reports releases immediately after presses. If set, we
138 // lock the screen or shutdown the system immediately in response to a press 133 // lock the screen or shutdown the system immediately in response to a press
139 // instead of displaying an interactive animation. 134 // instead of displaying an interactive animation.
140 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button"; 135 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button";
141 136
142 #if defined(OS_WIN) 137 #if defined(OS_WIN)
143 // Force Ash to open its root window on the desktop, even on Windows 8 where 138 // Force Ash to open its root window on the desktop, even on Windows 8 where
144 // it would normally end up in metro. 139 // it would normally end up in metro.
145 const char kForceAshToDesktop[] = "ash-force-desktop"; 140 const char kForceAshToDesktop[] = "ash-force-desktop";
146 141
147 #endif 142 #endif
148 143
149 bool UseAlternateFrameCaptionButtonStyle() { 144 bool UseAlternateFrameCaptionButtonStyle() {
150 return !CommandLine::ForCurrentProcess()-> 145 return !CommandLine::ForCurrentProcess()->
151 HasSwitch(kAshDisableAlternateFrameCaptionButtonStyle); 146 HasSwitch(kAshDisableAlternateFrameCaptionButtonStyle);
152 } 147 }
153 148
154 bool UseAlternateShelfLayout() {
155 return !CommandLine::ForCurrentProcess()->
156 HasSwitch(kAshDisableAlternateShelfLayout);
157 }
158
159 bool UseImmersiveFullscreenForAllWindows() { 149 bool UseImmersiveFullscreenForAllWindows() {
160 return !CommandLine::ForCurrentProcess()->HasSwitch( 150 return !CommandLine::ForCurrentProcess()->HasSwitch(
161 kAshEnableImmersiveFullscreenForBrowserOnly); 151 kAshEnableImmersiveFullscreenForBrowserOnly);
162 } 152 }
163 153
164 bool UseOverviewMode() { 154 bool UseOverviewMode() {
165 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableOverviewMode); 155 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableOverviewMode);
166 } 156 }
167 157
168 bool UseDockedWindows() { 158 bool UseDockedWindows() {
169 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableDockedWindows); 159 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableDockedWindows);
170 } 160 }
171 161
172 } // namespace switches 162 } // namespace switches
173 } // namespace ash 163 } // 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