Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(770)

Side by Side Diff: content/public/common/content_features.cc

Issue 2125683002: Add option to force document level passive event listeners as a runtime feature. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/public/common/content_features.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « content/public/common/content_features.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698