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

Side by Side Diff: Source/bindings/tests/idls/TestObject.idl

Issue 27100003: Add support for nullable operation arguments in IDL files (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add test for optional argument Created 7 years, 2 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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 258
259 void variadicStringMethod(DOMString head, DOMString... tail); 259 void variadicStringMethod(DOMString head, DOMString... tail);
260 void variadicDoubleMethod(double head, double... tail); 260 void variadicDoubleMethod(double head, double... tail);
261 void variadicNodeMethod(Node head, Node... tail); 261 void variadicNodeMethod(Node head, Node... tail);
262 262
263 // Nullable attributes. 263 // Nullable attributes.
264 readonly attribute double? nullableDoubleAttribute; 264 readonly attribute double? nullableDoubleAttribute;
265 readonly attribute long? nullableLongAttribute; 265 readonly attribute long? nullableLongAttribute;
266 readonly attribute boolean? nullableBooleanAttribute; 266 readonly attribute boolean? nullableBooleanAttribute;
267 readonly attribute DOMString? nullableStringAttribute; 267 readonly attribute DOMString? nullableStringAttribute;
268 attribute long? nullableLongSettableAttribute;
269 [GetterRaisesException] attribute long? nullableStringValue;
268 270
269 attribute long? nullableLongSettableAttribute; 271 // Nullable arguments.
270 272 void methodWithNullableArguments(DOMString? str, long? l, TestObject? obj, o ptional double? d);
271 [GetterRaisesException] attribute long? nullableStringValue;
272 273
273 [PerWorldBindings] readonly attribute TestObject perWorldReadOnlyAttribute; 274 [PerWorldBindings] readonly attribute TestObject perWorldReadOnlyAttribute;
274 [PerWorldBindings] attribute TestObject perWorldAttribute; 275 [PerWorldBindings] attribute TestObject perWorldAttribute;
275 [PerWorldBindings] void perWorldMethod(); 276 [PerWorldBindings] void perWorldMethod();
276 [PerWorldBindings] void overloadedPerWorldMethod(long longArg); 277 [PerWorldBindings] void overloadedPerWorldMethod(long longArg);
277 [PerWorldBindings] void overloadedPerWorldMethod(DOMString strArg, long long Arg); 278 [PerWorldBindings] void overloadedPerWorldMethod(DOMString strArg, long long Arg);
278 279
279 [ActivityLogging=Access] void activityLoggedMethod1(long longArg); 280 [ActivityLogging=Access] void activityLoggedMethod1(long longArg);
280 [PerWorldBindings, ActivityLogging=Access] void activityLoggedMethod2(long l ongArg); 281 [PerWorldBindings, ActivityLogging=Access] void activityLoggedMethod2(long l ongArg);
281 [PerWorldBindings, ActivityLogging=AccessForIsolatedWorlds] void activityLog gedInIsolatedWorldMethod(long longArg); 282 [PerWorldBindings, ActivityLogging=AccessForIsolatedWorlds] void activityLog gedInIsolatedWorldMethod(long longArg);
(...skipping 17 matching lines...) Expand all
299 300
300 [DeprecateAs=Method] void deprecatedMethod(); 301 [DeprecateAs=Method] void deprecatedMethod();
301 [DeprecateAs=StaticMethod] static void deprecatedStaticMethod(); 302 [DeprecateAs=StaticMethod] static void deprecatedStaticMethod();
302 303
303 [DeprecateAs=Constant] const unsigned short DEPRECATED_CONSTANT = 1; 304 [DeprecateAs=Constant] const unsigned short DEPRECATED_CONSTANT = 1;
304 }; 305 };
305 306
306 // The following comment should not generate any code 307 // The following comment should not generate any code
307 // TestObject implements TestImplements; 308 // TestObject implements TestImplements;
308 309
OLDNEW
« no previous file with comments | « Source/bindings/scripts/code_generator_v8.pm ('k') | Source/bindings/tests/results/V8TestObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698