Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(120)

Side by Side Diff: bindings/scripts/test/TestObj.idl

Issue 12893011: Update idl files in third_party/WebCore (Closed) Base URL: https://dart.googlecode.com/svn/third_party/WebCore
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 148 // static methods with 'Callback' extended attribute
149 static void staticMethodWithCallbackAndOptionalArg(in [Callback, Optional ] TestCallback callback); 149 static void staticMethodWithCallbackAndOptionalArg(in [Callback, Optional ] TestCallback callback);
150 static void staticMethodWithCallbackArg(in [Callback] TestCallback callba ck); 150 static void staticMethodWithCallbackArg(in [Callback] TestCallback callba ck);
151 #endif 151 #endif
152 152
153 #if defined(TESTING_V8)
154 // 'EnforceRange' extended attribute
155 void methodWithEnforceRangeInt32(in [EnforceRange] long value);
156 void methodWithEnforceRangeUInt32(in [EnforceRange] unsigned long value);
157 void methodWithEnforceRangeInt64(in [EnforceRange] long long value);
158 void methodWithEnforceRangeUInt64(in [EnforceRange] unsigned long long va lue);
159
160 attribute [EnforceRange] long enforcedRangeLongAttr;
161 attribute [EnforceRange] unsigned long enforcedRangeUnsignedLongAttr;
162 attribute [EnforceRange] long long enforcedRangeLongLongAttr;
163 attribute [EnforceRange] unsigned long long enforcedRangeUnsignedLongLongAtt r;
164 #endif
165
153 // 'Conditional' extended attribute 166 // 'Conditional' extended attribute
154 [Conditional=Condition1] attribute long conditionalAttr1; 167 [Conditional=Condition1] attribute long conditionalAttr1;
155 [Conditional=Condition1&Condition2] attribute long conditionalAttr2; 168 [Conditional=Condition1&Condition2] attribute long conditionalAttr2;
156 [Conditional=Condition1|Condition2] attribute long conditionalAttr3; 169 [Conditional=Condition1|Condition2] attribute long conditionalAttr3;
157 170
158 // 'Conditional' extended method 171 // 'Conditional' extended method
159 [Conditional=Condition1] DOMString conditionalMethod1(); 172 [Conditional=Condition1] DOMString conditionalMethod1();
160 [Conditional=Condition1&Condition2] void conditionalMethod2(); 173 [Conditional=Condition1&Condition2] void conditionalMethod2();
161 [Conditional=Condition1|Condition2] void conditionalMethod3(); 174 [Conditional=Condition1|Condition2] void conditionalMethod3();
162 175
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 const unsigned short CONST_VALUE_12 = 0x01; 277 const unsigned short CONST_VALUE_12 = 0x01;
265 const unsigned short CONST_VALUE_13 = 0X20; 278 const unsigned short CONST_VALUE_13 = 0X20;
266 const unsigned short CONST_VALUE_14 = 0x1abc; 279 const unsigned short CONST_VALUE_14 = 0x1abc;
267 [Reflect=CONST_IMPL] const unsigned short CONST_JAVASCRIPT = 15; 280 [Reflect=CONST_IMPL] const unsigned short CONST_JAVASCRIPT = 15;
268 281
269 [Replaceable] readonly attribute long replaceableAttribute; 282 [Replaceable] readonly attribute long replaceableAttribute;
270 283
271 void variadicStringMethod(in DOMString head, in DOMString... tail); 284 void variadicStringMethod(in DOMString head, in DOMString... tail);
272 void variadicDoubleMethod(in double head, in double... tail); 285 void variadicDoubleMethod(in double head, in double... tail);
273 void variadicNodeMethod(in Node head, in Node... tail); 286 void variadicNodeMethod(in Node head, in Node... tail);
287
288 // Nullable attributes.
289 readonly attribute double? nullableDoubleAttribute;
290 readonly attribute long? nullableLongAttribute;
291 readonly attribute boolean? nullableBooleanAttribute;
292 readonly attribute DOMString? nullableStringAttribute;
293
294 attribute long? nullableLongSettableAttribute;
295
296 attribute long? nullableStringValue
297 getter raises(DOMException);
274 }; 298 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698