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

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

Issue 337343002: IDL: make optional arguments (without default) explicit sometimes Base URL: https://chromium.googlesource.com/chromium/blink.git@idl-default-arguments-next
Patch Set: Created 6 years, 6 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 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 void voidMethodDefaultByteStringArg(optional ByteString defaultByteStringArg = "foo"); 383 void voidMethodDefaultByteStringArg(optional ByteString defaultByteStringArg = "foo");
384 void voidMethodDefaultStringArg(optional DOMString defaultStringArg = "foo") ; 384 void voidMethodDefaultStringArg(optional DOMString defaultStringArg = "foo") ;
385 void voidMethodDefaultLongArg(optional long defaultLongArg = 10); 385 void voidMethodDefaultLongArg(optional long defaultLongArg = 10);
386 void voidMethodDefaultDoubleArg(optional double defaultDoubleArg = 0.5); 386 void voidMethodDefaultDoubleArg(optional double defaultDoubleArg = 0.5);
387 void voidMethodDefaultTrueBooleanArg(optional boolean defaultBooleanArg = tr ue); 387 void voidMethodDefaultTrueBooleanArg(optional boolean defaultBooleanArg = tr ue);
388 void voidMethodDefaultFalseBooleanArg(optional boolean defaultBooleanArg = f alse); 388 void voidMethodDefaultFalseBooleanArg(optional boolean defaultBooleanArg = f alse);
389 void voidMethodDefaultNullableByteStringArg(optional ByteString? defaultStri ngArg = null); 389 void voidMethodDefaultNullableByteStringArg(optional ByteString? defaultStri ngArg = null);
390 void voidMethodDefaultNullableStringArg(optional DOMString? defaultStringArg = null); 390 void voidMethodDefaultNullableStringArg(optional DOMString? defaultStringArg = null);
391 void voidMethodDefaultNullableTestInterfaceArg(optional TestInterface? defau ltTestInterfaceArg = null); 391 void voidMethodDefaultNullableTestInterfaceArg(optional TestInterface? defau ltTestInterfaceArg = null);
392 392
393 // Optional argument without default followed by optional argument with defa ult
394 void voidMethodOptionalArgWithoutDefault(optional DOMString optionalStringAr g, optional boolean defaultBooleanArg = false);
395
393 // Variadic operations 396 // Variadic operations
394 void voidMethodVariadicStringArg(DOMString... variadicStringArgs); 397 void voidMethodVariadicStringArg(DOMString... variadicStringArgs);
395 void voidMethodStringArgVariadicStringArg(DOMString stringArg, DOMString... variadicStringArgs); 398 void voidMethodStringArgVariadicStringArg(DOMString stringArg, DOMString... variadicStringArgs);
396 void voidMethodVariadicTestInterfaceEmptyArg(TestInterfaceEmpty... variadicT estInterfaceEmptyArgs); 399 void voidMethodVariadicTestInterfaceEmptyArg(TestInterfaceEmpty... variadicT estInterfaceEmptyArgs);
397 void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg(TestInterf aceEmpty testInterfaceEmptyArg, TestInterfaceEmpty... variadicTestInterfaceEmpty Args); 400 void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg(TestInterf aceEmpty testInterfaceEmptyArg, TestInterfaceEmpty... variadicTestInterfaceEmpty Args);
398 void voidMethodVariadicTestInterfaceGarbageCollectedArg(TestInterfaceGarbage Collected... variadicTestInterfaceGarbageCollectedArg); 401 void voidMethodVariadicTestInterfaceGarbageCollectedArg(TestInterfaceGarbage Collected... variadicTestInterfaceGarbageCollectedArg);
399 void voidMethodVariadicTestInterfaceWillBeGarbageCollectedArg(TestInterfaceW illBeGarbageCollected... variadicTestInterfaceWillBeGarbageCollectedArg); 402 void voidMethodVariadicTestInterfaceWillBeGarbageCollectedArg(TestInterfaceW illBeGarbageCollected... variadicTestInterfaceWillBeGarbageCollectedArg);
400 403
401 // Overloaded methods 404 // Overloaded methods
402 void overloadedMethodA(long longArg); 405 void overloadedMethodA(long longArg);
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 void voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(TestInterfaceWill BeGarbageCollected[] testInterfaceWillBeGarbageCollectedArrayArg); 512 void voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(TestInterfaceWill BeGarbageCollected[] testInterfaceWillBeGarbageCollectedArrayArg);
510 513
511 // Extended attributes on referenced interfaces 514 // Extended attributes on referenced interfaces
512 // (not self; self-reference tests at interface themselves) 515 // (not self; self-reference tests at interface themselves)
513 attribute TestInterface testInterfaceAttribute; // [ImplementedAs] 516 attribute TestInterface testInterfaceAttribute; // [ImplementedAs]
514 attribute TestInterfaceGarbageCollected testInterfaceGarbageCollectedAttribu te; // [GarbageCollected] 517 attribute TestInterfaceGarbageCollected testInterfaceGarbageCollectedAttribu te; // [GarbageCollected]
515 attribute TestInterfaceGarbageCollected? testInterfaceGarbageCollectedOrNull Attribute; // [GarbageCollected] 518 attribute TestInterfaceGarbageCollected? testInterfaceGarbageCollectedOrNull Attribute; // [GarbageCollected]
516 attribute TestInterfaceWillBeGarbageCollected testInterfaceWillBeGarbageColl ectedAttribute; // [WillBeGarbageCollected] 519 attribute TestInterfaceWillBeGarbageCollected testInterfaceWillBeGarbageColl ectedAttribute; // [WillBeGarbageCollected]
517 attribute TestInterfaceWillBeGarbageCollected? testInterfaceWillBeGarbageCol lectedOrNullAttribute; // [WillBeGarbageCollected] 520 attribute TestInterfaceWillBeGarbageCollected? testInterfaceWillBeGarbageCol lectedOrNullAttribute; // [WillBeGarbageCollected]
518 }; 521 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698