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 |