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

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

Issue 675693002: An API returning a Promise should not throw an exceptions [overload version] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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 /* 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 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 Promise<void> promiseMethod(long arg1, Dictionary arg2, DOMString arg3, DOMS tring... variadic); 369 Promise<void> promiseMethod(long arg1, Dictionary arg2, DOMString arg3, DOMS tring... variadic);
370 Promise promiseMethodWithoutExceptionState(Dictionary arg1); 370 Promise promiseMethodWithoutExceptionState(Dictionary arg1);
371 SerializedScriptValue serializedScriptValueMethod(); 371 SerializedScriptValue serializedScriptValueMethod();
372 XPathNSResolver xPathNSResolverMethod(); 372 XPathNSResolver xPathNSResolverMethod();
373 void voidMethodDictionaryArg(Dictionary dictionaryArg); 373 void voidMethodDictionaryArg(Dictionary dictionaryArg);
374 void voidMethodNodeFilterArg(NodeFilter nodeFilterArg); 374 void voidMethodNodeFilterArg(NodeFilter nodeFilterArg);
375 void voidMethodPromiseArg(Promise promiseArg); 375 void voidMethodPromiseArg(Promise promiseArg);
376 void voidMethodSerializedScriptValueArg(SerializedScriptValue serializedScri ptValueArg); 376 void voidMethodSerializedScriptValueArg(SerializedScriptValue serializedScri ptValueArg);
377 void voidMethodXPathNSResolverArg(XPathNSResolver xPathNSResolverArg); 377 void voidMethodXPathNSResolverArg(XPathNSResolver xPathNSResolverArg);
378 void voidMethodDictionarySequenceArg(sequence<Dictionary> dictionarySequence Arg); 378 void voidMethodDictionarySequenceArg(sequence<Dictionary> dictionarySequence Arg);
379 Promise overloadedPromiseMethod(long arg);
380 Promise overloadedPromiseMethod(DOMString arg);
381 379
382 // Arguments 380 // Arguments
383 void voidMethodStringArgLongArg(DOMString stringArg, long longArg); 381 void voidMethodStringArgLongArg(DOMString stringArg, long longArg);
384 // Optional arguments 382 // Optional arguments
385 void voidMethodOptionalStringArg(optional DOMString optionalStringArg); 383 void voidMethodOptionalStringArg(optional DOMString optionalStringArg);
386 void voidMethodOptionalTestInterfaceEmptyArg(optional TestInterfaceEmpty opt ionalTestInterfaceEmptyArg); 384 void voidMethodOptionalTestInterfaceEmptyArg(optional TestInterfaceEmpty opt ionalTestInterfaceEmptyArg);
387 void voidMethodOptionalLongArg(optional long optionalLongArg); 385 void voidMethodOptionalLongArg(optional long optionalLongArg);
388 DOMString stringMethodOptionalLongArg(optional long optionalLongArg); 386 DOMString stringMethodOptionalLongArg(optional long optionalLongArg);
389 TestInterfaceEmpty testInterfaceEmptyMethodOptionalLongArg(optional long opt ionalLongArg); 387 TestInterfaceEmpty testInterfaceEmptyMethodOptionalLongArg(optional long opt ionalLongArg);
390 long longMethodOptionalLongArg(optional long optionalLongArg); 388 long longMethodOptionalLongArg(optional long optionalLongArg);
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 void overloadedMethodF(double doubleArg); 429 void overloadedMethodF(double doubleArg);
432 void overloadedMethodG(long longArg); 430 void overloadedMethodG(long longArg);
433 void overloadedMethodG(optional TestInterfaceEmpty? testInterfaceEmptyOrNull Arg = null); 431 void overloadedMethodG(optional TestInterfaceEmpty? testInterfaceEmptyOrNull Arg = null);
434 void overloadedMethodH(TestInterface testInterfaceArg); 432 void overloadedMethodH(TestInterface testInterfaceArg);
435 void overloadedMethodH(TestInterfaceEmpty testInterfaceEmptyArg); 433 void overloadedMethodH(TestInterfaceEmpty testInterfaceEmptyArg);
436 void overloadedMethodI(DOMString stringArg); 434 void overloadedMethodI(DOMString stringArg);
437 void overloadedMethodI(double doubleArg); 435 void overloadedMethodI(double doubleArg);
438 void overloadedMethodJ(DOMString stringArg); 436 void overloadedMethodJ(DOMString stringArg);
439 void overloadedMethodJ(TestDictionary testDictionaryArg); 437 void overloadedMethodJ(TestDictionary testDictionaryArg);
440 438
439 Promise promiseOverloadMethod();
440 Promise promiseOverloadMethod(Window arg1, double arg2);
441 Promise promiseOverloadMethod(Document arg1, double arg2);
441 442
442 [PerWorldBindings] void overloadedPerWorldBindingsMethod(); 443 [PerWorldBindings] void overloadedPerWorldBindingsMethod();
443 [PerWorldBindings] void overloadedPerWorldBindingsMethod(long longArg); 444 [PerWorldBindings] void overloadedPerWorldBindingsMethod(long longArg);
444 445
445 static void overloadedStaticMethod(long longArg); 446 static void overloadedStaticMethod(long longArg);
446 static void overloadedStaticMethod(long longArg1, long longArg2); 447 static void overloadedStaticMethod(long longArg1, long longArg2);
447 448
448 // Extended attributes for arguments 449 // Extended attributes for arguments
449 // [Clamp] 450 // [Clamp]
450 void voidMethodClampUnsignedShortArg([Clamp] unsigned short clampUnsignedSho rtArg); 451 void voidMethodClampUnsignedShortArg([Clamp] unsigned short clampUnsignedSho rtArg);
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 [ImplementedInPrivateScript] readonly attribute short readonlyShortAttribute ; 552 [ImplementedInPrivateScript] readonly attribute short readonlyShortAttribute ;
552 [ImplementedInPrivateScript] attribute short shortAttribute; 553 [ImplementedInPrivateScript] attribute short shortAttribute;
553 [ImplementedInPrivateScript] attribute DOMString stringAttribute; 554 [ImplementedInPrivateScript] attribute DOMString stringAttribute;
554 [ImplementedInPrivateScript] attribute Node nodeAttribute; 555 [ImplementedInPrivateScript] attribute Node nodeAttribute;
555 [OnlyExposedToPrivateScript] short methodImplementedInCPPForPrivateScriptOnl y(short value1, short value2); 556 [OnlyExposedToPrivateScript] short methodImplementedInCPPForPrivateScriptOnl y(short value1, short value2);
556 [OnlyExposedToPrivateScript] attribute DOMString attributeImplementedInCPPFo rPrivateScriptOnly; 557 [OnlyExposedToPrivateScript] attribute DOMString attributeImplementedInCPPFo rPrivateScriptOnly;
557 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] short methodForPriv ateScriptOnly(short value1, short value2); 558 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] short methodForPriv ateScriptOnly(short value1, short value2);
558 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] attribute DOMString attributeForPrivateScriptOnly; 559 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] attribute DOMString attributeForPrivateScriptOnly;
559 [ImplementedInPrivateScript] attribute TestEnum enumForPrivateScript; 560 [ImplementedInPrivateScript] attribute TestEnum enumForPrivateScript;
560 }; 561 };
OLDNEW
« no previous file with comments | « Source/bindings/tests/idls/core/TestInterface.idl ('k') | Source/bindings/tests/idls/modules/TestPartialInterface3.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698