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

Side by Side Diff: ash/ash_switches.cc

Issue 25536010: Make packaged apps use AppNonClientFrameViewAsh when maximized (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 177
178 // Flags explicitly show or hide the shelf alignment menu. 178 // Flags explicitly show or hide the shelf alignment menu.
179 const char kShowShelfAlignmentMenu[] = "show-launcher-alignment-menu"; 179 const char kShowShelfAlignmentMenu[] = "show-launcher-alignment-menu";
180 const char kHideShelfAlignmentMenu[] = "hide-launcher-alignment-menu"; 180 const char kHideShelfAlignmentMenu[] = "hide-launcher-alignment-menu";
181 181
182 // Uses the 1st display in --ash-host-window-bounds as internal display. 182 // Uses the 1st display in --ash-host-window-bounds as internal display.
183 // This is for debugging on linux desktop. 183 // This is for debugging on linux desktop.
184 const char kAshUseFirstDisplayAsInternal[] = 184 const char kAshUseFirstDisplayAsInternal[] =
185 "ash-use-first-display-as-internal"; 185 "ash-use-first-display-as-internal";
186 186
187 // Use the same window frame for hosted and packaged apps.
188 const char kAshUseSameFrameForV1AndV2Apps[] =
189 "ash-use-same-frame-for-v1-and-v2-apps";
190
187 // (Most) Chrome OS hardware reports ACPI power button releases correctly. 191 // (Most) Chrome OS hardware reports ACPI power button releases correctly.
188 // Standard hardware reports releases immediately after presses. If set, we 192 // Standard hardware reports releases immediately after presses. If set, we
189 // lock the screen or shutdown the system immediately in response to a press 193 // lock the screen or shutdown the system immediately in response to a press
190 // instead of displaying an interactive animation. 194 // instead of displaying an interactive animation.
191 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button"; 195 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button";
192 196
193 #if defined(OS_WIN) 197 #if defined(OS_WIN)
194 // Force Ash to open its root window on the desktop, even on Windows 8 where 198 // Force Ash to open its root window on the desktop, even on Windows 8 where
195 // it would normally end up in metro. 199 // it would normally end up in metro.
196 const char kForceAshToDesktop[] = "ash-force-desktop"; 200 const char kForceAshToDesktop[] = "ash-force-desktop";
(...skipping 16 matching lines...) Expand all
213 bool UseAlternateShelfLayout() { 217 bool UseAlternateShelfLayout() {
214 return !CommandLine::ForCurrentProcess()-> 218 return !CommandLine::ForCurrentProcess()->
215 HasSwitch(kAshDisableAlternateShelfLayout); 219 HasSwitch(kAshDisableAlternateShelfLayout);
216 } 220 }
217 221
218 bool UseDragOffShelf() { 222 bool UseDragOffShelf() {
219 return !CommandLine::ForCurrentProcess()-> 223 return !CommandLine::ForCurrentProcess()->
220 HasSwitch(kAshDisableDragOffShelf); 224 HasSwitch(kAshDisableDragOffShelf);
221 } 225 }
222 226
227 bool UseSameFrameForV1AndV2Apps() {
228 return CommandLine::ForCurrentProcess()->
229 HasSwitch(kAshUseSameFrameForV1AndV2Apps);
230 }
231
223 bool ShowShelfAlignmentMenu() { 232 bool ShowShelfAlignmentMenu() {
224 return !CommandLine::ForCurrentProcess()-> 233 return !CommandLine::ForCurrentProcess()->
225 HasSwitch(kHideShelfAlignmentMenu); 234 HasSwitch(kHideShelfAlignmentMenu);
226 } 235 }
227 236
228 // Returns true if the MultiProfile shelf menu should be shown. 237 // Returns true if the MultiProfile shelf menu should be shown.
229 bool ShowMultiProfileShelfMenu() { 238 bool ShowMultiProfileShelfMenu() {
230 #if defined(OS_CHROMEOS) 239 #if defined(OS_CHROMEOS)
231 return CommandLine::ForCurrentProcess()-> 240 return CommandLine::ForCurrentProcess()->
232 HasSwitch(kAshEnableMultiProfileShelfMenu); 241 HasSwitch(kAshEnableMultiProfileShelfMenu);
233 #else 242 #else
234 return false; 243 return false;
235 #endif 244 #endif
236 } 245 }
237 246
238 #if defined(OS_CHROMEOS) 247 #if defined(OS_CHROMEOS)
239 bool ShowAudioDeviceMenu() { 248 bool ShowAudioDeviceMenu() {
240 return !CommandLine::ForCurrentProcess()-> 249 return !CommandLine::ForCurrentProcess()->
241 HasSwitch(kAshDisableAudioDeviceMenu); 250 HasSwitch(kAshDisableAudioDeviceMenu);
242 } 251 }
243 252
244 bool UseUsbChargerNotification() { 253 bool UseUsbChargerNotification() {
245 return !CommandLine::ForCurrentProcess()-> 254 return !CommandLine::ForCurrentProcess()->
246 HasSwitch(kAshDisableUsbChargerNotification); 255 HasSwitch(kAshDisableUsbChargerNotification);
247 } 256 }
248 #endif 257 #endif
249 258
250 } // namespace switches 259 } // namespace switches
251 } // namespace ash 260 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698