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

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

Issue 2458573002: bindings: Store ScriptState in generated callback functions (Closed)
Patch Set: Created 4 years, 1 month 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/Vector.h" 10 #include "wtf/Vector.h"
(...skipping 12 matching lines...) Expand all
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(TestCallback*,
34 TestCallback*,
35 const String&, 34 const String&,
36 const String&, 35 const String&,
37 ExceptionState&); 36 ExceptionState&);
38 void testInterfaceCallback(ScriptState*, 37 void testInterfaceCallback(TestInterfaceCallback*,
39 TestInterfaceCallback*,
40 HTMLDivElement*, 38 HTMLDivElement*,
41 ExceptionState&); 39 ExceptionState&);
42 void testReceiverObjectCallback(ScriptState*, 40 void testReceiverObjectCallback(TestReceiverObjectCallback*, ExceptionState&);
43 TestReceiverObjectCallback*, 41 Vector<String> testSequenceCallback(TestSequenceCallback*,
44 ExceptionState&);
45 Vector<String> testSequenceCallback(ScriptState*,
46 TestSequenceCallback*,
47 const Vector<int>& numbers, 42 const Vector<int>& numbers,
48 ExceptionState&); 43 ExceptionState&);
49 }; 44 };
50 45
51 } // namespace blink 46 } // namespace blink
52 47
53 #endif // CallbackFunctionTest_h 48 #endif // CallbackFunctionTest_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698