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

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

Issue 340443004: IDL: reuse more code between CG for methods and constructors (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rename scriptContext -> executionContext Created 6 years, 6 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 17 matching lines...) Expand all
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 optional DOMString defaultNullStringOptionalstringArg = null, 36 optional DOMString defaultNullStringOptionalstringArg = null,
37 optional DOMString optionalStringArg), 37 optional DOMString optionalStringArg),
38 ConstructorCallWith=Document,
38 RaisesException=Constructor, 39 RaisesException=Constructor,
39 ] interface TestInterfaceNamedConstructor { 40 ] interface TestInterfaceNamedConstructor {
40 // An attribute of type {interface_name}ConstructorConstructor is generated 41 // An attribute of type {interface_name}ConstructorConstructor is generated
41 // in *Constructors.idl file, which is a partial interface for the global 42 // in *Constructors.idl file, which is a partial interface for the global
42 // object, e.g. Window. We put this here to avoid another test file. 43 // object, e.g. Window. We put this here to avoid another test file.
43 attribute TestNamedConstructorConstructor testNamedConstructorConstructorAtt ribute; 44 attribute TestNamedConstructorConstructor testNamedConstructorConstructorAtt ribute;
44 }; 45 };
OLDNEW
« no previous file with comments | « Source/bindings/tests/idls/TestInterfaceEventTarget.idl ('k') | Source/bindings/tests/results/V8TestInterface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698