| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 base::FEATURE_ENABLED_BY_DEFAULT}; | 85 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 86 | 86 |
| 87 // Paint optimizations including subsequence caching and empty phase skipping. | 87 // Paint optimizations including subsequence caching and empty phase skipping. |
| 88 const base::Feature kPaintOptimizations{"PaintOptimizations", | 88 const base::Feature kPaintOptimizations{"PaintOptimizations", |
| 89 base::FEATURE_ENABLED_BY_DEFAULT}; | 89 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 90 | 90 |
| 91 // Whether the lookahead parser in Blink runs on the main thread. | 91 // Whether the lookahead parser in Blink runs on the main thread. |
| 92 const base::Feature kParseHTMLOnMainThread{"ParseHTMLOnMainThread", | 92 const base::Feature kParseHTMLOnMainThread{"ParseHTMLOnMainThread", |
| 93 base::FEATURE_DISABLED_BY_DEFAULT}; | 93 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 94 | 94 |
| 95 // Whether document level event listeners should default 'passive' to true. |
| 96 const base::Feature kPassiveDocumentEventListeners{ |
| 97 "PassiveDocumentEventListeners", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 98 |
| 95 // Pointer events support. | 99 // Pointer events support. |
| 96 const base::Feature kPointerEvents{"PointerEvent", | 100 const base::Feature kPointerEvents{"PointerEvent", |
| 97 base::FEATURE_DISABLED_BY_DEFAULT}; | 101 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 98 | 102 |
| 99 // Throttle Blink's rendering pipeline based on frame visibility. | 103 // Throttle Blink's rendering pipeline based on frame visibility. |
| 100 const base::Feature kRenderingPipelineThrottling{ | 104 const base::Feature kRenderingPipelineThrottling{ |
| 101 "RenderingPipelineThrottling", base::FEATURE_ENABLED_BY_DEFAULT}; | 105 "RenderingPipelineThrottling", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 102 | 106 |
| 103 // Scrolls to compensate for layout movements (bit.ly/scroll-anchoring). | 107 // Scrolls to compensate for layout movements (bit.ly/scroll-anchoring). |
| 104 const base::Feature kScrollAnchoring{"ScrollAnchoring", | 108 const base::Feature kScrollAnchoring{"ScrollAnchoring", |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 #endif | 153 #endif |
| 150 | 154 |
| 151 #if defined(OS_WIN) | 155 #if defined(OS_WIN) |
| 152 // Emergency "off switch" for new Windows sandbox security mitigation, | 156 // Emergency "off switch" for new Windows sandbox security mitigation, |
| 153 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. | 157 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. |
| 154 const base::Feature kWinSboxDisableExtensionPoints{ | 158 const base::Feature kWinSboxDisableExtensionPoints{ |
| 155 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; | 159 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 156 #endif | 160 #endif |
| 157 | 161 |
| 158 } // namespace features | 162 } // namespace features |
| OLD | NEW |