 Chromium Code Reviews
 Chromium Code Reviews Issue 11186039:
  Move CC switches to cc/switches.h.  (Closed) 
  Base URL: http://git.chromium.org/chromium/src.git@master
    
  
    Issue 11186039:
  Move CC switches to cc/switches.h.  (Closed) 
  Base URL: http://git.chromium.org/chromium/src.git@master| 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 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. | 
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 198 | 198 | 
| 199 // Disables speech input. | 199 // Disables speech input. | 
| 200 const char kDisableSpeechInput[] = "disable-speech-input"; | 200 const char kDisableSpeechInput[] = "disable-speech-input"; | 
| 201 | 201 | 
| 202 // Enables scripted speech api. | 202 // Enables scripted speech api. | 
| 203 const char kEnableScriptedSpeech[] = "enable-scripted-speech"; | 203 const char kEnableScriptedSpeech[] = "enable-scripted-speech"; | 
| 204 | 204 | 
| 205 // Specifies the request key for the continuous speech recognition webservice. | 205 // Specifies the request key for the continuous speech recognition webservice. | 
| 206 const char kSpeechRecognitionWebserviceKey[] = "speech-service-key"; | 206 const char kSpeechRecognitionWebserviceKey[] = "speech-service-key"; | 
| 207 | 207 | 
| 208 // Disables animation on the compositor thread. | |
| 209 const char kDisableThreadedAnimation[] = "disable-threaded-animation"; | |
| 210 | |
| 211 #if defined(OS_ANDROID) | 208 #if defined(OS_ANDROID) | 
| 212 // Enable web audio API. | 209 // Enable web audio API. | 
| 213 const char kEnableWebAudio[] = "enable-webaudio"; | 210 const char kEnableWebAudio[] = "enable-webaudio"; | 
| 214 #else | 211 #else | 
| 215 // Disable web audio API. | 212 // Disable web audio API. | 
| 216 const char kDisableWebAudio[] = "disable-webaudio"; | 213 const char kDisableWebAudio[] = "disable-webaudio"; | 
| 217 #endif | 214 #endif | 
| 218 | 215 | 
| 219 // Don't enforce the same-origin policy. (Used by people testing their sites.) | 216 // Don't enforce the same-origin policy. (Used by people testing their sites.) | 
| 220 const char kDisableWebSecurity[] = "disable-web-security"; | 217 const char kDisableWebSecurity[] = "disable-web-security"; | 
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 307 | 304 | 
| 308 // Enables the deprecated PeerConnection functionality. | 305 // Enables the deprecated PeerConnection functionality. | 
| 309 const char kEnableDeprecatedPeerConnection[] = | 306 const char kEnableDeprecatedPeerConnection[] = | 
| 310 "enable-deprecated-peer-connection"; | 307 "enable-deprecated-peer-connection"; | 
| 311 | 308 | 
| 312 // On Windows, converts the page to the currently-installed monitor profile. | 309 // On Windows, converts the page to the currently-installed monitor profile. | 
| 313 // This does NOT enable color management for images. The source is still | 310 // This does NOT enable color management for images. The source is still | 
| 314 // assumed to be sRGB. | 311 // assumed to be sRGB. | 
| 315 const char kEnableMonitorProfile[] = "enable-monitor-profile"; | 312 const char kEnableMonitorProfile[] = "enable-monitor-profile"; | 
| 316 | 313 | 
| 317 // Enables partial swaps in the WK compositor on platforms that support it. | |
| 318 const char kEnablePartialSwap[] = "enable-partial-swap"; | |
| 319 | |
| 320 // Enables UI releasing handle to front surface for background tabs on platforms | 314 // Enables UI releasing handle to front surface for background tabs on platforms | 
| 321 // that support it. | 315 // that support it. | 
| 322 const char kEnableUIReleaseFrontSurface[] = "enable-ui-release-front-surface"; | 316 const char kEnableUIReleaseFrontSurface[] = "enable-ui-release-front-surface"; | 
| 323 | 317 | 
| 324 // Enables touch-screen pinch gestures. | 318 // Enables touch-screen pinch gestures. | 
| 325 const char kEnablePinch[] = "enable-pinch"; | 319 const char kEnablePinch[] = "enable-pinch"; | 
| 326 | 320 | 
| 327 // Enables an alternative pinch-zoom gesture support, via the threaded | |
| 328 // compositor. | |
| 329 const char kEnablePinchInCompositor[] = "enable-pinch-in-compositor"; | |
| 330 | |
| 331 // Enable caching of pre-parsed JS script data. See http://crbug.com/32407. | 321 // Enable caching of pre-parsed JS script data. See http://crbug.com/32407. | 
| 332 const char kEnablePreparsedJsCaching[] = "enable-preparsed-js-caching"; | 322 const char kEnablePreparsedJsCaching[] = "enable-preparsed-js-caching"; | 
| 333 | 323 | 
| 334 // Enable privileged WebGL extensions; without this switch such extensions are | 324 // Enable privileged WebGL extensions; without this switch such extensions are | 
| 335 // available only to Chrome extensions. | 325 // available only to Chrome extensions. | 
| 336 const char kEnablePrivilegedWebGLExtensions[] = | 326 const char kEnablePrivilegedWebGLExtensions[] = | 
| 337 "enable-privileged-webgl-extensions"; | 327 "enable-privileged-webgl-extensions"; | 
| 338 | 328 | 
| 339 // Aggressively free GPU command buffers belonging to hidden tabs. | 329 // Aggressively free GPU command buffers belonging to hidden tabs. | 
| 340 const char kEnablePruneGpuCommandBuffers[] = | 330 const char kEnablePruneGpuCommandBuffers[] = | 
| (...skipping 24 matching lines...) Expand all Loading... | |
| 365 // iframes, etc). | 355 // iframes, etc). | 
| 366 // 2) Only has authority to see or use cookies for the page's top-level origin. | 356 // 2) Only has authority to see or use cookies for the page's top-level origin. | 
| 367 // (So if a.com iframe's b.com, the b.com network request will be sent without | 357 // (So if a.com iframe's b.com, the b.com network request will be sent without | 
| 368 // cookies). | 358 // cookies). | 
| 369 // This is expected to break compatibility with many pages for now. | 359 // This is expected to break compatibility with many pages for now. | 
| 370 const char kEnableStrictSiteIsolation[] = "enable-strict-site-isolation"; | 360 const char kEnableStrictSiteIsolation[] = "enable-strict-site-isolation"; | 
| 371 | 361 | 
| 372 // Enable multithreaded GPU compositing of web content. | 362 // Enable multithreaded GPU compositing of web content. | 
| 373 const char kEnableThreadedCompositing[] = "enable-threaded-compositing"; | 363 const char kEnableThreadedCompositing[] = "enable-threaded-compositing"; | 
| 374 | 364 | 
| 375 // Disable multithreaded GPU compositing of web content. | |
| 376 const char kDisableThreadedCompositing[] = "disable-threaded-compositing"; | |
| 377 | |
| 378 // Enable use of experimental TCP sockets API for sending data in the | 365 // Enable use of experimental TCP sockets API for sending data in the | 
| 379 // SYN packet. | 366 // SYN packet. | 
| 380 const char kEnableTcpFastOpen[] = "enable-tcp-fastopen"; | 367 const char kEnableTcpFastOpen[] = "enable-tcp-fastopen"; | 
| 381 | 368 | 
| 382 // Disables hardware acceleration of video decode, where available. | 369 // Disables hardware acceleration of video decode, where available. | 
| 383 const char kDisableAcceleratedVideoDecode[] = | 370 const char kDisableAcceleratedVideoDecode[] = | 
| 384 "disable-accelerated-video-decode"; | 371 "disable-accelerated-video-decode"; | 
| 385 | 372 | 
| 386 // Enables the use of the viewport meta tag, which allows | 373 // Enables the use of the viewport meta tag, which allows | 
| 387 // pages to control aspects of their own layout. This also turns on touch-screen | 374 // pages to control aspects of their own layout. This also turns on touch-screen | 
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 713 // Specify the amount the trackpad should scroll by. | 700 // Specify the amount the trackpad should scroll by. | 
| 714 const char kScrollPixels[] = "scroll-pixels"; | 701 const char kScrollPixels[] = "scroll-pixels"; | 
| 715 #endif | 702 #endif | 
| 716 | 703 | 
| 717 #if defined(OS_MACOSX) || defined(OS_WIN) | 704 #if defined(OS_MACOSX) || defined(OS_WIN) | 
| 718 // Use the system SSL library (Secure Transport on Mac, SChannel on Windows) | 705 // Use the system SSL library (Secure Transport on Mac, SChannel on Windows) | 
| 719 // instead of NSS for SSL. | 706 // instead of NSS for SSL. | 
| 720 const char kUseSystemSSL[] = "use-system-ssl"; | 707 const char kUseSystemSSL[] = "use-system-ssl"; | 
| 721 #endif | 708 #endif | 
| 722 | 709 | 
| 723 // Enable per-tile page painting. | |
| 724 const char kEnablePerTilePainting[] = "enable-per-tile-painting"; | |
| 725 | |
| 726 // Disables the use of a 3D software rasterizer. | 710 // Disables the use of a 3D software rasterizer. | 
| 727 const char kDisableSoftwareRasterizer[] = "disable-software-rasterizer"; | 711 const char kDisableSoftwareRasterizer[] = "disable-software-rasterizer"; | 
| 728 | 712 | 
| 713 // Disable multithreaded GPU compositing of web content. | |
| 714 const char kDisableThreadedCompositing[] = "disable-threaded-compositing"; | |
| 
sky
2012/10/18 17:16:26
Make position match that of header.
 | |
| 715 | |
| 729 #if defined(USE_AURA) | 716 #if defined(USE_AURA) | 
| 730 // Configures the time after a GestureFlingCancel in which taps are cancelled. | 717 // Configures the time after a GestureFlingCancel in which taps are cancelled. | 
| 731 extern const char kFlingTapSuppressMaxDown[] = "fling-tap-suppress-max-down"; | 718 extern const char kFlingTapSuppressMaxDown[] = "fling-tap-suppress-max-down"; | 
| 732 | 719 | 
| 733 // Maximum time between mousedown and mouseup to be considered a tap. | 720 // Maximum time between mousedown and mouseup to be considered a tap. | 
| 734 extern const char kFlingTapSuppressMaxGap[] = "fling-tap-suppress-max-gap"; | 721 extern const char kFlingTapSuppressMaxGap[] = "fling-tap-suppress-max-gap"; | 
| 735 | 722 | 
| 736 // Forces usage of the test compositor. Needed to run ui tests on bots. | 723 // Forces usage of the test compositor. Needed to run ui tests on bots. | 
| 737 extern const char kTestCompositor[] = "test-compositor"; | 724 extern const char kTestCompositor[] = "test-compositor"; | 
| 738 #endif | 725 #endif | 
| 739 | 726 | 
| 740 // Sets the tile size used by composited layers. | 727 // Sets the tile size used by composited layers. | 
| 741 const char kDefaultTileWidth[] = "default-tile-width"; | 728 const char kDefaultTileWidth[] = "default-tile-width"; | 
| 742 const char kDefaultTileHeight[] = "default-tile-height"; | 729 const char kDefaultTileHeight[] = "default-tile-height"; | 
| 743 | 730 | 
| 744 // Sets the width and height above which a composited layer will get tiled. | 731 // Sets the width and height above which a composited layer will get tiled. | 
| 745 const char kMaxUntiledLayerWidth[] = "max-untiled-layer-width"; | 732 const char kMaxUntiledLayerWidth[] = "max-untiled-layer-width"; | 
| 746 const char kMaxUntiledLayerHeight[] = "max-untiled-layer-height"; | 733 const char kMaxUntiledLayerHeight[] = "max-untiled-layer-height"; | 
| 747 | 734 | 
| 748 const char kEnableFixedPositionCreatesStackingContext[] | 735 const char kEnableFixedPositionCreatesStackingContext[] | 
| 749 = "enable-fixed-position-creates-stacking-context"; | 736 = "enable-fixed-position-creates-stacking-context"; | 
| 750 const char kDisableFixedPositionCreatesStackingContext[] | 737 const char kDisableFixedPositionCreatesStackingContext[] | 
| 751 = "disable-fixed-position-creates-stacking-context"; | 738 = "disable-fixed-position-creates-stacking-context"; | 
| 752 | 739 | 
| 753 } // namespace switches | 740 } // namespace switches | 
| OLD | NEW |