| 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 void methodWithNonOptionalArgAndTwoOptionalArgs(in long nonOpt, in [Optio
nal] long opt1, in [Optional] long opt2); | 138 void methodWithNonOptionalArgAndTwoOptionalArgs(in long nonOpt, in [Optio
nal] long opt1, in [Optional] long opt2); |
| 139 void methodWithOptionalString(in [Optional] DOMString str); | 139 void methodWithOptionalString(in [Optional] DOMString str); |
| 140 void methodWithOptionalStringIsUndefined(in [Optional=DefaultIsUndefined]
DOMString str); | 140 void methodWithOptionalStringIsUndefined(in [Optional=DefaultIsUndefined]
DOMString str); |
| 141 void methodWithOptionalStringIsNullString(in [Optional=DefaultIsNullStrin
g] DOMString str); | 141 void methodWithOptionalStringIsNullString(in [Optional=DefaultIsNullStrin
g] DOMString str); |
| 142 | 142 |
| 143 #if defined(TESTING_V8) || defined(TESTING_JS) | 143 #if defined(TESTING_V8) || defined(TESTING_JS) |
| 144 // 'Callback' extended attribute | 144 // 'Callback' extended attribute |
| 145 void methodWithCallbackArg(in [Callback] TestCallback callback); | 145 void methodWithCallbackArg(in [Callback] TestCallback callback); |
| 146 void methodWithNonCallbackArgAndCallbackArg(in long nonCallback, in [Call
back] TestCallback callback); | 146 void methodWithNonCallbackArgAndCallbackArg(in long nonCallback, in [Call
back] TestCallback callback); |
| 147 void methodWithCallbackAndOptionalArg(in [Callback, Optional] TestCallbac
k callback); | 147 void methodWithCallbackAndOptionalArg(in [Callback, Optional] TestCallbac
k callback); |
| 148 // static methods with 'Callback' extended attribute |
| 149 static void staticMethodWithCallbackAndOptionalArg(in [Callback, Optional
] TestCallback callback); |
| 150 static void staticMethodWithCallbackArg(in [Callback] TestCallback callba
ck); |
| 148 #endif | 151 #endif |
| 149 | 152 |
| 150 // 'Conditional' extended attribute | 153 // 'Conditional' extended attribute |
| 151 [Conditional=Condition1] attribute long conditionalAttr1; | 154 [Conditional=Condition1] attribute long conditionalAttr1; |
| 152 [Conditional=Condition1&Condition2] attribute long conditionalAttr2; | 155 [Conditional=Condition1&Condition2] attribute long conditionalAttr2; |
| 153 [Conditional=Condition1|Condition2] attribute long conditionalAttr3; | 156 [Conditional=Condition1|Condition2] attribute long conditionalAttr3; |
| 154 | 157 |
| 155 // 'Conditional' extended method | 158 // 'Conditional' extended method |
| 156 [Conditional=Condition1] DOMString conditionalMethod1(); | 159 [Conditional=Condition1] DOMString conditionalMethod1(); |
| 157 [Conditional=Condition1&Condition2] void conditionalMethod2(); | 160 [Conditional=Condition1&Condition2] void conditionalMethod2(); |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 const unsigned short CONST_VALUE_13 = 0X20; | 265 const unsigned short CONST_VALUE_13 = 0X20; |
| 263 const unsigned short CONST_VALUE_14 = 0x1abc; | 266 const unsigned short CONST_VALUE_14 = 0x1abc; |
| 264 [Reflect=CONST_IMPL] const unsigned short CONST_JAVASCRIPT = 15; | 267 [Reflect=CONST_IMPL] const unsigned short CONST_JAVASCRIPT = 15; |
| 265 | 268 |
| 266 [Replaceable] readonly attribute long replaceableAttribute; | 269 [Replaceable] readonly attribute long replaceableAttribute; |
| 267 | 270 |
| 268 void variadicStringMethod(in DOMString head, in DOMString... tail); | 271 void variadicStringMethod(in DOMString head, in DOMString... tail); |
| 269 void variadicDoubleMethod(in double head, in double... tail); | 272 void variadicDoubleMethod(in double head, in double... tail); |
| 270 void variadicNodeMethod(in Node head, in Node... tail); | 273 void variadicNodeMethod(in Node head, in Node... tail); |
| 271 }; | 274 }; |
| OLD | NEW |