| OLD | NEW |
| 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 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 | 8 |
| 9 namespace switches { | 9 namespace switches { |
| 10 | 10 |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 // Disables LCD text. | 227 // Disables LCD text. |
| 228 const char kDisableLCDText[] = "disable-lcd-text"; | 228 const char kDisableLCDText[] = "disable-lcd-text"; |
| 229 | 229 |
| 230 // Disable LocalStorage. | 230 // Disable LocalStorage. |
| 231 const char kDisableLocalStorage[] = "disable-local-storage"; | 231 const char kDisableLocalStorage[] = "disable-local-storage"; |
| 232 | 232 |
| 233 // Force logging to be disabled. Logging is enabled by default in debug | 233 // Force logging to be disabled. Logging is enabled by default in debug |
| 234 // builds. | 234 // builds. |
| 235 const char kDisableLogging[] = "disable-logging"; | 235 const char kDisableLogging[] = "disable-logging"; |
| 236 | 236 |
| 237 // Disable rasterizer that writes directly to GPU memory. | |
| 238 // Overrides the kEnableMapImage flag. | |
| 239 const char kDisableMapImage[] = "disable-map-image"; | |
| 240 | |
| 241 // Disables Media Source API (i.e., the MediaSource object). | 237 // Disables Media Source API (i.e., the MediaSource object). |
| 242 const char kDisableMediaSource[] = "disable-media-source"; | 238 const char kDisableMediaSource[] = "disable-media-source"; |
| 243 | 239 |
| 244 // Disable Pepper3D. | 240 // Disable Pepper3D. |
| 245 const char kDisablePepper3d[] = "disable-pepper-3d"; | 241 const char kDisablePepper3d[] = "disable-pepper-3d"; |
| 246 | 242 |
| 247 // Disables compositor-accelerated touch-screen pinch gestures. | 243 // Disables compositor-accelerated touch-screen pinch gestures. |
| 248 const char kDisablePinch[] = "disable-pinch"; | 244 const char kDisablePinch[] = "disable-pinch"; |
| 249 | 245 |
| 250 // Prevent plugins from running. | 246 // Prevent plugins from running. |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 | 298 |
| 303 // Don't enforce the same-origin policy. (Used by people testing their sites.) | 299 // Don't enforce the same-origin policy. (Used by people testing their sites.) |
| 304 const char kDisableWebSecurity[] = "disable-web-security"; | 300 const char kDisableWebSecurity[] = "disable-web-security"; |
| 305 | 301 |
| 306 // Disables support for XSLT. | 302 // Disables support for XSLT. |
| 307 const char kDisableXSLT[] = "disable-xslt"; | 303 const char kDisableXSLT[] = "disable-xslt"; |
| 308 | 304 |
| 309 // Disables Blink's XSSAuditor. The XSSAuditor mitigates reflective XSS. | 305 // Disables Blink's XSSAuditor. The XSSAuditor mitigates reflective XSS. |
| 310 const char kDisableXSSAuditor[] = "disable-xss-auditor"; | 306 const char kDisableXSSAuditor[] = "disable-xss-auditor"; |
| 311 | 307 |
| 308 // Disable rasterizer that writes directly to GPU memory associated with tiles. |
| 309 // Overrides the kEnableZeroCopy flag. |
| 310 const char kDisableZeroCopy[] = "disable-zero-copy"; |
| 311 |
| 312 // Specifies if the |DOMAutomationController| needs to be bound in the | 312 // Specifies if the |DOMAutomationController| needs to be bound in the |
| 313 // renderer. This binding happens on per-frame basis and hence can potentially | 313 // renderer. This binding happens on per-frame basis and hence can potentially |
| 314 // be a performance bottleneck. One should only enable it when automating dom | 314 // be a performance bottleneck. One should only enable it when automating dom |
| 315 // based tests. | 315 // based tests. |
| 316 const char kDomAutomationController[] = "dom-automation"; | 316 const char kDomAutomationController[] = "dom-automation"; |
| 317 | 317 |
| 318 // Enable bleeding-edge code to make Chrome draw content faster. The changes | 318 // Enable bleeding-edge code to make Chrome draw content faster. The changes |
| 319 // behind this path are very likely to break lots of content. | 319 // behind this path are very likely to break lots of content. |
| 320 // ** DO NOT use this flag unless you know what you are doing. ** | 320 // ** DO NOT use this flag unless you know what you are doing. ** |
| 321 const char kEnableBleedingEdgeRenderingFastPaths[] = | 321 const char kEnableBleedingEdgeRenderingFastPaths[] = |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 // Paint content on the compositor thread instead of the main thread. | 437 // Paint content on the compositor thread instead of the main thread. |
| 438 const char kEnableImplSidePainting[] = "enable-impl-side-painting"; | 438 const char kEnableImplSidePainting[] = "enable-impl-side-painting"; |
| 439 | 439 |
| 440 // Enables support for inband text tracks in media content. | 440 // Enables support for inband text tracks in media content. |
| 441 const char kEnableInbandTextTracks[] = "enable-inband-text-tracks"; | 441 const char kEnableInbandTextTracks[] = "enable-inband-text-tracks"; |
| 442 | 442 |
| 443 // Force logging to be enabled. Logging is disabled by default in release | 443 // Force logging to be enabled. Logging is disabled by default in release |
| 444 // builds. | 444 // builds. |
| 445 const char kEnableLogging[] = "enable-logging"; | 445 const char kEnableLogging[] = "enable-logging"; |
| 446 | 446 |
| 447 // Enable rasterizer that writes directly to GPU memory. | |
| 448 const char kEnableMapImage[] = "enable-map-image"; | |
| 449 | |
| 450 // Enables the memory benchmarking extension | 447 // Enables the memory benchmarking extension |
| 451 const char kEnableMemoryBenchmarking[] = "enable-memory-benchmarking"; | 448 const char kEnableMemoryBenchmarking[] = "enable-memory-benchmarking"; |
| 452 | 449 |
| 453 // Make the values returned to window.performance.memory more granular and more | 450 // Make the values returned to window.performance.memory more granular and more |
| 454 // up to date in shared worker. Without this flag, the memory information is | 451 // up to date in shared worker. Without this flag, the memory information is |
| 455 // still available, but it is bucketized and updated less frequently. | 452 // still available, but it is bucketized and updated less frequently. |
| 456 const char kEnableSharedWorkerMemoryInfo[] = | 453 const char kEnableSharedWorkerMemoryInfo[] = |
| 457 "enable-shared-worker-memory-info"; | 454 "enable-shared-worker-memory-info"; |
| 458 | 455 |
| 459 // On Windows, converts the page to the currently-installed monitor profile. | 456 // On Windows, converts the page to the currently-installed monitor profile. |
| 460 // This does NOT enable color management for images. The source is still | 457 // This does NOT enable color management for images. The source is still |
| 461 // assumed to be sRGB. | 458 // assumed to be sRGB. |
| 462 const char kEnableMonitorProfile[] = "enable-monitor-profile"; | 459 const char kEnableMonitorProfile[] = "enable-monitor-profile"; |
| 463 | 460 |
| 464 // Enables use of cache if offline, even if it's stale | 461 // Enables use of cache if offline, even if it's stale |
| 465 const char kEnableOfflineCacheAccess[] = "enable-offline-cache-access"; | 462 const char kEnableOfflineCacheAccess[] = "enable-offline-cache-access"; |
| 466 | 463 |
| 464 // Enable rasterizer that writes directly to GPU memory. |
| 465 const char kEnableOneCopy[] = "enable-one-copy"; |
| 466 |
| 467 // Enables use of hardware overlay for fullscreen video playback. Android only. | 467 // Enables use of hardware overlay for fullscreen video playback. Android only. |
| 468 const char kEnableOverlayFullscreenVideo[] = "enable-overlay-fullscreen-video"; | 468 const char kEnableOverlayFullscreenVideo[] = "enable-overlay-fullscreen-video"; |
| 469 | 469 |
| 470 // Disables blink subtitle and media control on top of overlay fullscreen video. | 470 // Disables blink subtitle and media control on top of overlay fullscreen video. |
| 471 const char kDisableOverlayFullscreenVideoSubtitle[] = | 471 const char kDisableOverlayFullscreenVideoSubtitle[] = |
| 472 "disable-overlay-fullscreen-video-subtitle"; | 472 "disable-overlay-fullscreen-video-subtitle"; |
| 473 | 473 |
| 474 // Forward overscroll event data from the renderer to the browser. | 474 // Forward overscroll event data from the renderer to the browser. |
| 475 const char kEnableOverscrollNotifications[] = "enable-overscroll-notifications"; | 475 const char kEnableOverscrollNotifications[] = "enable-overscroll-notifications"; |
| 476 | 476 |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 574 | 574 |
| 575 // Enable SVG Animations on the Web Animations model. | 575 // Enable SVG Animations on the Web Animations model. |
| 576 const char kEnableWebAnimationsSVG[] = "enable-web-animations-svg"; | 576 const char kEnableWebAnimationsSVG[] = "enable-web-animations-svg"; |
| 577 | 577 |
| 578 // Enables WebGL extensions not yet approved by the community. | 578 // Enables WebGL extensions not yet approved by the community. |
| 579 const char kEnableWebGLDraftExtensions[] = "enable-webgl-draft-extensions"; | 579 const char kEnableWebGLDraftExtensions[] = "enable-webgl-draft-extensions"; |
| 580 | 580 |
| 581 // Enables Web MIDI API. | 581 // Enables Web MIDI API. |
| 582 const char kEnableWebMIDI[] = "enable-web-midi"; | 582 const char kEnableWebMIDI[] = "enable-web-midi"; |
| 583 | 583 |
| 584 // Enable rasterizer that writes directly to GPU memory associated with tiles. |
| 585 const char kEnableZeroCopy[] = "enable-zero-copy"; |
| 586 |
| 584 // Load NPAPI plugins from the specified directory. | 587 // Load NPAPI plugins from the specified directory. |
| 585 const char kExtraPluginDir[] = "extra-plugin-dir"; | 588 const char kExtraPluginDir[] = "extra-plugin-dir"; |
| 586 | 589 |
| 587 // Enable force_compositing_mode in layout tests. | 590 // Enable force_compositing_mode in layout tests. |
| 588 const char kForceCompositingMode[] = "force-compositing-mode"; | 591 const char kForceCompositingMode[] = "force-compositing-mode"; |
| 589 | 592 |
| 590 // Some field trials may be randomized in the browser, and the randomly selected | 593 // Some field trials may be randomized in the browser, and the randomly selected |
| 591 // outcome needs to be propagated to the renderer. For instance, this is used | 594 // outcome needs to be propagated to the renderer. For instance, this is used |
| 592 // to modify histograms recorded in the renderer, or to get the renderer to | 595 // to modify histograms recorded in the renderer, or to get the renderer to |
| 593 // also set of its state (initialize, or not initialize components) to match the | 596 // also set of its state (initialize, or not initialize components) to match the |
| (...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1010 | 1013 |
| 1011 // Disables support for Core Animation plugins. This is triggered when | 1014 // Disables support for Core Animation plugins. This is triggered when |
| 1012 // accelerated compositing is disabled. See http://crbug.com/122430 . | 1015 // accelerated compositing is disabled. See http://crbug.com/122430 . |
| 1013 const char kDisableCoreAnimationPlugins[] = | 1016 const char kDisableCoreAnimationPlugins[] = |
| 1014 "disable-core-animation-plugins"; | 1017 "disable-core-animation-plugins"; |
| 1015 #endif | 1018 #endif |
| 1016 | 1019 |
| 1017 // Don't dump stuff here, follow the same order as the header. | 1020 // Don't dump stuff here, follow the same order as the header. |
| 1018 | 1021 |
| 1019 } // namespace switches | 1022 } // namespace switches |
| OLD | NEW |