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

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

Issue 1583173002: Add virtual destructors to IntersectionObserverCallback (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Remove unnecessary destructors Created 4 years, 11 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 | « third_party/WebKit/Source/core/dom/IntersectionObserver.h ('k') | no next file » | 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 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 void handleEvent(const HeapVector<Member<IntersectionObserverEntry>> &, IntersectionObserver&) = 0; 19 virtual void handleEvent(const HeapVector<Member<IntersectionObserverEntry>> &, IntersectionObserver&) = 0;
19 virtual ExecutionContext* executionContext() const = 0; 20 virtual ExecutionContext* executionContext() const = 0;
20 DEFINE_INLINE_VIRTUAL_TRACE() { } 21 DEFINE_INLINE_VIRTUAL_TRACE() { }
21 }; 22 };
22 23
23 } 24 }
24 25
25 #endif // IntersectionObserverCallback_h 26 #endif // IntersectionObserverCallback_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/IntersectionObserver.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698