blob: 516fa606495ffcd09b6f4366ab1474d09190b524 [file] [log] [blame]
Torne (Richard Coles)58218062012-11-14 11:43:16 +00001// 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.
4
5#include "ash/ash_switches.h"
6
7namespace ash {
8namespace switches {
9
10// Enables an animated transition from the boot splash screen (Chrome logo on a
11// white background) to the login screen. Implies
12// |kAshCopyHostBackgroundAtBoot| and doesn't make much sense if used in
13// conjunction with |kDisableBootAnimation| (since the transition begins at the
14// same time as the white/grayscale login screen animation).
15const char kAshAnimateFromBootSplashScreen[] =
16 "ash-animate-from-boot-splash-screen";
17
18// Variation of boot animation that uses Tween::EASE_OUT_2.
19const char kAshBootAnimationFunction2[] = "ash-boot-animation-function2";
20
21// Variation of boot animation that uses Tween::EASE_OUT_3.
22const char kAshBootAnimationFunction3[] = "ash-boot-animation-function3";
23
24// Constrains the pointer movement within a root window on desktop.
25const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root";
26
27// Copies the host window's content to the system background layer at startup.
28// Can make boot slightly slower, but also hides an even-longer awkward period
29// where we display a white background if the login wallpaper takes a long time
30// to load.
31const char kAshCopyHostBackgroundAtBoot[] = "ash-copy-host-background-at-boot";
32
33// Enable keyboard shortcuts useful for debugging.
34const char kAshDebugShortcuts[] = "ash-debug-shortcuts";
35
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +010036// Disable auto window maximization logic.
37const char kAshDisableAutoMaximizing[] = "ash-disable-auto-maximizing";
38
Torne (Richard Coles)58218062012-11-14 11:43:16 +000039// Disable support for auto window placement.
40const char kAshDisableAutoWindowPlacement[] =
41 "ash-enable-auto-window-placement";
42
43// Disables boot animation v2, go back to v1.
44const char kAshDisableBootAnimation2[] = "ash-disable-boot-animation2";
45
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +000046// Disables the limitter to throttle how quickly a user
47// can change display settings.
48const char kAshDisableDisplayChangeLimiter[] =
49 "ash-disable-display-change-limiter";
50
51// Disables creating a launcher per display.
52const char kAshDisableLauncherPerDisplay[] = "ash-disable-launcher-per-display";
53
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +010054// Disable the new cras audio handler.
55const char kAshDisableNewAudioHandler[] = "ash-disable-new-audio-handler";
56
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +000057// If present new lock animations are enabled.
58const char kAshDisableNewLockAnimations[] = "ash-disable-new-lock-animations";
59
60// Disable new network handlers in the status area.
61const char kAshDisableNewNetworkStatusArea[] =
62 "ash-disable-new-network-status-area";
63
64// Disable the per application grouping version of the launcher.
65const char kAshDisablePerAppLauncher[] = "ash-disable-per-app-launcher";
66
67// Disables display rotation.
68const char kAshDisableDisplayRotation[] = "ash-disable-display-rotation";
69
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +010070// Disable immersive fullscreen mode, regardless of default setting.
71const char kAshDisableImmersiveFullscreen[] =
72 "ash-disable-immersive-fullscreen";
73
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +000074// Disables ui scaling.
75const char kAshDisableUIScaling[] = "ash-disable-ui-scaling";
Torne (Richard Coles)58218062012-11-14 11:43:16 +000076
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +010077// Extend the status tray volume item to allow the user to choose an audio
78// input and output device.
79const char kAshEnableAudioDeviceMenu[] =
80 "ash-enable-audio-device-menu";
81
Torne (Richard Coles)58218062012-11-14 11:43:16 +000082// Enable advanced gestures (e.g. for window management).
83const char kAshEnableAdvancedGestures[] = "ash-enable-advanced-gestures";
84
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +000085// Always enable brightness control. Used by machines that don't report their
86// main monitor as internal.
87const char kAshEnableBrightnessControl[] = "ash-enable-brightness-control";
88
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +010089// Enable immersive fullscreen mode, regardless of default setting.
90const char kAshEnableImmersiveFullscreen[] = "ash-enable-immersive-fullscreen";
91
Torne (Richard Coles)58218062012-11-14 11:43:16 +000092#if defined(OS_LINUX)
93// Enable memory monitoring.
94const char kAshEnableMemoryMonitor[] = "ash-enable-memory-monitor";
95#endif
96
97// Enables the Oak tree viewer.
98const char kAshEnableOak[] = "ash-enable-oak";
99
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100100// Enables "sticky" edges instead of "snap-to-edge"
101const char kAshEnableStickyEdges[] = "ash-enable-sticky-edges";
102
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000103// Enables showing the tray bubble by dragging on the shelf.
104const char kAshEnableTrayDragging[] = "ash-enable-tray-dragging";
105
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000106// Enable workspace switching via a three finger vertical scroll.
107const char kAshEnableWorkspaceScrubbing[] = "ash-enable-workspace-scrubbing";
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000108
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000109// Sets a window size, optional position, and optional scale factor.
110// "1024x768" creates a window of size 1024x768.
111// "100+200-1024x768" positions the window at 100,200.
112// "1024x768*2" sets the scale factor to 2 for a high DPI display.
113const char kAshHostWindowBounds[] = "ash-host-window-bounds";
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000114
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000115// Hides the small tab indicators at the top of the screen during immersive
116// fullscreen mode.
117const char kAshImmersiveHideTabIndicators[] =
118 "ash-immersive-hide-tab-indicators";
119
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000120// Specifies the layout mode and offsets for the secondary display for
121// testing. The format is "<t|r|b|l>,<offset>" where t=TOP, r=RIGHT,
122// b=BOTTOM and L=LEFT. For example, 'r,-100' means the secondary display
123// is positioned on the right with -100 offset. (above than primary)
124const char kAshSecondaryDisplayLayout[] = "ash-secondary-display-layout";
125
126// Enables the heads-up display for tracking touch points.
127const char kAshTouchHud[] = "ash-touch-hud";
128
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100129// Uses the 1st display in --ash-host-window-bounds as internal display.
130// This is for debugging on linux desktop.
131const char kAshUseFirstDisplayAsInternal[] =
132 "ash-use-first-display-as-internal";
133
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000134// (Most) Chrome OS hardware reports ACPI power button releases correctly.
135// Standard hardware reports releases immediately after presses. If set, we
136// lock the screen or shutdown the system immediately in response to a press
137// instead of displaying an interactive animation.
138const char kAuraLegacyPowerButton[] = "aura-legacy-power-button";
139
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000140#if defined(OS_WIN)
141// Force Ash to open its root window on the desktop, even on Windows 8 where
142// it would normally end up in metro.
143const char kForceAshToDesktop[] = "ash-force-desktop";
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000144#endif
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000145
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100146// Enables a mode which enforces all browser & application windows to be created
147// in maximized mode.
148const char kForcedMaximizeMode[] = "forced-maximize-mode";
149
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000150} // namespace switches
151} // namespace ash