Added SwapInterval to the GPU command buffer
[chromium-blink-merge.git] / chromeos / chromeos_switches.cc
bloba476057201560866dab07ee976d821f0e5984de2
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 "chromeos/chromeos_switches.h"
7 namespace chromeos {
8 namespace switches {
10 // Path for app's OEM manifest file.
11 const char kAppOemManifestFile[] = "app-mode-oem-manifest";
13 // When wallpaper boot animation is not disabled this switch
14 // is used to override OOBE/sign in WebUI init type.
15 // Possible values: parallel|postpone. Default: parallel.
16 const char kAshWebUIInit[] = "ash-webui-init";
18 // Specifies the URL of the consumer device management backend.
19 const char kConsumerDeviceManagementUrl[] = "consumer-device-management-url";
21 // Forces the stub implementation of dbus clients.
22 const char kDbusStub[] = "dbus-stub";
24 // Comma-spearated list of dbus clients that should be unstubbed.
25 // See chromeos/dbus/dbus_client_bundle.cc for the names of the dbus clients.
26 const char kDbusUnstubClients[] = "dbus-unstub-clients";
28 // Time before a machine at OOBE is considered derelict.
29 const char kDerelictDetectionTimeout[] = "derelict-detection-timeout";
31 // Time before a derelict machines starts demo mode.
32 const char kDerelictIdleTimeout[] = "derelict-idle-timeout";
34 // Disables wallpaper boot animation (except of OOBE case).
35 const char kDisableBootAnimation[] = "disable-boot-animation";
37 // Disables the ChromeOS demo.
38 const char kDisableDemoMode[] = "disable-demo-mode";
40 // Disable HID-detection OOBE screen.
41 const char kDisableHIDDetectionOnOOBE[] = "disable-hid-detection-on-oobe";
43 // Avoid doing expensive animations upon login.
44 const char kDisableLoginAnimations[] = "disable-login-animations";
46 // Disable login/lock UI (user pods) scrolling into view on JS side when virtual
47 // keyboard is shown.
48 const char kDisableLoginScrollIntoView[] = "disable-login-scroll-into-view";
50 // Disable new channel switcher UI.
51 const char kDisableNewChannelSwitcherUI[] = "disable-new-channel-switcher-ui";
53 // Disables new Kiosk UI when kiosk apps are represented as user pods.
54 const char kDisableNewKioskUI[] = "disable-new-kiosk-ui";
56 // Disables the new File System Provider API based ZIP unpacker.
57 const char kDisableNewZIPUnpacker[] = "disable-new-zip-unpacker";
59 // Disable Office Editing for Docs, Sheets & Slides component app so handlers
60 // won't be registered, making it possible to install another version for
61 // testing.
62 const char kDisableOfficeEditingComponentApp[] =
63 "disable-office-editing-component-extension";
65 // Disables rollback option on reset screen.
66 const char kDisableRollbackOption[] = "disable-rollback-option";
68 // Disables volume adjust sound.
69 const char kDisableVolumeAdjustSound[] = "disable-volume-adjust-sound";
71 // Disables notifications about captive portals in session.
72 const char kDisableNetworkPortalNotification[] =
73 "disable-network-portal-notification";
75 // Enables switching between different cellular carriers from the UI.
76 const char kEnableCarrierSwitching[] = "enable-carrier-switching";
78 // Enables cloud backup feature.
79 const char kEnableCloudBackup[] = "enable-cloud-backup";
81 // Enables consumer management, which allows user to enroll, remotely lock and
82 // locate the device.
83 const char kEnableConsumerManagement[] = "enable-consumer-management";
85 // If this switch is set, the device cannot be remotely disabled by its owner.
86 const char kDisableDeviceDisabling[] = "disable-device-disabling";
88 // If this switch is set, Chrome OS login screen uses |EmbeddedSignin| endpoint
89 // of GAIA.
90 const char kEnableEmbeddedSignin[] = "enable-embedded-signin";
92 // If this switch is set, the new Korean IME will be available in
93 // chrome://settings/languages.
94 const char kEnableNewKoreanIme[] = "enable-new-korean-ime";
96 // If this switch is set, the input view keyboard will be in materia design.
97 const char kEnableNewQPInputView[] = "enable-new-qp-input-view";
99 // If this switch is set, the US keyboard input method will provide suggestions
100 // as typing on physical keyboard.
101 const char kEnablePhysicalKeyboardAutocorrect[] =
102 "enable-physical-keyboard-autocorrect";
104 // Enabled sharing assets for installed default apps.
105 const char kEnableExtensionAssetsSharing[] = "enable-extension-assets-sharing";
107 // Enables notifications about captive portals in session.
108 const char kEnableNetworkPortalNotification[] =
109 "enable-network-portal-notification";
111 // Enables touchpad three-finger-click as middle button.
112 const char kEnableTouchpadThreeFingerClick[]
113 = "enable-touchpad-three-finger-click";
115 // Enables using screenshots in tests and seets mode.
116 const char kEnableScreenshotTestingWithMode[] =
117 "enable-screenshot-testing-with-mode";
119 // Enable Kiosk mode for ChromeOS. Note this switch refers to retail mode rather
120 // than the kiosk app mode.
121 const char kEnableKioskMode[] = "enable-kiosk-mode";
123 // Enables request of tablet site (via user agent override).
124 const char kEnableRequestTabletSite[] = "enable-request-tablet-site";
126 // Whether to enable forced enterprise re-enrollment.
127 const char kEnterpriseEnableForcedReEnrollment[] =
128 "enterprise-enable-forced-re-enrollment";
130 // Power of the power-of-2 initial modulus that will be used by the
131 // auto-enrollment client. E.g. "4" means the modulus will be 2^4 = 16.
132 const char kEnterpriseEnrollmentInitialModulus[] =
133 "enterprise-enrollment-initial-modulus";
135 // Power of the power-of-2 maximum modulus that will be used by the
136 // auto-enrollment client.
137 const char kEnterpriseEnrollmentModulusLimit[] =
138 "enterprise-enrollment-modulus-limit";
140 // Don't create robot account on enrollment. Used when testing device
141 // enrollment against YAPS or the Python test server.
142 const char kEnterpriseEnrollmentSkipRobotAuth[] =
143 "enterprise-enrollment-skip-robot-auth";
145 // Enables the chromecast support for video player app.
146 const char kEnableVideoPlayerChromecastSupport[] =
147 "enable-video-player-chromecast-support";
149 // Passed to Chrome the first time that it's run after the system boots.
150 // Not passed on restart after sign out.
151 const char kFirstExecAfterBoot[] = "first-exec-after-boot";
153 // Usually in browser tests the usual login manager bringup is skipped so that
154 // tests can change how it's brought up. This flag disables that.
155 const char kForceLoginManagerInTests[] = "force-login-manager-in-tests";
157 // Indicates that the browser is in "browse without sign-in" (Guest session)
158 // mode. Should completely disable extensions, sync and bookmarks.
159 const char kGuestSession[] = "bwsi";
161 // If true, the Chromebook has a Chrome OS keyboard. Don't use the flag for
162 // Chromeboxes.
163 const char kHasChromeOSKeyboard[] = "has-chromeos-keyboard";
165 // If true, the Chromebook has a keyboard with a diamond key.
166 const char kHasChromeOSDiamondKey[] = "has-chromeos-diamond-key";
168 // Defines user homedir. This defaults to primary user homedir.
169 const char kHomedir[] = "homedir";
171 // With this switch, start remora OOBE with the pairing screen.
172 const char kHostPairingOobe[] = "host-pairing-oobe";
174 // If true, profile selection in UserManager will always return active user's
175 // profile.
176 // TODO(nkostlyev): http://crbug.com/364604 - Get rid of this switch after we
177 // turn on multi-profile feature on ChromeOS.
178 const char kIgnoreUserProfileMappingForTests[] =
179 "ignore-user-profile-mapping-for-tests";
181 // Path for the screensaver used in Kiosk mode
182 const char kKioskModeScreensaverPath[] = "kiosk-mode-screensaver-path";
184 // Enables Chrome-as-a-login-manager behavior.
185 const char kLoginManager[] = "login-manager";
187 // Specifies the profile to use once a chromeos user is logged in.
188 // This parameter is ignored if user goes through login screen since user_id
189 // hash defines which profile directory to use.
190 // In case of browser restart within active session this parameter is used
191 // to pass user_id hash for primary user.
192 const char kLoginProfile[] = "login-profile";
194 // Specifies the user which is already logged in.
195 const char kLoginUser[] = "login-user";
197 // Enables natural scroll by default.
198 const char kNaturalScrollDefault[] = "enable-natural-scroll-default";
200 // Skips all other OOBE pages after user login.
201 const char kOobeSkipPostLogin[] = "oobe-skip-postlogin";
203 // Disable GAIA services such as enrollment and OAuth session restore. Used by
204 // 'fake' telemetry login.
205 const char kDisableGaiaServices[] = "disable-gaia-services";
207 // Interval at which we check for total time on OOBE.
208 const char kOobeTimerInterval[] = "oobe-timer-interval";
210 // Indicates that a guest session has been started before OOBE completion.
211 const char kOobeGuestSession[] = "oobe-guest-session";
213 // Specifies power stub behavior:
214 // 'cycle=2' - Cycles power states every 2 seconds.
215 // See FakeDBusThreadManager::ParsePowerCommandLineSwitch for full details.
216 const char kPowerStub[] = "power-stub";
218 // Overrides network stub behavior. By default, ethernet, wifi and vpn are
219 // enabled, and transitions occur instantaneously. Multiple options can be
220 // comma separated (no spaces). Note: all options are in the format 'foo=x'.
221 // See FakeShillManagerClient::SetInitialNetworkState for implementation.
222 // Examples:
223 // 'clear=1' - Clears all default configurations
224 // 'wifi=on' - A wifi network is initially connected ('1' also works)
225 // 'wifi=off' - Wifi networks are all initially disconnected ('0' also works)
226 // 'wifi=disabled' - Wifi is initially disabled
227 // 'wifi=none' - Wifi is unavailable
228 // 'wifi=portal' - Wifi connection will be in Portal state
229 // 'cellular=1' - Cellular is initially connected
230 // 'interactive=3' - Interactive mode, connect/scan/etc requests take 3 secs
231 const char kShillStub[] = "shill-stub";
233 // Sends test messages on first call to RequestUpdate (stub only).
234 const char kSmsTestMessages[] = "sms-test-messages";
236 // Indicates that a stub implementation of CrosSettings that stores settings in
237 // memory without signing should be used, treating current user as the owner.
238 // This option is for testing the chromeos build of chrome on the desktop only.
239 const char kStubCrosSettings[] = "stub-cros-settings";
241 // Indicates that the system is running in dev mode. The dev mode probing is
242 // done by session manager.
243 const char kSystemDevMode[] = "system-developer-mode";
245 // Enables animated transitions during first-run tutorial.
246 const char kEnableFirstRunUITransitions[] = "enable-first-run-ui-transitions";
248 // Forces first-run UI to be shown for every login.
249 const char kForceFirstRunUI[] = "force-first-run-ui";
251 // Enables testing for auto update UI.
252 const char kTestAutoUpdateUI[] = "test-auto-update-ui";
254 // Enables waking the device based on the receipt of some network packets.
255 const char kWakeOnPackets[] = "wake-on-packets";
257 // Screenshot testing: specifies the directory where the golden screenshots are
258 // stored.
259 const char kGoldenScreenshotsDir[] = "golden-screenshots-dir";
261 // Screenshot testing: specifies the directoru where artifacts will be stored.
262 const char kArtifactsDir[] = "artifacts-dir";
264 // Bypass proxy for captive portal authorization.
265 const char kEnableCaptivePortalBypassProxy[] =
266 "enable-captive-portal-bypass-proxy";
268 } // namespace switches
269 } // namespace chromeos