| 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 void methodWithNonOptionalArgAndOptionalArg(long nonOpt, optional long op
t); | 141 void methodWithNonOptionalArgAndOptionalArg(long nonOpt, optional long op
t); |
| 142 void methodWithNonOptionalArgAndTwoOptionalArgs(long nonOpt, optional lon
g opt1, optional long opt2); | 142 void methodWithNonOptionalArgAndTwoOptionalArgs(long nonOpt, optional lon
g opt1, optional long opt2); |
| 143 void methodWithOptionalString(optional DOMString str); | 143 void methodWithOptionalString(optional DOMString str); |
| 144 void methodWithOptionalStringIsUndefined([Default=Undefined] optional DOM
String str); | 144 void methodWithOptionalStringIsUndefined([Default=Undefined] optional DOM
String str); |
| 145 void methodWithOptionalStringIsNullString([Default=NullString] optional D
OMString str); | 145 void methodWithOptionalStringIsNullString([Default=NullString] optional D
OMString str); |
| 146 | 146 |
| 147 // Callback parameters | 147 // Callback parameters |
| 148 void methodWithCallbackArg(TestCallback callback); | 148 void methodWithCallbackArg(TestCallback callback); |
| 149 void methodWithNonCallbackArgAndCallbackArg(long nonCallback, TestCallbac
k callback); | 149 void methodWithNonCallbackArgAndCallbackArg(long nonCallback, TestCallbac
k callback); |
| 150 void methodWithCallbackAndOptionalArg(optional TestCallback callback); | 150 void methodWithCallbackAndOptionalArg(optional TestCallback callback); |
| 151 void methodWithNullableCallbackArg(TestCallback? callback); |
| 151 // static methods with Callback parameter | 152 // static methods with Callback parameter |
| 152 static void staticMethodWithCallbackAndOptionalArg(optional TestCallback
callback); | 153 static void staticMethodWithCallbackAndOptionalArg(optional TestCallback
callback); |
| 153 static void staticMethodWithCallbackArg(TestCallback callback); | 154 static void staticMethodWithCallbackArg(TestCallback callback); |
| 154 | 155 |
| 155 // 'EnforceRange' extended attribute | 156 // 'EnforceRange' extended attribute |
| 156 void methodWithEnforceRangeInt8([EnforceRange] byte value); | 157 void methodWithEnforceRangeInt8([EnforceRange] byte value); |
| 157 void methodWithEnforceRangeUInt8([EnforceRange] octet value); | 158 void methodWithEnforceRangeUInt8([EnforceRange] octet value); |
| 158 void methodWithEnforceRangeInt32([EnforceRange] long value); | 159 void methodWithEnforceRangeInt32([EnforceRange] long value); |
| 159 void methodWithEnforceRangeUInt32([EnforceRange] unsigned long value); | 160 void methodWithEnforceRangeUInt32([EnforceRange] unsigned long value); |
| 160 void methodWithEnforceRangeInt64([EnforceRange] long long value); | 161 void methodWithEnforceRangeInt64([EnforceRange] long long value); |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 | 319 |
| 319 [DeprecateAs=Method] void deprecatedMethod(); | 320 [DeprecateAs=Method] void deprecatedMethod(); |
| 320 [DeprecateAs=StaticMethod] static void deprecatedStaticMethod(); | 321 [DeprecateAs=StaticMethod] static void deprecatedStaticMethod(); |
| 321 | 322 |
| 322 [DeprecateAs=Constant] const unsigned short DEPRECATED_CONSTANT = 1; | 323 [DeprecateAs=Constant] const unsigned short DEPRECATED_CONSTANT = 1; |
| 323 }; | 324 }; |
| 324 | 325 |
| 325 // The following comment should not generate any code | 326 // The following comment should not generate any code |
| 326 // TestObject implements TestImplements; | 327 // TestObject implements TestImplements; |
| 327 | 328 |
| OLD | NEW |