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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 | 133 |
134 // Disables HTML5 DB support. | 134 // Disables HTML5 DB support. |
135 const char kDisableDatabases[] = "disable-databases"; | 135 const char kDisableDatabases[] = "disable-databases"; |
136 | 136 |
137 // Disables delegated renderer. | 137 // Disables delegated renderer. |
138 const char kDisableDelegatedRenderer[] = "disable-delegated-renderer"; | 138 const char kDisableDelegatedRenderer[] = "disable-delegated-renderer"; |
139 | 139 |
140 // Disables desktop notifications (default enabled on windows). | 140 // Disables desktop notifications (default enabled on windows). |
141 const char kDisableDesktopNotifications[] = "disable-desktop-notifications"; | 141 const char kDisableDesktopNotifications[] = "disable-desktop-notifications"; |
142 | 142 |
143 // Disables device orientation events. | 143 // Disable device motion events. |
| 144 const char kDisableDeviceMotion[] = "disable-device-motion"; |
| 145 |
| 146 // Disable device orientation events. |
144 const char kDisableDeviceOrientation[] = "disable-device-orientation"; | 147 const char kDisableDeviceOrientation[] = "disable-device-orientation"; |
145 | 148 |
146 // Disable experimental WebGL support. | 149 // Disable experimental WebGL support. |
147 const char kDisableExperimentalWebGL[] = "disable-webgl"; | 150 const char kDisableExperimentalWebGL[] = "disable-webgl"; |
148 | 151 |
149 // Disable FileSystem API. | 152 // Disable FileSystem API. |
150 const char kDisableFileSystem[] = "disable-file-system"; | 153 const char kDisableFileSystem[] = "disable-file-system"; |
151 | 154 |
152 const char kDisableFixedPositionCreatesStackingContext[] | 155 const char kDisableFixedPositionCreatesStackingContext[] |
153 = "disable-fixed-position-creates-stacking-context"; | 156 = "disable-fixed-position-creates-stacking-context"; |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 | 368 |
366 // Enables CSS3 custom filters | 369 // Enables CSS3 custom filters |
367 const char kEnableCssShaders[] = "enable-css-shaders"; | 370 const char kEnableCssShaders[] = "enable-css-shaders"; |
368 | 371 |
369 // Defer image decoding in WebKit until painting. | 372 // Defer image decoding in WebKit until painting. |
370 const char kEnableDeferredImageDecoding[] = "enable-deferred-image-decoding"; | 373 const char kEnableDeferredImageDecoding[] = "enable-deferred-image-decoding"; |
371 | 374 |
372 // Enables delegated renderer. | 375 // Enables delegated renderer. |
373 const char kEnableDelegatedRenderer[] = "enable-delegated-renderer"; | 376 const char kEnableDelegatedRenderer[] = "enable-delegated-renderer"; |
374 | 377 |
375 // Enables device motion events. | |
376 const char kEnableDeviceMotion[] = "enable-device-motion"; | |
377 | |
378 // Enables restarting interrupted downloads. | 378 // Enables restarting interrupted downloads. |
379 const char kEnableDownloadResumption[] = "enable-download-resumption"; | 379 const char kEnableDownloadResumption[] = "enable-download-resumption"; |
380 | 380 |
381 // Enables support for Encrypted Media Extensions (e.g. MediaKeys). | 381 // Enables support for Encrypted Media Extensions (e.g. MediaKeys). |
382 const char kEnableEncryptedMedia[] = "enable-encrypted-media"; | 382 const char kEnableEncryptedMedia[] = "enable-encrypted-media"; |
383 | 383 |
384 // Enable experimental canvas features, e.g. canvas 2D context attributes | 384 // Enable experimental canvas features, e.g. canvas 2D context attributes |
385 const char kEnableExperimentalCanvasFeatures[] = | 385 const char kEnableExperimentalCanvasFeatures[] = |
386 "enable-experimental-canvas-features"; | 386 "enable-experimental-canvas-features"; |
387 | 387 |
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
897 const char kDisableWebRtcHWEncoding[] = "disable-webrtc-hw-encoding"; | 897 const char kDisableWebRtcHWEncoding[] = "disable-webrtc-hw-encoding"; |
898 | 898 |
899 // Enables WebRTC AEC recordings. | 899 // Enables WebRTC AEC recordings. |
900 const char kEnableWebRtcAecRecordings[] = "enable-webrtc-aec-recordings"; | 900 const char kEnableWebRtcAecRecordings[] = "enable-webrtc-aec-recordings"; |
901 | 901 |
902 // Enable WebRTC to open TCP server sockets. | 902 // Enable WebRTC to open TCP server sockets. |
903 const char kEnableWebRtcTcpServerSocket[] = "enable-webrtc-tcp-server-socket"; | 903 const char kEnableWebRtcTcpServerSocket[] = "enable-webrtc-tcp-server-socket"; |
904 #endif | 904 #endif |
905 | 905 |
906 #if defined(OS_ANDROID) | 906 #if defined(OS_ANDROID) |
907 // Disables device motion events. | |
908 const char kDisableDeviceMotion[] = "disable-device-motion"; | |
909 | |
910 // Disable user gesture requirement for the media element to enter fullscreen. | 907 // Disable user gesture requirement for the media element to enter fullscreen. |
911 const char kDisableGestureRequirementForMediaFullscreen[] = | 908 const char kDisableGestureRequirementForMediaFullscreen[] = |
912 "disable-gesture-requirement-for-media-fullscreen"; | 909 "disable-gesture-requirement-for-media-fullscreen"; |
913 | 910 |
914 // Disable user gesture requirement for media playback. | 911 // Disable user gesture requirement for media playback. |
915 const char kDisableGestureRequirementForMediaPlayback[] = | 912 const char kDisableGestureRequirementForMediaPlayback[] = |
916 "disable-gesture-requirement-for-media-playback"; | 913 "disable-gesture-requirement-for-media-playback"; |
917 | 914 |
918 // Disable history logging for media elements. | 915 // Disable history logging for media elements. |
919 const char kDisableMediaHistoryLogging[] = "disable-media-history"; | 916 const char kDisableMediaHistoryLogging[] = "disable-media-history"; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
961 #endif | 958 #endif |
962 | 959 |
963 #if defined(USE_AURA) | 960 #if defined(USE_AURA) |
964 // Forces usage of the test compositor. Needed to run ui tests on bots. | 961 // Forces usage of the test compositor. Needed to run ui tests on bots. |
965 extern const char kTestCompositor[] = "test-compositor"; | 962 extern const char kTestCompositor[] = "test-compositor"; |
966 #endif | 963 #endif |
967 | 964 |
968 // Don't dump stuff here, follow the same order as the header. | 965 // Don't dump stuff here, follow the same order as the header. |
969 | 966 |
970 } // namespace switches | 967 } // namespace switches |
OLD | NEW |