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

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

Issue 213543004: Consolidate IDL test cases (15%: 34 => 29) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Reupload Created 6 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) 2013 Google Inc. All rights reserved.
3 * Copyright (C) 2010 Apple Inc. All rights reserved.
4 * 3 *
5 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions are
7 * are met: 6 * met:
8 * 7 *
9 * 1. Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce the above copyright 10 * * Redistributions in binary form must reproduce the above
12 * notice, this list of conditions and the following disclaimer in the 11 * copyright notice, this list of conditions and the following disclaimer
13 * documentation and/or other materials provided with the distribution. 12 * in the documentation and/or other materials provided with the
14 * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of 13 * distribution.
15 * its contributors may be used to endorse or promote products derived 14 * * Neither the name of Google Inc. nor the names of its
16 * from this software without specific prior written permission. 15 * contributors may be used to endorse or promote products derived from
16 * this software without specific prior written permission.
17 * 17 *
18 * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY 18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY 21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 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 */ 29 */
29 30
30 // This IDL file is for testing the bindings code generator and for tracking 31 enum TestEnum {"", "EnumValue1", "EnumValue2", "EnumValue3"};
31 // changes in its ouput. 32
32 33 callback VoidCallbackFunction = void ();
33 enum TestEnumType { "", "EnumValue1", "EnumValue2", "EnumValue3" }; 34 callback AnyCallbackFunctionOptionalAnyArg = any (optional any optionalAnyArg);
34
35 callback TestCallbackFunction = void (TestEnumType formal1, TestObject formal2);
36 35
37 // No extended attributes on the interface; those go in TestInterface.idl 36 // No extended attributes on the interface; those go in TestInterface.idl
38 interface TestObject : EventTarget { 37 interface TestObject {
38 // Constants
39 const unsigned short CONST_VALUE_0 = 0;
40 const unsigned short CONST_VALUE_1 = 1;
41 const unsigned short CONST_VALUE_2 = 2;
42 const unsigned short CONST_VALUE_4 = 4;
43 const unsigned short CONST_VALUE_8 = 8;
44 const short CONST_VALUE_9 = -1;
45 const DOMString CONST_VALUE_10 = "my constant string";
46 const unsigned short CONST_VALUE_11 = 0xffffffff;
47 const unsigned short CONST_VALUE_12 = 0x01;
48 const unsigned short CONST_VALUE_13 = 0X20;
49 const unsigned short CONST_VALUE_14 = 0x1abc;
50 const unsigned short CONST_VALUE_15 = 010;
51 const unsigned short CONST_VALUE_16 = -010;
52 const unsigned short CONST_VALUE_16 = -0x1A;
53 const unsigned short CONST_VALUE_17 = -0X1a;
54
55 // Extended attributes
56 [DeprecateAs=Constant] const short DEPRECATED_CONSTANT = 1;
57 [RuntimeEnabled=FeatureName] const short FEATURE_ENABLED_CONST = 1;
58 [Reflect=CONST_IMPL] const short CONST_JAVASCRIPT = 1;
59
60
39 // Attributes 61 // Attributes
40 readonly attribute long readOnlyLongAttr; 62 //
41 readonly attribute DOMString readOnlyStringAttr; 63 // Naming convention:
42 readonly attribute TestObject readOnlyTestObjectAttr; 64 // [ExtAttr] attribute Type extAttrTypeNameAttribute;
43 static readonly attribute long staticReadOnlyLongAttr; 65 // E.g.,
44 static attribute DOMString staticStringAttr; 66 // [Foo] attribute DOMString? fooStringOrNullAttribute
45 attribute TestSubObjConstructor TestSubObj; 67 //
46 attribute TestEnumType enumAttr; 68 // Type name reference:
47 readonly attribute TestEnumType readOnlyEnumAttr; 69 // http://heycam.github.io/webidl/#dfn-type-name
48 attribute byte byteAttr; 70 //
49 attribute octet octetAttr; 71 // TestInterfaceEmpty is used as a stub interface type, for testing behavior
50 attribute short shortAttr; 72 // that should not depend on particular type (beyond "interface or not").
51 attribute unsigned short unsignedShortAttr; 73 // read only
52 attribute long longAttr; 74 readonly attribute DOMString readonlyStringAttribute;
53 attribute long long longLongAttr; 75 readonly attribute TestInterfaceEmpty readonlyTestInterfaceEmptyAttribute;
54 attribute unsigned long long unsignedLongLongAttr; 76 readonly attribute long readonlyLongAttribute;
55 attribute DOMString stringAttr; 77 // Basic types
56 [TreatNullAs=NullString] attribute DOMString treatNullAsNullStringStringAttr ; 78 attribute Date dateAttribute;
57 [TreatNullAs=NullString, TreatUndefinedAs=NullString] attribute DOMString tr eatNullAsNullStringTreatUndefinedAsNullStringStringAttr; 79 attribute DOMString stringAttribute;
58 attribute EventHandler eventHandlerAttr; 80 attribute DOMTimeStamp domTimeStampAttribute;
59 [MeasureAs=TestFeature] attribute TestObject testObjAttr; 81 attribute boolean booleanAttribute;
60 [ExposeJSAccessors] attribute DOMString attrWithJSGetterAndSetter; 82 attribute byte byteAttribute;
61 [MeasureAs=TestFeature] attribute TestSubObjConstructor TestSubObjMeasured; 83 attribute double doubleAttribute;
62 84 attribute float floatAttribute;
63 // Name starting with an acronym 85 attribute long longAttribute;
64 attribute TestObject XMLObjAttr; 86 attribute long long longLongAttribute;
65 87 attribute octet octetAttribute;
66 // Reflected DOM attributes 88 attribute short shortAttribute;
67 [Reflect] attribute DOMString reflectedStringAttr; 89 attribute unsigned long unsignedLongAttribute;
68 [Reflect, TreatNullAs=NullString] attribute DOMString reflectedTreatNullAsNu llStringStringAttr; 90 attribute unsigned long long unsignedLongLongAttribute;
69 [Reflect, TreatNullAs=NullString, TreatUndefinedAs=NullString] attribute DOM String reflectedTreatNullAsNullStringTreatUndefinedAsNullStringStringAttr; 91 attribute unsigned short unsignedShortAttribute;
70 [Reflect] attribute long reflectedIntegralAttr; 92 // Interface type
71 [Reflect] attribute unsigned long reflectedUnsignedIntegralAttr; 93 attribute TestInterfaceEmpty testInterfaceEmptyAttribute;
72 [Reflect] attribute boolean reflectedBooleanAttr; 94 // Self-reference
73 [Reflect, URL] attribute DOMString reflectedURLAttr; 95 attribute TestObject testObjectAttribute;
74 [Reflect, TreatNullAs=NullString, URL] attribute DOMString reflectedTreatNul lAsNullStringURLAttr; 96 // Callback function type
75 [Reflect, TreatNullAs=NullString, TreatUndefinedAs=NullString, URL] attribut e DOMString reflectedTreatNullAsNullStringTreatUndefinedAsNullStringURLAttr; 97 attribute VoidCallbackFunction voidCallbackFunctionAttribute;
76 [Reflect=customContentStringAttr] attribute DOMString reflectedCustomStringA ttr; 98 attribute AnyCallbackFunctionOptionalAnyArg anyCallbackFunctionOptionalAnyAr gAttribute;
77 [Reflect=customContentStringAttr, TreatNullAs=NullString] attribute DOMStrin g reflectedTreatNullAsNullStringCustomStringAttr; 99 // Names that begin with an acronym
78 [Reflect=customContentStringAttr, TreatNullAs=NullString, TreatUndefinedAs=N ullString] attribute DOMString reflectedTreatNullAsNullStringTreatUndefinedAsNul lStringCustomStringAttr; 100 attribute long cssAttribute;
79 [Reflect=customContentIntegralAttr] attribute long reflectedCustomIntegralAt tr; 101 attribute long imeAttribute;
80 [Reflect=customContentBooleanAttr] attribute boolean reflectedCustomBooleanA ttr; 102 attribute long svgAttribute;
81 [Reflect=customContentURLAttr, URL] attribute DOMString reflectedCustomURLAt tr; 103 attribute long xmlAttribute;
82 [Reflect=customContentURLAttr, TreatNullAs=NullString, URL] attribute DOMStr ing reflectedTreatNullAsNullStringCustomURLAttr; 104 // Non-wrapper types
83 [Reflect=customContentURLAttr, TreatNullAs=NullString, TreatUndefinedAs=Null String, URL] attribute DOMString reflectedTreatNullAsNullStringTreatUndefinedAsN ullStringCustomURLAttr; 105 attribute NodeFilter nodeFilterAttribute;
106 attribute SerializedScriptValue serializedScriptValueAttribute;
107 attribute any anyAttribute;
108 // Custom type conversions
109 attribute Promise promiseAttribute;
110 attribute Window windowAttribute;
111 // DOM Node types
112 attribute Document documentAttribute;
113 attribute DocumentFragment documentFragmentAttribute;
114 attribute DocumentType documentTypeAttribute;
115 attribute Element elementAttribute;
116 attribute Node nodeAttribute;
117 attribute ShadowRoot shadowRootAttribute;
118 // Typed arrays
119 attribute ArrayBuffer arrayBufferAttribute;
120 attribute Float32Array float32ArrayAttribute;
121 attribute Uint8Array uint8ArrayAttribute;
122 // Exceptions for is_keep_alive_for_gc
123 readonly attribute TestInterfaceEmpty self;
124 readonly attribute EventTarget readonlyEventTargetAttribute;
125 readonly attribute EventTarget? readonlyEventTargetOrNullAttribute;
126 readonly attribute Window readonlyWindowAttribute;
127 readonly attribute HTMLCollection htmlCollectionAttribute;
128 readonly attribute HTMLElement htmlElementAttribute;
129 // Arrays
130 attribute DOMString[] stringArrayAttribute;
131 attribute TestInterfaceEmpty[] testInterfaceEmptyArrayAttribute;
132 attribute float[] floatArrayAttribute;
133 // Nullable attributes
134 attribute DOMString? stringOrNullAttribute;
135 attribute long? longOrNullAttribute;
136 attribute TestInterface? testInterfaceOrNullAttribute;
137 // Enumerations
138 attribute TestEnum testEnumAttribute;
139 // Static attributes
140 static attribute DOMString staticStringAttribute;
141 static attribute long staticLongAttribute;
142 // Exceptional type
143 attribute EventHandler eventHandlerAttribute;
144
145 // Extended attributes
146 [ActivityLogging=ForAllWorlds] attribute long activityLoggingAccessForAllWor ldsLongAttribute;
147 [ActivityLogging=GetterForAllWorlds] attribute long activityLoggingGetterFor AllWorldsLongAttribute;
148 [ActivityLogging=SetterForAllWorlds] attribute long activityLoggingSetterFor AllWorldsLongAttribute;
149 [CachedAttribute=isValueDirty] attribute any cachedAttributeAnyAttribute;
150 [CallWith=ExecutionContext] attribute any callWithExecutionContextAnyAttribu te;
151 [CheckSecurity=Node] readonly attribute Document checkSecurityForNodeReadonl yDocumentAttribute; // All uses are read only
152 [Conditional=CONDITION] attribute long conditionalLongAttribute;
153 [Conditional=CONDITION_1&CONDITION_2] attribute long conditionalAndLongAttri bute;
154 [Conditional=CONDITION_1|CONDITION_2] attribute long conditionalOrLongAttrib ute;
155 // Constructors: FIXME: replace suffix with [ConstructorAttribute]
156 attribute TestInterfaceEmptyConstructor testInterfaceEmptyConstructorAttribu te;
157 [DeprecateAs=deprecatedTestInterfaceEmptyConstructorAttribute] attribute Tes tInterfaceEmptyConstructor testInterfaceEmptyConstructorAttribute;
158 [MeasureAs=FeatureName] attribute TestInterfaceEmptyConstructor measureAsFea tureNameTestInterfaceEmptyConstructorAttribute;
159 [Custom] attribute object customObjectAttribute;
160 [Custom=Getter] attribute long customGetterLongAttribute;
161 [Custom=Getter] readonly attribute object customGetterReadonlyObjectAttribut e;
162 [Custom=Setter] attribute long customSetterLongAttribute;
163 [Conditional=CONDITION, Custom] attribute long customLongAttribute;
164 [CustomElementCallbacks] readonly attribute long customElementsCallbacksRead onlyLongAttribute;
165 [DeprecateAs=LongAttribute] attribute long deprecatedLongAttribute;
166 [EnforceRange] attribute long enforceRangeLongAttribute;
167 [ExposeJSAccessors] attribute long exposeJSAccessorsLongAttribute;
168 [ImplementedAs=implementedAsName] attribute long implementedAsLongAttribute;
169 [Custom, ImplementedAs=implementedAsNameWithCustom] attribute long customImp lementedAsLongAttribute;
170 [Custom=Getter, ImplementedAs=implementedAsNameWithCustomGetter] attribute l ong customGetterImplementedAsLongAttribute;
171 [Custom=Setter, ImplementedAs=implementedAsNameWithCustomGetter] attribute l ong customSetterImplementedAsLongAttribute;
172 [MeasureAs=TestFeature] attribute long measureAsLongAttribute;
173 [NotEnumerable] attribute long notEnumerableLongAttribute;
174 [PerContextEnabled=FeatureName] attribute long perContextEnabledLongAttribut e;
175 [PerWorldBindings] attribute long perWorldBindingsLongAttribute;
176 [PerWorldBindings] readonly attribute long perWorldBindingsReadonlyLongAttri bute; // Separate read only attribute to check attribute configuration
177 [PerWorldBindings] readonly attribute TestInterfaceEmpty perWorldBindingsRea donlyTestInterfaceEmptyAttribute;
178 [ActivityLogging=ForAllWorlds, PerWorldBindings] attribute long activityLogg ingAccessPerWorldBindingsLongAttribute;
179 [ActivityLogging=ForIsolatedWorlds, PerWorldBindings] attribute long activit yLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute;
180 [ActivityLogging=GetterForAllWorlds, PerWorldBindings] attribute long activi tyLoggingGetterPerWorldBindingsLongAttribute;
181 [ActivityLogging=GetterForIsolatedWorlds, PerWorldBindings] attribute long a ctivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute;
182 [PutForwards=href] readonly attribute TestNode location;
183 [PutForwards=hrefThrows] readonly attribute TestNode locationWithException;
184 [PutForwards=hrefCallWith] readonly attribute TestNode locationWithCallWith;
185 [PerWorldBindings, PutForwards=href] readonly attribute TestNode locationWit hPerWorldBindings;
186 [PutForwards=attr1] readonly attribute TestInterfaceWillBeGarbageCollected l ocationWillBeGarbageCollected;
187 [RaisesException] attribute long raisesExceptionLongAttribute;
188 [RaisesException=Getter] attribute long raisesExceptionGetterLongAttribute;
189 [RaisesException=Setter] attribute long setterRaisesExceptionLongAttribute;
190 [RaisesException] attribute TestInterfaceEmpty raisesExceptionTestInterfaceE mptyAttribute;
191 [CachedAttribute=isValueDirty, RaisesException] attribute any cachedAttribut eRaisesExceptionGetterAnyAttribute;
192 [Reflect] attribute TestInterface reflectTestInterfaceAttribute;
193 [Reflect=reflectedNameAttribute] attribute TestInterface reflectReflectedNam eAttributeTestAttribute;
194 // [Reflect] exceptional types: exceptional getters, exceptional setters,
195 // or range checking for unsigned
196 [Reflect] attribute boolean reflectBooleanAttribute;
197 [Reflect] attribute long reflectLongAttribute;
198 [Reflect] attribute unsigned short reflectUnsignedShortAttribute;
199 [Reflect] attribute unsigned long reflectUnsignedLongAttribute;
200 // [Reflect] exceptional names
201 [Reflect] attribute DOMString id;
202 [Reflect] attribute DOMString name;
203 [Reflect] attribute DOMString class;
204 [Reflect=id] attribute DOMString reflectedId;
205 [Reflect=name] attribute DOMString reflectedName;
206 [Reflect=class] attribute DOMString reflectedClass;
207 // Limited value attributes and enumerated attributes
84 [Reflect, ReflectOnly="unique"] attribute DOMString limitedToOnlyOneAttribut e; 208 [Reflect, ReflectOnly="unique"] attribute DOMString limitedToOnlyOneAttribut e;
85 [Reflect, ReflectOnly="Per"|"Paal"|"Espen"] attribute DOMString limitedToOnl yAttribute; 209 [Reflect, ReflectOnly="Per"|"Paal"|"Espen"] attribute DOMString limitedToOnl yAttribute;
86 [Reflect=Other, ReflectOnly="Value1"|"Value2" ] attribute DOMString limitedT oOnlyOtherAttribute; 210 [Reflect=other, ReflectOnly="Value1"|"Value2" ] attribute DOMString limitedT oOnlyOtherAttribute;
87 [Reflect, ReflectOnly="rsa" | "dsa", ReflectMissing="rsa"] attribute DOMStri ng limitedWithMissingDefaultAttribute; 211 [Reflect, ReflectOnly="rsa"|"dsa", ReflectMissing="rsa"] attribute DOMString limitedWithMissingDefaultAttribute;
88 [Reflect, ReflectOnly="ltr" | "rtl" | "auto", ReflectMissing="auto", Reflect Invalid="ltr"] attribute DOMString limitedWithInvalidMissingDefaultAttribute; 212 [Reflect, ReflectOnly="ltr"|"rtl"|"auto", ReflectMissing="auto", ReflectInva lid="ltr"] attribute DOMString limitedWithInvalidMissingDefaultAttribute;
89 [Reflect, ReflectOnly="left" | "right", ReflectMissing="left", ReflectInvali d="left"] attribute DOMString limitedWithInvalidAndMissingDefaultAttribute;
90 [Reflect, ReflectOnly="anonymous"|"use-credentials", ReflectEmpty="anonymous ", ReflectInvalid="anonymous"] readonly attribute DOMString corsSettingAttribute ; 213 [Reflect, ReflectOnly="anonymous"|"use-credentials", ReflectEmpty="anonymous ", ReflectInvalid="anonymous"] readonly attribute DOMString corsSettingAttribute ;
91 [Reflect, ReflectOnly="empty"|"missing"|"invalid"|"a-normal", ReflectEmpty=" empty", ReflectMissing="missing", ReflectInvalid="invalid"] readonly attribute D OMString limitedWithEmptyMissingInvalidAttribute; 214 [Reflect, ReflectOnly="empty"|"missing"|"invalid"|"a-normal", ReflectEmpty=" empty", ReflectMissing="missing", ReflectInvalid="invalid"] readonly attribute D OMString limitedWithEmptyMissingInvalidAttribute;
92 215
93 // TypedArray attribute 216 [Replaceable] readonly attribute long replaceableReadonlyLongAttribute;
94 attribute Float32Array typedArrayAttr; 217 [Replaceable, PutForwards=href] readonly attribute TestNode locationReplacea ble;
218 [RuntimeEnabled=FeatureName] attribute long runtimeEnabledLongAttribute;
219 [PerContextEnabled=FeatureName, RuntimeEnabled=FeatureName] attribute long p erContextEnabledRuntimeEnabledLongAttribute;
220 [Conditional=CONDITION, RuntimeEnabled=FeatureName] attribute long condition alRuntimeEnabledLongAttribute;
221 [SetterCallWith=ActiveWindow&FirstWindow] attribute DOMString setterCallWith ActiveWindowAndFirstWindowStringAttribute;
222 [SetterCallWith=ExecutionContext] attribute DOMString setterCallWithExecutio nContextStringAttribute;
223 [StrictTypeChecking] attribute float strictTypeCheckingFloatAttribute; // no p for non-interface types
224 [StrictTypeChecking] attribute TestInterface strictTypeCheckingTestInterface Attribute;
225 [TreatNullAs=NullString] attribute DOMString treatNullAsNullStringStringAttr ibute;
226 [TreatReturnedNullStringAs=Null] attribute DOMString treatReturnedNullString AsNullStringAttribute;
227 [TreatReturnedNullStringAs=Undefined] attribute DOMString treatReturnedNullS tringAsUndefinedStringAttribute;
228 [Reflect, URL] attribute DOMString urlStringAttribute;
229 [Reflect=reflectUrlAttribute, URL] attribute DOMString urlStringAttribute;
230 [Unforgeable] attribute long unforgeableLongAttribute;
231
95 232
96 // Methods 233 // Methods
97 void voidMethod(); 234 //
98 void voidMethodWithArgs(long longArg, DOMString strArg, TestObject objArg ); 235 // Naming convention:
99 long longMethod(); 236 // ReturnType returnTypeMethodTypeName1ArgTypeName2Arg(Type1 typeName1Arg, T ype2 typeName2Arg);
100 long longMethodWithArgs(long longArg, DOMString strArg, TestObject objArg ); 237 // E.g.,
101 [MeasureAs=TestFeature] TestObject objMethod(); 238 // void voidMethodStringArgLongArrayArg(DOMString stringArg, long[] longArra yArg);
102 TestObject objMethodWithArgs(long longArg, DOMString strArg, TestObject objA rg); 239 void voidMethod();
103 240 static void staticVoidMethod();
104 void methodWithSequenceArg(sequence<TestInterface> sequenceArg); 241
105 sequence<TestInterface> methodReturningSequence(long longArg); 242 // Types
106 243 // Basic types
107 void methodWithEnumArg(TestEnumType enumArg); 244 Date dateMethod();
108 [RaisesException] TestObject methodThatRequiresAllArgsAndThrows(DOMString st rArg, TestObject objArg); 245 DOMString stringMethod();
109 246 DOMTimeStamp readonlyDOMTimeStampMethod();
110 void methodQueryListListener(MediaQueryListListener listener); 247 boolean booleanMethod();
111 void serializedValue(SerializedScriptValue serializedArg); 248 byte byteMethod();
112 void optionsObject(Dictionary oo, optional Dictionary ooo); 249 double doubleMethod();
113 void optionsObjectList(sequence<Dictionary> list); 250 float floatMethod();
114 251 long longMethod();
115 // Indexed/named properties 252 long long longLongMethod();
116 getter Node (unsigned long index); 253 octet octetMethod();
117 getter DOMString (DOMString name); 254 short shortMethod();
118 255 unsigned long unsignedLongMethod();
119 // Exceptions 256 unsigned long long unsignedLongLongMethod();
120 [RaisesException] void methodWithException(); 257 unsigned short unsignedShortMethod();
121 [RaisesException=Getter] attribute long attrWithGetterException; 258
122 [RaisesException=Setter] attribute long attrWithSetterException; 259 void voidMethodDateArg(Date dateArg);
123 [RaisesException=Getter] attribute DOMString stringAttrWithGetterException; 260 void voidMethodStringArg(DOMString stringArg);
124 [RaisesException=Setter] attribute DOMString stringAttrWithSetterException; 261 void voidMethodDOMTimeStampArg(DOMTimeStamp domTimeStampArg);
125 262 void voidMethodBooleanArg(boolean booleanArg);
126 // 'Custom' extended attribute 263 void voidMethodByteArg(byte byteArg);
127 [Custom] attribute long customAttr; 264 void voidMethodDoubleArg(double doubleArg);
128 [Custom, MeasureAs=CustomTestFeature] void customMethod(); 265 void voidMethodFloatArg(float floatArg);
129 [Custom] void customMethodWithArgs(long longArg, DOMString strArg, TestObjec t objArg); 266 void voidMethodLongArg(long longArg);
130 267 void voidMethodLongLongArg(long long longLongArg);
131 // 'CallWith' extended attribute 268 void voidMethodOctetArg(octet octetArg);
132 [CallWith=ScriptState] void withScriptStateVoid(); 269 void voidMethodShortArg(short shortArg);
133 [CallWith=ScriptState] TestObject withScriptStateObj(); 270 void voidMethodUnsignedLongArg(unsigned long unsignedLongArg);
134 [CallWith=ScriptState, RaisesException] void withScriptStateVoidException(); 271 void voidMethodUnsignedLongLongArg(unsigned long long unsignedLongLongArg);
135 [CallWith=ScriptState, RaisesException] TestObject withScriptStateObjExcepti on(); 272 void voidMethodUnsignedShortArg(unsigned short unsignedShortArg);
136 [CallWith=ExecutionContext] void withExecutionContext(); 273 // Interface types
137 [CallWith=ExecutionContext&ScriptState] void withExecutionContextAndScriptSt ate(); 274 TestInterfaceEmpty testInterfaceEmptyMethod();
138 [CallWith=ExecutionContext&ScriptState, RaisesException] TestObject withExec utionContextAndScriptStateObjException(); 275 void voidMethodTestInterfaceEmptyArg(TestInterfaceEmpty testInterfaceEmptyAr g);
139 [CallWith= ExecutionContext & ScriptState ] TestObject withExecutionCont extAndScriptStateWithSpaces(); 276 void voidMethodLongArgTestInterfaceEmptyArg(long longArg, TestInterfaceEmpty testInterfaceEmptyArg);
140 [CallWith=ActiveWindow&FirstWindow] void withActiveWindowAndFirstWindow(); 277 // Callback function type
141 278 VoidCallbackFunction voidCallbackFunctionMethod();
142 [CallWith=ExecutionContext] attribute TestObject withExecutionContextAttribu te; 279 AnyCallbackFunctionOptionalAnyArg anyCallbackFunctionOptionalAnyArgMethod();
143 [SetterCallWith=ActiveWindow&FirstWindow] attribute TestObject withActiveWin dowAndFirstWindowAttribute; 280 void voidMethodVoidCallbackFunctionArg(VoidCallbackFunction voidCallbackFunc tionArg);
144 [RaisesException=Getter] attribute TestObject withScriptStateAttributeRaises ; 281 void voidMethodAnyCallbackFunctionOptionalAnyArg(AnyCallbackFunctionOptional AnyArg anyCallbackFunctionOptionalAnyArgArg);
145 282 // Custom type conversions
146 // optional parameters 283 CompareHow compareHowMethod();
147 void methodWithOptionalArg(optional long opt); 284 any anyMethod();
148 void methodWithNonOptionalArgAndOptionalArg(long nonOpt, optional long op t); 285 void voidMethodCompareHowArg(CompareHow compareHowArg);
149 void methodWithNonOptionalArgAndTwoOptionalArgs(long nonOpt, optional lon g opt1, optional long opt2); 286 void voidMethodEventTargetArg(EventTarget eventTargetArg);
150 void methodWithOptionalString(optional DOMString str); 287 void voidMethodMediaQueryListListenerArg(MediaQueryListListener mediaQueryLi stListenerArg);
151 void methodWithOptionalStringIsUndefined([Default=Undefined] optional DOM String str); 288 void voidMethodAnyArg(any anyArg);
152 void methodWithOptionalStringIsNullString([Default=NullString] optional D OMString str); 289 // DOM node types
153 290 void voidMethodAttrArg(Attr attrArg);
154 // Callback interface parameters 291 void voidMethodDocumentArg(Document documentArg);
155 void methodWithCallbackInterfaceArg(TestCallbackInterface callbackInterfa ce); 292 void voidMethodDocumentTypeArg(DocumentType documentTypeArg);
156 void methodWithNonCallbackArgAndCallbackInterfaceArg(long nonCallback, Te stCallbackInterface callbackInterface); 293 void voidMethodElementArg(Element elementArg);
157 void methodWithCallbackInterfaceAndOptionalArg(optional TestCallbackInter face callbackInterface); 294 void voidMethodNodeArg(Node nodeArg);
158 void methodWithNullableCallbackInterfaceArg(TestCallbackInterface? callba ckInterface); 295 // Typed arrays
159 // static methods with callback interface parameter 296 ArrayBuffer arrayBufferMethod();
160 static void staticMethodWithCallbackAndOptionalArg(optional TestCallbackI nterface callbackInterface); 297 ArrayBufferView arrayBufferViewMethod();
161 static void staticMethodWithCallbackArg(TestCallbackInterface callbackInt erface); 298 Float32Array float32ArrayMethod();
162 299 Int32Array int32ArrayMethod();
163 // 'EnforceRange' extended attribute 300 Uint8Array uint8ArrayMethod();
164 void methodWithEnforceRangeInt8([EnforceRange] byte value); 301 void voidMethodArrayBufferArg(ArrayBuffer arrayBufferArg);
165 void methodWithEnforceRangeUInt8([EnforceRange] octet value); 302 void voidMethodArrayBufferOrNullArg(ArrayBuffer? arrayBufferArg);
166 void methodWithEnforceRangeInt16([EnforceRange] short value); 303 void voidMethodArrayBufferViewArg(ArrayBufferView arrayBufferViewArg);
167 void methodWithEnforceRangeUInt16([EnforceRange] unsigned short value); 304 void voidMethodFloat32ArrayArg(Float32Array float32ArrayArg);
168 void methodWithEnforceRangeInt32([EnforceRange] long value); 305 void voidMethodInt32ArrayArg(Int32Array int32ArrayArg);
169 void methodWithEnforceRangeUInt32([EnforceRange] unsigned long value); 306 void voidMethodUint8ArrayArg(Uint8Array uint8ArrayArg);
170 void methodWithEnforceRangeInt64([EnforceRange] long long value); 307 // Arrays
171 void methodWithEnforceRangeUInt64([EnforceRange] unsigned long long value ); 308 long[] longArrayMethod();
172 309 DOMString[] stringArrayMethod();
173 [EnforceRange] attribute byte enforcedRangeByteAttr; 310 TestInterfaceEmpty[] testInterfaceEmptyArrayMethod();
174 [EnforceRange] attribute octet enforcedRangeOctetAttr; 311 void voidMethodArrayLongArg(long[] arrayLongArg);
175 [EnforceRange] attribute short enforcedRangeShortAttr; 312 void voidMethodArrayStringArg(DOMString[] arrayStringArg);
176 [EnforceRange] attribute unsigned short enforcedRangeUnsignedShortAttr; 313 void voidMethodArrayTestInterfaceEmptyArg(TestInterfaceEmpty[] arrayTestInte rfaceEmptyArg);
177 [EnforceRange] attribute long enforcedRangeLongAttr; 314 // Sequences
178 [EnforceRange] attribute unsigned long enforcedRangeUnsignedLongAttr; 315 sequence<long> longSequenceMethod();
179 [EnforceRange] attribute long long enforcedRangeLongLongAttr; 316 sequence<DOMString> stringSequenceMethod();
180 [EnforceRange] attribute unsigned long long enforcedRangeUnsignedLongLongAtt r; 317 sequence<TestInterfaceEmpty> testInterfaceEmptySequenceMethod();
181 318 void voidMethodSequenceLongArg(sequence<long> longSequenceArg);
182 // 'Conditional' extended attribute 319 void voidMethodSequenceStringArg(sequence<DOMString> stringSequenceArg);
183 [Conditional=Condition1] attribute long conditionalAttr1; 320 void voidMethodSequenceTestInterfaceEmptyArg(sequence<TestInterfaceEmpty> te stInterfaceEmptySequenceArg);
184 [Conditional=Condition1&Condition2] attribute long conditionalAttr2; 321 // Nullable types
185 [Conditional=Condition1|Condition2|Condition3] attribute long conditionalAtt r3; 322 // Currently only used on interface type arguments
186 323 void voidMethodTestInterfaceEmptyOrNullArg(TestInterfaceEmpty? nullableTestI nterfaceEmptyArg);
187 // 'Conditional' extended method 324 // Callback interface types
188 [Conditional=Condition1] DOMString conditionalMethod1(); 325 void voidMethodTestCallbackInterfaceArg(TestCallbackInterface testCallbackIn terfaceArg);
189 [Conditional=Condition1&Condition2] void conditionalMethod2(); 326 void voidMethodOptionalTestCallbackInterfaceArg(optional TestCallbackInterfa ce optionalTestCallbackInterfaceArg);
190 [Conditional=Condition1|Condition2] void conditionalMethod3(); 327 void voidMethodTestCallbackInterfaceOrNullArg(TestCallbackInterface? testCal lbackInterfaceArg);
191 328 // Enumerations
192 [Conditional=Condition1] attribute TestObjectectAConstructor conditionalAttr 4; 329 TestEnum testEnumMethod();
193 [Conditional=Condition1&Condition2] attribute TestObjectectBConstructor cond itionalAttr5; 330 void voidMethodTestEnumArg(TestEnum testEnumTypeArg);
194 [Conditional=Condition1|Condition2] attribute TestObjectectCConstructor cond itionalAttr6; 331 // Exceptional types
195 332 Dictionary dictionaryMethod();
196 readonly attribute any cachedAttribute1; 333 NodeFilter nodeFilterMethod();
197 readonly attribute any cachedAttribute2; 334 Promise promiseMethod();
198 [CachedAttribute=isValueDirty] readonly attribute any cachedDirtyableAttribu te; 335 SerializedScriptValue serializedScriptValueMethod();
199 [RaisesException=Getter, CachedAttribute=isValueDirty] readonly attribute an y cachedDirtyableAttributeRaises; 336 XPathNSResolver xPathNSResolverMethod();
200 337 void voidMethodDictionaryArg(Dictionary dictionaryArg);
201 attribute any anyAttribute; 338 void voidMethodEventListenerArg(EventListener eventListenerArg);
202 339 void voidMethodNodeFilterArg(NodeFilter nodeFilterArg);
203 attribute TestCallbackFunction callbackFunctionAttribute; 340 void voidMethodPromiseArg(Promise promiseArg);
204 TestCallbackFunction callbackFunctionReturnValue(); 341 void voidMethodSerializedScriptValueArg(SerializedScriptValue serializedScri ptValueArg);
205 void callbackFunctionArgument(TestCallbackFunction function); 342 void voidMethodXPathNSResolverArg(XPathNSResolver xPathNSResolverArg);
206 343 void voidMethodDictionarySequenceArg(sequence<Dictionary> dictionarySequence Arg);
207 // Overloads 344
208 void overloadedMethod(long longArg); 345 // Arguments
209 void overloadedMethod(TestCallbackInterface callbackInterfaceArg); 346 void voidMethodStringArgLongArg(DOMString stringArg, long longArg);
210 void overloadedMethod(TestObject objArg); 347 // Optional arguments
211 void overloadedMethod(DOMString[] arrayArg); 348 void voidMethodOptionalStringArg(optional DOMString optionalStringArg);
212 void overloadedMethod(sequence<unsigned long> sequenceArg); 349 void voidMethodOptionalTestInterfaceEmptyArg(optional TestInterfaceEmpty opt ionalTestInterfaceEmptyArg);
213 void overloadedMethodA(TestObject? objArg, optional long longArg); 350 void voidMethodOptionalLongArg(optional long optionalLongArg);
214 void overloadedMethodA(TestObject? objArg, DOMString strArg); 351 DOMString stringMethodOptionalLongArg(optional long optionalLongArg);
215 void overloadedMethodB(DOMString strArg); 352 TestInterfaceEmpty testInterfaceEmptyMethodOptionalLongArg(optional long opt ionalLongArg);
216 void overloadedMethodB([StrictTypeChecking] DOMString strArg); 353 long longMethodOptionalLongArg(optional long optionalLongArg);
217 void overloadedMethodC(Dictionary dictionaryArg); // Non-wrapper type 354 void voidMethodLongArgOptionalLongArg(long longArg, optional long optionalLo ngArg);
218 void overloadedMethodC(double doubleArg); 355 void voidMethodLongArgOptionalLongArgOptionalLongArg(long longArg, optional long optionalLongArg1, optional long optionalLongArg2);
219 356 void voidMethodLongArgOptionalTestInterfaceEmptyArg(long longArg, optional T estInterfaceEmpty optionalTestInterfaceEmpty);
220 // Class methods within JavaScript (like what's used for IDBKeyRange). 357 void voidMethodTestInterfaceEmptyArgOptionalLongArg(TestInterfaceEmpty optio nalTestInterfaceEmpty, optional long longArg);
221 static void classMethod(); 358 // Optional arguments: exceptional case
222 static long classMethodWithOptional(optional long arg); 359 void voidMethodOptionalDictionaryArg(optional Dictionary optionalDictionaryA rg);
223 [Custom] static void classMethod2(long arg); 360
224 361 // Variadic operations
225 void classMethodWithClamp([Clamp] unsigned short objArgsShort, [Clamp] unsig ned long objArgsLong); 362 void voidMethodVariadicStringArg(DOMString... variadicStringArgs);
226 363 void voidMethodStringArgVariadicStringArg(DOMString stringArg, DOMString... variadicStringArgs);
227 // [RuntimeEnabled] methods and attributes. 364 void voidMethodVariadicTestInterfaceEmptyArg(TestInterfaceEmpty... variadicT estInterfaceEmptyArgs);
228 [RuntimeEnabled=FeatureName] void enabledAtRuntimeMethod(long longArg); 365 void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg(TestInterf aceEmpty testInterfaceEmptyArg, TestInterfaceEmpty... variadicTestInterfaceEmpty Args);
229 [RuntimeEnabled=FeatureName] attribute long enabledAtRuntimeAttr; 366 // [WillBeGarbageCollected]
230 // [PerContextEnabled] methods and attributes. 367 void voidMethodVariadicTestInterfaceWillBeGarbageCollectedArg(TestInterfaceW illBeGarbageCollected... variadicTestInterfaceWillBeGarbageCollectedArg);
231 [PerContextEnabled=FeatureName] void enabledPerContextMethod(long longArg); 368
232 [PerContextEnabled=FeatureName] attribute long enabledPerContextAttr; 369 // Overloaded methods
233 370 void overloadedMethodA(long longArg);
234 attribute float[] floatArray; 371 void overloadedMethodA(long longArg1, long longArg2);
235 attribute double[] doubleArray; 372 void overloadedMethodB(long longArg);
236 attribute MessagePort[] messagePortArray; 373 void overloadedMethodB(long longArg1, optional long longArg2);
237 374 void overloadedMethodC(long longArg);
238 void methodWithUnsignedLongSequence(sequence<unsigned long> unsignedLongSequ ence); 375 void overloadedMethodC(long longArg, long... longArgs);
239 [RaisesException] DOMString[] stringArrayFunction(DOMString[] values); 376 void overloadedMethodD(long longArg);
240 [RaisesException] DOMStringList domStringListFunction(DOMStringList values); 377 void overloadedMethodD(TestInterfaceEmpty testInterfaceEmptyArg);
241 378 void overloadedMethodE(long longArg);
242 [CheckSecurity=Node] readonly attribute Document contentDocument; 379 void overloadedMethodE(long[] longArrayArg);
243 380 void overloadedMethodF(long longArg);
244 void convert1([TreatNullAs=NullString] TestNode value); 381 void overloadedMethodF(TestInterfaceEmpty? testInterfaceEmptyNullableArg);
245 void convert2([TreatNullAs=NullString, TreatUndefinedAs=NullString] TestNode value); 382 void overloadedMethodG();
246 383 void overloadedMethodG([StrictTypeChecking] DOMString strictTypeCheckingStri ngArg);
247 [ImplementedAs=banana] void orange(); 384 void overloadedMethodH();
248 [ImplementedAs=blueberry] attribute long strawberry; 385 void overloadedMethodH(TestCallbackInterface testCallbackInterfaceArg);
249 386 // FIXME: Should be in order double, Dictionary, but Blink implementation of
250 [StrictTypeChecking] attribute float strictFloat; 387 // overload resolution can't handle this. http://crbug.com/293561
251 [StrictTypeChecking, RaisesException] boolean strictFunction(DOMString str, float a, long b); 388 void overloadedMethodI(Dictionary dictionaryArg); // Non-wrapper type
252 389 void overloadedMethodI(double doubleArg);
253 [Replaceable] readonly attribute long replaceableAttribute; 390
254 391
255 void variadicStringMethod(DOMString head, DOMString... tail); 392 [PerWorldBindings] void overloadedPerWorldBindingsMethod();
256 void variadicDoubleMethod(double head, double... tail); 393 [PerWorldBindings] void overloadedPerWorldBindingsMethod(long longArg);
257 void variadicNodeMethod(Node head, Node... tail); 394
258 395 static void overloadedStaticMethod(long longArg);
259 // Nullable attributes. 396 static void overloadedStaticMethod(long longArg1, long longArg2);
260 readonly attribute double? nullableDoubleAttribute; 397
261 readonly attribute long? nullableLongAttribute; 398 // Extended attributes for arguments
262 readonly attribute boolean? nullableBooleanAttribute; 399 // [Clamp]
263 readonly attribute DOMString? nullableStringAttribute; 400 void voidMethodClampUnsignedShortArg([Clamp] unsigned short clampUnsignedSho rtArg);
264 attribute long? nullableLongSettableAttribute; 401 void voidMethodClampUnsignedLongArg([Clamp] unsigned long clampUnsignedLongA rg);
265 402 // [Default]
266 [PerWorldBindings] readonly attribute TestObject perWorldReadOnlyAttribute; 403 void voidMethodDefaultUndefinedTestInterfaceEmptyArg([Default=Undefined] opt ional TestInterfaceEmpty defaultUndefinedTestInterfaceEmptyArg);
267 [PerWorldBindings] attribute TestObject perWorldAttribute; 404 void voidMethodDefaultUndefinedLongArg([Default=Undefined] optional long def aultUndefinedLongArg);
268 [PerWorldBindings] void perWorldMethod(); 405 void voidMethodDefaultUndefinedStringArg([Default=Undefined] optional DOMStr ing defaultUndefinedStringArg);
269 [PerWorldBindings] void overloadedPerWorldMethod(long longArg); 406 void voidMethodDefaultNullStringStringArg([Default=NullString] optional DOMS tring defaultNullStringStringArg);
270 [PerWorldBindings] void overloadedPerWorldMethod(DOMString strArg, long long Arg); 407 // [EnforceRange]
271 408 void voidMethodEnforceRangeLongArg([EnforceRange] long enforceRangeLongArg);
272 [ActivityLogging=ForAllWorlds] void activityLoggedMethod1(long longArg); 409 // [TreatNullAs], [TreatUndefinedAs]
273 [PerWorldBindings, ActivityLogging=ForAllWorlds] void activityLoggedMethod2( long longArg); 410 void voidMethodTreatNullAsNullStringStringArg([TreatNullAs=NullString] DOMSt ring treatNullAsNullStringStringArg);
274 [PerWorldBindings, ActivityLogging=ForIsolatedWorlds] void activityLoggedInI solatedWorldMethod(long longArg); 411 void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg([Tre atNullAs=NullString, TreatUndefinedAs=NullString] DOMString treatNullAsNullStrin gStringArg);
275 [PerWorldBindings, ActivityLogging=ForAllWorlds] void overloadedActivityLogg edMethod(long longArg); 412
276 [PerWorldBindings, ActivityLogging=ForAllWorlds] void overloadedActivityLogg edMethod(DOMString strArg, long longArg); 413 // Extended attributes for methods
277 [ActivityLogging=ForAllWorlds] attribute long activityLoggedAttr1; 414 [ActivityLogging=ForAllWorlds] void activityLoggingAccessForAllWorldsMethod( );
278 [PerWorldBindings, ActivityLogging=ForAllWorlds] attribute long activityLogg edAttr2; 415 [CallWith=ScriptState] void callWithScriptStateVoidMethod();
279 [PerWorldBindings, ActivityLogging=ForIsolatedWorlds] attribute long activit yLoggedInIsolatedWorldsAttr; 416 [CallWith=ScriptState] long callWithScriptStateLongMethod();
280 [ActivityLogging=SetterForAllWorlds] attribute long activityLoggedAttrSetter 1; 417 [CallWith=ExecutionContext] void callWithExecutionContextVoidMethod();
281 [PerWorldBindings, ActivityLogging=SetterForAllWorlds] attribute long activi tyLoggedAttrSetter2; 418 [CallWith=ScriptState&ExecutionContext] void callWithScriptStateExecutionCon textVoidMethod();
282 [PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds] attribute long a ctivityLoggedInIsolatedWorldsAttrSetter; 419 [CallWith=ScriptState&ScriptArguments] void callWithScriptStateScriptArgumen tsVoidMethod();
283 [ActivityLogging=GetterForAllWorlds] attribute long activityLoggedAttrGetter 1; 420 [CallWith=ScriptState&ScriptArguments] void callWithScriptStateScriptArgumen tsVoidMethodOptionalBooleanArg(optional boolean optionalBooleanArg);
284 [PerWorldBindings, ActivityLogging=GetterForAllWorlds] attribute long activi tyLoggedAttrGetter2; 421 [CallWith=ActiveWindow] void callWithActiveWindow();
285 [PerWorldBindings, ActivityLogging=GetterForIsolatedWorlds] attribute long a ctivityLoggedInIsolatedWorldsAttrGetter; 422 [CallWith=ActiveWindow&FirstWindow] void callWithActiveWindowScriptWindow();
286 423 [CheckSecurity=Node] void checkSecurityForNodeVoidMethod();
287 // DeprecateAs 424 [Conditional=CONDITION] void conditionalConditionVoidMethod();
288 [DeprecateAs=StaticReadonlyAttribute] static readonly attribute long depreca tedStaticReadOnlyAttr; 425 [Conditional=CONDITION_1&CONDITION_2] void conditionalCondition1AndCondition 2VoidMethod();
289 [DeprecateAs=StaticAttribute] static attribute long deprecatedStaticAttr; 426 [Conditional=CONDITION] static void conditionalConditionStaticVoidMethod();
290 [DeprecateAs=ReadonlyAttribute] readonly attribute long deprecatedReadonlyAt tr; 427 [Custom] void customVoidMethod();
291 [DeprecateAs=Attribute] attribute long deprecatedAttr; 428 [Conditional=CONDITION, Custom] void conditionalConditionCustomVoidMethod();
292 429 [CustomElementCallbacks] void customElementCallbacksVoidMethod();
293 [DeprecateAs=Method] void deprecatedMethod(); 430 [DeprecateAs=voidMethod] void deprecatedVoidMethod();
294 [DeprecateAs=StaticMethod] static void deprecatedStaticMethod(); 431 [DoNotCheckSignature] void doNotCheckSignatureVoidMethod();
295 [DeprecateAs=ConstructorAttribute] attribute TestSubObjConstructor deprecate dConstructor; 432 [ImplementedAs=implementedAsMethodName] void implementedAsVoidMethod();
296 433 [MeasureAs=TestFeature] void measureAsVoidMethod();
297 [DeprecateAs=Constant] const unsigned short DEPRECATED_CONSTANT = 1; 434 [NotEnumerable] void notEnumerableVoidMethod();
298 435 [PerContextEnabled=FeatureName] void perContextEnabledVoidMethod();
299 // PutForwards 436 [PerWorldBindings] void perWorldBindingsVoidMethod();
300 [PutForwards=href] readonly attribute TestNode location; 437 [PerWorldBindings] void perWorldBindingsVoidMethodTestInterfaceEmptyArg(Test InterfaceEmpty testInterfaceEmptyArg);
301 [PutForwards=hrefThrows] readonly attribute TestNode locationWithException; 438 [ActivityLogging=ForAllWorlds, PerWorldBindings] void activityLoggingForAllW orldsPerWorldBindingsVoidMethod();
439 [ActivityLogging=ForIsolatedWorlds, PerWorldBindings] void activityLoggingFo rIsolatedWorldsPerWorldBindingsVoidMethod();
440 [RaisesException] void raisesExceptionVoidMethod();
441 [RaisesException] DOMString raisesExceptionStringMethod();
442 [RaisesException] void raisesExceptionVoidMethodOptionalLongArg(optional lon g optionalLongArg);
443 [RaisesException] void raisesExceptionVoidMethodTestCallbackInterfaceArg(Tes tCallbackInterface testCallbackInterfaceArg);
444 [RaisesException] void raisesExceptionVoidMethodOptionalTestCallbackInterfac eArg(optional TestCallbackInterface optionalTestCallbackInterfaceArg);
445 [RaisesException] TestInterfaceEmpty raisesExceptionTestInterfaceEmptyVoidMe thod();
446 [CallWith=ExecutionContext, RaisesException] void callWithExecutionContextRa isesExceptionVoidMethodLongArg(long longArg);
447 [ReadOnly] void readOnlyVoidMethod();
448 [NotEnumerable, ReadOnly] void notEnumerableReadOnlyVoidMethod();
449 [RuntimeEnabled=FeatureName] void runtimeEnabledVoidMethod();
450 [PerWorldBindings, RuntimeEnabled=FeatureName] void perWorldBindingsRuntimeE nabledVoidMethod();
451 [StrictTypeChecking] void strictTypeCheckingVoidMethodTestInterfaceEmptyArg( TestInterfaceEmpty testInterfaceEmptyArg);
452 [StrictTypeChecking] void strictTypeCheckingVoidMethodTestInterfaceEmptyOrNu llArg(TestInterfaceEmpty? testInterfaceEmptyArg);
453 [TreatReturnedNullStringAs=Null] DOMString treatReturnedNullStringAsNullStri ngMethod();
454 [TreatReturnedNullStringAs=Undefined] DOMString treatReturnedNullStringAsUnd efinedStringMethod();
455 [Unforgeable] void unforgeableVoidMethod();
456 // [WillBeGarbageCollected]
457 void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg(sequence<TestI nterfaceWillBeGarbageCollected> testInterfaceWillBeGarbageCollectedSequenceArg);
458 void voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(TestInterfaceWill BeGarbageCollected[] testInterfaceWillBeGarbageCollectedArrayArg);
459
460 // Extended attributes on referenced interfaces
461 // (not self; self-reference tests at interface themselves)
462 attribute TestInterface testInterfaceAttribute; // [ImplementedAs]
463 attribute TestInterfaceWillBeGarbageCollected testInterfaceWillBeGarbageColl ectedAttribute; // [WillBeGarbageCollected]
464 attribute TestInterfaceWillBeGarbageCollected? testInterfaceWillBeGarbageCol lectedOrNullAttribute; // [WillBeGarbageCollected]
302 }; 465 };
303
304 // The following comment should not generate any code
305 // TestObject implements TestImplements;
306
OLDNEW
« no previous file with comments | « Source/bindings/tests/idls/TestInterfacePython3.idl ('k') | Source/bindings/tests/idls/TestObjectPython.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698