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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 // | 80 // |
81 // TestInterfaceEmpty is used as a stub interface type, for testing behavior | 81 // TestInterfaceEmpty is used as a stub interface type, for testing behavior |
82 // that should not depend on particular type (beyond "interface or not"). | 82 // that should not depend on particular type (beyond "interface or not"). |
83 // read only | 83 // read only |
84 readonly attribute DOMString readonlyStringAttribute; | 84 readonly attribute DOMString readonlyStringAttribute; |
85 readonly attribute TestInterfaceEmpty readonlyTestInterfaceEmptyAttribute; | 85 readonly attribute TestInterfaceEmpty readonlyTestInterfaceEmptyAttribute; |
86 readonly attribute long readonlyLongAttribute; | 86 readonly attribute long readonlyLongAttribute; |
87 // Basic types | 87 // Basic types |
88 attribute Date dateAttribute; | 88 attribute Date dateAttribute; |
89 attribute DOMString stringAttribute; | 89 attribute DOMString stringAttribute; |
| 90 attribute ByteString byteStringAttribute; |
90 attribute DOMTimeStamp domTimeStampAttribute; | 91 attribute DOMTimeStamp domTimeStampAttribute; |
91 attribute boolean booleanAttribute; | 92 attribute boolean booleanAttribute; |
92 attribute byte byteAttribute; | 93 attribute byte byteAttribute; |
93 attribute double doubleAttribute; | 94 attribute double doubleAttribute; |
94 attribute float floatAttribute; | 95 attribute float floatAttribute; |
95 attribute long longAttribute; | 96 attribute long longAttribute; |
96 attribute long long longLongAttribute; | 97 attribute long long longLongAttribute; |
97 attribute octet octetAttribute; | 98 attribute octet octetAttribute; |
98 attribute short shortAttribute; | 99 attribute short shortAttribute; |
99 attribute unrestricted double unrestrictedDoubleAttribute; | 100 attribute unrestricted double unrestrictedDoubleAttribute; |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 // ReturnType returnTypeMethodTypeName1ArgTypeName2Arg(Type1 typeName1Arg, T
ype2 typeName2Arg); | 255 // ReturnType returnTypeMethodTypeName1ArgTypeName2Arg(Type1 typeName1Arg, T
ype2 typeName2Arg); |
255 // E.g., | 256 // E.g., |
256 // void voidMethodStringArgLongArrayArg(DOMString stringArg, long[] longArra
yArg); | 257 // void voidMethodStringArgLongArrayArg(DOMString stringArg, long[] longArra
yArg); |
257 void voidMethod(); | 258 void voidMethod(); |
258 static void staticVoidMethod(); | 259 static void staticVoidMethod(); |
259 | 260 |
260 // Types | 261 // Types |
261 // Basic types | 262 // Basic types |
262 Date dateMethod(); | 263 Date dateMethod(); |
263 DOMString stringMethod(); | 264 DOMString stringMethod(); |
| 265 ByteString byteStringMethod(); |
264 DOMTimeStamp readonlyDOMTimeStampMethod(); | 266 DOMTimeStamp readonlyDOMTimeStampMethod(); |
265 boolean booleanMethod(); | 267 boolean booleanMethod(); |
266 byte byteMethod(); | 268 byte byteMethod(); |
267 double doubleMethod(); | 269 double doubleMethod(); |
268 float floatMethod(); | 270 float floatMethod(); |
269 long longMethod(); | 271 long longMethod(); |
270 long long longLongMethod(); | 272 long long longLongMethod(); |
271 octet octetMethod(); | 273 octet octetMethod(); |
272 short shortMethod(); | 274 short shortMethod(); |
273 unsigned long unsignedLongMethod(); | 275 unsigned long unsignedLongMethod(); |
274 unsigned long long unsignedLongLongMethod(); | 276 unsigned long long unsignedLongLongMethod(); |
275 unsigned short unsignedShortMethod(); | 277 unsigned short unsignedShortMethod(); |
276 | 278 |
277 void voidMethodDateArg(Date dateArg); | 279 void voidMethodDateArg(Date dateArg); |
278 void voidMethodStringArg(DOMString stringArg); | 280 void voidMethodStringArg(DOMString stringArg); |
| 281 void voidMethodByteStringArg(ByteString stringArg); |
279 void voidMethodDOMTimeStampArg(DOMTimeStamp domTimeStampArg); | 282 void voidMethodDOMTimeStampArg(DOMTimeStamp domTimeStampArg); |
280 void voidMethodBooleanArg(boolean booleanArg); | 283 void voidMethodBooleanArg(boolean booleanArg); |
281 void voidMethodByteArg(byte byteArg); | 284 void voidMethodByteArg(byte byteArg); |
282 void voidMethodDoubleArg(double doubleArg); | 285 void voidMethodDoubleArg(double doubleArg); |
283 void voidMethodFloatArg(float floatArg); | 286 void voidMethodFloatArg(float floatArg); |
284 void voidMethodLongArg(long longArg); | 287 void voidMethodLongArg(long longArg); |
285 void voidMethodLongLongArg(long long longLongArg); | 288 void voidMethodLongLongArg(long long longLongArg); |
286 void voidMethodOctetArg(octet octetArg); | 289 void voidMethodOctetArg(octet octetArg); |
287 void voidMethodShortArg(short shortArg); | 290 void voidMethodShortArg(short shortArg); |
288 void voidMethodUnsignedLongArg(unsigned long unsignedLongArg); | 291 void voidMethodUnsignedLongArg(unsigned long unsignedLongArg); |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
491 void voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(TestInterfaceWill
BeGarbageCollected[] testInterfaceWillBeGarbageCollectedArrayArg); | 494 void voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(TestInterfaceWill
BeGarbageCollected[] testInterfaceWillBeGarbageCollectedArrayArg); |
492 | 495 |
493 // Extended attributes on referenced interfaces | 496 // Extended attributes on referenced interfaces |
494 // (not self; self-reference tests at interface themselves) | 497 // (not self; self-reference tests at interface themselves) |
495 attribute TestInterface testInterfaceAttribute; // [ImplementedAs] | 498 attribute TestInterface testInterfaceAttribute; // [ImplementedAs] |
496 attribute TestInterfaceGarbageCollected testInterfaceGarbageCollectedAttribu
te; // [GarbageCollected] | 499 attribute TestInterfaceGarbageCollected testInterfaceGarbageCollectedAttribu
te; // [GarbageCollected] |
497 attribute TestInterfaceGarbageCollected? testInterfaceGarbageCollectedOrNull
Attribute; // [GarbageCollected] | 500 attribute TestInterfaceGarbageCollected? testInterfaceGarbageCollectedOrNull
Attribute; // [GarbageCollected] |
498 attribute TestInterfaceWillBeGarbageCollected testInterfaceWillBeGarbageColl
ectedAttribute; // [WillBeGarbageCollected] | 501 attribute TestInterfaceWillBeGarbageCollected testInterfaceWillBeGarbageColl
ectedAttribute; // [WillBeGarbageCollected] |
499 attribute TestInterfaceWillBeGarbageCollected? testInterfaceWillBeGarbageCol
lectedOrNullAttribute; // [WillBeGarbageCollected] | 502 attribute TestInterfaceWillBeGarbageCollected? testInterfaceWillBeGarbageCol
lectedOrNullAttribute; // [WillBeGarbageCollected] |
500 }; | 503 }; |
OLD | NEW |