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 22 matching lines...) Expand all Loading... |
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 ImplementedAs=TestObj | 38 ImplementedAs=TestObj |
39 ] interface TestObject : EventTarget { | 39 ] interface TestObject : EventTarget { |
40 // Attributes | 40 // Attributes |
41 readonly attribute long readOnlyLongAttr; | 41 readonly attribute long readOnlyLongAttr; |
42 readonly attribute DOMString readOnlyStringAttr; | 42 readonly attribute DOMString readOnlyStringAttr; |
43 readonly attribute TestObject readOnlyTestObjectAttr; | 43 readonly attribute TestObject readOnlyTestObjectAttr; |
44 static readonly attribute long staticReadOnlyLongAttr; | 44 static readonly attribute long staticReadOnlyLongAttr; |
45 static attribute DOMString staticStringAttr; | 45 static attribute DOMString staticStringAttr; |
46 static readonly attribute TestSubObjConstructor TestSubObj; | 46 attribute TestSubObjConstructor TestSubObj; |
47 attribute TestEnumType enumAttr; | 47 attribute TestEnumType enumAttr; |
48 readonly attribute TestEnumType readOnlyEnumAttr; | 48 readonly attribute TestEnumType readOnlyEnumAttr; |
49 attribute byte byteAttr; | 49 attribute byte byteAttr; |
50 attribute octet octetAttr; | 50 attribute octet octetAttr; |
51 attribute short shortAttr; | 51 attribute short shortAttr; |
52 attribute unsigned short unsignedShortAttr; | 52 attribute unsigned short unsignedShortAttr; |
53 attribute long longAttr; | 53 attribute long longAttr; |
54 attribute long long longLongAttr; | 54 attribute long long longLongAttr; |
55 attribute unsigned long long unsignedLongLongAttr; | 55 attribute unsigned long long unsignedLongLongAttr; |
56 attribute DOMString stringAttr; | 56 attribute DOMString stringAttr; |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 [DeprecateAs=Constant] const unsigned short DEPRECATED_CONSTANT = 1; | 301 [DeprecateAs=Constant] const unsigned short DEPRECATED_CONSTANT = 1; |
302 | 302 |
303 // PutForwards | 303 // PutForwards |
304 [PutForwards=href] readonly attribute TestNode location; | 304 [PutForwards=href] readonly attribute TestNode location; |
305 [PutForwards=hrefThrows] readonly attribute TestNode locationWithException; | 305 [PutForwards=hrefThrows] readonly attribute TestNode locationWithException; |
306 }; | 306 }; |
307 | 307 |
308 // The following comment should not generate any code | 308 // The following comment should not generate any code |
309 // TestObject implements TestImplements; | 309 // TestObject implements TestImplements; |
310 | 310 |
OLD | NEW |