OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "build/build_config.h" | 5 #include "build/build_config.h" |
6 #include "content/public/common/content_features.h" | 6 #include "content/public/common/content_features.h" |
7 | 7 |
8 namespace features { | 8 namespace features { |
9 | 9 |
10 // All features in alphabetical order. | 10 // All features in alphabetical order. |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 const base::Feature kMediaDocumentDownloadButton{ | 60 const base::Feature kMediaDocumentDownloadButton{ |
61 "MediaDocumentDownloadButton", | 61 "MediaDocumentDownloadButton", |
62 base::FEATURE_DISABLED_BY_DEFAULT | 62 base::FEATURE_DISABLED_BY_DEFAULT |
63 }; | 63 }; |
64 | 64 |
65 // Enable the material design playback UI for media elements. This is always | 65 // Enable the material design playback UI for media elements. This is always |
66 // on for OS_ANDROID, but may be enabled by experiment for other platforms. | 66 // on for OS_ANDROID, but may be enabled by experiment for other platforms. |
67 const base::Feature kNewMediaPlaybackUi{"NewMediaPlaybackUi", | 67 const base::Feature kNewMediaPlaybackUi{"NewMediaPlaybackUi", |
68 base::FEATURE_ENABLED_BY_DEFAULT}; | 68 base::FEATURE_ENABLED_BY_DEFAULT}; |
69 | 69 |
| 70 // An experiment forcing events to be non-blocking when the main thread is |
| 71 // deemed unresponsive. See crbug.com/599609. |
| 72 const base::Feature kMainThreadBusyScrollIntervention{ |
| 73 "MainThreadBusyScrollIntervention", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 74 |
70 // Non-validating reload for desktop. | 75 // Non-validating reload for desktop. |
71 // See https://crbug.com/591245 | 76 // See https://crbug.com/591245 |
72 const base::Feature kNonValidatingReloadOnNormalReload{ | 77 const base::Feature kNonValidatingReloadOnNormalReload{ |
73 "NonValidatingReloadOnNormalReload", base::FEATURE_ENABLED_BY_DEFAULT}; | 78 "NonValidatingReloadOnNormalReload", base::FEATURE_ENABLED_BY_DEFAULT}; |
74 | 79 |
75 // Non-validating reload on reload-to-refresh-content (e.g. pull-to-refresh). | 80 // Non-validating reload on reload-to-refresh-content (e.g. pull-to-refresh). |
76 // See https://crbug.com/591245 | 81 // See https://crbug.com/591245 |
77 const base::Feature kNonValidatingReloadOnRefreshContent{ | 82 const base::Feature kNonValidatingReloadOnRefreshContent{ |
78 "NonValidatingReloadOnRefreshContentV2", | 83 "NonValidatingReloadOnRefreshContentV2", |
79 base::FEATURE_DISABLED_BY_DEFAULT}; | 84 base::FEATURE_DISABLED_BY_DEFAULT}; |
(...skipping 14 matching lines...) Expand all Loading... |
94 | 99 |
95 // Whether the lookahead parser in Blink runs on the main thread. | 100 // Whether the lookahead parser in Blink runs on the main thread. |
96 const base::Feature kParseHTMLOnMainThread{"ParseHTMLOnMainThread", | 101 const base::Feature kParseHTMLOnMainThread{"ParseHTMLOnMainThread", |
97 base::FEATURE_DISABLED_BY_DEFAULT}; | 102 base::FEATURE_DISABLED_BY_DEFAULT}; |
98 | 103 |
99 // Whether document level event listeners should default 'passive' to true. | 104 // Whether document level event listeners should default 'passive' to true. |
100 const base::Feature kPassiveDocumentEventListeners{ | 105 const base::Feature kPassiveDocumentEventListeners{ |
101 "PassiveDocumentEventListeners", base::FEATURE_DISABLED_BY_DEFAULT}; | 106 "PassiveDocumentEventListeners", base::FEATURE_DISABLED_BY_DEFAULT}; |
102 | 107 |
103 // Whether we should force a touchstart and first touchmove per scroll event | 108 // Whether we should force a touchstart and first touchmove per scroll event |
104 // listeners to be 'passive' during fling. | 109 // listeners to be non-blocking during fling. |
105 const base::Feature kPassiveEventListenersDueToFling{ | 110 const base::Feature kPassiveEventListenersDueToFling{ |
106 "PassiveEventListenersDueToFling", base::FEATURE_DISABLED_BY_DEFAULT}; | 111 "PassiveEventListenersDueToFling", base::FEATURE_DISABLED_BY_DEFAULT}; |
107 | 112 |
108 // Pointer events support. | 113 // Pointer events support. |
109 const base::Feature kPointerEvents{"PointerEvent", | 114 const base::Feature kPointerEvents{"PointerEvent", |
110 base::FEATURE_DISABLED_BY_DEFAULT}; | 115 base::FEATURE_DISABLED_BY_DEFAULT}; |
111 | 116 |
112 // If Pepper 3D Image Chromium is allowed, this feature controls whether it is | 117 // If Pepper 3D Image Chromium is allowed, this feature controls whether it is |
113 // enabled. | 118 // enabled. |
114 const base::Feature kPepper3DImageChromium{"Pepper3DImageChromium", | 119 const base::Feature kPepper3DImageChromium{"Pepper3DImageChromium", |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 #endif | 190 #endif |
186 | 191 |
187 #if defined(OS_WIN) | 192 #if defined(OS_WIN) |
188 // Emergency "off switch" for new Windows sandbox security mitigation, | 193 // Emergency "off switch" for new Windows sandbox security mitigation, |
189 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. | 194 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. |
190 const base::Feature kWinSboxDisableExtensionPoints{ | 195 const base::Feature kWinSboxDisableExtensionPoints{ |
191 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; | 196 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; |
192 #endif | 197 #endif |
193 | 198 |
194 } // namespace features | 199 } // namespace features |
OLD | NEW |