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

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

Issue 52353003: IDL compiler: 3 more special types for methods (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Revised Created 7 years, 1 month 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) 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 attribute unsigned short unsignedShortAttribute; 54 attribute unsigned short unsignedShortAttribute;
55 // Special names (start with acronym) 55 // Special names (start with acronym)
56 attribute long cssAttribute; 56 attribute long cssAttribute;
57 attribute long imeAttribute; 57 attribute long imeAttribute;
58 attribute long svgAttribute; 58 attribute long svgAttribute;
59 attribute long xmlAttribute; 59 attribute long xmlAttribute;
60 // Non-wrapper types 60 // Non-wrapper types
61 attribute NodeFilter nodeFilterAttribute; 61 attribute NodeFilter nodeFilterAttribute;
62 attribute SerializedScriptValue serializedScriptValueAttribute; 62 attribute SerializedScriptValue serializedScriptValueAttribute;
63 attribute any anyAttribute; 63 attribute any anyAttribute;
64 // Special V8 -> C++ types (RefPtr exceptions, special conversion) 64 // Special type conversions
65 attribute DOMStringList domStringListAttribute; 65 attribute DOMStringList domStringListAttribute;
66 attribute Promise promiseAttribute;
66 // DOM Node types 67 // DOM Node types
67 attribute Document documentAttribute; 68 attribute Document documentAttribute;
68 attribute DocumentFragment documentFragmentAttribute; 69 attribute DocumentFragment documentFragmentAttribute;
69 attribute DocumentType documentTypeAttribute; 70 attribute DocumentType documentTypeAttribute;
70 attribute Element elementAttribute; 71 attribute Element elementAttribute;
71 attribute Entity entityAttribute; 72 attribute Entity entityAttribute;
72 attribute Node nodeAttribute; 73 attribute Node nodeAttribute;
73 attribute ShadowRoot shadowRootAttribute; 74 attribute ShadowRoot shadowRootAttribute;
74 // Typed arrays 75 // Typed arrays
75 attribute ArrayBuffer arrayBufferAttribute; 76 attribute ArrayBuffer arrayBufferAttribute;
(...skipping 14 matching lines...) Expand all
90 attribute DOMString? nullableStringAttribute; 91 attribute DOMString? nullableStringAttribute;
91 attribute long? nullableLongAttribute; 92 attribute long? nullableLongAttribute;
92 // Enumerations 93 // Enumerations
93 attribute TestEnum testEnumAttribute; 94 attribute TestEnum testEnumAttribute;
94 // Static attributes 95 // Static attributes
95 static attribute DOMString staticStringAttribute; 96 static attribute DOMString staticStringAttribute;
96 static attribute long staticLongAttribute; 97 static attribute long staticLongAttribute;
97 // Constructors 98 // Constructors
98 // attribute attribute TestSubObjConstructor TestSubObj; 99 // attribute attribute TestSubObjConstructor TestSubObj;
99 attribute TestObjectAConstructor testObjectAConstructorAttribute; 100 attribute TestObjectAConstructor testObjectAConstructorAttribute;
100 // Miscellaneous special types 101 // Special types
101 attribute EventHandler eventHandlerAttribute; 102 attribute EventHandler eventHandlerAttribute;
102 attribute Promise promiseAttribute;
103 103
104 // Extended attributes 104 // Extended attributes
105 [ActivityLogging=AccessForAllWorlds] attribute long activityLoggingAccessFor AllWorldsLongAttribute; 105 [ActivityLogging=AccessForAllWorlds] attribute long activityLoggingAccessFor AllWorldsLongAttribute;
106 [ActivityLogging=GetterForAllWorlds] attribute long activityLoggingGetterFor AllWorldsLongAttribute; 106 [ActivityLogging=GetterForAllWorlds] attribute long activityLoggingGetterFor AllWorldsLongAttribute;
107 [ActivityLogging=SetterForAllWorlds] attribute long activityLoggingSetterFor AllWorldsLongAttribute; 107 [ActivityLogging=SetterForAllWorlds] attribute long activityLoggingSetterFor AllWorldsLongAttribute;
108 [CachedAttribute=isValueDirty] attribute any cachedAttributeAnyAttribute; 108 [CachedAttribute=isValueDirty] attribute any cachedAttributeAnyAttribute;
109 [CallWith=ExecutionContext] attribute any callWithExecutionContextAnyAttribu te; 109 [CallWith=ExecutionContext] attribute any callWithExecutionContextAnyAttribu te;
110 [CheckSecurityForNode] readonly attribute Document checkSecurityForNodeReado nlyDocumentAttribute; // All uses are read only 110 [CheckSecurityForNode] readonly attribute Document checkSecurityForNodeReado nlyDocumentAttribute; // All uses are read only
111 [Conditional=Condition] attribute long conditionalLongAttribute; 111 [Conditional=Condition] attribute long conditionalLongAttribute;
112 [Conditional=Condition1&Condition2] attribute long conditionalAndLongAttribu te; 112 [Conditional=Condition1&Condition2] attribute long conditionalAndLongAttribu te;
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 void voidMethodLongLongArg(long long longLongArg); 200 void voidMethodLongLongArg(long long longLongArg);
201 void voidMethodOctetArg(octet octetArg); 201 void voidMethodOctetArg(octet octetArg);
202 void voidMethodShortArg(short shortArg); 202 void voidMethodShortArg(short shortArg);
203 void voidMethodUnsignedLongArg(unsigned long unsignedLongArg); 203 void voidMethodUnsignedLongArg(unsigned long unsignedLongArg);
204 void voidMethodUnsignedLongLongArg(unsigned long long unsignedLongLongArg); 204 void voidMethodUnsignedLongLongArg(unsigned long long unsignedLongLongArg);
205 void voidMethodUnsignedShortArg(unsigned short unsignedShortArg); 205 void voidMethodUnsignedShortArg(unsigned short unsignedShortArg);
206 // Interface types 206 // Interface types
207 TestInterfaceEmpty testInterfaceEmptyMethod(); 207 TestInterfaceEmpty testInterfaceEmptyMethod();
208 void voidMethodTestInterfaceEmptyArg(TestInterfaceEmpty testInterfaceEmptyAr g); 208 void voidMethodTestInterfaceEmptyArg(TestInterfaceEmpty testInterfaceEmptyAr g);
209 void voidMethodLongArgTestInterfaceEmptyArg(long longArg, TestInterfaceEmpty testInterfaceEmptyArg); 209 void voidMethodLongArgTestInterfaceEmptyArg(long longArg, TestInterfaceEmpty testInterfaceEmptyArg);
210 // Special type conversions
211 CompareHow compareHowMethod();
212 DOMStringList domStringListMethod();
213 MediaQueryListListener mediaQueryListListenerMethod();
214 any anyMethod();
215 void voidMethodMediaQueryListListenerArg(MediaQueryListListener mediaQueryLi stListenerArg);
216 void voidMethodCompareHowArg(CompareHow compareHowArg);
217 void voidMethodDOMStringListArg(DOMStringList domStringListArg);
218 void voidMethodAnyArg(any anyArg);
210 // DOM node types 219 // DOM node types
211 void voidMethodAttrArg(Attr attrArg); 220 void voidMethodAttrArg(Attr attrArg);
212 void voidMethodDocumentArg(Document documentArg); 221 void voidMethodDocumentArg(Document documentArg);
213 void voidMethodDocumentTypeArg(DocumentType documentTypeArg); 222 void voidMethodDocumentTypeArg(DocumentType documentTypeArg);
214 void voidMethodElementArg(Element elementArg); 223 void voidMethodElementArg(Element elementArg);
215 void voidMethodNodeArg(Node nodeArg); 224 void voidMethodNodeArg(Node nodeArg);
216 // Typed arrays 225 // Typed arrays
217 ArrayBuffer arrayBufferMethod(); 226 ArrayBuffer arrayBufferMethod();
218 ArrayBufferView arrayBufferViewMethod(); 227 ArrayBufferView arrayBufferViewMethod();
219 Float32Array float32ArrayMethod(); 228 Float32Array float32ArrayMethod();
(...skipping 14 matching lines...) Expand all
234 // Sequences 243 // Sequences
235 sequence<long> sequenceLongMethod(); 244 sequence<long> sequenceLongMethod();
236 sequence<DOMString> sequenceStringMethod(); 245 sequence<DOMString> sequenceStringMethod();
237 sequence<TestInterfaceEmpty> sequenceTestInterfaceEmptyMethod(); 246 sequence<TestInterfaceEmpty> sequenceTestInterfaceEmptyMethod();
238 void voidMethodSequenceLongArg(sequence<long> sequenceLongArg); 247 void voidMethodSequenceLongArg(sequence<long> sequenceLongArg);
239 void voidMethodSequenceStringArg(sequence<DOMString> sequenceStringArg); 248 void voidMethodSequenceStringArg(sequence<DOMString> sequenceStringArg);
240 void voidMethodSequenceTestInterfaceEmptyArg(sequence<TestInterfaceEmpty> se quenceTestInterfaceEmptyArg); 249 void voidMethodSequenceTestInterfaceEmptyArg(sequence<TestInterfaceEmpty> se quenceTestInterfaceEmptyArg);
241 // Enumerations 250 // Enumerations
242 TestEnum testEnumMethod(); 251 TestEnum testEnumMethod();
243 void voidMethodTestEnumArg(TestEnum testEnumTypeArg); 252 void voidMethodTestEnumArg(TestEnum testEnumTypeArg);
244 // Miscellaneous special types 253 // Special types
245 DOMStringList domStringListMethod(); 254 Dictionary dictionaryMethod();
246 NodeFilter nodeFilterMethod(); 255 NodeFilter nodeFilterMethod();
247 SerializedScriptValue serializedScriptValueMethod(); 256 SerializedScriptValue serializedScriptValueMethod();
248 XPathNSResolver xPathNSResolverMethod(); 257 XPathNSResolver xPathNSResolverMethod();
249 void voidMethodDOMStringListArg(DOMStringList domStringListArg); 258 void voidMethodDictionaryArg(Dictionary dictionaryArg);
250 void voidMethodNodeFilterArg(NodeFilter nodeFilterArg); 259 void voidMethodNodeFilterArg(NodeFilter nodeFilterArg);
251 void voidMethodSerializedScriptValueArg(SerializedScriptValue serializedScri ptValueArg); 260 void voidMethodSerializedScriptValueArg(SerializedScriptValue serializedScri ptValueArg);
252 void voidMethodXPathNSResolverArg(XPathNSResolver xPathNSResolverArg); 261 void voidMethodXPathNSResolverArg(XPathNSResolver xPathNSResolverArg);
253 262
254 // Arguments 263 // Arguments
255 void voidMethodStringArgLongArg(DOMString stringArg, long longArg); 264 void voidMethodStringArgLongArg(DOMString stringArg, long longArg);
256 // Optional arguments 265 // Optional arguments
257 void voidMethodOptionalStringArg(optional DOMString stringArg); 266 void voidMethodOptionalStringArg(optional DOMString stringArg);
258 void voidMethodOptionalTestInterfaceEmptyArg(optional TestInterfaceEmpty str ingArg); 267 void voidMethodOptionalTestInterfaceEmptyArg(optional TestInterfaceEmpty str ingArg);
259 void voidMethodOptionalLongArg(optional long optionalLongArg); 268 void voidMethodOptionalLongArg(optional long optionalLongArg);
260 DOMString stringMethodOptionalLongArg(optional long optionalLongArg); 269 DOMString stringMethodOptionalLongArg(optional long optionalLongArg);
261 TestInterfaceEmpty testInterfaceEmptyMethodOptionalLongArg(optional long opt ionalLongArg); 270 TestInterfaceEmpty testInterfaceEmptyMethodOptionalLongArg(optional long opt ionalLongArg);
262 long longMethodOptionalLongArg(optional long optionalLongArg); 271 long longMethodOptionalLongArg(optional long optionalLongArg);
263 272
264 void voidMethodLongArgOptionalLongArg(long longArg, optional long optionalLo ngArg); 273 void voidMethodLongArgOptionalLongArg(long longArg, optional long optionalLo ngArg);
265 void voidMethodLongArgOptionalLongArgOptionalLongArg(long longArg, optional long optionalLongArg1, optional long optionalLongArg2); 274 void voidMethodLongArgOptionalLongArgOptionalLongArg(long longArg, optional long optionalLongArg1, optional long optionalLongArg2);
266 void voidMethodLongArgOptionalTestInterfaceEmptyArg(long longArg, optional T estInterfaceEmpty optionalTestInterfaceEmpty); 275 void voidMethodLongArgOptionalTestInterfaceEmptyArg(long longArg, optional T estInterfaceEmpty optionalTestInterfaceEmpty);
267 void voidMethodTestInterfaceEmptyArgOptionalLongArg(TestInterfaceEmpty optio nalTestInterfaceEmpty, optional long longArg); 276 void voidMethodTestInterfaceEmptyArgOptionalLongArg(TestInterfaceEmpty optio nalTestInterfaceEmpty, optional long longArg);
268 // Variadic operations 277 // Variadic operations
269 void voidMethodVariadicStringArg(DOMString... variadicStringArgs); 278 void voidMethodVariadicStringArg(DOMString... variadicStringArgs);
270 void voidMethodStringArgVariadicStringArg(DOMString stringArg, DOMString... variadicStringArgs); 279 void voidMethodStringArgVariadicStringArg(DOMString stringArg, DOMString... variadicStringArgs);
271 void voidMethodVariadicTestInterfaceEmptyArg(TestInterfaceEmpty... variadicT estInterfaceEmptyArgs); 280 void voidMethodVariadicTestInterfaceEmptyArg(TestInterfaceEmpty... variadicT estInterfaceEmptyArgs);
272 void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg(TestInterf aceEmpty testInterfaceEmptyArg, TestInterfaceEmpty... variadicTestInterfaceEmpty Args); 281 void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg(TestInterf aceEmpty testInterfaceEmptyArg, TestInterfaceEmpty... variadicTestInterfaceEmpty Args);
273 }; 282 };
OLDNEW
« no previous file with comments | « Source/bindings/templates/methods.cpp ('k') | Source/bindings/tests/results/V8TestObjectPython.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698