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

Side by Side Diff: ash/ash_switches.cc

Issue 181563004: Remove --ash-disable-overview-mode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Restore chromeactions.txt 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
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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 // Disable ability to dock windows at the desktop edge. 61 // Disable ability to dock windows at the desktop edge.
62 const char kAshDisableDockedWindows[] = "ash-disable-docked-windows"; 62 const char kAshDisableDockedWindows[] = "ash-disable-docked-windows";
63 63
64 // Disallow items to be dragged from the app launcher list into the launcher. 64 // Disallow items to be dragged from the app launcher list into the launcher.
65 const char kAshDisableDragAndDropAppListToLauncher[] = 65 const char kAshDisableDragAndDropAppListToLauncher[] =
66 "ash-disable-drag-and-drop-applist-to-launcher"; 66 "ash-disable-drag-and-drop-applist-to-launcher";
67 67
68 // Disable dragging items off the shelf to unpin them. 68 // Disable dragging items off the shelf to unpin them.
69 const char kAshDisableDragOffShelf[] = "ash-disable-drag-off-shelf"; 69 const char kAshDisableDragOffShelf[] = "ash-disable-drag-off-shelf";
70 70
71 // Disables overview mode for window switching.
72 const char kAshDisableOverviewMode[] = "ash-disable-overview-mode";
73
74 #if defined(OS_CHROMEOS) 71 #if defined(OS_CHROMEOS)
75 // Disable the notification when a low-power USB charger is connected. 72 // Disable the notification when a low-power USB charger is connected.
76 const char kAshDisableUsbChargerNotification[] = 73 const char kAshDisableUsbChargerNotification[] =
77 "ash-disable-usb-charger-notification"; 74 "ash-disable-usb-charger-notification";
78 75
79 // TODO(jamescook): Remove this unused flag. It exists only to allow the 76 // TODO(jamescook): Remove this unused flag. It exists only to allow the
80 // "Enable audio device menu" about:flags item to have the tri-state 77 // "Enable audio device menu" about:flags item to have the tri-state
81 // default/enabled/disabled UI. 78 // default/enabled/disabled UI.
82 const char kAshEnableAudioDeviceMenu[] = "ash-enable-audio-device-menu"; 79 const char kAshEnableAudioDeviceMenu[] = "ash-enable-audio-device-menu";
83 #endif // defined(OS_CHROMEOS) 80 #endif // defined(OS_CHROMEOS)
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 bool UseMultiUserTray() { 207 bool UseMultiUserTray() {
211 #if defined(OS_CHROMEOS) 208 #if defined(OS_CHROMEOS)
212 // TODO(skuhne): If this gets removed for good, remove also 209 // TODO(skuhne): If this gets removed for good, remove also
213 // |SystemTray::user_items_| and the use of it. 210 // |SystemTray::user_items_| and the use of it.
214 return CommandLine::ForCurrentProcess()->HasSwitch(kAshEnableMultiUserTray); 211 return CommandLine::ForCurrentProcess()->HasSwitch(kAshEnableMultiUserTray);
215 #else 212 #else
216 return false; 213 return false;
217 #endif 214 #endif
218 } 215 }
219 216
220 bool UseOverviewMode() {
221 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableOverviewMode);
222 }
223
224 bool UseDockedWindows() { 217 bool UseDockedWindows() {
225 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableDockedWindows); 218 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableDockedWindows);
226 } 219 }
227 220
228 bool ShowAudioDeviceMenu() { 221 bool ShowAudioDeviceMenu() {
229 #if defined(OS_CHROMEOS) 222 #if defined(OS_CHROMEOS)
230 return !CommandLine::ForCurrentProcess()-> 223 return !CommandLine::ForCurrentProcess()->
231 HasSwitch(kAshDisableAudioDeviceMenu); 224 HasSwitch(kAshDisableAudioDeviceMenu);
232 #else 225 #else
233 return false; 226 return false;
234 #endif 227 #endif
235 } 228 }
236 229
237 #if defined(OS_CHROMEOS) 230 #if defined(OS_CHROMEOS)
238 bool UseUsbChargerNotification() { 231 bool UseUsbChargerNotification() {
239 return !CommandLine::ForCurrentProcess()-> 232 return !CommandLine::ForCurrentProcess()->
240 HasSwitch(kAshDisableUsbChargerNotification); 233 HasSwitch(kAshDisableUsbChargerNotification);
241 } 234 }
242 #endif 235 #endif
243 236
244 } // namespace switches 237 } // namespace switches
245 } // namespace ash 238 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698