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

Unified Diff: third_party/WebKit/Source/core/events/AddEventListenerOptionsResolved.h

Issue 2137483003: Add UMA metrics for root scroller intervention to track forcing passive breakage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add ability to test histograms from layout tests 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/events/AddEventListenerOptionsResolved.h
diff --git a/third_party/WebKit/Source/core/events/AddEventListenerOptionsResolved.h b/third_party/WebKit/Source/core/events/AddEventListenerOptionsResolved.h
new file mode 100644
index 0000000000000000000000000000000000000000..4800e8787473c916fb86e4b74f33d332d53684ec
--- /dev/null
+++ b/third_party/WebKit/Source/core/events/AddEventListenerOptionsResolved.h
@@ -0,0 +1,31 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef AddEventListenerOptionsResolved_h
+#define AddEventListenerOptionsResolved_h
+
+#include "core/events/AddEventListenerOptions.h"
+
+namespace blink {
+
+class CORE_EXPORT AddEventListenerOptionsResolved : public AddEventListenerOptions {
Rick Byers 2016/07/11 14:41:52 please add a comment describing the design here.
dtapuska 2016/07/11 15:46:05 Done.
+ DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
+
+public:
+ AddEventListenerOptionsResolved();
+ AddEventListenerOptionsResolved(const AddEventListenerOptions&);
+ virtual ~AddEventListenerOptionsResolved();
+
+ void setPassiveForcedForDocumentTarget(bool forced) { m_passiveForcedForDocumentTarget = forced; }
+ bool passiveForcedForDocumentTarget() const { return m_passiveForcedForDocumentTarget; }
+
+ DECLARE_VIRTUAL_TRACE();
+
+private:
+ bool m_passiveForcedForDocumentTarget;
+};
+
+} // namespace blink
+
+#endif // AddEventListenerOptionsResolved_h

Powered by Google App Engine
This is Rietveld 408576698