| 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 [Conditional=Condition1] attribute TestObjectectAConstructor conditionalAttr
4; | 173 [Conditional=Condition1] attribute TestObjectectAConstructor conditionalAttr
4; |
| 172 [Conditional=Condition1&Condition2] attribute TestObjectectBConstructor cond
itionalAttr5; | 174 [Conditional=Condition1&Condition2] attribute TestObjectectBConstructor cond
itionalAttr5; |
| 173 [Conditional=Condition1|Condition2] attribute TestObjectectCConstructor cond
itionalAttr6; | 175 [Conditional=Condition1|Condition2] attribute TestObjectectCConstructor cond
itionalAttr6; |
| 174 | 176 |
| 175 [Conditional=Condition1] const unsigned short CONDITIONAL_CONST = 0; | 177 [Conditional=Condition1] const unsigned short CONDITIONAL_CONST = 0; |
| 176 | 178 |
| 177 readonly attribute any cachedAttribute1; | 179 readonly attribute any cachedAttribute1; |
| 178 readonly attribute any cachedAttribute2; | 180 readonly attribute any cachedAttribute2; |
| 179 | 181 |
| 180 attribute any anyAttribute; | 182 attribute any anyAttribute; |
| 183 any anyReturnValue(); |
| 184 |
| 185 attribute TestCallbackFunction callbackFunctionAttribute; |
| 186 TestCallbackFunction callbackFunctionReturnValue(); |
| 187 void callbackFunctionArgument(TestCallbackFunction f); |
| 181 | 188 |
| 182 // Overloads | 189 // Overloads |
| 183 void overloadedMethod(TestObject? objArg, [StrictTypeChecking] DOMString
strArg); | 190 void overloadedMethod(TestObject? objArg, [StrictTypeChecking] DOMString
strArg); |
| 184 void overloadedMethod(TestObject? objArg, optional long longArg); | 191 void overloadedMethod(TestObject? objArg, optional long longArg); |
| 185 void overloadedMethod([StrictTypeChecking] DOMString strArg); | 192 void overloadedMethod([StrictTypeChecking] DOMString strArg); |
| 186 void overloadedMethod(long longArg); | 193 void overloadedMethod(long longArg); |
| 187 void overloadedMethod(TestCallback callback); | 194 void overloadedMethod(TestCallback callback); |
| 188 void overloadedMethod(DOMStringList? listArg); | 195 void overloadedMethod(DOMStringList? listArg); |
| 189 void overloadedMethod(DOMString[]? arrayArg); | 196 void overloadedMethod(DOMString[]? arrayArg); |
| 190 void overloadedMethod(TestObject objArg); | 197 void overloadedMethod(TestObject objArg); |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 [DeprecateAs=StaticReadonlyAttribute] static readonly attribute long depreca
tedStaticReadOnlyAttr; | 308 [DeprecateAs=StaticReadonlyAttribute] static readonly attribute long depreca
tedStaticReadOnlyAttr; |
| 302 [DeprecateAs=StaticAttribute] static attribute long deprecatedStaticAttr; | 309 [DeprecateAs=StaticAttribute] static attribute long deprecatedStaticAttr; |
| 303 [DeprecateAs=ReadonlyAttribute] readonly attribute long deprecatedReadonlyAt
tr; | 310 [DeprecateAs=ReadonlyAttribute] readonly attribute long deprecatedReadonlyAt
tr; |
| 304 [DeprecateAs=Attribute] attribute long deprecatedAttr; | 311 [DeprecateAs=Attribute] attribute long deprecatedAttr; |
| 305 | 312 |
| 306 [DeprecateAs=Method] void deprecatedMethod(); | 313 [DeprecateAs=Method] void deprecatedMethod(); |
| 307 [DeprecateAs=StaticMethod] static void deprecatedStaticMethod(); | 314 [DeprecateAs=StaticMethod] static void deprecatedStaticMethod(); |
| 308 | 315 |
| 309 [DeprecateAs=Constant] const unsigned short DEPRECATED_CONSTANT = 1; | 316 [DeprecateAs=Constant] const unsigned short DEPRECATED_CONSTANT = 1; |
| 310 }; | 317 }; |
| OLD | NEW |