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

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

Issue 2244503003: Add flag to force touch events to be passive during fling as a runtime feature (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: set feature to be experimental Created 4 years, 4 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
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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 base::FEATURE_ENABLED_BY_DEFAULT}; 88 base::FEATURE_ENABLED_BY_DEFAULT};
89 89
90 // Whether the lookahead parser in Blink runs on the main thread. 90 // Whether the lookahead parser in Blink runs on the main thread.
91 const base::Feature kParseHTMLOnMainThread{"ParseHTMLOnMainThread", 91 const base::Feature kParseHTMLOnMainThread{"ParseHTMLOnMainThread",
92 base::FEATURE_DISABLED_BY_DEFAULT}; 92 base::FEATURE_DISABLED_BY_DEFAULT};
93 93
94 // Whether document level event listeners should default 'passive' to true. 94 // Whether document level event listeners should default 'passive' to true.
95 const base::Feature kPassiveDocumentEventListeners{ 95 const base::Feature kPassiveDocumentEventListeners{
96 "PassiveDocumentEventListeners", base::FEATURE_DISABLED_BY_DEFAULT}; 96 "PassiveDocumentEventListeners", base::FEATURE_DISABLED_BY_DEFAULT};
97 97
98 // Whether we should force a touchstart and first touchmove per scroll event
99 // listeners to be 'passive' during fling.
100 const base::Feature kPassiveEventListenersDueToFling{
101 "PassiveEventListenersDueToFling", base::FEATURE_DISABLED_BY_DEFAULT};
102
98 // Pointer events support. 103 // Pointer events support.
99 const base::Feature kPointerEvents{"PointerEvent", 104 const base::Feature kPointerEvents{"PointerEvent",
100 base::FEATURE_DISABLED_BY_DEFAULT}; 105 base::FEATURE_DISABLED_BY_DEFAULT};
101 106
102 // If Pepper 3D Image Chromium is allowed, this feature controls whether it is 107 // If Pepper 3D Image Chromium is allowed, this feature controls whether it is
103 // enabled. 108 // enabled.
104 const base::Feature kPepper3DImageChromium{"Pepper3DImageChromium", 109 const base::Feature kPepper3DImageChromium{"Pepper3DImageChromium",
105 base::FEATURE_ENABLED_BY_DEFAULT}; 110 base::FEATURE_ENABLED_BY_DEFAULT};
106 111
107 // Throttle Blink's rendering pipeline based on frame visibility. 112 // Throttle Blink's rendering pipeline based on frame visibility.
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 #endif 176 #endif
172 177
173 #if defined(OS_WIN) 178 #if defined(OS_WIN)
174 // Emergency "off switch" for new Windows sandbox security mitigation, 179 // Emergency "off switch" for new Windows sandbox security mitigation,
175 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. 180 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE.
176 const base::Feature kWinSboxDisableExtensionPoints{ 181 const base::Feature kWinSboxDisableExtensionPoints{
177 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; 182 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT};
178 #endif 183 #endif
179 184
180 } // namespace features 185 } // namespace features
OLDNEW
« no previous file with comments | « content/public/common/content_features.h ('k') | third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698