blob: 72cfd9dd943d43ed12df584b0b9b219a803d7d05 [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
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +010051// Disable the new cras audio handler.
52const char kAshDisableNewAudioHandler[] = "ash-disable-new-audio-handler";
53
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +000054// If present new lock animations are enabled.
55const char kAshDisableNewLockAnimations[] = "ash-disable-new-lock-animations";
56
57// Disable new network handlers in the status area.
58const char kAshDisableNewNetworkStatusArea[] =
59 "ash-disable-new-network-status-area";
60
61// Disable the per application grouping version of the launcher.
62const char kAshDisablePerAppLauncher[] = "ash-disable-per-app-launcher";
63
64// Disables display rotation.
65const char kAshDisableDisplayRotation[] = "ash-disable-display-rotation";
66
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +010067// Disable immersive fullscreen mode, regardless of default setting.
68const char kAshDisableImmersiveFullscreen[] =
69 "ash-disable-immersive-fullscreen";
70
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +000071// Disables ui scaling.
72const char kAshDisableUIScaling[] = "ash-disable-ui-scaling";
Torne (Richard Coles)58218062012-11-14 11:43:16 +000073
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +010074// Extend the status tray volume item to allow the user to choose an audio
75// input and output device.
76const char kAshEnableAudioDeviceMenu[] =
77 "ash-enable-audio-device-menu";
78
Torne (Richard Coles)58218062012-11-14 11:43:16 +000079// Enable advanced gestures (e.g. for window management).
80const char kAshEnableAdvancedGestures[] = "ash-enable-advanced-gestures";
81
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +000082// Always enable brightness control. Used by machines that don't report their
83// main monitor as internal.
84const char kAshEnableBrightnessControl[] = "ash-enable-brightness-control";
85
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +010086// Enable immersive fullscreen mode, regardless of default setting.
87const char kAshEnableImmersiveFullscreen[] = "ash-enable-immersive-fullscreen";
88
Torne (Richard Coles)58218062012-11-14 11:43:16 +000089#if defined(OS_LINUX)
90// Enable memory monitoring.
91const char kAshEnableMemoryMonitor[] = "ash-enable-memory-monitor";
92#endif
93
94// Enables the Oak tree viewer.
95const char kAshEnableOak[] = "ash-enable-oak";
96
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +010097// Enables "sticky" edges instead of "snap-to-edge"
98const char kAshEnableStickyEdges[] = "ash-enable-sticky-edges";
99
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000100// Enables showing the tray bubble by dragging on the shelf.
101const char kAshEnableTrayDragging[] = "ash-enable-tray-dragging";
102
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000103// Enable workspace switching via a three finger vertical scroll.
104const char kAshEnableWorkspaceScrubbing[] = "ash-enable-workspace-scrubbing";
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000105
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000106// Sets a window size, optional position, and optional scale factor.
107// "1024x768" creates a window of size 1024x768.
108// "100+200-1024x768" positions the window at 100,200.
109// "1024x768*2" sets the scale factor to 2 for a high DPI display.
110const char kAshHostWindowBounds[] = "ash-host-window-bounds";
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000111
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000112// Hides the small tab indicators at the top of the screen during immersive
113// fullscreen mode.
114const char kAshImmersiveHideTabIndicators[] =
115 "ash-immersive-hide-tab-indicators";
116
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000117// Specifies the layout mode and offsets for the secondary display for
118// testing. The format is "<t|r|b|l>,<offset>" where t=TOP, r=RIGHT,
119// b=BOTTOM and L=LEFT. For example, 'r,-100' means the secondary display
120// is positioned on the right with -100 offset. (above than primary)
121const char kAshSecondaryDisplayLayout[] = "ash-secondary-display-layout";
122
123// Enables the heads-up display for tracking touch points.
124const char kAshTouchHud[] = "ash-touch-hud";
125
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100126// Uses the 1st display in --ash-host-window-bounds as internal display.
127// This is for debugging on linux desktop.
128const char kAshUseFirstDisplayAsInternal[] =
129 "ash-use-first-display-as-internal";
130
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000131// (Most) Chrome OS hardware reports ACPI power button releases correctly.
132// Standard hardware reports releases immediately after presses. If set, we
133// lock the screen or shutdown the system immediately in response to a press
134// instead of displaying an interactive animation.
135const char kAuraLegacyPowerButton[] = "aura-legacy-power-button";
136
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000137#if defined(OS_WIN)
138// Force Ash to open its root window on the desktop, even on Windows 8 where
139// it would normally end up in metro.
140const char kForceAshToDesktop[] = "ash-force-desktop";
Torne (Richard Coles)b2df76e2013-05-13 16:52:09 +0100141
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000142#endif
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000143
Torne (Richard Coles)b2df76e2013-05-13 16:52:09 +0100144// Allow items to be dragged from the app launcher list into the launcher.
145const char kAshDragAndDropAppListToLauncher[] =
146 "ash-drag-and-drop-applist-to-launcher";
147
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100148// Enables a mode which enforces all browser & application windows to be created
149// in maximized mode.
150const char kForcedMaximizeMode[] = "forced-maximize-mode";
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000151} // namespace switches
152} // namespace ash