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

Side by Side Diff: tools/dom/idl/dart/dart.idl

Issue 554853002: "Reverting 39948" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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 | « no previous file | tools/dom/new_scripts/code_generator_dart.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // This file introduces / supplements and forces Dart declarations. 1 // This file introduces / supplements and forces Dart declarations.
2 2
3 [DartSupplemental, 3 [Supplemental,
4 Constructor] 4 Constructor]
5 interface AudioContext { 5 interface AudioContext {
6 // TODO(ager): Auto-generate this custom method when the info about retaining 6 // TODO(ager): Auto-generate this custom method when the info about retaining
7 // typed arrays is in the IDL. 7 // typed arrays is in the IDL.
8 [Custom] void decodeAudioData(ArrayBuffer audioData, AudioBufferCallback succe ssCallback, AudioBufferCallback errorCallback); 8 [Custom] void decodeAudioData(ArrayBuffer audioData, AudioBufferCallback succe ssCallback, AudioBufferCallback errorCallback);
9 }; 9 };
10 10
11 [DartSupplemental] 11 [Supplemental]
12 interface WaveShaperNode { 12 interface WaveShaperNode {
13 // TODO(ager): Auto-generate this custom method when the info about retaining 13 // TODO(ager): Auto-generate this custom method when the info about retaining
14 // typed arrays is in the IDL. 14 // typed arrays is in the IDL.
15 [Custom=Setter] attribute Float32Array curve; 15 [Custom=Setter] attribute Float32Array curve;
16 }; 16 };
17 17
18 [DartSupplemental] 18 [Supplemental]
19 interface AudioParam { 19 interface AudioParam {
20 // TODO(ager): Auto-generate this custom method when the info about retaining 20 // TODO(ager): Auto-generate this custom method when the info about retaining
21 // typed arrays is in the IDL. 21 // typed arrays is in the IDL.
22 [Custom] void setValueCurveAtTime(Float32Array values, double time, double dur ation); 22 [Custom] void setValueCurveAtTime(Float32Array values, double time, double dur ation);
23 }; 23 };
24 24
25 [DartSupplemental] 25 [Supplemental]
26 interface Document { 26 interface Document {
27 [Suppressed] DOMObject getCSSCanvasContext(DOMString contextId, DOMString name , long width, long height);
28 CanvasRenderingContext getCSSCanvasContext(DOMString contextId, DOMString name , long width, long height);
27 [Custom] Element createElement(DOMString tagName); 29 [Custom] Element createElement(DOMString tagName);
28 [Custom] Element createElement(DOMString localName, DOMString typeExtension); 30 [Custom] Element createElement(DOMString localName, DOMString typeExtension);
29 [Custom] Element createElementNS(DOMString namespaceURI, DOMString qualifiedNa me); 31 [Custom] Element createElementNS(DOMString namespaceURI, DOMString qualifiedNa me);
30 [Custom] Element createElementNS(DOMString namespaceURI, DOMString qualifiedNa me, DOMString typeExtension); 32 [Custom] Element createElementNS(DOMString namespaceURI, DOMString qualifiedNa me, DOMString typeExtension);
31 }; 33 };
32 34
33 [DartSupplemental] 35 [Supplemental]
34 interface Node { 36 interface Node {
35 [Custom] Node cloneNode([Default=Undefined] optional boolean deep); 37 [Custom] Node cloneNode([Default=Undefined] optional boolean deep);
36 [DartSuppress] readonly attribute Element nextElementSibling; 38 [Suppressed] readonly attribute Element nextElementSibling;
37 [DartSuppress] readonly attribute Element previousElementSibling; 39 [Suppressed] readonly attribute Element previousElementSibling;
38 }; 40 };
39 41
40 [DartSupplemental] 42 [Supplemental]
41 interface ScriptProcessorNode { 43 interface ScriptProcessorNode {
42 [DartSuppress] attribute EventListener onaudioprocess; 44 [Suppressed] attribute EventListener onaudioprocess;
43 [Custom] void _setEventListener(EventListener eventListener); 45 [Custom] void _setEventListener(EventListener eventListener);
44 }; 46 };
45 47
46 /* 48 /*
47 // TODO(vsm): How should this interact with the new ChildNode and 49 // TODO(vsm): How should this interact with the new ChildNode and
48 // ParentNode interfaces? 50 // ParentNode interfaces?
49 // Force ElementTraversal. WebKit defines these directly. 51 // Force ElementTraversal. WebKit defines these directly.
50 interface ElementTraversal : ChildNode, ParentNode { 52 interface ElementTraversal : ChildNode, ParentNode {
51 readonly attribute unsigned long childElementCount; 53 readonly attribute unsigned long childElementCount;
52 readonly attribute Element firstElementChild; 54 readonly attribute Element firstElementChild;
53 readonly attribute Element lastElementChild; 55 readonly attribute Element lastElementChild;
54 readonly attribute Element nextElementSibling; 56 readonly attribute Element nextElementSibling;
55 readonly attribute Element previousElementSibling; 57 readonly attribute Element previousElementSibling;
56 }; 58 };
57 Element implements ElementTraversal; 59 Element implements ElementTraversal;
58 */ 60 */
59 61
60 [DartSupplemental] 62 [Supplemental]
61 interface Element { 63 interface Element {
62 readonly attribute Element nextElementSibling; 64 readonly attribute Element nextElementSibling;
63 readonly attribute Element previousElementSibling; 65 readonly attribute Element previousElementSibling;
64 }; 66 };
65 67
66 [DartSupplemental] 68 [Supplemental]
67 interface CharacterData { 69 interface CharacterData {
68 readonly attribute Element nextElementSibling; 70 readonly attribute Element nextElementSibling;
69 readonly attribute Element previousElementSibling; 71 readonly attribute Element previousElementSibling;
70 }; 72 };
71 73
72 [DartCallback] 74 [Callback]
73 interface TimeoutHandler { 75 interface TimeoutHandler {
74 void handleEvent(); 76 void handleEvent();
75 }; 77 };
76 78
77 // FIXME(leafp): This is a temporary hack to get things running while 79 // FIXME(leafp): This is a temporary hack to get things running while
78 // we are still generating _blink from the dart side idl files. 80 // we are still generating _blink from the dart side idl files.
79 // Once we are up and running generating dart:_blink in dartium 81 // Once we are up and running generating dart:_blink in dartium
80 // this should go away. 82 // this should go away.
81 [DartSupplemental] 83 [Supplemental]
82 interface URL { 84 interface URL {
83 [DartSuppress] static DOMString createObjectURL(WebKitMediaSource source); 85 [Suppressed] static DOMString createObjectURL(WebKitMediaSource source);
84 }; 86 };
85 87
86 [DartSupplemental] 88 [Supplemental]
87 interface CanvasRenderingContext2D { 89 interface CanvasRenderingContext2D {
88 [DartName=createImageDataFromImageData] ImageData createImageData(ImageData im agedata); 90 [DartName=createImageDataFromImageData] ImageData createImageData(ImageData im agedata);
89 91
90 // Removed in 1916. 92 // Removed in 1916.
91 [DartSuppress] void drawSystemFocusRing(Element element); 93 [Suppressed] void drawSystemFocusRing(Element element);
92 94
93 [DartSuppress] void assert(boolean condition); 95 [Suppressed] void assert(boolean condition);
94 96
95 [DartSuppress] attribute boolean webkitImageSmoothingEnabled; 97 [Suppressed] attribute boolean webkitImageSmoothingEnabled;
96 98
97 // Removed in 1985. 99 // Removed in 1985.
98 [DartSuppress] readonly attribute float webkitBackingStorePixelRatio; 100 [Suppressed] readonly attribute float webkitBackingStorePixelRatio;
101 };
102
103 [Supplemental]
104 interface ConsoleBase {
105 [Suppressed] void assert(boolean condition);
106 [CallWith=ScriptArguments|ScriptState] void assertCondition(boolean condition) ;
99 }; 107 };
100 108
101 interface HTMLCanvasElement { 109 interface HTMLCanvasElement {
102 [DartSuppress] DOMString toDataURL([TreatNullAs=NullString, TreatUndefinedAs=N ullString,Default=Undefined] DOMString type); 110 [Suppressed] DOMString toDataURL([TreatNullAs=NullString, TreatUndefinedAs=Nul lString,Default=Undefined] DOMString type);
103 [Custom] DOMString toDataURL([TreatNullAs=NullString, TreatUndefinedAs=NullStr ing,Default=Undefined] DOMString type, optional float quality); 111 [Custom] DOMString toDataURL([TreatNullAs=NullString, TreatUndefinedAs=NullStr ing,Default=Undefined] DOMString type, optional float quality);
112
113 [Suppressed] any getContext(DOMString contextId);
114 [Custom] CanvasRenderingContext getContext(DOMString contextId, optional Dicti onary attrs);
104 }; 115 };
105 116
106 [DartSupplemental] 117 [Supplemental]
107 interface HTMLOptionsCollection { 118 interface HTMLOptionsCollection {
108 [DartSuppress] void add(optional HTMLOptionElement element, optional long befo re); 119 [Suppressed] void add(optional HTMLOptionElement element, optional long before );
109 [DartSuppress] void remove(HTMLOptionElement option); // Non standard. 120 [Suppressed] void remove(HTMLOptionElement option); // Non standard.
110 }; 121 };
111 122
112 [DartSupplemental] 123 [Supplemental]
113 interface HTMLSelectElement { 124 interface HTMLSelectElement {
114 [DartSuppress] void add([Default=Undefined] HTMLElement element, [Default=Unde fined] HTMLElement before); 125 [Suppressed] void add([Default=Undefined] HTMLElement element, [Default=Undefi ned] HTMLElement before);
115 [DartSuppress, Custom] void remove(); 126 [Suppressed, Custom] void remove();
116 [DartSuppress] void remove(long index); 127 [Suppressed] void remove(long index);
117 [DartSuppress] void remove(HTMLOptionElement option); // Non standard. 128 [Suppressed] void remove(HTMLOptionElement option); // Non standard.
118 }; 129 };
119 130
120 [DartSupplemental] 131 [Supplemental]
132 interface ImageData {
133 [Custom] readonly attribute int[] data;
134 };
135
136 [Supplemental]
121 interface HTMLMediaElement { 137 interface HTMLMediaElement {
122 // Adding media events. 138 // Adding media events.
123 attribute EventListener oncanplay; 139 attribute EventListener oncanplay;
124 attribute EventListener oncanplaythrough; 140 attribute EventListener oncanplaythrough;
125 attribute EventListener ondurationchange; 141 attribute EventListener ondurationchange;
126 attribute EventListener onemptied; 142 attribute EventListener onemptied;
127 attribute EventListener onended; 143 attribute EventListener onended;
128 attribute EventListener onloadeddata; 144 attribute EventListener onloadeddata;
129 attribute EventListener onloadedmetadata; 145 attribute EventListener onloadedmetadata;
130 attribute EventListener onloadstart; 146 attribute EventListener onloadstart;
131 attribute EventListener onpause; 147 attribute EventListener onpause;
132 attribute EventListener onplay; 148 attribute EventListener onplay;
133 attribute EventListener onplaying; 149 attribute EventListener onplaying;
134 attribute EventListener onprogress; 150 attribute EventListener onprogress;
135 attribute EventListener onratechange; 151 attribute EventListener onratechange;
136 attribute EventListener onseeked; 152 attribute EventListener onseeked;
137 attribute EventListener onseeking; 153 attribute EventListener onseeking;
138 attribute EventListener onshow; 154 attribute EventListener onshow;
139 attribute EventListener onstalled; 155 attribute EventListener onstalled;
140 attribute EventListener onsuspend; 156 attribute EventListener onsuspend;
141 attribute EventListener ontimeupdate; 157 attribute EventListener ontimeupdate;
142 attribute EventListener onvolumechange; 158 attribute EventListener onvolumechange;
143 attribute EventListener onwaiting; 159 attribute EventListener onwaiting;
144 }; 160 };
145 161
146 [DartSupplemental] 162 [Supplemental]
147 interface RTCPeerConnection { 163 interface RTCPeerConnection {
148 [DartSuppress, RaisesException] void addIceCandidate(RTCIceCandidate candidate ); 164 [Suppressed, RaisesException] void addIceCandidate(RTCIceCandidate candidate);
149 }; 165 };
150 166
151 [DartSupplemental] 167 [Supplemental]
152 interface WebGLContextEvent { 168 interface WebGLContextEvent {
153 [DartSuppress] void initEvent(optional DOMString eventTypeArg, 169 [Suppressed] void initEvent(optional DOMString eventTypeArg,
154 optional boolean canBubbleArg, 170 optional boolean canBubbleArg,
155 optional boolean cancelableArg, 171 optional boolean cancelableArg,
156 optional DOMString statusMessageArg); 172 optional DOMString statusMessageArg);
157 }; 173 };
158 174
159 [DartSupplemental] 175 [Supplemental]
160 interface WebGLRenderingContext { 176 interface WebGLRenderingContext {
161 177
162 //void compressedTexImage2D(unsigned long target, long level, unsigned long internalformat, unsigned long width, unsigned long height, long border, un signed long imageSize, const void* data); 178 //void compressedTexImage2D(unsigned long target, long level, unsigned long internalformat, unsigned long width, unsigned long height, long border, un signed long imageSize, const void* data);
163 //void compressedTexSubImage2D(unsigned long target, long level, long xoffset, long yoffset, unsigned long width, unsigned long height, unsigned long format, unsigned long imageSize, const void* data); 179 //void compressedTexSubImage2D(unsigned long target, long level, long xoffset, long yoffset, unsigned long width, unsigned long height, unsigned long format, unsigned long imageSize, const void* data);
164 180
165 [Custom] any getBufferParameter(unsigned long target, unsigned long pname); 181 [Custom] any getBufferParameter(unsigned long target, unsigned long pname);
166 [DartSuppress, DartStrictTypeChecking, Custom] void getBufferParameter(); 182 [Suppressed, StrictTypeChecking, Custom] void getBufferParameter();
167 183
168 [Custom] any getFramebufferAttachmentParameter(unsigned long target, unsigned long attachment, unsigned long pname); 184 [Custom] any getFramebufferAttachmentParameter(unsigned long target, unsigned long attachment, unsigned long pname);
169 [DartSuppress, DartStrictTypeChecking, Custom] void getFramebufferAttachmentPa rameter(); 185 [Suppressed, StrictTypeChecking, Custom] void getFramebufferAttachmentParamete r();
170 186
171 [Custom] any getParameter(unsigned long pname); 187 [Custom] any getParameter(unsigned long pname);
172 [DartSuppress, DartStrictTypeChecking, Custom] void getParameter(); 188 [Suppressed, StrictTypeChecking, Custom] void getParameter();
173 189
174 [Custom] any getProgramParameter(WebGLProgram program, unsigned long pname); 190 [Custom] any getProgramParameter(WebGLProgram program, unsigned long pname);
175 [DartSuppress, DartStrictTypeChecking, Custom] void getProgramParameter(); 191 [Suppressed, StrictTypeChecking, Custom] void getProgramParameter();
176 192
177 [Custom] any getRenderbufferParameter(unsigned long target, unsigned long pnam e); 193 [Custom] any getRenderbufferParameter(unsigned long target, unsigned long pnam e);
178 [DartSuppress, DartStrictTypeChecking, Custom] void getRenderbufferParameter() ; 194 [Suppressed, StrictTypeChecking, Custom] void getRenderbufferParameter();
179 195
180 [Custom] any getShaderParameter(WebGLShader shader, unsigned long pname); 196 [Custom] any getShaderParameter(WebGLShader shader, unsigned long pname);
181 [DartSuppress, DartStrictTypeChecking, Custom] void getShaderParameter(); 197 [Suppressed, StrictTypeChecking, Custom] void getShaderParameter();
182 198
183 // TBD 199 // TBD
184 // void glGetShaderPrecisionFormat (GLenum shadertype, GLenum precisiontype, G Lint* range, GLint* precision); 200 // void glGetShaderPrecisionFormat (GLenum shadertype, GLenum precisiontype, G Lint* range, GLint* precision);
185 201
186 [Custom] any getExtension(DOMString name); 202 [Custom] any getExtension(DOMString name);
187 [DartSuppress, DartStrictTypeChecking, Custom] void getExtension(DOMString nam e); 203 [Suppressed, StrictTypeChecking, Custom] void getExtension(DOMString name);
188 [DartSuppress, DartStrictTypeChecking, Custom] void getSupportedExtensions(); 204 [Suppressed, StrictTypeChecking, Custom] void getSupportedExtensions();
189 205
190 [Custom] any getTexParameter(unsigned long target, unsigned long pname); 206 [Custom] any getTexParameter(unsigned long target, unsigned long pname);
191 [DartSuppress, DartStrictTypeChecking, Custom] void getTexParameter(); 207 [Suppressed, StrictTypeChecking, Custom] void getTexParameter();
192 208
193 [Custom] any getUniform(WebGLProgram program, WebGLUniformLocation location); 209 [Custom] any getUniform(WebGLProgram program, WebGLUniformLocation location);
194 [DartSuppress, DartStrictTypeChecking, Custom] void getUniform(); 210 [Suppressed, StrictTypeChecking, Custom] void getUniform();
195 211
196 [Custom] any getVertexAttrib(unsigned long index, unsigned long pname); 212 [Custom] any getVertexAttrib(unsigned long index, unsigned long pname);
197 [DartSuppress, DartStrictTypeChecking, Custom] void getVertexAttrib(); 213 [Suppressed, StrictTypeChecking, Custom] void getVertexAttrib();
198 }; 214 };
199 215
200 // TODO(vsm): Define new names for these (see b/4436830). 216 // TODO(vsm): Define new names for these (see b/4436830).
201 [DartSupplemental] 217 [Supplemental]
202 interface IDBCursor { 218 interface IDBCursor {
203 [DartName=next, CallWith=ExecutionContext, ImplementedAs=continueFunction, Rai sesException] void continue([DartForceOptional] optional any key); 219 [DartName=next, CallWith=ExecutionContext, ImplementedAs=continueFunction, Rai sesException] void continue([ForceOptional] optional any key);
204 }; 220 };
205 [DartSupplemental] 221 [Supplemental]
206 interface IDBIndex { 222 interface IDBIndex {
207 [CallWith=ExecutionContext, RaisesException] IDBRequest openCursor([Default= Undefined] optional any key, [DartForceOptional] optional DOMString direction); 223 [CallWith=ExecutionContext, RaisesException] IDBRequest openCursor([Default= Undefined] optional any key, [ForceOptional] optional DOMString direction);
208 224
209 [CallWith=ExecutionContext, RaisesException] IDBRequest openKeyCursor([Defau lt=Undefined] optional any key, [DartForceOptional] optional DOMString direction ); 225 [CallWith=ExecutionContext, RaisesException] IDBRequest openKeyCursor([Defau lt=Undefined] optional any key, [ForceOptional] optional DOMString direction);
210 226
211 [CallWith=ExecutionContext, RaisesException] IDBRequest count([Default=Undef ined] optional any key); 227 [CallWith=ExecutionContext, RaisesException] IDBRequest count([Default=Undef ined] optional any key);
212 }; 228 };
213 229
214 [DartSupplemental] 230 [Supplemental]
215 interface HTMLMediaElement { 231 interface HTMLMediaElement {
216 DOMString canPlayType([Default=Undefined] optional DOMString type, [Default=Un defined, TreatNullAs=NullString, TreatUndefinedAs=NullString, DartForceOptional] optional DOMString keySystem); 232 DOMString canPlayType([Default=Undefined] optional DOMString type, [Default=Un defined, TreatNullAs=NullString, TreatUndefinedAs=NullString, ForceOptional] opt ional DOMString keySystem);
217 }; 233 };
218 234
219 [DartSupplemental] 235 [Supplemental]
220 interface IDBKeyRange { 236 interface IDBKeyRange {
221 [DartName=only_] static IDBKeyRange only(any value); 237 [DartName=only_] static IDBKeyRange only(any value);
222 [DartName=lowerBound_] static IDBKeyRange lowerBound(any bound, [DartForceOpti onal] optional boolean open); 238 [DartName=lowerBound_] static IDBKeyRange lowerBound(any bound, [ForceOptional ] optional boolean open);
223 [DartName=upperBound_] static IDBKeyRange upperBound(any bound, [DartForceOpti onal] optional boolean open); 239 [DartName=upperBound_] static IDBKeyRange upperBound(any bound, [ForceOptional ] optional boolean open);
224 [DartName=bound_] static IDBKeyRange bound(any lower, any upper, [DartForceOpt ional] optional boolean lowerOpen, [DartForceOptional] optional boolean upperOpe n); 240 [DartName=bound_] static IDBKeyRange bound(any lower, any upper, [ForceOptiona l] optional boolean lowerOpen, [ForceOptional] optional boolean upperOpen);
225 }; 241 };
226 242
227 [DartSupplemental] 243 [Supplemental]
228 interface IDBObjectStore { 244 interface IDBObjectStore {
229 [CallWith=ScriptState, RaisesException] IDBRequest put(any value, [DartForce Optional] optional any key); 245 [CallWith=ScriptState, RaisesException] IDBRequest put(any value, [ForceOpti onal] optional any key);
230 [CallWith=ScriptState, RaisesException] IDBRequest add(any value, [DartForce Optional] optional any key); 246 [CallWith=ScriptState, RaisesException] IDBRequest add(any value, [ForceOpti onal] optional any key);
231 // [CallWith=ExecutionContext, ImplementedAs=deleteFunction, RaisesException ] IDBRequest delete(any key); 247 # [CallWith=ExecutionContext, ImplementedAs=deleteFunction, RaisesException] IDBRequest delete(any key);
232 [CallWith=ExecutionContext, RaisesException] IDBRequest openCursor(any key, [DartForceOptional] optional DOMString direction); 248 [CallWith=ExecutionContext, RaisesException] IDBRequest openCursor(any key, [ForceOptional] optional DOMString direction);
233 [CallWith=ExecutionContext, RaisesException] IDBRequest count(any key); 249 [CallWith=ExecutionContext, RaisesException] IDBRequest count(any key);
234 }; 250 };
235 251
236 interface EntrySync { 252 interface EntrySync {
237 // Native implementation is declared to return EntrySync. 253 // Native implementation is declared to return EntrySync.
238 [DartSuppress] DirectoryEntrySync getParent(); 254 [Suppressed] DirectoryEntrySync getParent();
239 EntrySync getParent(); 255 EntrySync getParent();
240 }; 256 };
241 257
242 258
243 [DartSupplemental, 259 [Supplemental,
244 CustomConstructor, 260 CustomConstructor,
245 Constructor(Array blobParts, optional DOMString type, optional DOMString endin gs) 261 Constructor(Array blobParts, optional DOMString type, optional DOMString endin gs)
246 ] 262 ]
247 interface Blob { 263 interface Blob {
248 }; 264 };
249 265
250 [DartSupplemental, 266 [Supplemental,
251 Constructor(float x, float y) 267 Constructor(float x, float y)
252 ] 268 ]
253 interface WebKitPoint { 269 interface WebKitPoint {
254 }; 270 };
255 271
256 [DartSupplemental, DartCallback] // Add missing Callback attribute. 272 [Supplemental, Callback] // Add missing Callback attribute.
257 interface VoidCallback { 273 interface VoidCallback {
258 }; 274 };
259 275
260 interface SVGNumber { 276 interface SVGNumber {
261 [DartStrictTypeChecking, Custom] attribute float value; 277 [StrictTypeChecking, Custom] attribute float value;
262 }; 278 };
263 279
264 // Keep it in to generate Dart code, C++ implementation is filterd out in genera tor. 280 // Keep it in to generate Dart code, C++ implementation is filterd out in genera tor.
265 [ 281 [
266 DartCallback 282 Callback
267 ] interface MutationCallback { 283 ] interface MutationCallback {
268 [Custom] boolean handleEvent(MutationRecordArray mutations, MutationObserver o bserver); 284 [Custom] boolean handleEvent(MutationRecordArray mutations, MutationObserver o bserver);
269 }; 285 };
270 286
271 [DartSupplemental, 287 [Supplemental,
272 CustomConstructor, 288 CustomConstructor,
273 // Provide missing constructor signature. 289 // Provide missing constructor signature.
274 Constructor(MutationCallback callback)] 290 Constructor(MutationCallback callback)]
275 interface MutationObserver { 291 interface MutationObserver {
276 }; 292 };
277 293
278 [DartSupplemental, 294 [Supplemental,
279 CustomConstructor, 295 CustomConstructor,
280 // Provide missing constructor signature. 296 // Provide missing constructor signature.
281 Constructor(optional HTMLFormElement form)] 297 Constructor(optional HTMLFormElement form)]
282 interface FormData { 298 interface FormData {
283 [DartSuppress] void append(DOMString name, DOMString value, DOMString filename ); 299 [Suppressed] void append(DOMString name, DOMString value, DOMString filename);
284 [Custom] void append(DOMString name, DOMString value); 300 [Custom] void append(DOMString name, DOMString value);
285 [Custom] void append(DOMString name, Blob value, optional DOMString filename); 301 [Custom] void append(DOMString name, Blob value, optional DOMString filename);
286 }; 302 };
287 303
288 [DartSupplemental, Constructor] 304 [Supplemental]
305 interface SQLResultSetRowList {
306 // Change the return type to Dictionary so that rows are exposed in the Dart
307 // API as a Maps, with the appropriate conversion in JavaScript.
308 [Suppressed] object item(unsigned long index);
309 [Custom] Dictionary item(unsigned long index);
310 };
311
312 [Supplemental, Constructor]
289 interface XMLHttpRequest { 313 interface XMLHttpRequest {
290 [Custom] void send(); 314 [Custom] void send();
291 [Custom] void send(ArrayBuffer data); // FIXME: this should be eventually dep recated. 315 [Custom] void send(ArrayBuffer data); // FIXME: this should be eventually dep recated.
292 [Custom] void send(ArrayBufferView data); 316 [Custom] void send(ArrayBufferView data);
293 [Custom] void send(Blob data); 317 [Custom] void send(Blob data);
294 [Custom] void send(Document data); 318 [Custom] void send(Document data);
295 [Custom] void send([DartStrictTypeChecking] DOMString data); 319 [Custom] void send([StrictTypeChecking] DOMString data);
296 [Custom] void send(FormData data); 320 [Custom] void send(FormData data);
297 }; 321 };
298 322
299 [DartSuppress] 323 [Suppressed]
300 interface AbstractView {}; 324 interface AbstractView {};
301 325
326
302 interface InjectedScriptHost { 327 interface InjectedScriptHost {
303 [Custom] void inspect(any objectId, any hints); 328 [Custom] void inspect(any objectId, any hints);
304 [DartSuppress, Custom] any inspectedObject(long num); 329 [Suppressed, Custom] any inspectedObject(long num);
305 [DartSuppress, Custom] any internalConstructorName(any obj); 330 [Suppressed, Custom] any internalConstructorName(any obj);
306 [DartSuppress, Custom] boolean isHTMLAllCollection(any obj); 331 [Suppressed, Custom] boolean isHTMLAllCollection(any obj);
307 [DartSuppress, Custom] DOMString type(any obj); 332 [Suppressed, Custom] DOMString type(any obj);
308 [DartSuppress, Custom] any functionDetails(any obj); 333 [Suppressed, Custom] any functionDetails(any obj);
309 [DartSuppress, Custom] any[] getInternalProperties(any obj); 334 [Suppressed, Custom] any[] getInternalProperties(any obj);
310 [DartSuppress, Custom] EventListener[] getEventListeners(EventTarget target) ; 335 [Suppressed, Custom] EventListener[] getEventListeners(EventTarget target);
311 [DartSuppress, Custom] any evaluate(DOMString text); 336 [Suppressed, Custom] any evaluate(DOMString text);
312 [DartSuppress, Custom] void debugFunction(any fn); 337 [Suppressed, Custom] void debugFunction(any fn);
313 [DartSuppress, Custom] void undebugFunction(any fn); 338 [Suppressed, Custom] void undebugFunction(any fn);
314 [DartSuppress, Custom] void monitorFunction(any fn); 339 [Suppressed, Custom] void monitorFunction(any fn);
315 [DartSuppress, Custom] void unmonitorFunction(any fn); 340 [Suppressed, Custom] void unmonitorFunction(any fn);
316 341
317 // Only declarative scope (local, with and catch) is accepted. Returns undef ined. 342 // Only declarative scope (local, with and catch) is accepted. Returns undef ined.
318 [DartSuppress, Custom] any setFunctionVariableValue(any functionObject, long scopeIndex, DOMString variableName, any newValue); 343 [Suppressed, Custom] any setFunctionVariableValue(any functionObject, long s copeIndex, DOMString variableName, any newValue);
319 }; 344 };
320 345
321 346
322 347 [Suppressed]
323 [DartSuppress] 348 interface InspectorFrontendHost {};
349
350
351 [Suppressed]
324 interface JavaScriptCallFrame {}; 352 interface JavaScriptCallFrame {};
325 353
326 354
327 [DartSupplemental] 355 [Supplemental]
328 interface Location { 356 interface Location {
329 [Custom=Setter] attribute DOMString href; 357 [Custom=Setter] attribute DOMString href;
330 358
331 [Custom] void assign(optional DOMString url); 359 [Custom] void assign(optional DOMString url);
332 [Custom] void replace([Default=Undefined] optional DOMString url); 360 [Custom] void replace([Default=Undefined] optional DOMString url);
333 [Custom] void reload(); 361 [Custom] void reload();
334 362
335 // URI decomposition attributes 363 // URI decomposition attributes
336 [Custom=Setter] attribute DOMString protocol; 364 [Custom=Setter] attribute DOMString protocol;
337 [Custom=Setter] attribute DOMString host; 365 [Custom=Setter] attribute DOMString host;
338 [Custom=Setter] attribute DOMString hostname; 366 [Custom=Setter] attribute DOMString hostname;
339 [Custom=Setter] attribute DOMString port; 367 [Custom=Setter] attribute DOMString port;
340 [Custom=Setter] attribute DOMString pathname; 368 [Custom=Setter] attribute DOMString pathname;
341 [Custom=Setter] attribute DOMString search; 369 [Custom=Setter] attribute DOMString search;
342 [Custom=Setter] attribute DOMString hash; 370 [Custom=Setter] attribute DOMString hash;
343 }; 371 };
344 372
345 // TODO(jacobr): reenable these new Blink features. 373 // TODO(jacobr): reenable these new Blink features.
346 [DartSuppress] 374 [Suppressed]
347 interface ImageBitmapFactories {}; 375 interface ImageBitmapFactories {};
348 376
349 // See https://chromiumcodereview.appspot.com/15901002 for the V8 implementation of 377 // See https://chromiumcodereview.appspot.com/15901002 for the V8 implementation of
350 // TextEncoder/TextDecoder 378 // TextEncoder/TextDecoder
351 [DartSuppress] 379 [Suppressed]
352 interface TextEncoder {}; 380 interface TextEncoder {};
353 381
354 [DartSuppress] 382 [Suppressed]
355 interface TextDecoder {}; 383 interface TextDecoder {};
356 384
357 [DartSupplemental] 385 [Supplemental]
358 interface Window : EventTarget { 386 interface Window : EventTarget {};
359 [DartSuppress] void alert();
360 [DartSuppress] void alert(DOMString message);
361 void alert(optional DOMString message);
362 387
363 [DartSuppress] void scrollBy(long x, long y); 388 [Suppressed]
364 [DartSuppress] void scrollBy(long x, long y, Dictionary scrollOptions); 389 interface Promise {};
365 [RaisesException] void scrollBy(long x, long y, optional Dictionary scrollOpti ons);
366 390
367 [DartSuppress] void scrollTo(long x, long y); 391 [Supplemental]
368 [DartSuppress] void scrollTo(long x, long y, Dictionary scrollOptions); 392 interface Screen {
369 [RaisesException] void scrollTo(long x, long y, optional Dictionary scrollOpti ons); 393 [Suppressed]
370 394 boolean lockOrientation(sequence<DOMString> orientations);
371 [DartSuppress] void scroll(long x, long y);
372 [DartSuppress] void scroll(long x, long y, Dictionary scrollOptions);
373 [RaisesException] void scroll(long x, long y, optional Dictionary scrollOption s);
374 }; 395 };
375 396
376 [DartSuppress] 397 [Supplemental] interface CanvasRenderingContext2D {
377 interface Promise {}; 398 [Suppressed] void webkitPutImageDataHD(ImageData? imagedata, float dx, float dy);
378 399 [Suppressed] void webkitPutImageDataHD(ImageData? imagedata, float dx, float dy, float dirtyX, float dirtyY, float dirtyWidth, float dirtyHeight);
379 [DartSupplemental] interface CanvasRenderingContext2D { 400 [Suppressed] ImageData webkitGetImageDataHD(float sx, float sy, float sw, fl oat sh);
380 [DartSuppress] void webkitPutImageDataHD(ImageData? imagedata, float dx, flo at dy); 401 [Suppressed] attribute Path currentPath;
381 [DartSuppress] void webkitPutImageDataHD(ImageData? imagedata, float dx, flo at dy, float dirtyX, float dirtyY, float dirtyWidth, float dirtyHeight);
382 [DartSuppress] ImageData webkitGetImageDataHD(float sx, float sy, float sw, float sh);
383 }; 402 };
384 403
385 [DartSupplemental] interface AudioParam { 404 [Supplemental] interface AudioParam {
386 [DartSuppress] void setTargetValueAtTime(float target, double time, double t imeConstant); 405 [Suppressed] void setTargetValueAtTime(float target, double time, double tim eConstant);
387 void setTargetAtTime(float target, double time, double timeConstant); 406 void setTargetAtTime(float target, double time, double timeConstant);
388 }; 407 };
389 408
390 [DartSupplemental] interface AudioContext { 409 [Supplemental] interface AudioContext {
391 // Number of AudioBufferSourceNodes that are currently playing. 410 // Number of AudioBufferSourceNodes that are currently playing.
392 [DartSuppress] readonly attribute unsigned long activeSourceCount; 411 [Suppressed] readonly attribute unsigned long activeSourceCount;
393 [DartSuppress] ScriptProcessorNode createJavaScriptNode(unsigned long buffer Size, optional unsigned long numberOfInputChannels, optional unsigned long numbe rOfOutputChannels); 412 [Suppressed] ScriptProcessorNode createJavaScriptNode(unsigned long bufferSi ze, optional unsigned long numberOfInputChannels, optional unsigned long numberO fOutputChannels);
394 [DartSuppress] AudioBuffer createBuffer(ArrayBuffer? buffer, boolean mixToMo no); 413 [Suppressed] AudioBuffer createBuffer(ArrayBuffer? buffer, boolean mixToMono );
395 [DartSuppress] GainNode createGainNode(); 414 [Suppressed] GainNode createGainNode();
396 [DartSuppress] DelayNode createDelayNode(optional double maxDelayTime); 415 [Suppressed] DelayNode createDelayNode(optional double maxDelayTime);
397 }; 416 };
398 417
399 [DartSupplemental] interface HTMLInputElement { 418 [Supplemental] interface HTMLInputElement {
400 [DartSuppress] attribute boolean webkitSpeech; 419 [Suppressed] attribute boolean webkitSpeech;
401 [DartSuppress] attribute boolean webkitGrammar; 420 [Suppressed] attribute boolean webkitGrammar;
402 }; 421 };
403 422
404 [DartSupplemental] interface ShadowRoot { 423 [Supplemental] interface ShadowRoot {
405 [DartSuppress] attribute boolean applyAuthorStyles; 424 [Suppressed] attribute boolean applyAuthorStyles;
406 }; 425 };
407 426
408 [DartSupplemental] interface BeforeLoadEvent { 427 [Supplemental] interface BeforeLoadEvent {
409 [DartSuppress] readonly attribute DOMString url; 428 [Suppressed] readonly attribute DOMString url;
410 }; 429 };
411 430
412 [DartSupplemental] interface OscillatorNode { 431 [Supplemental] interface OscillatorNode {
413 [DartSuppress] readonly attribute unsigned short playbackState; 432 [Suppressed] readonly attribute unsigned short playbackState;
414 }; 433 };
415 434
416 [DartSupplemental] interface SVGElementInstance { 435 [Supplemental] interface SVGElementInstance {
417 [DartSuppress] readonly attribute SVGElementInstanceList childNodes; 436 [Suppressed] readonly attribute SVGElementInstanceList childNodes;
418 }; 437 };
419 438
420 [DartSupplemental] interface DOMImplementation { 439 [Supplemental] interface TimedItem {
421 [DartSuppress] 440 [Suppressed] readonly attribute Timing specified;
441 };
442
443 [Supplemental] interface DOMImplementation {
444 [Suppressed]
422 CSSStyleSheet createCSSStyleSheet([Default=Undefined] optional DOMString tit le, 445 CSSStyleSheet createCSSStyleSheet([Default=Undefined] optional DOMString tit le,
423 [Default=Undefined] optional DOMString med ia); 446 [Default=Undefined] optional DOMString med ia);
424 }; 447 };
425 448
426 [DartSupplemental] interface SVGSVGElement { 449 [Supplemental] interface SVGSVGElement {
427 [DartSuppress] attribute DOMString contentStyleType; 450 [Suppressed] attribute DOMString contentStyleType;
428 [DartSuppress] attribute DOMString contentScriptType; 451 [Suppressed] attribute DOMString contentScriptType;
429 }; 452 };
430 453
431 [DartSupplemental] interface WorkerGlobalScope { 454 [Supplemental] interface WorkerGlobalScope {
432 [DartSuppress] readonly attribute NotificationCenter webkitNotifications; 455 [Suppressed] readonly attribute NotificationCenter webkitNotifications;
433 }; 456 };
434 457
435 [DartSupplemental] interface AudioBuffer { 458 [Supplemental] interface AudioBuffer {
436 [DartSuppress] attribute float gain; 459 [Suppressed] attribute float gain;
437 }; 460 };
438 461
439 [DartSupplemental] interface WorkerCrypto { 462 [Supplemental] interface WorkerCrypto {
440 [DartSuppress] ArrayBufferView getRandomValues(ArrayBufferView array); 463 [Suppressed] ArrayBufferView getRandomValues(ArrayBufferView array);
441 }; 464 };
442 465
443 [DartSupplemental] interface HTMLFormElement { 466 [Supplemental] interface HTMLFormElement {
444 void requestAutocomplete([Default=Undefined] optional Dictionary details); 467 void requestAutocomplete([Default=Undefined] optional Dictionary details);
445 [DartSuppress] void requestAutocomplete(); 468 [Suppressed] void requestAutocomplete();
446 }; 469 };
447 470
448 [DartSupplemental] interface AudioBufferSourceNode { 471 [Supplemental] interface AudioBufferSourceNode {
449 [DartSuppress] readonly attribute unsigned short playbackState; 472 [Suppressed] readonly attribute unsigned short playbackState;
450 }; 473 };
451 474
452 [DartSupplemental] interface AudioBufferSourceNode : AudioSourceNode { 475 [Supplemental] interface SpeechInputResult {
453 [DartSuppress] readonly attribute AudioParam gain; 476 [Suppressed] readonly attribute DOMString utterance;
477 [Suppressed] readonly attribute float confidence;
454 }; 478 };
455 479
456 // Remove backward compatible operation requestPointerLock exist now too. 480 [Supplemental] interface SpeechInputEvent : Event {
457 [DartSupplemental] interface Element : Node { 481 [Suppressed] readonly attribute SpeechInputResultList results;
458 [DartSuppress] void webkitRequestPointerLock();
459 }; 482 };
460 483
461 [DartSupplemental] interface CSSStyleDeclaration { 484 [Supplemental] interface AudioBufferSourceNode : AudioSourceNode {
462 // Expose __propertyQuery__ a getter with a special operation in the IDL 485 [Suppressed] readonly attribute AudioParam gain;
463 // when used with Custom=PropertyQuery will emit __propertyQuery__. 486 };
464 [Custom=PropertyQuery] getter boolean (DOMString name); 487
488 [Supplemental]
489 interface CSSStyleDeclaration {
490 [Supplemental] boolean __propertyQuery__(DOMString name);
465 }; 491 };
466 492
467 Element implements GlobalEventHandlers; 493 Element implements GlobalEventHandlers;
OLDNEW
« no previous file with comments | « no previous file | tools/dom/new_scripts/code_generator_dart.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698