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

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

Issue 137773002: Cleanup IDL test files (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix SVG Created 6 years, 11 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
« no previous file with comments | « Source/bindings/tests/idls/TestSVG.idl ('k') | Source/bindings/tests/results/V8TestObject.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 13 matching lines...) Expand all
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 // This IDL file is for testing the bindings code generator and for tracking 31 // This IDL file is for testing the bindings code generator and for tracking
32 // changes in its ouput. 32 // changes in its ouput.
33 33
34 typedef float DOUBLE;
35 typedef unsigned long long ULONGLONG;
36 typedef SerializedScriptValue SCRIPT_VALUE;
37 typedef long[] ARRAY_OF_LONGS;
38 typedef DOMString STRING;
39 typedef DOMString[] ARRAY_OF_STRINGS;
40 typedef TestCallbackInterface TEST_CALLBACK_INTERFACE;
41 typedef TestSubObjConstructor T;
42 typedef Array ARRAY;
43 typedef DOMException E;
44
34 [ 45 [
35 Constructor(STRING hello, TEST_CALLBACK_INTERFACE testCallbackInterface) 46 Constructor(STRING hello),
36 ] interface TestTypedefs { 47 ] interface TestTypedefs {
37 attribute ULONGLONG unsignedLongLongAttr; 48 attribute ULONGLONG unsignedLongLongAttr;
38 49
39 [Immutable] attribute SCRIPT_VALUE immutableSerializedScriptValue; 50 [Immutable] attribute SCRIPT_VALUE immutableSerializedScriptValue;
40 51
41 static readonly attribute T TestSubObj; 52 static readonly attribute T TestSubObj;
42 53
43 [StrictTypeChecking] void func(optional ARRAY_OF_LONGS x); 54 [StrictTypeChecking] void func(optional ARRAY_OF_LONGS x);
44 55
45 void setShadow(DOUBLE width, DOUBLE height, float blur, [StrictTypeChecking] optional STRING color, optional DOUBLE alpha); 56 void setShadow(DOUBLE width, DOUBLE height, float blur, [StrictTypeChecking] optional STRING color, optional DOUBLE alpha);
57 void voidMethodTestCallbackInterfaceArgument(TEST_CALLBACK_INTERFACE testCal lbackInterface);
46 58
47 ULONGLONG methodWithSequenceArg(sequence<SCRIPT_VALUE> sequenceArg); 59 ULONGLONG methodWithSequenceArg(sequence<SCRIPT_VALUE> sequenceArg);
48 60
49 void nullableArrayArg(ARRAY_OF_STRINGS? arrayArg);
50
51 [Immutable] SVGPOINT immutablePointFunction();
52
53 [RaisesException] ARRAY_OF_STRINGS stringArrayFunction(ARRAY_OF_STRINGS valu es); 61 [RaisesException] ARRAY_OF_STRINGS stringArrayFunction(ARRAY_OF_STRINGS valu es);
54 [RaisesException] STRING[] stringArrayFunction2(STRING[] values); 62 [RaisesException] STRING[] stringArrayFunction2(STRING[] values);
55 63
56 // Exceptions 64 // Exceptions
57 [RaisesException] void methodWithException(); 65 [RaisesException] void methodWithException();
58 [RaisesException=Getter] attribute long attrWithGetterException; 66 [RaisesException=Getter] attribute long attrWithGetterException;
59 [RaisesException=Setter] attribute long attrWithSetterException; 67 [RaisesException=Setter] attribute long attrWithSetterException;
60 [RaisesException=Getter] attribute DOMString stringAttrWithGetterException; 68 [RaisesException=Getter] attribute DOMString stringAttrWithGetterException;
61 [RaisesException=Setter] attribute DOMString stringAttrWithSetterException; 69 [RaisesException=Setter] attribute DOMString stringAttrWithSetterException;
62 }; 70 };
63
64 typedef float DOUBLE;
65 typedef unsigned long long ULONGLONG;
66 typedef SerializedScriptValue SCRIPT_VALUE;
67 typedef long[] ARRAY_OF_LONGS;
68 typedef SVGPoint SVGPOINT;
69 typedef DOMString STRING;
70 typedef DOMString[] ARRAY_OF_STRINGS;
71 typedef TestCallbackInterface TEST_CALLBACK_INTERFACE;
72 typedef TestSubObjConstructor T;
73 typedef Array ARRAY;
74 typedef DOMException E;
OLDNEW
« no previous file with comments | « Source/bindings/tests/idls/TestSVG.idl ('k') | Source/bindings/tests/results/V8TestObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698