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

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

Issue 335113002: IDL: Support argument default values (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebased 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 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 TestInterfaceEmpty testInterfaceEmptyMethodOptionalLongArg(optional long opt ionalLongArg); 380 TestInterfaceEmpty testInterfaceEmptyMethodOptionalLongArg(optional long opt ionalLongArg);
381 long longMethodOptionalLongArg(optional long optionalLongArg); 381 long longMethodOptionalLongArg(optional long optionalLongArg);
382 void voidMethodLongArgOptionalLongArg(long longArg, optional long optionalLo ngArg); 382 void voidMethodLongArgOptionalLongArg(long longArg, optional long optionalLo ngArg);
383 void voidMethodLongArgOptionalLongArgOptionalLongArg(long longArg, optional long optionalLongArg1, optional long optionalLongArg2); 383 void voidMethodLongArgOptionalLongArgOptionalLongArg(long longArg, optional long optionalLongArg1, optional long optionalLongArg2);
384 void voidMethodLongArgOptionalTestInterfaceEmptyArg(long longArg, optional T estInterfaceEmpty optionalTestInterfaceEmpty); 384 void voidMethodLongArgOptionalTestInterfaceEmptyArg(long longArg, optional T estInterfaceEmpty optionalTestInterfaceEmpty);
385 void voidMethodTestInterfaceEmptyArgOptionalLongArg(TestInterfaceEmpty optio nalTestInterfaceEmpty, optional long longArg); 385 void voidMethodTestInterfaceEmptyArgOptionalLongArg(TestInterfaceEmpty optio nalTestInterfaceEmpty, optional long longArg);
386 // Optional arguments: exceptional case 386 // Optional arguments: exceptional case
387 void voidMethodOptionalDictionaryArg(optional Dictionary optionalDictionaryA rg); 387 void voidMethodOptionalDictionaryArg(optional Dictionary optionalDictionaryA rg);
388 388
389 // Optional arguments with defaults 389 // Optional arguments with defaults
390 void voidMethodDefaultByteStringArg(optional ByteString defaultByteStringArg = "foo");
390 void voidMethodDefaultStringArg(optional DOMString defaultStringArg = "foo") ; 391 void voidMethodDefaultStringArg(optional DOMString defaultStringArg = "foo") ;
391 void voidMethodDefaultNullStringArg(optional DOMString defaultStringArg = nu ll);
392 void voidMethodDefaultLongArg(optional long defaultLongArg = 10); 392 void voidMethodDefaultLongArg(optional long defaultLongArg = 10);
393 void voidMethodDefaultDoubleArg(optional double defaultDoubleArg = 0.5); 393 void voidMethodDefaultDoubleArg(optional double defaultDoubleArg = 0.5);
394 void voidMethodDefaultTrueBooleanArg(optional boolean defaultBooleanArg = tr ue); 394 void voidMethodDefaultTrueBooleanArg(optional boolean defaultBooleanArg = tr ue);
395 void voidMethodDefaultFalseBooleanArg(optional boolean defaultBooleanArg = f alse); 395 void voidMethodDefaultFalseBooleanArg(optional boolean defaultBooleanArg = f alse);
396 void voidMethodDefaultNullableByteStringArg(optional ByteString? defaultStri ngArg = null);
396 void voidMethodDefaultNullableStringArg(optional DOMString? defaultStringArg = null); 397 void voidMethodDefaultNullableStringArg(optional DOMString? defaultStringArg = null);
397 void voidMethodDefaultNullableTestInterfaceArg(optional TestInterface? defau ltTestInterfaceArg = null); 398 void voidMethodDefaultNullableTestInterfaceArg(optional TestInterface? defau ltTestInterfaceArg = null);
398 399
399 // Variadic operations 400 // Variadic operations
400 void voidMethodVariadicStringArg(DOMString... variadicStringArgs); 401 void voidMethodVariadicStringArg(DOMString... variadicStringArgs);
401 void voidMethodStringArgVariadicStringArg(DOMString stringArg, DOMString... variadicStringArgs); 402 void voidMethodStringArgVariadicStringArg(DOMString stringArg, DOMString... variadicStringArgs);
402 void voidMethodVariadicTestInterfaceEmptyArg(TestInterfaceEmpty... variadicT estInterfaceEmptyArgs); 403 void voidMethodVariadicTestInterfaceEmptyArg(TestInterfaceEmpty... variadicT estInterfaceEmptyArgs);
403 void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg(TestInterf aceEmpty testInterfaceEmptyArg, TestInterfaceEmpty... variadicTestInterfaceEmpty Args); 404 void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg(TestInterf aceEmpty testInterfaceEmptyArg, TestInterfaceEmpty... variadicTestInterfaceEmpty Args);
404 void voidMethodVariadicTestInterfaceGarbageCollectedArg(TestInterfaceGarbage Collected... variadicTestInterfaceGarbageCollectedArg); 405 void voidMethodVariadicTestInterfaceGarbageCollectedArg(TestInterfaceGarbage Collected... variadicTestInterfaceGarbageCollectedArg);
405 void voidMethodVariadicTestInterfaceWillBeGarbageCollectedArg(TestInterfaceW illBeGarbageCollected... variadicTestInterfaceWillBeGarbageCollectedArg); 406 void voidMethodVariadicTestInterfaceWillBeGarbageCollectedArg(TestInterfaceW illBeGarbageCollected... variadicTestInterfaceWillBeGarbageCollectedArg);
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 void voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(TestInterfaceWill BeGarbageCollected[] testInterfaceWillBeGarbageCollectedArrayArg); 520 void voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(TestInterfaceWill BeGarbageCollected[] testInterfaceWillBeGarbageCollectedArrayArg);
520 521
521 // Extended attributes on referenced interfaces 522 // Extended attributes on referenced interfaces
522 // (not self; self-reference tests at interface themselves) 523 // (not self; self-reference tests at interface themselves)
523 attribute TestInterface testInterfaceAttribute; // [ImplementedAs] 524 attribute TestInterface testInterfaceAttribute; // [ImplementedAs]
524 attribute TestInterfaceGarbageCollected testInterfaceGarbageCollectedAttribu te; // [GarbageCollected] 525 attribute TestInterfaceGarbageCollected testInterfaceGarbageCollectedAttribu te; // [GarbageCollected]
525 attribute TestInterfaceGarbageCollected? testInterfaceGarbageCollectedOrNull Attribute; // [GarbageCollected] 526 attribute TestInterfaceGarbageCollected? testInterfaceGarbageCollectedOrNull Attribute; // [GarbageCollected]
526 attribute TestInterfaceWillBeGarbageCollected testInterfaceWillBeGarbageColl ectedAttribute; // [WillBeGarbageCollected] 527 attribute TestInterfaceWillBeGarbageCollected testInterfaceWillBeGarbageColl ectedAttribute; // [WillBeGarbageCollected]
527 attribute TestInterfaceWillBeGarbageCollected? testInterfaceWillBeGarbageCol lectedOrNullAttribute; // [WillBeGarbageCollected] 528 attribute TestInterfaceWillBeGarbageCollected? testInterfaceWillBeGarbageCol lectedOrNullAttribute; // [WillBeGarbageCollected]
528 }; 529 };
OLDNEW
« no previous file with comments | « Source/bindings/templates/methods.cpp ('k') | Source/bindings/tests/results/V8TestInterfaceConstructor2.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698