| 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 | 23 class CallbackFunctionTest final |
| 24 : public GarbageCollected<CallbackFunctionTest>, | 24 : public GarbageCollected<CallbackFunctionTest>, |
| 25 public ScriptWrappable { | 25 public ScriptWrappable { |
| 26 DEFINE_WRAPPERTYPEINFO(); | 26 DEFINE_WRAPPERTYPEINFO(); |
| 27 | 27 |
| 28 public: | 28 public: |
| 29 DECLARE_TRACE(); | 29 DECLARE_TRACE(); |
| 30 | 30 |
| 31 static CallbackFunctionTest* create() { return new CallbackFunctionTest(); } | 31 static CallbackFunctionTest* create() { return new CallbackFunctionTest(); } |
| 32 | 32 |
| 33 String testCallback(ScriptState*, | 33 String testCallback(ScriptState*, |
| 34 V8TestCallback*, | 34 TestCallback*, |
| 35 const String&, | 35 const String&, |
| 36 const String&, | 36 const String&, |
| 37 ExceptionState&); | 37 ExceptionState&); |
| 38 void testInterfaceCallback(ScriptState*, | 38 void testInterfaceCallback(ScriptState*, |
| 39 V8TestInterfaceCallback*, | 39 TestInterfaceCallback*, |
| 40 HTMLDivElement*, | 40 HTMLDivElement*, |
| 41 ExceptionState&); | 41 ExceptionState&); |
| 42 void testReceiverObjectCallback(ScriptState*, | 42 void testReceiverObjectCallback(ScriptState*, |
| 43 V8TestReceiverObjectCallback*, | 43 TestReceiverObjectCallback*, |
| 44 ExceptionState&); | 44 ExceptionState&); |
| 45 Vector<String> testSequenceCallback(ScriptState*, | 45 Vector<String> testSequenceCallback(ScriptState*, |
| 46 V8TestSequenceCallback*, | 46 TestSequenceCallback*, |
| 47 const Vector<int>& numbers, | 47 const Vector<int>& numbers, |
| 48 ExceptionState&); | 48 ExceptionState&); |
| 49 }; | 49 }; |
| 50 | 50 |
| 51 } // namespace blink | 51 } // namespace blink |
| 52 | 52 |
| 53 #endif // CallbackFunctionTest_h | 53 #endif // CallbackFunctionTest_h |
| OLD | NEW |