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