OLD | NEW |
---|---|
(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 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! | |
haraken
2015/11/16 00:41:34
Remove this comment.
szager1
2015/11/19 19:15:37
Done in forthcoming next patch.
| |
6 | |
7 #ifndef V8IntersectionObserverCallback_h | |
8 #define V8IntersectionObserverCallback_h | |
9 | |
10 #include "bindings/core/v8/ActiveDOMCallback.h" | |
11 #include "bindings/core/v8/DOMWrapperWorld.h" | |
12 #include "bindings/core/v8/ScopedPersistent.h" | |
13 #include "core/CoreExport.h" | |
14 #include "core/dom/IntersectionObserverCallback.h" | |
15 | |
16 namespace blink { | |
17 | |
18 class V8IntersectionObserverCallback final : public IntersectionObserverCallback , public ActiveDOMCallback { | |
19 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(V8IntersectionObserverCallback); | |
20 public: | |
21 static PassOwnPtrWillBeRawPtr<V8IntersectionObserverCallback> create(v8::Loc al<v8::Function> callback, v8::Local<v8::Object> owner, ScriptState* scriptState ) | |
22 { | |
23 return adoptPtrWillBeNoop(new V8IntersectionObserverCallback(callback, o wner, scriptState)); | |
24 } | |
25 | |
26 ~V8IntersectionObserverCallback() override; | |
27 | |
28 DECLARE_VIRTUAL_TRACE(); | |
29 | |
30 void handleEvent(WillBeHeapVector<RefPtrWillBeMember<IntersectionObserverEnt ry>>&, IntersectionObserver*) override; | |
31 ExecutionContext* executionContext() const override { return ContextLifecycl eObserver::executionContext(); } | |
32 private: | |
33 CORE_EXPORT V8IntersectionObserverCallback(v8::Local<v8::Function>, v8::Loca l<v8::Object>, ScriptState*); | |
34 | |
35 static void setWeakCallback(const v8::WeakCallbackInfo<V8IntersectionObserve rCallback>&); | |
36 | |
37 ScopedPersistent<v8::Function> m_callback; | |
38 RefPtr<ScriptState> m_scriptState; | |
39 }; | |
40 | |
41 } | |
42 #endif // V8IntersectionObserverCallback_h | |
OLD | NEW |