OLD | NEW |
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 <string> | 7 #include <string> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 | 10 |
11 namespace ash { | 11 namespace ash { |
12 namespace switches { | 12 namespace switches { |
13 | 13 |
14 // Use the in-progress uber system tray. | 14 // Use the in-progress uber system tray. |
15 const char kAshUberTray[] = "ash-uber-tray"; | 15 const char kAshUberTray[] = "ash-uber-tray"; |
16 | 16 |
17 // Force the "compact" window mode regardless of the value of kAuraWindowMode. | 17 // Force the "compact" window mode regardless of the value of kAuraWindowMode. |
18 // This can be used to override a value set in chrome://flags. | 18 // This can be used to override a value set in chrome://flags. |
| 19 // Also implies fully-opaque windows for performance. |
19 // TODO(derat): Remove this once the normal mode is usable on all platforms. | 20 // TODO(derat): Remove this once the normal mode is usable on all platforms. |
20 const char kAuraForceCompactWindowMode[] = "aura-force-compact-window-mode"; | 21 const char kAuraForceCompactWindowMode[] = "aura-force-compact-window-mode"; |
21 | 22 |
22 // Use Google-style dialog box frames. | 23 // Use Google-style dialog box frames. |
23 const char kAuraGoogleDialogFrames[] = "aura-google-dialog-frames"; | 24 const char kAuraGoogleDialogFrames[] = "aura-google-dialog-frames"; |
24 | 25 |
25 // (Most) Chrome OS hardware reports ACPI power button releases correctly. | 26 // (Most) Chrome OS hardware reports ACPI power button releases correctly. |
26 // Standard hardware reports releases immediately after presses. If set, we | 27 // Standard hardware reports releases immediately after presses. If set, we |
27 // lock the screen or shutdown the system immediately in response to a press | 28 // lock the screen or shutdown the system immediately in response to a press |
28 // instead of displaying an interactive animation. | 29 // instead of displaying an interactive animation. |
29 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button"; | 30 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button"; |
30 | 31 |
31 // Avoid drawing drop shadows under windows. | 32 // Avoid drawing drop shadows under windows. |
32 const char kAuraNoShadows[] = "aura-no-shadows"; | 33 const char kAuraNoShadows[] = "aura-no-shadows"; |
33 | 34 |
34 // Use Aura-style translucent window frame. | |
35 const char kAuraTranslucentFrames[] = "aura-translucent-frames"; | |
36 | |
37 // If present animations are disabled. | 35 // If present animations are disabled. |
38 const char kAuraWindowAnimationsDisabled[] = "aura-window-animations-disabled"; | 36 const char kAuraWindowAnimationsDisabled[] = "aura-window-animations-disabled"; |
39 | 37 |
40 // Use a custom window style, e.g. --aura-window-mode=compact. | 38 // Use a custom window style, e.g. --aura-window-mode=compact. |
41 // When this flag is not passed we default to "overlapping" mode. | 39 // When this flag is not passed we default to "overlapping" mode. |
42 const char kAuraWindowMode[] = "aura-window-mode"; | 40 const char kAuraWindowMode[] = "aura-window-mode"; |
43 | 41 |
44 // Show only a single maximized window, like traditional non-Aura builds. | 42 // Show only a single maximized window, like traditional non-Aura builds. |
45 // Useful for low-resolution screens, such as on laptops. | 43 // Useful for low-resolution screens, such as on laptops. |
46 const char kAuraWindowModeCompact[] = "compact"; | 44 const char kAuraWindowModeCompact[] = "compact"; |
47 | 45 |
48 // Smart window management with workspace manager that automatically lays out | 46 // Smart window management with workspace manager that automatically lays out |
49 // windows. | 47 // windows. |
50 const char kAuraWindowModeManaged[] = "managed"; | 48 const char kAuraWindowModeManaged[] = "managed"; |
51 | 49 |
52 // Use Aura to manage windows of type WINDOW_TYPE_PANEL. | 50 // Use Aura to manage windows of type WINDOW_TYPE_PANEL. |
53 const char kAuraPanelManager[] = "aura-panels"; | 51 const char kAuraPanelManager[] = "aura-panels"; |
54 | 52 |
55 } // namespace switches | 53 } // namespace switches |
56 } // namespace ash | 54 } // namespace ash |
OLD | NEW |