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

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

Issue 359763002: IDL: Avoid double type-check for variadic interface type arguments (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: the fix Created 6 years, 5 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
« no previous file with comments | « Source/bindings/templates/methods.cpp ('k') | Source/bindings/tests/results/V8TestObject.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 [RuntimeEnabled=FeatureName1] void partiallyRuntimeEnabledOverloadedVoidMeth od(DOMString stringArg); 505 [RuntimeEnabled=FeatureName1] void partiallyRuntimeEnabledOverloadedVoidMeth od(DOMString stringArg);
506 [RuntimeEnabled=FeatureName2] void partiallyRuntimeEnabledOverloadedVoidMeth od(TestInterface testInterface); 506 [RuntimeEnabled=FeatureName2] void partiallyRuntimeEnabledOverloadedVoidMeth od(TestInterface testInterface);
507 void partiallyRuntimeEnabledOverloadedVoidMethod(long longArg); 507 void partiallyRuntimeEnabledOverloadedVoidMethod(long longArg);
508 [TreatReturnedNullStringAs=Null] DOMString treatReturnedNullStringAsNullStri ngMethod(); 508 [TreatReturnedNullStringAs=Null] DOMString treatReturnedNullStringAsNullStri ngMethod();
509 [TreatReturnedNullStringAs=Undefined] DOMString treatReturnedNullStringAsUnd efinedStringMethod(); 509 [TreatReturnedNullStringAs=Undefined] DOMString treatReturnedNullStringAsUnd efinedStringMethod();
510 [TreatReturnedNullStringAs=Null] ByteString treatReturnedNullStringAsNullByt eStringMethod(); 510 [TreatReturnedNullStringAs=Null] ByteString treatReturnedNullStringAsNullByt eStringMethod();
511 [TreatReturnedNullStringAs=Undefined] ByteString treatReturnedNullStringAsUn definedByteStringMethod(); 511 [TreatReturnedNullStringAs=Undefined] ByteString treatReturnedNullStringAsUn definedByteStringMethod();
512 [TreatReturnedNullStringAs=Null] ScalarValueString treatReturnedNullStringAs NullScalarValueStringMethod(); 512 [TreatReturnedNullStringAs=Null] ScalarValueString treatReturnedNullStringAs NullScalarValueStringMethod();
513 [TreatReturnedNullStringAs=Undefined] ScalarValueString treatReturnedNullStr ingAsUndefinedScalarValueStringMethod(); 513 [TreatReturnedNullStringAs=Undefined] ScalarValueString treatReturnedNullStr ingAsUndefinedScalarValueStringMethod();
514 [TypeChecking=Interface] void typeCheckingInterfaceVoidMethodTestInterfaceEm ptyArg(TestInterfaceEmpty testInterfaceEmptyArg); 514 [TypeChecking=Interface] void typeCheckingInterfaceVoidMethodTestInterfaceEm ptyArg(TestInterfaceEmpty testInterfaceEmptyArg);
515 [TypeChecking=Interface] void typeCheckingInterfaceVoidMethodTestInterfaceEm ptyVariadicArg(TestInterfaceEmpty... testInterfaceEmptyArg);
515 [TypeChecking=Nullable] void typeCheckingNullableVoidMethodTestInterfaceEmpt yOrNullArg(TestInterfaceEmpty? testInterfaceEmptyOrNullArg); 516 [TypeChecking=Nullable] void typeCheckingNullableVoidMethodTestInterfaceEmpt yOrNullArg(TestInterfaceEmpty? testInterfaceEmptyOrNullArg);
516 [TypeChecking=Interface|Nullable] void typeCheckingInterfaceNullableVoidMeth odTestInterfaceEmptyOrNullArg(TestInterfaceEmpty? testInterfaceEmptyOrNullArg); 517 [TypeChecking=Interface|Nullable] void typeCheckingInterfaceNullableVoidMeth odTestInterfaceEmptyOrNullArg(TestInterfaceEmpty? testInterfaceEmptyOrNullArg);
517 [TypeChecking=Unrestricted] void typeCheckingUnrestrictedVoidMethodFloatArgD oubleArg(float floatArg, double doubleArg); 518 [TypeChecking=Unrestricted] void typeCheckingUnrestrictedVoidMethodFloatArgD oubleArg(float floatArg, double doubleArg);
518 [Unforgeable] void unforgeableVoidMethod(); 519 [Unforgeable] void unforgeableVoidMethod();
519 void voidMethodTestInterfaceGarbageCollectedSequenceArg(sequence<TestInterfa ceGarbageCollected> testInterfaceGarbageCollectedSequenceArg); 520 void voidMethodTestInterfaceGarbageCollectedSequenceArg(sequence<TestInterfa ceGarbageCollected> testInterfaceGarbageCollectedSequenceArg);
520 void voidMethodTestInterfaceGarbageCollectedArrayArg(TestInterfaceGarbageCol lected[] testInterfaceGarbageCollectedArrayArg); 521 void voidMethodTestInterfaceGarbageCollectedArrayArg(TestInterfaceGarbageCol lected[] testInterfaceGarbageCollectedArrayArg);
521 void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg(sequence<TestI nterfaceWillBeGarbageCollected> testInterfaceWillBeGarbageCollectedSequenceArg); 522 void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg(sequence<TestI nterfaceWillBeGarbageCollected> testInterfaceWillBeGarbageCollectedSequenceArg);
522 void voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(TestInterfaceWill BeGarbageCollected[] testInterfaceWillBeGarbageCollectedArrayArg); 523 void voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(TestInterfaceWill BeGarbageCollected[] testInterfaceWillBeGarbageCollectedArrayArg);
523 524
524 // Extended attributes on referenced interfaces 525 // Extended attributes on referenced interfaces
525 // (not self; self-reference tests at interface themselves) 526 // (not self; self-reference tests at interface themselves)
526 attribute TestInterface testInterfaceAttribute; // [ImplementedAs] 527 attribute TestInterface testInterfaceAttribute; // [ImplementedAs]
527 attribute TestInterfaceGarbageCollected testInterfaceGarbageCollectedAttribu te; // [GarbageCollected] 528 attribute TestInterfaceGarbageCollected testInterfaceGarbageCollectedAttribu te; // [GarbageCollected]
528 attribute TestInterfaceGarbageCollected? testInterfaceGarbageCollectedOrNull Attribute; // [GarbageCollected] 529 attribute TestInterfaceGarbageCollected? testInterfaceGarbageCollectedOrNull Attribute; // [GarbageCollected]
529 attribute TestInterfaceWillBeGarbageCollected testInterfaceWillBeGarbageColl ectedAttribute; // [WillBeGarbageCollected] 530 attribute TestInterfaceWillBeGarbageCollected testInterfaceWillBeGarbageColl ectedAttribute; // [WillBeGarbageCollected]
530 attribute TestInterfaceWillBeGarbageCollected? testInterfaceWillBeGarbageCol lectedOrNullAttribute; // [WillBeGarbageCollected] 531 attribute TestInterfaceWillBeGarbageCollected? testInterfaceWillBeGarbageCol lectedOrNullAttribute; // [WillBeGarbageCollected]
531 }; 532 };
OLDNEW
« no previous file with comments | « Source/bindings/templates/methods.cpp ('k') | Source/bindings/tests/results/V8TestObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698