| Index: third_party/WebKit/Source/bindings/tests/results/core/V8LongExperimentalCallbackFunction.h
|
| diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8LongExperimentalCallbackFunction.h b/third_party/WebKit/Source/bindings/tests/results/core/V8LongExperimentalCallbackFunction.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..1d0940f36b71a470bb7555abd23b448d6dfbf875
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/bindings/tests/results/core/V8LongExperimentalCallbackFunction.h
|
| @@ -0,0 +1,50 @@
|
| +// 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!
|
| +
|
| +#ifndef V8LongExperimentalCallbackFunction_h
|
| +#define V8LongExperimentalCallbackFunction_h
|
| +
|
| +#include "bindings/core/v8/ScopedPersistent.h"
|
| +#include "core/CoreExport.h"
|
| +#include "platform/heap/Handle.h"
|
| +#include "wtf/text/WTFString.h"
|
| +
|
| +namespace blink {
|
| +
|
| +class ScriptState;
|
| +
|
| +class CORE_EXPORT V8LongExperimentalCallbackFunction final : public GarbageCollectedFinalized<V8LongExperimentalCallbackFunction> {
|
| +public:
|
| + static V8LongExperimentalCallbackFunction* create(v8::Isolate* isolate, v8::Local<v8::Function> callback)
|
| + {
|
| + return new V8LongExperimentalCallbackFunction(isolate, callback);
|
| + }
|
| +
|
| + ~V8LongExperimentalCallbackFunction() = default;
|
| +
|
| + DECLARE_TRACE();
|
| +
|
| + bool call(ScriptState* scriptState, ScriptWrappable* scriptWrappable, int num1, int num2, int& returnValue);
|
| +
|
| + v8::Local<v8::Function> v8Value(v8::Isolate* isolate)
|
| + {
|
| + return m_callback.newLocal(isolate);
|
| + }
|
| +
|
| + void setWrapperReference(v8::Isolate* isolate, const v8::Persistent<v8::Object>& wrapper)
|
| + {
|
| + DCHECK(!m_callback.isEmpty());
|
| + m_callback.setReference(wrapper, isolate);
|
| + }
|
| +
|
| +private:
|
| + V8LongExperimentalCallbackFunction(v8::Isolate* isolate, v8::Local<v8::Function>);
|
| + ScopedPersistent<v8::Function> m_callback;
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif // V8LongExperimentalCallbackFunction_h
|
|
|