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

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 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 // Callback interface types 324 // Callback interface types
325 void voidMethodTestCallbackInterfaceArg(TestCallbackInterface testCallbackIn terfaceArg); 325 void voidMethodTestCallbackInterfaceArg(TestCallbackInterface testCallbackIn terfaceArg);
326 void voidMethodOptionalTestCallbackInterfaceArg(optional TestCallbackInterfa ce optionalTestCallbackInterfaceArg); 326 void voidMethodOptionalTestCallbackInterfaceArg(optional TestCallbackInterfa ce optionalTestCallbackInterfaceArg);
327 void voidMethodTestCallbackInterfaceOrNullArg(TestCallbackInterface? testCal lbackInterfaceArg); 327 void voidMethodTestCallbackInterfaceOrNullArg(TestCallbackInterface? testCal lbackInterfaceArg);
328 // Enumerations 328 // Enumerations
329 TestEnum testEnumMethod(); 329 TestEnum testEnumMethod();
330 void voidMethodTestEnumArg(TestEnum testEnumTypeArg); 330 void voidMethodTestEnumArg(TestEnum testEnumTypeArg);
331 // Exceptional types 331 // Exceptional types
332 Dictionary dictionaryMethod(); 332 Dictionary dictionaryMethod();
333 NodeFilter nodeFilterMethod(); 333 NodeFilter nodeFilterMethod();
334 Promise promiseMethod(); 334 Promise promiseMethod(long arg1, Dictionary arg2, DOMString arg3, DOMString. .. variadic);
335 Promise promiseMethodWithoutExceptionState(Dictionary arg1);
335 SerializedScriptValue serializedScriptValueMethod(); 336 SerializedScriptValue serializedScriptValueMethod();
336 XPathNSResolver xPathNSResolverMethod(); 337 XPathNSResolver xPathNSResolverMethod();
337 void voidMethodDictionaryArg(Dictionary dictionaryArg); 338 void voidMethodDictionaryArg(Dictionary dictionaryArg);
338 void voidMethodEventListenerArg(EventListener eventListenerArg); 339 void voidMethodEventListenerArg(EventListener eventListenerArg);
339 void voidMethodNodeFilterArg(NodeFilter nodeFilterArg); 340 void voidMethodNodeFilterArg(NodeFilter nodeFilterArg);
340 void voidMethodPromiseArg(Promise promiseArg); 341 void voidMethodPromiseArg(Promise promiseArg);
341 void voidMethodSerializedScriptValueArg(SerializedScriptValue serializedScri ptValueArg); 342 void voidMethodSerializedScriptValueArg(SerializedScriptValue serializedScri ptValueArg);
342 void voidMethodXPathNSResolverArg(XPathNSResolver xPathNSResolverArg); 343 void voidMethodXPathNSResolverArg(XPathNSResolver xPathNSResolverArg);
343 void voidMethodDictionarySequenceArg(sequence<Dictionary> dictionarySequence Arg); 344 void voidMethodDictionarySequenceArg(sequence<Dictionary> dictionarySequence Arg);
344 345
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 // [WillBeGarbageCollected] 462 // [WillBeGarbageCollected]
462 void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg(sequence<TestI nterfaceWillBeGarbageCollected> testInterfaceWillBeGarbageCollectedSequenceArg); 463 void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg(sequence<TestI nterfaceWillBeGarbageCollected> testInterfaceWillBeGarbageCollectedSequenceArg);
463 void voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(TestInterfaceWill BeGarbageCollected[] testInterfaceWillBeGarbageCollectedArrayArg); 464 void voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(TestInterfaceWill BeGarbageCollected[] testInterfaceWillBeGarbageCollectedArrayArg);
464 465
465 // Extended attributes on referenced interfaces 466 // Extended attributes on referenced interfaces
466 // (not self; self-reference tests at interface themselves) 467 // (not self; self-reference tests at interface themselves)
467 attribute TestInterface testInterfaceAttribute; // [ImplementedAs] 468 attribute TestInterface testInterfaceAttribute; // [ImplementedAs]
468 attribute TestInterfaceWillBeGarbageCollected testInterfaceWillBeGarbageColl ectedAttribute; // [WillBeGarbageCollected] 469 attribute TestInterfaceWillBeGarbageCollected testInterfaceWillBeGarbageColl ectedAttribute; // [WillBeGarbageCollected]
469 attribute TestInterfaceWillBeGarbageCollected? testInterfaceWillBeGarbageCol lectedOrNullAttribute; // [WillBeGarbageCollected] 470 attribute TestInterfaceWillBeGarbageCollected? testInterfaceWillBeGarbageCol lectedOrNullAttribute; // [WillBeGarbageCollected]
470 }; 471 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698