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

Side by Side Diff: Source/bindings/tests/idls/TestObject.idl

Issue 232563003: API functions returning Promises should not throw exceptions. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 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 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 // Callback interface types 326 // Callback interface types
327 void voidMethodTestCallbackInterfaceArg(TestCallbackInterface testCallbackIn terfaceArg); 327 void voidMethodTestCallbackInterfaceArg(TestCallbackInterface testCallbackIn terfaceArg);
328 void voidMethodOptionalTestCallbackInterfaceArg(optional TestCallbackInterfa ce optionalTestCallbackInterfaceArg); 328 void voidMethodOptionalTestCallbackInterfaceArg(optional TestCallbackInterfa ce optionalTestCallbackInterfaceArg);
329 void voidMethodTestCallbackInterfaceOrNullArg(TestCallbackInterface? testCal lbackInterfaceArg); 329 void voidMethodTestCallbackInterfaceOrNullArg(TestCallbackInterface? testCal lbackInterfaceArg);
330 // Enumerations 330 // Enumerations
331 TestEnum testEnumMethod(); 331 TestEnum testEnumMethod();
332 void voidMethodTestEnumArg(TestEnum testEnumTypeArg); 332 void voidMethodTestEnumArg(TestEnum testEnumTypeArg);
333 // Exceptional types 333 // Exceptional types
334 Dictionary dictionaryMethod(); 334 Dictionary dictionaryMethod();
335 NodeFilter nodeFilterMethod(); 335 NodeFilter nodeFilterMethod();
336 Promise promiseMethod(); 336 Promise promiseMethod(long arg1, Dictionary arg2, DOMString arg3, DOMString. .. variadic);
337 Promise promiseMethodWithoutExceptionState(Dictionary arg1);
337 SerializedScriptValue serializedScriptValueMethod(); 338 SerializedScriptValue serializedScriptValueMethod();
338 XPathNSResolver xPathNSResolverMethod(); 339 XPathNSResolver xPathNSResolverMethod();
339 void voidMethodDictionaryArg(Dictionary dictionaryArg); 340 void voidMethodDictionaryArg(Dictionary dictionaryArg);
340 void voidMethodEventListenerArg(EventListener eventListenerArg); 341 void voidMethodEventListenerArg(EventListener eventListenerArg);
341 void voidMethodNodeFilterArg(NodeFilter nodeFilterArg); 342 void voidMethodNodeFilterArg(NodeFilter nodeFilterArg);
342 void voidMethodPromiseArg(Promise promiseArg); 343 void voidMethodPromiseArg(Promise promiseArg);
343 void voidMethodSerializedScriptValueArg(SerializedScriptValue serializedScri ptValueArg); 344 void voidMethodSerializedScriptValueArg(SerializedScriptValue serializedScri ptValueArg);
344 void voidMethodXPathNSResolverArg(XPathNSResolver xPathNSResolverArg); 345 void voidMethodXPathNSResolverArg(XPathNSResolver xPathNSResolverArg);
345 void voidMethodDictionarySequenceArg(sequence<Dictionary> dictionarySequence Arg); 346 void voidMethodDictionarySequenceArg(sequence<Dictionary> dictionarySequence Arg);
346 347
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 void voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(TestInterfaceWill BeGarbageCollected[] testInterfaceWillBeGarbageCollectedArrayArg); 467 void voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(TestInterfaceWill BeGarbageCollected[] testInterfaceWillBeGarbageCollectedArrayArg);
467 468
468 // Extended attributes on referenced interfaces 469 // Extended attributes on referenced interfaces
469 // (not self; self-reference tests at interface themselves) 470 // (not self; self-reference tests at interface themselves)
470 attribute TestInterface testInterfaceAttribute; // [ImplementedAs] 471 attribute TestInterface testInterfaceAttribute; // [ImplementedAs]
471 attribute TestInterfaceGarbageCollected testInterfaceGarbageCollectedAttribu te; // [GarbageCollected] 472 attribute TestInterfaceGarbageCollected testInterfaceGarbageCollectedAttribu te; // [GarbageCollected]
472 attribute TestInterfaceGarbageCollected? testInterfaceGarbageCollectedOrNull Attribute; // [GarbageCollected] 473 attribute TestInterfaceGarbageCollected? testInterfaceGarbageCollectedOrNull Attribute; // [GarbageCollected]
473 attribute TestInterfaceWillBeGarbageCollected testInterfaceWillBeGarbageColl ectedAttribute; // [WillBeGarbageCollected] 474 attribute TestInterfaceWillBeGarbageCollected testInterfaceWillBeGarbageColl ectedAttribute; // [WillBeGarbageCollected]
474 attribute TestInterfaceWillBeGarbageCollected? testInterfaceWillBeGarbageCol lectedOrNullAttribute; // [WillBeGarbageCollected] 475 attribute TestInterfaceWillBeGarbageCollected? testInterfaceWillBeGarbageCol lectedOrNullAttribute; // [WillBeGarbageCollected]
475 }; 476 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698