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

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

Issue 1988633002: Schedule a frame from IntersectionObserver::observe. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Oilpan doesn't like stack-allocated callback Created 4 years, 6 months 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/IntersectionObserver.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 IntersectionObserver_h 5 #ifndef IntersectionObserver_h
6 #define IntersectionObserver_h 6 #define IntersectionObserver_h
7 7
8 #include "bindings/core/v8/ScriptWrappable.h" 8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "core/dom/IntersectionObservation.h" 9 #include "core/dom/IntersectionObservation.h"
10 #include "core/dom/IntersectionObserverEntry.h" 10 #include "core/dom/IntersectionObserverEntry.h"
11 #include "platform/Length.h" 11 #include "platform/Length.h"
12 #include "platform/heap/Handle.h" 12 #include "platform/heap/Handle.h"
13 #include "wtf/HashSet.h" 13 #include "wtf/HashSet.h"
14 #include "wtf/Vector.h" 14 #include "wtf/Vector.h"
15 15
16 namespace blink { 16 namespace blink {
17 17
18 class Element; 18 class Element;
19 class ExceptionState; 19 class ExceptionState;
20 class LayoutObject; 20 class LayoutObject;
21 class IntersectionObserverCallback; 21 class IntersectionObserverCallback;
22 class IntersectionObserverInit; 22 class IntersectionObserverInit;
23 23
24 class IntersectionObserver final : public GarbageCollectedFinalized<Intersection Observer>, public ScriptWrappable { 24 class CORE_EXPORT IntersectionObserver final : public GarbageCollectedFinalized< IntersectionObserver>, public ScriptWrappable {
25 DEFINE_WRAPPERTYPEINFO(); 25 DEFINE_WRAPPERTYPEINFO();
26 26
27 public: 27 public:
28 static IntersectionObserver* create(const IntersectionObserverInit&, Interse ctionObserverCallback&, ExceptionState&); 28 static IntersectionObserver* create(const IntersectionObserverInit&, Interse ctionObserverCallback&, ExceptionState&);
29 static void resumeSuspendedObservers(); 29 static void resumeSuspendedObservers();
30 30
31 // API methods 31 // API methods
32 void observe(Element*); 32 void observe(Element*);
33 void unobserve(Element*); 33 void unobserve(Element*);
34 void disconnect(); 34 void disconnect();
(...skipping 30 matching lines...) Expand all
65 Vector<float> m_thresholds; 65 Vector<float> m_thresholds;
66 Length m_topMargin; 66 Length m_topMargin;
67 Length m_rightMargin; 67 Length m_rightMargin;
68 Length m_bottomMargin; 68 Length m_bottomMargin;
69 Length m_leftMargin; 69 Length m_leftMargin;
70 }; 70 };
71 71
72 } // namespace blink 72 } // namespace blink
73 73
74 #endif // IntersectionObserver_h 74 #endif // IntersectionObserver_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/IntersectionObserver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698