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