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 V8IntersectionObserverCallback_h | 5 #ifndef V8IntersectionObserverCallback_h |
6 #define V8IntersectionObserverCallback_h | 6 #define V8IntersectionObserverCallback_h |
7 | 7 |
8 #include "bindings/core/v8/ActiveDOMCallback.h" | 8 #include "bindings/core/v8/ActiveDOMCallback.h" |
9 #include "bindings/core/v8/DOMWrapperWorld.h" | 9 #include "bindings/core/v8/DOMWrapperWorld.h" |
10 #include "bindings/core/v8/ScopedPersistent.h" | 10 #include "bindings/core/v8/ScopedPersistent.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 void handleEvent(const HeapVector<Member<IntersectionObserverEntry>>&, Inter
sectionObserver&) override; | 24 void handleEvent(const HeapVector<Member<IntersectionObserverEntry>>&, Inter
sectionObserver&) override; |
25 ExecutionContext* executionContext() const override { return ContextLifecycl
eObserver::executionContext(); } | 25 ExecutionContext* executionContext() const override { return ContextLifecycl
eObserver::executionContext(); } |
26 private: | 26 private: |
27 | 27 |
28 static void setWeakCallback(const v8::WeakCallbackInfo<V8IntersectionObserve
rCallback>&); | 28 static void setWeakCallback(const v8::WeakCallbackInfo<V8IntersectionObserve
rCallback>&); |
29 | 29 |
30 ScopedPersistent<v8::Function> m_callback; | 30 ScopedPersistent<v8::Function> m_callback; |
31 RefPtr<ScriptState> m_scriptState; | 31 RefPtr<ScriptState> m_scriptState; |
32 }; | 32 }; |
33 | 33 |
34 } | 34 } // namespace blink |
35 #endif // V8IntersectionObserverCallback_h | 35 #endif // V8IntersectionObserverCallback_h |
OLD | NEW |