| 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 14 matching lines...) Expand all Loading... |
| 25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 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); |
| 36 |
| 35 [ | 37 [ |
| 36 Constructor(TestCallback testCallback), | 38 Constructor(TestCallback testCallback), |
| 37 ImplementedAs=TestObj | 39 ImplementedAs=TestObj |
| 38 ] interface TestObject { | 40 ] interface TestObject { |
| 39 // Attributes | 41 // Attributes |
| 40 readonly attribute long readOnlyLongAttr; | 42 readonly attribute long readOnlyLongAttr; |
| 41 readonly attribute DOMString readOnlyStringAttr; | 43 readonly attribute DOMString readOnlyStringAttr; |
| 42 readonly attribute TestObject readOnlyTestObjectAttr; | 44 readonly attribute TestObject readOnlyTestObjectAttr; |
| 43 static readonly attribute long staticReadOnlyLongAttr; | 45 static readonly attribute long staticReadOnlyLongAttr; |
| 44 static attribute DOMString staticStringAttr; | 46 static attribute DOMString staticStringAttr; |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 [Conditional=Condition1&Condition2] attribute TestObjectectBConstructor cond
itionalAttr5; | 180 [Conditional=Condition1&Condition2] attribute TestObjectectBConstructor cond
itionalAttr5; |
| 179 [Conditional=Condition1|Condition2] attribute TestObjectectCConstructor cond
itionalAttr6; | 181 [Conditional=Condition1|Condition2] attribute TestObjectectCConstructor cond
itionalAttr6; |
| 180 | 182 |
| 181 [Conditional=Condition1] const unsigned short CONDITIONAL_CONST = 0; | 183 [Conditional=Condition1] const unsigned short CONDITIONAL_CONST = 0; |
| 182 | 184 |
| 183 readonly attribute any cachedAttribute1; | 185 readonly attribute any cachedAttribute1; |
| 184 readonly attribute any cachedAttribute2; | 186 readonly attribute any cachedAttribute2; |
| 185 | 187 |
| 186 attribute any anyAttribute; | 188 attribute any anyAttribute; |
| 187 | 189 |
| 190 attribute TestCallbackFunction callbackFunctionAttribute; |
| 191 TestCallbackFunction callbackFunctionReturnValue(); |
| 192 void callbackFunctionArgument(TestCallbackFunction function); |
| 193 |
| 188 // Overloads | 194 // Overloads |
| 189 void overloadedMethod(TestObject? objArg, [StrictTypeChecking] DOMString
strArg); | 195 void overloadedMethod(TestObject? objArg, [StrictTypeChecking] DOMString
strArg); |
| 190 void overloadedMethod(TestObject? objArg, optional long longArg); | 196 void overloadedMethod(TestObject? objArg, optional long longArg); |
| 191 void overloadedMethod([StrictTypeChecking] DOMString strArg); | 197 void overloadedMethod([StrictTypeChecking] DOMString strArg); |
| 192 void overloadedMethod(long longArg); | 198 void overloadedMethod(long longArg); |
| 193 void overloadedMethod(TestCallback callback); | 199 void overloadedMethod(TestCallback callback); |
| 194 void overloadedMethod(DOMStringList? listArg); | 200 void overloadedMethod(DOMStringList? listArg); |
| 195 void overloadedMethod(DOMString[]? arrayArg); | 201 void overloadedMethod(DOMString[]? arrayArg); |
| 196 void overloadedMethod(TestObject objArg); | 202 void overloadedMethod(TestObject objArg); |
| 197 void overloadedMethod(DOMString[] arrayArg); | 203 void overloadedMethod(DOMString[] arrayArg); |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 [DeprecateAs=StaticReadonlyAttribute] static readonly attribute long depreca
tedStaticReadOnlyAttr; | 313 [DeprecateAs=StaticReadonlyAttribute] static readonly attribute long depreca
tedStaticReadOnlyAttr; |
| 308 [DeprecateAs=StaticAttribute] static attribute long deprecatedStaticAttr; | 314 [DeprecateAs=StaticAttribute] static attribute long deprecatedStaticAttr; |
| 309 [DeprecateAs=ReadonlyAttribute] readonly attribute long deprecatedReadonlyAt
tr; | 315 [DeprecateAs=ReadonlyAttribute] readonly attribute long deprecatedReadonlyAt
tr; |
| 310 [DeprecateAs=Attribute] attribute long deprecatedAttr; | 316 [DeprecateAs=Attribute] attribute long deprecatedAttr; |
| 311 | 317 |
| 312 [DeprecateAs=Method] void deprecatedMethod(); | 318 [DeprecateAs=Method] void deprecatedMethod(); |
| 313 [DeprecateAs=StaticMethod] static void deprecatedStaticMethod(); | 319 [DeprecateAs=StaticMethod] static void deprecatedStaticMethod(); |
| 314 | 320 |
| 315 [DeprecateAs=Constant] const unsigned short DEPRECATED_CONSTANT = 1; | 321 [DeprecateAs=Constant] const unsigned short DEPRECATED_CONSTANT = 1; |
| 316 }; | 322 }; |
| OLD | NEW |