Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(311)

Side by Side Diff: ash/ash_switches.cc

Issue 2074213002: mash: Move ash_switches.* to ash/common; cleanup DEPS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix broken relative include. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/ash_switches.h ('k') | ash/audio/sounds.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 #include "ash/ash_switches.h"
6
7 #include "base/command_line.h"
8 #include "base/sys_info.h"
9
10 namespace ash {
11 namespace switches {
12
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";
20
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";
26
27 // Enable keyboard shortcuts useful for debugging.
28 const char kAshDebugShortcuts[] = "ash-debug-shortcuts";
29
30 // Disables the window backdrops normally used in maximize mode (TouchView).
31 const char kAshDisableMaximizeModeWindowBackdrop[] =
32 "ash-disable-maximize-mode-window-backdrop";
33
34 #if defined(OS_CHROMEOS)
35 // Disable the support for WebContents to lock the screen orientation.
36 const char kAshDisableScreenOrientationLock[] =
37 "ash-disable-screen-orientation-lock";
38 #endif
39
40 // Disable the Touch Exploration Mode. Touch Exploration Mode will no longer be
41 // turned on automatically when spoken feedback is enabled when this flag is
42 // set.
43 const char kAshDisableTouchExplorationMode[] =
44 "ash-disable-touch-exploration-mode";
45
46 #if defined(OS_CHROMEOS)
47 // Enables fullscreen app list if Ash is in maximize mode.
48 const char kAshEnableFullscreenAppList[] = "ash-enable-fullscreen-app-list";
49
50 // Enables key bindings to scroll magnified screen.
51 const char kAshEnableMagnifierKeyScroller[] =
52 "ash-enable-magnifier-key-scroller";
53
54 // Enables unified desktop mode.
55 const char kAshEnableUnifiedDesktop[] = "ash-enable-unified-desktop";
56
57 // Enables the observation of accelerometer events to enter touch-view mode.
58 const char kAshEnableTouchView[] = "enable-touchview";
59 #endif
60
61 // Enables mirrored screen.
62 const char kAshEnableMirroredScreen[] = "ash-enable-mirrored-screen";
63
64 // Enables / disables a stable order between overview sessions, independent of
65 // the MRU order which attempts to preserve relative window positions.
66 const char kAshDisableStableOverviewOrder[] =
67 "ash-disable-stable-overview-order";
68 const char kAshEnableStableOverviewOrder[] = "ash-enable-stable-overview-order";
69
70 // Enables software based mirroring.
71 const char kAshEnableSoftwareMirroring[] = "ash-enable-software-mirroring";
72
73 // Enables touch view testing.
74 // TODO(skuhne): Remove TOGGLE_TOUCH_VIEW_TESTING accelerator once this
75 // flag is removed.
76 const char kAshEnableTouchViewTesting[] = "ash-enable-touch-view-testing";
77
78 // When this flag is set, system sounds will not be played.
79 const char kAshDisableSystemSounds[] = "ash-disable-system-sounds";
80
81 // When this flag is set, system sounds will be played whether the
82 // ChromeVox is enabled or not.
83 const char kAshEnableSystemSounds[] = "ash-enable-system-sounds";
84
85 // Hides notifications that are irrelevant to Chrome OS device factory testing,
86 // such as battery level updates.
87 const char kAshHideNotificationsForFactory[] =
88 "ash-hide-notifications-for-factory";
89
90 // Sets a window size, optional position, and optional scale factor.
91 // "1024x768" creates a window of size 1024x768.
92 // "100+200-1024x768" positions the window at 100,200.
93 // "1024x768*2" sets the scale factor to 2 for a high DPI display.
94 // "800,0+800-800x800" for two displays at 800x800 resolution.
95 // "800,0+800-800x800,0+1600-800x800" for three displays at 800x800 resolution.
96 const char kAshHostWindowBounds[] = "ash-host-window-bounds";
97
98 // Specifies if Material Design elements in Chrome OS system UI are enabled.
99 // Can be disabled / enabled / experimental allowing to launch incrementally.
100 const char kAshMaterialDesign[] = "ash-md";
101 const char kAshMaterialDesignDisabled[] = "disabled";
102 const char kAshMaterialDesignEnabled[] = "enabled";
103 const char kAshMaterialDesignExperimental[] = "experimental";
104
105 // Specifies the layout mode and offsets for the secondary display for
106 // testing. The format is "<t|r|b|l>,<offset>" where t=TOP, r=RIGHT,
107 // b=BOTTOM and L=LEFT. For example, 'r,-100' means the secondary display
108 // is positioned on the right with -100 offset. (above than primary)
109 const char kAshSecondaryDisplayLayout[] = "ash-secondary-display-layout";
110
111 // Enables the heads-up display for tracking touch points.
112 const char kAshTouchHud[] = "ash-touch-hud";
113
114 // Uses the 1st display in --ash-host-window-bounds as internal display.
115 // This is for debugging on linux desktop.
116 const char kAshUseFirstDisplayAsInternal[] =
117 "ash-use-first-display-as-internal";
118
119 // (Most) Chrome OS hardware reports ACPI power button releases correctly.
120 // Standard hardware reports releases immediately after presses. If set, we
121 // lock the screen or shutdown the system immediately in response to a press
122 // instead of displaying an interactive animation.
123 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button";
124
125 #if defined(OS_WIN)
126 // Force Ash to open its root window on the desktop, even on Windows 8 where
127 // it would normally end up in metro.
128 const char kForceAshToDesktop[] = "ash-force-desktop";
129
130 #endif
131
132 #if defined(OS_CHROMEOS)
133 // Constrains the pointer movement within a root window on desktop.
134 bool ConstrainPointerToRoot() {
135 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root";
136
137 return base::SysInfo::IsRunningOnChromeOS() ||
138 base::CommandLine::ForCurrentProcess()->HasSwitch(
139 kAshConstrainPointerToRoot);
140 }
141
142 #endif
143
144 } // namespace switches
145 } // namespace ash
OLDNEW
« no previous file with comments | « ash/ash_switches.h ('k') | ash/audio/sounds.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698