[Android] Implement 3-way sensor fallback for Device Orientation.
[chromium-blink-merge.git] / content / public / common / content_switches.h
blobded8fd0095f9f38a86c353b6dcbd5d2fe9df2a72
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 // Defines all the "content" command-line switches.
7 #ifndef CONTENT_PUBLIC_COMMON_CONTENT_SWITCHES_H_
8 #define CONTENT_PUBLIC_COMMON_CONTENT_SWITCHES_H_
10 #include "build/build_config.h"
11 #include "content/common/content_export.h"
13 namespace switches {
15 // All switches in alphabetical order. The switches should be documented
16 // alongside the definition of their values in the .cc file.
17 CONTENT_EXPORT extern const char kAcceleratedCanvas2dMSAASampleCount[];
18 CONTENT_EXPORT extern const char kAllowFileAccessFromFiles[];
19 CONTENT_EXPORT extern const char kAllowLoopbackInPeerConnection[];
20 CONTENT_EXPORT extern const char kAllowNoSandboxJob[];
21 CONTENT_EXPORT extern const char kAllowSandboxDebugging[];
22 CONTENT_EXPORT extern const char kBlinkSettings[];
23 CONTENT_EXPORT extern const char kBlinkPlatformLogChannels[];
24 CONTENT_EXPORT extern const char kBrowserCrashTest[];
25 CONTENT_EXPORT extern const char kBrowserSubprocessPath[];
26 extern const char kDebugPluginLoading[];
27 CONTENT_EXPORT extern const char kDefaultTileWidth[];
28 CONTENT_EXPORT extern const char kDefaultTileHeight[];
29 CONTENT_EXPORT extern const char kDisable2dCanvasAntialiasing[];
30 CONTENT_EXPORT extern const char kDisable3DAPIs[];
31 CONTENT_EXPORT extern const char kDisableBlinkFeatures[];
32 CONTENT_EXPORT extern const char kDisableAccelerated2dCanvas[];
33 CONTENT_EXPORT extern const char kDisableAcceleratedJpegDecoding[];
34 CONTENT_EXPORT extern const char kDisableAcceleratedMjpegDecode[];
35 CONTENT_EXPORT extern const char kDisableAcceleratedVideoDecode[];
36 extern const char kDisableBackingStoreLimit[];
37 CONTENT_EXPORT extern const char kDisablePreferCompositingToLCDText[];
38 CONTENT_EXPORT extern const char kDisableDatabases[];
39 CONTENT_EXPORT extern const char kDisableDelayAgnosticAec[];
40 CONTENT_EXPORT extern const char kDisableDelegatedRenderer[];
41 extern const char kDisableDirectNPAPIRequests[];
42 CONTENT_EXPORT extern const char kDisableDistanceFieldText[];
43 CONTENT_EXPORT extern const char kDisableDisplayList2dCanvas[];
44 extern const char kDisableDomainBlockingFor3DAPIs[];
45 CONTENT_EXPORT extern const char kDisableEncryptedMedia[];
46 CONTENT_EXPORT extern const char kDisableExperimentalWebGL[];
47 CONTENT_EXPORT extern const char kDisableFileSystem[];
48 CONTENT_EXPORT extern const char kDisableFlash3d[];
49 CONTENT_EXPORT extern const char kDisableFlashStage3d[];
50 CONTENT_EXPORT extern const char kDisableGpu[];
51 CONTENT_EXPORT extern const char kDisableGpuCompositing[];
52 CONTENT_EXPORT extern const char kDisableGpuEarlyInit[];
53 extern const char kDisableGpuProcessCrashLimit[];
54 CONTENT_EXPORT extern const char kDisableGpuRasterization[];
55 CONTENT_EXPORT extern const char kDisableGpuSandbox[];
56 CONTENT_EXPORT extern const char kDisableGpuWatchdog[];
57 CONTENT_EXPORT extern const char kDisableLowResTiling[];
58 CONTENT_EXPORT extern const char kDisableHangMonitor[];
59 CONTENT_EXPORT extern const char kDisableHideInactiveStackedTabCloseButtons[];
60 extern const char kDisableHistogramCustomizer[];
61 CONTENT_EXPORT extern const char kDisableJava[];
62 CONTENT_EXPORT extern const char kDisableLCDText[];
63 CONTENT_EXPORT extern const char kDisablePrefixedEncryptedMedia[];
64 extern const char kDisableKillAfterBadIPC[];
65 CONTENT_EXPORT extern const char kDisableLocalStorage[];
66 CONTENT_EXPORT extern const char kDisableLogging[];
67 CONTENT_EXPORT extern const char kDisableMediaSource[];
68 CONTENT_EXPORT extern const char kDisableNamespaceSandbox[];
69 CONTENT_EXPORT extern const char kDisableNativeGpuMemoryBuffers[];
70 CONTENT_EXPORT extern const char kDisableNotifications[];
71 CONTENT_EXPORT extern const char kDisableOneCopy[];
72 extern const char kDisablePepper3d[];
73 CONTENT_EXPORT extern const char kDisablePermissionsAPI[];
74 CONTENT_EXPORT extern const char kDisablePersistentGpuMemoryBuffer[];
75 CONTENT_EXPORT extern const char kDisablePinch[];
76 CONTENT_EXPORT extern const char kDisablePluginsDiscovery[];
77 CONTENT_EXPORT extern const char kDisablePresentationAPI[];
78 CONTENT_EXPORT extern const char kDisableRGBA4444Textures[];
79 CONTENT_EXPORT extern const char kDisableReadingFromCanvas[];
80 extern const char kDisableRemoteFonts[];
81 extern const char kDisableRendererAccessibility[];
82 CONTENT_EXPORT extern const char kDisableRendererBackgrounding[];
83 CONTENT_EXPORT extern const char kDisableSeccompFilterSandbox[];
84 CONTENT_EXPORT extern const char kDisableSetuidSandbox[];
85 CONTENT_EXPORT extern const char kDisableSharedWorkers[];
86 CONTENT_EXPORT extern const char kDisableSlimmingPaint[];
87 CONTENT_EXPORT extern const char kDisableSmoothScrolling[];
88 CONTENT_EXPORT extern const char kDisableSoftwareRasterizer[];
89 CONTENT_EXPORT extern const char kDisableSpeechAPI[];
90 CONTENT_EXPORT extern const char kDisableSVG1DOM[];
91 CONTENT_EXPORT extern const char kDisableThreadedCompositing[];
92 CONTENT_EXPORT extern const char kDisableThreadedScrolling[];
93 extern const char kDisableV8IdleTasks[];
94 CONTENT_EXPORT extern const char kDisableWebSecurity[];
95 extern const char kDisableXSSAuditor[];
96 CONTENT_EXPORT extern const char kDomAutomationController[];
97 extern const char kEnable2dCanvasClipAntialiasing[];
98 CONTENT_EXPORT extern const char kEnableAggressiveDOMStorageFlushing[];
99 CONTENT_EXPORT extern const char kEnableBleedingEdgeRenderingFastPaths[];
100 CONTENT_EXPORT extern const char kEnableCompositorAnimationTimelines[];
101 CONTENT_EXPORT extern const char kEnableCredentialManagerAPI[];
102 CONTENT_EXPORT extern const char kEnablePreferCompositingToLCDText[];
103 CONTENT_EXPORT extern const char kEnableBlinkFeatures[];
104 CONTENT_EXPORT extern const char kEnableBrowserSideNavigation[];
105 CONTENT_EXPORT extern const char kEnableDelayAgnosticAec[];
106 CONTENT_EXPORT extern const char kEnableDelegatedRenderer[];
107 CONTENT_EXPORT extern const char kEnableDisplayList2dCanvas[];
108 CONTENT_EXPORT extern const char kEnableDistanceFieldText[];
109 CONTENT_EXPORT extern const char kEnableDownloadResumption[];
110 CONTENT_EXPORT extern const char kEnableExperimentalCanvasFeatures[];
111 CONTENT_EXPORT extern const char kEnableExperimentalWebPlatformFeatures[];
112 CONTENT_EXPORT extern const char kEnableWebBluetooth[];
113 extern const char kEnableGpuClientTracing[];
114 CONTENT_EXPORT extern const char kEnableGpuMemoryBufferVideoFrames[];
115 CONTENT_EXPORT extern const char kEnableGpuRasterization[];
116 CONTENT_EXPORT extern const char kGpuRasterizationMSAASampleCount[];
117 CONTENT_EXPORT extern const char kEnableLowResTiling[];
118 CONTENT_EXPORT extern const char kEnableImageColorProfiles[];
119 CONTENT_EXPORT extern const char kEnableLCDText[];
120 CONTENT_EXPORT extern const char kEnableLogging[];
121 extern const char kEnableMemoryBenchmarking[];
122 CONTENT_EXPORT extern const char kEnableNetworkInformation[];
123 CONTENT_EXPORT extern const char kEnableOverlayFullscreenVideo[];
124 CONTENT_EXPORT extern const char kEnablePersistentGpuMemoryBuffer[];
125 CONTENT_EXPORT extern const char kEnablePinch[];
126 CONTENT_EXPORT extern const char kEnablePluginPlaceholderTesting[];
127 CONTENT_EXPORT extern const char kEnablePreciseMemoryInfo[];
128 CONTENT_EXPORT extern const char kEnablePushMessagePayload[];
129 CONTENT_EXPORT extern const char kEnableRGBA4444Textures[];
130 CONTENT_EXPORT extern const char kEnableSandboxLogging[];
131 CONTENT_EXPORT extern const char kEnableSeccompFilterSandbox[];
132 extern const char kEnableSkiaBenchmarking[];
133 CONTENT_EXPORT extern const char kEnableSlimmingPaint[];
134 CONTENT_EXPORT extern const char kEnableSlimmingPaintV2[];
135 CONTENT_EXPORT extern const char kEnableSmoothScrolling[];
136 CONTENT_EXPORT extern const char kEnableSpatialNavigation[];
137 CONTENT_EXPORT extern const char kEnableStaleWhileRevalidate[];
138 CONTENT_EXPORT extern const char kEnableStatsTable[];
139 CONTENT_EXPORT extern const char kEnableStrictMixedContentChecking[];
140 CONTENT_EXPORT extern const char kEnableStrictPowerfulFeatureRestrictions[];
141 CONTENT_EXPORT extern const char kEnableTcpFastOpen[];
142 CONTENT_EXPORT extern const char kEnableThreadedCompositing[];
143 CONTENT_EXPORT extern const char kEnableTracing[];
144 CONTENT_EXPORT extern const char kEnableTracingOutput[];
145 CONTENT_EXPORT extern const char kEnableUserMediaScreenCapturing[];
146 CONTENT_EXPORT extern const char kEnableViewport[];
147 CONTENT_EXPORT extern const char kEnableViewportMeta[];
148 CONTENT_EXPORT extern const char kInvertViewportScrollOrder[];
149 CONTENT_EXPORT extern const char kEnableVtune[];
150 CONTENT_EXPORT extern const char kEnableWebGLDraftExtensions[];
151 CONTENT_EXPORT extern const char kEnableWebGLImageChromium[];
152 CONTENT_EXPORT extern const char kEnableWebVR[];
153 CONTENT_EXPORT extern const char kEnableZeroCopy[];
154 CONTENT_EXPORT extern const char kExplicitlyAllowedPorts[];
155 CONTENT_EXPORT extern const char kExtraPluginDir[];
156 CONTENT_EXPORT extern const char kForceDisplayList2dCanvas[];
157 CONTENT_EXPORT extern const char kForceFieldTrials[];
158 CONTENT_EXPORT extern const char kForceGpuRasterization[];
159 CONTENT_EXPORT extern const char kForceOverlayFullscreenVideo[];
160 CONTENT_EXPORT extern const char kForceRendererAccessibility[];
161 extern const char kGpuDeviceID[];
162 extern const char kGpuDriverVendor[];
163 extern const char kGpuDriverVersion[];
164 extern const char kGpuLauncher[];
165 CONTENT_EXPORT extern const char kGpuProcess[];
166 CONTENT_EXPORT extern const char kGpuSandboxAllowSysVShm[];
167 CONTENT_EXPORT extern const char kGpuSandboxFailuresFatal[];
168 CONTENT_EXPORT extern const char kGpuSandboxStartEarly[];
169 CONTENT_EXPORT extern const char kGpuStartupDialog[];
170 extern const char kGpuVendorID[];
171 CONTENT_EXPORT extern const char kHostResolverRules[];
172 CONTENT_EXPORT extern const char kIgnoreCertificateErrors[];
173 CONTENT_EXPORT extern const char kIgnoreGpuBlacklist[];
174 extern const char kInProcessGPU[];
175 CONTENT_EXPORT extern const char kIPCConnectionTimeout[];
176 CONTENT_EXPORT extern const char kJavaScriptFlags[];
177 extern const char kLoadPlugin[];
178 CONTENT_EXPORT extern const char kLogGpuControlListDecisions[];
179 CONTENT_EXPORT extern const char kLoggingLevel[];
180 CONTENT_EXPORT extern const char kLogNetLog[];
181 extern const char kLogPluginMessages[];
182 CONTENT_EXPORT extern const char kMainFrameResizesAreOrientationChanges[];
183 extern const char kMaxUntiledLayerHeight[];
184 extern const char kMaxUntiledLayerWidth[];
185 extern const char kMemoryMetrics[];
186 CONTENT_EXPORT extern const char kMuteAudio[];
187 CONTENT_EXPORT extern const char kNoReferrers[];
188 CONTENT_EXPORT extern const char kNoSandbox[];
189 CONTENT_EXPORT extern const char kEnableAppContainer[];
190 CONTENT_EXPORT extern const char kNumRasterThreads[];
191 CONTENT_EXPORT extern const char kOverridePluginPowerSaverForTesting[];
192 CONTENT_EXPORT extern const char kOverscrollHistoryNavigation[];
193 extern const char kPluginLauncher[];
194 CONTENT_EXPORT extern const char kPluginPath[];
195 CONTENT_EXPORT extern const char kPluginProcess[];
196 extern const char kPluginStartupDialog[];
197 CONTENT_EXPORT extern const char kPpapiBrokerProcess[];
198 CONTENT_EXPORT extern const char kPpapiFlashArgs[];
199 CONTENT_EXPORT extern const char kPpapiInProcess[];
200 extern const char kPpapiPluginLauncher[];
201 CONTENT_EXPORT extern const char kPpapiPluginProcess[];
202 extern const char kPpapiStartupDialog[];
203 CONTENT_EXPORT extern const char kProcessPerSite[];
204 CONTENT_EXPORT extern const char kProcessPerTab[];
205 CONTENT_EXPORT extern const char kProcessType[];
206 CONTENT_EXPORT extern const char kReduceSecurityForTesting[];
207 CONTENT_EXPORT extern const char kReducedReferrerGranularity[];
208 CONTENT_EXPORT extern const char kRegisterPepperPlugins[];
209 CONTENT_EXPORT extern const char kRemoteDebuggingPort[];
210 extern const char kRendererCmdPrefix[];
211 CONTENT_EXPORT extern const char kRendererProcess[];
212 CONTENT_EXPORT extern const char kRendererProcessLimit[];
213 CONTENT_EXPORT extern const char kRendererStartupDialog[];
214 CONTENT_EXPORT extern const char kRootLayerScrolls[];
215 extern const char kSandboxIPCProcess[];
216 CONTENT_EXPORT extern const char kScrollEndEffect[];
217 extern const char kShowPaintRects[];
218 CONTENT_EXPORT extern const char kSingleProcess[];
219 CONTENT_EXPORT extern const char kSitePerProcess[];
220 CONTENT_EXPORT extern const char kSkipGpuDataLoading[];
221 CONTENT_EXPORT extern const char kStartFullscreen[];
222 CONTENT_EXPORT extern const char kStatsCollectionController[];
223 CONTENT_EXPORT extern const char kTabCaptureDownscaleQuality[];
224 CONTENT_EXPORT extern const char kTabCaptureUpscaleQuality[];
225 CONTENT_EXPORT extern const char kTestingFixedHttpPort[];
226 CONTENT_EXPORT extern const char kTestingFixedHttpsPort[];
227 CONTENT_EXPORT extern const char kTestType[];
228 CONTENT_EXPORT extern const char kTouchTextSelectionStrategy[];
229 CONTENT_EXPORT extern const char kUIPrioritizeInGpuProcess[];
230 CONTENT_EXPORT extern const char kUseFakeUIForMediaStream[];
231 CONTENT_EXPORT extern const char kEnableNativeGpuMemoryBuffers[];
232 CONTENT_EXPORT extern const char kContentImageTextureTarget[];
233 CONTENT_EXPORT extern const char kVideoImageTextureTarget[];
234 CONTENT_EXPORT extern const char kUseMobileUserAgent[];
235 CONTENT_EXPORT extern const char kUseNormalPriorityForTileTaskWorkerThreads[];
236 extern const char kUseSurfaces[];
237 CONTENT_EXPORT extern const char kDisableSurfaces[];
238 extern const char kUtilityCmdPrefix[];
239 CONTENT_EXPORT extern const char kUtilityProcess[];
240 extern const char kUtilityProcessAllowedDir[];
241 CONTENT_EXPORT extern const char kUtilityProcessEnableMDns[];
242 CONTENT_EXPORT extern const char kUtilityProcessRunningElevated[];
243 CONTENT_EXPORT extern const char kV8CacheOptions[];
244 CONTENT_EXPORT extern const char kV8NativesPassedByFD[];
245 CONTENT_EXPORT extern const char kV8SnapshotPassedByFD[];
246 CONTENT_EXPORT extern const char kValidateInputEventStream[];
247 CONTENT_EXPORT extern const char kWaitForDebuggerChildren[];
248 CONTENT_EXPORT extern const char kZygoteCmdPrefix[];
249 CONTENT_EXPORT extern const char kZygoteProcess[];
251 #if defined(ENABLE_WEBRTC)
252 CONTENT_EXPORT extern const char kDisableWebRtcHWDecoding[];
253 CONTENT_EXPORT extern const char kDisableWebRtcEncryption[];
254 CONTENT_EXPORT extern const char kDisableWebRtcHWEncoding[];
255 CONTENT_EXPORT extern const char kEnableWebRtcDtls12[];
256 CONTENT_EXPORT extern const char kEnableWebRtcHWH264Encoding[];
257 CONTENT_EXPORT extern const char kEnableWebRtcStunOrigin[];
258 CONTENT_EXPORT extern const char kWebRtcStunProbeTrialParameter[];
259 extern const char kWebRtcMaxCaptureFramerate[];
260 #endif
262 #if defined(OS_ANDROID)
263 CONTENT_EXPORT extern const char kDisableGestureRequirementForMediaPlayback[];
264 CONTENT_EXPORT extern const char kDisableOverscrollEdgeEffect[];
265 CONTENT_EXPORT extern const char kDisablePullToRefreshEffect[];
266 CONTENT_EXPORT extern const char kDisableScreenOrientationLock[];
267 CONTENT_EXPORT extern const char kDisableWebRTC[];
268 CONTENT_EXPORT extern const char kEnableAndroidCompositorAnimationTimelines[];
269 CONTENT_EXPORT extern const char kEnableLongpressDragSelection[];
270 CONTENT_EXPORT extern const char kHideScrollbars[];
271 extern const char kNetworkCountryIso[];
272 CONTENT_EXPORT extern const char kRemoteDebuggingSocketName[];
273 CONTENT_EXPORT extern const char kRendererWaitForJavaDebugger[];
274 #endif
276 CONTENT_EXPORT extern const char kDisableWebAudio[];
278 #if defined(OS_CHROMEOS)
279 CONTENT_EXPORT extern const char kDisablePanelFitting[];
280 CONTENT_EXPORT extern const char kDisableVaapiAcceleratedVideoEncode[];
281 #endif
283 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
284 CONTENT_EXPORT extern const char kEnableSpeechDispatcher[];
285 #endif
287 #if defined(OS_MACOSX) && !defined(OS_IOS)
288 extern const char kDisableCoreAnimationPlugins[];
289 extern const char kDisableThreadedEventHandlingMac[];
290 #endif
292 #if defined(OS_WIN)
293 // This switch contains the device scale factor passed to certain processes
294 // like renderers, etc.
295 CONTENT_EXPORT extern const char kDeviceScaleFactor[];
296 CONTENT_EXPORT extern const char kDisableLegacyIntermediateWindow[];
297 CONTENT_EXPORT extern const char kDisableWin32kRendererLockDown[];
298 CONTENT_EXPORT extern const char kEnableAcceleratedVpxDecode[];
299 // Switch to pass the font cache shared memory handle to the renderer.
300 CONTENT_EXPORT extern const char kFontCacheSharedHandle[];
301 CONTENT_EXPORT extern const char kMemoryPressureThresholdsMb[];
302 CONTENT_EXPORT extern const char kTraceExportEventsToETW[];
303 #endif
305 // DON'T ADD RANDOM STUFF HERE. Put it in the main section above in
306 // alphabetical order, or in one of the ifdefs (also in order in each section).
308 } // namespace switches
310 #endif // CONTENT_PUBLIC_COMMON_CONTENT_SWITCHES_H_