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

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

Issue 352133002: IDL: fix handling of non-decimal and unsigned default values (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
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
« no previous file with comments | « Source/bindings/scripts/v8_types.py ('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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 voidMethodDefaultByteStringArg(optional ByteString defaultByteStringArg = "foo");
391 void voidMethodDefaultStringArg(optional DOMString defaultStringArg = "foo") ; 391 void voidMethodDefaultStringArg(optional DOMString defaultStringArg = "foo") ;
392 void voidMethodDefaultLongArg(optional long defaultLongArg = 10); 392 void voidMethodDefaultIntegerArgs(optional long defaultLongArg = 10,
393 optional long long defaultLongLongArg = -1 0,
394 optional unsigned long defaultUnsignedArg = 0xFFFFFFFF);
393 void voidMethodDefaultDoubleArg(optional double defaultDoubleArg = 0.5); 395 void voidMethodDefaultDoubleArg(optional double defaultDoubleArg = 0.5);
394 void voidMethodDefaultTrueBooleanArg(optional boolean defaultBooleanArg = tr ue); 396 void voidMethodDefaultTrueBooleanArg(optional boolean defaultBooleanArg = tr ue);
395 void voidMethodDefaultFalseBooleanArg(optional boolean defaultBooleanArg = f alse); 397 void voidMethodDefaultFalseBooleanArg(optional boolean defaultBooleanArg = f alse);
396 void voidMethodDefaultNullableByteStringArg(optional ByteString? defaultStri ngArg = null); 398 void voidMethodDefaultNullableByteStringArg(optional ByteString? defaultStri ngArg = null);
397 void voidMethodDefaultNullableStringArg(optional DOMString? defaultStringArg = null); 399 void voidMethodDefaultNullableStringArg(optional DOMString? defaultStringArg = null);
398 void voidMethodDefaultNullableTestInterfaceArg(optional TestInterface? defau ltTestInterfaceArg = null); 400 void voidMethodDefaultNullableTestInterfaceArg(optional TestInterface? defau ltTestInterfaceArg = null);
399 401
400 // Variadic operations 402 // Variadic operations
401 void voidMethodVariadicStringArg(DOMString... variadicStringArgs); 403 void voidMethodVariadicStringArg(DOMString... variadicStringArgs);
402 void voidMethodStringArgVariadicStringArg(DOMString stringArg, DOMString... variadicStringArgs); 404 void voidMethodStringArgVariadicStringArg(DOMString stringArg, DOMString... variadicStringArgs);
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 void voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(TestInterfaceWill BeGarbageCollected[] testInterfaceWillBeGarbageCollectedArrayArg); 522 void voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(TestInterfaceWill BeGarbageCollected[] testInterfaceWillBeGarbageCollectedArrayArg);
521 523
522 // Extended attributes on referenced interfaces 524 // Extended attributes on referenced interfaces
523 // (not self; self-reference tests at interface themselves) 525 // (not self; self-reference tests at interface themselves)
524 attribute TestInterface testInterfaceAttribute; // [ImplementedAs] 526 attribute TestInterface testInterfaceAttribute; // [ImplementedAs]
525 attribute TestInterfaceGarbageCollected testInterfaceGarbageCollectedAttribu te; // [GarbageCollected] 527 attribute TestInterfaceGarbageCollected testInterfaceGarbageCollectedAttribu te; // [GarbageCollected]
526 attribute TestInterfaceGarbageCollected? testInterfaceGarbageCollectedOrNull Attribute; // [GarbageCollected] 528 attribute TestInterfaceGarbageCollected? testInterfaceGarbageCollectedOrNull Attribute; // [GarbageCollected]
527 attribute TestInterfaceWillBeGarbageCollected testInterfaceWillBeGarbageColl ectedAttribute; // [WillBeGarbageCollected] 529 attribute TestInterfaceWillBeGarbageCollected testInterfaceWillBeGarbageColl ectedAttribute; // [WillBeGarbageCollected]
528 attribute TestInterfaceWillBeGarbageCollected? testInterfaceWillBeGarbageCol lectedOrNullAttribute; // [WillBeGarbageCollected] 530 attribute TestInterfaceWillBeGarbageCollected? testInterfaceWillBeGarbageCol lectedOrNullAttribute; // [WillBeGarbageCollected]
529 }; 531 };
OLDNEW
« no previous file with comments | « Source/bindings/scripts/v8_types.py ('k') | Source/bindings/tests/results/V8TestObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698