OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 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! | |
esprehn
2015/09/09 22:41:40
?? We don't usually check in generated code. Pleas
MikeB
2015/09/10 19:53:01
Done.
| |
6 | |
7 #ifndef V8PerformanceObserverCallback_h | |
8 #define V8PerformanceObserverCallback_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/timing/PerformanceObserverCallback.h" | |
15 | |
16 namespace blink { | |
17 | |
18 class V8PerformanceObserverCallback final : public PerformanceObserverCallback, public ActiveDOMCallback { | |
19 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(V8PerformanceObserverCallback); | |
20 public: | |
21 static V8PerformanceObserverCallback* create(v8::Local<v8::Function> callbac k, v8::Local<v8::Object> owner, ScriptState* scriptState) | |
22 { | |
23 return new V8PerformanceObserverCallback(callback, owner, scriptState); | |
24 } | |
25 | |
26 ~V8PerformanceObserverCallback() override; | |
27 | |
28 DECLARE_VIRTUAL_TRACE(); | |
29 | |
30 void handleEvent(PerformanceObserverEntryList*, PerformanceObserver*) overri de; | |
31 ExecutionContext* executionContext() const override { return ContextLifecycl eObserver::executionContext(); } | |
32 private: | |
33 CORE_EXPORT V8PerformanceObserverCallback(v8::Local<v8::Function>, v8::Local <v8::Object>, ScriptState*); | |
34 | |
35 static void setWeakCallback(const v8::WeakCallbackInfo<V8PerformanceObserver Callback>&); | |
36 | |
37 ScopedPersistent<v8::Function> m_callback; | |
38 RefPtr<ScriptState> m_scriptState; | |
39 }; | |
40 | |
41 } | |
42 #endif // V8PerformanceObserverCallback_h | |
OLD | NEW |