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

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: Merge with master. 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/extended_desktop_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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 #if defined(OS_CHROMEOS) 46 #if defined(OS_CHROMEOS)
47 // Disable the status tray volume menu for allowing the user to choose an audio 47 // Disable the status tray volume menu for allowing the user to choose an audio
48 // input and output device. 48 // input and output device.
49 const char kAshDisableAudioDeviceMenu[] = 49 const char kAshDisableAudioDeviceMenu[] =
50 "ash-disable-audio-device-menu"; 50 "ash-disable-audio-device-menu";
51 #endif 51 #endif
52 52
53 // Disable ability to dock windows at the desktop edge. 53 // Disable ability to dock windows at the desktop edge.
54 const char kAshDisableDockedWindows[] = "ash-disable-docked-windows"; 54 const char kAshDisableDockedWindows[] = "ash-disable-docked-windows";
55 55
56 // Disables overview mode for window switching.
57 const char kAshDisableOverviewMode[] = "ash-disable-overview-mode";
58
59 // Use alternate visual style for the caption buttons (minimize, maximize, 56 // Use alternate visual style for the caption buttons (minimize, maximize,
60 // restore, close). The alternate style: 57 // restore, close). The alternate style:
61 // - Adds a dedicated button for minimize. 58 // - Adds a dedicated button for minimize.
62 // - Removes the maximize button's help bubble. 59 // - Removes the maximize button's help bubble.
63 const char kAshEnableAlternateFrameCaptionButtonStyle[] = 60 const char kAshEnableAlternateFrameCaptionButtonStyle[] =
64 "ash-enable-alternate-caption-button"; 61 "ash-enable-alternate-caption-button";
65 62
66 // Always enable brightness control. Used by machines that don't report their 63 // Always enable brightness control. Used by machines that don't report their
67 // main monitor as internal. 64 // main monitor as internal.
68 const char kAshEnableBrightnessControl[] = "ash-enable-brightness-control"; 65 const char kAshEnableBrightnessControl[] = "ash-enable-brightness-control";
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 bool UseAlternateFrameCaptionButtonStyle() { 138 bool UseAlternateFrameCaptionButtonStyle() {
142 return !CommandLine::ForCurrentProcess()-> 139 return !CommandLine::ForCurrentProcess()->
143 HasSwitch(kAshDisableAlternateFrameCaptionButtonStyle); 140 HasSwitch(kAshDisableAlternateFrameCaptionButtonStyle);
144 } 141 }
145 142
146 bool UseImmersiveFullscreenForAllWindows() { 143 bool UseImmersiveFullscreenForAllWindows() {
147 return !CommandLine::ForCurrentProcess()->HasSwitch( 144 return !CommandLine::ForCurrentProcess()->HasSwitch(
148 kAshEnableImmersiveFullscreenForBrowserOnly); 145 kAshEnableImmersiveFullscreenForBrowserOnly);
149 } 146 }
150 147
151 bool UseOverviewMode() {
152 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableOverviewMode);
153 }
154
155 bool UseDockedWindows() { 148 bool UseDockedWindows() {
156 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableDockedWindows); 149 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableDockedWindows);
157 } 150 }
158 151
159 } // namespace switches 152 } // namespace switches
160 } // namespace ash 153 } // namespace ash
OLDNEW
« no previous file with comments | « ash/ash_switches.h ('k') | ash/extended_desktop_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698