Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(818)

Side by Side Diff: third_party/WebKit/Source/core/testing/CallbackFunctionTest.h

Issue 2367543004: Extended implementation to use interface as arguments (Closed)
Patch Set: Addressed comments Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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*, HTMLDivEl ement*, ExceptionState&);
26 }; 29 };
27 30
28 } // namespace blink 31 } // namespace blink
29 32
30 #endif // CallbackFunctionTest_h 33 #endif // CallbackFunctionTest_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698