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 ResizeObserverCallback_h | 5 #ifndef ResizeObserverCallback_h |
6 #define ResizeObserverCallback_h | 6 #define ResizeObserverCallback_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; | |
13 class ResizeObserver; | 12 class ResizeObserver; |
14 class ResizeObserverEntry; | 13 class ResizeObserverEntry; |
15 | 14 |
16 class ResizeObserverCallback | 15 class ResizeObserverCallback |
17 : public GarbageCollectedFinalized<ResizeObserverCallback> { | 16 : public GarbageCollectedFinalized<ResizeObserverCallback> { |
18 public: | 17 public: |
19 virtual ~ResizeObserverCallback() {} | 18 virtual ~ResizeObserverCallback() {} |
20 virtual void handleEvent( | 19 virtual void handleEvent( |
21 const HeapVector<Member<ResizeObserverEntry>>& entries, | 20 const HeapVector<Member<ResizeObserverEntry>>& entries, |
22 ResizeObserver*) = 0; | 21 ResizeObserver*) = 0; |
23 DEFINE_INLINE_VIRTUAL_TRACE() {} | 22 DEFINE_INLINE_VIRTUAL_TRACE() {} |
24 }; | 23 }; |
25 | 24 |
26 } // namespace blink | 25 } // namespace blink |
27 | 26 |
28 #endif // ResizeObserverCallback_h | 27 #endif // ResizeObserverCallback_h |
OLD | NEW |