OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef CallbackFunctionTest_h | 5 #ifndef CallbackFunctionTest_h |
6 #define CallbackFunctionTest_h | 6 #define CallbackFunctionTest_h |
7 | 7 |
8 #include "bindings/core/v8/ScriptWrappable.h" | 8 #include "bindings/core/v8/ScriptWrappable.h" |
9 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
| 10 #include "wtf/Vector.h" |
10 #include "wtf/text/WTFString.h" | 11 #include "wtf/text/WTFString.h" |
11 | 12 |
12 namespace blink { | 13 namespace blink { |
13 | 14 |
14 class ExceptionState; | 15 class ExceptionState; |
15 class HTMLDivElement; | 16 class HTMLDivElement; |
16 class ScriptState; | 17 class ScriptState; |
17 class V8TestCallback; | 18 class V8TestCallback; |
18 class V8TestInterfaceCallback; | 19 class V8TestInterfaceCallback; |
19 class V8TestReceiverObjectCallback; | 20 class V8TestReceiverObjectCallback; |
| 21 class V8TestSequenceCallback; |
20 | 22 |
21 class CallbackFunctionTest final : public GarbageCollected<CallbackFunctionTest>
, public ScriptWrappable { | 23 class CallbackFunctionTest final : public GarbageCollected<CallbackFunctionTest>
, public ScriptWrappable { |
22 DEFINE_WRAPPERTYPEINFO(); | 24 DEFINE_WRAPPERTYPEINFO(); |
23 public: | 25 public: |
24 DECLARE_TRACE(); | 26 DECLARE_TRACE(); |
25 | 27 |
26 static CallbackFunctionTest* create() { return new CallbackFunctionTest(); } | 28 static CallbackFunctionTest* create() { return new CallbackFunctionTest(); } |
27 | 29 |
28 String testCallback(ScriptState*, V8TestCallback*, const String&, const Stri
ng&, ExceptionState&); | 30 String testCallback(ScriptState*, V8TestCallback*, const String&, const Stri
ng&, ExceptionState&); |
29 void testInterfaceCallback(ScriptState*, V8TestInterfaceCallback*, HTMLDivEl
ement*, ExceptionState&); | 31 void testInterfaceCallback(ScriptState*, V8TestInterfaceCallback*, HTMLDivEl
ement*, ExceptionState&); |
30 void testReceiverObjectCallback(ScriptState*, V8TestReceiverObjectCallback*,
ExceptionState&); | 32 void testReceiverObjectCallback(ScriptState*, V8TestReceiverObjectCallback*,
ExceptionState&); |
| 33 Vector<String> testSequenceCallback(ScriptState*, V8TestSequenceCallback*, c
onst Vector<int>& numbers, ExceptionState&); |
31 }; | 34 }; |
32 | 35 |
33 } // namespace blink | 36 } // namespace blink |
34 | 37 |
35 #endif // CallbackFunctionTest_h | 38 #endif // CallbackFunctionTest_h |
OLD | NEW |