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 19 matching lines...) Expand all Loading... |
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 [ | 37 [ |
38 Constructor(TestCallback testCallback), | 38 Constructor(TestCallback testCallback), |
39 ImplementedAs=TestObj | 39 ImplementedAs=TestObj |
40 ] interface TestObject { | 40 ] interface TestObject : EventTarget { |
41 // Attributes | 41 // Attributes |
42 readonly attribute long readOnlyLongAttr; | 42 readonly attribute long readOnlyLongAttr; |
43 readonly attribute DOMString readOnlyStringAttr; | 43 readonly attribute DOMString readOnlyStringAttr; |
44 readonly attribute TestObject readOnlyTestObjectAttr; | 44 readonly attribute TestObject readOnlyTestObjectAttr; |
45 static readonly attribute long staticReadOnlyLongAttr; | 45 static readonly attribute long staticReadOnlyLongAttr; |
46 static attribute DOMString staticStringAttr; | 46 static attribute DOMString staticStringAttr; |
47 static readonly attribute TestSubObjConstructor TestSubObj; | 47 static readonly attribute TestSubObjConstructor TestSubObj; |
48 attribute TestEnumType enumAttr; | 48 attribute TestEnumType enumAttr; |
49 readonly attribute TestEnumType readOnlyEnumAttr; | 49 readonly attribute TestEnumType readOnlyEnumAttr; |
50 attribute byte byteAttr; | 50 attribute byte byteAttr; |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 | 319 |
320 [DeprecateAs=Method] void deprecatedMethod(); | 320 [DeprecateAs=Method] void deprecatedMethod(); |
321 [DeprecateAs=StaticMethod] static void deprecatedStaticMethod(); | 321 [DeprecateAs=StaticMethod] static void deprecatedStaticMethod(); |
322 | 322 |
323 [DeprecateAs=Constant] const unsigned short DEPRECATED_CONSTANT = 1; | 323 [DeprecateAs=Constant] const unsigned short DEPRECATED_CONSTANT = 1; |
324 }; | 324 }; |
325 | 325 |
326 // The following comment should not generate any code | 326 // The following comment should not generate any code |
327 // TestObject implements TestImplements; | 327 // TestObject implements TestImplements; |
328 | 328 |
OLD | NEW |