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

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

Issue 713683003: IDL: Support optional union type arguments with default values (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add unit tests Created 6 years, 1 month 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 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 void voidMethodDefaultStringArg(optional DOMString defaultStringArg = "foo") ; 407 void voidMethodDefaultStringArg(optional DOMString defaultStringArg = "foo") ;
408 void voidMethodDefaultIntegerArgs(optional long defaultLongArg = 10, 408 void voidMethodDefaultIntegerArgs(optional long defaultLongArg = 10,
409 optional long long defaultLongLongArg = -1 0, 409 optional long long defaultLongLongArg = -1 0,
410 optional unsigned long defaultUnsignedArg = 0xFFFFFFFF); 410 optional unsigned long defaultUnsignedArg = 0xFFFFFFFF);
411 void voidMethodDefaultDoubleArg(optional double defaultDoubleArg = 0.5); 411 void voidMethodDefaultDoubleArg(optional double defaultDoubleArg = 0.5);
412 void voidMethodDefaultTrueBooleanArg(optional boolean defaultBooleanArg = tr ue); 412 void voidMethodDefaultTrueBooleanArg(optional boolean defaultBooleanArg = tr ue);
413 void voidMethodDefaultFalseBooleanArg(optional boolean defaultBooleanArg = f alse); 413 void voidMethodDefaultFalseBooleanArg(optional boolean defaultBooleanArg = f alse);
414 void voidMethodDefaultNullableByteStringArg(optional ByteString? defaultStri ngArg = null); 414 void voidMethodDefaultNullableByteStringArg(optional ByteString? defaultStri ngArg = null);
415 void voidMethodDefaultNullableStringArg(optional DOMString? defaultStringArg = null); 415 void voidMethodDefaultNullableStringArg(optional DOMString? defaultStringArg = null);
416 void voidMethodDefaultNullableTestInterfaceArg(optional TestInterface? defau ltTestInterfaceArg = null); 416 void voidMethodDefaultNullableTestInterfaceArg(optional TestInterface? defau ltTestInterfaceArg = null);
417 void voidMethodDefaultDoubleOrStringArgs(optional (double or DOMString) defa ultLongArg = 10.0,
418 optional (double or DOMString?) def aultStringArg = "foo",
419 optional (double or DOMString)? def aultNullArg = null);
417 420
418 // Variadic operations 421 // Variadic operations
419 void voidMethodVariadicStringArg(DOMString... variadicStringArgs); 422 void voidMethodVariadicStringArg(DOMString... variadicStringArgs);
420 void voidMethodStringArgVariadicStringArg(DOMString stringArg, DOMString... variadicStringArgs); 423 void voidMethodStringArgVariadicStringArg(DOMString stringArg, DOMString... variadicStringArgs);
421 void voidMethodVariadicTestInterfaceEmptyArg(TestInterfaceEmpty... variadicT estInterfaceEmptyArgs); 424 void voidMethodVariadicTestInterfaceEmptyArg(TestInterfaceEmpty... variadicT estInterfaceEmptyArgs);
422 void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg(TestInterf aceEmpty testInterfaceEmptyArg, TestInterfaceEmpty... variadicTestInterfaceEmpty Args); 425 void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg(TestInterf aceEmpty testInterfaceEmptyArg, TestInterfaceEmpty... variadicTestInterfaceEmpty Args);
423 void voidMethodVariadicTestInterfaceGarbageCollectedArg(TestInterfaceGarbage Collected... variadicTestInterfaceGarbageCollectedArg); 426 void voidMethodVariadicTestInterfaceGarbageCollectedArg(TestInterfaceGarbage Collected... variadicTestInterfaceGarbageCollectedArg);
424 void voidMethodVariadicTestInterfaceWillBeGarbageCollectedArg(TestInterfaceW illBeGarbageCollected... variadicTestInterfaceWillBeGarbageCollectedArg); 427 void voidMethodVariadicTestInterfaceWillBeGarbageCollectedArg(TestInterfaceW illBeGarbageCollected... variadicTestInterfaceWillBeGarbageCollectedArg);
425 428
426 // Overloaded methods 429 // Overloaded methods
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 [ImplementedInPrivateScript] readonly attribute short readonlyShortAttribute ; 564 [ImplementedInPrivateScript] readonly attribute short readonlyShortAttribute ;
562 [ImplementedInPrivateScript] attribute short shortAttribute; 565 [ImplementedInPrivateScript] attribute short shortAttribute;
563 [ImplementedInPrivateScript] attribute DOMString stringAttribute; 566 [ImplementedInPrivateScript] attribute DOMString stringAttribute;
564 [ImplementedInPrivateScript] attribute Node nodeAttribute; 567 [ImplementedInPrivateScript] attribute Node nodeAttribute;
565 [OnlyExposedToPrivateScript] short methodImplementedInCPPForPrivateScriptOnl y(short value1, short value2); 568 [OnlyExposedToPrivateScript] short methodImplementedInCPPForPrivateScriptOnl y(short value1, short value2);
566 [OnlyExposedToPrivateScript] attribute DOMString attributeImplementedInCPPFo rPrivateScriptOnly; 569 [OnlyExposedToPrivateScript] attribute DOMString attributeImplementedInCPPFo rPrivateScriptOnly;
567 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] short methodForPriv ateScriptOnly(short value1, short value2); 570 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] short methodForPriv ateScriptOnly(short value1, short value2);
568 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] attribute DOMString attributeForPrivateScriptOnly; 571 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] attribute DOMString attributeForPrivateScriptOnly;
569 [ImplementedInPrivateScript] attribute TestEnum enumForPrivateScript; 572 [ImplementedInPrivateScript] attribute TestEnum enumForPrivateScript;
570 }; 573 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698