| 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 | 156 |
| 157 [Conditional=Condition1] const unsigned short CONDITIONAL_CONST = 0; | 157 [Conditional=Condition1] const unsigned short CONDITIONAL_CONST = 0; |
| 158 | 158 |
| 159 #if defined(TESTING_V8) || defined(TESTING_JS) | 159 #if defined(TESTING_V8) || defined(TESTING_JS) |
| 160 readonly attribute [CachedAttribute] any cachedAttribute1; | 160 readonly attribute [CachedAttribute] any cachedAttribute1; |
| 161 readonly attribute [CachedAttribute] any cachedAttribute2; | 161 readonly attribute [CachedAttribute] any cachedAttribute2; |
| 162 #endif | 162 #endif |
| 163 | 163 |
| 164 #if defined(TESTING_V8) || defined(TESTING_JS) | 164 #if defined(TESTING_V8) || defined(TESTING_JS) |
| 165 // Overloads | 165 // Overloads |
| 166 void overloadedMethod(in TestObj objArg, in DOMString strArg); | 166 void overloadedMethod(in TestObj? objArg, in DOMString strArg); |
| 167 void overloadedMethod(in TestObj objArg, in [Optional] long intArg); | 167 void overloadedMethod(in TestObj? objArg, in [Optional] long intArg); |
| 168 void overloadedMethod(in DOMString strArg); | 168 void overloadedMethod(in DOMString strArg); |
| 169 void overloadedMethod(in long intArg); | 169 void overloadedMethod(in long intArg); |
| 170 void overloadedMethod(in [Callback] TestCallback callback); | 170 void overloadedMethod(in [Callback] TestCallback callback); |
| 171 void overloadedMethod(in DOMStringList listArg); | 171 void overloadedMethod(in DOMStringList? listArg); |
| 172 void overloadedMethod(in DOMString[]? arrayArg); |
| 173 void overloadedMethod(in TestObj objArg); |
| 172 void overloadedMethod(in DOMString[] arrayArg); | 174 void overloadedMethod(in DOMString[] arrayArg); |
| 173 #endif | 175 #endif |
| 174 | 176 |
| 175 // Class methods within JavaScript (like what's used for IDBKeyRange). | 177 // Class methods within JavaScript (like what's used for IDBKeyRange). |
| 176 static void classMethod(); | 178 static void classMethod(); |
| 177 static long classMethodWithOptional(in [Optional] long arg); | 179 static long classMethodWithOptional(in [Optional] long arg); |
| 178 [Custom] static void classMethod2(in long arg); | 180 [Custom] static void classMethod2(in long arg); |
| 179 | 181 |
| 180 // Static method with conditional on overloaded methods | 182 // Static method with conditional on overloaded methods |
| 181 [Conditional=Condition1] static void overloadedMethod1(in long arg); | 183 [Conditional=Condition1] static void overloadedMethod1(in long arg); |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 const unsigned short CONST_VALUE_8 = 8; | 242 const unsigned short CONST_VALUE_8 = 8; |
| 241 const short CONST_VALUE_9 = -1; | 243 const short CONST_VALUE_9 = -1; |
| 242 const DOMString CONST_VALUE_10 = "my constant string"; | 244 const DOMString CONST_VALUE_10 = "my constant string"; |
| 243 const unsigned short CONST_VALUE_11 = 0xffffffff; | 245 const unsigned short CONST_VALUE_11 = 0xffffffff; |
| 244 const unsigned short CONST_VALUE_12 = 0x01; | 246 const unsigned short CONST_VALUE_12 = 0x01; |
| 245 const unsigned short CONST_VALUE_13 = 0X20; | 247 const unsigned short CONST_VALUE_13 = 0X20; |
| 246 const unsigned short CONST_VALUE_14 = 0x1abc; | 248 const unsigned short CONST_VALUE_14 = 0x1abc; |
| 247 [Reflect=CONST_IMPL] const unsigned short CONST_JAVASCRIPT = 15; | 249 [Reflect=CONST_IMPL] const unsigned short CONST_JAVASCRIPT = 15; |
| 248 }; | 250 }; |
| 249 } | 251 } |
| OLD | NEW |