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

Side by Side Diff: ash/ash_switches.cc

Issue 135053006: Enable immersive fullscreen for non-browser windows by default (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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/wm/custom_frame_view_ash.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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 "ash-enable-alternate-caption-button"; 101 "ash-enable-alternate-caption-button";
102 102
103 // Always enable brightness control. Used by machines that don't report their 103 // Always enable brightness control. Used by machines that don't report their
104 // main monitor as internal. 104 // main monitor as internal.
105 const char kAshEnableBrightnessControl[] = "ash-enable-brightness-control"; 105 const char kAshEnableBrightnessControl[] = "ash-enable-brightness-control";
106 106
107 // Enables putting all windows into immersive fullscreen via <F4>. 107 // Enables putting all windows into immersive fullscreen via <F4>.
108 const char kAshEnableImmersiveFullscreenForAllWindows[] = 108 const char kAshEnableImmersiveFullscreenForAllWindows[] =
109 "ash-enable-immersive-all-windows"; 109 "ash-enable-immersive-all-windows";
110 110
111 // Enables putting only browser windows into immersive fullscreen via <F4>.
112 // <F4> puts all other windows into non-immersive fullscreen.
113 const char kAshEnableImmersiveFullscreenForBrowserOnly[] =
114 "ash-enable-immersive-browser-only";
115
111 #if defined(OS_CHROMEOS) 116 #if defined(OS_CHROMEOS)
112 // Enables the "full multi profile mode" - as it was in M-31. 117 // Enables the "full multi profile mode" - as it was in M-31.
113 const char kAshEnableFullMultiProfileMode[] = 118 const char kAshEnableFullMultiProfileMode[] =
114 "ash-enable-full-multi-profile-mode"; 119 "ash-enable-full-multi-profile-mode";
115 #endif 120 #endif
116 121
117 #if defined(OS_LINUX) 122 #if defined(OS_LINUX)
118 // Enable memory monitoring. 123 // Enable memory monitoring.
119 const char kAshEnableMemoryMonitor[] = "ash-enable-memory-monitor"; 124 const char kAshEnableMemoryMonitor[] = "ash-enable-memory-monitor";
120 #endif 125 #endif
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 bool UseAlternateShelfLayout() { 219 bool UseAlternateShelfLayout() {
215 return !CommandLine::ForCurrentProcess()-> 220 return !CommandLine::ForCurrentProcess()->
216 HasSwitch(kAshDisableAlternateShelfLayout); 221 HasSwitch(kAshDisableAlternateShelfLayout);
217 } 222 }
218 223
219 bool UseDragOffShelf() { 224 bool UseDragOffShelf() {
220 return !CommandLine::ForCurrentProcess()-> 225 return !CommandLine::ForCurrentProcess()->
221 HasSwitch(kAshDisableDragOffShelf); 226 HasSwitch(kAshDisableDragOffShelf);
222 } 227 }
223 228
229 bool UseImmersiveFullscreenForAllWindows() {
230 return !CommandLine::ForCurrentProcess()->HasSwitch(
231 kAshEnableImmersiveFullscreenForBrowserOnly);
232 }
233
224 bool ShowShelfAlignmentMenu() { 234 bool ShowShelfAlignmentMenu() {
225 return !CommandLine::ForCurrentProcess()-> 235 return !CommandLine::ForCurrentProcess()->
226 HasSwitch(kHideShelfAlignmentMenu); 236 HasSwitch(kHideShelfAlignmentMenu);
227 } 237 }
228 238
229 // Returns true if the full multi profile mode (M-31 version) is active. 239 // Returns true if the full multi profile mode (M-31 version) is active.
230 bool UseFullMultiProfileMode() { 240 bool UseFullMultiProfileMode() {
231 #if defined(OS_CHROMEOS) 241 #if defined(OS_CHROMEOS)
232 return CommandLine::ForCurrentProcess()-> 242 return CommandLine::ForCurrentProcess()->
233 HasSwitch(kAshEnableFullMultiProfileMode); 243 HasSwitch(kAshEnableFullMultiProfileMode);
(...skipping 27 matching lines...) Expand all
261 } 271 }
262 272
263 bool UseUsbChargerNotification() { 273 bool UseUsbChargerNotification() {
264 return !CommandLine::ForCurrentProcess()-> 274 return !CommandLine::ForCurrentProcess()->
265 HasSwitch(kAshDisableUsbChargerNotification); 275 HasSwitch(kAshDisableUsbChargerNotification);
266 } 276 }
267 #endif 277 #endif
268 278
269 } // namespace switches 279 } // namespace switches
270 } // namespace ash 280 } // namespace ash
OLDNEW
« no previous file with comments | « ash/ash_switches.h ('k') | ash/wm/custom_frame_view_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698