OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef AddEventListenerOptionsResolved_h | 5 #ifndef AddEventListenerOptionsResolved_h |
6 #define AddEventListenerOptionsResolved_h | 6 #define AddEventListenerOptionsResolved_h |
7 | 7 |
8 #include "core/events/AddEventListenerOptions.h" | 8 #include "core/events/AddEventListenerOptions.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
(...skipping 11 matching lines...) Expand all Loading... |
22 AddEventListenerOptionsResolved(const AddEventListenerOptions&); | 22 AddEventListenerOptionsResolved(const AddEventListenerOptions&); |
23 virtual ~AddEventListenerOptionsResolved(); | 23 virtual ~AddEventListenerOptionsResolved(); |
24 | 24 |
25 void setPassiveForcedForDocumentTarget(bool forced) { | 25 void setPassiveForcedForDocumentTarget(bool forced) { |
26 m_passiveForcedForDocumentTarget = forced; | 26 m_passiveForcedForDocumentTarget = forced; |
27 } | 27 } |
28 bool passiveForcedForDocumentTarget() const { | 28 bool passiveForcedForDocumentTarget() const { |
29 return m_passiveForcedForDocumentTarget; | 29 return m_passiveForcedForDocumentTarget; |
30 } | 30 } |
31 | 31 |
| 32 // Set whether passive was specified when the options were |
| 33 // created by callee. |
| 34 void setPassiveSpecified(bool specified) { m_passiveSpecified = specified; } |
| 35 bool passiveSpecified() const { return m_passiveSpecified; } |
| 36 |
32 DECLARE_VIRTUAL_TRACE(); | 37 DECLARE_VIRTUAL_TRACE(); |
33 | 38 |
34 private: | 39 private: |
35 bool m_passiveForcedForDocumentTarget; | 40 bool m_passiveForcedForDocumentTarget; |
| 41 bool m_passiveSpecified; |
36 }; | 42 }; |
37 | 43 |
38 } // namespace blink | 44 } // namespace blink |
39 | 45 |
40 #endif // AddEventListenerOptionsResolved_h | 46 #endif // AddEventListenerOptionsResolved_h |
OLD | NEW |