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/Vector.h" |
11 #include "wtf/text/WTFString.h" | 11 #include "wtf/text/WTFString.h" |
12 | 12 |
13 namespace blink { | 13 namespace blink { |
14 | 14 |
15 class ExceptionState; | 15 class ExceptionState; |
16 class HTMLDivElement; | 16 class HTMLDivElement; |
17 class ScriptState; | 17 class ScriptState; |
18 class V8TestCallback; | 18 class TestCallback; |
19 class V8TestInterfaceCallback; | 19 class TestInterfaceCallback; |
20 class V8TestReceiverObjectCallback; | 20 class TestReceiverObjectCallback; |
21 class V8TestSequenceCallback; | 21 class TestSequenceCallback; |
22 | 22 |
23 class CallbackFunctionTest final : public GarbageCollected<CallbackFunctionTest>
, public ScriptWrappable { | 23 class CallbackFunctionTest final : public GarbageCollected<CallbackFunctionTest>
, public ScriptWrappable { |
24 DEFINE_WRAPPERTYPEINFO(); | 24 DEFINE_WRAPPERTYPEINFO(); |
25 public: | 25 public: |
26 DECLARE_TRACE(); | 26 DECLARE_TRACE(); |
27 | 27 |
28 static CallbackFunctionTest* create() { return new CallbackFunctionTest(); } | 28 static CallbackFunctionTest* create() { return new CallbackFunctionTest(); } |
29 | 29 |
30 String testCallback(ScriptState*, V8TestCallback*, const String&, const Stri
ng&, ExceptionState&); | 30 String testCallback(ScriptState*, TestCallback*, const String&, const String
&, ExceptionState&); |
31 void testInterfaceCallback(ScriptState*, V8TestInterfaceCallback*, HTMLDivEl
ement*, ExceptionState&); | 31 void testInterfaceCallback(ScriptState*, TestInterfaceCallback*, HTMLDivElem
ent*, ExceptionState&); |
32 void testReceiverObjectCallback(ScriptState*, V8TestReceiverObjectCallback*,
ExceptionState&); | 32 void testReceiverObjectCallback(ScriptState*, TestReceiverObjectCallback*, E
xceptionState&); |
33 Vector<String> testSequenceCallback(ScriptState*, V8TestSequenceCallback*, c
onst Vector<int>& numbers, ExceptionState&); | 33 Vector<String> testSequenceCallback(ScriptState*, TestSequenceCallback*, con
st Vector<int>& numbers, ExceptionState&); |
34 }; | 34 }; |
35 | 35 |
36 } // namespace blink | 36 } // namespace blink |
37 | 37 |
38 #endif // CallbackFunctionTest_h | 38 #endif // CallbackFunctionTest_h |
OLD | NEW |