| 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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 [ImplementedAs=blueberry] attribute long strawberry; | 253 [ImplementedAs=blueberry] attribute long strawberry; |
| 254 | 254 |
| 255 [StrictTypeChecking] attribute float strictFloat; | 255 [StrictTypeChecking] attribute float strictFloat; |
| 256 [StrictTypeChecking, RaisesException] boolean strictFunction(DOMString str,
float a, long b); | 256 [StrictTypeChecking, RaisesException] boolean strictFunction(DOMString str,
float a, long b); |
| 257 | 257 |
| 258 // ObjectiveC reserved words. | 258 // ObjectiveC reserved words. |
| 259 readonly attribute long description; | 259 readonly attribute long description; |
| 260 attribute long id; | 260 attribute long id; |
| 261 readonly attribute DOMString hash; | 261 readonly attribute DOMString hash; |
| 262 | 262 |
| 263 // Check constants and enums. | |
| 264 const unsigned short CONST_VALUE_0 = 0; | |
| 265 const unsigned short CONST_VALUE_1 = 1; | |
| 266 const unsigned short CONST_VALUE_2 = 2; | |
| 267 const unsigned short CONST_VALUE_4 = 4; | |
| 268 const unsigned short CONST_VALUE_8 = 8; | |
| 269 const short CONST_VALUE_9 = -1; | |
| 270 const DOMString CONST_VALUE_10 = "my constant string"; | |
| 271 const unsigned short CONST_VALUE_11 = 0xffffffff; | |
| 272 const unsigned short CONST_VALUE_12 = 0x01; | |
| 273 const unsigned short CONST_VALUE_13 = 0X20; | |
| 274 const unsigned short CONST_VALUE_14 = 0x1abc; | |
| 275 [Reflect=CONST_IMPL] const unsigned short CONST_JAVASCRIPT = 15; | |
| 276 | |
| 277 [Replaceable] readonly attribute long replaceableAttribute; | 263 [Replaceable] readonly attribute long replaceableAttribute; |
| 278 | 264 |
| 279 void variadicStringMethod(DOMString head, DOMString... tail); | 265 void variadicStringMethod(DOMString head, DOMString... tail); |
| 280 void variadicDoubleMethod(double head, double... tail); | 266 void variadicDoubleMethod(double head, double... tail); |
| 281 void variadicNodeMethod(Node head, Node... tail); | 267 void variadicNodeMethod(Node head, Node... tail); |
| 282 | 268 |
| 283 // Nullable attributes. | 269 // Nullable attributes. |
| 284 readonly attribute double? nullableDoubleAttribute; | 270 readonly attribute double? nullableDoubleAttribute; |
| 285 readonly attribute long? nullableLongAttribute; | 271 readonly attribute long? nullableLongAttribute; |
| 286 readonly attribute boolean? nullableBooleanAttribute; | 272 readonly attribute boolean? nullableBooleanAttribute; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 | 305 |
| 320 [DeprecateAs=Method] void deprecatedMethod(); | 306 [DeprecateAs=Method] void deprecatedMethod(); |
| 321 [DeprecateAs=StaticMethod] static void deprecatedStaticMethod(); | 307 [DeprecateAs=StaticMethod] static void deprecatedStaticMethod(); |
| 322 | 308 |
| 323 [DeprecateAs=Constant] const unsigned short DEPRECATED_CONSTANT = 1; | 309 [DeprecateAs=Constant] const unsigned short DEPRECATED_CONSTANT = 1; |
| 324 }; | 310 }; |
| 325 | 311 |
| 326 // The following comment should not generate any code | 312 // The following comment should not generate any code |
| 327 // TestObject implements TestImplements; | 313 // TestObject implements TestImplements; |
| 328 | 314 |
| OLD | NEW |