OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! | 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! |
6 | 6 |
7 #ifndef V8TestCallbackInterface_h | 7 #ifndef V8TestCallbackInterface_h |
8 #define V8TestCallbackInterface_h | 8 #define V8TestCallbackInterface_h |
9 | 9 |
10 #include "bindings/core/v8/ActiveDOMCallback.h" | 10 #include "bindings/core/v8/ActiveDOMCallback.h" |
11 #include "bindings/core/v8/DOMWrapperWorld.h" | 11 #include "bindings/core/v8/DOMWrapperWorld.h" |
12 #include "bindings/core/v8/ScopedPersistent.h" | 12 #include "bindings/core/v8/ScopedPersistent.h" |
13 #include "bindings/tests/idls/core/TestCallbackInterface.h" | 13 #include "bindings/tests/idls/core/TestCallbackInterface.h" |
14 | 14 |
15 namespace blink { | 15 namespace blink { |
16 | 16 |
17 class V8TestCallbackInterface final : public TestCallbackInterface, public Activ
eDOMCallback { | 17 class V8TestCallbackInterface final : public TestCallbackInterface, public Activ
eDOMCallback { |
18 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(V8TestCallbackInterface); | 18 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(V8TestCallbackInterface); |
19 public: | 19 public: |
20 static V8TestCallbackInterface* create(v8::Local<v8::Function> callback, Scr
iptState* scriptState) | 20 static V8TestCallbackInterface* create(v8::Local<v8::Function> callback, Scr
iptState* scriptState) |
21 { | 21 { |
22 return new V8TestCallbackInterface(callback, scriptState); | 22 return new V8TestCallbackInterface(callback, scriptState); |
23 } | 23 } |
24 | 24 |
25 virtual ~V8TestCallbackInterface(); | 25 virtual ~V8TestCallbackInterface(); |
26 | 26 |
27 virtual void trace(Visitor*) override; | 27 DECLARE_VIRTUAL_TRACE(); |
28 | 28 |
29 virtual void voidMethod() override; | 29 virtual void voidMethod() override; |
30 virtual bool booleanMethod() override; | 30 virtual bool booleanMethod() override; |
31 virtual void voidMethodBooleanArg(bool boolArg) override; | 31 virtual void voidMethodBooleanArg(bool boolArg) override; |
32 virtual void voidMethodSequenceArg(const Vector<RefPtr<TestInterfaceEmpty>>&
sequenceArg) override; | 32 virtual void voidMethodSequenceArg(const Vector<RefPtr<TestInterfaceEmpty>>&
sequenceArg) override; |
33 virtual void voidMethodFloatArg(float floatArg) override; | 33 virtual void voidMethodFloatArg(float floatArg) override; |
34 virtual void voidMethodTestInterfaceEmptyArg(TestInterfaceEmpty* testInterfa
ceEmptyArg) override; | 34 virtual void voidMethodTestInterfaceEmptyArg(TestInterfaceEmpty* testInterfa
ceEmptyArg) override; |
35 virtual void voidMethodTestInterfaceEmptyStringArg(TestInterfaceEmpty* testI
nterfaceEmptyArg, const String& stringArg) override; | 35 virtual void voidMethodTestInterfaceEmptyStringArg(TestInterfaceEmpty* testI
nterfaceEmptyArg, const String& stringArg) override; |
36 virtual void callbackWithThisValueVoidMethodStringArg(ScriptValue thisValue,
const String& stringArg) override; | 36 virtual void callbackWithThisValueVoidMethodStringArg(ScriptValue thisValue,
const String& stringArg) override; |
37 virtual void customVoidMethodTestInterfaceEmptyArg(TestInterfaceEmpty* testI
nterfaceEmptyArg) override; | 37 virtual void customVoidMethodTestInterfaceEmptyArg(TestInterfaceEmpty* testI
nterfaceEmptyArg) override; |
38 virtual void voidMethodWillBeGarbageCollectedSequenceArg(const WillBeHeapVec
tor<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected>>& sequenceArg) overr
ide; | 38 virtual void voidMethodWillBeGarbageCollectedSequenceArg(const WillBeHeapVec
tor<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected>>& sequenceArg) overr
ide; |
39 virtual void voidMethodWillBeGarbageCollectedArrayArg(const WillBeHeapVector
<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected>>& arrayArg) override; | 39 virtual void voidMethodWillBeGarbageCollectedArrayArg(const WillBeHeapVector
<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected>>& arrayArg) override; |
40 private: | 40 private: |
41 V8TestCallbackInterface(v8::Local<v8::Function>, ScriptState*); | 41 V8TestCallbackInterface(v8::Local<v8::Function>, ScriptState*); |
42 | 42 |
43 ScopedPersistent<v8::Function> m_callback; | 43 ScopedPersistent<v8::Function> m_callback; |
44 RefPtr<ScriptState> m_scriptState; | 44 RefPtr<ScriptState> m_scriptState; |
45 }; | 45 }; |
46 | 46 |
47 } | 47 } |
48 #endif // V8TestCallbackInterface_h | 48 #endif // V8TestCallbackInterface_h |
OLD | NEW |