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

Side by Side Diff: ash/ash_switches.cc

Issue 165943011: Remove flag to hide shelf alignment (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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/shelf/shelf_widget.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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 // instead of displaying an interactive animation. 199 // instead of displaying an interactive animation.
200 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button"; 200 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button";
201 201
202 #if defined(OS_WIN) 202 #if defined(OS_WIN)
203 // Force Ash to open its root window on the desktop, even on Windows 8 where 203 // Force Ash to open its root window on the desktop, even on Windows 8 where
204 // it would normally end up in metro. 204 // it would normally end up in metro.
205 const char kForceAshToDesktop[] = "ash-force-desktop"; 205 const char kForceAshToDesktop[] = "ash-force-desktop";
206 206
207 #endif 207 #endif
208 208
209 // Flags explicitly show or hide the shelf alignment menu.
210 const char kShowShelfAlignmentMenu[] = "show-launcher-alignment-menu";
211 const char kHideShelfAlignmentMenu[] = "hide-launcher-alignment-menu";
212
213 bool UseAlternateFrameCaptionButtonStyle() { 209 bool UseAlternateFrameCaptionButtonStyle() {
214 // For the sake of simplicity, the alternate caption button style is only 210 // For the sake of simplicity, the alternate caption button style is only
215 // used if snapped windows are always 50% of the screen's width. 211 // used if snapped windows are always 50% of the screen's width.
216 CommandLine* command_line = CommandLine::ForCurrentProcess(); 212 CommandLine* command_line = CommandLine::ForCurrentProcess();
217 return command_line->HasSwitch(kAshEnableAlternateFrameCaptionButtonStyle) && 213 return command_line->HasSwitch(kAshEnableAlternateFrameCaptionButtonStyle) &&
218 !command_line->HasSwitch(kAshMultipleSnapWindowWidths); 214 !command_line->HasSwitch(kAshMultipleSnapWindowWidths);
219 } 215 }
220 216
221 bool UseAlternateShelfLayout() { 217 bool UseAlternateShelfLayout() {
222 return !CommandLine::ForCurrentProcess()-> 218 return !CommandLine::ForCurrentProcess()->
223 HasSwitch(kAshDisableAlternateShelfLayout); 219 HasSwitch(kAshDisableAlternateShelfLayout);
224 } 220 }
225 221
226 bool UseDragOffShelf() { 222 bool UseDragOffShelf() {
227 return !CommandLine::ForCurrentProcess()-> 223 return !CommandLine::ForCurrentProcess()->
228 HasSwitch(kAshDisableDragOffShelf); 224 HasSwitch(kAshDisableDragOffShelf);
229 } 225 }
230 226
231 bool UseImmersiveFullscreenForAllWindows() { 227 bool UseImmersiveFullscreenForAllWindows() {
232 return !CommandLine::ForCurrentProcess()->HasSwitch( 228 return !CommandLine::ForCurrentProcess()->HasSwitch(
233 kAshEnableImmersiveFullscreenForBrowserOnly); 229 kAshEnableImmersiveFullscreenForBrowserOnly);
234 } 230 }
235 231
236 bool ShowShelfAlignmentMenu() {
237 return !CommandLine::ForCurrentProcess()->
238 HasSwitch(kHideShelfAlignmentMenu);
239 }
240
241 bool UseMultiUserTray() { 232 bool UseMultiUserTray() {
242 #if defined(OS_CHROMEOS) 233 #if defined(OS_CHROMEOS)
243 // TODO(skuhne): If this gets removed for good, remove also 234 // TODO(skuhne): If this gets removed for good, remove also
244 // |SystemTray::user_items_| and the use of it. 235 // |SystemTray::user_items_| and the use of it.
245 return CommandLine::ForCurrentProcess()->HasSwitch(kAshEnableMultiUserTray); 236 return CommandLine::ForCurrentProcess()->HasSwitch(kAshEnableMultiUserTray);
246 #else 237 #else
247 return false; 238 return false;
248 #endif 239 #endif
249 } 240 }
250 241
(...skipping 12 matching lines...) Expand all
263 } 254 }
264 255
265 bool UseUsbChargerNotification() { 256 bool UseUsbChargerNotification() {
266 return !CommandLine::ForCurrentProcess()-> 257 return !CommandLine::ForCurrentProcess()->
267 HasSwitch(kAshDisableUsbChargerNotification); 258 HasSwitch(kAshDisableUsbChargerNotification);
268 } 259 }
269 #endif 260 #endif
270 261
271 } // namespace switches 262 } // namespace switches
272 } // namespace ash 263 } // namespace ash
OLDNEW
« no previous file with comments | « ash/ash_switches.h ('k') | ash/shelf/shelf_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698