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.
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
7 #ifndef V8TestCallbackInterface_h
8 #define V8TestCallbackInterface_h
10 #include "bindings/core/v8/ActiveDOMCallback.h"
11 #include "bindings/core/v8/DOMWrapperWorld.h"
12 #include "bindings/core/v8/ScopedPersistent.h"
13 #include "bindings/tests/idls/core/TestCallbackInterface.h"
17 class V8TestCallbackInterface final : public TestCallbackInterface, public ActiveDOMCallback {
19 static V8TestCallbackInterface* create(v8::Handle<v8::Function> callback, ScriptState* scriptState)
21 return new V8TestCallbackInterface(callback, scriptState);
24 virtual ~V8TestCallbackInterface();
26 virtual void voidMethod() override;
27 virtual bool booleanMethod() override;
28 virtual void voidMethodBooleanArg(bool boolArg) override;
29 virtual void voidMethodSequenceArg(const Vector<RefPtr<TestInterfaceEmpty> >& sequenceArg) override;
30 virtual void voidMethodFloatArg(float floatArg) override;
31 virtual void voidMethodTestInterfaceEmptyArg(TestInterfaceEmpty* testInterfaceEmptyArg) override;
32 virtual void voidMethodTestInterfaceEmptyStringArg(TestInterfaceEmpty* testInterfaceEmptyArg, const String& stringArg) override;
33 virtual void callbackWithThisValueVoidMethodStringArg(ScriptValue thisValue, const String& stringArg) override;
34 virtual void customVoidMethodTestInterfaceEmptyArg(TestInterfaceEmpty* testInterfaceEmptyArg) override;
35 virtual void voidMethodWillBeGarbageCollectedSequenceArg(const WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected> >& sequenceArg) override;
36 virtual void voidMethodWillBeGarbageCollectedArrayArg(const WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected> >& arrayArg) override;
38 V8TestCallbackInterface(v8::Handle<v8::Function>, ScriptState*);
40 ScopedPersistent<v8::Function> m_callback;
41 RefPtr<ScriptState> m_scriptState;
45 #endif // V8TestCallbackInterface_h