forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChromeSwitches.java.tmpl
208 lines (162 loc) · 8.43 KB
/
ChromeSwitches.java.tmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser;
/**
* Contains all of the command line switches that are specific to the chrome/
* portion of Chromium on Android.
*/
public abstract class ChromeSwitches {{
// Switches used from Java. Please continue switch style used Chrome where
// options-have-hyphens and are_not_split_with_underscores.
/** Whether fullscreen support is disabled (auto hiding controls, etc...). */
public static final String DISABLE_FULLSCREEN = "disable-fullscreen";
/** Whether instant is disabled. */
public static final String DISABLE_INSTANT = "disable-instant";
/** Enables StrictMode violation detection. By default this logs violations to logcat. */
public static final String STRICT_MODE = "strict-mode";
/** Don't restore persistent state from saved files on startup. */
public static final String NO_RESTORE_STATE = "no-restore-state";
/** Disable the First Run Experience. */
public static final String DISABLE_FIRST_RUN_EXPERIENCE = "disable-fre";
/**
* Forces the First Run Experience (FRE) flow complete check to always return true.
*/
public static final String FORCE_FIRST_RUN_FLOW_COMPLETE_FOR_TESTING =
"force-first-run-flow-complete";
/** Force the crash dump to be uploaded regardless of preferences. */
public static final String FORCE_CRASH_DUMP_UPLOAD = "force-dump-upload";
/** Never forward URL requests to external intents. */
public static final String DISABLE_EXTERNAL_INTENT_REQUESTS =
"disable-external-intent-requests";
/** Disable Contextual Search. */
public static final String DISABLE_CONTEXTUAL_SEARCH = "disable-contextual-search";
/** Enable Contextual Search. */
public static final String ENABLE_CONTEXTUAL_SEARCH = "enable-contextual-search";
// How many thumbnails should we allow in the cache (per tab stack)?
public static final String THUMBNAILS = "thumbnails";
// How many "approximated" thumbnails should we allow in the cache
// (per tab stack)? These take very low memory but have poor quality.
public static final String APPROXIMATION_THUMBNAILS = "approximation-thumbnails";
/**
* Disable bottom infobar-like Reader Mode panel.
*/
public static final String DISABLE_READER_MODE_BOTTOM_BAR = "disable-reader-mode-bottom-bar";
/**
* Disable Lo-Fi snackbar.
*/
public static final String DISABLE_LOFI_SNACKBAR = "disable-lo-fi-snackbar";
/**
* Forces the update state to be set to the given state if the value is {{@link
* org.chromium.chrome.browser.omaha.UpdateMenuItemHelper#NONE_SWITCH_VALUE}}, {{@link
* org.chromium.chrome.browser.omaha.UpdateMenuItemHelper#UPDATE_AVAILABLE_SWITCH_VALUE}},
* {{@link
* org.chromium.chrome.browser.omaha.UpdateMenuItemHelper#UNSUPPORTED_OS_VERSION_SWITCH_VALUE}}.
*/
public static final String FORCE_UPDATE_MENU_UPDATE_TYPE = "force-update-menu-type";
/**
* Disable multiwindow tab merging for testing.
*/
public static final String DISABLE_TAB_MERGING_FOR_TESTING = "disable-tab-merging";
/**
* Aggressively pre-warms renderers when Chrome is backgrounded. Currently only works for
* SingleTabActivity-derived Activities.
*/
public static final String AGGRESSIVELY_PREWARM_RENDERERS = "aggressively-prewarm-renderers";
///////////////////////////////////////////////////////////////////////////////////////////////
// Native Switches
///////////////////////////////////////////////////////////////////////////////////////////////
/** Enable the DOM Distiller. */
public static final String ENABLE_DOM_DISTILLER = "enable-dom-distiller";
/**
* Use sandbox Wallet environment for requestAutocomplete.
* Native switch - autofill::switches::kWalletServiceUseSandbox.
*/
public static final String USE_SANDBOX_WALLET_ENVIRONMENT = "wallet-service-use-sandbox";
/**
* Change Google base URL.
* Native switch - switches::kGoogleBaseURL.
*/
public static final String GOOGLE_BASE_URL = "google-base-url";
/**
* Enables overscroll of the on screen keyboard. With this flag on, the OSK will only resize the
* visual viewport.
* Native switch - switches::kEnableOSKOverscroll
*/
public static final String ENABLE_OSK_OVERSCROLL = "enable-osk-overscroll";
/**
* Enables hung renderer InfoBar activation for unresponsive web content.
* Native switch - switches::kEnableHungRendererInfoBar
*/
public static final String ENABLE_HUNG_RENDERER_INFOBAR = "enable-hung-renderer-infobar";
/**
* Set the partner-defined homepage URL, for testing.
*/
public static final String PARTNER_HOMEPAGE_FOR_TESTING = "partner-homepage-for-testing";
/**
* Forces the WebAPK runtime dex to be extracted each time that Chrome is started.
*/
public static final String ALWAYS_EXTRACT_WEBAPK_RUNTIME_DEX_ON_STARTUP =
"always-extract-webapk-dex-on-startup";
/** Treats all WebAPKs as valid - useful only for local testing. */
public static final String SKIP_WEBAPK_VERIFICATION = "skip-webapk-verification";
/**
* Forces a check for whether the WebAPK's Web Manifest has changed each time that a WebAPK is
* launched.
*/
public static final String CHECK_FOR_WEB_MANIFEST_UPDATE_ON_STARTUP =
"check-for-web-manifest-update-on-startup";
/** Enable Vr Shell development environment. */
public static final String ENABLE_VR_SHELL_DEV = "enable-vr-shell-dev";
/** Command line switch for Chrome Home's swipe logic. */
public static final String CHROME_HOME_SWIPE_LOGIC = "chrome-home-swipe-logic";
/** Switch for enabling "restricted area" swipe logic for Chrome Home. */
public static final String CHROME_HOME_SWIPE_LOGIC_RESTRICT_AREA = "restrict-area";
/**
* Switch for enabling "velocity" swipe logic for Chrome Home. This means the flings will not
* open the sheet; the user must slide up the sheet relatively slowly.
*/
public static final String CHROME_HOME_SWIPE_LOGIC_VELOCITY = "velocity";
/** Switch for enabling the Chrome Survey. */
public static final String CHROME_FORCE_ENABLE_SURVEY = "force-enable-chrome-survey";
/** Switch to enable incognito tabs to be seen in Android Recents. */
public static final String ENABLE_INCOGNITO_SNAPSHOTS_IN_ANDROID_RECENTS =
"enable-incognito-snapshots-in-android-recents";
/** Open all custom tabs in a new task. Used only for experimental purposes. */
public static final String OPEN_CUSTOM_TABS_IN_NEW_TASK = "open-custom-tabs-in-new-task";
/**
* Don't crash on undispatched VIEW intents sent to .Main.
* See ChromeTabbedActivity.maybeDispatchExplicitMainViewIntent() for more info.
*/
public static final String DONT_CRASH_ON_VIEW_MAIN_INTENTS = "dont-crash-on-view-main-intents";
/**
* Disables digital asset link verification for the given website.
*/
public static final String DISABLE_DIGITAL_ASSET_LINK_VERIFICATION =
"disable-digital-asset-link-verification-for-url";
/**
* Forces Trusted Web Activities to show the the Disclosure Toast every time.
*/
public static final String FORCE_TRUSTED_WEB_ACTIVITY_DISCLOSURE =
"force-trusted-web-activity-disclosure";
/**
* Allows first-party apps to launch incognito custom tabs.
*/
public static final String ENABLE_INCOGNITO_CUSTOM_TABS = "enable-incognito-custom-tabs";
/**
* Allows third-party apps to launch incognito custom tabs.
*/
public static final String ALLOW_INCOGNITO_CUSTOM_TABS_FROM_THIRD_PARTY =
"allow-incognito-custom-tabs-from-third-party";
/** Prevents use of first-party Google Play Services. */
public static final String DISABLE_FIRST_PARTY_GOOGLE_PLAY_SERVICES_FOR_TESTING =
"disable-first-party-google-play-services-for-testing";
/** Prevents use of Google Play Services. */
public static final String DISABLE_GOOGLE_PLAY_SERVICES_FOR_TESTING =
"disable-google-play-services-for-testing";
/** Force enable special user handling. */
public static final String FORCE_ENABLE_SPECIAL_USER = "force-enable-special-user";
{NATIVE_STRINGS}
// Prevent instantiation.
private ChromeSwitches() {{}}
}}