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

Side by Side Diff: content/public/common/content_switches.cc

Issue 22394006: Get rid of webkit/plugins/plugin_switches.* and move them to content/public/common/content_switches… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « content/public/common/content_switches.h ('k') | content/renderer/pepper/host_globals.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/public/common/content_switches.h" 5 #include "content/public/common/content_switches.h"
6 6
7 namespace switches { 7 namespace switches {
8 8
9 // By default, file:// URIs cannot read other file:// URIs. This is an 9 // By default, file:// URIs cannot read other file:// URIs. This is an
10 // override for developers who need the old behavior for testing. 10 // override for developers who need the old behavior for testing.
11 const char kAllowFileAccessFromFiles[] = "allow-file-access-from-files"; 11 const char kAllowFileAccessFromFiles[] = "allow-file-access-from-files";
12 12
13 // Enables the sandboxed processes to run without a job object assigned to them.
14 // This flag is required to allow Chrome to run in RemoteApps or Citrix. This
15 // flag can reduce the security of the sandboxed processes and allow them to do
16 // certain API calls like shut down Windows or access the clipboard. Also we
17 // lose the chance to kill some processes until the outer job that owns them
18 // finishes.
19 const char kAllowNoSandboxJob[] = "allow-no-sandbox-job";
20
13 // Allows debugging of sandboxed processes (see zygote_main_linux.cc). 21 // Allows debugging of sandboxed processes (see zygote_main_linux.cc).
14 const char kAllowSandboxDebugging[] = "allow-sandbox-debugging"; 22 const char kAllowSandboxDebugging[] = "allow-sandbox-debugging";
15 23
16 // Allow compositing on chrome:// pages. 24 // Allow compositing on chrome:// pages.
17 const char kAllowWebUICompositing[] = "allow-webui-compositing"; 25 const char kAllowWebUICompositing[] = "allow-webui-compositing";
18 26
27 // The same as kAuditHandles except all handles are enumerated.
28 const char kAuditAllHandles[] = "enable-handle-auditing-all";
29
19 // Enumerates and prints a child process' most dangerous handles when it 30 // Enumerates and prints a child process' most dangerous handles when it
20 // is terminated. 31 // is terminated.
21 const char kAuditHandles[] = "enable-handle-auditing"; 32 const char kAuditHandles[] = "enable-handle-auditing";
22 33
23 // The same as kAuditHandles except all handles are enumerated. 34 // Blacklist the GPU for accelerated compositing.
24 const char kAuditAllHandles[] = "enable-handle-auditing-all"; 35 const char kBlacklistAcceleratedCompositing[] =
36 "blacklist-accelerated-compositing";
37
38 // Blacklist the GPU for WebGL.
39 const char kBlacklistWebGL[] = "blacklist-webgl";
25 40
26 // Causes the browser process to throw an assertion on startup. 41 // Causes the browser process to throw an assertion on startup.
27 const char kBrowserAssertTest[] = "assert-test"; 42 const char kBrowserAssertTest[] = "assert-test";
28 43
29 // Causes the browser process to crash on startup. 44 // Causes the browser process to crash on startup.
30 const char kBrowserCrashTest[] = "crash-test"; 45 const char kBrowserCrashTest[] = "crash-test";
31 46
32 // Path to the exe to run for the renderer and plugin subprocesses. 47 // Path to the exe to run for the renderer and plugin subprocesses.
33 const char kBrowserSubprocessPath[] = "browser-subprocess-path"; 48 const char kBrowserSubprocessPath[] = "browser-subprocess-path";
34 49
50 // Dumps extra logging about plugin loading to the log file.
51 const char kDebugPluginLoading[] = "debug-plugin-loading";
52
53 // Sets the tile size used by composited layers.
54 const char kDefaultTileWidth[] = "default-tile-width";
55 const char kDefaultTileHeight[] = "default-tile-height";
56
57 // Disable antialiasing on 2d canvas.
58 const char kDisable2dCanvasAntialiasing[] = "disable-canvas-aa";
59
35 // Disables client-visible 3D APIs, in particular WebGL and Pepper 3D. 60 // Disables client-visible 3D APIs, in particular WebGL and Pepper 3D.
36 // This is controlled by policy and is kept separate from the other 61 // This is controlled by policy and is kept separate from the other
37 // enable/disable switches to avoid accidentally regressing the policy 62 // enable/disable switches to avoid accidentally regressing the policy
38 // support for controlling access to these APIs. 63 // support for controlling access to these APIs.
39 const char kDisable3DAPIs[] = "disable-3d-apis"; 64 const char kDisable3DAPIs[] = "disable-3d-apis";
40 65
41 // Disable gpu-accelerated 2d canvas. 66 // Disable gpu-accelerated 2d canvas.
42 const char kDisableAccelerated2dCanvas[] = "disable-accelerated-2d-canvas"; 67 const char kDisableAccelerated2dCanvas[] = "disable-accelerated-2d-canvas";
43 68
44 // Disable antialiasing on 2d canvas.
45 const char kDisable2dCanvasAntialiasing[] = "disable-canvas-aa";
46
47 // Enable experimental canvas features, e.g. canvas 2D context attributes
48 const char kEnableExperimentalCanvasFeatures[]
49 = "enable-experimental-canvas-features";
50
51 // Disables accelerated compositing. 69 // Disables accelerated compositing.
52 const char kDisableAcceleratedCompositing[] = "disable-accelerated-compositing"; 70 const char kDisableAcceleratedCompositing[] = "disable-accelerated-compositing";
53 71
72 // Disables accelerated compositing for backgrounds of root layers with
73 // background-attachment: fixed.
74 const char kDisableAcceleratedFixedRootBackground[] =
75 "disable-accelerated-fixed-root-background";
76
54 // Disables the hardware acceleration of 3D CSS and animation. 77 // Disables the hardware acceleration of 3D CSS and animation.
55 const char kDisableAcceleratedLayers[] = "disable-accelerated-layers"; 78 const char kDisableAcceleratedLayers[] = "disable-accelerated-layers";
56 79
80 // Disables accelerated compositing for overflow scroll.
81 const char kDisableAcceleratedOverflowScroll[] =
82 "disable-accelerated-overflow-scroll";
83
57 // Disables the hardware acceleration of plugins. 84 // Disables the hardware acceleration of plugins.
58 const char kDisableAcceleratedPlugins[] = "disable-accelerated-plugins"; 85 const char kDisableAcceleratedPlugins[] = "disable-accelerated-plugins";
59 86
60 // Disables GPU accelerated video display. 87 // Disables GPU accelerated video display.
61 const char kDisableAcceleratedVideo[] = "disable-accelerated-video"; 88 const char kDisableAcceleratedVideo[] = "disable-accelerated-video";
62 89
90 // Disables hardware acceleration of video decode, where available.
91 const char kDisableAcceleratedVideoDecode[] =
92 "disable-accelerated-video-decode";
93
63 // Disables the alternate window station for the renderer. 94 // Disables the alternate window station for the renderer.
64 const char kDisableAltWinstation[] = "disable-winsta"; 95 const char kDisableAltWinstation[] = "disable-winsta";
65 96
66 // Disable the ApplicationCache. 97 // Disable the ApplicationCache.
67 const char kDisableApplicationCache[] = "disable-application-cache"; 98 const char kDisableApplicationCache[] = "disable-application-cache";
68 // 99 //
69 // TODO(scherkus): remove --disable-audio when we have a proper fallback 100 // TODO(scherkus): remove --disable-audio when we have a proper fallback
70 // mechanism. 101 // mechanism.
71 const char kDisableAudio[] = "disable-audio"; 102 const char kDisableAudio[] = "disable-audio";
72 103
73 // Disable limits on the number of backing stores. Can prevent blinking for 104 // Disable limits on the number of backing stores. Can prevent blinking for
74 // users with many windows/tabs and lots of memory. 105 // users with many windows/tabs and lots of memory.
75 const char kDisableBackingStoreLimit[] = "disable-backing-store-limit"; 106 const char kDisableBackingStoreLimit[] = "disable-backing-store-limit";
76 107
108 // Enables browser plugin compositing experiment.
109 const char kDisableBrowserPluginCompositing[] =
110 "disable-browser-plugin-compositing";
111
112 // See comment for kEnableCompositingForFixedPosition.
113 const char kDisableCompositingForFixedPosition[] =
114 "disable-fixed-position-compositing";
115
116 // See comment for kEnableCompositingForTransition.
117 const char kDisableCompositingForTransition[] =
118 "disable-transition-compositing";
119
77 // Disables HTML5 DB support. 120 // Disables HTML5 DB support.
78 const char kDisableDatabases[] = "disable-databases"; 121 const char kDisableDatabases[] = "disable-databases";
79 122
123 // Disables delegated renderer.
124 const char kDisableDelegatedRenderer[] = "disable-delegated-renderer";
125
80 // Disables desktop notifications (default enabled on windows). 126 // Disables desktop notifications (default enabled on windows).
81 const char kDisableDesktopNotifications[] = "disable-desktop-notifications"; 127 const char kDisableDesktopNotifications[] = "disable-desktop-notifications";
82 128
83 // Disables device orientation events. 129 // Disables device orientation events.
84 const char kDisableDeviceOrientation[] = "disable-device-orientation"; 130 const char kDisableDeviceOrientation[] = "disable-device-orientation";
85 131
86 // Disable experimental WebGL support. 132 // Disable experimental WebGL support.
87 const char kDisableExperimentalWebGL[] = "disable-webgl"; 133 const char kDisableExperimentalWebGL[] = "disable-webgl";
88 134
89 // Blacklist the GPU for accelerated compositing.
90 const char kBlacklistAcceleratedCompositing[] =
91 "blacklist-accelerated-compositing";
92
93 // Blacklist the GPU for WebGL.
94 const char kBlacklistWebGL[] = "blacklist-webgl";
95
96 // Disable FileSystem API. 135 // Disable FileSystem API.
97 const char kDisableFileSystem[] = "disable-file-system"; 136 const char kDisableFileSystem[] = "disable-file-system";
98 137
138 const char kDisableFixedPositionCreatesStackingContext[]
139 = "disable-fixed-position-creates-stacking-context";
140
99 // Disable 3D inside of flapper. 141 // Disable 3D inside of flapper.
100 const char kDisableFlash3d[] = "disable-flash-3d"; 142 const char kDisableFlash3d[] = "disable-flash-3d";
101 143
102 // Disable Stage3D inside of flapper. 144 // Disable Stage3D inside of flapper.
103 const char kDisableFlashStage3d[] = "disable-flash-stage3d"; 145 const char kDisableFlashStage3d[] = "disable-flash-stage3d";
104 146
147 // This flag disables force compositing mode and prevents it from being enabled
148 // via field trials.
149 const char kDisableForceCompositingMode[] = "disable-force-compositing-mode";
150
151 // Disable the JavaScript Full Screen API.
152 const char kDisableFullScreen[] = "disable-fullscreen";
153
105 // Suppresses support for the Geolocation javascript API. 154 // Suppresses support for the Geolocation javascript API.
106 const char kDisableGeolocation[] = "disable-geolocation"; 155 const char kDisableGeolocation[] = "disable-geolocation";
107 156
157 const char kDisableGestureTapHighlight[] = "disable-gesture-tap-highlight";
158
108 // Disable GL multisampling. 159 // Disable GL multisampling.
109 const char kDisableGLMultisampling[] = "disable-gl-multisampling"; 160 const char kDisableGLMultisampling[] = "disable-gl-multisampling";
110 161
162 // Disables GPU hardware acceleration. If software renderer is not in place,
163 // then the GPU process won't launch.
164 const char kDisableGpu[] = "disable-gpu";
165
166 // Prevent the compositor from using its GPU implementation.
167 const char kDisableGpuCompositing[] = "disable-gpu-compositing";
168
111 // Do not launch the GPU process shortly after browser process launch. Instead 169 // Do not launch the GPU process shortly after browser process launch. Instead
112 // launch it when it is first needed. 170 // launch it when it is first needed.
113 const char kDisableGpuProcessPrelaunch[] = "disable-gpu-process-prelaunch"; 171 const char kDisableGpuProcessPrelaunch[] = "disable-gpu-process-prelaunch";
114 172
115 // Disable the GPU process sandbox. 173 // Disable the GPU process sandbox.
116 const char kDisableGpuSandbox[] = "disable-gpu-sandbox"; 174 const char kDisableGpuSandbox[] = "disable-gpu-sandbox";
117 175
118 // Reduces the GPU process sandbox to be less strict. 176 // Disable the thread that crashes the GPU process if it stops responding to
119 const char kReduceGpuSandbox[] = "reduce-gpu-sandbox"; 177 // messages.
178 const char kDisableGpuWatchdog[] = "disable-gpu-watchdog";
120 179
121 // Suppresses hang monitor dialogs in renderer processes. This may allow slow 180 // Suppresses hang monitor dialogs in renderer processes. This may allow slow
122 // unload handlers on a page to prevent the tab from closing, but the Task 181 // unload handlers on a page to prevent the tab from closing, but the Task
123 // Manager can be used to terminate the offending process in this case. 182 // Manager can be used to terminate the offending process in this case.
124 const char kDisableHangMonitor[] = "disable-hang-monitor"; 183 const char kDisableHangMonitor[] = "disable-hang-monitor";
125 184
185 // Disable the RenderThread's HistogramCustomizer.
186 const char kDisableHistogramCustomizer[] = "disable-histogram-customizer";
187
126 // Disables HTML-based desktop notifications. 188 // Disables HTML-based desktop notifications.
127 const char kDisableHTMLNotifications[] = "disable-html-notifications"; 189 const char kDisableHTMLNotifications[] = "disable-html-notifications";
128 190
129 // Disable the RenderThread's HistogramCustomizer.
130 const char kDisableHistogramCustomizer[] = "disable-histogram-customizer";
131
132 // Disable the use of an ImageTransportSurface. This means the GPU process 191 // Disable the use of an ImageTransportSurface. This means the GPU process
133 // will present the rendered page rather than the browser process. 192 // will present the rendered page rather than the browser process.
134 const char kDisableImageTransportSurface[] = "disable-image-transport-surface"; 193 const char kDisableImageTransportSurface[] = "disable-image-transport-surface";
135 194
136 // Use hardware gpu, if available, for tests.
137 const char kUseGpuInTests[] = "use-gpu-in-tests";
138
139 // Disables GPU hardware acceleration. If software renderer is not in place,
140 // then the GPU process won't launch.
141 const char kDisableGpu[] = "disable-gpu";
142
143 // Disable the thread that crashes the GPU process if it stops responding to
144 // messages.
145 const char kDisableGpuWatchdog[] = "disable-gpu-watchdog";
146
147 // Prevent Java from running. 195 // Prevent Java from running.
148 const char kDisableJava[] = "disable-java"; 196 const char kDisableJava[] = "disable-java";
149 197
150 // Don't execute JavaScript (browser JS like the new tab page still runs). 198 // Don't execute JavaScript (browser JS like the new tab page still runs).
151 const char kDisableJavaScript[] = "disable-javascript"; 199 const char kDisableJavaScript[] = "disable-javascript";
152 200
201 // Disables prefixed Encrypted Media API (e.g. webkitGenerateKeyRequest()).
202 const char kDisableLegacyEncryptedMedia[] = "disable-legacy-encrypted-media";
203
153 // Disable LocalStorage. 204 // Disable LocalStorage.
154 const char kDisableLocalStorage[] = "disable-local-storage"; 205 const char kDisableLocalStorage[] = "disable-local-storage";
155 206
156 // Force logging to be disabled. Logging is enabled by default in debug 207 // Force logging to be disabled. Logging is enabled by default in debug
157 // builds. 208 // builds.
158 const char kDisableLogging[] = "disable-logging"; 209 const char kDisableLogging[] = "disable-logging";
159 210
160 // Enables displaying net log events on the command line, or writing the events 211 // Disable Pepper3D.
161 // to a separate file if a file name is given. 212 const char kDisablePepper3d[] = "disable-pepper-3d";
162 const char kLogNetLog[] = "log-net-log"; 213
214 // Disables compositor-accelerated touch-screen pinch gestures.
215 const char kDisablePinch[] = "disable-pinch";
163 216
164 // Prevent plugins from running. 217 // Prevent plugins from running.
165 const char kDisablePlugins[] = "disable-plugins"; 218 const char kDisablePlugins[] = "disable-plugins";
166 219
220 // Disable discovering third-party plug-ins. Effectively loading only
221 // ones shipped with the browser plus third-party ones as specified by
222 // --extra-plugin-dir and --load-plugin switches.
223 const char kDisablePluginsDiscovery[] = "disable-plugins-discovery";
224
167 // Disables remote web font support. SVG font should always work whether this 225 // Disables remote web font support. SVG font should always work whether this
168 // option is specified or not. 226 // option is specified or not.
169 const char kDisableRemoteFonts[] = "disable-remote-fonts"; 227 const char kDisableRemoteFonts[] = "disable-remote-fonts";
170 228
171 // Turns off the accessibility in the renderer. 229 // Turns off the accessibility in the renderer.
172 const char kDisableRendererAccessibility[] = "disable-renderer-accessibility"; 230 const char kDisableRendererAccessibility[] = "disable-renderer-accessibility";
173 231
174 // Disable False Start in SSL and TLS connections.
175 const char kDisableSSLFalseStart[] = "disable-ssl-false-start";
176
177 // Disable smooth scrolling for testing.
178 const char kDisableSmoothScrolling[] = "disable-smooth-scrolling";
179
180 // Disable the seccomp filter sandbox (seccomp-bpf) (Linux only). 232 // Disable the seccomp filter sandbox (seccomp-bpf) (Linux only).
181 const char kDisableSeccompFilterSandbox[] = "disable-seccomp-filter-sandbox"; 233 const char kDisableSeccompFilterSandbox[] = "disable-seccomp-filter-sandbox";
182 234
183 // Disable session storage. 235 // Disable session storage.
184 const char kDisableSessionStorage[] = "disable-session-storage"; 236 const char kDisableSessionStorage[] = "disable-session-storage";
185 237
186 // Disable the setuid sandbox (Linux only). 238 // Disable the setuid sandbox (Linux only).
187 const char kDisableSetuidSandbox[] = "disable-setuid-sandbox"; 239 const char kDisableSetuidSandbox[] = "disable-setuid-sandbox";
188 240
189 // Enable shared workers. Functionality not yet complete. 241 // Enable shared workers. Functionality not yet complete.
190 const char kDisableSharedWorkers[] = "disable-shared-workers"; 242 const char kDisableSharedWorkers[] = "disable-shared-workers";
191 243
192 // Disables site-specific tailoring to compatibility issues in WebKit. 244 // Disables site-specific tailoring to compatibility issues in WebKit.
193 const char kDisableSiteSpecificQuirks[] = "disable-site-specific-quirks"; 245 const char kDisableSiteSpecificQuirks[] = "disable-site-specific-quirks";
194 246
247 // Disable smooth scrolling for testing.
248 const char kDisableSmoothScrolling[] = "disable-smooth-scrolling";
249
250 // Disables the use of a 3D software rasterizer.
251 const char kDisableSoftwareRasterizer[] = "disable-software-rasterizer";
252
195 // Disables speech input. 253 // Disables speech input.
196 const char kDisableSpeechInput[] = "disable-speech-input"; 254 const char kDisableSpeechInput[] = "disable-speech-input";
197 255
198 // Specifies the request key for the continuous speech recognition webservice. 256 // Disable False Start in SSL and TLS connections.
199 const char kSpeechRecognitionWebserviceKey[] = "speech-service-key"; 257 const char kDisableSSLFalseStart[] = "disable-ssl-false-start";
200 258
201 // Enables the synthesis part of the Web Speech API. 259 // Disable multithreaded GPU compositing of web content.
202 const char kEnableSpeechSynthesis[] = "enable-speech-synthesis"; 260 const char kDisableThreadedCompositing[] = "disable-threaded-compositing";
203 261
204 #if defined(OS_ANDROID) 262 // Disables the threaded HTML parser in WebKit
205 // WebRTC is enabled by default on Android. 263 const char kDisableThreadedHTMLParser[] = "disable-threaded-html-parser";
206 const char kDisableWebRTC[] = "disable-webrtc";
207
208 // Enable the recognition part of the Web Speech API.
209 const char kEnableSpeechRecognition[] = "enable-speech-recognition";
210
211 #endif
212 264
213 // Disable web audio API. 265 // Disable web audio API.
214 const char kDisableWebAudio[] = "disable-webaudio"; 266 const char kDisableWebAudio[] = "disable-webaudio";
215 267
216 #if defined(ENABLE_WEBRTC) 268 // Disables prefixed Media Source API (i.e., the WebKitMediaSource object).
217 // Enables WebRTC AEC recordings. 269 const char kDisableWebKitMediaSource[] = "disable-webkit-media-source";
218 const char kEnableWebRtcAecRecordings[] = "enable-webrtc-aec-recordings";
219
220 // Enable WebRTC DataChannels SCTP wire protocol support.
221 const char kEnableSCTPDataChannels[] = "enable-sctp-data-channels";
222
223 // Disable WebRTC device enumeration.
224 const char kDisableDeviceEnumeration[] = "disable-device-enumeration";
225
226 #endif
227
228 // Enable WebRTC to open TCP server sockets.
229 const char kEnableWebRtcTcpServerSocket[] = "enable-webrtc-tcp-server-socket";
230
231 // Enables HW decode acceleration for WebRTC.
232 const char kEnableWebRtcHWDecoding[] = "enable-webrtc-hw-decoding";
233
234 // Enable CSS Transitions / Animations on the Web Animations model.
235 const char kEnableWebAnimationsCSS[] = "enable-web-animations-css";
236
237 // Enable SVG Animations on the Web Animations model.
238 const char kEnableWebAnimationsSVG[] = "enable-web-animations-svg";
239
240 // Enables Web MIDI API.
241 const char kEnableWebMIDI[] = "enable-web-midi";
242 270
243 // Don't enforce the same-origin policy. (Used by people testing their sites.) 271 // Don't enforce the same-origin policy. (Used by people testing their sites.)
244 const char kDisableWebSecurity[] = "disable-web-security"; 272 const char kDisableWebSecurity[] = "disable-web-security";
245 273
246 // Enable an experimental WebSocket implementation.
247 const char kEnableExperimentalWebSocket[] = "enable-experimental-websocket";
248
249 // Enable HTML Imports
250 extern const char kEnableHTMLImports[] = "enable-html-imports";
251
252 // Disables WebKit's XSSAuditor. The XSSAuditor mitigates reflective XSS. 274 // Disables WebKit's XSSAuditor. The XSSAuditor mitigates reflective XSS.
253 const char kDisableXSSAuditor[] = "disable-xss-auditor"; 275 const char kDisableXSSAuditor[] = "disable-xss-auditor";
254 276
255 // Specifies if the |DOMAutomationController| needs to be bound in the 277 // Specifies if the |DOMAutomationController| needs to be bound in the
256 // renderer. This binding happens on per-frame basis and hence can potentially 278 // renderer. This binding happens on per-frame basis and hence can potentially
257 // be a performance bottleneck. One should only enable it when automating dom 279 // be a performance bottleneck. One should only enable it when automating dom
258 // based tests. 280 // based tests.
259 const char kDomAutomationController[] = "dom-automation"; 281 const char kDomAutomationController[] = "dom-automation";
260 282
261 // Specifies if the |StatsCollectionController| needs to be bound in the
262 // renderer. This binding happens on per-frame basis and hence can potentially
263 // be a performance bottleneck. One should only enable it when running a test
264 // that needs to access the provided statistics.
265 const char kStatsCollectionController[] =
266 "enable-stats-collection-bindings";
267
268 // Enable gpu-accelerated SVG/W3C filters. 283 // Enable gpu-accelerated SVG/W3C filters.
269 const char kEnableAcceleratedFilters[] = "enable-accelerated-filters"; 284 const char kEnableAcceleratedFilters[] = "enable-accelerated-filters";
270 285
286 // Enables accelerated compositing for backgrounds of root layers with
287 // background-attachment: fixed. Requires kForceCompositingMode.
288 const char kEnableAcceleratedFixedRootBackground[] =
289 "enable-accelerated-fixed-root-background";
290
291 // Enables accelerated compositing for overflow scroll. Promotes eligible
292 // overflow:scroll elements to layers to enable accelerated scrolling for them.
293 const char kEnableAcceleratedOverflowScroll[] =
294 "enable-accelerated-overflow-scroll";
295
296 // Enables accelerated compositing for scrollable frames for accelerated
297 // scrolling for them. Requires kForceCompositingMode.
298 const char kEnableAcceleratedScrollableFrames[] =
299 "enable-accelerated-scrollable-frames";
300
271 // Turns on extremely verbose logging of accessibility events. 301 // Turns on extremely verbose logging of accessibility events.
272 const char kEnableAccessibilityLogging[] = "enable-accessibility-logging"; 302 const char kEnableAccessibilityLogging[] = "enable-accessibility-logging";
273 303
274 // Enable notifications of audible/silent audio output from a render view. 304 // Enable notifications of audible/silent audio output from a render view.
275 // 305 //
276 // TODO(miu): Remove --enable-audible-notifications once the feature goes 306 // TODO(miu): Remove --enable-audible-notifications once the feature goes
277 // live. http://crbug.com/178934 307 // live. http://crbug.com/178934
278 const char kEnableAudibleNotifications[] = "enable-audible-notifications"; 308 const char kEnableAudibleNotifications[] = "enable-audible-notifications";
279 309
280 // Enables browser plugin compositing experiment. 310 // Use a begin frame signal from browser to renderer to schedule rendering.
281 const char kDisableBrowserPluginCompositing[] = 311 const char kEnableBeginFrameScheduling[] = "enable-begin-frame-scheduling";
282 "disable-browser-plugin-compositing"; 312
313 // Synchronize delivery and response of input events to and from the renderer.
314 const char kEnableBrowserInputController[] = "enable-browser-input-controller";
283 315
284 // Enables browser plugin for all types of pages. 316 // Enables browser plugin for all types of pages.
285 const char kEnableBrowserPluginForAllViewTypes[] = 317 const char kEnableBrowserPluginForAllViewTypes[] =
286 "enable-browser-plugin-for-all-view-types"; 318 "enable-browser-plugin-for-all-view-types";
287 319
288 // Enables Drag and Drop into and out of Browser Plugin. 320 // Enables Drag and Drop into and out of Browser Plugin.
289 // kEnableBrowserPluginGuestViews must also be set at this time. 321 // kEnableBrowserPluginGuestViews must also be set at this time.
290 const char kEnableBrowserPluginDragDrop[] = "enable-browser-plugin-drag-drop"; 322 const char kEnableBrowserPluginDragDrop[] = "enable-browser-plugin-drag-drop";
291 323
292 // Enable/Disable the creation of compositing layers for fixed position 324 // Enables accelerated scrolling by the compositor for frames. Requires
325 // kForceCompositingMode and kEnableAcceleratedScrollableFrames.
326 const char kEnableCompositedScrollingForFrames[] =
327 "enable-composited-scrolling-for-frames";
328
329 // Enable the creation of compositing layers for fixed position
293 // elements. Three options are needed to support four possible scenarios: 330 // elements. Three options are needed to support four possible scenarios:
294 // 1. Default (disabled) 331 // 1. Default (disabled)
295 // 2. Enabled always (to allow dogfooding) 332 // 2. Enabled always (to allow dogfooding)
296 // 3. Disabled always (to give safety fallback for users) 333 // 3. Disabled always (to give safety fallback for users)
297 // 4. Enabled only if we detect a highDPI display 334 // 4. Enabled only if we detect a highDPI display
298 // 335 //
299 // Option #4 may soon be the default, because the feature is needed soon for 336 // Option #4 may soon be the default, because the feature is needed soon for
300 // high DPI, but cannot be used (yet) for low DPI. Options #2 and #3 will 337 // high DPI, but cannot be used (yet) for low DPI. Options #2 and #3 will
301 // override Option #4. 338 // override Option #4.
302 const char kEnableCompositingForFixedPosition[] = 339 const char kEnableCompositingForFixedPosition[] =
303 "enable-fixed-position-compositing"; 340 "enable-fixed-position-compositing";
304 const char kDisableCompositingForFixedPosition[] =
305 "disable-fixed-position-compositing";
306 const char kEnableHighDpiCompositingForFixedPosition[] =
307 "enable-high-dpi-fixed-position-compositing";
308 341
309 // Enable/Disable the creation of compositing layers for RenderLayers with a 342 // Enable/Disable the creation of compositing layers for RenderLayers with a
310 // transition on a property that supports accelerated animation (that is, 343 // transition on a property that supports accelerated animation (that is,
311 // opacity, -webkit-transform, and -webkit-filter), even when no animation is 344 // opacity, -webkit-transform, and -webkit-filter), even when no animation is
312 // running. These options allow for three possible scenarios: 345 // running. These options allow for three possible scenarios:
313 // 1. Default (enabled only if we dectect a highDPI display) 346 // 1. Default (enabled only if we dectect a highDPI display)
314 // 2. Enabled always. 347 // 2. Enabled always.
315 // 3. Disabled always. 348 // 3. Disabled always.
316 const char kEnableCompositingForTransition[] = 349 const char kEnableCompositingForTransition[] =
317 "enable-transition-compositing"; 350 "enable-transition-compositing";
318 const char kDisableCompositingForTransition[] =
319 "disable-transition-compositing";
320 351
321 // Enables CSS3 custom filters 352 // Enables CSS3 custom filters
322 const char kEnableCssShaders[] = "enable-css-shaders"; 353 const char kEnableCssShaders[] = "enable-css-shaders";
323 354
324 // Disables delegated renderer. 355 // Defer image decoding in WebKit until painting.
325 const char kDisableDelegatedRenderer[] = "disable-delegated-renderer"; 356 const char kEnableDeferredImageDecoding[] = "enable-deferred-image-decoding";
326 357
327 // Enables delegated renderer. 358 // Enables delegated renderer.
328 const char kEnableDelegatedRenderer[] = "enable-delegated-renderer"; 359 const char kEnableDelegatedRenderer[] = "enable-delegated-renderer";
329 360
330 // Enables device motion events. 361 // Enables device motion events.
331 const char kEnableDeviceMotion[] = "enable-device-motion"; 362 const char kEnableDeviceMotion[] = "enable-device-motion";
332 363
333 #if defined(OS_ANDROID)
334 // Disables device motion events.
335 const char kDisableDeviceMotion[] = "disable-device-motion";
336 #endif
337
338 // Enables restarting interrupted downloads. 364 // Enables restarting interrupted downloads.
339 const char kEnableDownloadResumption[] = "enable-download-resumption"; 365 const char kEnableDownloadResumption[] = "enable-download-resumption";
340 366
367 // Enables support for Encrypted Media Extensions (e.g. MediaKeys).
368 const char kEnableEncryptedMedia[] = "enable-encrypted-media";
369
370 // Enable experimental canvas features, e.g. canvas 2D context attributes
371 const char kEnableExperimentalCanvasFeatures[] =
372 "enable-experimental-canvas-features";
373
341 // Enables Web Platform features that are in development. 374 // Enables Web Platform features that are in development.
342 const char kEnableExperimentalWebPlatformFeatures[] = 375 const char kEnableExperimentalWebPlatformFeatures[] =
343 "enable-experimental-web-platform-features"; 376 "enable-experimental-web-platform-features";
344 377
345 // Enables the CSS multicol implementation that uses the regions implementation. 378 // Enable an experimental WebSocket implementation.
346 const char kEnableRegionBasedColumns[] = 379 const char kEnableExperimentalWebSocket[] = "enable-experimental-websocket";
347 "enable-region-based-columns";
348
349 // Disables the threaded HTML parser in WebKit
350 const char kDisableThreadedHTMLParser[] = "disable-threaded-html-parser";
351 380
352 // By default, a page is laid out to fill the entire width of the window. 381 // By default, a page is laid out to fill the entire width of the window.
353 // This flag fixes the layout of the page to a default of 980 CSS pixels, 382 // This flag fixes the layout of the page to a default of 980 CSS pixels,
354 // or to a specified width and height using --enable-fixed-layout=w,h 383 // or to a specified width and height using --enable-fixed-layout=w,h
355 const char kEnableFixedLayout[] = "enable-fixed-layout"; 384 const char kEnableFixedLayout[] = "enable-fixed-layout";
356 385
357 // Disable the JavaScript Full Screen API. 386 const char kEnableFixedPositionCreatesStackingContext[]
358 const char kDisableFullScreen[] = "disable-fullscreen"; 387 = "enable-fixed-position-creates-stacking-context";
359
360 // Enable Text Service Framework(TSF) for text inputting instead of IMM32. This
361 // flag is ignored on Metro environment.
362 const char kEnableTextServicesFramework[] = "enable-text-services-framework";
363 388
364 // Enable Gesture Tap Highlight 389 // Enable Gesture Tap Highlight
365 const char kEnableGestureTapHighlight[] = "enable-gesture-tap-highlight"; 390 const char kEnableGestureTapHighlight[] = "enable-gesture-tap-highlight";
366 const char kDisableGestureTapHighlight[] = "disable-gesture-tap-highlight";
367 391
368 // Enables the GPU benchmarking extension 392 // Enables the GPU benchmarking extension
369 const char kEnableGpuBenchmarking[] = "enable-gpu-benchmarking"; 393 const char kEnableGpuBenchmarking[] = "enable-gpu-benchmarking";
370 394
371 // Enables TRACE for GL calls in the renderer. 395 // Enables TRACE for GL calls in the renderer.
372 const char kEnableGpuClientTracing[] = "enable-gpu-client-tracing"; 396 const char kEnableGpuClientTracing[] = "enable-gpu-client-tracing";
373 397
398 // See comment for kEnableCompositingForFixedPosition.
399 const char kEnableHighDpiCompositingForFixedPosition[] =
400 "enable-high-dpi-fixed-position-compositing";
401
402 // Enable HTML Imports
403 extern const char kEnableHTMLImports[] = "enable-html-imports";
404
374 // Enables support for inband text tracks in media content. 405 // Enables support for inband text tracks in media content.
375 const char kEnableInbandTextTracks[] = "enable-inband-text-tracks"; 406 const char kEnableInbandTextTracks[] = "enable-inband-text-tracks";
376
377 // Enables the memory benchmarking extension
378 const char kEnableMemoryBenchmarking[] = "enable-memory-benchmarking";
379
380 // Enables the Skia benchmarking extension
381 const char kEnableSkiaBenchmarking[] = "enable-skia-benchmarking";
382 407
383 // Force logging to be enabled. Logging is disabled by default in release 408 // Force logging to be enabled. Logging is disabled by default in release
384 // builds. 409 // builds.
385 const char kEnableLogging[] = "enable-logging"; 410 const char kEnableLogging[] = "enable-logging";
386 411
387 // Disables prefixed Media Source API (i.e., the WebKitMediaSource object). 412 // Enables the memory benchmarking extension
388 const char kDisableWebKitMediaSource[] = "disable-webkit-media-source"; 413 const char kEnableMemoryBenchmarking[] = "enable-memory-benchmarking";
389
390 // Enables support for Encrypted Media Extensions (e.g. MediaKeys).
391 const char kEnableEncryptedMedia[] = "enable-encrypted-media";
392
393 // Disables prefixed Encrypted Media API (e.g. webkitGenerateKeyRequest()).
394 const char kDisableLegacyEncryptedMedia[] = "disable-legacy-encrypted-media";
395
396 // Use fake device for MediaStream to replace actual camera and microphone.
397 const char kUseFakeDeviceForMediaStream[] = "use-fake-device-for-media-stream";
398
399 // Bypass the media stream infobar by selecting the default device for media
400 // streams (e.g. WebRTC). Works with --use-fake-device-for-media-stream.
401 const char kUseFakeUIForMediaStream[] = "use-fake-ui-for-media-stream";
402 414
403 // On Windows, converts the page to the currently-installed monitor profile. 415 // On Windows, converts the page to the currently-installed monitor profile.
404 // This does NOT enable color management for images. The source is still 416 // This does NOT enable color management for images. The source is still
405 // assumed to be sRGB. 417 // assumed to be sRGB.
406 const char kEnableMonitorProfile[] = "enable-monitor-profile"; 418 const char kEnableMonitorProfile[] = "enable-monitor-profile";
407 419
408 // Enables the new chrome://media-internals page. 420 // Enables the new chrome://media-internals page.
409 // http://crbug.com/260005 421 // http://crbug.com/260005
410 const char kEnableNewMediaInternals[] = "enable-new-media-internals"; 422 const char kEnableNewMediaInternals[] = "enable-new-media-internals";
411 423
412 // Enables compositor-accelerated touch-screen pinch gestures.
413 const char kEnablePinch[] = "enable-pinch";
414 const char kDisablePinch[] = "disable-pinch";
415
416 // Enables use of cache if offline, even if it's stale 424 // Enables use of cache if offline, even if it's stale
417 const char kEnableOfflineCacheAccess[] = "enable-offline-cache-access"; 425 const char kEnableOfflineCacheAccess[] = "enable-offline-cache-access";
418 426
427 // Forward overscroll event data from the renderer to the browser.
428 const char kEnableOverscrollNotifications[] = "enable-overscroll-notifications";
429
430 // Enables compositor-accelerated touch-screen pinch gestures.
431 const char kEnablePinch[] = "enable-pinch";
432
419 // Enable caching of pre-parsed JS script data. See http://crbug.com/32407. 433 // Enable caching of pre-parsed JS script data. See http://crbug.com/32407.
420 const char kEnablePreparsedJsCaching[] = "enable-preparsed-js-caching"; 434 const char kEnablePreparsedJsCaching[] = "enable-preparsed-js-caching";
421 435
422 // Enable privileged WebGL extensions; without this switch such extensions are 436 // Enable privileged WebGL extensions; without this switch such extensions are
423 // available only to Chrome extensions. 437 // available only to Chrome extensions.
424 const char kEnablePrivilegedWebGLExtensions[] = 438 const char kEnablePrivilegedWebGLExtensions[] =
425 "enable-privileged-webgl-extensions"; 439 "enable-privileged-webgl-extensions";
426 440
427 // Aggressively free GPU command buffers belonging to hidden tabs. 441 // Aggressively free GPU command buffers belonging to hidden tabs.
428 const char kEnablePruneGpuCommandBuffers[] = 442 const char kEnablePruneGpuCommandBuffers[] =
429 "enable-prune-gpu-command-buffers"; 443 "enable-prune-gpu-command-buffers";
430 444
431 // Enable screen capturing support for MediaStream API. 445 // Enables the CSS multicol implementation that uses the regions implementation.
432 const char kEnableUserMediaScreenCapturing[] = 446 const char kEnableRegionBasedColumns[] =
433 "enable-usermedia-screen-capturing"; 447 "enable-region-based-columns";
434
435 // Enables TLS cached info extension.
436 const char kEnableSSLCachedInfo[] = "enable-ssl-cached-info";
437 448
438 // Cause the OS X sandbox write to syslog every time an access to a resource 449 // Cause the OS X sandbox write to syslog every time an access to a resource
439 // is denied by the sandbox. 450 // is denied by the sandbox.
440 const char kEnableSandboxLogging[] = "enable-sandbox-logging"; 451 const char kEnableSandboxLogging[] = "enable-sandbox-logging";
441 452
442 // Enable spatial navigation 453 // Enables the Skia benchmarking extension
443 const char kEnableSpatialNavigation[] = "enable-spatial-navigation"; 454 const char kEnableSkiaBenchmarking[] = "enable-skia-benchmarking";
444 455
445 // On platforms that support it, enables smooth scroll animation. 456 // On platforms that support it, enables smooth scroll animation.
446 const char kEnableSmoothScrolling[] = "enable-smooth-scrolling"; 457 const char kEnableSmoothScrolling[] = "enable-smooth-scrolling";
447 458
459 // Allow the compositor to use its software implementation if GL fails.
460 const char kEnableSoftwareCompositing[] = "enable-software-compositing";
461
462 // Enable spatial navigation
463 const char kEnableSpatialNavigation[] = "enable-spatial-navigation";
464
465 // Enables the synthesis part of the Web Speech API.
466 const char kEnableSpeechSynthesis[] = "enable-speech-synthesis";
467
468 // Enables TLS cached info extension.
469 const char kEnableSSLCachedInfo[] = "enable-ssl-cached-info";
470
448 // Enables StatsTable, logging statistics to a global named shared memory table. 471 // Enables StatsTable, logging statistics to a global named shared memory table.
449 const char kEnableStatsTable[] = "enable-stats-table"; 472 const char kEnableStatsTable[] = "enable-stats-table";
450 473
451 // Experimentally ensures that each renderer process: 474 // Experimentally ensures that each renderer process:
452 // 1) Only handles rendering for pages from a single site, apart from iframes. 475 // 1) Only handles rendering for pages from a single site, apart from iframes.
453 // (Note that a page can reference content from multiple origins due to images, 476 // (Note that a page can reference content from multiple origins due to images,
454 // JavaScript files, etc. Cross-site iframes are also loaded in-process.) 477 // JavaScript files, etc. Cross-site iframes are also loaded in-process.)
455 // 2) Only has authority to see or use cookies for the page's top-level origin. 478 // 2) Only has authority to see or use cookies for the page's top-level origin.
456 // (So if a.com iframes b.com, the b.com network request will be sent without 479 // (So if a.com iframes b.com, the b.com network request will be sent without
457 // cookies.) 480 // cookies.)
458 // This is expected to break compatibility with many pages for now. Unlike the 481 // This is expected to break compatibility with many pages for now. Unlike the
459 // --site-per-process flag, this allows cross-site iframes, but it blocks all 482 // --site-per-process flag, this allows cross-site iframes, but it blocks all
460 // cookies on cross-site requests. 483 // cookies on cross-site requests.
461 const char kEnableStrictSiteIsolation[] = "enable-strict-site-isolation"; 484 const char kEnableStrictSiteIsolation[] = "enable-strict-site-isolation";
462 485
463 // Enable multithreaded GPU compositing of web content.
464 const char kEnableThreadedCompositing[] = "enable-threaded-compositing";
465
466 // Allow GL contexts to be automatically virtualized (shared between command
467 // buffer clients) if they are compatible.
468 const char kEnableVirtualGLContexts[] = "enable-virtual-gl-contexts";
469
470 // Disable multithreaded GPU compositing of web content.
471 const char kDisableThreadedCompositing[] = "disable-threaded-compositing";
472
473 // Enable use of experimental TCP sockets API for sending data in the 486 // Enable use of experimental TCP sockets API for sending data in the
474 // SYN packet. 487 // SYN packet.
475 const char kEnableTcpFastOpen[] = "enable-tcp-fastopen"; 488 const char kEnableTcpFastOpen[] = "enable-tcp-fastopen";
476 489
477 // Disables hardware acceleration of video decode, where available. 490 // Enable Text Service Framework(TSF) for text inputting instead of IMM32. This
478 const char kDisableAcceleratedVideoDecode[] = 491 // flag is ignored on Metro environment.
479 "disable-accelerated-video-decode"; 492 const char kEnableTextServicesFramework[] = "enable-text-services-framework";
493
494 // Enable multithreaded GPU compositing of web content.
495 const char kEnableThreadedCompositing[] = "enable-threaded-compositing";
496
497 // Enable screen capturing support for MediaStream API.
498 const char kEnableUserMediaScreenCapturing[] =
499 "enable-usermedia-screen-capturing";
480 500
481 // Enables the use of the viewport meta tag, which allows 501 // Enables the use of the viewport meta tag, which allows
482 // pages to control aspects of their own layout. This also turns on touch-screen 502 // pages to control aspects of their own layout. This also turns on touch-screen
483 // pinch gestures. 503 // pinch gestures.
484 const char kEnableViewport[] = "enable-viewport"; 504 const char kEnableViewport[] = "enable-viewport";
485 505
506 // Allow GL contexts to be automatically virtualized (shared between command
507 // buffer clients) if they are compatible.
508 const char kEnableVirtualGLContexts[] = "enable-virtual-gl-contexts";
509
510 // Enables moving cursor by word in visual order.
511 const char kEnableVisualWordMovement[] = "enable-visual-word-movement";
512
513 // Enable the Vtune profiler support.
514 const char kEnableVtune[] = "enable-vtune-support";
515
516 // Enable CSS Transitions / Animations on the Web Animations model.
517 const char kEnableWebAnimationsCSS[] = "enable-web-animations-css";
518
519 // Enable SVG Animations on the Web Animations model.
520 const char kEnableWebAnimationsSVG[] = "enable-web-animations-svg";
521
522 // Enables WebGL extensions not yet approved by the community.
523 const char kEnableWebGLDraftExtensions[] = "enable-webgl-draft-extensions";
524
525 // Enables Web MIDI API.
526 const char kEnableWebMIDI[] = "enable-web-midi";
527
528 // Enable WebRTC to open TCP server sockets.
529 const char kEnableWebRtcTcpServerSocket[] = "enable-webrtc-tcp-server-socket";
530
486 // Enables experimental features for the geolocation API. 531 // Enables experimental features for the geolocation API.
487 // Current features: 532 // Current features:
488 // - CoreLocation support for Mac OS X 10.6 533 // - CoreLocation support for Mac OS X 10.6
489 // - Gateway location for Linux and Windows 534 // - Gateway location for Linux and Windows
490 // - Location platform support for Windows 7 535 // - Location platform support for Windows 7
491 const char kExperimentalLocationFeatures[] = "experimental-location-features"; 536 const char kExperimentalLocationFeatures[] = "experimental-location-features";
492 537
538 // Load NPAPI plugins from the specified directory.
539 const char kExtraPluginDir[] = "extra-plugin-dir";
540
493 // If accelerated compositing is supported, always enter compositing mode for 541 // If accelerated compositing is supported, always enter compositing mode for
494 // the base layer even when compositing is not strictly required. 542 // the base layer even when compositing is not strictly required.
495 const char kForceCompositingMode[] = "force-compositing-mode"; 543 const char kForceCompositingMode[] = "force-compositing-mode";
496 544
497 // This flag disables force compositing mode and prevents it from being enabled
498 // via field trials.
499 const char kDisableForceCompositingMode[] = "disable-force-compositing-mode";
500
501 // Some field trials may be randomized in the browser, and the randomly selected 545 // Some field trials may be randomized in the browser, and the randomly selected
502 // outcome needs to be propagated to the renderer. For instance, this is used 546 // outcome needs to be propagated to the renderer. For instance, this is used
503 // to modify histograms recorded in the renderer, or to get the renderer to 547 // to modify histograms recorded in the renderer, or to get the renderer to
504 // also set of its state (initialize, or not initialize components) to match the 548 // also set of its state (initialize, or not initialize components) to match the
505 // experiment(s). The option is also useful for forcing field trials when 549 // experiment(s). The option is also useful for forcing field trials when
506 // testing changes locally. The argument is a list of name and value pairs, 550 // testing changes locally. The argument is a list of name and value pairs,
507 // separated by slashes. See FieldTrialList::CreateTrialsFromString() in 551 // separated by slashes. See FieldTrialList::CreateTrialsFromString() in
508 // field_trial.h for details. 552 // field_trial.h for details.
509 const char kForceFieldTrials[] = "force-fieldtrials"; 553 const char kForceFieldTrials[] = "force-fieldtrials";
510 554
511 // Force renderer accessibility to be on instead of enabling it on demand when 555 // Force renderer accessibility to be on instead of enabling it on demand when
512 // a screen reader is detected. The disable-renderer-accessibility switch 556 // a screen reader is detected. The disable-renderer-accessibility switch
513 // overrides this if present. 557 // overrides this if present.
514 const char kForceRendererAccessibility[] = "force-renderer-accessibility"; 558 const char kForceRendererAccessibility[] = "force-renderer-accessibility";
515 559
516 // Allow the compositor to use its software implementation if GL fails.
517 const char kEnableSoftwareCompositing[] = "enable-software-compositing";
518
519 // Prevent the compositor from using its GPU implementation.
520 const char kDisableGpuCompositing[] = "disable-gpu-compositing";
521
522 // Passes gpu device_id from browser process to GPU process. 560 // Passes gpu device_id from browser process to GPU process.
523 const char kGpuDeviceID[] = "gpu-device-id"; 561 const char kGpuDeviceID[] = "gpu-device-id";
524 562
525 // Passes gpu driver_vendor from browser process to GPU process. 563 // Passes gpu driver_vendor from browser process to GPU process.
526 const char kGpuDriverVendor[] = "gpu-driver-vendor"; 564 const char kGpuDriverVendor[] = "gpu-driver-vendor";
527 565
528 // Passes gpu driver_version from browser process to GPU process. 566 // Passes gpu driver_version from browser process to GPU process.
529 const char kGpuDriverVersion[] = "gpu-driver-version"; 567 const char kGpuDriverVersion[] = "gpu-driver-version";
530 568
531 // Extra command line options for launching the GPU process (normally used 569 // Extra command line options for launching the GPU process (normally used
532 // for debugging). Use like renderer-cmd-prefix. 570 // for debugging). Use like renderer-cmd-prefix.
533 const char kGpuLauncher[] = "gpu-launcher"; 571 const char kGpuLauncher[] = "gpu-launcher";
534 572
535 // Makes this process a GPU sub-process. 573 // Makes this process a GPU sub-process.
536 const char kGpuProcess[] = "gpu-process"; 574 const char kGpuProcess[] = "gpu-process";
537 575
538 // Allow shmat system call in GPU sandbox. 576 // Allow shmat system call in GPU sandbox.
539 const char kGpuSandboxAllowSysVShm[] = "gpu-sandbox-allow-sysv-shm"; 577 const char kGpuSandboxAllowSysVShm[] = "gpu-sandbox-allow-sysv-shm";
540 578
541 // Causes the GPU process to display a dialog on launch. 579 // Causes the GPU process to display a dialog on launch.
542 const char kGpuStartupDialog[] = "gpu-startup-dialog"; 580 const char kGpuStartupDialog[] = "gpu-startup-dialog";
543 581
544 // Passes gpu vendor_id from browser process to GPU process. 582 // Passes gpu vendor_id from browser process to GPU process.
545 const char kGpuVendorID[] = "gpu-vendor-id"; 583 const char kGpuVendorID[] = "gpu-vendor-id";
546 584
547 #if defined(OS_ANDROID)
548 // Don't display any scrollbars. This is useful for Android WebView where
549 // the system manages the scrollbars instead.
550 const char kHideScrollbars[] = "hide-scrollbars";
551 #endif
552
553 // These mappings only apply to the host resolver. 585 // These mappings only apply to the host resolver.
554 const char kHostResolverRules[] = "host-resolver-rules"; 586 const char kHostResolverRules[] = "host-resolver-rules";
555 587
556 // Ignores certificate-related errors. 588 // Ignores certificate-related errors.
557 const char kIgnoreCertificateErrors[] = "ignore-certificate-errors"; 589 const char kIgnoreCertificateErrors[] = "ignore-certificate-errors";
558 590
559 // Ignores GPU blacklist. 591 // Ignores GPU blacklist.
560 const char kIgnoreGpuBlacklist[] = "ignore-gpu-blacklist"; 592 const char kIgnoreGpuBlacklist[] = "ignore-gpu-blacklist";
561 593
562 // Run the GPU process as a thread in the browser process. 594 // Run the GPU process as a thread in the browser process.
563 const char kInProcessGPU[] = "in-process-gpu"; 595 const char kInProcessGPU[] = "in-process-gpu";
564 596
565 // Runs plugins inside the renderer process 597 // Runs plugins inside the renderer process
566 const char kInProcessPlugins[] = "in-process-plugins"; 598 const char kInProcessPlugins[] = "in-process-plugins";
567 599
568 // Specifies the flags passed to JS engine 600 // Specifies the flags passed to JS engine
569 const char kJavaScriptFlags[] = "js-flags"; 601 const char kJavaScriptFlags[] = "js-flags";
570 602
571 // Load NPAPI plugins from the specified directory.
572 const char kExtraPluginDir[] = "extra-plugin-dir";
573
574 // Load an NPAPI plugin from the specified path. 603 // Load an NPAPI plugin from the specified path.
575 const char kLoadPlugin[] = "load-plugin"; 604 const char kLoadPlugin[] = "load-plugin";
576 605
577 // Disable discovering third-party plug-ins. Effectively loading only
578 // ones shipped with the browser plus third-party ones as specified by
579 // --extra-plugin-dir and --load-plugin switches.
580 const char kDisablePluginsDiscovery[] = "disable-plugins-discovery";
581
582 // Sets the minimum log level. Valid values are from 0 to 3: 606 // Sets the minimum log level. Valid values are from 0 to 3:
583 // INFO = 0, WARNING = 1, LOG_ERROR = 2, LOG_FATAL = 3. 607 // INFO = 0, WARNING = 1, LOG_ERROR = 2, LOG_FATAL = 3.
584 const char kLoggingLevel[] = "log-level"; 608 const char kLoggingLevel[] = "log-level";
585 609
610 // Enables displaying net log events on the command line, or writing the events
611 // to a separate file if a file name is given.
612 const char kLogNetLog[] = "log-net-log";
613
586 // Make plugin processes log their sent and received messages to VLOG(1). 614 // Make plugin processes log their sent and received messages to VLOG(1).
587 const char kLogPluginMessages[] = "log-plugin-messages"; 615 const char kLogPluginMessages[] = "log-plugin-messages";
588 616
617 // Sets the width and height above which a composited layer will get tiled.
618 const char kMaxUntiledLayerHeight[] = "max-untiled-layer-height";
619 const char kMaxUntiledLayerWidth[] = "max-untiled-layer-width";
620
589 // Sample memory usage with high frequency and store the results to the 621 // Sample memory usage with high frequency and store the results to the
590 // Renderer.Memory histogram. Used in memory tests. 622 // Renderer.Memory histogram. Used in memory tests.
591 const char kMemoryMetrics[] = "memory-metrics"; 623 const char kMemoryMetrics[] = "memory-metrics";
592 624
593 // Mutes audio sent to the audio device so it is not audible during 625 // Mutes audio sent to the audio device so it is not audible during
594 // automated testing. 626 // automated testing.
595 const char kMuteAudio[] = "mute-audio"; 627 const char kMuteAudio[] = "mute-audio";
596 628
597 // Don't send HTTP-Referer headers. 629 // Don't send HTTP-Referer headers.
598 const char kNoReferrers[] = "no-referrers"; 630 const char kNoReferrers[] = "no-referrers";
599 631
600 // Disables the sandbox for all process types that are normally sandboxed. 632 // Disables the sandbox for all process types that are normally sandboxed.
601 const char kNoSandbox[] = "no-sandbox"; 633 const char kNoSandbox[] = "no-sandbox";
602 634
603 // Enables the sandboxed processes to run without a job object assigned to them. 635 // Enables or disables history navigation in response to horizontal overscroll.
604 // This flag is required to allow Chrome to run in RemoteApps or Citrix. This 636 // Set the value to '1' to enable the feature, and set to '0' to disable.
605 // flag can reduce the security of the sandboxed processes and allow them to do 637 // Defaults to enabled.
606 // certain API calls like shut down Windows or access the clipboard. Also we 638 const char kOverscrollHistoryNavigation[] =
607 // lose the chance to kill some processes until the outer job that owns them 639 "overscroll-history-navigation";
608 // finishes.
609 const char kAllowNoSandboxJob[] = "allow-no-sandbox-job";
610 640
611 // Specifies a command that should be used to launch the plugin process. Useful 641 // Specifies a command that should be used to launch the plugin process. Useful
612 // for running the plugin process through purify or quantify. Ex: 642 // for running the plugin process through purify or quantify. Ex:
613 // --plugin-launcher="path\to\purify /Run=yes" 643 // --plugin-launcher="path\to\purify /Run=yes"
614 const char kPluginLauncher[] = "plugin-launcher"; 644 const char kPluginLauncher[] = "plugin-launcher";
615 645
616 // Tells the plugin process the path of the plugin to load 646 // Tells the plugin process the path of the plugin to load
617 const char kPluginPath[] = "plugin-path"; 647 const char kPluginPath[] = "plugin-path";
618 648
619 // Causes the process to run as a plugin subprocess. 649 // Causes the process to run as a plugin subprocess.
620 const char kPluginProcess[] = "plugin"; 650 const char kPluginProcess[] = "plugin";
621 651
622 // Causes the plugin process to display a dialog on launch. 652 // Causes the plugin process to display a dialog on launch.
623 const char kPluginStartupDialog[] = "plugin-startup-dialog"; 653 const char kPluginStartupDialog[] = "plugin-startup-dialog";
624 654
625 // Argument to the process type that indicates a PPAPI broker process type. 655 // Argument to the process type that indicates a PPAPI broker process type.
626 const char kPpapiBrokerProcess[] = "ppapi-broker"; 656 const char kPpapiBrokerProcess[] = "ppapi-broker";
627 657
658 // "Command-line" arguments for the PPAPI Flash; used for debugging options.
659 const char kPpapiFlashArgs[] = "ppapi-flash-args";
660
628 // Runs PPAPI (Pepper) plugins in-process. 661 // Runs PPAPI (Pepper) plugins in-process.
629 const char kPpapiInProcess[] = "ppapi-in-process"; 662 const char kPpapiInProcess[] = "ppapi-in-process";
630 663
631 // Like kPluginLauncher for PPAPI plugins. 664 // Like kPluginLauncher for PPAPI plugins.
632 const char kPpapiPluginLauncher[] = "ppapi-plugin-launcher"; 665 const char kPpapiPluginLauncher[] = "ppapi-plugin-launcher";
633 666
634 // Argument to the process type that indicates a PPAPI plugin process type. 667 // Argument to the process type that indicates a PPAPI plugin process type.
635 const char kPpapiPluginProcess[] = "ppapi"; 668 const char kPpapiPluginProcess[] = "ppapi";
636 669
637 // Causes the PPAPI sub process to display a dialog on launch. Be sure to use 670 // Causes the PPAPI sub process to display a dialog on launch. Be sure to use
638 // --no-sandbox as well or the sandbox won't allow the dialog to display. 671 // --no-sandbox as well or the sandbox won't allow the dialog to display.
639 const char kPpapiStartupDialog[] = "ppapi-startup-dialog"; 672 const char kPpapiStartupDialog[] = "ppapi-startup-dialog";
640 673
641 // Runs a single process for each site (i.e., group of pages from the same 674 // Runs a single process for each site (i.e., group of pages from the same
642 // registered domain) the user visits. We default to using a renderer process 675 // registered domain) the user visits. We default to using a renderer process
643 // for each site instance (i.e., group of pages from the same registered 676 // for each site instance (i.e., group of pages from the same registered
644 // domain with script connections to each other). 677 // domain with script connections to each other).
645 const char kProcessPerSite[] = "process-per-site"; 678 const char kProcessPerSite[] = "process-per-site";
646 679
647 // Runs each set of script-connected tabs (i.e., a BrowsingInstance) in its own 680 // Runs each set of script-connected tabs (i.e., a BrowsingInstance) in its own
648 // renderer process. We default to using a renderer process for each 681 // renderer process. We default to using a renderer process for each
649 // site instance (i.e., group of pages from the same registered domain with 682 // site instance (i.e., group of pages from the same registered domain with
650 // script connections to each other). 683 // script connections to each other).
651 const char kProcessPerTab[] = "process-per-tab"; 684 const char kProcessPerTab[] = "process-per-tab";
652 685
653 // The value of this switch determines whether the process is started as a 686 // The value of this switch determines whether the process is started as a
654 // renderer or plugin host. If it's empty, it's the browser. 687 // renderer or plugin host. If it's empty, it's the browser.
655 const char kProcessType[] = "type"; 688 const char kProcessType[] = "type";
656 689
690 // Reduces the GPU process sandbox to be less strict.
691 const char kReduceGpuSandbox[] = "reduce-gpu-sandbox";
692
657 // Register Pepper plugins (see pepper_plugin_registry.cc for its format). 693 // Register Pepper plugins (see pepper_plugin_registry.cc for its format).
658 const char kRegisterPepperPlugins[] = "register-pepper-plugins"; 694 const char kRegisterPepperPlugins[] = "register-pepper-plugins";
659 695
696
660 // Enables remote debug over HTTP on the specified port. 697 // Enables remote debug over HTTP on the specified port.
661 const char kRemoteDebuggingPort[] = "remote-debugging-port"; 698 const char kRemoteDebuggingPort[] = "remote-debugging-port";
662 699
663 #if defined(OS_ANDROID)
664 // Enables remote debug over HTTP on the specified socket name.
665 const char kRemoteDebuggingSocketName[] = "remote-debugging-socket-name";
666 #endif
667
668 // Causes the renderer process to throw an assertion on launch. 700 // Causes the renderer process to throw an assertion on launch.
669 const char kRendererAssertTest[] = "renderer-assert-test"; 701 const char kRendererAssertTest[] = "renderer-assert-test";
670 702
671 // On POSIX only: the contents of this flag are prepended to the renderer 703 // On POSIX only: the contents of this flag are prepended to the renderer
672 // command line. Useful values might be "valgrind" or "xterm -e gdb --args". 704 // command line. Useful values might be "valgrind" or "xterm -e gdb --args".
673 const char kRendererCmdPrefix[] = "renderer-cmd-prefix"; 705 const char kRendererCmdPrefix[] = "renderer-cmd-prefix";
674 706
675 // Causes the process to run as renderer instead of as browser. 707 // Causes the process to run as renderer instead of as browser.
676 const char kRendererProcess[] = "renderer"; 708 const char kRendererProcess[] = "renderer";
677 709
678 // Enable the Vtune profiler support.
679 const char kEnableVtune[] = "enable-vtune-support";
680
681 // Overrides the default/calculated limit to the number of renderer processes. 710 // Overrides the default/calculated limit to the number of renderer processes.
682 // Very high values for this setting can lead to high memory/resource usage 711 // Very high values for this setting can lead to high memory/resource usage
683 // or instability. 712 // or instability.
684 const char kRendererProcessLimit[] = "renderer-process-limit"; 713 const char kRendererProcessLimit[] = "renderer-process-limit";
685 714
686 // Causes the renderer process to display a dialog on launch. 715 // Causes the renderer process to display a dialog on launch.
687 const char kRendererStartupDialog[] = "renderer-startup-dialog"; 716 const char kRendererStartupDialog[] = "renderer-startup-dialog";
688 717
689 // Enables accelerated compositing for overflow scroll. Promotes eligible 718 // Enables or disables scroll end effect in response to vertical overscroll.
690 // overflow:scroll elements to layers to enable accelerated scrolling for them. 719 // Set the value to '1' to enable the feature, and set to '0' to disable.
691 const char kEnableAcceleratedOverflowScroll[] = 720 // Defaults to disabled.
692 "enable-accelerated-overflow-scroll"; 721 const char kScrollEndEffect[] = "scroll-end-effect";
693
694 // Disables accelerated compositing for overflow scroll.
695 const char kDisableAcceleratedOverflowScroll[] =
696 "disable-accelerated-overflow-scroll";
697
698 // Enables accelerated compositing for scrollable frames for accelerated
699 // scrolling for them. Requires kForceCompositingMode.
700 const char kEnableAcceleratedScrollableFrames[] =
701 "enable-accelerated-scrollable-frames";
702
703 // Enables accelerated scrolling by the compositor for frames. Requires
704 // kForceCompositingMode and kEnableAcceleratedScrollableFrames.
705 const char kEnableCompositedScrollingForFrames[] =
706 "enable-composited-scrolling-for-frames";
707 722
708 // Visibly render a border around paint rects in the web page to help debug 723 // Visibly render a border around paint rects in the web page to help debug
709 // and study painting behavior. 724 // and study painting behavior.
710 const char kShowPaintRects[] = "show-paint-rects"; 725 const char kShowPaintRects[] = "show-paint-rects";
711 726
712 // Map mouse input events into touch gesture events. Useful for debugging touch 727 // Map mouse input events into touch gesture events. Useful for debugging touch
713 // gestures without needing a touchscreen. 728 // gestures without needing a touchscreen.
714 const char kSimulateTouchScreenWithMouse[] = 729 const char kSimulateTouchScreenWithMouse[] =
715 "simulate-touch-screen-with-mouse"; 730 "simulate-touch-screen-with-mouse";
716 731
(...skipping 13 matching lines...) Expand all
730 // TODO(irobert): Implement the cross-site document blocking in 745 // TODO(irobert): Implement the cross-site document blocking in
731 // http://crbug.com/159215. 746 // http://crbug.com/159215.
732 const char kSitePerProcess[] = "site-per-process"; 747 const char kSitePerProcess[] = "site-per-process";
733 748
734 // Skip gpu info collection, blacklist loading, and blacklist auto-update 749 // Skip gpu info collection, blacklist loading, and blacklist auto-update
735 // scheduling at browser startup time. 750 // scheduling at browser startup time.
736 // Therefore, all GPU features are available, and about:gpu page shows empty 751 // Therefore, all GPU features are available, and about:gpu page shows empty
737 // content. The switch is intended only for tests. 752 // content. The switch is intended only for tests.
738 const char kSkipGpuDataLoading[] = "skip-gpu-data-loading"; 753 const char kSkipGpuDataLoading[] = "skip-gpu-data-loading";
739 754
755 // Specifies the request key for the continuous speech recognition webservice.
756 const char kSpeechRecognitionWebserviceKey[] = "speech-service-key";
757
758 // Specifies if the |StatsCollectionController| needs to be bound in the
759 // renderer. This binding happens on per-frame basis and hence can potentially
760 // be a performance bottleneck. One should only enable it when running a test
761 // that needs to access the provided statistics.
762 const char kStatsCollectionController[] =
763 "enable-stats-collection-bindings";
764
765 // Upscale defaults to "good".
766 const char kTabCaptureDownscaleQuality[] = "tab-capture-downscale-quality";
767
740 // Scaling quality for capturing tab. Should be one of "fast", "good" or "best". 768 // Scaling quality for capturing tab. Should be one of "fast", "good" or "best".
741 // One flag for upscaling, one for downscaling. 769 // One flag for upscaling, one for downscaling.
742 // Upscale defaults to "best". 770 // Upscale defaults to "best".
743 const char kTabCaptureUpscaleQuality[] = "tab-capture-upscale-quality"; 771 const char kTabCaptureUpscaleQuality[] = "tab-capture-upscale-quality";
744 // Upscale defaults to "good".
745 const char kTabCaptureDownscaleQuality[] = "tab-capture-downscale-quality";
746 772
747 // GestureTapDown events are deferred by this many miillseconds before 773 // GestureTapDown events are deferred by this many miillseconds before
748 // sending them to the renderer. 774 // sending them to the renderer.
749 const char kTapDownDeferralTimeMs[] = "tap-down-deferral-time"; 775 const char kTapDownDeferralTimeMs[] = "tap-down-deferral-time";
750 776
751 // Runs the security test for the renderer sandbox.
752 const char kTestSandbox[] = "test-sandbox";
753
754 // Allows for forcing socket connections to http/https to use fixed ports. 777 // Allows for forcing socket connections to http/https to use fixed ports.
755 const char kTestingFixedHttpPort[] = "testing-fixed-http-port"; 778 const char kTestingFixedHttpPort[] = "testing-fixed-http-port";
756 const char kTestingFixedHttpsPort[] = "testing-fixed-https-port"; 779 const char kTestingFixedHttpsPort[] = "testing-fixed-https-port";
757 780
781 // Runs the security test for the renderer sandbox.
782 const char kTestSandbox[] = "test-sandbox";
783
758 // Causes TRACE_EVENT flags to be recorded from startup. Optionally, can 784 // Causes TRACE_EVENT flags to be recorded from startup. Optionally, can
759 // specify the specific trace categories to include (e.g. 785 // specify the specific trace categories to include (e.g.
760 // --trace-startup=base,net) otherwise, all events are recorded. Setting this 786 // --trace-startup=base,net) otherwise, all events are recorded. Setting this
761 // flag results in the first call to BeginTracing() to receive all trace events 787 // flag results in the first call to BeginTracing() to receive all trace events
762 // since startup. In Chrome, you may find --trace-startup-file and 788 // since startup. In Chrome, you may find --trace-startup-file and
763 // --trace-startup-duration to control the auto-saving of the trace (not 789 // --trace-startup-duration to control the auto-saving of the trace (not
764 // supported in the base-only TraceLog component). 790 // supported in the base-only TraceLog component).
765 const char kTraceStartup[] = "trace-startup"; 791 const char kTraceStartup[] = "trace-startup";
766 792
793 // Sets the time in seconds until startup tracing ends. If omitted a default of
794 // 5 seconds is used. Has no effect without --trace-startup, or if
795 // --startup-trace-file=none was supplied.
796 const char kTraceStartupDuration[] = "trace-startup-duration";
797
767 // If supplied, sets the file which startup tracing will be stored into, if 798 // If supplied, sets the file which startup tracing will be stored into, if
768 // omitted the default will be used "chrometrace.log" in the current directory. 799 // omitted the default will be used "chrometrace.log" in the current directory.
769 // Has no effect unless --trace-startup is also supplied. 800 // Has no effect unless --trace-startup is also supplied.
770 // Example: --trace-startup --trace-startup-file=/tmp/trace_event.log 801 // Example: --trace-startup --trace-startup-file=/tmp/trace_event.log
771 // As a special case, can be set to 'none' - this disables automatically saving 802 // As a special case, can be set to 'none' - this disables automatically saving
772 // the result to a file and the first manually recorded trace will then receive 803 // the result to a file and the first manually recorded trace will then receive
773 // all events since startup. 804 // all events since startup.
774 const char kTraceStartupFile[] = "trace-startup-file"; 805 const char kTraceStartupFile[] = "trace-startup-file";
775 806
776 // Sets the time in seconds until startup tracing ends. If omitted a default of 807
777 // 5 seconds is used. Has no effect without --trace-startup, or if
778 // --startup-trace-file=none was supplied.
779 const char kTraceStartupDuration[] = "trace-startup-duration";
780 808
781 // Prioritizes the UI's command stream in the GPU process 809 // Prioritizes the UI's command stream in the GPU process
782 extern const char kUIPrioritizeInGpuProcess[] = 810 extern const char kUIPrioritizeInGpuProcess[] =
783 "ui-prioritize-in-gpu-process"; 811 "ui-prioritize-in-gpu-process";
784 812
813 // Use fake device for MediaStream to replace actual camera and microphone.
814 const char kUseFakeDeviceForMediaStream[] = "use-fake-device-for-media-stream";
815
816 // Bypass the media stream infobar by selecting the default device for media
817 // streams (e.g. WebRTC). Works with --use-fake-device-for-media-stream.
818 const char kUseFakeUIForMediaStream[] = "use-fake-ui-for-media-stream";
819
820 // Use hardware gpu, if available, for tests.
821 const char kUseGpuInTests[] = "use-gpu-in-tests";
822
823 // Set when Chromium should use a mobile user agent.
824 const char kUseMobileUserAgent[] = "use-mobile-user-agent";
825
785 // A string used to override the default user agent with a custom one. 826 // A string used to override the default user agent with a custom one.
786 const char kUserAgent[] = "user-agent"; 827 const char kUserAgent[] = "user-agent";
787 828
788 // On POSIX only: the contents of this flag are prepended to the utility 829 // On POSIX only: the contents of this flag are prepended to the utility
789 // process command line. Useful values might be "valgrind" or "xterm -e gdb 830 // process command line. Useful values might be "valgrind" or "xterm -e gdb
790 // --args". 831 // --args".
791 const char kUtilityCmdPrefix[] = "utility-cmd-prefix"; 832 const char kUtilityCmdPrefix[] = "utility-cmd-prefix";
792 833
793 // Causes the process to run as a utility subprocess. 834 // Causes the process to run as a utility subprocess.
794 const char kUtilityProcess[] = "utility"; 835 const char kUtilityProcess[] = "utility";
(...skipping 16 matching lines...) Expand all
811 852
812 // Causes the process to run as a worker subprocess. 853 // Causes the process to run as a worker subprocess.
813 const char kWorkerProcess[] = "worker"; 854 const char kWorkerProcess[] = "worker";
814 855
815 // The prefix used when starting the zygote process. (i.e. 'gdb --args') 856 // The prefix used when starting the zygote process. (i.e. 'gdb --args')
816 const char kZygoteCmdPrefix[] = "zygote-cmd-prefix"; 857 const char kZygoteCmdPrefix[] = "zygote-cmd-prefix";
817 858
818 // Causes the process to run as a renderer zygote. 859 // Causes the process to run as a renderer zygote.
819 const char kZygoteProcess[] = "zygote"; 860 const char kZygoteProcess[] = "zygote";
820 861
821 // Enables moving cursor by word in visual order. 862 #if defined(ENABLE_WEBRTC)
822 const char kEnableVisualWordMovement[] = "enable-visual-word-movement"; 863 // Disable WebRTC device enumeration.
864 const char kDisableDeviceEnumeration[] = "disable-device-enumeration";
823 865
824 // Set when Chromium should use a mobile user agent. 866 // Enable WebRTC DataChannels SCTP wire protocol support.
825 const char kUseMobileUserAgent[] = "use-mobile-user-agent"; 867 const char kEnableSCTPDataChannels[] = "enable-sctp-data-channels";
868
869 // Enables WebRTC AEC recordings.
870 const char kEnableWebRtcAecRecordings[] = "enable-webrtc-aec-recordings";
871
872 // Enables HW decode acceleration for WebRTC.
873 const char kEnableWebRtcHWDecoding[] = "enable-webrtc-hw-decoding";
874
875 #endif
826 876
827 #if defined(OS_ANDROID) 877 #if defined(OS_ANDROID)
828 // Disable history logging for media elements. 878 // Disables device motion events.
829 const char kDisableMediaHistoryLogging[] = "disable-media-history"; 879 const char kDisableDeviceMotion[] = "disable-device-motion";
830 880
831 // Disable user gesture requirement for media playback. 881 // Disable user gesture requirement for media playback.
832 const char kDisableGestureRequirementForMediaPlayback[] = 882 const char kDisableGestureRequirementForMediaPlayback[] =
833 "disable-gesture-requirement-for-media-playback"; 883 "disable-gesture-requirement-for-media-playback";
834 884
885 // Disable history logging for media elements.
886 const char kDisableMediaHistoryLogging[] = "disable-media-history";
887
888 // Disable overscroll edge effects like those found in Android views.
889 const char kDisableOverscrollEdgeEffect[] = "disable-overscroll-edge-effect";
890
891 // WebRTC is enabled by default on Android.
892 const char kDisableWebRTC[] = "disable-webrtc";
893
894 // Enable the recognition part of the Web Speech API.
895 const char kEnableSpeechRecognition[] = "enable-speech-recognition";
896
897 // Don't display any scrollbars. This is useful for Android WebView where
898 // the system manages the scrollbars instead.
899 const char kHideScrollbars[] = "hide-scrollbars";
900
835 // The telephony region (ISO country code) to use in phone number detection. 901 // The telephony region (ISO country code) to use in phone number detection.
836 const char kNetworkCountryIso[] = "network-country-iso"; 902 const char kNetworkCountryIso[] = "network-country-iso";
837 903
838 // Disable overscroll edge effects like those found in Android views. 904 // Enables remote debug over HTTP on the specified socket name.
839 const char kDisableOverscrollEdgeEffect[] = "disable-overscroll-edge-effect"; 905 const char kRemoteDebuggingSocketName[] = "remote-debugging-socket-name";
840 #endif 906 #endif
841 907
842 #if defined(OS_CHROMEOS) 908 #if defined(OS_CHROMEOS)
843 // Disables panel fitting (used for mirror mode). 909 // Disables panel fitting (used for mirror mode).
844 const char kDisablePanelFitting[] = "disable-panel-fitting"; 910 const char kDisablePanelFitting[] = "disable-panel-fitting";
845 #endif 911 #endif
846 912
847 #if defined(OS_POSIX)
848 // Causes the child processes to cleanly exit via calling exit().
849 const char kChildCleanExit[] = "child-clean-exit";
850 #endif
851
852 #if defined(OS_MACOSX) && !defined(OS_IOS) 913 #if defined(OS_MACOSX) && !defined(OS_IOS)
853 const char kDisableCarbonInterposing[] = "disable-carbon-interposing"; 914 const char kDisableCarbonInterposing[] = "disable-carbon-interposing";
854 915
855 // Use core animation to draw the RenderWidgetHostView on Mac. 916 // Use core animation to draw the RenderWidgetHostView on Mac.
856 const char kUseCoreAnimation[] = "use-core-animation"; 917 const char kUseCoreAnimation[] = "use-core-animation";
857 #endif 918 #endif
858 919
859 // Disables the use of a 3D software rasterizer. 920 #if defined(OS_POSIX)
860 const char kDisableSoftwareRasterizer[] = "disable-software-rasterizer"; 921 // Causes the child processes to cleanly exit via calling exit().
922 const char kChildCleanExit[] = "child-clean-exit";
923 #endif
861 924
862 #if defined(USE_AURA) 925 #if defined(USE_AURA)
863 // Forces usage of the test compositor. Needed to run ui tests on bots. 926 // Forces usage of the test compositor. Needed to run ui tests on bots.
864 extern const char kTestCompositor[] = "test-compositor"; 927 extern const char kTestCompositor[] = "test-compositor";
865 #endif 928 #endif
866 929
867 // Sets the tile size used by composited layers. 930 // Don't dump stuff here, follow the same order as the header.
868 const char kDefaultTileWidth[] = "default-tile-width";
869 const char kDefaultTileHeight[] = "default-tile-height";
870
871 // Sets the width and height above which a composited layer will get tiled.
872 const char kMaxUntiledLayerWidth[] = "max-untiled-layer-width";
873 const char kMaxUntiledLayerHeight[] = "max-untiled-layer-height";
874
875 const char kEnableFixedPositionCreatesStackingContext[]
876 = "enable-fixed-position-creates-stacking-context";
877 const char kDisableFixedPositionCreatesStackingContext[]
878 = "disable-fixed-position-creates-stacking-context";
879
880 // Defer image decoding in WebKit until painting.
881 const char kEnableDeferredImageDecoding[] = "enable-deferred-image-decoding";
882
883 // Use a begin frame signal from browser to renderer to schedule rendering.
884 const char kEnableBeginFrameScheduling[] = "enable-begin-frame-scheduling";
885
886 // Synchronize delivery and response of input events to and from the renderer.
887 const char kEnableBrowserInputController[] = "enable-browser-input-controller";
888
889 // Enables or disables history navigation in response to horizontal overscroll.
890 // Set the value to '1' to enable the feature, and set to '0' to disable.
891 // Defaults to enabled.
892 const char kOverscrollHistoryNavigation[] =
893 "overscroll-history-navigation";
894
895 // Enables or disables scroll end effect in response to vertical overscroll.
896 // Set the value to '1' to enable the feature, and set to '0' to disable.
897 // Defaults to disabled.
898 const char kScrollEndEffect[] = "scroll-end-effect";
899
900 // Forward overscroll event data from the renderer to the browser.
901 const char kEnableOverscrollNotifications[] = "enable-overscroll-notifications";
902
903 // Enables WebGL extensions not yet approved by the community.
904 const char kEnableWebGLDraftExtensions[] = "enable-webgl-draft-extensions";
905
906 // Enables/disables accelerated compositing for backgrounds of root layers with
907 // background-attachment: fixed. Requires kForceCompositingMode.
908 const char kDisableAcceleratedFixedRootBackground[] =
909 "disable-accelerated-fixed-root-background";
910 const char kEnableAcceleratedFixedRootBackground[] =
911 "enable-accelerated-fixed-root-background";
912 931
913 } // namespace switches 932 } // namespace switches
OLDNEW
« no previous file with comments | « content/public/common/content_switches.h ('k') | content/renderer/pepper/host_globals.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698