48fbc40bc4ac34d93a34e586c0d12e124d151400
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / bindings / tests / results / V8TestCallbackInterface.h
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!
6
7 #ifndef V8TestCallbackInterface_h
8 #define V8TestCallbackInterface_h
9
10 #include "bindings/tests/idls/TestCallbackInterface.h"
11 #include "bindings/v8/ActiveDOMCallback.h"
12 #include "bindings/v8/DOMWrapperWorld.h"
13 #include "bindings/v8/ScopedPersistent.h"
14
15 namespace WebCore {
16
17 class ExecutionContext;
18
19 class V8TestCallbackInterface FINAL : public TestCallbackInterface, public ActiveDOMCallback {
20 public:
21     static PassOwnPtr<V8TestCallbackInterface> create(v8::Handle<v8::Function> callback, ExecutionContext* context)
22     {
23         ASSERT(context);
24         return adoptPtr(new V8TestCallbackInterface(callback, context));
25     }
26
27     virtual ~V8TestCallbackInterface();
28
29     virtual void voidMethod() OVERRIDE;
30     virtual bool booleanMethod() OVERRIDE;
31     virtual void voidMethodBooleanArg(bool boolArg) OVERRIDE;
32     virtual void voidMethodSequenceArg(const Vector<RefPtr<TestInterfaceEmpty> >& sequenceArg) OVERRIDE;
33     virtual void voidMethodFloatArg(float floatArg) OVERRIDE;
34     virtual void voidMethodTestInterfaceEmptyArg(TestInterfaceEmpty* testInterfaceEmptyArg) OVERRIDE;
35     virtual void voidMethodTestInterfaceEmptyStringArg(TestInterfaceEmpty* testInterfaceEmptyArg, const String& stringArg) OVERRIDE;
36     virtual void callbackWithThisValueVoidMethodStringArg(ScriptValue thisValue, const String& stringArg) OVERRIDE;
37     virtual void customVoidMethodTestInterfaceEmptyArg(TestInterfaceEmpty* testInterfaceEmptyArg) OVERRIDE;
38     virtual void voidMethodWillBeGarbageCollectedSequenceArg(const WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected> >& sequenceArg) OVERRIDE;
39     virtual void voidMethodWillBeGarbageCollectedArrayArg(const WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected> >& arrayArg) OVERRIDE;
40 private:
41     V8TestCallbackInterface(v8::Handle<v8::Function>, ExecutionContext*);
42
43     v8::Isolate* m_isolate;
44     ScopedPersistent<v8::Function> m_callback;
45     RefPtr<DOMWrapperWorld> m_world;
46 };
47
48 }
49 #endif // V8TestCallbackInterface_h