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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 [TreatReturnedNullStringAs=Undefined] attribute ByteString treatReturnedNull
StringAsUndefinedByteStringAttribute; | 255 [TreatReturnedNullStringAs=Undefined] attribute ByteString treatReturnedNull
StringAsUndefinedByteStringAttribute; |
256 [TreatReturnedNullStringAs=Null] attribute USVString treatReturnedNullString
AsNullUSVStringAttribute; | 256 [TreatReturnedNullStringAs=Null] attribute USVString treatReturnedNullString
AsNullUSVStringAttribute; |
257 [TreatReturnedNullStringAs=Undefined] attribute USVString treatReturnedNullS
tringAsUndefinedUSVStringAttribute; | 257 [TreatReturnedNullStringAs=Undefined] attribute USVString treatReturnedNullS
tringAsUndefinedUSVStringAttribute; |
258 [TypeChecking=Interface] attribute float typeCheckingInterfaceFloatAttribute
; // nop for non-interface types | 258 [TypeChecking=Interface] attribute float typeCheckingInterfaceFloatAttribute
; // nop for non-interface types |
259 [TypeChecking=Interface] attribute TestInterface typeCheckingInterfaceTestIn
terfaceAttribute; | 259 [TypeChecking=Interface] attribute TestInterface typeCheckingInterfaceTestIn
terfaceAttribute; |
260 [TypeChecking=Interface] attribute TestInterface? typeCheckingInterfaceTestI
nterfaceOrNullAttribute; | 260 [TypeChecking=Interface] attribute TestInterface? typeCheckingInterfaceTestI
nterfaceOrNullAttribute; |
261 [Reflect, URL] attribute DOMString urlStringAttribute; | 261 [Reflect, URL] attribute DOMString urlStringAttribute; |
262 [Reflect=reflectUrlAttribute, URL] attribute DOMString urlStringAttribute; | 262 [Reflect=reflectUrlAttribute, URL] attribute DOMString urlStringAttribute; |
263 [Unforgeable] attribute long unforgeableLongAttribute; | 263 [Unforgeable] attribute long unforgeableLongAttribute; |
264 [Measure] attribute long measuredLongAttribute; | 264 [Measure] attribute long measuredLongAttribute; |
| 265 [SameObject] attribute TestInterface sameObjectAttribute; |
265 | 266 |
266 | 267 |
267 // Methods | 268 // Methods |
268 // | 269 // |
269 // Naming convention: | 270 // Naming convention: |
270 // ReturnType returnTypeMethodTypeName1ArgTypeName2Arg(Type1 typeName1Arg, T
ype2 typeName2Arg); | 271 // ReturnType returnTypeMethodTypeName1ArgTypeName2Arg(Type1 typeName1Arg, T
ype2 typeName2Arg); |
271 // E.g., | 272 // E.g., |
272 // void voidMethodStringArgLongArrayArg(DOMString stringArg, long[] longArra
yArg); | 273 // void voidMethodStringArgLongArrayArg(DOMString stringArg, long[] longArra
yArg); |
273 void voidMethod(); | 274 void voidMethod(); |
274 static void staticVoidMethod(); | 275 static void staticVoidMethod(); |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
567 // Avoid redundant type checking | 568 // Avoid redundant type checking |
568 [TypeChecking=Interface] void useToImpl4ArgumentsCheckingIfPossibleWithOptio
nalArg(Node node1, optional Node node2); | 569 [TypeChecking=Interface] void useToImpl4ArgumentsCheckingIfPossibleWithOptio
nalArg(Node node1, optional Node node2); |
569 [TypeChecking=Interface] void useToImpl4ArgumentsCheckingIfPossibleWithNulla
bleArg(Node node1, Node? node2); | 570 [TypeChecking=Interface] void useToImpl4ArgumentsCheckingIfPossibleWithNulla
bleArg(Node node1, Node? node2); |
570 [TypeChecking=Interface] void useToImpl4ArgumentsCheckingIfPossibleWithUndef
inedArg(Node node1, [Default=Undefined] optional Node node2); | 571 [TypeChecking=Interface] void useToImpl4ArgumentsCheckingIfPossibleWithUndef
inedArg(Node node1, [Default=Undefined] optional Node node2); |
571 void typeCheckingUnrestrictedVoidMethodFloatArgDoubleArg(float floatArg, dou
ble doubleArg); | 572 void typeCheckingUnrestrictedVoidMethodFloatArgDoubleArg(float floatArg, dou
ble doubleArg); |
572 [Unforgeable] void unforgeableVoidMethod(); | 573 [Unforgeable] void unforgeableVoidMethod(); |
573 void voidMethodTestInterfaceGarbageCollectedSequenceArg(sequence<TestInterfa
ceGarbageCollected> testInterfaceGarbageCollectedSequenceArg); | 574 void voidMethodTestInterfaceGarbageCollectedSequenceArg(sequence<TestInterfa
ceGarbageCollected> testInterfaceGarbageCollectedSequenceArg); |
574 void voidMethodTestInterfaceGarbageCollectedArrayArg(TestInterfaceGarbageCol
lected[] testInterfaceGarbageCollectedArrayArg); | 575 void voidMethodTestInterfaceGarbageCollectedArrayArg(TestInterfaceGarbageCol
lected[] testInterfaceGarbageCollectedArrayArg); |
575 void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg(sequence<TestI
nterfaceWillBeGarbageCollected> testInterfaceWillBeGarbageCollectedSequenceArg); | 576 void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg(sequence<TestI
nterfaceWillBeGarbageCollected> testInterfaceWillBeGarbageCollectedSequenceArg); |
576 void voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(TestInterfaceWill
BeGarbageCollected[] testInterfaceWillBeGarbageCollectedArrayArg); | 577 void voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(TestInterfaceWill
BeGarbageCollected[] testInterfaceWillBeGarbageCollectedArrayArg); |
| 578 [NewObject] TestInterface newObjectTestInterfaceMethod(); |
577 | 579 |
578 // Extended attributes on referenced interfaces | 580 // Extended attributes on referenced interfaces |
579 // (not self; self-reference tests at interface themselves) | 581 // (not self; self-reference tests at interface themselves) |
580 attribute TestInterface testInterfaceAttribute; // [ImplementedAs] | 582 attribute TestInterface testInterfaceAttribute; // [ImplementedAs] |
581 attribute TestInterfaceGarbageCollected testInterfaceGarbageCollectedAttribu
te; // [GarbageCollected] | 583 attribute TestInterfaceGarbageCollected testInterfaceGarbageCollectedAttribu
te; // [GarbageCollected] |
582 attribute TestInterfaceGarbageCollected? testInterfaceGarbageCollectedOrNull
Attribute; // [GarbageCollected] | 584 attribute TestInterfaceGarbageCollected? testInterfaceGarbageCollectedOrNull
Attribute; // [GarbageCollected] |
583 attribute TestInterfaceWillBeGarbageCollected testInterfaceWillBeGarbageColl
ectedAttribute; // [WillBeGarbageCollected] | 585 attribute TestInterfaceWillBeGarbageCollected testInterfaceWillBeGarbageColl
ectedAttribute; // [WillBeGarbageCollected] |
584 attribute TestInterfaceWillBeGarbageCollected? testInterfaceWillBeGarbageCol
lectedOrNullAttribute; // [WillBeGarbageCollected] | 586 attribute TestInterfaceWillBeGarbageCollected? testInterfaceWillBeGarbageCol
lectedOrNullAttribute; // [WillBeGarbageCollected] |
585 | 587 |
586 // Private scripts | 588 // Private scripts |
587 [ImplementedInPrivateScript] void voidMethodImplementedInPrivateScript(); | 589 [ImplementedInPrivateScript] void voidMethodImplementedInPrivateScript(); |
588 [ImplementedInPrivateScript] short shortMethodImplementedInPrivateScript(); | 590 [ImplementedInPrivateScript] short shortMethodImplementedInPrivateScript(); |
589 [ImplementedInPrivateScript] short shortMethodWithShortArgumentImplementedIn
PrivateScript(short value); | 591 [ImplementedInPrivateScript] short shortMethodWithShortArgumentImplementedIn
PrivateScript(short value); |
590 [ImplementedInPrivateScript] DOMString stringMethodWithStringArgumentImpleme
ntedInPrivateScript(DOMString value); | 592 [ImplementedInPrivateScript] DOMString stringMethodWithStringArgumentImpleme
ntedInPrivateScript(DOMString value); |
591 [ImplementedInPrivateScript] Node nodeMethodWithNodeArgumentImplementedInPri
vateScript(Node value); | 593 [ImplementedInPrivateScript] Node nodeMethodWithNodeArgumentImplementedInPri
vateScript(Node value); |
592 [ImplementedInPrivateScript] Node nodeMethodWithVariousArgumentsImplementedI
nPrivateScript(Document document, Node node, short value1, double value2, DOMStr
ing string); | 594 [ImplementedInPrivateScript] Node nodeMethodWithVariousArgumentsImplementedI
nPrivateScript(Document document, Node node, short value1, double value2, DOMStr
ing string); |
593 [ImplementedInPrivateScript] readonly attribute short readonlyShortAttribute
; | 595 [ImplementedInPrivateScript] readonly attribute short readonlyShortAttribute
; |
594 [ImplementedInPrivateScript] attribute short shortAttribute; | 596 [ImplementedInPrivateScript] attribute short shortAttribute; |
595 [ImplementedInPrivateScript] attribute DOMString stringAttribute; | 597 [ImplementedInPrivateScript] attribute DOMString stringAttribute; |
596 [ImplementedInPrivateScript] attribute Node nodeAttribute; | 598 [ImplementedInPrivateScript] attribute Node nodeAttribute; |
597 [OnlyExposedToPrivateScript] short methodImplementedInCPPForPrivateScriptOnl
y(short value1, short value2); | 599 [OnlyExposedToPrivateScript] short methodImplementedInCPPForPrivateScriptOnl
y(short value1, short value2); |
598 [OnlyExposedToPrivateScript] attribute DOMString attributeImplementedInCPPFo
rPrivateScriptOnly; | 600 [OnlyExposedToPrivateScript] attribute DOMString attributeImplementedInCPPFo
rPrivateScriptOnly; |
599 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] short methodForPriv
ateScriptOnly(short value1, short value2); | 601 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] short methodForPriv
ateScriptOnly(short value1, short value2); |
600 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] attribute DOMString
attributeForPrivateScriptOnly; | 602 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] attribute DOMString
attributeForPrivateScriptOnly; |
601 [ImplementedInPrivateScript] attribute TestEnum enumForPrivateScript; | 603 [ImplementedInPrivateScript] attribute TestEnum enumForPrivateScript; |
602 | 604 |
603 maplike<long, DOMStringOrDouble>; | 605 maplike<long, DOMStringOrDouble>; |
604 }; | 606 }; |
OLD | NEW |