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

Side by Side Diff: ash/ash_switches.cc

Issue 22793011: ash:Shelf - Enable Alternate Shelf and Side Shelf by default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: missed rm #include Created 7 years, 3 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 26 matching lines...) Expand all
37 // non-user-writable JPEG files). 37 // non-user-writable JPEG files).
38 const char kAshDefaultGuestWallpaperLarge[] = 38 const char kAshDefaultGuestWallpaperLarge[] =
39 "ash-default-guest-wallpaper-large"; 39 "ash-default-guest-wallpaper-large";
40 const char kAshDefaultGuestWallpaperSmall[] = 40 const char kAshDefaultGuestWallpaperSmall[] =
41 "ash-default-guest-wallpaper-small"; 41 "ash-default-guest-wallpaper-small";
42 42
43 // Default wallpaper to use (as paths to trusted, non-user-writable JPEG files). 43 // Default wallpaper to use (as paths to trusted, non-user-writable JPEG files).
44 const char kAshDefaultWallpaperLarge[] = "ash-default-wallpaper-large"; 44 const char kAshDefaultWallpaperLarge[] = "ash-default-wallpaper-large";
45 const char kAshDefaultWallpaperSmall[] = "ash-default-wallpaper-small"; 45 const char kAshDefaultWallpaperSmall[] = "ash-default-wallpaper-small";
46 46
47 // Disable the alternate shelf layout.
48 const char kAshDisableAlternateShelfLayout[] =
49 "ash-disable-alternate-shelf-layout";
50
47 #if defined(OS_CHROMEOS) 51 #if defined(OS_CHROMEOS)
48 // Disable the status tray volume menu for allowing the user to choose an audio 52 // Disable the status tray volume menu for allowing the user to choose an audio
49 // input and output device. 53 // input and output device.
50 const char kAshDisableAudioDeviceMenu[] = 54 const char kAshDisableAudioDeviceMenu[] =
51 "ash-disable-audio-device-menu"; 55 "ash-disable-audio-device-menu";
52 #endif 56 #endif
53 57
54 // Disable auto window maximization logic. 58 // Disable auto window maximization logic.
55 const char kAshDisableAutoMaximizing[] = "ash-disable-auto-maximizing"; 59 const char kAshDisableAutoMaximizing[] = "ash-disable-auto-maximizing";
56 60
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 177
174 // Disallow items to be dragged from the app launcher list into the launcher. 178 // Disallow items to be dragged from the app launcher list into the launcher.
175 const char kAshDisableDragAndDropAppListToLauncher[] = 179 const char kAshDisableDragAndDropAppListToLauncher[] =
176 "ash-disable-drag-and-drop-applist-to-launcher"; 180 "ash-disable-drag-and-drop-applist-to-launcher";
177 181
178 // Enables a mode which enforces all browser & application windows to be created 182 // Enables a mode which enforces all browser & application windows to be created
179 // in maximized mode. 183 // in maximized mode.
180 const char kForcedMaximizeMode[] = "forced-maximize-mode"; 184 const char kForcedMaximizeMode[] = "forced-maximize-mode";
181 185
182 bool UseAlternateShelfLayout() { 186 bool UseAlternateShelfLayout() {
183 return CommandLine::ForCurrentProcess()-> 187 return !CommandLine::ForCurrentProcess()->
184 HasSwitch(ash::switches::kAshUseAlternateShelfLayout); 188 HasSwitch(ash::switches::kAshDisableAlternateShelfLayout);
185 } 189 }
186 190
187 bool UseDragOffShelf() { 191 bool UseDragOffShelf() {
188 return CommandLine::ForCurrentProcess()-> 192 return CommandLine::ForCurrentProcess()->
189 HasSwitch(ash::switches::kAshEnableDragOffShelf); 193 HasSwitch(ash::switches::kAshEnableDragOffShelf);
190 } 194 }
191 195
192 bool ShowShelfAlignmentMenu() { 196 bool ShowShelfAlignmentMenu() {
193 return CommandLine::ForCurrentProcess()-> 197 return !CommandLine::ForCurrentProcess()->
194 HasSwitch(switches::kShowShelfAlignmentMenu); 198 HasSwitch(switches::kHideShelfAlignmentMenu);
195 } 199 }
196 200
197 #if defined(OS_CHROMEOS) 201 #if defined(OS_CHROMEOS)
198 bool ShowAudioDeviceMenu() { 202 bool ShowAudioDeviceMenu() {
199 return !CommandLine::ForCurrentProcess()-> 203 return !CommandLine::ForCurrentProcess()->
200 HasSwitch(ash::switches::kAshDisableAudioDeviceMenu); 204 HasSwitch(ash::switches::kAshDisableAudioDeviceMenu);
201 } 205 }
202 206
203 bool UseUsbChargerNotification() { 207 bool UseUsbChargerNotification() {
204 return !CommandLine::ForCurrentProcess()-> 208 return !CommandLine::ForCurrentProcess()->
205 HasSwitch(ash::switches::kAshDisableUsbChargerNotification); 209 HasSwitch(ash::switches::kAshDisableUsbChargerNotification);
206 } 210 }
207 #endif 211 #endif
208 212
209 } // namespace switches 213 } // namespace switches
210 } // namespace ash 214 } // namespace ash
OLDNEW
« no previous file with comments | « ash/ash_switches.h ('k') | ash/dip_unittest.cc » ('j') | ash/launcher/launcher_model_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698