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 IntersectionObserverController_h | 5 #ifndef IntersectionObserverController_h |
6 #define IntersectionObserverController_h | 6 #define IntersectionObserverController_h |
7 | 7 |
8 #include "core/dom/ActiveDOMObject.h" | 8 #include "core/dom/ActiveDOMObject.h" |
9 #include "core/dom/IntersectionObserver.h" | 9 #include "core/dom/IntersectionObserver.h" |
10 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 void removeTrackedObserversForRoot(const Node&); | 36 void removeTrackedObserversForRoot(const Node&); |
37 | 37 |
38 DECLARE_TRACE(); | 38 DECLARE_TRACE(); |
39 | 39 |
40 private: | 40 private: |
41 explicit IntersectionObserverController(Document*); | 41 explicit IntersectionObserverController(Document*); |
42 | 42 |
43 private: | 43 private: |
44 // IntersectionObservers for which this is the tracking document. | 44 // IntersectionObservers for which this is the tracking document. |
45 HeapHashSet<WeakMember<IntersectionObserver>> m_trackedIntersectionObservers; | 45 HeapHashSet<WeakMember<IntersectionObserver>> m_trackedIntersectionObservers; |
46 // IntersectionObservers for which this is the execution context of the callba
ck. | 46 // IntersectionObservers for which this is the execution context of the |
| 47 // callback. |
47 HeapHashSet<Member<IntersectionObserver>> m_pendingIntersectionObservers; | 48 HeapHashSet<Member<IntersectionObserver>> m_pendingIntersectionObservers; |
48 WTF::WeakPtrFactory<IntersectionObserverController> m_weakPtrFactory; | 49 WTF::WeakPtrFactory<IntersectionObserverController> m_weakPtrFactory; |
49 | 50 |
50 bool m_callbackFiredWhileSuspended; | 51 bool m_callbackFiredWhileSuspended; |
51 }; | 52 }; |
52 | 53 |
53 } // namespace blink | 54 } // namespace blink |
54 | 55 |
55 #endif // IntersectionObserverController_h | 56 #endif // IntersectionObserverController_h |
OLD | NEW |