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

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

Issue 289843006: Avoid extra arity and type check on distinguishing argument (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: additional test Created 6 years, 7 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 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 // FIXME: Should be in order double, Dictionary, but Blink implementation of 403 // FIXME: Should be in order double, Dictionary, but Blink implementation of
404 // overload resolution can't handle this. http://crbug.com/293561 404 // overload resolution can't handle this. http://crbug.com/293561
405 void overloadedMethodI(Dictionary dictionaryArg); // Non-wrapper type 405 void overloadedMethodI(Dictionary dictionaryArg); // Non-wrapper type
406 void overloadedMethodI(double doubleArg); 406 void overloadedMethodI(double doubleArg);
407 void overloadedMethodJ(long longArg); 407 void overloadedMethodJ(long longArg);
408 void overloadedMethodJ([Default=Null] TestInterfaceEmpty? testInterfaceEmpty OrNullArg); 408 void overloadedMethodJ([Default=Null] TestInterfaceEmpty? testInterfaceEmpty OrNullArg);
409 void overloadedMethodK(TestInterface testInterfaceArg); 409 void overloadedMethodK(TestInterface testInterfaceArg);
410 void overloadedMethodK(TestInterfaceEmpty testInterfaceEmptyArg); 410 void overloadedMethodK(TestInterfaceEmpty testInterfaceEmptyArg);
411 void overloadedMethodL(DOMString stringArg); 411 void overloadedMethodL(DOMString stringArg);
412 void overloadedMethodL(double doubleArg); 412 void overloadedMethodL(double doubleArg);
413 [TypeChecking=Interface] void overloadedMethodM(TestInterface testInterfaceA rg1, TestInterface testInterfaceArg2);
414 [TypeChecking=Interface] void overloadedMethodM(TestInterface testInterfaceA rg, TestInterfaceEmpty testInterfaceEmptyArg);
415 [TypeChecking=Interface] void overloadedMethodN(double a, TestInterface b);
Nils Barth (inactive) 2014/05/16 02:15:46 You don't need the double here do you? ...and this
Jens Widell 2014/05/16 05:59:17 Don't think I do, no. Unclear why I thought I did.
Nils Barth (inactive) 2014/05/16 06:05:31 I don't think that's necessary, but thanks for ask
416 [TypeChecking=Interface] void overloadedMethodN(double a, TestInterfaceEmpty b, optional TestInterface c);
417 [TypeChecking=Interface] void overloadedMethodN(double a, TestInterfaceEmpty b, TestInterfaceEmpty c);
413 418
414 419
415 [PerWorldBindings] void overloadedPerWorldBindingsMethod(); 420 [PerWorldBindings] void overloadedPerWorldBindingsMethod();
416 [PerWorldBindings] void overloadedPerWorldBindingsMethod(long longArg); 421 [PerWorldBindings] void overloadedPerWorldBindingsMethod(long longArg);
417 422
418 static void overloadedStaticMethod(long longArg); 423 static void overloadedStaticMethod(long longArg);
419 static void overloadedStaticMethod(long longArg1, long longArg2); 424 static void overloadedStaticMethod(long longArg1, long longArg2);
420 425
421 // Extended attributes for arguments 426 // Extended attributes for arguments
422 // [Clamp] 427 // [Clamp]
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 void voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(TestInterfaceWill BeGarbageCollected[] testInterfaceWillBeGarbageCollectedArrayArg); 503 void voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(TestInterfaceWill BeGarbageCollected[] testInterfaceWillBeGarbageCollectedArrayArg);
499 504
500 // Extended attributes on referenced interfaces 505 // Extended attributes on referenced interfaces
501 // (not self; self-reference tests at interface themselves) 506 // (not self; self-reference tests at interface themselves)
502 attribute TestInterface testInterfaceAttribute; // [ImplementedAs] 507 attribute TestInterface testInterfaceAttribute; // [ImplementedAs]
503 attribute TestInterfaceGarbageCollected testInterfaceGarbageCollectedAttribu te; // [GarbageCollected] 508 attribute TestInterfaceGarbageCollected testInterfaceGarbageCollectedAttribu te; // [GarbageCollected]
504 attribute TestInterfaceGarbageCollected? testInterfaceGarbageCollectedOrNull Attribute; // [GarbageCollected] 509 attribute TestInterfaceGarbageCollected? testInterfaceGarbageCollectedOrNull Attribute; // [GarbageCollected]
505 attribute TestInterfaceWillBeGarbageCollected testInterfaceWillBeGarbageColl ectedAttribute; // [WillBeGarbageCollected] 510 attribute TestInterfaceWillBeGarbageCollected testInterfaceWillBeGarbageColl ectedAttribute; // [WillBeGarbageCollected]
506 attribute TestInterfaceWillBeGarbageCollected? testInterfaceWillBeGarbageCol lectedOrNullAttribute; // [WillBeGarbageCollected] 511 attribute TestInterfaceWillBeGarbageCollected? testInterfaceWillBeGarbageCol lectedOrNullAttribute; // [WillBeGarbageCollected]
507 }; 512 };
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