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

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

Issue 2617653002: bindings: Don't throw a TypeError when 'null' is passed to nullable callback function (Closed)
Patch Set: Created 3 years, 11 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/Vector.h" 10 #include "wtf/Vector.h"
(...skipping 15 matching lines...) Expand all
26 26
27 public: 27 public:
28 DECLARE_TRACE(); 28 DECLARE_TRACE();
29 29
30 static CallbackFunctionTest* create() { return new CallbackFunctionTest(); } 30 static CallbackFunctionTest* create() { return new CallbackFunctionTest(); }
31 31
32 String testCallback(TestCallback*, 32 String testCallback(TestCallback*,
33 const String&, 33 const String&,
34 const String&, 34 const String&,
35 ExceptionState&); 35 ExceptionState&);
36 String testNullableCallback(TestCallback*,
37 const String&,
38 const String&,
39 ExceptionState&);
36 void testInterfaceCallback(TestInterfaceCallback*, 40 void testInterfaceCallback(TestInterfaceCallback*,
37 HTMLDivElement*, 41 HTMLDivElement*,
38 ExceptionState&); 42 ExceptionState&);
39 void testReceiverObjectCallback(TestReceiverObjectCallback*, ExceptionState&); 43 void testReceiverObjectCallback(TestReceiverObjectCallback*, ExceptionState&);
40 Vector<String> testSequenceCallback(TestSequenceCallback*, 44 Vector<String> testSequenceCallback(TestSequenceCallback*,
41 const Vector<int>& numbers, 45 const Vector<int>& numbers,
42 ExceptionState&); 46 ExceptionState&);
43 }; 47 };
44 48
45 } // namespace blink 49 } // namespace blink
46 50
47 #endif // CallbackFunctionTest_h 51 #endif // CallbackFunctionTest_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698