Chromium Code Reviews| Index: Source/bindings/core/v8/V8PerformanceObserverCallback.h |
| diff --git a/Source/bindings/core/v8/V8PerformanceObserverCallback.h b/Source/bindings/core/v8/V8PerformanceObserverCallback.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..c3805ddf18832e1eef134e4201fbc7c479c6d6b5 |
| --- /dev/null |
| +++ b/Source/bindings/core/v8/V8PerformanceObserverCallback.h |
| @@ -0,0 +1,42 @@ |
| +// Copyright 2014 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. |
| + |
| +// 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.
|
| + |
| +#ifndef V8PerformanceObserverCallback_h |
| +#define V8PerformanceObserverCallback_h |
| + |
| +#include "bindings/core/v8/ActiveDOMCallback.h" |
| +#include "bindings/core/v8/DOMWrapperWorld.h" |
| +#include "bindings/core/v8/ScopedPersistent.h" |
| +#include "core/CoreExport.h" |
| +#include "core/timing/PerformanceObserverCallback.h" |
| + |
| +namespace blink { |
| + |
| +class V8PerformanceObserverCallback final : public PerformanceObserverCallback, public ActiveDOMCallback { |
| + WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(V8PerformanceObserverCallback); |
| +public: |
| + static V8PerformanceObserverCallback* create(v8::Local<v8::Function> callback, v8::Local<v8::Object> owner, ScriptState* scriptState) |
| + { |
| + return new V8PerformanceObserverCallback(callback, owner, scriptState); |
| + } |
| + |
| + ~V8PerformanceObserverCallback() override; |
| + |
| + DECLARE_VIRTUAL_TRACE(); |
| + |
| + void handleEvent(PerformanceObserverEntryList*, PerformanceObserver*) override; |
| + ExecutionContext* executionContext() const override { return ContextLifecycleObserver::executionContext(); } |
| +private: |
| + CORE_EXPORT V8PerformanceObserverCallback(v8::Local<v8::Function>, v8::Local<v8::Object>, ScriptState*); |
| + |
| + static void setWeakCallback(const v8::WeakCallbackInfo<V8PerformanceObserverCallback>&); |
| + |
| + ScopedPersistent<v8::Function> m_callback; |
| + RefPtr<ScriptState> m_scriptState; |
| +}; |
| + |
| +} |
| +#endif // V8PerformanceObserverCallback_h |