[Ozone-Drm] Add support for async content protection
[chromium-blink-merge.git] / ash / ash_switches.cc
blob4ab34f80106e0902b596e90bd85ff65ddc01ba7b
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"
7 #include "base/command_line.h"
9 namespace ash {
10 namespace switches {
12 // Enables an animated transition from the boot splash screen (Chrome logo on a
13 // white background) to the login screen. Implies
14 // |kAshCopyHostBackgroundAtBoot| and doesn't make much sense if used in
15 // conjunction with |kDisableBootAnimation| (since the transition begins at the
16 // same time as the white/grayscale login screen animation).
17 const char kAshAnimateFromBootSplashScreen[] =
18 "ash-animate-from-boot-splash-screen";
20 // Constrains the pointer movement within a root window on desktop.
21 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root";
23 // Copies the host window's content to the system background layer at startup.
24 // Can make boot slightly slower, but also hides an even-longer awkward period
25 // where we display a white background if the login wallpaper takes a long time
26 // to load.
27 const char kAshCopyHostBackgroundAtBoot[] = "ash-copy-host-background-at-boot";
29 // Enable keyboard shortcuts useful for debugging.
30 const char kAshDebugShortcuts[] = "ash-debug-shortcuts";
32 // Disables LockLayoutManager used for LockScreenContainer, return back to
33 // WorkspaceLayoutManager.
34 const char kAshDisableLockLayoutManager[] = "ash-disable-lock-layout-manager";
36 // Disables the window backdrops normally used in maximize mode (TouchView).
37 const char kAshDisableMaximizeModeWindowBackdrop[] =
38 "ash-disable-maximize-mode-window-backdrop";
40 #if defined(OS_CHROMEOS)
41 // Disable the support for WebContents to lock the screen orientation.
42 const char kAshDisableScreenOrientationLock[] =
43 "ash-disable-screen-orientation-lock";
44 #endif
46 // Disable the Touch Exploration Mode. Touch Exploration Mode will no longer be
47 // turned on automatically when spoken feedback is enabled when this flag is
48 // set.
49 const char kAshDisableTouchExplorationMode[] =
50 "ash-disable-touch-exploration-mode";
52 #if defined(OS_CHROMEOS)
53 // Enables fullscreen app list if Ash is in maximize mode.
54 const char kAshEnableFullscreenAppList[] = "ash-enable-fullscreen-app-list";
56 // Enables key bindings to scroll magnified screen.
57 const char kAshEnableMagnifierKeyScroller[] =
58 "ash-enable-magnifier-key-scroller";
59 #endif
61 // Enables mirrored screen.
62 const char kAshEnableMirroredScreen[] = "ash-enable-mirrored-screen";
64 // Enables quick, non-cancellable locking of the screen when in maximize mode.
65 const char kAshEnablePowerButtonQuickLock[] =
66 "ash-enable-power-button-quick-lock";
68 // Specifies the screen rotation animation to use. Possible values are:
69 // "partial-rotation", "partial-rotation-slow", "full-rotation", and
70 // "full-rotation-slow". See ash/rotator/screen_rotation_animator.cc for more
71 // details.
72 const char kAshEnableScreenRotationAnimation[] =
73 "ash-screen-rotation-animation";
75 // Enables software based mirroring.
76 const char kAshEnableSoftwareMirroring[] = "ash-enable-software-mirroring";
78 // Enables touch view testing.
79 // TODO(skuhne): Remove TOGGLE_TOUCH_VIEW_TESTING accelerator once this
80 // flag is removed.
81 const char kAshEnableTouchViewTesting[] = "ash-enable-touch-view-testing";
83 // When this flag is set, system sounds will be played whether the
84 // ChromeVox is enabled or not.
85 const char kAshEnableSystemSounds[] = "ash-enable-system-sounds";
87 // Hides notifications that are irrelevant to Chrome OS device factory testing,
88 // such as battery level updates.
89 const char kAshHideNotificationsForFactory[] =
90 "ash-hide-notifications-for-factory";
92 // Sets a window size, optional position, and optional scale factor.
93 // "1024x768" creates a window of size 1024x768.
94 // "100+200-1024x768" positions the window at 100,200.
95 // "1024x768*2" sets the scale factor to 2 for a high DPI display.
96 const char kAshHostWindowBounds[] = "ash-host-window-bounds";
98 // Specifies the layout mode and offsets for the secondary display for
99 // testing. The format is "<t|r|b|l>,<offset>" where t=TOP, r=RIGHT,
100 // b=BOTTOM and L=LEFT. For example, 'r,-100' means the secondary display
101 // is positioned on the right with -100 offset. (above than primary)
102 const char kAshSecondaryDisplayLayout[] = "ash-secondary-display-layout";
104 // Enables the heads-up display for tracking touch points.
105 const char kAshTouchHud[] = "ash-touch-hud";
107 // Uses the 1st display in --ash-host-window-bounds as internal display.
108 // This is for debugging on linux desktop.
109 const char kAshUseFirstDisplayAsInternal[] =
110 "ash-use-first-display-as-internal";
112 // (Most) Chrome OS hardware reports ACPI power button releases correctly.
113 // Standard hardware reports releases immediately after presses. If set, we
114 // lock the screen or shutdown the system immediately in response to a press
115 // instead of displaying an interactive animation.
116 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button";
118 #if defined(OS_WIN)
119 // Force Ash to open its root window on the desktop, even on Windows 8 where
120 // it would normally end up in metro.
121 const char kForceAshToDesktop[] = "ash-force-desktop";
123 #endif
125 } // namespace switches
126 } // namespace ash