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

Unified Diff: content/public/common/content_switches.cc

Issue 1965493002: Add runtime setting to force passive event listeners. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: content/public/common/content_switches.cc
diff --git a/content/public/common/content_switches.cc b/content/public/common/content_switches.cc
index 5bb4178595ab0fbbf1aa5bd8ee63b94e2a608332..6d22ebf40a31237b0b11c8d20f8eac907b42a8ef 100644
--- a/content/public/common/content_switches.cc
+++ b/content/public/common/content_switches.cc
@@ -665,6 +665,12 @@ const char kOverridePluginPowerSaverForTesting[] =
const char kOverscrollHistoryNavigation[] =
"overscroll-history-navigation";
+// Default for passive listeners being added. Values are defined as:
+// 'documentonlytrue' to set the default be true only for document level nodes.
+// 'true' to set the default to be true on all nodes (when not specified).
+// 'forcealltrue' to force the value on all nodes.
+const char kPassiveListenersDefault[] = "passive-listeners-default";
+
// Argument to the process type that indicates a PPAPI broker process type.
const char kPpapiBrokerProcess[] = "ppapi-broker";

Powered by Google App Engine
This is Rietveld 408576698