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

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

Issue 229373006: Support optional, non-defaulted constructor arguments. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Formatting Created 6 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 15 matching lines...) Expand all
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */ 27 */
28 28
29 [ 29 [
30 ActiveDOMObject, 30 ActiveDOMObject,
31 NamedConstructor=Audio( 31 NamedConstructor=Audio(
32 DOMString stringArg, 32 DOMString stringArg,
33 [Default=Undefined] optional boolean defaultUndefinedOptionalBooleanArg, 33 [Default=Undefined] optional boolean defaultUndefinedOptionalBooleanArg,
34 [Default=Undefined] optional long defaultUndefinedOptionalLongArg, 34 [Default=Undefined] optional long defaultUndefinedOptionalLongArg,
35 [Default=Undefined] optional DOMString defaultUndefinedOptionalStringArg , 35 [Default=Undefined] optional DOMString defaultUndefinedOptionalStringArg ,
36 [Default=NullString] optional DOMString defaultNullStringOptionalstringA rg), 36 [Default=NullString] optional DOMString defaultNullStringOptionalstringA rg,
37 optional DOMString optionalStringArg),
37 RaisesException=Constructor, 38 RaisesException=Constructor,
38 ] interface TestInterfaceNamedConstructor { 39 ] interface TestInterfaceNamedConstructor {
39 // An attribute of type {interface_name}ConstructorConstructor is generated 40 // An attribute of type {interface_name}ConstructorConstructor is generated
40 // in *Constructors.idl file, which is a partial interface for the global 41 // in *Constructors.idl file, which is a partial interface for the global
41 // object, e.g. Window. We put this here to avoid another test file. 42 // object, e.g. Window. We put this here to avoid another test file.
42 attribute TestNamedConstructorConstructor testNamedConstructorConstructorAtt ribute; 43 attribute TestNamedConstructorConstructor testNamedConstructorConstructorAtt ribute;
43 }; 44 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698