| OLD | NEW |
| 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 Loading... |
| 403 void voidMethodDefaultIntegerArgs(optional long defaultLongArg = 10, | 403 void voidMethodDefaultIntegerArgs(optional long defaultLongArg = 10, |
| 404 optional long long defaultLongLongArg = -1
0, | 404 optional long long defaultLongLongArg = -1
0, |
| 405 optional unsigned long defaultUnsignedArg
= 0xFFFFFFFF); | 405 optional unsigned long defaultUnsignedArg
= 0xFFFFFFFF); |
| 406 void voidMethodDefaultDoubleArg(optional double defaultDoubleArg = 0.5); | 406 void voidMethodDefaultDoubleArg(optional double defaultDoubleArg = 0.5); |
| 407 void voidMethodDefaultTrueBooleanArg(optional boolean defaultBooleanArg = tr
ue); | 407 void voidMethodDefaultTrueBooleanArg(optional boolean defaultBooleanArg = tr
ue); |
| 408 void voidMethodDefaultFalseBooleanArg(optional boolean defaultBooleanArg = f
alse); | 408 void voidMethodDefaultFalseBooleanArg(optional boolean defaultBooleanArg = f
alse); |
| 409 void voidMethodDefaultNullableByteStringArg(optional ByteString? defaultStri
ngArg = null); | 409 void voidMethodDefaultNullableByteStringArg(optional ByteString? defaultStri
ngArg = null); |
| 410 void voidMethodDefaultNullableStringArg(optional DOMString? defaultStringArg
= null); | 410 void voidMethodDefaultNullableStringArg(optional DOMString? defaultStringArg
= null); |
| 411 void voidMethodDefaultNullableTestInterfaceArg(optional TestInterface? defau
ltTestInterfaceArg = null); | 411 void voidMethodDefaultNullableTestInterfaceArg(optional TestInterface? defau
ltTestInterfaceArg = null); |
| 412 | 412 |
| 413 // Optional argument without default followed by optional argument with defa
ult |
| 414 void voidMethodOptionalArgWithoutDefault(optional DOMString optionalStringAr
g, optional boolean defaultBooleanArg = false); |
| 415 |
| 413 // Variadic operations | 416 // Variadic operations |
| 414 void voidMethodVariadicStringArg(DOMString... variadicStringArgs); | 417 void voidMethodVariadicStringArg(DOMString... variadicStringArgs); |
| 415 void voidMethodStringArgVariadicStringArg(DOMString stringArg, DOMString...
variadicStringArgs); | 418 void voidMethodStringArgVariadicStringArg(DOMString stringArg, DOMString...
variadicStringArgs); |
| 416 void voidMethodVariadicTestInterfaceEmptyArg(TestInterfaceEmpty... variadicT
estInterfaceEmptyArgs); | 419 void voidMethodVariadicTestInterfaceEmptyArg(TestInterfaceEmpty... variadicT
estInterfaceEmptyArgs); |
| 417 void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg(TestInterf
aceEmpty testInterfaceEmptyArg, TestInterfaceEmpty... variadicTestInterfaceEmpty
Args); | 420 void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg(TestInterf
aceEmpty testInterfaceEmptyArg, TestInterfaceEmpty... variadicTestInterfaceEmpty
Args); |
| 418 void voidMethodVariadicTestInterfaceGarbageCollectedArg(TestInterfaceGarbage
Collected... variadicTestInterfaceGarbageCollectedArg); | 421 void voidMethodVariadicTestInterfaceGarbageCollectedArg(TestInterfaceGarbage
Collected... variadicTestInterfaceGarbageCollectedArg); |
| 419 void voidMethodVariadicTestInterfaceWillBeGarbageCollectedArg(TestInterfaceW
illBeGarbageCollected... variadicTestInterfaceWillBeGarbageCollectedArg); | 422 void voidMethodVariadicTestInterfaceWillBeGarbageCollectedArg(TestInterfaceW
illBeGarbageCollected... variadicTestInterfaceWillBeGarbageCollectedArg); |
| 420 | 423 |
| 421 // Overloaded methods | 424 // Overloaded methods |
| 422 void overloadedMethodA(long longArg); | 425 void overloadedMethodA(long longArg); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 444 [PerWorldBindings] void overloadedPerWorldBindingsMethod(); | 447 [PerWorldBindings] void overloadedPerWorldBindingsMethod(); |
| 445 [PerWorldBindings] void overloadedPerWorldBindingsMethod(long longArg); | 448 [PerWorldBindings] void overloadedPerWorldBindingsMethod(long longArg); |
| 446 | 449 |
| 447 static void overloadedStaticMethod(long longArg); | 450 static void overloadedStaticMethod(long longArg); |
| 448 static void overloadedStaticMethod(long longArg1, long longArg2); | 451 static void overloadedStaticMethod(long longArg1, long longArg2); |
| 449 | 452 |
| 450 // Extended attributes for arguments | 453 // Extended attributes for arguments |
| 451 // [Clamp] | 454 // [Clamp] |
| 452 void voidMethodClampUnsignedShortArg([Clamp] unsigned short clampUnsignedSho
rtArg); | 455 void voidMethodClampUnsignedShortArg([Clamp] unsigned short clampUnsignedSho
rtArg); |
| 453 void voidMethodClampUnsignedLongArg([Clamp] unsigned long clampUnsignedLongA
rg); | 456 void voidMethodClampUnsignedLongArg([Clamp] unsigned long clampUnsignedLongA
rg); |
| 454 // [Default] | |
| 455 void voidMethodDefaultUndefinedTestInterfaceEmptyArg([Default=Undefined] opt
ional TestInterfaceEmpty defaultUndefinedTestInterfaceEmptyArg); | |
| 456 void voidMethodDefaultUndefinedLongArg([Default=Undefined] optional long def
aultUndefinedLongArg); | |
| 457 void voidMethodDefaultUndefinedStringArg([Default=Undefined] optional DOMStr
ing defaultUndefinedStringArg); | |
| 458 // [EnforceRange] | 457 // [EnforceRange] |
| 459 void voidMethodEnforceRangeLongArg([EnforceRange] long enforceRangeLongArg); | 458 void voidMethodEnforceRangeLongArg([EnforceRange] long enforceRangeLongArg); |
| 460 // [TreatNullAs], [TreatUndefinedAs] | 459 // [TreatNullAs], [TreatUndefinedAs] |
| 461 void voidMethodTreatNullAsEmptyStringStringArg([TreatNullAs=EmptyString] DOM
String treatNullAsEmptyStringStringArg); | 460 void voidMethodTreatNullAsEmptyStringStringArg([TreatNullAs=EmptyString] DOM
String treatNullAsEmptyStringStringArg); |
| 462 void voidMethodTreatNullAsNullStringStringArg([TreatNullAs=NullString] DOMSt
ring treatNullAsNullStringStringArg); | 461 void voidMethodTreatNullAsNullStringStringArg([TreatNullAs=NullString] DOMSt
ring treatNullAsNullStringStringArg); |
| 463 void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg([Tre
atNullAs=NullString, TreatUndefinedAs=NullString] DOMString treatNullAsNullStrin
gStringArg); | 462 void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg([Tre
atNullAs=NullString, TreatUndefinedAs=NullString] DOMString treatNullAsNullStrin
gStringArg); |
| 464 | 463 |
| 465 // Extended attributes for methods | 464 // Extended attributes for methods |
| 466 [LogActivity, LogAllWorlds] void activityLoggingAccessForAllWorldsMethod(); | 465 [LogActivity, LogAllWorlds] void activityLoggingAccessForAllWorldsMethod(); |
| 467 [CallWith=ExecutionContext] void callWithExecutionContextVoidMethod(); | 466 [CallWith=ExecutionContext] void callWithExecutionContextVoidMethod(); |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 549 [ImplementedInPrivateScript] Node nodeMethodWithVariousArgumentsImplementedI
nPrivateScript(Document document, Node node, short value1, double value2, DOMStr
ing string); | 548 [ImplementedInPrivateScript] Node nodeMethodWithVariousArgumentsImplementedI
nPrivateScript(Document document, Node node, short value1, double value2, DOMStr
ing string); |
| 550 [ImplementedInPrivateScript] readonly attribute short readonlyShortAttribute
; | 549 [ImplementedInPrivateScript] readonly attribute short readonlyShortAttribute
; |
| 551 [ImplementedInPrivateScript] attribute short shortAttribute; | 550 [ImplementedInPrivateScript] attribute short shortAttribute; |
| 552 [ImplementedInPrivateScript] attribute DOMString stringAttribute; | 551 [ImplementedInPrivateScript] attribute DOMString stringAttribute; |
| 553 [ImplementedInPrivateScript] attribute Node nodeAttribute; | 552 [ImplementedInPrivateScript] attribute Node nodeAttribute; |
| 554 [OnlyExposedToPrivateScript] short methodImplementedInCPPForPrivateScriptOnl
y(short value1, short value2); | 553 [OnlyExposedToPrivateScript] short methodImplementedInCPPForPrivateScriptOnl
y(short value1, short value2); |
| 555 [OnlyExposedToPrivateScript] attribute DOMString attributeImplementedInCPPFo
rPrivateScriptOnly; | 554 [OnlyExposedToPrivateScript] attribute DOMString attributeImplementedInCPPFo
rPrivateScriptOnly; |
| 556 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] short methodForPriv
ateScriptOnly(short value1, short value2); | 555 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] short methodForPriv
ateScriptOnly(short value1, short value2); |
| 557 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] attribute DOMString
attributeForPrivateScriptOnly; | 556 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] attribute DOMString
attributeForPrivateScriptOnly; |
| 558 }; | 557 }; |
| OLD | NEW |