OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * Copyright (C) 2010 Apple Inc. All rights reserved. | 3 * Copyright (C) 2010 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary formstrArg, with or without | 5 * Redistribution and use in source and binary formstrArg, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 16 matching lines...) Expand all Loading... |
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
28 */ | 28 */ |
29 | 29 |
30 // This IDL file is for testing the bindings code generator and for tracking | 30 // This IDL file is for testing the bindings code generator and for tracking |
31 // changes in its ouput. | 31 // changes in its ouput. |
32 | 32 |
33 enum TestEnumType { "", "EnumValue1", "EnumValue2", "EnumValue3" }; | 33 enum TestEnumType { "", "EnumValue1", "EnumValue2", "EnumValue3" }; |
34 | 34 |
35 callback TestCallbackFunction = void (TestEnumType formal1, TestObject formal2); | 35 callback TestCallbackFunction = void (TestEnumType formal1, TestObject formal2); |
36 | 36 |
37 | |
38 [ | 37 [ |
39 Constructor(TestCallbackInterface testCallbackInterface), | |
40 ImplementedAs=TestObj | 38 ImplementedAs=TestObj |
41 ] interface TestObject : EventTarget { | 39 ] interface TestObject : EventTarget { |
42 // Attributes | 40 // Attributes |
43 readonly attribute long readOnlyLongAttr; | 41 readonly attribute long readOnlyLongAttr; |
44 readonly attribute DOMString readOnlyStringAttr; | 42 readonly attribute DOMString readOnlyStringAttr; |
45 readonly attribute TestObject readOnlyTestObjectAttr; | 43 readonly attribute TestObject readOnlyTestObjectAttr; |
46 static readonly attribute long staticReadOnlyLongAttr; | 44 static readonly attribute long staticReadOnlyLongAttr; |
47 static attribute DOMString staticStringAttr; | 45 static attribute DOMString staticStringAttr; |
48 static readonly attribute TestSubObjConstructor TestSubObj; | 46 static readonly attribute TestSubObjConstructor TestSubObj; |
49 attribute TestEnumType enumAttr; | 47 attribute TestEnumType enumAttr; |
(...skipping 17 matching lines...) Expand all Loading... |
67 // Reflected DOM attributes | 65 // Reflected DOM attributes |
68 [Reflect, TreatNullAs=NullString] attribute DOMString reflectedStringAttr; | 66 [Reflect, TreatNullAs=NullString] attribute DOMString reflectedStringAttr; |
69 [Reflect] attribute long reflectedIntegralAttr; | 67 [Reflect] attribute long reflectedIntegralAttr; |
70 [Reflect] attribute unsigned long reflectedUnsignedIntegralAttr; | 68 [Reflect] attribute unsigned long reflectedUnsignedIntegralAttr; |
71 [Reflect] attribute boolean reflectedBooleanAttr; | 69 [Reflect] attribute boolean reflectedBooleanAttr; |
72 [Reflect, TreatNullAs=NullString, URL] attribute DOMString reflectedURLAttr; | 70 [Reflect, TreatNullAs=NullString, URL] attribute DOMString reflectedURLAttr; |
73 [Reflect=customContentStringAttr, TreatNullAs=NullString] attribute DOMStrin
g reflectedStringAttr; | 71 [Reflect=customContentStringAttr, TreatNullAs=NullString] attribute DOMStrin
g reflectedStringAttr; |
74 [Reflect=customContentIntegralAttr] attribute long reflectedCustomIntegralAt
tr; | 72 [Reflect=customContentIntegralAttr] attribute long reflectedCustomIntegralAt
tr; |
75 [Reflect=customContentBooleanAttr] attribute boolean reflectedCustomBooleanA
ttr; | 73 [Reflect=customContentBooleanAttr] attribute boolean reflectedCustomBooleanA
ttr; |
76 [Reflect=customContentURLAttr, TreatNullAs=NullString, URL] attribute DOMStr
ing reflectedCustomURLAttr; | 74 [Reflect=customContentURLAttr, TreatNullAs=NullString, URL] attribute DOMStr
ing reflectedCustomURLAttr; |
77 [Reflect] attribute SVGAnimatedString animatedReflectedAttribute; | |
78 [Reflect, ReflectOnly="unique"] attribute DOMString limitedToOnlyOneAttribut
e; | 75 [Reflect, ReflectOnly="unique"] attribute DOMString limitedToOnlyOneAttribut
e; |
79 [Reflect, ReflectOnly="Per"|"Paal"|"Espen"] attribute DOMString limitedToOnl
yAttribute; | 76 [Reflect, ReflectOnly="Per"|"Paal"|"Espen"] attribute DOMString limitedToOnl
yAttribute; |
80 [Reflect=Other, ReflectOnly="Value1"|"Value2" ] attribute DOMString limitedT
oOnlyOtherAttribute; | 77 [Reflect=Other, ReflectOnly="Value1"|"Value2" ] attribute DOMString limitedT
oOnlyOtherAttribute; |
81 [Reflect, ReflectOnly="rsa" | "dsa", ReflectMissing="rsa"] attribute DOMStri
ng limitedWithMissingDefaultAttribute; | 78 [Reflect, ReflectOnly="rsa" | "dsa", ReflectMissing="rsa"] attribute DOMStri
ng limitedWithMissingDefaultAttribute; |
82 [Reflect, ReflectOnly="ltr" | "rtl" | "auto", ReflectMissing="auto", Reflect
Invalid="ltr"] attribute DOMString limitedWithInvalidMissingDefaultAttribute; | 79 [Reflect, ReflectOnly="ltr" | "rtl" | "auto", ReflectMissing="auto", Reflect
Invalid="ltr"] attribute DOMString limitedWithInvalidMissingDefaultAttribute; |
83 [Reflect, ReflectOnly="left" | "right", ReflectMissing="left", ReflectInvali
d="left"] attribute DOMString limitedWithInvalidAndMissingDefaultAttribute; | 80 [Reflect, ReflectOnly="left" | "right", ReflectMissing="left", ReflectInvali
d="left"] attribute DOMString limitedWithInvalidAndMissingDefaultAttribute; |
84 [Reflect, ReflectOnly="anonymous"|"use-credentials", ReflectEmpty="anonymous
", ReflectInvalid="anonymous"] readonly attribute DOMString corsSettingAttribute
; | 81 [Reflect, ReflectOnly="anonymous"|"use-credentials", ReflectEmpty="anonymous
", ReflectInvalid="anonymous"] readonly attribute DOMString corsSettingAttribute
; |
85 [Reflect, ReflectOnly="empty"|"missing"|"invalid"|"a-normal", ReflectEmpty="
empty", ReflectMissing="missing", ReflectInvalid="invalid"] readonly attribute D
OMString limitedWithEmptyMissingInvalidAttribute; | 82 [Reflect, ReflectOnly="empty"|"missing"|"invalid"|"a-normal", ReflectEmpty="
empty", ReflectMissing="missing", ReflectInvalid="invalid"] readonly attribute D
OMString limitedWithEmptyMissingInvalidAttribute; |
86 | 83 |
87 // TypedArray attribute | 84 // TypedArray attribute |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 | 234 |
238 attribute float[] floatArray; | 235 attribute float[] floatArray; |
239 attribute double[] doubleArray; | 236 attribute double[] doubleArray; |
240 attribute MessagePort[] messagePortArray; | 237 attribute MessagePort[] messagePortArray; |
241 | 238 |
242 void methodWithUnsignedLongSequence(sequence<unsigned long> unsignedLongSequ
ence); | 239 void methodWithUnsignedLongSequence(sequence<unsigned long> unsignedLongSequ
ence); |
243 [RaisesException] DOMString[] stringArrayFunction(DOMString[] values); | 240 [RaisesException] DOMString[] stringArrayFunction(DOMString[] values); |
244 [RaisesException] DOMStringList domStringListFunction(DOMStringList values); | 241 [RaisesException] DOMStringList domStringListFunction(DOMStringList values); |
245 | 242 |
246 [CheckSecurity=Node] readonly attribute Document contentDocument; | 243 [CheckSecurity=Node] readonly attribute Document contentDocument; |
247 [CheckSecurity=Node, RaisesException] SVGDocument getSVGDocument(); | |
248 | 244 |
249 void convert1([TreatNullAs=NullString] TestNode value); | 245 void convert1([TreatNullAs=NullString] TestNode value); |
250 void convert2([TreatNullAs=NullString, TreatUndefinedAs=NullString] TestNode
value); | 246 void convert2([TreatNullAs=NullString, TreatUndefinedAs=NullString] TestNode
value); |
251 | 247 |
252 attribute SVGPoint mutablePoint; | |
253 [Immutable] attribute SVGPoint immutablePoint; | |
254 SVGPoint mutablePointFunction(); | |
255 [Immutable] SVGPoint immutablePointFunction(); | |
256 | |
257 SVGPoint svgPointMethod(SVGPoint item, unsigned long index); | |
258 [StrictTypeChecking, RaisesException] SVGPoint strictSVGPointMethod(SVGPoin
t item, unsigned long index); | |
259 | |
260 [ImplementedAs=banana] void orange(); | 248 [ImplementedAs=banana] void orange(); |
261 [ImplementedAs=blueberry] attribute long strawberry; | 249 [ImplementedAs=blueberry] attribute long strawberry; |
262 | 250 |
263 [StrictTypeChecking] attribute float strictFloat; | 251 [StrictTypeChecking] attribute float strictFloat; |
264 [StrictTypeChecking, RaisesException] boolean strictFunction(DOMString str,
float a, long b); | 252 [StrictTypeChecking, RaisesException] boolean strictFunction(DOMString str,
float a, long b); |
265 | 253 |
266 [Replaceable] readonly attribute long replaceableAttribute; | 254 [Replaceable] readonly attribute long replaceableAttribute; |
267 | 255 |
268 void variadicStringMethod(DOMString head, DOMString... tail); | 256 void variadicStringMethod(DOMString head, DOMString... tail); |
269 void variadicDoubleMethod(double head, double... tail); | 257 void variadicDoubleMethod(double head, double... tail); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 [DeprecateAs=Constant] const unsigned short DEPRECATED_CONSTANT = 1; | 301 [DeprecateAs=Constant] const unsigned short DEPRECATED_CONSTANT = 1; |
314 | 302 |
315 // PutForwards | 303 // PutForwards |
316 [PutForwards=href] readonly attribute TestNode location; | 304 [PutForwards=href] readonly attribute TestNode location; |
317 [PutForwards=hrefThrows] readonly attribute TestNode locationWithException; | 305 [PutForwards=hrefThrows] readonly attribute TestNode locationWithException; |
318 }; | 306 }; |
319 | 307 |
320 // The following comment should not generate any code | 308 // The following comment should not generate any code |
321 // TestObject implements TestImplements; | 309 // TestObject implements TestImplements; |
322 | 310 |
OLD | NEW |