| 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" | |
| 9 #include "core/dom/Element.h" | 8 #include "core/dom/Element.h" |
| 10 #include "core/dom/IntersectionObserver.h" | 9 #include "core/dom/IntersectionObserver.h" |
| 11 #include "platform/Timer.h" | 10 #include "platform/Timer.h" |
| 12 #include "platform/heap/Handle.h" | 11 #include "platform/heap/Handle.h" |
| 13 #include "wtf/HashSet.h" | 12 #include "wtf/HashSet.h" |
| 14 | 13 |
| 15 // Design doc for IntersectionObserver implementation: | 14 // Design doc for IntersectionObserver implementation: |
| 16 // https://docs.google.com/a/google.com/document/d/1hLK0eyT5_BzyNS4OkjsnoqqFQD
YCbKfyBinj94OnLiQ | 15 // https://docs.google.com/a/google.com/document/d/1hLK0eyT5_BzyNS4OkjsnoqqFQD
YCbKfyBinj94OnLiQ |
| 17 | 16 |
| 18 namespace blink { | 17 namespace blink { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 42 HeapHashSet<WeakMember<IntersectionObserver>> m_trackedIntersectionObservers
; | 41 HeapHashSet<WeakMember<IntersectionObserver>> m_trackedIntersectionObservers
; |
| 43 // IntersectionObservers for which this is the execution context of the call
back. | 42 // IntersectionObservers for which this is the execution context of the call
back. |
| 44 HeapHashSet<Member<IntersectionObserver>> m_pendingIntersectionObservers; | 43 HeapHashSet<Member<IntersectionObserver>> m_pendingIntersectionObservers; |
| 45 | 44 |
| 46 bool m_timerFiredWhileSuspended; | 45 bool m_timerFiredWhileSuspended; |
| 47 }; | 46 }; |
| 48 | 47 |
| 49 } // namespace blink | 48 } // namespace blink |
| 50 | 49 |
| 51 #endif // IntersectionObserverController_h | 50 #endif // IntersectionObserverController_h |
| OLD | NEW |