| 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 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 369 DOMString stringMethodOptionalLongArg(optional long optionalLongArg); | 369 DOMString stringMethodOptionalLongArg(optional long optionalLongArg); |
| 370 TestInterfaceEmpty testInterfaceEmptyMethodOptionalLongArg(optional long opt
ionalLongArg); | 370 TestInterfaceEmpty testInterfaceEmptyMethodOptionalLongArg(optional long opt
ionalLongArg); |
| 371 long longMethodOptionalLongArg(optional long optionalLongArg); | 371 long longMethodOptionalLongArg(optional long optionalLongArg); |
| 372 void voidMethodLongArgOptionalLongArg(long longArg, optional long optionalLo
ngArg); | 372 void voidMethodLongArgOptionalLongArg(long longArg, optional long optionalLo
ngArg); |
| 373 void voidMethodLongArgOptionalLongArgOptionalLongArg(long longArg, optional
long optionalLongArg1, optional long optionalLongArg2); | 373 void voidMethodLongArgOptionalLongArgOptionalLongArg(long longArg, optional
long optionalLongArg1, optional long optionalLongArg2); |
| 374 void voidMethodLongArgOptionalTestInterfaceEmptyArg(long longArg, optional T
estInterfaceEmpty optionalTestInterfaceEmpty); | 374 void voidMethodLongArgOptionalTestInterfaceEmptyArg(long longArg, optional T
estInterfaceEmpty optionalTestInterfaceEmpty); |
| 375 void voidMethodTestInterfaceEmptyArgOptionalLongArg(TestInterfaceEmpty optio
nalTestInterfaceEmpty, optional long longArg); | 375 void voidMethodTestInterfaceEmptyArgOptionalLongArg(TestInterfaceEmpty optio
nalTestInterfaceEmpty, optional long longArg); |
| 376 // Optional arguments: exceptional case | 376 // Optional arguments: exceptional case |
| 377 void voidMethodOptionalDictionaryArg(optional Dictionary optionalDictionaryA
rg); | 377 void voidMethodOptionalDictionaryArg(optional Dictionary optionalDictionaryA
rg); |
| 378 | 378 |
| 379 // Optional arguments with defaults |
| 380 void voidMethodDefaultStringArg(optional DOMString defaultStringArg = "foo")
; |
| 381 void voidMethodDefaultNullStringArg(optional DOMString defaultStringArg = nu
ll); |
| 382 void voidMethodDefaultLongArg(optional long defaultLongArg = 10); |
| 383 void voidMethodDefaultDoubleArg(optional double defaultDoubleArg = 0.5); |
| 384 void voidMethodDefaultTrueBooleanArg(optional boolean defaultBooleanArg = tr
ue); |
| 385 void voidMethodDefaultFalseBooleanArg(optional boolean defaultBooleanArg = f
alse); |
| 386 void voidMethodDefaultNullableStringArg(optional DOMString? defaultStringArg
= null); |
| 387 void voidMethodDefaultNullableTestInterfaceArg(optional TestInterface? defau
ltTestInterfaceArg = null); |
| 388 |
| 379 // Variadic operations | 389 // Variadic operations |
| 380 void voidMethodVariadicStringArg(DOMString... variadicStringArgs); | 390 void voidMethodVariadicStringArg(DOMString... variadicStringArgs); |
| 381 void voidMethodStringArgVariadicStringArg(DOMString stringArg, DOMString...
variadicStringArgs); | 391 void voidMethodStringArgVariadicStringArg(DOMString stringArg, DOMString...
variadicStringArgs); |
| 382 void voidMethodVariadicTestInterfaceEmptyArg(TestInterfaceEmpty... variadicT
estInterfaceEmptyArgs); | 392 void voidMethodVariadicTestInterfaceEmptyArg(TestInterfaceEmpty... variadicT
estInterfaceEmptyArgs); |
| 383 void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg(TestInterf
aceEmpty testInterfaceEmptyArg, TestInterfaceEmpty... variadicTestInterfaceEmpty
Args); | 393 void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg(TestInterf
aceEmpty testInterfaceEmptyArg, TestInterfaceEmpty... variadicTestInterfaceEmpty
Args); |
| 384 void voidMethodVariadicTestInterfaceGarbageCollectedArg(TestInterfaceGarbage
Collected... variadicTestInterfaceGarbageCollectedArg); | 394 void voidMethodVariadicTestInterfaceGarbageCollectedArg(TestInterfaceGarbage
Collected... variadicTestInterfaceGarbageCollectedArg); |
| 385 void voidMethodVariadicTestInterfaceWillBeGarbageCollectedArg(TestInterfaceW
illBeGarbageCollected... variadicTestInterfaceWillBeGarbageCollectedArg); | 395 void voidMethodVariadicTestInterfaceWillBeGarbageCollectedArg(TestInterfaceW
illBeGarbageCollected... variadicTestInterfaceWillBeGarbageCollectedArg); |
| 386 | 396 |
| 387 // Overloaded methods | 397 // Overloaded methods |
| 388 void overloadedMethodA(long longArg); | 398 void overloadedMethodA(long longArg); |
| 389 void overloadedMethodA(long longArg1, long longArg2); | 399 void overloadedMethodA(long longArg1, long longArg2); |
| 390 void overloadedMethodB(long longArg); | 400 void overloadedMethodB(long longArg); |
| 391 void overloadedMethodB(DOMString stringArg, optional long longArg); | 401 void overloadedMethodB(DOMString stringArg, optional long longArg); |
| 392 void overloadedMethodC(long longArg); | 402 void overloadedMethodC(long longArg); |
| 393 void overloadedMethodC(TestInterfaceEmpty testInterfaceEmptyArg); | 403 void overloadedMethodC(TestInterfaceEmpty testInterfaceEmptyArg); |
| 394 void overloadedMethodD(long longArg); | 404 void overloadedMethodD(long longArg); |
| 395 void overloadedMethodD(long[] longArrayArg); | 405 void overloadedMethodD(long[] longArrayArg); |
| 396 void overloadedMethodE(long longArg); | 406 void overloadedMethodE(long longArg); |
| 397 void overloadedMethodE(TestInterfaceEmpty? testInterfaceEmptyOrNullArg); | 407 void overloadedMethodE(TestInterfaceEmpty? testInterfaceEmptyOrNullArg); |
| 398 void overloadedMethodF(optional DOMString stringArg); | 408 void overloadedMethodF(optional DOMString stringArg); |
| 399 void overloadedMethodF(double doubleArg); | 409 void overloadedMethodF(double doubleArg); |
| 400 void overloadedMethodG(long longArg); | 410 void overloadedMethodG(long longArg); |
| 401 void overloadedMethodG([Default=Null] TestInterfaceEmpty? testInterfaceEmpty
OrNullArg); | 411 void overloadedMethodG(optional TestInterfaceEmpty? testInterfaceEmptyOrNull
Arg = null); |
| 402 void overloadedMethodH(TestInterface testInterfaceArg); | 412 void overloadedMethodH(TestInterface testInterfaceArg); |
| 403 void overloadedMethodH(TestInterfaceEmpty testInterfaceEmptyArg); | 413 void overloadedMethodH(TestInterfaceEmpty testInterfaceEmptyArg); |
| 404 void overloadedMethodI(DOMString stringArg); | 414 void overloadedMethodI(DOMString stringArg); |
| 405 void overloadedMethodI(double doubleArg); | 415 void overloadedMethodI(double doubleArg); |
| 406 | 416 |
| 407 | 417 |
| 408 [PerWorldBindings] void overloadedPerWorldBindingsMethod(); | 418 [PerWorldBindings] void overloadedPerWorldBindingsMethod(); |
| 409 [PerWorldBindings] void overloadedPerWorldBindingsMethod(long longArg); | 419 [PerWorldBindings] void overloadedPerWorldBindingsMethod(long longArg); |
| 410 | 420 |
| 411 static void overloadedStaticMethod(long longArg); | 421 static void overloadedStaticMethod(long longArg); |
| 412 static void overloadedStaticMethod(long longArg1, long longArg2); | 422 static void overloadedStaticMethod(long longArg1, long longArg2); |
| 413 | 423 |
| 414 // Extended attributes for arguments | 424 // Extended attributes for arguments |
| 415 // [Clamp] | 425 // [Clamp] |
| 416 void voidMethodClampUnsignedShortArg([Clamp] unsigned short clampUnsignedSho
rtArg); | 426 void voidMethodClampUnsignedShortArg([Clamp] unsigned short clampUnsignedSho
rtArg); |
| 417 void voidMethodClampUnsignedLongArg([Clamp] unsigned long clampUnsignedLongA
rg); | 427 void voidMethodClampUnsignedLongArg([Clamp] unsigned long clampUnsignedLongA
rg); |
| 418 // [Default] | 428 // [Default] |
| 419 void voidMethodDefaultUndefinedTestInterfaceEmptyArg([Default=Undefined] opt
ional TestInterfaceEmpty defaultUndefinedTestInterfaceEmptyArg); | 429 void voidMethodDefaultUndefinedTestInterfaceEmptyArg([Default=Undefined] opt
ional TestInterfaceEmpty defaultUndefinedTestInterfaceEmptyArg); |
| 420 void voidMethodDefaultUndefinedLongArg([Default=Undefined] optional long def
aultUndefinedLongArg); | 430 void voidMethodDefaultUndefinedLongArg([Default=Undefined] optional long def
aultUndefinedLongArg); |
| 421 void voidMethodDefaultUndefinedStringArg([Default=Undefined] optional DOMStr
ing defaultUndefinedStringArg); | 431 void voidMethodDefaultUndefinedStringArg([Default=Undefined] optional DOMStr
ing defaultUndefinedStringArg); |
| 422 void voidMethodDefaultNullStringStringArg([Default=NullString] optional DOMS
tring defaultNullStringStringArg); | |
| 423 // [EnforceRange] | 432 // [EnforceRange] |
| 424 void voidMethodEnforceRangeLongArg([EnforceRange] long enforceRangeLongArg); | 433 void voidMethodEnforceRangeLongArg([EnforceRange] long enforceRangeLongArg); |
| 425 // [TreatNullAs], [TreatUndefinedAs] | 434 // [TreatNullAs], [TreatUndefinedAs] |
| 426 void voidMethodTreatNullAsNullStringStringArg([TreatNullAs=NullString] DOMSt
ring treatNullAsNullStringStringArg); | 435 void voidMethodTreatNullAsNullStringStringArg([TreatNullAs=NullString] DOMSt
ring treatNullAsNullStringStringArg); |
| 427 void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg([Tre
atNullAs=NullString, TreatUndefinedAs=NullString] DOMString treatNullAsNullStrin
gStringArg); | 436 void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg([Tre
atNullAs=NullString, TreatUndefinedAs=NullString] DOMString treatNullAsNullStrin
gStringArg); |
| 428 | 437 |
| 429 // Extended attributes for methods | 438 // Extended attributes for methods |
| 430 [LogActivity, LogAllWorlds] void activityLoggingAccessForAllWorldsMethod(); | 439 [LogActivity, LogAllWorlds] void activityLoggingAccessForAllWorldsMethod(); |
| 431 [CallWith=ExecutionContext] void callWithExecutionContextVoidMethod(); | 440 [CallWith=ExecutionContext] void callWithExecutionContextVoidMethod(); |
| 432 [CallWith=ScriptState] void callWithScriptStateVoidMethod(); | 441 [CallWith=ScriptState] void callWithScriptStateVoidMethod(); |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 void voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(TestInterfaceWill
BeGarbageCollected[] testInterfaceWillBeGarbageCollectedArrayArg); | 500 void voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(TestInterfaceWill
BeGarbageCollected[] testInterfaceWillBeGarbageCollectedArrayArg); |
| 492 | 501 |
| 493 // Extended attributes on referenced interfaces | 502 // Extended attributes on referenced interfaces |
| 494 // (not self; self-reference tests at interface themselves) | 503 // (not self; self-reference tests at interface themselves) |
| 495 attribute TestInterface testInterfaceAttribute; // [ImplementedAs] | 504 attribute TestInterface testInterfaceAttribute; // [ImplementedAs] |
| 496 attribute TestInterfaceGarbageCollected testInterfaceGarbageCollectedAttribu
te; // [GarbageCollected] | 505 attribute TestInterfaceGarbageCollected testInterfaceGarbageCollectedAttribu
te; // [GarbageCollected] |
| 497 attribute TestInterfaceGarbageCollected? testInterfaceGarbageCollectedOrNull
Attribute; // [GarbageCollected] | 506 attribute TestInterfaceGarbageCollected? testInterfaceGarbageCollectedOrNull
Attribute; // [GarbageCollected] |
| 498 attribute TestInterfaceWillBeGarbageCollected testInterfaceWillBeGarbageColl
ectedAttribute; // [WillBeGarbageCollected] | 507 attribute TestInterfaceWillBeGarbageCollected testInterfaceWillBeGarbageColl
ectedAttribute; // [WillBeGarbageCollected] |
| 499 attribute TestInterfaceWillBeGarbageCollected? testInterfaceWillBeGarbageCol
lectedOrNullAttribute; // [WillBeGarbageCollected] | 508 attribute TestInterfaceWillBeGarbageCollected? testInterfaceWillBeGarbageCol
lectedOrNullAttribute; // [WillBeGarbageCollected] |
| 500 }; | 509 }; |
| OLD | NEW |