OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
esprehn
2015/07/18 22:24:15
15
MikeB
2015/07/20 23:06:50
I updated the template for code_generator_v8.py
| |
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/07/18 22:24:15
??? I don't think this is supposed to be here.
MikeB
2015/07/20 23:06:50
I actually did generate this file. I had to add li
| |
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, ScriptState* scriptState) | |
22 { | |
23 return new V8PerformanceObserverCallback(callback, 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>, ScriptSta te*); | |
34 | |
35 ScopedPersistent<v8::Function> m_callback; | |
36 RefPtr<ScriptState> m_scriptState; | |
37 }; | |
38 | |
39 } | |
40 #endif // V8PerformanceObserverCallback_h | |
OLD | NEW |