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 IntersectionObserverCallback_h | 5 #ifndef IntersectionObserverCallback_h |
6 #define IntersectionObserverCallback_h | 6 #define IntersectionObserverCallback_h |
7 | 7 |
8 #include "platform/heap/Handle.h" | 8 #include "platform/heap/Handle.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
11 | 11 |
12 class ExecutionContext; | 12 class ExecutionContext; |
13 class IntersectionObserver; | 13 class IntersectionObserver; |
14 class IntersectionObserverEntry; | 14 class IntersectionObserverEntry; |
15 | 15 |
16 class IntersectionObserverCallback : public GarbageCollectedFinalized<Intersecti
onObserverCallback> { | 16 class IntersectionObserverCallback : public GarbageCollectedFinalized<Intersecti
onObserverCallback> { |
17 public: | 17 public: |
18 virtual ~IntersectionObserverCallback() {} | 18 virtual ~IntersectionObserverCallback() {} |
19 virtual void handleEvent(const HeapVector<Member<IntersectionObserverEntry>>
&, IntersectionObserver&) = 0; | 19 virtual void handleEvent(const HeapVector<Member<IntersectionObserverEntry>>
&, IntersectionObserver&) = 0; |
20 virtual ExecutionContext* executionContext() const = 0; | 20 virtual ExecutionContext* getExecutionContext() const = 0; |
21 DEFINE_INLINE_VIRTUAL_TRACE() { } | 21 DEFINE_INLINE_VIRTUAL_TRACE() { } |
22 }; | 22 }; |
23 | 23 |
24 } // namespace blink | 24 } // namespace blink |
25 | 25 |
26 #endif // IntersectionObserverCallback_h | 26 #endif // IntersectionObserverCallback_h |
OLD | NEW |