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

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: Change layout test to a unit test 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..0b357b26dc300670cd28634bacafd40621059e37
--- /dev/null
+++ b/third_party/WebKit/Source/core/events/AddEventListenerOptionsResolved.h
@@ -0,0 +1,35 @@
+// 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 {
+
+// AddEventListenerOptionsResolved class represents resolved event listener
+// options. An application requests AddEventListenerOptions and the user
+// agent may change ('resolve') these settings (based on settings or policies)
+// and the result and the reasons why changes occurred are stored in this class.
+class CORE_EXPORT AddEventListenerOptionsResolved : public AddEventListenerOptions {
+ 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
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/events/AddEventListenerOptionsResolved.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698