blob: 9fb8cdd6acd909bd521475128f47bf6e9949945b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef THIRD_PARTY_BLINK_RENDERER_BINDINGS_CORE_V8_V8_INTERSECTION_OBSERVER_DELEGATE_H_
#define THIRD_PARTY_BLINK_RENDERER_BINDINGS_CORE_V8_V8_INTERSECTION_OBSERVER_DELEGATE_H_
#include "third_party/blink/renderer/core/core_export.h"
#include "third_party/blink/renderer/core/dom/context_lifecycle_observer.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/core/intersection_observer/intersection_observer_delegate.h"
#include "third_party/blink/renderer/platform/bindings/dom_wrapper_world.h"
#include "third_party/blink/renderer/platform/bindings/scoped_persistent.h"
#include "third_party/blink/renderer/platform/bindings/trace_wrapper_member.h"
namespace blink {
class V8IntersectionObserverCallback;
class V8IntersectionObserverDelegate final
: public IntersectionObserverDelegate,
public ContextClient {
USING_GARBAGE_COLLECTED_MIXIN(V8IntersectionObserverDelegate);
public:
CORE_EXPORT V8IntersectionObserverDelegate(V8IntersectionObserverCallback*,
ScriptState*);
~V8IntersectionObserverDelegate() override;
ExecutionContext* GetExecutionContext() const override;
void Trace(blink::Visitor*) override;
void TraceWrappers(ScriptWrappableVisitor*) const override;
void Deliver(const HeapVector<Member<IntersectionObserverEntry>>&,
IntersectionObserver&) override;
private:
TraceWrapperMember<V8IntersectionObserverCallback> callback_;
};
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_BINDINGS_CORE_V8_V8_INTERSECTION_OBSERVER_DELEGATE_H_
|