| 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 372 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 713 // Specify the amount the trackpad should scroll by. | 703 // Specify the amount the trackpad should scroll by. | 
| 714 const char kScrollPixels[]                  = "scroll-pixels"; | 704 const char kScrollPixels[]                  = "scroll-pixels"; | 
| 715 #endif | 705 #endif | 
| 716 | 706 | 
| 717 #if defined(OS_MACOSX) || defined(OS_WIN) | 707 #if defined(OS_MACOSX) || defined(OS_WIN) | 
| 718 // Use the system SSL library (Secure Transport on Mac, SChannel on Windows) | 708 // Use the system SSL library (Secure Transport on Mac, SChannel on Windows) | 
| 719 // instead of NSS for SSL. | 709 // instead of NSS for SSL. | 
| 720 const char kUseSystemSSL[]                  = "use-system-ssl"; | 710 const char kUseSystemSSL[]                  = "use-system-ssl"; | 
| 721 #endif | 711 #endif | 
| 722 | 712 | 
| 723 // Enable per-tile page painting. |  | 
| 724 const char kEnablePerTilePainting[]         = "enable-per-tile-painting"; |  | 
| 725 |  | 
| 726 // Disables the use of a 3D software rasterizer. | 713 // Disables the use of a 3D software rasterizer. | 
| 727 const char kDisableSoftwareRasterizer[]     = "disable-software-rasterizer"; | 714 const char kDisableSoftwareRasterizer[]     = "disable-software-rasterizer"; | 
| 728 | 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 | 
|---|