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

Side by Side Diff: ash/ash_switches.cc

Issue 55363004: Enables docked windows by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Enables docked windows by default Created 7 years, 1 month 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
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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 // - Increases the height of the maximized header. 81 // - Increases the height of the maximized header.
82 // - Removes the maximize button's help bubble. 82 // - Removes the maximize button's help bubble.
83 // - Switches snapping a window left/right to be always 50%. 83 // - Switches snapping a window left/right to be always 50%.
84 const char kAshEnableAlternateFrameCaptionButtonStyle[] = 84 const char kAshEnableAlternateFrameCaptionButtonStyle[] =
85 "ash-enable-alternate-caption-button"; 85 "ash-enable-alternate-caption-button";
86 86
87 // Always enable brightness control. Used by machines that don't report their 87 // Always enable brightness control. Used by machines that don't report their
88 // main monitor as internal. 88 // main monitor as internal.
89 const char kAshEnableBrightnessControl[] = "ash-enable-brightness-control"; 89 const char kAshEnableBrightnessControl[] = "ash-enable-brightness-control";
90 90
91 // Enable the dock area on a desktop. 91 // Disable ability to dock windows at the desktop edge.
92 const char kAshEnableDockedWindows[] = "ash-enable-docked-windows"; 92 const char kAshDisableDockedWindows[] = "ash-disable-docked-windows";
93 93
94 // Disable dragging items off the shelf to unpin them. 94 // Disable dragging items off the shelf to unpin them.
95 const char kAshDisableDragOffShelf[] = "ash-disable-drag-off-shelf"; 95 const char kAshDisableDragOffShelf[] = "ash-disable-drag-off-shelf";
96 96
97 #if defined(OS_CHROMEOS) 97 #if defined(OS_CHROMEOS)
98 // Enables the "full multi profile mode" - as it was in M-31. 98 // Enables the "full multi profile mode" - as it was in M-31.
99 const char kAshEnableFullMultiProfileMode[] = 99 const char kAshEnableFullMultiProfileMode[] =
100 "ash-enable-full-multi-profile-mode"; 100 "ash-enable-full-multi-profile-mode";
101 #endif 101 #endif
102 102
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 HasSwitch(kAshEnableFullMultiProfileMode); 221 HasSwitch(kAshEnableFullMultiProfileMode);
222 #else 222 #else
223 return false; 223 return false;
224 #endif 224 #endif
225 } 225 }
226 226
227 bool UseOverviewMode() { 227 bool UseOverviewMode() {
228 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableOverviewMode); 228 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableOverviewMode);
229 } 229 }
230 230
231 bool UseDockedWindows() {
232 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableDockedWindows);
233 }
234
231 #if defined(OS_CHROMEOS) 235 #if defined(OS_CHROMEOS)
232 bool ShowAudioDeviceMenu() { 236 bool ShowAudioDeviceMenu() {
233 return !CommandLine::ForCurrentProcess()-> 237 return !CommandLine::ForCurrentProcess()->
234 HasSwitch(kAshDisableAudioDeviceMenu); 238 HasSwitch(kAshDisableAudioDeviceMenu);
235 } 239 }
236 240
237 bool UseUsbChargerNotification() { 241 bool UseUsbChargerNotification() {
238 return !CommandLine::ForCurrentProcess()-> 242 return !CommandLine::ForCurrentProcess()->
239 HasSwitch(kAshDisableUsbChargerNotification); 243 HasSwitch(kAshDisableUsbChargerNotification);
240 } 244 }
241 #endif 245 #endif
242 246
243 } // namespace switches 247 } // namespace switches
244 } // namespace ash 248 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698