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

Side by Side Diff: third_party/WebKit/Source/core/dom/IntersectionObserverController.h

Issue 2567913002: Rename ActiveDOMObject to SuspendableObject (Closed)
Patch Set: Created 4 years 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 unified diff | Download patch
OLDNEW
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/IntersectionObserver.h" 8 #include "core/dom/IntersectionObserver.h"
9 #include "core/dom/SuspendableObject.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
11 #include "wtf/HashSet.h" 11 #include "wtf/HashSet.h"
12 #include "wtf/WeakPtr.h" 12 #include "wtf/WeakPtr.h"
13 13
14 // Design doc for IntersectionObserver implementation: 14 // Design doc for IntersectionObserver implementation:
15 // 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
16 16
17 namespace blink { 17 namespace blink {
18 18
19 class Document; 19 class Document;
20 20
21 class IntersectionObserverController 21 class IntersectionObserverController
22 : public GarbageCollectedFinalized<IntersectionObserverController>, 22 : public GarbageCollectedFinalized<IntersectionObserverController>,
23 public ActiveDOMObject { 23 public SuspendableObject {
24 USING_GARBAGE_COLLECTED_MIXIN(IntersectionObserverController); 24 USING_GARBAGE_COLLECTED_MIXIN(IntersectionObserverController);
25 25
26 public: 26 public:
27 static IntersectionObserverController* create(Document*); 27 static IntersectionObserverController* create(Document*);
28 ~IntersectionObserverController(); 28 ~IntersectionObserverController();
29 29
30 void resume() override; 30 void resume() override;
31 31
32 void scheduleIntersectionObserverForDelivery(IntersectionObserver&); 32 void scheduleIntersectionObserverForDelivery(IntersectionObserver&);
33 void deliverIntersectionObservations(); 33 void deliverIntersectionObservations();
(...skipping 13 matching lines...) Expand all
47 // callback. 47 // callback.
48 HeapHashSet<Member<IntersectionObserver>> m_pendingIntersectionObservers; 48 HeapHashSet<Member<IntersectionObserver>> m_pendingIntersectionObservers;
49 WTF::WeakPtrFactory<IntersectionObserverController> m_weakPtrFactory; 49 WTF::WeakPtrFactory<IntersectionObserverController> m_weakPtrFactory;
50 50
51 bool m_callbackFiredWhileSuspended; 51 bool m_callbackFiredWhileSuspended;
52 }; 52 };
53 53
54 } // namespace blink 54 } // namespace blink
55 55
56 #endif // IntersectionObserverController_h 56 #endif // IntersectionObserverController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698