| 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/text/WTFString.h" | 10 #include "wtf/text/WTFString.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class ExceptionState; | 14 class ExceptionState; |
| 15 class HTMLDivElement; |
| 15 class ScriptState; | 16 class ScriptState; |
| 16 class V8TestCallback; | 17 class V8TestCallback; |
| 18 class V8TestInterfaceCallback; |
| 17 | 19 |
| 18 class CallbackFunctionTest final : public GarbageCollected<CallbackFunctionTest>
, public ScriptWrappable { | 20 class CallbackFunctionTest final : public GarbageCollected<CallbackFunctionTest>
, public ScriptWrappable { |
| 19 DEFINE_WRAPPERTYPEINFO(); | 21 DEFINE_WRAPPERTYPEINFO(); |
| 20 public: | 22 public: |
| 21 DECLARE_TRACE(); | 23 DECLARE_TRACE(); |
| 22 | 24 |
| 23 static CallbackFunctionTest* create() { return new CallbackFunctionTest(); } | 25 static CallbackFunctionTest* create() { return new CallbackFunctionTest(); } |
| 24 | 26 |
| 25 String testCallback(ScriptState*, V8TestCallback*, const String&, const Stri
ng&, ExceptionState&); | 27 String testCallback(ScriptState*, V8TestCallback*, const String&, const Stri
ng&, ExceptionState&); |
| 28 void testInterfaceCallback(ScriptState*, V8TestInterfaceCallback*, HeapVecto
r<Member<HTMLDivElement>>&, ExceptionState&); |
| 26 }; | 29 }; |
| 27 | 30 |
| 28 } // namespace blink | 31 } // namespace blink |
| 29 | 32 |
| 30 #endif // CallbackFunctionTest_h | 33 #endif // CallbackFunctionTest_h |
| OLD | NEW |