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
3 // found in the LICENSE file.
5 #include "ash/ash_switches.h"
9 #include "base/command_line.h"
14 // Dynamically choose window mode based on screen resolution, switching to
15 // compact mode on small screens and overlapping mode on large screens.
16 // TODO(jamescook): We probably don't want this if we end up with a simple
17 // variant of overlapping mode on small screens. See Shell::ComputeWindowMode.
18 const char kAuraDynamicWindowMode
[] = "aura-dynamic-window-mode";
20 // Force the "compact" window mode regardless of the value of kAuraWindowMode.
21 // This can be used to override a value set in chrome://flags.
22 // TODO(derat): Remove this once the normal mode is usable on all platforms.
23 const char kAuraForceCompactWindowMode
[] = "aura-force-compact-window-mode";
25 // Use Google-style dialog box frames.
26 const char kAuraGoogleDialogFrames
[] = "aura-google-dialog-frames";
28 // (Most) Chrome OS hardware reports ACPI power button releases correctly.
29 // Standard hardware reports releases immediately after presses. If set, we
30 // lock the screen or shutdown the system immediately in response to a press
31 // instead of displaying an interactive animation.
32 const char kAuraLegacyPowerButton
[] = "aura-legacy-power-button";
34 // Avoid drawing drop shadows under windows.
35 const char kAuraNoShadows
[] = "aura-no-shadows";
37 // Use Aura-style translucent window frame.
38 const char kAuraTranslucentFrames
[] = "aura-translucent-frames";
40 // If present animations are disabled.
41 const char kAuraWindowAnimationsDisabled
[] = "aura-window-animations-disabled";
43 // Use a custom window style, e.g. --aura-window-mode=compact.
44 // When this flag is not passed we default to "overlapping" mode.
45 const char kAuraWindowMode
[] = "aura-window-mode";
47 // Show only a single maximized window, like traditional non-Aura builds.
48 // Useful for low-resolution screens, such as on laptops.
49 const char kAuraWindowModeCompact
[] = "compact";
51 // Smart window management with workspace manager that automatically lays out
53 const char kAuraWindowModeManaged
[] = "managed";
55 // Traditional window management with multiple draggable windows.
56 const char kAuraWindowModeOverlapping
[] = "overlapping";
58 // Use Aura to manage windows of type WINDOW_TYPE_PANEL.
59 const char kAuraPanelManager
[] = "aura-panels";
61 } // namespace switches