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

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

Issue 1449623002: IntersectionObserver: second cut. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Clarify the tear-down path for observers and observations. Created 5 years, 1 month 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
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef IntersectionObserverCallback_h
6 #define IntersectionObserverCallback_h
7
8 #include "platform/heap/Handle.h"
9 #include "wtf/RefPtr.h"
10 #include "wtf/Vector.h"
11
12 namespace blink {
13
14 class ExecutionContext;
15 class IntersectionObserver;
16 class IntersectionObserverEntry;
17
18 class IntersectionObserverCallback : public NoBaseWillBeGarbageCollectedFinalize d<IntersectionObserverCallback> {
haraken 2015/11/16 00:41:35 You don't need to use WillBe types for newly intro
szager1 2015/11/19 19:15:38 Working on it.
19 public:
20 virtual ~IntersectionObserverCallback() { }
21
22 virtual void handleEvent(WillBeHeapVector<RefPtrWillBeMember<IntersectionObs erverEntry>>&, IntersectionObserver*) = 0;
23 virtual ExecutionContext* executionContext() const = 0;
24
25 DEFINE_INLINE_VIRTUAL_TRACE() { }
26 };
27
28 }
29
30 #endif // IntersectionObserverCallback_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698