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

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

Powered by Google App Engine
This is Rietveld 408576698