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

Side by Side Diff: sdk/lib/html/dart2js/html_dart2js.dart

Issue 11308087: Added "/// @docsEditable" to all generated members in the HTML lib. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Removed whitespace. Created 8 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 library html; 1 library html;
2 2
3 import 'dart:isolate'; 3 import 'dart:isolate';
4 import 'dart:json'; 4 import 'dart:json';
5 import 'dart:svg' as svg; 5 import 'dart:svg' as svg;
6 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7 // for details. All rights reserved. Use of this source code is governed by a 7 // for details. All rights reserved. Use of this source code is governed by a
8 // BSD-style license that can be found in the LICENSE file. 8 // BSD-style license that can be found in the LICENSE file.
9 9
10 // DO NOT EDIT 10 // DO NOT EDIT
(...skipping 30 matching lines...) Expand all
41 return JS('var', r'ReceivePortSync.dispatchCall(#, #)', id, message); 41 return JS('var', r'ReceivePortSync.dispatchCall(#, #)', id, message);
42 } 42 }
43 43
44 // TODO(vsm): Plumb this properly. 44 // TODO(vsm): Plumb this properly.
45 spawnDomFunction(f) => spawnFunction(f); 45 spawnDomFunction(f) => spawnFunction(f);
46 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 46 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
47 // for details. All rights reserved. Use of this source code is governed by a 47 // for details. All rights reserved. Use of this source code is governed by a
48 // BSD-style license that can be found in the LICENSE file. 48 // BSD-style license that can be found in the LICENSE file.
49 49
50 50
51 /// @domName AbstractWorker 51 /// @domName AbstractWorker; @docsEditable true
52 class AbstractWorker extends EventTarget native "*AbstractWorker" { 52 class AbstractWorker extends EventTarget native "*AbstractWorker" {
53 53
54 /** 54 /**
55 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 55 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent; @docsEditable true
56 */ 56 */
57 AbstractWorkerEvents get on => 57 AbstractWorkerEvents get on =>
58 new AbstractWorkerEvents(this); 58 new AbstractWorkerEvents(this);
59 59
60 /** @domName AbstractWorker.addEventListener */ 60 /** @domName AbstractWorker.addEventListener; @docsEditable true */
61 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 61 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
62 62
63 /** @domName AbstractWorker.dispatchEvent */ 63 /** @domName AbstractWorker.dispatchEvent; @docsEditable true */
64 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; 64 bool $dom_dispatchEvent(Event evt) native "dispatchEvent";
65 65
66 /** @domName AbstractWorker.removeEventListener */ 66 /** @domName AbstractWorker.removeEventListener; @docsEditable true */
67 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 67 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
68 } 68 }
69 69
70 class AbstractWorkerEvents extends Events { 70 class AbstractWorkerEvents extends Events {
71 AbstractWorkerEvents(EventTarget _ptr) : super(_ptr); 71 AbstractWorkerEvents(EventTarget _ptr) : super(_ptr);
72 72
73 EventListenerList get error => this['error']; 73 EventListenerList get error => this['error'];
74 } 74 }
75 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 75 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
76 // for details. All rights reserved. Use of this source code is governed by a 76 // for details. All rights reserved. Use of this source code is governed by a
77 // BSD-style license that can be found in the LICENSE file. 77 // BSD-style license that can be found in the LICENSE file.
78 78
79 79
80 /// @domName AnalyserNode 80 /// @domName AnalyserNode; @docsEditable true
81 class AnalyserNode extends AudioNode native "*AnalyserNode" { 81 class AnalyserNode extends AudioNode native "*AnalyserNode" {
82 82
83 /** @domName AnalyserNode.fftSize */ 83 /** @domName AnalyserNode.fftSize; @docsEditable true */
84 int fftSize; 84 int fftSize;
85 85
86 /** @domName AnalyserNode.frequencyBinCount */ 86 /** @domName AnalyserNode.frequencyBinCount; @docsEditable true */
87 final int frequencyBinCount; 87 final int frequencyBinCount;
88 88
89 /** @domName AnalyserNode.maxDecibels */ 89 /** @domName AnalyserNode.maxDecibels; @docsEditable true */
90 num maxDecibels; 90 num maxDecibels;
91 91
92 /** @domName AnalyserNode.minDecibels */ 92 /** @domName AnalyserNode.minDecibels; @docsEditable true */
93 num minDecibels; 93 num minDecibels;
94 94
95 /** @domName AnalyserNode.smoothingTimeConstant */ 95 /** @domName AnalyserNode.smoothingTimeConstant; @docsEditable true */
96 num smoothingTimeConstant; 96 num smoothingTimeConstant;
97 97
98 /** @domName AnalyserNode.getByteFrequencyData */ 98 /** @domName AnalyserNode.getByteFrequencyData; @docsEditable true */
99 void getByteFrequencyData(Uint8Array array) native; 99 void getByteFrequencyData(Uint8Array array) native;
100 100
101 /** @domName AnalyserNode.getByteTimeDomainData */ 101 /** @domName AnalyserNode.getByteTimeDomainData; @docsEditable true */
102 void getByteTimeDomainData(Uint8Array array) native; 102 void getByteTimeDomainData(Uint8Array array) native;
103 103
104 /** @domName AnalyserNode.getFloatFrequencyData */ 104 /** @domName AnalyserNode.getFloatFrequencyData; @docsEditable true */
105 void getFloatFrequencyData(Float32Array array) native; 105 void getFloatFrequencyData(Float32Array array) native;
106 } 106 }
107 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 107 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
108 // for details. All rights reserved. Use of this source code is governed by a 108 // for details. All rights reserved. Use of this source code is governed by a
109 // BSD-style license that can be found in the LICENSE file. 109 // BSD-style license that can be found in the LICENSE file.
110 110
111 111
112 /// @domName HTMLAnchorElement 112 /// @domName HTMLAnchorElement; @docsEditable true
113 class AnchorElement extends Element implements Element native "*HTMLAnchorElemen t" { 113 class AnchorElement extends Element implements Element native "*HTMLAnchorElemen t" {
114 114
115 factory AnchorElement({String href}) { 115 factory AnchorElement({String href}) {
116 var e = document.$dom_createElement("a"); 116 var e = document.$dom_createElement("a");
117 if (href != null) e.href = href; 117 if (href != null) e.href = href;
118 return e; 118 return e;
119 } 119 }
120 120
121 /** @domName HTMLAnchorElement.charset */ 121 /** @domName HTMLAnchorElement.charset; @docsEditable true */
122 String charset; 122 String charset;
123 123
124 /** @domName HTMLAnchorElement.coords */ 124 /** @domName HTMLAnchorElement.coords; @docsEditable true */
125 String coords; 125 String coords;
126 126
127 /** @domName HTMLAnchorElement.download */ 127 /** @domName HTMLAnchorElement.download; @docsEditable true */
128 String download; 128 String download;
129 129
130 /** @domName HTMLAnchorElement.hash */ 130 /** @domName HTMLAnchorElement.hash; @docsEditable true */
131 String hash; 131 String hash;
132 132
133 /** @domName HTMLAnchorElement.host */ 133 /** @domName HTMLAnchorElement.host; @docsEditable true */
134 String host; 134 String host;
135 135
136 /** @domName HTMLAnchorElement.hostname */ 136 /** @domName HTMLAnchorElement.hostname; @docsEditable true */
137 String hostname; 137 String hostname;
138 138
139 /** @domName HTMLAnchorElement.href */ 139 /** @domName HTMLAnchorElement.href; @docsEditable true */
140 String href; 140 String href;
141 141
142 /** @domName HTMLAnchorElement.hreflang */ 142 /** @domName HTMLAnchorElement.hreflang; @docsEditable true */
143 String hreflang; 143 String hreflang;
144 144
145 /** @domName HTMLAnchorElement.name */ 145 /** @domName HTMLAnchorElement.name; @docsEditable true */
146 String name; 146 String name;
147 147
148 /** @domName HTMLAnchorElement.origin */ 148 /** @domName HTMLAnchorElement.origin; @docsEditable true */
149 final String origin; 149 final String origin;
150 150
151 /** @domName HTMLAnchorElement.pathname */ 151 /** @domName HTMLAnchorElement.pathname; @docsEditable true */
152 String pathname; 152 String pathname;
153 153
154 /** @domName HTMLAnchorElement.ping */ 154 /** @domName HTMLAnchorElement.ping; @docsEditable true */
155 String ping; 155 String ping;
156 156
157 /** @domName HTMLAnchorElement.port */ 157 /** @domName HTMLAnchorElement.port; @docsEditable true */
158 String port; 158 String port;
159 159
160 /** @domName HTMLAnchorElement.protocol */ 160 /** @domName HTMLAnchorElement.protocol; @docsEditable true */
161 String protocol; 161 String protocol;
162 162
163 /** @domName HTMLAnchorElement.rel */ 163 /** @domName HTMLAnchorElement.rel; @docsEditable true */
164 String rel; 164 String rel;
165 165
166 /** @domName HTMLAnchorElement.rev */ 166 /** @domName HTMLAnchorElement.rev; @docsEditable true */
167 String rev; 167 String rev;
168 168
169 /** @domName HTMLAnchorElement.search */ 169 /** @domName HTMLAnchorElement.search; @docsEditable true */
170 String search; 170 String search;
171 171
172 /** @domName HTMLAnchorElement.shape */ 172 /** @domName HTMLAnchorElement.shape; @docsEditable true */
173 String shape; 173 String shape;
174 174
175 /** @domName HTMLAnchorElement.target */ 175 /** @domName HTMLAnchorElement.target; @docsEditable true */
176 String target; 176 String target;
177 177
178 /** @domName HTMLAnchorElement.type */ 178 /** @domName HTMLAnchorElement.type; @docsEditable true */
179 String type; 179 String type;
180 180
181 /** @domName HTMLAnchorElement.toString */ 181 /** @domName HTMLAnchorElement.toString; @docsEditable true */
182 String toString() native; 182 String toString() native;
183 } 183 }
184 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 184 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
185 // for details. All rights reserved. Use of this source code is governed by a 185 // for details. All rights reserved. Use of this source code is governed by a
186 // BSD-style license that can be found in the LICENSE file. 186 // BSD-style license that can be found in the LICENSE file.
187 187
188 188
189 /// @domName WebKitAnimation 189 /// @domName WebKitAnimation; @docsEditable true
190 class Animation native "*WebKitAnimation" { 190 class Animation native "*WebKitAnimation" {
191 191
192 static const int DIRECTION_ALTERNATE = 1; 192 static const int DIRECTION_ALTERNATE = 1;
193 193
194 static const int DIRECTION_NORMAL = 0; 194 static const int DIRECTION_NORMAL = 0;
195 195
196 static const int FILL_BACKWARDS = 1; 196 static const int FILL_BACKWARDS = 1;
197 197
198 static const int FILL_BOTH = 3; 198 static const int FILL_BOTH = 3;
199 199
200 static const int FILL_FORWARDS = 2; 200 static const int FILL_FORWARDS = 2;
201 201
202 static const int FILL_NONE = 0; 202 static const int FILL_NONE = 0;
203 203
204 /** @domName WebKitAnimation.delay */ 204 /** @domName WebKitAnimation.delay; @docsEditable true */
205 final num delay; 205 final num delay;
206 206
207 /** @domName WebKitAnimation.direction */ 207 /** @domName WebKitAnimation.direction; @docsEditable true */
208 final int direction; 208 final int direction;
209 209
210 /** @domName WebKitAnimation.duration */ 210 /** @domName WebKitAnimation.duration; @docsEditable true */
211 final num duration; 211 final num duration;
212 212
213 /** @domName WebKitAnimation.elapsedTime */ 213 /** @domName WebKitAnimation.elapsedTime; @docsEditable true */
214 num elapsedTime; 214 num elapsedTime;
215 215
216 /** @domName WebKitAnimation.ended */ 216 /** @domName WebKitAnimation.ended; @docsEditable true */
217 final bool ended; 217 final bool ended;
218 218
219 /** @domName WebKitAnimation.fillMode */ 219 /** @domName WebKitAnimation.fillMode; @docsEditable true */
220 final int fillMode; 220 final int fillMode;
221 221
222 /** @domName WebKitAnimation.iterationCount */ 222 /** @domName WebKitAnimation.iterationCount; @docsEditable true */
223 final int iterationCount; 223 final int iterationCount;
224 224
225 /** @domName WebKitAnimation.name */ 225 /** @domName WebKitAnimation.name; @docsEditable true */
226 final String name; 226 final String name;
227 227
228 /** @domName WebKitAnimation.paused */ 228 /** @domName WebKitAnimation.paused; @docsEditable true */
229 final bool paused; 229 final bool paused;
230 230
231 /** @domName WebKitAnimation.pause */ 231 /** @domName WebKitAnimation.pause; @docsEditable true */
232 void pause() native; 232 void pause() native;
233 233
234 /** @domName WebKitAnimation.play */ 234 /** @domName WebKitAnimation.play; @docsEditable true */
235 void play() native; 235 void play() native;
236 } 236 }
237 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 237 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
238 // for details. All rights reserved. Use of this source code is governed by a 238 // for details. All rights reserved. Use of this source code is governed by a
239 // BSD-style license that can be found in the LICENSE file. 239 // BSD-style license that can be found in the LICENSE file.
240 240
241 241
242 /// @domName WebKitAnimationEvent 242 /// @domName WebKitAnimationEvent; @docsEditable true
243 class AnimationEvent extends Event native "*WebKitAnimationEvent" { 243 class AnimationEvent extends Event native "*WebKitAnimationEvent" {
244 244
245 /** @domName WebKitAnimationEvent.animationName */ 245 /** @domName WebKitAnimationEvent.animationName; @docsEditable true */
246 final String animationName; 246 final String animationName;
247 247
248 /** @domName WebKitAnimationEvent.elapsedTime */ 248 /** @domName WebKitAnimationEvent.elapsedTime; @docsEditable true */
249 final num elapsedTime; 249 final num elapsedTime;
250 } 250 }
251 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 251 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
252 // for details. All rights reserved. Use of this source code is governed by a 252 // for details. All rights reserved. Use of this source code is governed by a
253 // BSD-style license that can be found in the LICENSE file. 253 // BSD-style license that can be found in the LICENSE file.
254 254
255 255
256 /// @domName HTMLAppletElement 256 /// @domName HTMLAppletElement; @docsEditable true
257 class AppletElement extends Element implements Element native "*HTMLAppletElemen t" { 257 class AppletElement extends Element implements Element native "*HTMLAppletElemen t" {
258 258
259 /** @domName HTMLAppletElement.align */ 259 /** @domName HTMLAppletElement.align; @docsEditable true */
260 String align; 260 String align;
261 261
262 /** @domName HTMLAppletElement.alt */ 262 /** @domName HTMLAppletElement.alt; @docsEditable true */
263 String alt; 263 String alt;
264 264
265 /** @domName HTMLAppletElement.archive */ 265 /** @domName HTMLAppletElement.archive; @docsEditable true */
266 String archive; 266 String archive;
267 267
268 /** @domName HTMLAppletElement.code */ 268 /** @domName HTMLAppletElement.code; @docsEditable true */
269 String code; 269 String code;
270 270
271 /** @domName HTMLAppletElement.codeBase */ 271 /** @domName HTMLAppletElement.codeBase; @docsEditable true */
272 String codeBase; 272 String codeBase;
273 273
274 /** @domName HTMLAppletElement.height */ 274 /** @domName HTMLAppletElement.height; @docsEditable true */
275 String height; 275 String height;
276 276
277 /** @domName HTMLAppletElement.hspace */ 277 /** @domName HTMLAppletElement.hspace; @docsEditable true */
278 String hspace; 278 String hspace;
279 279
280 /** @domName HTMLAppletElement.name */ 280 /** @domName HTMLAppletElement.name; @docsEditable true */
281 String name; 281 String name;
282 282
283 /** @domName HTMLAppletElement.object */ 283 /** @domName HTMLAppletElement.object; @docsEditable true */
284 String object; 284 String object;
285 285
286 /** @domName HTMLAppletElement.vspace */ 286 /** @domName HTMLAppletElement.vspace; @docsEditable true */
287 String vspace; 287 String vspace;
288 288
289 /** @domName HTMLAppletElement.width */ 289 /** @domName HTMLAppletElement.width; @docsEditable true */
290 String width; 290 String width;
291 } 291 }
292 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 292 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
293 // for details. All rights reserved. Use of this source code is governed by a 293 // for details. All rights reserved. Use of this source code is governed by a
294 // BSD-style license that can be found in the LICENSE file. 294 // BSD-style license that can be found in the LICENSE file.
295 295
296 296
297 /// @domName HTMLAreaElement 297 /// @domName HTMLAreaElement; @docsEditable true
298 class AreaElement extends Element implements Element native "*HTMLAreaElement" { 298 class AreaElement extends Element implements Element native "*HTMLAreaElement" {
299 299
300 factory AreaElement() => document.$dom_createElement("area"); 300 factory AreaElement() => document.$dom_createElement("area");
301 301
302 /** @domName HTMLAreaElement.alt */ 302 /** @domName HTMLAreaElement.alt; @docsEditable true */
303 String alt; 303 String alt;
304 304
305 /** @domName HTMLAreaElement.coords */ 305 /** @domName HTMLAreaElement.coords; @docsEditable true */
306 String coords; 306 String coords;
307 307
308 /** @domName HTMLAreaElement.hash */ 308 /** @domName HTMLAreaElement.hash; @docsEditable true */
309 final String hash; 309 final String hash;
310 310
311 /** @domName HTMLAreaElement.host */ 311 /** @domName HTMLAreaElement.host; @docsEditable true */
312 final String host; 312 final String host;
313 313
314 /** @domName HTMLAreaElement.hostname */ 314 /** @domName HTMLAreaElement.hostname; @docsEditable true */
315 final String hostname; 315 final String hostname;
316 316
317 /** @domName HTMLAreaElement.href */ 317 /** @domName HTMLAreaElement.href; @docsEditable true */
318 String href; 318 String href;
319 319
320 /** @domName HTMLAreaElement.noHref */ 320 /** @domName HTMLAreaElement.noHref; @docsEditable true */
321 bool noHref; 321 bool noHref;
322 322
323 /** @domName HTMLAreaElement.pathname */ 323 /** @domName HTMLAreaElement.pathname; @docsEditable true */
324 final String pathname; 324 final String pathname;
325 325
326 /** @domName HTMLAreaElement.ping */ 326 /** @domName HTMLAreaElement.ping; @docsEditable true */
327 String ping; 327 String ping;
328 328
329 /** @domName HTMLAreaElement.port */ 329 /** @domName HTMLAreaElement.port; @docsEditable true */
330 final String port; 330 final String port;
331 331
332 /** @domName HTMLAreaElement.protocol */ 332 /** @domName HTMLAreaElement.protocol; @docsEditable true */
333 final String protocol; 333 final String protocol;
334 334
335 /** @domName HTMLAreaElement.search */ 335 /** @domName HTMLAreaElement.search; @docsEditable true */
336 final String search; 336 final String search;
337 337
338 /** @domName HTMLAreaElement.shape */ 338 /** @domName HTMLAreaElement.shape; @docsEditable true */
339 String shape; 339 String shape;
340 340
341 /** @domName HTMLAreaElement.target */ 341 /** @domName HTMLAreaElement.target; @docsEditable true */
342 String target; 342 String target;
343 } 343 }
344 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 344 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
345 // for details. All rights reserved. Use of this source code is governed by a 345 // for details. All rights reserved. Use of this source code is governed by a
346 // BSD-style license that can be found in the LICENSE file. 346 // BSD-style license that can be found in the LICENSE file.
347 347
348 348
349 /// @domName ArrayBuffer 349 /// @domName ArrayBuffer; @docsEditable true
350 class ArrayBuffer native "*ArrayBuffer" { 350 class ArrayBuffer native "*ArrayBuffer" {
351 351
352 factory ArrayBuffer(int length) => _ArrayBufferFactoryProvider.createArrayBuff er(length); 352 factory ArrayBuffer(int length) => _ArrayBufferFactoryProvider.createArrayBuff er(length);
353 353
354 /** @domName ArrayBuffer.byteLength */ 354 /** @domName ArrayBuffer.byteLength; @docsEditable true */
355 final int byteLength; 355 final int byteLength;
356 356
357 /** @domName ArrayBuffer.slice */ 357 /** @domName ArrayBuffer.slice; @docsEditable true */
358 ArrayBuffer slice(int begin, [int end]) native; 358 ArrayBuffer slice(int begin, [int end]) native;
359 } 359 }
360 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 360 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
361 // for details. All rights reserved. Use of this source code is governed by a 361 // for details. All rights reserved. Use of this source code is governed by a
362 // BSD-style license that can be found in the LICENSE file. 362 // BSD-style license that can be found in the LICENSE file.
363 363
364 364
365 /// @domName ArrayBufferView 365 /// @domName ArrayBufferView; @docsEditable true
366 class ArrayBufferView native "*ArrayBufferView" { 366 class ArrayBufferView native "*ArrayBufferView" {
367 367
368 /** @domName ArrayBufferView.buffer */ 368 /** @domName ArrayBufferView.buffer; @docsEditable true */
369 final ArrayBuffer buffer; 369 final ArrayBuffer buffer;
370 370
371 /** @domName ArrayBufferView.byteLength */ 371 /** @domName ArrayBufferView.byteLength; @docsEditable true */
372 final int byteLength; 372 final int byteLength;
373 373
374 /** @domName ArrayBufferView.byteOffset */ 374 /** @domName ArrayBufferView.byteOffset; @docsEditable true */
375 final int byteOffset; 375 final int byteOffset;
376 } 376 }
377 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 377 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
378 // for details. All rights reserved. Use of this source code is governed by a 378 // for details. All rights reserved. Use of this source code is governed by a
379 // BSD-style license that can be found in the LICENSE file. 379 // BSD-style license that can be found in the LICENSE file.
380 380
381 381
382 /// @domName Attr 382 /// @domName Attr; @docsEditable true
383 class Attr extends Node native "*Attr" { 383 class Attr extends Node native "*Attr" {
384 384
385 /** @domName Attr.isId */ 385 /** @domName Attr.isId; @docsEditable true */
386 final bool isId; 386 final bool isId;
387 387
388 /** @domName Attr.name */ 388 /** @domName Attr.name; @docsEditable true */
389 final String name; 389 final String name;
390 390
391 /** @domName Attr.ownerElement */ 391 /** @domName Attr.ownerElement; @docsEditable true */
392 final Element ownerElement; 392 final Element ownerElement;
393 393
394 /** @domName Attr.specified */ 394 /** @domName Attr.specified; @docsEditable true */
395 final bool specified; 395 final bool specified;
396 396
397 /** @domName Attr.value */ 397 /** @domName Attr.value; @docsEditable true */
398 String value; 398 String value;
399 } 399 }
400 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 400 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
401 // for details. All rights reserved. Use of this source code is governed by a 401 // for details. All rights reserved. Use of this source code is governed by a
402 // BSD-style license that can be found in the LICENSE file. 402 // BSD-style license that can be found in the LICENSE file.
403 403
404 404
405 /// @domName AudioBuffer 405 /// @domName AudioBuffer; @docsEditable true
406 class AudioBuffer native "*AudioBuffer" { 406 class AudioBuffer native "*AudioBuffer" {
407 407
408 /** @domName AudioBuffer.duration */ 408 /** @domName AudioBuffer.duration; @docsEditable true */
409 final num duration; 409 final num duration;
410 410
411 /** @domName AudioBuffer.gain */ 411 /** @domName AudioBuffer.gain; @docsEditable true */
412 num gain; 412 num gain;
413 413
414 /** @domName AudioBuffer.length */ 414 /** @domName AudioBuffer.length; @docsEditable true */
415 final int length; 415 final int length;
416 416
417 /** @domName AudioBuffer.numberOfChannels */ 417 /** @domName AudioBuffer.numberOfChannels; @docsEditable true */
418 final int numberOfChannels; 418 final int numberOfChannels;
419 419
420 /** @domName AudioBuffer.sampleRate */ 420 /** @domName AudioBuffer.sampleRate; @docsEditable true */
421 final num sampleRate; 421 final num sampleRate;
422 422
423 /** @domName AudioBuffer.getChannelData */ 423 /** @domName AudioBuffer.getChannelData; @docsEditable true */
424 Float32Array getChannelData(int channelIndex) native; 424 Float32Array getChannelData(int channelIndex) native;
425 } 425 }
426 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 426 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
427 // for details. All rights reserved. Use of this source code is governed by a 427 // for details. All rights reserved. Use of this source code is governed by a
428 // BSD-style license that can be found in the LICENSE file. 428 // BSD-style license that can be found in the LICENSE file.
429 429
430 // WARNING: Do not edit - generated code. 430 // WARNING: Do not edit - generated code.
431 431
432 432
433 typedef void AudioBufferCallback(AudioBuffer audioBuffer); 433 typedef void AudioBufferCallback(AudioBuffer audioBuffer);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 } 469 }
470 470
471 static const int FINISHED_STATE = 3; 471 static const int FINISHED_STATE = 3;
472 472
473 static const int PLAYING_STATE = 2; 473 static const int PLAYING_STATE = 2;
474 474
475 static const int SCHEDULED_STATE = 1; 475 static const int SCHEDULED_STATE = 1;
476 476
477 static const int UNSCHEDULED_STATE = 0; 477 static const int UNSCHEDULED_STATE = 0;
478 478
479 /** @domName AudioBufferSourceNode.buffer */ 479 /** @domName AudioBufferSourceNode.buffer; @docsEditable true */
480 AudioBuffer buffer; 480 AudioBuffer buffer;
481 481
482 /** @domName AudioBufferSourceNode.gain */ 482 /** @domName AudioBufferSourceNode.gain; @docsEditable true */
483 final AudioGain gain; 483 final AudioGain gain;
484 484
485 /** @domName AudioBufferSourceNode.loop */ 485 /** @domName AudioBufferSourceNode.loop; @docsEditable true */
486 bool loop; 486 bool loop;
487 487
488 /** @domName AudioBufferSourceNode.loopEnd */ 488 /** @domName AudioBufferSourceNode.loopEnd; @docsEditable true */
489 num loopEnd; 489 num loopEnd;
490 490
491 /** @domName AudioBufferSourceNode.loopStart */ 491 /** @domName AudioBufferSourceNode.loopStart; @docsEditable true */
492 num loopStart; 492 num loopStart;
493 493
494 /** @domName AudioBufferSourceNode.playbackRate */ 494 /** @domName AudioBufferSourceNode.playbackRate; @docsEditable true */
495 final AudioParam playbackRate; 495 final AudioParam playbackRate;
496 496
497 /** @domName AudioBufferSourceNode.playbackState */ 497 /** @domName AudioBufferSourceNode.playbackState; @docsEditable true */
498 final int playbackState; 498 final int playbackState;
499 499
500 } 500 }
501 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 501 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
502 // for details. All rights reserved. Use of this source code is governed by a 502 // for details. All rights reserved. Use of this source code is governed by a
503 // BSD-style license that can be found in the LICENSE file. 503 // BSD-style license that can be found in the LICENSE file.
504 504
505 505
506 class AudioContext extends EventTarget native "*AudioContext" { 506 class AudioContext extends EventTarget native "*AudioContext" {
507 factory AudioContext() => _AudioContextFactoryProvider.createAudioContext(); 507 factory AudioContext() => _AudioContextFactoryProvider.createAudioContext();
508 508
509 /** 509 /**
510 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 510 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent; @docsEditable true
511 */ 511 */
512 AudioContextEvents get on => 512 AudioContextEvents get on =>
513 new AudioContextEvents(this); 513 new AudioContextEvents(this);
514 514
515 /** @domName AudioContext.activeSourceCount */ 515 /** @domName AudioContext.activeSourceCount; @docsEditable true */
516 final int activeSourceCount; 516 final int activeSourceCount;
517 517
518 /** @domName AudioContext.currentTime */ 518 /** @domName AudioContext.currentTime; @docsEditable true */
519 final num currentTime; 519 final num currentTime;
520 520
521 /** @domName AudioContext.destination */ 521 /** @domName AudioContext.destination; @docsEditable true */
522 final AudioDestinationNode destination; 522 final AudioDestinationNode destination;
523 523
524 /** @domName AudioContext.listener */ 524 /** @domName AudioContext.listener; @docsEditable true */
525 final AudioListener listener; 525 final AudioListener listener;
526 526
527 /** @domName AudioContext.sampleRate */ 527 /** @domName AudioContext.sampleRate; @docsEditable true */
528 final num sampleRate; 528 final num sampleRate;
529 529
530 /** @domName AudioContext.createAnalyser */ 530 /** @domName AudioContext.createAnalyser; @docsEditable true */
531 AnalyserNode createAnalyser() native; 531 AnalyserNode createAnalyser() native;
532 532
533 /** @domName AudioContext.createBiquadFilter */ 533 /** @domName AudioContext.createBiquadFilter; @docsEditable true */
534 BiquadFilterNode createBiquadFilter() native; 534 BiquadFilterNode createBiquadFilter() native;
535 535
536 /** @domName AudioContext.createBuffer */ 536 /** @domName AudioContext.createBuffer; @docsEditable true */
537 AudioBuffer createBuffer(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFram es, [num sampleRate]) native; 537 AudioBuffer createBuffer(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFram es, [num sampleRate]) native;
538 538
539 /** @domName AudioContext.createBufferSource */ 539 /** @domName AudioContext.createBufferSource; @docsEditable true */
540 AudioBufferSourceNode createBufferSource() native; 540 AudioBufferSourceNode createBufferSource() native;
541 541
542 /** @domName AudioContext.createChannelMerger */ 542 /** @domName AudioContext.createChannelMerger; @docsEditable true */
543 ChannelMergerNode createChannelMerger([int numberOfInputs]) native; 543 ChannelMergerNode createChannelMerger([int numberOfInputs]) native;
544 544
545 /** @domName AudioContext.createChannelSplitter */ 545 /** @domName AudioContext.createChannelSplitter; @docsEditable true */
546 ChannelSplitterNode createChannelSplitter([int numberOfOutputs]) native; 546 ChannelSplitterNode createChannelSplitter([int numberOfOutputs]) native;
547 547
548 /** @domName AudioContext.createConvolver */ 548 /** @domName AudioContext.createConvolver; @docsEditable true */
549 ConvolverNode createConvolver() native; 549 ConvolverNode createConvolver() native;
550 550
551 /** @domName AudioContext.createDelay */ 551 /** @domName AudioContext.createDelay; @docsEditable true */
552 DelayNode createDelay([num maxDelayTime]) native; 552 DelayNode createDelay([num maxDelayTime]) native;
553 553
554 /** @domName AudioContext.createDynamicsCompressor */ 554 /** @domName AudioContext.createDynamicsCompressor; @docsEditable true */
555 DynamicsCompressorNode createDynamicsCompressor() native; 555 DynamicsCompressorNode createDynamicsCompressor() native;
556 556
557 /** @domName AudioContext.createMediaElementSource */ 557 /** @domName AudioContext.createMediaElementSource; @docsEditable true */
558 MediaElementAudioSourceNode createMediaElementSource(MediaElement mediaElement ) native; 558 MediaElementAudioSourceNode createMediaElementSource(MediaElement mediaElement ) native;
559 559
560 /** @domName AudioContext.createMediaStreamSource */ 560 /** @domName AudioContext.createMediaStreamSource; @docsEditable true */
561 MediaStreamAudioSourceNode createMediaStreamSource(MediaStream mediaStream) na tive; 561 MediaStreamAudioSourceNode createMediaStreamSource(MediaStream mediaStream) na tive;
562 562
563 /** @domName AudioContext.createOscillator */ 563 /** @domName AudioContext.createOscillator; @docsEditable true */
564 OscillatorNode createOscillator() native; 564 OscillatorNode createOscillator() native;
565 565
566 /** @domName AudioContext.createPanner */ 566 /** @domName AudioContext.createPanner; @docsEditable true */
567 PannerNode createPanner() native; 567 PannerNode createPanner() native;
568 568
569 /** @domName AudioContext.createWaveShaper */ 569 /** @domName AudioContext.createWaveShaper; @docsEditable true */
570 WaveShaperNode createWaveShaper() native; 570 WaveShaperNode createWaveShaper() native;
571 571
572 /** @domName AudioContext.createWaveTable */ 572 /** @domName AudioContext.createWaveTable; @docsEditable true */
573 WaveTable createWaveTable(Float32Array real, Float32Array imag) native; 573 WaveTable createWaveTable(Float32Array real, Float32Array imag) native;
574 574
575 /** @domName AudioContext.decodeAudioData */ 575 /** @domName AudioContext.decodeAudioData; @docsEditable true */
576 void decodeAudioData(ArrayBuffer audioData, AudioBufferCallback successCallbac k, [AudioBufferCallback errorCallback]) native; 576 void decodeAudioData(ArrayBuffer audioData, AudioBufferCallback successCallbac k, [AudioBufferCallback errorCallback]) native;
577 577
578 /** @domName AudioContext.startRendering */ 578 /** @domName AudioContext.startRendering; @docsEditable true */
579 void startRendering() native; 579 void startRendering() native;
580 580
581 GainNode createGain() { 581 GainNode createGain() {
582 if (JS('bool', '#.createGain !== undefined', this)) { 582 if (JS('bool', '#.createGain !== undefined', this)) {
583 return JS('GainNode', '#.createGain()', this); 583 return JS('GainNode', '#.createGain()', this);
584 } else { 584 } else {
585 return JS('GainNode', '#.createGainNode()', this); 585 return JS('GainNode', '#.createGainNode()', this);
586 } 586 }
587 } 587 }
588 588
(...skipping 17 matching lines...) Expand all
606 class AudioContextEvents extends Events { 606 class AudioContextEvents extends Events {
607 AudioContextEvents(EventTarget _ptr) : super(_ptr); 607 AudioContextEvents(EventTarget _ptr) : super(_ptr);
608 608
609 EventListenerList get complete => this['complete']; 609 EventListenerList get complete => this['complete'];
610 } 610 }
611 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 611 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
612 // for details. All rights reserved. Use of this source code is governed by a 612 // for details. All rights reserved. Use of this source code is governed by a
613 // BSD-style license that can be found in the LICENSE file. 613 // BSD-style license that can be found in the LICENSE file.
614 614
615 615
616 /// @domName AudioDestinationNode 616 /// @domName AudioDestinationNode; @docsEditable true
617 class AudioDestinationNode extends AudioNode native "*AudioDestinationNode" { 617 class AudioDestinationNode extends AudioNode native "*AudioDestinationNode" {
618 618
619 /** @domName AudioDestinationNode.numberOfChannels */ 619 /** @domName AudioDestinationNode.numberOfChannels; @docsEditable true */
620 final int numberOfChannels; 620 final int numberOfChannels;
621 } 621 }
622 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 622 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
623 // for details. All rights reserved. Use of this source code is governed by a 623 // for details. All rights reserved. Use of this source code is governed by a
624 // BSD-style license that can be found in the LICENSE file. 624 // BSD-style license that can be found in the LICENSE file.
625 625
626 626
627 /// @domName HTMLAudioElement 627 /// @domName HTMLAudioElement; @docsEditable true
628 class AudioElement extends MediaElement native "*HTMLAudioElement" { 628 class AudioElement extends MediaElement native "*HTMLAudioElement" {
629 629
630 factory AudioElement([String src]) { 630 factory AudioElement([String src]) {
631 if (!?src) { 631 if (!?src) {
632 return _AudioElementFactoryProvider.createAudioElement(); 632 return _AudioElementFactoryProvider.createAudioElement();
633 } 633 }
634 return _AudioElementFactoryProvider.createAudioElement(src); 634 return _AudioElementFactoryProvider.createAudioElement(src);
635 } 635 }
636 } 636 }
637 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 637 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
638 // for details. All rights reserved. Use of this source code is governed by a 638 // for details. All rights reserved. Use of this source code is governed by a
639 // BSD-style license that can be found in the LICENSE file. 639 // BSD-style license that can be found in the LICENSE file.
640 640
641 641
642 /// @domName AudioGain 642 /// @domName AudioGain; @docsEditable true
643 class AudioGain extends AudioParam native "*AudioGain" { 643 class AudioGain extends AudioParam native "*AudioGain" {
644 } 644 }
645 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 645 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
646 // for details. All rights reserved. Use of this source code is governed by a 646 // for details. All rights reserved. Use of this source code is governed by a
647 // BSD-style license that can be found in the LICENSE file. 647 // BSD-style license that can be found in the LICENSE file.
648 648
649 649
650 /// @domName AudioListener 650 /// @domName AudioListener; @docsEditable true
651 class AudioListener native "*AudioListener" { 651 class AudioListener native "*AudioListener" {
652 652
653 /** @domName AudioListener.dopplerFactor */ 653 /** @domName AudioListener.dopplerFactor; @docsEditable true */
654 num dopplerFactor; 654 num dopplerFactor;
655 655
656 /** @domName AudioListener.speedOfSound */ 656 /** @domName AudioListener.speedOfSound; @docsEditable true */
657 num speedOfSound; 657 num speedOfSound;
658 658
659 /** @domName AudioListener.setOrientation */ 659 /** @domName AudioListener.setOrientation; @docsEditable true */
660 void setOrientation(num x, num y, num z, num xUp, num yUp, num zUp) native; 660 void setOrientation(num x, num y, num z, num xUp, num yUp, num zUp) native;
661 661
662 /** @domName AudioListener.setPosition */ 662 /** @domName AudioListener.setPosition; @docsEditable true */
663 void setPosition(num x, num y, num z) native; 663 void setPosition(num x, num y, num z) native;
664 664
665 /** @domName AudioListener.setVelocity */ 665 /** @domName AudioListener.setVelocity; @docsEditable true */
666 void setVelocity(num x, num y, num z) native; 666 void setVelocity(num x, num y, num z) native;
667 } 667 }
668 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 668 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
669 // for details. All rights reserved. Use of this source code is governed by a 669 // for details. All rights reserved. Use of this source code is governed by a
670 // BSD-style license that can be found in the LICENSE file. 670 // BSD-style license that can be found in the LICENSE file.
671 671
672 672
673 /// @domName AudioNode 673 /// @domName AudioNode; @docsEditable true
674 class AudioNode native "*AudioNode" { 674 class AudioNode native "*AudioNode" {
675 675
676 /** @domName AudioNode.context */ 676 /** @domName AudioNode.context; @docsEditable true */
677 final AudioContext context; 677 final AudioContext context;
678 678
679 /** @domName AudioNode.numberOfInputs */ 679 /** @domName AudioNode.numberOfInputs; @docsEditable true */
680 final int numberOfInputs; 680 final int numberOfInputs;
681 681
682 /** @domName AudioNode.numberOfOutputs */ 682 /** @domName AudioNode.numberOfOutputs; @docsEditable true */
683 final int numberOfOutputs; 683 final int numberOfOutputs;
684 684
685 /** @domName AudioNode.connect */ 685 /** @domName AudioNode.connect; @docsEditable true */
686 void connect(destination, int output, [int input]) native; 686 void connect(destination, int output, [int input]) native;
687 687
688 /** @domName AudioNode.disconnect */ 688 /** @domName AudioNode.disconnect; @docsEditable true */
689 void disconnect(int output) native; 689 void disconnect(int output) native;
690 } 690 }
691 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 691 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
692 // for details. All rights reserved. Use of this source code is governed by a 692 // for details. All rights reserved. Use of this source code is governed by a
693 // BSD-style license that can be found in the LICENSE file. 693 // BSD-style license that can be found in the LICENSE file.
694 694
695 695
696 /// @domName AudioParam 696 /// @domName AudioParam; @docsEditable true
697 class AudioParam native "*AudioParam" { 697 class AudioParam native "*AudioParam" {
698 698
699 /** @domName AudioParam.defaultValue */ 699 /** @domName AudioParam.defaultValue; @docsEditable true */
700 final num defaultValue; 700 final num defaultValue;
701 701
702 /** @domName AudioParam.maxValue */ 702 /** @domName AudioParam.maxValue; @docsEditable true */
703 final num maxValue; 703 final num maxValue;
704 704
705 /** @domName AudioParam.minValue */ 705 /** @domName AudioParam.minValue; @docsEditable true */
706 final num minValue; 706 final num minValue;
707 707
708 /** @domName AudioParam.name */ 708 /** @domName AudioParam.name; @docsEditable true */
709 final String name; 709 final String name;
710 710
711 /** @domName AudioParam.units */ 711 /** @domName AudioParam.units; @docsEditable true */
712 final int units; 712 final int units;
713 713
714 /** @domName AudioParam.value */ 714 /** @domName AudioParam.value; @docsEditable true */
715 num value; 715 num value;
716 716
717 /** @domName AudioParam.cancelScheduledValues */ 717 /** @domName AudioParam.cancelScheduledValues; @docsEditable true */
718 void cancelScheduledValues(num startTime) native; 718 void cancelScheduledValues(num startTime) native;
719 719
720 /** @domName AudioParam.exponentialRampToValueAtTime */ 720 /** @domName AudioParam.exponentialRampToValueAtTime; @docsEditable true */
721 void exponentialRampToValueAtTime(num value, num time) native; 721 void exponentialRampToValueAtTime(num value, num time) native;
722 722
723 /** @domName AudioParam.linearRampToValueAtTime */ 723 /** @domName AudioParam.linearRampToValueAtTime; @docsEditable true */
724 void linearRampToValueAtTime(num value, num time) native; 724 void linearRampToValueAtTime(num value, num time) native;
725 725
726 /** @domName AudioParam.setTargetAtTime */ 726 /** @domName AudioParam.setTargetAtTime; @docsEditable true */
727 void setTargetAtTime(num target, num time, num timeConstant) native; 727 void setTargetAtTime(num target, num time, num timeConstant) native;
728 728
729 /** @domName AudioParam.setValueAtTime */ 729 /** @domName AudioParam.setValueAtTime; @docsEditable true */
730 void setValueAtTime(num value, num time) native; 730 void setValueAtTime(num value, num time) native;
731 731
732 /** @domName AudioParam.setValueCurveAtTime */ 732 /** @domName AudioParam.setValueCurveAtTime; @docsEditable true */
733 void setValueCurveAtTime(Float32Array values, num time, num duration) native; 733 void setValueCurveAtTime(Float32Array values, num time, num duration) native;
734 } 734 }
735 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 735 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
736 // for details. All rights reserved. Use of this source code is governed by a 736 // for details. All rights reserved. Use of this source code is governed by a
737 // BSD-style license that can be found in the LICENSE file. 737 // BSD-style license that can be found in the LICENSE file.
738 738
739 739
740 /// @domName AudioProcessingEvent 740 /// @domName AudioProcessingEvent; @docsEditable true
741 class AudioProcessingEvent extends Event native "*AudioProcessingEvent" { 741 class AudioProcessingEvent extends Event native "*AudioProcessingEvent" {
742 742
743 /** @domName AudioProcessingEvent.inputBuffer */ 743 /** @domName AudioProcessingEvent.inputBuffer; @docsEditable true */
744 final AudioBuffer inputBuffer; 744 final AudioBuffer inputBuffer;
745 745
746 /** @domName AudioProcessingEvent.outputBuffer */ 746 /** @domName AudioProcessingEvent.outputBuffer; @docsEditable true */
747 final AudioBuffer outputBuffer; 747 final AudioBuffer outputBuffer;
748 } 748 }
749 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 749 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
750 // for details. All rights reserved. Use of this source code is governed by a 750 // for details. All rights reserved. Use of this source code is governed by a
751 // BSD-style license that can be found in the LICENSE file. 751 // BSD-style license that can be found in the LICENSE file.
752 752
753 753
754 /// @domName AudioSourceNode 754 /// @domName AudioSourceNode; @docsEditable true
755 class AudioSourceNode extends AudioNode native "*AudioSourceNode" { 755 class AudioSourceNode extends AudioNode native "*AudioSourceNode" {
756 } 756 }
757 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 757 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
758 // for details. All rights reserved. Use of this source code is governed by a 758 // for details. All rights reserved. Use of this source code is governed by a
759 // BSD-style license that can be found in the LICENSE file. 759 // BSD-style license that can be found in the LICENSE file.
760 760
761 761
762 /// @domName HTMLBRElement 762 /// @domName HTMLBRElement; @docsEditable true
763 class BRElement extends Element implements Element native "*HTMLBRElement" { 763 class BRElement extends Element implements Element native "*HTMLBRElement" {
764 764
765 factory BRElement() => document.$dom_createElement("br"); 765 factory BRElement() => document.$dom_createElement("br");
766 766
767 /** @domName HTMLBRElement.clear */ 767 /** @domName HTMLBRElement.clear; @docsEditable true */
768 String clear; 768 String clear;
769 } 769 }
770 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 770 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
771 // for details. All rights reserved. Use of this source code is governed by a 771 // for details. All rights reserved. Use of this source code is governed by a
772 // BSD-style license that can be found in the LICENSE file. 772 // BSD-style license that can be found in the LICENSE file.
773 773
774 774
775 /// @domName BarInfo 775 /// @domName BarInfo; @docsEditable true
776 class BarInfo native "*BarInfo" { 776 class BarInfo native "*BarInfo" {
777 777
778 /** @domName BarInfo.visible */ 778 /** @domName BarInfo.visible; @docsEditable true */
779 final bool visible; 779 final bool visible;
780 } 780 }
781 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 781 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
782 // for details. All rights reserved. Use of this source code is governed by a 782 // for details. All rights reserved. Use of this source code is governed by a
783 // BSD-style license that can be found in the LICENSE file. 783 // BSD-style license that can be found in the LICENSE file.
784 784
785 785
786 /// @domName HTMLBaseElement 786 /// @domName HTMLBaseElement; @docsEditable true
787 class BaseElement extends Element implements Element native "*HTMLBaseElement" { 787 class BaseElement extends Element implements Element native "*HTMLBaseElement" {
788 788
789 factory BaseElement() => document.$dom_createElement("base"); 789 factory BaseElement() => document.$dom_createElement("base");
790 790
791 /** @domName HTMLBaseElement.href */ 791 /** @domName HTMLBaseElement.href; @docsEditable true */
792 String href; 792 String href;
793 793
794 /** @domName HTMLBaseElement.target */ 794 /** @domName HTMLBaseElement.target; @docsEditable true */
795 String target; 795 String target;
796 } 796 }
797 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 797 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
798 // for details. All rights reserved. Use of this source code is governed by a 798 // for details. All rights reserved. Use of this source code is governed by a
799 // BSD-style license that can be found in the LICENSE file. 799 // BSD-style license that can be found in the LICENSE file.
800 800
801 801
802 /// @domName HTMLBaseFontElement 802 /// @domName HTMLBaseFontElement; @docsEditable true
803 class BaseFontElement extends Element implements Element native "*HTMLBaseFontEl ement" { 803 class BaseFontElement extends Element implements Element native "*HTMLBaseFontEl ement" {
804 804
805 /** @domName HTMLBaseFontElement.color */ 805 /** @domName HTMLBaseFontElement.color; @docsEditable true */
806 String color; 806 String color;
807 807
808 /** @domName HTMLBaseFontElement.face */ 808 /** @domName HTMLBaseFontElement.face; @docsEditable true */
809 String face; 809 String face;
810 810
811 /** @domName HTMLBaseFontElement.size */ 811 /** @domName HTMLBaseFontElement.size; @docsEditable true */
812 int size; 812 int size;
813 } 813 }
814 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 814 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
815 // for details. All rights reserved. Use of this source code is governed by a 815 // for details. All rights reserved. Use of this source code is governed by a
816 // BSD-style license that can be found in the LICENSE file. 816 // BSD-style license that can be found in the LICENSE file.
817 817
818 818
819 /// @domName BatteryManager 819 /// @domName BatteryManager; @docsEditable true
820 class BatteryManager extends EventTarget native "*BatteryManager" { 820 class BatteryManager extends EventTarget native "*BatteryManager" {
821 821
822 /** 822 /**
823 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 823 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent; @docsEditable true
824 */ 824 */
825 BatteryManagerEvents get on => 825 BatteryManagerEvents get on =>
826 new BatteryManagerEvents(this); 826 new BatteryManagerEvents(this);
827 827
828 /** @domName BatteryManager.charging */ 828 /** @domName BatteryManager.charging; @docsEditable true */
829 final bool charging; 829 final bool charging;
830 830
831 /** @domName BatteryManager.chargingTime */ 831 /** @domName BatteryManager.chargingTime; @docsEditable true */
832 final num chargingTime; 832 final num chargingTime;
833 833
834 /** @domName BatteryManager.dischargingTime */ 834 /** @domName BatteryManager.dischargingTime; @docsEditable true */
835 final num dischargingTime; 835 final num dischargingTime;
836 836
837 /** @domName BatteryManager.level */ 837 /** @domName BatteryManager.level; @docsEditable true */
838 final num level; 838 final num level;
839 839
840 /** @domName BatteryManager.addEventListener */ 840 /** @domName BatteryManager.addEventListener; @docsEditable true */
841 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 841 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
842 842
843 /** @domName BatteryManager.dispatchEvent */ 843 /** @domName BatteryManager.dispatchEvent; @docsEditable true */
844 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; 844 bool $dom_dispatchEvent(Event event) native "dispatchEvent";
845 845
846 /** @domName BatteryManager.removeEventListener */ 846 /** @domName BatteryManager.removeEventListener; @docsEditable true */
847 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 847 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
848 } 848 }
849 849
850 class BatteryManagerEvents extends Events { 850 class BatteryManagerEvents extends Events {
851 BatteryManagerEvents(EventTarget _ptr) : super(_ptr); 851 BatteryManagerEvents(EventTarget _ptr) : super(_ptr);
852 852
853 EventListenerList get chargingChange => this['chargingchange']; 853 EventListenerList get chargingChange => this['chargingchange'];
854 854
855 EventListenerList get chargingTimeChange => this['chargingtimechange']; 855 EventListenerList get chargingTimeChange => this['chargingtimechange'];
856 856
857 EventListenerList get dischargingTimeChange => this['dischargingtimechange']; 857 EventListenerList get dischargingTimeChange => this['dischargingtimechange'];
858 858
859 EventListenerList get levelChange => this['levelchange']; 859 EventListenerList get levelChange => this['levelchange'];
860 } 860 }
861 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 861 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
862 // for details. All rights reserved. Use of this source code is governed by a 862 // for details. All rights reserved. Use of this source code is governed by a
863 // BSD-style license that can be found in the LICENSE file. 863 // BSD-style license that can be found in the LICENSE file.
864 864
865 865
866 /// @domName BeforeLoadEvent 866 /// @domName BeforeLoadEvent; @docsEditable true
867 class BeforeLoadEvent extends Event native "*BeforeLoadEvent" { 867 class BeforeLoadEvent extends Event native "*BeforeLoadEvent" {
868 868
869 /** @domName BeforeLoadEvent.url */ 869 /** @domName BeforeLoadEvent.url; @docsEditable true */
870 final String url; 870 final String url;
871 } 871 }
872 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 872 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
873 // for details. All rights reserved. Use of this source code is governed by a 873 // for details. All rights reserved. Use of this source code is governed by a
874 // BSD-style license that can be found in the LICENSE file. 874 // BSD-style license that can be found in the LICENSE file.
875 875
876 876
877 /// @domName BiquadFilterNode 877 /// @domName BiquadFilterNode; @docsEditable true
878 class BiquadFilterNode extends AudioNode native "*BiquadFilterNode" { 878 class BiquadFilterNode extends AudioNode native "*BiquadFilterNode" {
879 879
880 static const int ALLPASS = 7; 880 static const int ALLPASS = 7;
881 881
882 static const int BANDPASS = 2; 882 static const int BANDPASS = 2;
883 883
884 static const int HIGHPASS = 1; 884 static const int HIGHPASS = 1;
885 885
886 static const int HIGHSHELF = 4; 886 static const int HIGHSHELF = 4;
887 887
888 static const int LOWPASS = 0; 888 static const int LOWPASS = 0;
889 889
890 static const int LOWSHELF = 3; 890 static const int LOWSHELF = 3;
891 891
892 static const int NOTCH = 6; 892 static const int NOTCH = 6;
893 893
894 static const int PEAKING = 5; 894 static const int PEAKING = 5;
895 895
896 /** @domName BiquadFilterNode.Q */ 896 /** @domName BiquadFilterNode.Q; @docsEditable true */
897 final AudioParam Q; 897 final AudioParam Q;
898 898
899 /** @domName BiquadFilterNode.frequency */ 899 /** @domName BiquadFilterNode.frequency; @docsEditable true */
900 final AudioParam frequency; 900 final AudioParam frequency;
901 901
902 /** @domName BiquadFilterNode.gain */ 902 /** @domName BiquadFilterNode.gain; @docsEditable true */
903 final AudioParam gain; 903 final AudioParam gain;
904 904
905 /** @domName BiquadFilterNode.type */ 905 /** @domName BiquadFilterNode.type; @docsEditable true */
906 int type; 906 int type;
907 907
908 /** @domName BiquadFilterNode.getFrequencyResponse */ 908 /** @domName BiquadFilterNode.getFrequencyResponse; @docsEditable true */
909 void getFrequencyResponse(Float32Array frequencyHz, Float32Array magResponse, Float32Array phaseResponse) native; 909 void getFrequencyResponse(Float32Array frequencyHz, Float32Array magResponse, Float32Array phaseResponse) native;
910 } 910 }
911 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 911 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
912 // for details. All rights reserved. Use of this source code is governed by a 912 // for details. All rights reserved. Use of this source code is governed by a
913 // BSD-style license that can be found in the LICENSE file. 913 // BSD-style license that can be found in the LICENSE file.
914 914
915 915
916 /// @domName Blob 916 /// @domName Blob; @docsEditable true
917 class Blob native "*Blob" { 917 class Blob native "*Blob" {
918 918
919 factory Blob(List blobParts, [String type, String endings]) { 919 factory Blob(List blobParts, [String type, String endings]) {
920 if (!?type) { 920 if (!?type) {
921 return _BlobFactoryProvider.createBlob(blobParts); 921 return _BlobFactoryProvider.createBlob(blobParts);
922 } 922 }
923 if (!?endings) { 923 if (!?endings) {
924 return _BlobFactoryProvider.createBlob(blobParts, type); 924 return _BlobFactoryProvider.createBlob(blobParts, type);
925 } 925 }
926 return _BlobFactoryProvider.createBlob(blobParts, type, endings); 926 return _BlobFactoryProvider.createBlob(blobParts, type, endings);
927 } 927 }
928 928
929 /** @domName Blob.size */ 929 /** @domName Blob.size; @docsEditable true */
930 final int size; 930 final int size;
931 931
932 /** @domName Blob.type */ 932 /** @domName Blob.type; @docsEditable true */
933 final String type; 933 final String type;
934 934
935 /** @domName Blob.slice */ 935 /** @domName Blob.slice; @docsEditable true */
936 Blob slice([int start, int end, String contentType]) native; 936 Blob slice([int start, int end, String contentType]) native;
937 } 937 }
938 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 938 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
939 // for details. All rights reserved. Use of this source code is governed by a 939 // for details. All rights reserved. Use of this source code is governed by a
940 // BSD-style license that can be found in the LICENSE file. 940 // BSD-style license that can be found in the LICENSE file.
941 941
942 942
943 /// @domName HTMLBodyElement 943 /// @domName HTMLBodyElement; @docsEditable true
944 class BodyElement extends Element implements Element native "*HTMLBodyElement" { 944 class BodyElement extends Element implements Element native "*HTMLBodyElement" {
945 945
946 factory BodyElement() => document.$dom_createElement("body"); 946 factory BodyElement() => document.$dom_createElement("body");
947 947
948 /** 948 /**
949 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 949 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent; @docsEditable true
950 */ 950 */
951 BodyElementEvents get on => 951 BodyElementEvents get on =>
952 new BodyElementEvents(this); 952 new BodyElementEvents(this);
953 953
954 /** @domName HTMLBodyElement.aLink */ 954 /** @domName HTMLBodyElement.aLink; @docsEditable true */
955 String aLink; 955 String aLink;
956 956
957 /** @domName HTMLBodyElement.background */ 957 /** @domName HTMLBodyElement.background; @docsEditable true */
958 String background; 958 String background;
959 959
960 /** @domName HTMLBodyElement.bgColor */ 960 /** @domName HTMLBodyElement.bgColor; @docsEditable true */
961 String bgColor; 961 String bgColor;
962 962
963 /** @domName HTMLBodyElement.link */ 963 /** @domName HTMLBodyElement.link; @docsEditable true */
964 String link; 964 String link;
965 965
966 /** @domName HTMLBodyElement.vLink */ 966 /** @domName HTMLBodyElement.vLink; @docsEditable true */
967 String vLink; 967 String vLink;
968 } 968 }
969 969
970 class BodyElementEvents extends ElementEvents { 970 class BodyElementEvents extends ElementEvents {
971 BodyElementEvents(EventTarget _ptr) : super(_ptr); 971 BodyElementEvents(EventTarget _ptr) : super(_ptr);
972 972
973 EventListenerList get beforeUnload => this['beforeunload']; 973 EventListenerList get beforeUnload => this['beforeunload'];
974 974
975 EventListenerList get blur => this['blur']; 975 EventListenerList get blur => this['blur'];
976 976
(...skipping 17 matching lines...) Expand all
994 994
995 EventListenerList get storage => this['storage']; 995 EventListenerList get storage => this['storage'];
996 996
997 EventListenerList get unload => this['unload']; 997 EventListenerList get unload => this['unload'];
998 } 998 }
999 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 999 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1000 // for details. All rights reserved. Use of this source code is governed by a 1000 // for details. All rights reserved. Use of this source code is governed by a
1001 // BSD-style license that can be found in the LICENSE file. 1001 // BSD-style license that can be found in the LICENSE file.
1002 1002
1003 1003
1004 /// @domName HTMLButtonElement 1004 /// @domName HTMLButtonElement; @docsEditable true
1005 class ButtonElement extends Element implements Element native "*HTMLButtonElemen t" { 1005 class ButtonElement extends Element implements Element native "*HTMLButtonElemen t" {
1006 1006
1007 factory ButtonElement() => document.$dom_createElement("button"); 1007 factory ButtonElement() => document.$dom_createElement("button");
1008 1008
1009 /** @domName HTMLButtonElement.autofocus */ 1009 /** @domName HTMLButtonElement.autofocus; @docsEditable true */
1010 bool autofocus; 1010 bool autofocus;
1011 1011
1012 /** @domName HTMLButtonElement.disabled */ 1012 /** @domName HTMLButtonElement.disabled; @docsEditable true */
1013 bool disabled; 1013 bool disabled;
1014 1014
1015 /** @domName HTMLButtonElement.form */ 1015 /** @domName HTMLButtonElement.form; @docsEditable true */
1016 final FormElement form; 1016 final FormElement form;
1017 1017
1018 /** @domName HTMLButtonElement.formAction */ 1018 /** @domName HTMLButtonElement.formAction; @docsEditable true */
1019 String formAction; 1019 String formAction;
1020 1020
1021 /** @domName HTMLButtonElement.formEnctype */ 1021 /** @domName HTMLButtonElement.formEnctype; @docsEditable true */
1022 String formEnctype; 1022 String formEnctype;
1023 1023
1024 /** @domName HTMLButtonElement.formMethod */ 1024 /** @domName HTMLButtonElement.formMethod; @docsEditable true */
1025 String formMethod; 1025 String formMethod;
1026 1026
1027 /** @domName HTMLButtonElement.formNoValidate */ 1027 /** @domName HTMLButtonElement.formNoValidate; @docsEditable true */
1028 bool formNoValidate; 1028 bool formNoValidate;
1029 1029
1030 /** @domName HTMLButtonElement.formTarget */ 1030 /** @domName HTMLButtonElement.formTarget; @docsEditable true */
1031 String formTarget; 1031 String formTarget;
1032 1032
1033 /** @domName HTMLButtonElement.labels */ 1033 /** @domName HTMLButtonElement.labels; @docsEditable true */
1034 final List<Node> labels; 1034 final List<Node> labels;
1035 1035
1036 /** @domName HTMLButtonElement.name */ 1036 /** @domName HTMLButtonElement.name; @docsEditable true */
1037 String name; 1037 String name;
1038 1038
1039 /** @domName HTMLButtonElement.type */ 1039 /** @domName HTMLButtonElement.type; @docsEditable true */
1040 String type; 1040 String type;
1041 1041
1042 /** @domName HTMLButtonElement.validationMessage */ 1042 /** @domName HTMLButtonElement.validationMessage; @docsEditable true */
1043 final String validationMessage; 1043 final String validationMessage;
1044 1044
1045 /** @domName HTMLButtonElement.validity */ 1045 /** @domName HTMLButtonElement.validity; @docsEditable true */
1046 final ValidityState validity; 1046 final ValidityState validity;
1047 1047
1048 /** @domName HTMLButtonElement.value */ 1048 /** @domName HTMLButtonElement.value; @docsEditable true */
1049 String value; 1049 String value;
1050 1050
1051 /** @domName HTMLButtonElement.willValidate */ 1051 /** @domName HTMLButtonElement.willValidate; @docsEditable true */
1052 final bool willValidate; 1052 final bool willValidate;
1053 1053
1054 /** @domName HTMLButtonElement.checkValidity */ 1054 /** @domName HTMLButtonElement.checkValidity; @docsEditable true */
1055 bool checkValidity() native; 1055 bool checkValidity() native;
1056 1056
1057 /** @domName HTMLButtonElement.setCustomValidity */ 1057 /** @domName HTMLButtonElement.setCustomValidity; @docsEditable true */
1058 void setCustomValidity(String error) native; 1058 void setCustomValidity(String error) native;
1059 } 1059 }
1060 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1060 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1061 // for details. All rights reserved. Use of this source code is governed by a 1061 // for details. All rights reserved. Use of this source code is governed by a
1062 // BSD-style license that can be found in the LICENSE file. 1062 // BSD-style license that can be found in the LICENSE file.
1063 1063
1064 1064
1065 /// @domName CDATASection 1065 /// @domName CDATASection; @docsEditable true
1066 class CDATASection extends Text native "*CDATASection" { 1066 class CDATASection extends Text native "*CDATASection" {
1067 } 1067 }
1068 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1068 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1069 // for details. All rights reserved. Use of this source code is governed by a 1069 // for details. All rights reserved. Use of this source code is governed by a
1070 // BSD-style license that can be found in the LICENSE file. 1070 // BSD-style license that can be found in the LICENSE file.
1071 1071
1072 1072
1073 /// @domName CSSCharsetRule 1073 /// @domName CSSCharsetRule; @docsEditable true
1074 class CSSCharsetRule extends CSSRule native "*CSSCharsetRule" { 1074 class CSSCharsetRule extends CSSRule native "*CSSCharsetRule" {
1075 1075
1076 /** @domName CSSCharsetRule.encoding */ 1076 /** @domName CSSCharsetRule.encoding; @docsEditable true */
1077 String encoding; 1077 String encoding;
1078 } 1078 }
1079 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1079 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1080 // for details. All rights reserved. Use of this source code is governed by a 1080 // for details. All rights reserved. Use of this source code is governed by a
1081 // BSD-style license that can be found in the LICENSE file. 1081 // BSD-style license that can be found in the LICENSE file.
1082 1082
1083 1083
1084 /// @domName CSSFontFaceRule 1084 /// @domName CSSFontFaceRule; @docsEditable true
1085 class CSSFontFaceRule extends CSSRule native "*CSSFontFaceRule" { 1085 class CSSFontFaceRule extends CSSRule native "*CSSFontFaceRule" {
1086 1086
1087 /** @domName CSSFontFaceRule.style */ 1087 /** @domName CSSFontFaceRule.style; @docsEditable true */
1088 final CSSStyleDeclaration style; 1088 final CSSStyleDeclaration style;
1089 } 1089 }
1090 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1090 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1091 // for details. All rights reserved. Use of this source code is governed by a 1091 // for details. All rights reserved. Use of this source code is governed by a
1092 // BSD-style license that can be found in the LICENSE file. 1092 // BSD-style license that can be found in the LICENSE file.
1093 1093
1094 1094
1095 /// @domName CSSImportRule 1095 /// @domName CSSImportRule; @docsEditable true
1096 class CSSImportRule extends CSSRule native "*CSSImportRule" { 1096 class CSSImportRule extends CSSRule native "*CSSImportRule" {
1097 1097
1098 /** @domName CSSImportRule.href */ 1098 /** @domName CSSImportRule.href; @docsEditable true */
1099 final String href; 1099 final String href;
1100 1100
1101 /** @domName CSSImportRule.media */ 1101 /** @domName CSSImportRule.media; @docsEditable true */
1102 final MediaList media; 1102 final MediaList media;
1103 1103
1104 /** @domName CSSImportRule.styleSheet */ 1104 /** @domName CSSImportRule.styleSheet; @docsEditable true */
1105 final CSSStyleSheet styleSheet; 1105 final CSSStyleSheet styleSheet;
1106 } 1106 }
1107 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1107 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1108 // for details. All rights reserved. Use of this source code is governed by a 1108 // for details. All rights reserved. Use of this source code is governed by a
1109 // BSD-style license that can be found in the LICENSE file. 1109 // BSD-style license that can be found in the LICENSE file.
1110 1110
1111 1111
1112 /// @domName WebKitCSSKeyframeRule 1112 /// @domName WebKitCSSKeyframeRule; @docsEditable true
1113 class CSSKeyframeRule extends CSSRule native "*WebKitCSSKeyframeRule" { 1113 class CSSKeyframeRule extends CSSRule native "*WebKitCSSKeyframeRule" {
1114 1114
1115 /** @domName WebKitCSSKeyframeRule.keyText */ 1115 /** @domName WebKitCSSKeyframeRule.keyText; @docsEditable true */
1116 String keyText; 1116 String keyText;
1117 1117
1118 /** @domName WebKitCSSKeyframeRule.style */ 1118 /** @domName WebKitCSSKeyframeRule.style; @docsEditable true */
1119 final CSSStyleDeclaration style; 1119 final CSSStyleDeclaration style;
1120 } 1120 }
1121 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1121 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1122 // for details. All rights reserved. Use of this source code is governed by a 1122 // for details. All rights reserved. Use of this source code is governed by a
1123 // BSD-style license that can be found in the LICENSE file. 1123 // BSD-style license that can be found in the LICENSE file.
1124 1124
1125 1125
1126 /// @domName WebKitCSSKeyframesRule 1126 /// @domName WebKitCSSKeyframesRule; @docsEditable true
1127 class CSSKeyframesRule extends CSSRule native "*WebKitCSSKeyframesRule" { 1127 class CSSKeyframesRule extends CSSRule native "*WebKitCSSKeyframesRule" {
1128 1128
1129 /** @domName WebKitCSSKeyframesRule.cssRules */ 1129 /** @domName WebKitCSSKeyframesRule.cssRules; @docsEditable true */
1130 final List<CSSRule> cssRules; 1130 final List<CSSRule> cssRules;
1131 1131
1132 /** @domName WebKitCSSKeyframesRule.name */ 1132 /** @domName WebKitCSSKeyframesRule.name; @docsEditable true */
1133 String name; 1133 String name;
1134 1134
1135 /** @domName WebKitCSSKeyframesRule.deleteRule */ 1135 /** @domName WebKitCSSKeyframesRule.deleteRule; @docsEditable true */
1136 void deleteRule(String key) native; 1136 void deleteRule(String key) native;
1137 1137
1138 /** @domName WebKitCSSKeyframesRule.findRule */ 1138 /** @domName WebKitCSSKeyframesRule.findRule; @docsEditable true */
1139 CSSKeyframeRule findRule(String key) native; 1139 CSSKeyframeRule findRule(String key) native;
1140 1140
1141 /** @domName WebKitCSSKeyframesRule.insertRule */ 1141 /** @domName WebKitCSSKeyframesRule.insertRule; @docsEditable true */
1142 void insertRule(String rule) native; 1142 void insertRule(String rule) native;
1143 } 1143 }
1144 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1144 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1145 // for details. All rights reserved. Use of this source code is governed by a 1145 // for details. All rights reserved. Use of this source code is governed by a
1146 // BSD-style license that can be found in the LICENSE file. 1146 // BSD-style license that can be found in the LICENSE file.
1147 1147
1148 1148
1149 /// @domName WebKitCSSMatrix 1149 /// @domName WebKitCSSMatrix; @docsEditable true
1150 class CSSMatrix native "*WebKitCSSMatrix" { 1150 class CSSMatrix native "*WebKitCSSMatrix" {
1151 1151
1152 factory CSSMatrix([String cssValue]) { 1152 factory CSSMatrix([String cssValue]) {
1153 if (!?cssValue) { 1153 if (!?cssValue) {
1154 return _CSSMatrixFactoryProvider.createCSSMatrix(); 1154 return _CSSMatrixFactoryProvider.createCSSMatrix();
1155 } 1155 }
1156 return _CSSMatrixFactoryProvider.createCSSMatrix(cssValue); 1156 return _CSSMatrixFactoryProvider.createCSSMatrix(cssValue);
1157 } 1157 }
1158 1158
1159 /** @domName WebKitCSSMatrix.a */ 1159 /** @domName WebKitCSSMatrix.a; @docsEditable true */
1160 num a; 1160 num a;
1161 1161
1162 /** @domName WebKitCSSMatrix.b */ 1162 /** @domName WebKitCSSMatrix.b; @docsEditable true */
1163 num b; 1163 num b;
1164 1164
1165 /** @domName WebKitCSSMatrix.c */ 1165 /** @domName WebKitCSSMatrix.c; @docsEditable true */
1166 num c; 1166 num c;
1167 1167
1168 /** @domName WebKitCSSMatrix.d */ 1168 /** @domName WebKitCSSMatrix.d; @docsEditable true */
1169 num d; 1169 num d;
1170 1170
1171 /** @domName WebKitCSSMatrix.e */ 1171 /** @domName WebKitCSSMatrix.e; @docsEditable true */
1172 num e; 1172 num e;
1173 1173
1174 /** @domName WebKitCSSMatrix.f */ 1174 /** @domName WebKitCSSMatrix.f; @docsEditable true */
1175 num f; 1175 num f;
1176 1176
1177 /** @domName WebKitCSSMatrix.m11 */ 1177 /** @domName WebKitCSSMatrix.m11; @docsEditable true */
1178 num m11; 1178 num m11;
1179 1179
1180 /** @domName WebKitCSSMatrix.m12 */ 1180 /** @domName WebKitCSSMatrix.m12; @docsEditable true */
1181 num m12; 1181 num m12;
1182 1182
1183 /** @domName WebKitCSSMatrix.m13 */ 1183 /** @domName WebKitCSSMatrix.m13; @docsEditable true */
1184 num m13; 1184 num m13;
1185 1185
1186 /** @domName WebKitCSSMatrix.m14 */ 1186 /** @domName WebKitCSSMatrix.m14; @docsEditable true */
1187 num m14; 1187 num m14;
1188 1188
1189 /** @domName WebKitCSSMatrix.m21 */ 1189 /** @domName WebKitCSSMatrix.m21; @docsEditable true */
1190 num m21; 1190 num m21;
1191 1191
1192 /** @domName WebKitCSSMatrix.m22 */ 1192 /** @domName WebKitCSSMatrix.m22; @docsEditable true */
1193 num m22; 1193 num m22;
1194 1194
1195 /** @domName WebKitCSSMatrix.m23 */ 1195 /** @domName WebKitCSSMatrix.m23; @docsEditable true */
1196 num m23; 1196 num m23;
1197 1197
1198 /** @domName WebKitCSSMatrix.m24 */ 1198 /** @domName WebKitCSSMatrix.m24; @docsEditable true */
1199 num m24; 1199 num m24;
1200 1200
1201 /** @domName WebKitCSSMatrix.m31 */ 1201 /** @domName WebKitCSSMatrix.m31; @docsEditable true */
1202 num m31; 1202 num m31;
1203 1203
1204 /** @domName WebKitCSSMatrix.m32 */ 1204 /** @domName WebKitCSSMatrix.m32; @docsEditable true */
1205 num m32; 1205 num m32;
1206 1206
1207 /** @domName WebKitCSSMatrix.m33 */ 1207 /** @domName WebKitCSSMatrix.m33; @docsEditable true */
1208 num m33; 1208 num m33;
1209 1209
1210 /** @domName WebKitCSSMatrix.m34 */ 1210 /** @domName WebKitCSSMatrix.m34; @docsEditable true */
1211 num m34; 1211 num m34;
1212 1212
1213 /** @domName WebKitCSSMatrix.m41 */ 1213 /** @domName WebKitCSSMatrix.m41; @docsEditable true */
1214 num m41; 1214 num m41;
1215 1215
1216 /** @domName WebKitCSSMatrix.m42 */ 1216 /** @domName WebKitCSSMatrix.m42; @docsEditable true */
1217 num m42; 1217 num m42;
1218 1218
1219 /** @domName WebKitCSSMatrix.m43 */ 1219 /** @domName WebKitCSSMatrix.m43; @docsEditable true */
1220 num m43; 1220 num m43;
1221 1221
1222 /** @domName WebKitCSSMatrix.m44 */ 1222 /** @domName WebKitCSSMatrix.m44; @docsEditable true */
1223 num m44; 1223 num m44;
1224 1224
1225 /** @domName WebKitCSSMatrix.inverse */ 1225 /** @domName WebKitCSSMatrix.inverse; @docsEditable true */
1226 CSSMatrix inverse() native; 1226 CSSMatrix inverse() native;
1227 1227
1228 /** @domName WebKitCSSMatrix.multiply */ 1228 /** @domName WebKitCSSMatrix.multiply; @docsEditable true */
1229 CSSMatrix multiply(CSSMatrix secondMatrix) native; 1229 CSSMatrix multiply(CSSMatrix secondMatrix) native;
1230 1230
1231 /** @domName WebKitCSSMatrix.rotate */ 1231 /** @domName WebKitCSSMatrix.rotate; @docsEditable true */
1232 CSSMatrix rotate(num rotX, num rotY, num rotZ) native; 1232 CSSMatrix rotate(num rotX, num rotY, num rotZ) native;
1233 1233
1234 /** @domName WebKitCSSMatrix.rotateAxisAngle */ 1234 /** @domName WebKitCSSMatrix.rotateAxisAngle; @docsEditable true */
1235 CSSMatrix rotateAxisAngle(num x, num y, num z, num angle) native; 1235 CSSMatrix rotateAxisAngle(num x, num y, num z, num angle) native;
1236 1236
1237 /** @domName WebKitCSSMatrix.scale */ 1237 /** @domName WebKitCSSMatrix.scale; @docsEditable true */
1238 CSSMatrix scale(num scaleX, num scaleY, num scaleZ) native; 1238 CSSMatrix scale(num scaleX, num scaleY, num scaleZ) native;
1239 1239
1240 /** @domName WebKitCSSMatrix.setMatrixValue */ 1240 /** @domName WebKitCSSMatrix.setMatrixValue; @docsEditable true */
1241 void setMatrixValue(String string) native; 1241 void setMatrixValue(String string) native;
1242 1242
1243 /** @domName WebKitCSSMatrix.skewX */ 1243 /** @domName WebKitCSSMatrix.skewX; @docsEditable true */
1244 CSSMatrix skewX(num angle) native; 1244 CSSMatrix skewX(num angle) native;
1245 1245
1246 /** @domName WebKitCSSMatrix.skewY */ 1246 /** @domName WebKitCSSMatrix.skewY; @docsEditable true */
1247 CSSMatrix skewY(num angle) native; 1247 CSSMatrix skewY(num angle) native;
1248 1248
1249 /** @domName WebKitCSSMatrix.toString */ 1249 /** @domName WebKitCSSMatrix.toString; @docsEditable true */
1250 String toString() native; 1250 String toString() native;
1251 1251
1252 /** @domName WebKitCSSMatrix.translate */ 1252 /** @domName WebKitCSSMatrix.translate; @docsEditable true */
1253 CSSMatrix translate(num x, num y, num z) native; 1253 CSSMatrix translate(num x, num y, num z) native;
1254 } 1254 }
1255 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1255 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1256 // for details. All rights reserved. Use of this source code is governed by a 1256 // for details. All rights reserved. Use of this source code is governed by a
1257 // BSD-style license that can be found in the LICENSE file. 1257 // BSD-style license that can be found in the LICENSE file.
1258 1258
1259 1259
1260 /// @domName CSSMediaRule 1260 /// @domName CSSMediaRule; @docsEditable true
1261 class CSSMediaRule extends CSSRule native "*CSSMediaRule" { 1261 class CSSMediaRule extends CSSRule native "*CSSMediaRule" {
1262 1262
1263 /** @domName CSSMediaRule.cssRules */ 1263 /** @domName CSSMediaRule.cssRules; @docsEditable true */
1264 final List<CSSRule> cssRules; 1264 final List<CSSRule> cssRules;
1265 1265
1266 /** @domName CSSMediaRule.media */ 1266 /** @domName CSSMediaRule.media; @docsEditable true */
1267 final MediaList media; 1267 final MediaList media;
1268 1268
1269 /** @domName CSSMediaRule.deleteRule */ 1269 /** @domName CSSMediaRule.deleteRule; @docsEditable true */
1270 void deleteRule(int index) native; 1270 void deleteRule(int index) native;
1271 1271
1272 /** @domName CSSMediaRule.insertRule */ 1272 /** @domName CSSMediaRule.insertRule; @docsEditable true */
1273 int insertRule(String rule, int index) native; 1273 int insertRule(String rule, int index) native;
1274 } 1274 }
1275 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1275 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1276 // for details. All rights reserved. Use of this source code is governed by a 1276 // for details. All rights reserved. Use of this source code is governed by a
1277 // BSD-style license that can be found in the LICENSE file. 1277 // BSD-style license that can be found in the LICENSE file.
1278 1278
1279 1279
1280 /// @domName CSSPageRule 1280 /// @domName CSSPageRule; @docsEditable true
1281 class CSSPageRule extends CSSRule native "*CSSPageRule" { 1281 class CSSPageRule extends CSSRule native "*CSSPageRule" {
1282 1282
1283 /** @domName CSSPageRule.selectorText */ 1283 /** @domName CSSPageRule.selectorText; @docsEditable true */
1284 String selectorText; 1284 String selectorText;
1285 1285
1286 /** @domName CSSPageRule.style */ 1286 /** @domName CSSPageRule.style; @docsEditable true */
1287 final CSSStyleDeclaration style; 1287 final CSSStyleDeclaration style;
1288 } 1288 }
1289 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1289 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1290 // for details. All rights reserved. Use of this source code is governed by a 1290 // for details. All rights reserved. Use of this source code is governed by a
1291 // BSD-style license that can be found in the LICENSE file. 1291 // BSD-style license that can be found in the LICENSE file.
1292 1292
1293 1293
1294 /// @domName CSSPrimitiveValue 1294 /// @domName CSSPrimitiveValue; @docsEditable true
1295 class CSSPrimitiveValue extends CSSValue native "*CSSPrimitiveValue" { 1295 class CSSPrimitiveValue extends CSSValue native "*CSSPrimitiveValue" {
1296 1296
1297 static const int CSS_ATTR = 22; 1297 static const int CSS_ATTR = 22;
1298 1298
1299 static const int CSS_CM = 6; 1299 static const int CSS_CM = 6;
1300 1300
1301 static const int CSS_COUNTER = 23; 1301 static const int CSS_COUNTER = 23;
1302 1302
1303 static const int CSS_DEG = 11; 1303 static const int CSS_DEG = 11;
1304 1304
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
1345 static const int CSS_UNKNOWN = 0; 1345 static const int CSS_UNKNOWN = 0;
1346 1346
1347 static const int CSS_URI = 20; 1347 static const int CSS_URI = 20;
1348 1348
1349 static const int CSS_VH = 27; 1349 static const int CSS_VH = 27;
1350 1350
1351 static const int CSS_VMIN = 28; 1351 static const int CSS_VMIN = 28;
1352 1352
1353 static const int CSS_VW = 26; 1353 static const int CSS_VW = 26;
1354 1354
1355 /** @domName CSSPrimitiveValue.primitiveType */ 1355 /** @domName CSSPrimitiveValue.primitiveType; @docsEditable true */
1356 final int primitiveType; 1356 final int primitiveType;
1357 1357
1358 /** @domName CSSPrimitiveValue.getCounterValue */ 1358 /** @domName CSSPrimitiveValue.getCounterValue; @docsEditable true */
1359 Counter getCounterValue() native; 1359 Counter getCounterValue() native;
1360 1360
1361 /** @domName CSSPrimitiveValue.getFloatValue */ 1361 /** @domName CSSPrimitiveValue.getFloatValue; @docsEditable true */
1362 num getFloatValue(int unitType) native; 1362 num getFloatValue(int unitType) native;
1363 1363
1364 /** @domName CSSPrimitiveValue.getRGBColorValue */ 1364 /** @domName CSSPrimitiveValue.getRGBColorValue; @docsEditable true */
1365 RGBColor getRGBColorValue() native; 1365 RGBColor getRGBColorValue() native;
1366 1366
1367 /** @domName CSSPrimitiveValue.getRectValue */ 1367 /** @domName CSSPrimitiveValue.getRectValue; @docsEditable true */
1368 Rect getRectValue() native; 1368 Rect getRectValue() native;
1369 1369
1370 /** @domName CSSPrimitiveValue.getStringValue */ 1370 /** @domName CSSPrimitiveValue.getStringValue; @docsEditable true */
1371 String getStringValue() native; 1371 String getStringValue() native;
1372 1372
1373 /** @domName CSSPrimitiveValue.setFloatValue */ 1373 /** @domName CSSPrimitiveValue.setFloatValue; @docsEditable true */
1374 void setFloatValue(int unitType, num floatValue) native; 1374 void setFloatValue(int unitType, num floatValue) native;
1375 1375
1376 /** @domName CSSPrimitiveValue.setStringValue */ 1376 /** @domName CSSPrimitiveValue.setStringValue; @docsEditable true */
1377 void setStringValue(int stringType, String stringValue) native; 1377 void setStringValue(int stringType, String stringValue) native;
1378 } 1378 }
1379 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1379 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1380 // for details. All rights reserved. Use of this source code is governed by a 1380 // for details. All rights reserved. Use of this source code is governed by a
1381 // BSD-style license that can be found in the LICENSE file. 1381 // BSD-style license that can be found in the LICENSE file.
1382 1382
1383 1383
1384 /// @domName CSSRule 1384 /// @domName CSSRule; @docsEditable true
1385 class CSSRule native "*CSSRule" { 1385 class CSSRule native "*CSSRule" {
1386 1386
1387 static const int CHARSET_RULE = 2; 1387 static const int CHARSET_RULE = 2;
1388 1388
1389 static const int FONT_FACE_RULE = 5; 1389 static const int FONT_FACE_RULE = 5;
1390 1390
1391 static const int IMPORT_RULE = 3; 1391 static const int IMPORT_RULE = 3;
1392 1392
1393 static const int MEDIA_RULE = 4; 1393 static const int MEDIA_RULE = 4;
1394 1394
1395 static const int PAGE_RULE = 6; 1395 static const int PAGE_RULE = 6;
1396 1396
1397 static const int STYLE_RULE = 1; 1397 static const int STYLE_RULE = 1;
1398 1398
1399 static const int UNKNOWN_RULE = 0; 1399 static const int UNKNOWN_RULE = 0;
1400 1400
1401 static const int WEBKIT_KEYFRAMES_RULE = 7; 1401 static const int WEBKIT_KEYFRAMES_RULE = 7;
1402 1402
1403 static const int WEBKIT_KEYFRAME_RULE = 8; 1403 static const int WEBKIT_KEYFRAME_RULE = 8;
1404 1404
1405 /** @domName CSSRule.cssText */ 1405 /** @domName CSSRule.cssText; @docsEditable true */
1406 String cssText; 1406 String cssText;
1407 1407
1408 /** @domName CSSRule.parentRule */ 1408 /** @domName CSSRule.parentRule; @docsEditable true */
1409 final CSSRule parentRule; 1409 final CSSRule parentRule;
1410 1410
1411 /** @domName CSSRule.parentStyleSheet */ 1411 /** @domName CSSRule.parentStyleSheet; @docsEditable true */
1412 final CSSStyleSheet parentStyleSheet; 1412 final CSSStyleSheet parentStyleSheet;
1413 1413
1414 /** @domName CSSRule.type */ 1414 /** @domName CSSRule.type; @docsEditable true */
1415 final int type; 1415 final int type;
1416 } 1416 }
1417 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1417 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1418 // for details. All rights reserved. Use of this source code is governed by a 1418 // for details. All rights reserved. Use of this source code is governed by a
1419 // BSD-style license that can be found in the LICENSE file. 1419 // BSD-style license that can be found in the LICENSE file.
1420 1420
1421 1421
1422 String _cachedBrowserPrefix; 1422 String _cachedBrowserPrefix;
1423 1423
1424 String get _browserPrefix { 1424 String get _browserPrefix {
(...skipping 10 matching lines...) Expand all
1435 } 1435 }
1436 return _cachedBrowserPrefix; 1436 return _cachedBrowserPrefix;
1437 } 1437 }
1438 1438
1439 class CSSStyleDeclaration native "*CSSStyleDeclaration" { 1439 class CSSStyleDeclaration native "*CSSStyleDeclaration" {
1440 factory CSSStyleDeclaration() => _CSSStyleDeclarationFactoryProvider.createCSS StyleDeclaration(); 1440 factory CSSStyleDeclaration() => _CSSStyleDeclarationFactoryProvider.createCSS StyleDeclaration();
1441 factory CSSStyleDeclaration.css(String css) => 1441 factory CSSStyleDeclaration.css(String css) =>
1442 _CSSStyleDeclarationFactoryProvider.createCSSStyleDeclaration_css(css); 1442 _CSSStyleDeclarationFactoryProvider.createCSSStyleDeclaration_css(css);
1443 1443
1444 1444
1445 /** @domName CSSStyleDeclaration.cssText */ 1445 /** @domName CSSStyleDeclaration.cssText; @docsEditable true */
1446 String cssText; 1446 String cssText;
1447 1447
1448 /** @domName CSSStyleDeclaration.length */ 1448 /** @domName CSSStyleDeclaration.length; @docsEditable true */
1449 final int length; 1449 final int length;
1450 1450
1451 /** @domName CSSStyleDeclaration.parentRule */ 1451 /** @domName CSSStyleDeclaration.parentRule; @docsEditable true */
1452 final CSSRule parentRule; 1452 final CSSRule parentRule;
1453 1453
1454 /** @domName CSSStyleDeclaration.getPropertyCSSValue */ 1454 /** @domName CSSStyleDeclaration.getPropertyCSSValue; @docsEditable true */
1455 CSSValue getPropertyCSSValue(String propertyName) native; 1455 CSSValue getPropertyCSSValue(String propertyName) native;
1456 1456
1457 /** @domName CSSStyleDeclaration.getPropertyPriority */ 1457 /** @domName CSSStyleDeclaration.getPropertyPriority; @docsEditable true */
1458 String getPropertyPriority(String propertyName) native; 1458 String getPropertyPriority(String propertyName) native;
1459 1459
1460 /** @domName CSSStyleDeclaration.getPropertyShorthand */ 1460 /** @domName CSSStyleDeclaration.getPropertyShorthand; @docsEditable true */
1461 String getPropertyShorthand(String propertyName) native; 1461 String getPropertyShorthand(String propertyName) native;
1462 1462
1463 /** @domName CSSStyleDeclaration._getPropertyValue */ 1463 /** @domName CSSStyleDeclaration._getPropertyValue; @docsEditable true */
1464 String _getPropertyValue(String propertyName) native "getPropertyValue"; 1464 String _getPropertyValue(String propertyName) native "getPropertyValue";
1465 1465
1466 /** @domName CSSStyleDeclaration.isPropertyImplicit */ 1466 /** @domName CSSStyleDeclaration.isPropertyImplicit; @docsEditable true */
1467 bool isPropertyImplicit(String propertyName) native; 1467 bool isPropertyImplicit(String propertyName) native;
1468 1468
1469 /** @domName CSSStyleDeclaration.item */ 1469 /** @domName CSSStyleDeclaration.item; @docsEditable true */
1470 String item(int index) native; 1470 String item(int index) native;
1471 1471
1472 /** @domName CSSStyleDeclaration.removeProperty */ 1472 /** @domName CSSStyleDeclaration.removeProperty; @docsEditable true */
1473 String removeProperty(String propertyName) native; 1473 String removeProperty(String propertyName) native;
1474 1474
1475 1475
1476 String getPropertyValue(String propertyName) { 1476 String getPropertyValue(String propertyName) {
1477 var propValue = _getPropertyValue(propertyName); 1477 var propValue = _getPropertyValue(propertyName);
1478 return propValue != null ? propValue : ''; 1478 return propValue != null ? propValue : '';
1479 } 1479 }
1480 1480
1481 void setProperty(String propertyName, String value, [String priority]) { 1481 void setProperty(String propertyName, String value, [String priority]) {
1482 JS('void', '#.setProperty(#, #, #)', this, propertyName, value, priority); 1482 JS('void', '#.setProperty(#, #, #)', this, propertyName, value, priority);
(...skipping 3152 matching lines...) Expand 10 before | Expand all | Expand 10 after
4635 /** Sets the value of "zoom" */ 4635 /** Sets the value of "zoom" */
4636 void set zoom(String value) { 4636 void set zoom(String value) {
4637 setProperty('zoom', value, ''); 4637 setProperty('zoom', value, '');
4638 } 4638 }
4639 } 4639 }
4640 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 4640 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4641 // for details. All rights reserved. Use of this source code is governed by a 4641 // for details. All rights reserved. Use of this source code is governed by a
4642 // BSD-style license that can be found in the LICENSE file. 4642 // BSD-style license that can be found in the LICENSE file.
4643 4643
4644 4644
4645 /// @domName CSSStyleRule 4645 /// @domName CSSStyleRule; @docsEditable true
4646 class CSSStyleRule extends CSSRule native "*CSSStyleRule" { 4646 class CSSStyleRule extends CSSRule native "*CSSStyleRule" {
4647 4647
4648 /** @domName CSSStyleRule.selectorText */ 4648 /** @domName CSSStyleRule.selectorText; @docsEditable true */
4649 String selectorText; 4649 String selectorText;
4650 4650
4651 /** @domName CSSStyleRule.style */ 4651 /** @domName CSSStyleRule.style; @docsEditable true */
4652 final CSSStyleDeclaration style; 4652 final CSSStyleDeclaration style;
4653 } 4653 }
4654 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 4654 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4655 // for details. All rights reserved. Use of this source code is governed by a 4655 // for details. All rights reserved. Use of this source code is governed by a
4656 // BSD-style license that can be found in the LICENSE file. 4656 // BSD-style license that can be found in the LICENSE file.
4657 4657
4658 4658
4659 /// @domName CSSStyleSheet 4659 /// @domName CSSStyleSheet; @docsEditable true
4660 class CSSStyleSheet extends StyleSheet native "*CSSStyleSheet" { 4660 class CSSStyleSheet extends StyleSheet native "*CSSStyleSheet" {
4661 4661
4662 /** @domName CSSStyleSheet.cssRules */ 4662 /** @domName CSSStyleSheet.cssRules; @docsEditable true */
4663 final List<CSSRule> cssRules; 4663 final List<CSSRule> cssRules;
4664 4664
4665 /** @domName CSSStyleSheet.ownerRule */ 4665 /** @domName CSSStyleSheet.ownerRule; @docsEditable true */
4666 final CSSRule ownerRule; 4666 final CSSRule ownerRule;
4667 4667
4668 /** @domName CSSStyleSheet.rules */ 4668 /** @domName CSSStyleSheet.rules; @docsEditable true */
4669 final List<CSSRule> rules; 4669 final List<CSSRule> rules;
4670 4670
4671 /** @domName CSSStyleSheet.addRule */ 4671 /** @domName CSSStyleSheet.addRule; @docsEditable true */
4672 int addRule(String selector, String style, [int index]) native; 4672 int addRule(String selector, String style, [int index]) native;
4673 4673
4674 /** @domName CSSStyleSheet.deleteRule */ 4674 /** @domName CSSStyleSheet.deleteRule; @docsEditable true */
4675 void deleteRule(int index) native; 4675 void deleteRule(int index) native;
4676 4676
4677 /** @domName CSSStyleSheet.insertRule */ 4677 /** @domName CSSStyleSheet.insertRule; @docsEditable true */
4678 int insertRule(String rule, int index) native; 4678 int insertRule(String rule, int index) native;
4679 4679
4680 /** @domName CSSStyleSheet.removeRule */ 4680 /** @domName CSSStyleSheet.removeRule; @docsEditable true */
4681 void removeRule(int index) native; 4681 void removeRule(int index) native;
4682 } 4682 }
4683 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 4683 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4684 // for details. All rights reserved. Use of this source code is governed by a 4684 // for details. All rights reserved. Use of this source code is governed by a
4685 // BSD-style license that can be found in the LICENSE file. 4685 // BSD-style license that can be found in the LICENSE file.
4686 4686
4687 4687
4688 /// @domName WebKitCSSTransformValue 4688 /// @domName WebKitCSSTransformValue; @docsEditable true
4689 class CSSTransformValue extends _CSSValueList native "*WebKitCSSTransformValue" { 4689 class CSSTransformValue extends _CSSValueList native "*WebKitCSSTransformValue" {
4690 4690
4691 static const int CSS_MATRIX = 11; 4691 static const int CSS_MATRIX = 11;
4692 4692
4693 static const int CSS_MATRIX3D = 21; 4693 static const int CSS_MATRIX3D = 21;
4694 4694
4695 static const int CSS_PERSPECTIVE = 20; 4695 static const int CSS_PERSPECTIVE = 20;
4696 4696
4697 static const int CSS_ROTATE = 4; 4697 static const int CSS_ROTATE = 4;
4698 4698
(...skipping 24 matching lines...) Expand all
4723 static const int CSS_TRANSLATE = 1; 4723 static const int CSS_TRANSLATE = 1;
4724 4724
4725 static const int CSS_TRANSLATE3D = 13; 4725 static const int CSS_TRANSLATE3D = 13;
4726 4726
4727 static const int CSS_TRANSLATEX = 2; 4727 static const int CSS_TRANSLATEX = 2;
4728 4728
4729 static const int CSS_TRANSLATEY = 3; 4729 static const int CSS_TRANSLATEY = 3;
4730 4730
4731 static const int CSS_TRANSLATEZ = 12; 4731 static const int CSS_TRANSLATEZ = 12;
4732 4732
4733 /** @domName WebKitCSSTransformValue.operationType */ 4733 /** @domName WebKitCSSTransformValue.operationType; @docsEditable true */
4734 final int operationType; 4734 final int operationType;
4735 } 4735 }
4736 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 4736 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4737 // for details. All rights reserved. Use of this source code is governed by a 4737 // for details. All rights reserved. Use of this source code is governed by a
4738 // BSD-style license that can be found in the LICENSE file. 4738 // BSD-style license that can be found in the LICENSE file.
4739 4739
4740 4740
4741 /// @domName CSSUnknownRule 4741 /// @domName CSSUnknownRule; @docsEditable true
4742 class CSSUnknownRule extends CSSRule native "*CSSUnknownRule" { 4742 class CSSUnknownRule extends CSSRule native "*CSSUnknownRule" {
4743 } 4743 }
4744 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 4744 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4745 // for details. All rights reserved. Use of this source code is governed by a 4745 // for details. All rights reserved. Use of this source code is governed by a
4746 // BSD-style license that can be found in the LICENSE file. 4746 // BSD-style license that can be found in the LICENSE file.
4747 4747
4748 4748
4749 /// @domName CSSValue 4749 /// @domName CSSValue; @docsEditable true
4750 class CSSValue native "*CSSValue" { 4750 class CSSValue native "*CSSValue" {
4751 4751
4752 static const int CSS_CUSTOM = 3; 4752 static const int CSS_CUSTOM = 3;
4753 4753
4754 static const int CSS_INHERIT = 0; 4754 static const int CSS_INHERIT = 0;
4755 4755
4756 static const int CSS_PRIMITIVE_VALUE = 1; 4756 static const int CSS_PRIMITIVE_VALUE = 1;
4757 4757
4758 static const int CSS_VALUE_LIST = 2; 4758 static const int CSS_VALUE_LIST = 2;
4759 4759
4760 /** @domName CSSValue.cssText */ 4760 /** @domName CSSValue.cssText; @docsEditable true */
4761 String cssText; 4761 String cssText;
4762 4762
4763 /** @domName CSSValue.cssValueType */ 4763 /** @domName CSSValue.cssValueType; @docsEditable true */
4764 final int cssValueType; 4764 final int cssValueType;
4765 } 4765 }
4766 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 4766 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4767 // for details. All rights reserved. Use of this source code is governed by a 4767 // for details. All rights reserved. Use of this source code is governed by a
4768 // BSD-style license that can be found in the LICENSE file. 4768 // BSD-style license that can be found in the LICENSE file.
4769 4769
4770 4770
4771 class CanvasElement extends Element implements Element native "*HTMLCanvasElemen t" { 4771 class CanvasElement extends Element implements Element native "*HTMLCanvasElemen t" {
4772 4772
4773 factory CanvasElement({int width, int height}) { 4773 factory CanvasElement({int width, int height}) {
4774 var e = document.$dom_createElement("canvas"); 4774 var e = document.$dom_createElement("canvas");
4775 if (width != null) e.width = width; 4775 if (width != null) e.width = width;
4776 if (height != null) e.height = height; 4776 if (height != null) e.height = height;
4777 return e; 4777 return e;
4778 } 4778 }
4779 4779
4780 /** @domName HTMLCanvasElement.height */ 4780 /** @domName HTMLCanvasElement.height; @docsEditable true */
4781 int height; 4781 int height;
4782 4782
4783 /** @domName HTMLCanvasElement.width */ 4783 /** @domName HTMLCanvasElement.width; @docsEditable true */
4784 int width; 4784 int width;
4785 4785
4786 /** @domName HTMLCanvasElement.toDataURL */ 4786 /** @domName HTMLCanvasElement.toDataURL; @docsEditable true */
4787 String toDataURL(String type, [num quality]) native; 4787 String toDataURL(String type, [num quality]) native;
4788 4788
4789 4789
4790 CanvasRenderingContext getContext(String contextId) native; 4790 CanvasRenderingContext getContext(String contextId) native;
4791 CanvasRenderingContext2D get context2d => getContext('2d'); 4791 CanvasRenderingContext2D get context2d => getContext('2d');
4792 } 4792 }
4793 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 4793 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4794 // for details. All rights reserved. Use of this source code is governed by a 4794 // for details. All rights reserved. Use of this source code is governed by a
4795 // BSD-style license that can be found in the LICENSE file. 4795 // BSD-style license that can be found in the LICENSE file.
4796 4796
4797 4797
4798 /// @domName CanvasGradient 4798 /// @domName CanvasGradient; @docsEditable true
4799 class CanvasGradient native "*CanvasGradient" { 4799 class CanvasGradient native "*CanvasGradient" {
4800 4800
4801 /** @domName CanvasGradient.addColorStop */ 4801 /** @domName CanvasGradient.addColorStop; @docsEditable true */
4802 void addColorStop(num offset, String color) native; 4802 void addColorStop(num offset, String color) native;
4803 } 4803 }
4804 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 4804 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4805 // for details. All rights reserved. Use of this source code is governed by a 4805 // for details. All rights reserved. Use of this source code is governed by a
4806 // BSD-style license that can be found in the LICENSE file. 4806 // BSD-style license that can be found in the LICENSE file.
4807 4807
4808 4808
4809 /// @domName CanvasPattern 4809 /// @domName CanvasPattern; @docsEditable true
4810 class CanvasPattern native "*CanvasPattern" { 4810 class CanvasPattern native "*CanvasPattern" {
4811 } 4811 }
4812 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 4812 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4813 // for details. All rights reserved. Use of this source code is governed by a 4813 // for details. All rights reserved. Use of this source code is governed by a
4814 // BSD-style license that can be found in the LICENSE file. 4814 // BSD-style license that can be found in the LICENSE file.
4815 4815
4816 4816
4817 /// @domName CanvasRenderingContext 4817 /// @domName CanvasRenderingContext; @docsEditable true
4818 class CanvasRenderingContext native "*CanvasRenderingContext" { 4818 class CanvasRenderingContext native "*CanvasRenderingContext" {
4819 4819
4820 /** @domName CanvasRenderingContext.canvas */ 4820 /** @domName CanvasRenderingContext.canvas; @docsEditable true */
4821 final CanvasElement canvas; 4821 final CanvasElement canvas;
4822 } 4822 }
4823 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 4823 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4824 // for details. All rights reserved. Use of this source code is governed by a 4824 // for details. All rights reserved. Use of this source code is governed by a
4825 // BSD-style license that can be found in the LICENSE file. 4825 // BSD-style license that can be found in the LICENSE file.
4826 4826
4827 4827
4828 class CanvasRenderingContext2D extends CanvasRenderingContext native "*CanvasRen deringContext2D" { 4828 class CanvasRenderingContext2D extends CanvasRenderingContext native "*CanvasRen deringContext2D" {
4829 4829
4830 /** @domName CanvasRenderingContext2D.fillStyle */ 4830 /** @domName CanvasRenderingContext2D.fillStyle; @docsEditable true */
4831 dynamic fillStyle; 4831 dynamic fillStyle;
4832 4832
4833 /** @domName CanvasRenderingContext2D.font */ 4833 /** @domName CanvasRenderingContext2D.font; @docsEditable true */
4834 String font; 4834 String font;
4835 4835
4836 /** @domName CanvasRenderingContext2D.globalAlpha */ 4836 /** @domName CanvasRenderingContext2D.globalAlpha; @docsEditable true */
4837 num globalAlpha; 4837 num globalAlpha;
4838 4838
4839 /** @domName CanvasRenderingContext2D.globalCompositeOperation */ 4839 /** @domName CanvasRenderingContext2D.globalCompositeOperation; @docsEditable true */
4840 String globalCompositeOperation; 4840 String globalCompositeOperation;
4841 4841
4842 /** @domName CanvasRenderingContext2D.lineCap */ 4842 /** @domName CanvasRenderingContext2D.lineCap; @docsEditable true */
4843 String lineCap; 4843 String lineCap;
4844 4844
4845 /** @domName CanvasRenderingContext2D.lineDashOffset */ 4845 /** @domName CanvasRenderingContext2D.lineDashOffset; @docsEditable true */
4846 num lineDashOffset; 4846 num lineDashOffset;
4847 4847
4848 /** @domName CanvasRenderingContext2D.lineJoin */ 4848 /** @domName CanvasRenderingContext2D.lineJoin; @docsEditable true */
4849 String lineJoin; 4849 String lineJoin;
4850 4850
4851 /** @domName CanvasRenderingContext2D.lineWidth */ 4851 /** @domName CanvasRenderingContext2D.lineWidth; @docsEditable true */
4852 num lineWidth; 4852 num lineWidth;
4853 4853
4854 /** @domName CanvasRenderingContext2D.miterLimit */ 4854 /** @domName CanvasRenderingContext2D.miterLimit; @docsEditable true */
4855 num miterLimit; 4855 num miterLimit;
4856 4856
4857 /** @domName CanvasRenderingContext2D.shadowBlur */ 4857 /** @domName CanvasRenderingContext2D.shadowBlur; @docsEditable true */
4858 num shadowBlur; 4858 num shadowBlur;
4859 4859
4860 /** @domName CanvasRenderingContext2D.shadowColor */ 4860 /** @domName CanvasRenderingContext2D.shadowColor; @docsEditable true */
4861 String shadowColor; 4861 String shadowColor;
4862 4862
4863 /** @domName CanvasRenderingContext2D.shadowOffsetX */ 4863 /** @domName CanvasRenderingContext2D.shadowOffsetX; @docsEditable true */
4864 num shadowOffsetX; 4864 num shadowOffsetX;
4865 4865
4866 /** @domName CanvasRenderingContext2D.shadowOffsetY */ 4866 /** @domName CanvasRenderingContext2D.shadowOffsetY; @docsEditable true */
4867 num shadowOffsetY; 4867 num shadowOffsetY;
4868 4868
4869 /** @domName CanvasRenderingContext2D.strokeStyle */ 4869 /** @domName CanvasRenderingContext2D.strokeStyle; @docsEditable true */
4870 dynamic strokeStyle; 4870 dynamic strokeStyle;
4871 4871
4872 /** @domName CanvasRenderingContext2D.textAlign */ 4872 /** @domName CanvasRenderingContext2D.textAlign; @docsEditable true */
4873 String textAlign; 4873 String textAlign;
4874 4874
4875 /** @domName CanvasRenderingContext2D.textBaseline */ 4875 /** @domName CanvasRenderingContext2D.textBaseline; @docsEditable true */
4876 String textBaseline; 4876 String textBaseline;
4877 4877
4878 /** @domName CanvasRenderingContext2D.webkitBackingStorePixelRatio */ 4878 /** @domName CanvasRenderingContext2D.webkitBackingStorePixelRatio; @docsEdita ble true */
4879 final num webkitBackingStorePixelRatio; 4879 final num webkitBackingStorePixelRatio;
4880 4880
4881 /** @domName CanvasRenderingContext2D.webkitImageSmoothingEnabled */ 4881 /** @domName CanvasRenderingContext2D.webkitImageSmoothingEnabled; @docsEditab le true */
4882 bool webkitImageSmoothingEnabled; 4882 bool webkitImageSmoothingEnabled;
4883 4883
4884 /** @domName CanvasRenderingContext2D.webkitLineDash */ 4884 /** @domName CanvasRenderingContext2D.webkitLineDash; @docsEditable true */
4885 List webkitLineDash; 4885 List webkitLineDash;
4886 4886
4887 /** @domName CanvasRenderingContext2D.webkitLineDashOffset */ 4887 /** @domName CanvasRenderingContext2D.webkitLineDashOffset; @docsEditable true */
4888 num webkitLineDashOffset; 4888 num webkitLineDashOffset;
4889 4889
4890 /** @domName CanvasRenderingContext2D.arc */ 4890 /** @domName CanvasRenderingContext2D.arc; @docsEditable true */
4891 void arc(num x, num y, num radius, num startAngle, num endAngle, bool anticloc kwise) native; 4891 void arc(num x, num y, num radius, num startAngle, num endAngle, bool anticloc kwise) native;
4892 4892
4893 /** @domName CanvasRenderingContext2D.arcTo */ 4893 /** @domName CanvasRenderingContext2D.arcTo; @docsEditable true */
4894 void arcTo(num x1, num y1, num x2, num y2, num radius) native; 4894 void arcTo(num x1, num y1, num x2, num y2, num radius) native;
4895 4895
4896 /** @domName CanvasRenderingContext2D.beginPath */ 4896 /** @domName CanvasRenderingContext2D.beginPath; @docsEditable true */
4897 void beginPath() native; 4897 void beginPath() native;
4898 4898
4899 /** @domName CanvasRenderingContext2D.bezierCurveTo */ 4899 /** @domName CanvasRenderingContext2D.bezierCurveTo; @docsEditable true */
4900 void bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y) nativ e; 4900 void bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y) nativ e;
4901 4901
4902 /** @domName CanvasRenderingContext2D.clearRect */ 4902 /** @domName CanvasRenderingContext2D.clearRect; @docsEditable true */
4903 void clearRect(num x, num y, num width, num height) native; 4903 void clearRect(num x, num y, num width, num height) native;
4904 4904
4905 /** @domName CanvasRenderingContext2D.clearShadow */ 4905 /** @domName CanvasRenderingContext2D.clearShadow; @docsEditable true */
4906 void clearShadow() native; 4906 void clearShadow() native;
4907 4907
4908 /** @domName CanvasRenderingContext2D.clip */ 4908 /** @domName CanvasRenderingContext2D.clip; @docsEditable true */
4909 void clip() native; 4909 void clip() native;
4910 4910
4911 /** @domName CanvasRenderingContext2D.closePath */ 4911 /** @domName CanvasRenderingContext2D.closePath; @docsEditable true */
4912 void closePath() native; 4912 void closePath() native;
4913 4913
4914 /** @domName CanvasRenderingContext2D.createImageData */ 4914 /** @domName CanvasRenderingContext2D.createImageData; @docsEditable true */
4915 ImageData createImageData(imagedata_OR_sw, [num sh]) { 4915 ImageData createImageData(imagedata_OR_sw, [num sh]) {
4916 if ((?imagedata_OR_sw && (imagedata_OR_sw is ImageData || imagedata_OR_sw == null)) && 4916 if ((?imagedata_OR_sw && (imagedata_OR_sw is ImageData || imagedata_OR_sw == null)) &&
4917 !?sh) { 4917 !?sh) {
4918 var imagedata_1 = _convertDartToNative_ImageData(imagedata_OR_sw); 4918 var imagedata_1 = _convertDartToNative_ImageData(imagedata_OR_sw);
4919 return _convertNativeToDart_ImageData(_createImageData_1(imagedata_1)); 4919 return _convertNativeToDart_ImageData(_createImageData_1(imagedata_1));
4920 } 4920 }
4921 if ((?imagedata_OR_sw && (imagedata_OR_sw is num || imagedata_OR_sw == null) )) { 4921 if ((?imagedata_OR_sw && (imagedata_OR_sw is num || imagedata_OR_sw == null) )) {
4922 return _convertNativeToDart_ImageData(_createImageData_2(imagedata_OR_sw, sh)); 4922 return _convertNativeToDart_ImageData(_createImageData_2(imagedata_OR_sw, sh));
4923 } 4923 }
4924 throw new ArgumentError("Incorrect number or type of arguments"); 4924 throw new ArgumentError("Incorrect number or type of arguments");
4925 } 4925 }
4926 @Creates('ImageData|=Object') 4926 @Creates('ImageData|=Object')
4927 _createImageData_1(imagedata) native "createImageData"; 4927 _createImageData_1(imagedata) native "createImageData";
4928 @Creates('ImageData|=Object') 4928 @Creates('ImageData|=Object')
4929 _createImageData_2(num sw, sh) native "createImageData"; 4929 _createImageData_2(num sw, sh) native "createImageData";
4930 4930
4931 /** @domName CanvasRenderingContext2D.createLinearGradient */ 4931 /** @domName CanvasRenderingContext2D.createLinearGradient; @docsEditable true */
4932 CanvasGradient createLinearGradient(num x0, num y0, num x1, num y1) native; 4932 CanvasGradient createLinearGradient(num x0, num y0, num x1, num y1) native;
4933 4933
4934 /** @domName CanvasRenderingContext2D.createPattern */ 4934 /** @domName CanvasRenderingContext2D.createPattern; @docsEditable true */
4935 CanvasPattern createPattern(canvas_OR_image, String repetitionType) native; 4935 CanvasPattern createPattern(canvas_OR_image, String repetitionType) native;
4936 4936
4937 /** @domName CanvasRenderingContext2D.createRadialGradient */ 4937 /** @domName CanvasRenderingContext2D.createRadialGradient; @docsEditable true */
4938 CanvasGradient createRadialGradient(num x0, num y0, num r0, num x1, num y1, nu m r1) native; 4938 CanvasGradient createRadialGradient(num x0, num y0, num r0, num x1, num y1, nu m r1) native;
4939 4939
4940 /** @domName CanvasRenderingContext2D.drawImage */ 4940 /** @domName CanvasRenderingContext2D.drawImage; @docsEditable true */
4941 void drawImage(canvas_OR_image_OR_video, num sx_OR_x, num sy_OR_y, [num sw_OR_ width, num height_OR_sh, num dx, num dy, num dw, num dh]) native; 4941 void drawImage(canvas_OR_image_OR_video, num sx_OR_x, num sy_OR_y, [num sw_OR_ width, num height_OR_sh, num dx, num dy, num dw, num dh]) native;
4942 4942
4943 /** @domName CanvasRenderingContext2D.drawImageFromRect */ 4943 /** @domName CanvasRenderingContext2D.drawImageFromRect; @docsEditable true */
4944 void drawImageFromRect(ImageElement image, [num sx, num sy, num sw, num sh, nu m dx, num dy, num dw, num dh, String compositeOperation]) native; 4944 void drawImageFromRect(ImageElement image, [num sx, num sy, num sw, num sh, nu m dx, num dy, num dw, num dh, String compositeOperation]) native;
4945 4945
4946 /** @domName CanvasRenderingContext2D.fill */ 4946 /** @domName CanvasRenderingContext2D.fill; @docsEditable true */
4947 void fill() native; 4947 void fill() native;
4948 4948
4949 /** @domName CanvasRenderingContext2D.fillRect */ 4949 /** @domName CanvasRenderingContext2D.fillRect; @docsEditable true */
4950 void fillRect(num x, num y, num width, num height) native; 4950 void fillRect(num x, num y, num width, num height) native;
4951 4951
4952 /** @domName CanvasRenderingContext2D.fillText */ 4952 /** @domName CanvasRenderingContext2D.fillText; @docsEditable true */
4953 void fillText(String text, num x, num y, [num maxWidth]) native; 4953 void fillText(String text, num x, num y, [num maxWidth]) native;
4954 4954
4955 /** @domName CanvasRenderingContext2D.getImageData */ 4955 /** @domName CanvasRenderingContext2D.getImageData; @docsEditable true */
4956 ImageData getImageData(num sx, num sy, num sw, num sh) { 4956 ImageData getImageData(num sx, num sy, num sw, num sh) {
4957 return _convertNativeToDart_ImageData(_getImageData_1(sx, sy, sw, sh)); 4957 return _convertNativeToDart_ImageData(_getImageData_1(sx, sy, sw, sh));
4958 } 4958 }
4959 @Creates('ImageData|=Object') 4959 @Creates('ImageData|=Object')
4960 _getImageData_1(sx, sy, sw, sh) native "getImageData"; 4960 _getImageData_1(sx, sy, sw, sh) native "getImageData";
4961 4961
4962 /** @domName CanvasRenderingContext2D.getLineDash */ 4962 /** @domName CanvasRenderingContext2D.getLineDash; @docsEditable true */
4963 List<num> getLineDash() native; 4963 List<num> getLineDash() native;
4964 4964
4965 /** @domName CanvasRenderingContext2D.isPointInPath */ 4965 /** @domName CanvasRenderingContext2D.isPointInPath; @docsEditable true */
4966 bool isPointInPath(num x, num y) native; 4966 bool isPointInPath(num x, num y) native;
4967 4967
4968 /** @domName CanvasRenderingContext2D.lineTo */ 4968 /** @domName CanvasRenderingContext2D.lineTo; @docsEditable true */
4969 void lineTo(num x, num y) native; 4969 void lineTo(num x, num y) native;
4970 4970
4971 /** @domName CanvasRenderingContext2D.measureText */ 4971 /** @domName CanvasRenderingContext2D.measureText; @docsEditable true */
4972 TextMetrics measureText(String text) native; 4972 TextMetrics measureText(String text) native;
4973 4973
4974 /** @domName CanvasRenderingContext2D.moveTo */ 4974 /** @domName CanvasRenderingContext2D.moveTo; @docsEditable true */
4975 void moveTo(num x, num y) native; 4975 void moveTo(num x, num y) native;
4976 4976
4977 /** @domName CanvasRenderingContext2D.putImageData */ 4977 /** @domName CanvasRenderingContext2D.putImageData; @docsEditable true */
4978 void putImageData(ImageData imagedata, num dx, num dy, [num dirtyX, num dirtyY , num dirtyWidth, num dirtyHeight]) { 4978 void putImageData(ImageData imagedata, num dx, num dy, [num dirtyX, num dirtyY , num dirtyWidth, num dirtyHeight]) {
4979 if (!?dirtyX && 4979 if (!?dirtyX &&
4980 !?dirtyY && 4980 !?dirtyY &&
4981 !?dirtyWidth && 4981 !?dirtyWidth &&
4982 !?dirtyHeight) { 4982 !?dirtyHeight) {
4983 var imagedata_1 = _convertDartToNative_ImageData(imagedata); 4983 var imagedata_1 = _convertDartToNative_ImageData(imagedata);
4984 _putImageData_1(imagedata_1, dx, dy); 4984 _putImageData_1(imagedata_1, dx, dy);
4985 return; 4985 return;
4986 } 4986 }
4987 var imagedata_2 = _convertDartToNative_ImageData(imagedata); 4987 var imagedata_2 = _convertDartToNative_ImageData(imagedata);
4988 _putImageData_2(imagedata_2, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeight ); 4988 _putImageData_2(imagedata_2, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeight );
4989 return; 4989 return;
4990 throw new ArgumentError("Incorrect number or type of arguments"); 4990 throw new ArgumentError("Incorrect number or type of arguments");
4991 } 4991 }
4992 void _putImageData_1(imagedata, dx, dy) native "putImageData"; 4992 void _putImageData_1(imagedata, dx, dy) native "putImageData";
4993 void _putImageData_2(imagedata, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeigh t) native "putImageData"; 4993 void _putImageData_2(imagedata, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeigh t) native "putImageData";
4994 4994
4995 /** @domName CanvasRenderingContext2D.quadraticCurveTo */ 4995 /** @domName CanvasRenderingContext2D.quadraticCurveTo; @docsEditable true */
4996 void quadraticCurveTo(num cpx, num cpy, num x, num y) native; 4996 void quadraticCurveTo(num cpx, num cpy, num x, num y) native;
4997 4997
4998 /** @domName CanvasRenderingContext2D.rect */ 4998 /** @domName CanvasRenderingContext2D.rect; @docsEditable true */
4999 void rect(num x, num y, num width, num height) native; 4999 void rect(num x, num y, num width, num height) native;
5000 5000
5001 /** @domName CanvasRenderingContext2D.restore */ 5001 /** @domName CanvasRenderingContext2D.restore; @docsEditable true */
5002 void restore() native; 5002 void restore() native;
5003 5003
5004 /** @domName CanvasRenderingContext2D.rotate */ 5004 /** @domName CanvasRenderingContext2D.rotate; @docsEditable true */
5005 void rotate(num angle) native; 5005 void rotate(num angle) native;
5006 5006
5007 /** @domName CanvasRenderingContext2D.save */ 5007 /** @domName CanvasRenderingContext2D.save; @docsEditable true */
5008 void save() native; 5008 void save() native;
5009 5009
5010 /** @domName CanvasRenderingContext2D.scale */ 5010 /** @domName CanvasRenderingContext2D.scale; @docsEditable true */
5011 void scale(num sx, num sy) native; 5011 void scale(num sx, num sy) native;
5012 5012
5013 /** @domName CanvasRenderingContext2D.setAlpha */ 5013 /** @domName CanvasRenderingContext2D.setAlpha; @docsEditable true */
5014 void setAlpha(num alpha) native; 5014 void setAlpha(num alpha) native;
5015 5015
5016 /** @domName CanvasRenderingContext2D.setCompositeOperation */ 5016 /** @domName CanvasRenderingContext2D.setCompositeOperation; @docsEditable tru e */
5017 void setCompositeOperation(String compositeOperation) native; 5017 void setCompositeOperation(String compositeOperation) native;
5018 5018
5019 /** @domName CanvasRenderingContext2D.setLineCap */ 5019 /** @domName CanvasRenderingContext2D.setLineCap; @docsEditable true */
5020 void setLineCap(String cap) native; 5020 void setLineCap(String cap) native;
5021 5021
5022 /** @domName CanvasRenderingContext2D.setLineDash */ 5022 /** @domName CanvasRenderingContext2D.setLineDash; @docsEditable true */
5023 void setLineDash(List<num> dash) native; 5023 void setLineDash(List<num> dash) native;
5024 5024
5025 /** @domName CanvasRenderingContext2D.setLineJoin */ 5025 /** @domName CanvasRenderingContext2D.setLineJoin; @docsEditable true */
5026 void setLineJoin(String join) native; 5026 void setLineJoin(String join) native;
5027 5027
5028 /** @domName CanvasRenderingContext2D.setLineWidth */ 5028 /** @domName CanvasRenderingContext2D.setLineWidth; @docsEditable true */
5029 void setLineWidth(num width) native; 5029 void setLineWidth(num width) native;
5030 5030
5031 /** @domName CanvasRenderingContext2D.setMiterLimit */ 5031 /** @domName CanvasRenderingContext2D.setMiterLimit; @docsEditable true */
5032 void setMiterLimit(num limit) native; 5032 void setMiterLimit(num limit) native;
5033 5033
5034 /** @domName CanvasRenderingContext2D.setShadow */ 5034 /** @domName CanvasRenderingContext2D.setShadow; @docsEditable true */
5035 void setShadow(num width, num height, num blur, [c_OR_color_OR_grayLevel_OR_r, num alpha_OR_g_OR_m, num b_OR_y, num a_OR_k, num a]) native; 5035 void setShadow(num width, num height, num blur, [c_OR_color_OR_grayLevel_OR_r, num alpha_OR_g_OR_m, num b_OR_y, num a_OR_k, num a]) native;
5036 5036
5037 /** @domName CanvasRenderingContext2D.setTransform */ 5037 /** @domName CanvasRenderingContext2D.setTransform; @docsEditable true */
5038 void setTransform(num m11, num m12, num m21, num m22, num dx, num dy) native; 5038 void setTransform(num m11, num m12, num m21, num m22, num dx, num dy) native;
5039 5039
5040 /** @domName CanvasRenderingContext2D.stroke */ 5040 /** @domName CanvasRenderingContext2D.stroke; @docsEditable true */
5041 void stroke() native; 5041 void stroke() native;
5042 5042
5043 /** @domName CanvasRenderingContext2D.strokeRect */ 5043 /** @domName CanvasRenderingContext2D.strokeRect; @docsEditable true */
5044 void strokeRect(num x, num y, num width, num height, [num lineWidth]) native; 5044 void strokeRect(num x, num y, num width, num height, [num lineWidth]) native;
5045 5045
5046 /** @domName CanvasRenderingContext2D.strokeText */ 5046 /** @domName CanvasRenderingContext2D.strokeText; @docsEditable true */
5047 void strokeText(String text, num x, num y, [num maxWidth]) native; 5047 void strokeText(String text, num x, num y, [num maxWidth]) native;
5048 5048
5049 /** @domName CanvasRenderingContext2D.transform */ 5049 /** @domName CanvasRenderingContext2D.transform; @docsEditable true */
5050 void transform(num m11, num m12, num m21, num m22, num dx, num dy) native; 5050 void transform(num m11, num m12, num m21, num m22, num dx, num dy) native;
5051 5051
5052 /** @domName CanvasRenderingContext2D.translate */ 5052 /** @domName CanvasRenderingContext2D.translate; @docsEditable true */
5053 void translate(num tx, num ty) native; 5053 void translate(num tx, num ty) native;
5054 5054
5055 /** @domName CanvasRenderingContext2D.webkitGetImageDataHD */ 5055 /** @domName CanvasRenderingContext2D.webkitGetImageDataHD; @docsEditable true */
5056 ImageData webkitGetImageDataHD(num sx, num sy, num sw, num sh) { 5056 ImageData webkitGetImageDataHD(num sx, num sy, num sw, num sh) {
5057 return _convertNativeToDart_ImageData(_webkitGetImageDataHD_1(sx, sy, sw, sh )); 5057 return _convertNativeToDart_ImageData(_webkitGetImageDataHD_1(sx, sy, sw, sh ));
5058 } 5058 }
5059 @Creates('ImageData|=Object') 5059 @Creates('ImageData|=Object')
5060 _webkitGetImageDataHD_1(sx, sy, sw, sh) native "webkitGetImageDataHD"; 5060 _webkitGetImageDataHD_1(sx, sy, sw, sh) native "webkitGetImageDataHD";
5061 5061
5062 /** @domName CanvasRenderingContext2D.webkitPutImageDataHD */ 5062 /** @domName CanvasRenderingContext2D.webkitPutImageDataHD; @docsEditable true */
5063 void webkitPutImageDataHD(ImageData imagedata, num dx, num dy, [num dirtyX, nu m dirtyY, num dirtyWidth, num dirtyHeight]) { 5063 void webkitPutImageDataHD(ImageData imagedata, num dx, num dy, [num dirtyX, nu m dirtyY, num dirtyWidth, num dirtyHeight]) {
5064 if (!?dirtyX && 5064 if (!?dirtyX &&
5065 !?dirtyY && 5065 !?dirtyY &&
5066 !?dirtyWidth && 5066 !?dirtyWidth &&
5067 !?dirtyHeight) { 5067 !?dirtyHeight) {
5068 var imagedata_1 = _convertDartToNative_ImageData(imagedata); 5068 var imagedata_1 = _convertDartToNative_ImageData(imagedata);
5069 _webkitPutImageDataHD_1(imagedata_1, dx, dy); 5069 _webkitPutImageDataHD_1(imagedata_1, dx, dy);
5070 return; 5070 return;
5071 } 5071 }
5072 var imagedata_2 = _convertDartToNative_ImageData(imagedata); 5072 var imagedata_2 = _convertDartToNative_ImageData(imagedata);
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
5112 */ 5112 */
5113 void setStrokeColorHsl(int h, num s, num l, [num a = 1]) { 5113 void setStrokeColorHsl(int h, num s, num l, [num a = 1]) {
5114 this.strokeStyle = 'hsla($h, $s%, $l%, $a)'; 5114 this.strokeStyle = 'hsla($h, $s%, $l%, $a)';
5115 } 5115 }
5116 } 5116 }
5117 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5117 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5118 // for details. All rights reserved. Use of this source code is governed by a 5118 // for details. All rights reserved. Use of this source code is governed by a
5119 // BSD-style license that can be found in the LICENSE file. 5119 // BSD-style license that can be found in the LICENSE file.
5120 5120
5121 5121
5122 /// @domName ChannelMergerNode 5122 /// @domName ChannelMergerNode; @docsEditable true
5123 class ChannelMergerNode extends AudioNode native "*ChannelMergerNode" { 5123 class ChannelMergerNode extends AudioNode native "*ChannelMergerNode" {
5124 } 5124 }
5125 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5125 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5126 // for details. All rights reserved. Use of this source code is governed by a 5126 // for details. All rights reserved. Use of this source code is governed by a
5127 // BSD-style license that can be found in the LICENSE file. 5127 // BSD-style license that can be found in the LICENSE file.
5128 5128
5129 5129
5130 /// @domName ChannelSplitterNode 5130 /// @domName ChannelSplitterNode; @docsEditable true
5131 class ChannelSplitterNode extends AudioNode native "*ChannelSplitterNode" { 5131 class ChannelSplitterNode extends AudioNode native "*ChannelSplitterNode" {
5132 } 5132 }
5133 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5133 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5134 // for details. All rights reserved. Use of this source code is governed by a 5134 // for details. All rights reserved. Use of this source code is governed by a
5135 // BSD-style license that can be found in the LICENSE file. 5135 // BSD-style license that can be found in the LICENSE file.
5136 5136
5137 5137
5138 /// @domName CharacterData 5138 /// @domName CharacterData; @docsEditable true
5139 class CharacterData extends Node native "*CharacterData" { 5139 class CharacterData extends Node native "*CharacterData" {
5140 5140
5141 /** @domName CharacterData.data */ 5141 /** @domName CharacterData.data; @docsEditable true */
5142 String data; 5142 String data;
5143 5143
5144 /** @domName CharacterData.length */ 5144 /** @domName CharacterData.length; @docsEditable true */
5145 final int length; 5145 final int length;
5146 5146
5147 /** @domName CharacterData.appendData */ 5147 /** @domName CharacterData.appendData; @docsEditable true */
5148 void appendData(String data) native; 5148 void appendData(String data) native;
5149 5149
5150 /** @domName CharacterData.deleteData */ 5150 /** @domName CharacterData.deleteData; @docsEditable true */
5151 void deleteData(int offset, int length) native; 5151 void deleteData(int offset, int length) native;
5152 5152
5153 /** @domName CharacterData.insertData */ 5153 /** @domName CharacterData.insertData; @docsEditable true */
5154 void insertData(int offset, String data) native; 5154 void insertData(int offset, String data) native;
5155 5155
5156 /** @domName CharacterData.remove */ 5156 /** @domName CharacterData.remove; @docsEditable true */
5157 void remove() native; 5157 void remove() native;
5158 5158
5159 /** @domName CharacterData.replaceData */ 5159 /** @domName CharacterData.replaceData; @docsEditable true */
5160 void replaceData(int offset, int length, String data) native; 5160 void replaceData(int offset, int length, String data) native;
5161 5161
5162 /** @domName CharacterData.substringData */ 5162 /** @domName CharacterData.substringData; @docsEditable true */
5163 String substringData(int offset, int length) native; 5163 String substringData(int offset, int length) native;
5164 } 5164 }
5165 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5165 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5166 // for details. All rights reserved. Use of this source code is governed by a 5166 // for details. All rights reserved. Use of this source code is governed by a
5167 // BSD-style license that can be found in the LICENSE file. 5167 // BSD-style license that can be found in the LICENSE file.
5168 5168
5169 5169
5170 /// @domName ClientRect 5170 /// @domName ClientRect; @docsEditable true
5171 class ClientRect native "*ClientRect" { 5171 class ClientRect native "*ClientRect" {
5172 5172
5173 /** @domName ClientRect.bottom */ 5173 /** @domName ClientRect.bottom; @docsEditable true */
5174 final num bottom; 5174 final num bottom;
5175 5175
5176 /** @domName ClientRect.height */ 5176 /** @domName ClientRect.height; @docsEditable true */
5177 final num height; 5177 final num height;
5178 5178
5179 /** @domName ClientRect.left */ 5179 /** @domName ClientRect.left; @docsEditable true */
5180 final num left; 5180 final num left;
5181 5181
5182 /** @domName ClientRect.right */ 5182 /** @domName ClientRect.right; @docsEditable true */
5183 final num right; 5183 final num right;
5184 5184
5185 /** @domName ClientRect.top */ 5185 /** @domName ClientRect.top; @docsEditable true */
5186 final num top; 5186 final num top;
5187 5187
5188 /** @domName ClientRect.width */ 5188 /** @domName ClientRect.width; @docsEditable true */
5189 final num width; 5189 final num width;
5190 } 5190 }
5191 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5191 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5192 // for details. All rights reserved. Use of this source code is governed by a 5192 // for details. All rights reserved. Use of this source code is governed by a
5193 // BSD-style license that can be found in the LICENSE file. 5193 // BSD-style license that can be found in the LICENSE file.
5194 5194
5195 5195
5196 /// @domName Clipboard 5196 /// @domName Clipboard; @docsEditable true
5197 class Clipboard native "*Clipboard" { 5197 class Clipboard native "*Clipboard" {
5198 5198
5199 /** @domName Clipboard.dropEffect */ 5199 /** @domName Clipboard.dropEffect; @docsEditable true */
5200 String dropEffect; 5200 String dropEffect;
5201 5201
5202 /** @domName Clipboard.effectAllowed */ 5202 /** @domName Clipboard.effectAllowed; @docsEditable true */
5203 String effectAllowed; 5203 String effectAllowed;
5204 5204
5205 /** @domName Clipboard.files */ 5205 /** @domName Clipboard.files; @docsEditable true */
5206 final List<File> files; 5206 final List<File> files;
5207 5207
5208 /** @domName Clipboard.items */ 5208 /** @domName Clipboard.items; @docsEditable true */
5209 final DataTransferItemList items; 5209 final DataTransferItemList items;
5210 5210
5211 /** @domName Clipboard.types */ 5211 /** @domName Clipboard.types; @docsEditable true */
5212 final List types; 5212 final List types;
5213 5213
5214 /** @domName Clipboard.clearData */ 5214 /** @domName Clipboard.clearData; @docsEditable true */
5215 void clearData([String type]) native; 5215 void clearData([String type]) native;
5216 5216
5217 /** @domName Clipboard.getData */ 5217 /** @domName Clipboard.getData; @docsEditable true */
5218 String getData(String type) native; 5218 String getData(String type) native;
5219 5219
5220 /** @domName Clipboard.setData */ 5220 /** @domName Clipboard.setData; @docsEditable true */
5221 bool setData(String type, String data) native; 5221 bool setData(String type, String data) native;
5222 5222
5223 /** @domName Clipboard.setDragImage */ 5223 /** @domName Clipboard.setDragImage; @docsEditable true */
5224 void setDragImage(ImageElement image, int x, int y) native; 5224 void setDragImage(ImageElement image, int x, int y) native;
5225 } 5225 }
5226 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5226 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5227 // for details. All rights reserved. Use of this source code is governed by a 5227 // for details. All rights reserved. Use of this source code is governed by a
5228 // BSD-style license that can be found in the LICENSE file. 5228 // BSD-style license that can be found in the LICENSE file.
5229 5229
5230 5230
5231 /// @domName CloseEvent 5231 /// @domName CloseEvent; @docsEditable true
5232 class CloseEvent extends Event native "*CloseEvent" { 5232 class CloseEvent extends Event native "*CloseEvent" {
5233 5233
5234 /** @domName CloseEvent.code */ 5234 /** @domName CloseEvent.code; @docsEditable true */
5235 final int code; 5235 final int code;
5236 5236
5237 /** @domName CloseEvent.reason */ 5237 /** @domName CloseEvent.reason; @docsEditable true */
5238 final String reason; 5238 final String reason;
5239 5239
5240 /** @domName CloseEvent.wasClean */ 5240 /** @domName CloseEvent.wasClean; @docsEditable true */
5241 final bool wasClean; 5241 final bool wasClean;
5242 } 5242 }
5243 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5243 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5244 // for details. All rights reserved. Use of this source code is governed by a 5244 // for details. All rights reserved. Use of this source code is governed by a
5245 // BSD-style license that can be found in the LICENSE file. 5245 // BSD-style license that can be found in the LICENSE file.
5246 5246
5247 5247
5248 /// @domName Comment 5248 /// @domName Comment; @docsEditable true
5249 class Comment extends CharacterData native "*Comment" { 5249 class Comment extends CharacterData native "*Comment" {
5250 } 5250 }
5251 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5251 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5252 // for details. All rights reserved. Use of this source code is governed by a 5252 // for details. All rights reserved. Use of this source code is governed by a
5253 // BSD-style license that can be found in the LICENSE file. 5253 // BSD-style license that can be found in the LICENSE file.
5254 5254
5255 5255
5256 /// @domName CompositionEvent 5256 /// @domName CompositionEvent; @docsEditable true
5257 class CompositionEvent extends UIEvent native "*CompositionEvent" { 5257 class CompositionEvent extends UIEvent native "*CompositionEvent" {
5258 5258
5259 /** @domName CompositionEvent.data */ 5259 /** @domName CompositionEvent.data; @docsEditable true */
5260 final String data; 5260 final String data;
5261 5261
5262 /** @domName CompositionEvent.initCompositionEvent */ 5262 /** @domName CompositionEvent.initCompositionEvent; @docsEditable true */
5263 void initCompositionEvent(String typeArg, bool canBubbleArg, bool cancelableAr g, LocalWindow viewArg, String dataArg) native; 5263 void initCompositionEvent(String typeArg, bool canBubbleArg, bool cancelableAr g, LocalWindow viewArg, String dataArg) native;
5264 } 5264 }
5265 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5265 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5266 // for details. All rights reserved. Use of this source code is governed by a 5266 // for details. All rights reserved. Use of this source code is governed by a
5267 // BSD-style license that can be found in the LICENSE file. 5267 // BSD-style license that can be found in the LICENSE file.
5268 5268
5269 5269
5270 class Console 5270 class Console
5271 // Console is sometimes a singleton bag-of-properties without a prototype. 5271 // Console is sometimes a singleton bag-of-properties without a prototype.
5272 native "=(typeof console == 'undefined' ? {} : console)" { 5272 native "=(typeof console == 'undefined' ? {} : console)" {
5273 5273
5274 /** @domName Console.memory */ 5274 /** @domName Console.memory; @docsEditable true */
5275 final MemoryInfo memory; 5275 final MemoryInfo memory;
5276 5276
5277 /** @domName Console.profiles */ 5277 /** @domName Console.profiles; @docsEditable true */
5278 final List<ScriptProfile> profiles; 5278 final List<ScriptProfile> profiles;
5279 5279
5280 /** @domName Console.assertCondition */ 5280 /** @domName Console.assertCondition; @docsEditable true */
5281 void assertCondition(bool condition, Object arg) native; 5281 void assertCondition(bool condition, Object arg) native;
5282 5282
5283 /** @domName Console.count */ 5283 /** @domName Console.count; @docsEditable true */
5284 void count(Object arg) native; 5284 void count(Object arg) native;
5285 5285
5286 /** @domName Console.debug */ 5286 /** @domName Console.debug; @docsEditable true */
5287 void debug(Object arg) native; 5287 void debug(Object arg) native;
5288 5288
5289 /** @domName Console.dir */ 5289 /** @domName Console.dir; @docsEditable true */
5290 void dir(Object arg) native; 5290 void dir(Object arg) native;
5291 5291
5292 /** @domName Console.dirxml */ 5292 /** @domName Console.dirxml; @docsEditable true */
5293 void dirxml(Object arg) native; 5293 void dirxml(Object arg) native;
5294 5294
5295 /** @domName Console.error */ 5295 /** @domName Console.error; @docsEditable true */
5296 void error(Object arg) native; 5296 void error(Object arg) native;
5297 5297
5298 /** @domName Console.group */ 5298 /** @domName Console.group; @docsEditable true */
5299 void group(Object arg) native; 5299 void group(Object arg) native;
5300 5300
5301 /** @domName Console.groupCollapsed */ 5301 /** @domName Console.groupCollapsed; @docsEditable true */
5302 void groupCollapsed(Object arg) native; 5302 void groupCollapsed(Object arg) native;
5303 5303
5304 /** @domName Console.groupEnd */ 5304 /** @domName Console.groupEnd; @docsEditable true */
5305 void groupEnd() native; 5305 void groupEnd() native;
5306 5306
5307 /** @domName Console.info */ 5307 /** @domName Console.info; @docsEditable true */
5308 void info(Object arg) native; 5308 void info(Object arg) native;
5309 5309
5310 /** @domName Console.log */ 5310 /** @domName Console.log; @docsEditable true */
5311 void log(Object arg) native; 5311 void log(Object arg) native;
5312 5312
5313 /** @domName Console.markTimeline */ 5313 /** @domName Console.markTimeline; @docsEditable true */
5314 void markTimeline(Object arg) native; 5314 void markTimeline(Object arg) native;
5315 5315
5316 /** @domName Console.profile */ 5316 /** @domName Console.profile; @docsEditable true */
5317 void profile(String title) native; 5317 void profile(String title) native;
5318 5318
5319 /** @domName Console.profileEnd */ 5319 /** @domName Console.profileEnd; @docsEditable true */
5320 void profileEnd(String title) native; 5320 void profileEnd(String title) native;
5321 5321
5322 /** @domName Console.time */ 5322 /** @domName Console.time; @docsEditable true */
5323 void time(String title) native; 5323 void time(String title) native;
5324 5324
5325 /** @domName Console.timeEnd */ 5325 /** @domName Console.timeEnd; @docsEditable true */
5326 void timeEnd(String title, Object arg) native; 5326 void timeEnd(String title, Object arg) native;
5327 5327
5328 /** @domName Console.timeStamp */ 5328 /** @domName Console.timeStamp; @docsEditable true */
5329 void timeStamp(Object arg) native; 5329 void timeStamp(Object arg) native;
5330 5330
5331 /** @domName Console.trace */ 5331 /** @domName Console.trace; @docsEditable true */
5332 void trace(Object arg) native; 5332 void trace(Object arg) native;
5333 5333
5334 /** @domName Console.warn */ 5334 /** @domName Console.warn; @docsEditable true */
5335 void warn(Object arg) native; 5335 void warn(Object arg) native;
5336 5336
5337 } 5337 }
5338 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5338 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5339 // for details. All rights reserved. Use of this source code is governed by a 5339 // for details. All rights reserved. Use of this source code is governed by a
5340 // BSD-style license that can be found in the LICENSE file. 5340 // BSD-style license that can be found in the LICENSE file.
5341 5341
5342 5342
5343 /// @domName HTMLContentElement 5343 /// @domName HTMLContentElement; @docsEditable true
5344 class ContentElement extends Element implements Element native "*HTMLContentElem ent" { 5344 class ContentElement extends Element implements Element native "*HTMLContentElem ent" {
5345 5345
5346 factory ContentElement() => document.$dom_createElement("content"); 5346 factory ContentElement() => document.$dom_createElement("content");
5347 5347
5348 /** @domName HTMLContentElement.resetStyleInheritance */ 5348 /** @domName HTMLContentElement.resetStyleInheritance; @docsEditable true */
5349 bool resetStyleInheritance; 5349 bool resetStyleInheritance;
5350 5350
5351 /** @domName HTMLContentElement.select */ 5351 /** @domName HTMLContentElement.select; @docsEditable true */
5352 String select; 5352 String select;
5353 5353
5354 /** @domName HTMLContentElement.getDistributedNodes */ 5354 /** @domName HTMLContentElement.getDistributedNodes; @docsEditable true */
5355 List<Node> getDistributedNodes() native; 5355 List<Node> getDistributedNodes() native;
5356 } 5356 }
5357 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5357 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5358 // for details. All rights reserved. Use of this source code is governed by a 5358 // for details. All rights reserved. Use of this source code is governed by a
5359 // BSD-style license that can be found in the LICENSE file. 5359 // BSD-style license that can be found in the LICENSE file.
5360 5360
5361 5361
5362 /// @domName ConvolverNode 5362 /// @domName ConvolverNode; @docsEditable true
5363 class ConvolverNode extends AudioNode native "*ConvolverNode" { 5363 class ConvolverNode extends AudioNode native "*ConvolverNode" {
5364 5364
5365 /** @domName ConvolverNode.buffer */ 5365 /** @domName ConvolverNode.buffer; @docsEditable true */
5366 AudioBuffer buffer; 5366 AudioBuffer buffer;
5367 5367
5368 /** @domName ConvolverNode.normalize */ 5368 /** @domName ConvolverNode.normalize; @docsEditable true */
5369 bool normalize; 5369 bool normalize;
5370 } 5370 }
5371 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5371 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5372 // for details. All rights reserved. Use of this source code is governed by a 5372 // for details. All rights reserved. Use of this source code is governed by a
5373 // BSD-style license that can be found in the LICENSE file. 5373 // BSD-style license that can be found in the LICENSE file.
5374 5374
5375 5375
5376 /// @domName Coordinates 5376 /// @domName Coordinates; @docsEditable true
5377 class Coordinates native "*Coordinates" { 5377 class Coordinates native "*Coordinates" {
5378 5378
5379 /** @domName Coordinates.accuracy */ 5379 /** @domName Coordinates.accuracy; @docsEditable true */
5380 final num accuracy; 5380 final num accuracy;
5381 5381
5382 /** @domName Coordinates.altitude */ 5382 /** @domName Coordinates.altitude; @docsEditable true */
5383 final num altitude; 5383 final num altitude;
5384 5384
5385 /** @domName Coordinates.altitudeAccuracy */ 5385 /** @domName Coordinates.altitudeAccuracy; @docsEditable true */
5386 final num altitudeAccuracy; 5386 final num altitudeAccuracy;
5387 5387
5388 /** @domName Coordinates.heading */ 5388 /** @domName Coordinates.heading; @docsEditable true */
5389 final num heading; 5389 final num heading;
5390 5390
5391 /** @domName Coordinates.latitude */ 5391 /** @domName Coordinates.latitude; @docsEditable true */
5392 final num latitude; 5392 final num latitude;
5393 5393
5394 /** @domName Coordinates.longitude */ 5394 /** @domName Coordinates.longitude; @docsEditable true */
5395 final num longitude; 5395 final num longitude;
5396 5396
5397 /** @domName Coordinates.speed */ 5397 /** @domName Coordinates.speed; @docsEditable true */
5398 final num speed; 5398 final num speed;
5399 } 5399 }
5400 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5400 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5401 // for details. All rights reserved. Use of this source code is governed by a 5401 // for details. All rights reserved. Use of this source code is governed by a
5402 // BSD-style license that can be found in the LICENSE file. 5402 // BSD-style license that can be found in the LICENSE file.
5403 5403
5404 5404
5405 /// @domName Counter 5405 /// @domName Counter; @docsEditable true
5406 class Counter native "*Counter" { 5406 class Counter native "*Counter" {
5407 5407
5408 /** @domName Counter.identifier */ 5408 /** @domName Counter.identifier; @docsEditable true */
5409 final String identifier; 5409 final String identifier;
5410 5410
5411 /** @domName Counter.listStyle */ 5411 /** @domName Counter.listStyle; @docsEditable true */
5412 final String listStyle; 5412 final String listStyle;
5413 5413
5414 /** @domName Counter.separator */ 5414 /** @domName Counter.separator; @docsEditable true */
5415 final String separator; 5415 final String separator;
5416 } 5416 }
5417 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5417 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5418 // for details. All rights reserved. Use of this source code is governed by a 5418 // for details. All rights reserved. Use of this source code is governed by a
5419 // BSD-style license that can be found in the LICENSE file. 5419 // BSD-style license that can be found in the LICENSE file.
5420 5420
5421 5421
5422 /// @domName Crypto 5422 /// @domName Crypto; @docsEditable true
5423 class Crypto native "*Crypto" { 5423 class Crypto native "*Crypto" {
5424 5424
5425 /** @domName Crypto.getRandomValues */ 5425 /** @domName Crypto.getRandomValues; @docsEditable true */
5426 void getRandomValues(ArrayBufferView array) native; 5426 void getRandomValues(ArrayBufferView array) native;
5427 } 5427 }
5428 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5428 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5429 // for details. All rights reserved. Use of this source code is governed by a 5429 // for details. All rights reserved. Use of this source code is governed by a
5430 // BSD-style license that can be found in the LICENSE file. 5430 // BSD-style license that can be found in the LICENSE file.
5431 5431
5432 // WARNING: Do not edit - generated code. 5432 // WARNING: Do not edit - generated code.
5433 5433
5434 5434
5435 class CustomEvent extends Event native "*CustomEvent" { 5435 class CustomEvent extends Event native "*CustomEvent" {
5436 factory CustomEvent(String type, [bool canBubble = true, bool cancelable = tru e, 5436 factory CustomEvent(String type, [bool canBubble = true, bool cancelable = tru e,
5437 Object detail]) => _CustomEventFactoryProvider.createCustomEvent( 5437 Object detail]) => _CustomEventFactoryProvider.createCustomEvent(
5438 type, canBubble, cancelable, detail); 5438 type, canBubble, cancelable, detail);
5439 5439
5440 /** @domName CustomEvent.detail */ 5440 /** @domName CustomEvent.detail; @docsEditable true */
5441 final Object detail; 5441 final Object detail;
5442 5442
5443 /** @domName CustomEvent.initCustomEvent */ 5443 /** @domName CustomEvent.initCustomEvent; @docsEditable true */
5444 void $dom_initCustomEvent(String typeArg, bool canBubbleArg, bool cancelableAr g, Object detailArg) native "initCustomEvent"; 5444 void $dom_initCustomEvent(String typeArg, bool canBubbleArg, bool cancelableAr g, Object detailArg) native "initCustomEvent";
5445 5445
5446 } 5446 }
5447 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5447 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5448 // for details. All rights reserved. Use of this source code is governed by a 5448 // for details. All rights reserved. Use of this source code is governed by a
5449 // BSD-style license that can be found in the LICENSE file. 5449 // BSD-style license that can be found in the LICENSE file.
5450 5450
5451 5451
5452 /// @domName HTMLDListElement 5452 /// @domName HTMLDListElement; @docsEditable true
5453 class DListElement extends Element implements Element native "*HTMLDListElement" { 5453 class DListElement extends Element implements Element native "*HTMLDListElement" {
5454 5454
5455 factory DListElement() => document.$dom_createElement("dl"); 5455 factory DListElement() => document.$dom_createElement("dl");
5456 5456
5457 /** @domName HTMLDListElement.compact */ 5457 /** @domName HTMLDListElement.compact; @docsEditable true */
5458 bool compact; 5458 bool compact;
5459 } 5459 }
5460 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5460 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5461 // for details. All rights reserved. Use of this source code is governed by a 5461 // for details. All rights reserved. Use of this source code is governed by a
5462 // BSD-style license that can be found in the LICENSE file. 5462 // BSD-style license that can be found in the LICENSE file.
5463 5463
5464 5464
5465 /// @domName DOMApplicationCache 5465 /// @domName DOMApplicationCache; @docsEditable true
5466 class DOMApplicationCache extends EventTarget native "*DOMApplicationCache" { 5466 class DOMApplicationCache extends EventTarget native "*DOMApplicationCache" {
5467 5467
5468 /** 5468 /**
5469 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 5469 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent; @docsEditable true
5470 */ 5470 */
5471 DOMApplicationCacheEvents get on => 5471 DOMApplicationCacheEvents get on =>
5472 new DOMApplicationCacheEvents(this); 5472 new DOMApplicationCacheEvents(this);
5473 5473
5474 static const int CHECKING = 2; 5474 static const int CHECKING = 2;
5475 5475
5476 static const int DOWNLOADING = 3; 5476 static const int DOWNLOADING = 3;
5477 5477
5478 static const int IDLE = 1; 5478 static const int IDLE = 1;
5479 5479
5480 static const int OBSOLETE = 5; 5480 static const int OBSOLETE = 5;
5481 5481
5482 static const int UNCACHED = 0; 5482 static const int UNCACHED = 0;
5483 5483
5484 static const int UPDATEREADY = 4; 5484 static const int UPDATEREADY = 4;
5485 5485
5486 /** @domName DOMApplicationCache.status */ 5486 /** @domName DOMApplicationCache.status; @docsEditable true */
5487 final int status; 5487 final int status;
5488 5488
5489 /** @domName DOMApplicationCache.abort */ 5489 /** @domName DOMApplicationCache.abort; @docsEditable true */
5490 void abort() native; 5490 void abort() native;
5491 5491
5492 /** @domName DOMApplicationCache.addEventListener */ 5492 /** @domName DOMApplicationCache.addEventListener; @docsEditable true */
5493 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 5493 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
5494 5494
5495 /** @domName DOMApplicationCache.dispatchEvent */ 5495 /** @domName DOMApplicationCache.dispatchEvent; @docsEditable true */
5496 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; 5496 bool $dom_dispatchEvent(Event evt) native "dispatchEvent";
5497 5497
5498 /** @domName DOMApplicationCache.removeEventListener */ 5498 /** @domName DOMApplicationCache.removeEventListener; @docsEditable true */
5499 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 5499 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
5500 5500
5501 /** @domName DOMApplicationCache.swapCache */ 5501 /** @domName DOMApplicationCache.swapCache; @docsEditable true */
5502 void swapCache() native; 5502 void swapCache() native;
5503 5503
5504 /** @domName DOMApplicationCache.update */ 5504 /** @domName DOMApplicationCache.update; @docsEditable true */
5505 void update() native; 5505 void update() native;
5506 } 5506 }
5507 5507
5508 class DOMApplicationCacheEvents extends Events { 5508 class DOMApplicationCacheEvents extends Events {
5509 DOMApplicationCacheEvents(EventTarget _ptr) : super(_ptr); 5509 DOMApplicationCacheEvents(EventTarget _ptr) : super(_ptr);
5510 5510
5511 EventListenerList get cached => this['cached']; 5511 EventListenerList get cached => this['cached'];
5512 5512
5513 EventListenerList get checking => this['checking']; 5513 EventListenerList get checking => this['checking'];
5514 5514
5515 EventListenerList get downloading => this['downloading']; 5515 EventListenerList get downloading => this['downloading'];
5516 5516
5517 EventListenerList get error => this['error']; 5517 EventListenerList get error => this['error'];
5518 5518
5519 EventListenerList get noUpdate => this['noupdate']; 5519 EventListenerList get noUpdate => this['noupdate'];
5520 5520
5521 EventListenerList get obsolete => this['obsolete']; 5521 EventListenerList get obsolete => this['obsolete'];
5522 5522
5523 EventListenerList get progress => this['progress']; 5523 EventListenerList get progress => this['progress'];
5524 5524
5525 EventListenerList get updateReady => this['updateready']; 5525 EventListenerList get updateReady => this['updateready'];
5526 } 5526 }
5527 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5527 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5528 // for details. All rights reserved. Use of this source code is governed by a 5528 // for details. All rights reserved. Use of this source code is governed by a
5529 // BSD-style license that can be found in the LICENSE file. 5529 // BSD-style license that can be found in the LICENSE file.
5530 5530
5531 5531
5532 /// @domName DOMError 5532 /// @domName DOMError; @docsEditable true
5533 class DOMError native "*DOMError" { 5533 class DOMError native "*DOMError" {
5534 5534
5535 /** @domName DOMError.name */ 5535 /** @domName DOMError.name; @docsEditable true */
5536 final String name; 5536 final String name;
5537 } 5537 }
5538 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5538 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5539 // for details. All rights reserved. Use of this source code is governed by a 5539 // for details. All rights reserved. Use of this source code is governed by a
5540 // BSD-style license that can be found in the LICENSE file. 5540 // BSD-style license that can be found in the LICENSE file.
5541 5541
5542 5542
5543 /// @domName DOMException 5543 /// @domName DOMException; @docsEditable true
5544 class DOMException native "*DOMException" { 5544 class DOMException native "*DOMException" {
5545 5545
5546 static const int ABORT_ERR = 20; 5546 static const int ABORT_ERR = 20;
5547 5547
5548 static const int DATA_CLONE_ERR = 25; 5548 static const int DATA_CLONE_ERR = 25;
5549 5549
5550 static const int DOMSTRING_SIZE_ERR = 2; 5550 static const int DOMSTRING_SIZE_ERR = 2;
5551 5551
5552 static const int HIERARCHY_REQUEST_ERR = 3; 5552 static const int HIERARCHY_REQUEST_ERR = 3;
5553 5553
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
5586 static const int TIMEOUT_ERR = 23; 5586 static const int TIMEOUT_ERR = 23;
5587 5587
5588 static const int TYPE_MISMATCH_ERR = 17; 5588 static const int TYPE_MISMATCH_ERR = 17;
5589 5589
5590 static const int URL_MISMATCH_ERR = 21; 5590 static const int URL_MISMATCH_ERR = 21;
5591 5591
5592 static const int VALIDATION_ERR = 16; 5592 static const int VALIDATION_ERR = 16;
5593 5593
5594 static const int WRONG_DOCUMENT_ERR = 4; 5594 static const int WRONG_DOCUMENT_ERR = 4;
5595 5595
5596 /** @domName DOMException.code */ 5596 /** @domName DOMException.code; @docsEditable true */
5597 final int code; 5597 final int code;
5598 5598
5599 /** @domName DOMException.message */ 5599 /** @domName DOMException.message; @docsEditable true */
5600 final String message; 5600 final String message;
5601 5601
5602 /** @domName DOMException.name */ 5602 /** @domName DOMException.name; @docsEditable true */
5603 final String name; 5603 final String name;
5604 5604
5605 /** @domName DOMException.toString */ 5605 /** @domName DOMException.toString; @docsEditable true */
5606 String toString() native; 5606 String toString() native;
5607 } 5607 }
5608 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5608 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5609 // for details. All rights reserved. Use of this source code is governed by a 5609 // for details. All rights reserved. Use of this source code is governed by a
5610 // BSD-style license that can be found in the LICENSE file. 5610 // BSD-style license that can be found in the LICENSE file.
5611 5611
5612 5612
5613 /// @domName DOMFileSystem 5613 /// @domName DOMFileSystem; @docsEditable true
5614 class DOMFileSystem native "*DOMFileSystem" { 5614 class DOMFileSystem native "*DOMFileSystem" {
5615 5615
5616 /** @domName DOMFileSystem.name */ 5616 /** @domName DOMFileSystem.name; @docsEditable true */
5617 final String name; 5617 final String name;
5618 5618
5619 /** @domName DOMFileSystem.root */ 5619 /** @domName DOMFileSystem.root; @docsEditable true */
5620 final DirectoryEntry root; 5620 final DirectoryEntry root;
5621 } 5621 }
5622 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5622 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5623 // for details. All rights reserved. Use of this source code is governed by a 5623 // for details. All rights reserved. Use of this source code is governed by a
5624 // BSD-style license that can be found in the LICENSE file. 5624 // BSD-style license that can be found in the LICENSE file.
5625 5625
5626 5626
5627 /// @domName DOMFileSystemSync 5627 /// @domName DOMFileSystemSync; @docsEditable true
5628 class DOMFileSystemSync native "*DOMFileSystemSync" { 5628 class DOMFileSystemSync native "*DOMFileSystemSync" {
5629 5629
5630 /** @domName DOMFileSystemSync.name */ 5630 /** @domName DOMFileSystemSync.name; @docsEditable true */
5631 final String name; 5631 final String name;
5632 5632
5633 /** @domName DOMFileSystemSync.root */ 5633 /** @domName DOMFileSystemSync.root; @docsEditable true */
5634 final DirectoryEntrySync root; 5634 final DirectoryEntrySync root;
5635 } 5635 }
5636 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5636 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5637 // for details. All rights reserved. Use of this source code is governed by a 5637 // for details. All rights reserved. Use of this source code is governed by a
5638 // BSD-style license that can be found in the LICENSE file. 5638 // BSD-style license that can be found in the LICENSE file.
5639 5639
5640 5640
5641 /// @domName DOMImplementation 5641 /// @domName DOMImplementation; @docsEditable true
5642 class DOMImplementation native "*DOMImplementation" { 5642 class DOMImplementation native "*DOMImplementation" {
5643 5643
5644 /** @domName DOMImplementation.createCSSStyleSheet */ 5644 /** @domName DOMImplementation.createCSSStyleSheet; @docsEditable true */
5645 CSSStyleSheet createCSSStyleSheet(String title, String media) native; 5645 CSSStyleSheet createCSSStyleSheet(String title, String media) native;
5646 5646
5647 /** @domName DOMImplementation.createDocument */ 5647 /** @domName DOMImplementation.createDocument; @docsEditable true */
5648 Document createDocument(String namespaceURI, String qualifiedName, DocumentTyp e doctype) native; 5648 Document createDocument(String namespaceURI, String qualifiedName, DocumentTyp e doctype) native;
5649 5649
5650 /** @domName DOMImplementation.createDocumentType */ 5650 /** @domName DOMImplementation.createDocumentType; @docsEditable true */
5651 DocumentType createDocumentType(String qualifiedName, String publicId, String systemId) native; 5651 DocumentType createDocumentType(String qualifiedName, String publicId, String systemId) native;
5652 5652
5653 /** @domName DOMImplementation.createHTMLDocument */ 5653 /** @domName DOMImplementation.createHTMLDocument; @docsEditable true */
5654 HtmlDocument createHTMLDocument(String title) native; 5654 HtmlDocument createHTMLDocument(String title) native;
5655 5655
5656 /** @domName DOMImplementation.hasFeature */ 5656 /** @domName DOMImplementation.hasFeature; @docsEditable true */
5657 bool hasFeature(String feature, String version) native; 5657 bool hasFeature(String feature, String version) native;
5658 } 5658 }
5659 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5659 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5660 // for details. All rights reserved. Use of this source code is governed by a 5660 // for details. All rights reserved. Use of this source code is governed by a
5661 // BSD-style license that can be found in the LICENSE file. 5661 // BSD-style license that can be found in the LICENSE file.
5662 5662
5663 5663
5664 /// @domName MimeType 5664 /// @domName MimeType; @docsEditable true
5665 class DOMMimeType native "*MimeType" { 5665 class DOMMimeType native "*MimeType" {
5666 5666
5667 /** @domName MimeType.description */ 5667 /** @domName MimeType.description; @docsEditable true */
5668 final String description; 5668 final String description;
5669 5669
5670 /** @domName MimeType.enabledPlugin */ 5670 /** @domName MimeType.enabledPlugin; @docsEditable true */
5671 final DOMPlugin enabledPlugin; 5671 final DOMPlugin enabledPlugin;
5672 5672
5673 /** @domName MimeType.suffixes */ 5673 /** @domName MimeType.suffixes; @docsEditable true */
5674 final String suffixes; 5674 final String suffixes;
5675 5675
5676 /** @domName MimeType.type */ 5676 /** @domName MimeType.type; @docsEditable true */
5677 final String type; 5677 final String type;
5678 } 5678 }
5679 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5679 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5680 // for details. All rights reserved. Use of this source code is governed by a 5680 // for details. All rights reserved. Use of this source code is governed by a
5681 // BSD-style license that can be found in the LICENSE file. 5681 // BSD-style license that can be found in the LICENSE file.
5682 5682
5683 5683
5684 /// @domName MimeTypeArray 5684 /// @domName MimeTypeArray; @docsEditable true
5685 class DOMMimeTypeArray implements JavaScriptIndexingBehavior, List<DOMMimeType> native "*MimeTypeArray" { 5685 class DOMMimeTypeArray implements JavaScriptIndexingBehavior, List<DOMMimeType> native "*MimeTypeArray" {
5686 5686
5687 /** @domName MimeTypeArray.length */ 5687 /** @domName MimeTypeArray.length; @docsEditable true */
5688 final int length; 5688 final int length;
5689 5689
5690 DOMMimeType operator[](int index) => JS("DOMMimeType", "#[#]", this, index); 5690 DOMMimeType operator[](int index) => JS("DOMMimeType", "#[#]", this, index);
5691 5691
5692 void operator[]=(int index, DOMMimeType value) { 5692 void operator[]=(int index, DOMMimeType value) {
5693 throw new UnsupportedError("Cannot assign element of immutable List."); 5693 throw new UnsupportedError("Cannot assign element of immutable List.");
5694 } 5694 }
5695 // -- start List<DOMMimeType> mixins. 5695 // -- start List<DOMMimeType> mixins.
5696 // DOMMimeType is the element type. 5696 // DOMMimeType is the element type.
5697 5697
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
5765 5765
5766 void insertRange(int start, int rangeLength, [DOMMimeType initialValue]) { 5766 void insertRange(int start, int rangeLength, [DOMMimeType initialValue]) {
5767 throw new UnsupportedError("Cannot insertRange on immutable List."); 5767 throw new UnsupportedError("Cannot insertRange on immutable List.");
5768 } 5768 }
5769 5769
5770 List<DOMMimeType> getRange(int start, int rangeLength) => 5770 List<DOMMimeType> getRange(int start, int rangeLength) =>
5771 _Lists.getRange(this, start, rangeLength, <DOMMimeType>[]); 5771 _Lists.getRange(this, start, rangeLength, <DOMMimeType>[]);
5772 5772
5773 // -- end List<DOMMimeType> mixins. 5773 // -- end List<DOMMimeType> mixins.
5774 5774
5775 /** @domName MimeTypeArray.item */ 5775 /** @domName MimeTypeArray.item; @docsEditable true */
5776 DOMMimeType item(int index) native; 5776 DOMMimeType item(int index) native;
5777 5777
5778 /** @domName MimeTypeArray.namedItem */ 5778 /** @domName MimeTypeArray.namedItem; @docsEditable true */
5779 DOMMimeType namedItem(String name) native; 5779 DOMMimeType namedItem(String name) native;
5780 } 5780 }
5781 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5781 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5782 // for details. All rights reserved. Use of this source code is governed by a 5782 // for details. All rights reserved. Use of this source code is governed by a
5783 // BSD-style license that can be found in the LICENSE file. 5783 // BSD-style license that can be found in the LICENSE file.
5784 5784
5785 5785
5786 /// @domName DOMParser 5786 /// @domName DOMParser; @docsEditable true
5787 class DOMParser native "*DOMParser" { 5787 class DOMParser native "*DOMParser" {
5788 5788
5789 factory DOMParser() => _DOMParserFactoryProvider.createDOMParser(); 5789 factory DOMParser() => _DOMParserFactoryProvider.createDOMParser();
5790 5790
5791 /** @domName DOMParser.parseFromString */ 5791 /** @domName DOMParser.parseFromString; @docsEditable true */
5792 Document parseFromString(String str, String contentType) native; 5792 Document parseFromString(String str, String contentType) native;
5793 } 5793 }
5794 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5794 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5795 // for details. All rights reserved. Use of this source code is governed by a 5795 // for details. All rights reserved. Use of this source code is governed by a
5796 // BSD-style license that can be found in the LICENSE file. 5796 // BSD-style license that can be found in the LICENSE file.
5797 5797
5798 5798
5799 /// @domName Plugin 5799 /// @domName Plugin; @docsEditable true
5800 class DOMPlugin native "*Plugin" { 5800 class DOMPlugin native "*Plugin" {
5801 5801
5802 /** @domName Plugin.description */ 5802 /** @domName Plugin.description; @docsEditable true */
5803 final String description; 5803 final String description;
5804 5804
5805 /** @domName Plugin.filename */ 5805 /** @domName Plugin.filename; @docsEditable true */
5806 final String filename; 5806 final String filename;
5807 5807
5808 /** @domName Plugin.length */ 5808 /** @domName Plugin.length; @docsEditable true */
5809 final int length; 5809 final int length;
5810 5810
5811 /** @domName Plugin.name */ 5811 /** @domName Plugin.name; @docsEditable true */
5812 final String name; 5812 final String name;
5813 5813
5814 /** @domName Plugin.item */ 5814 /** @domName Plugin.item; @docsEditable true */
5815 DOMMimeType item(int index) native; 5815 DOMMimeType item(int index) native;
5816 5816
5817 /** @domName Plugin.namedItem */ 5817 /** @domName Plugin.namedItem; @docsEditable true */
5818 DOMMimeType namedItem(String name) native; 5818 DOMMimeType namedItem(String name) native;
5819 } 5819 }
5820 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5820 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5821 // for details. All rights reserved. Use of this source code is governed by a 5821 // for details. All rights reserved. Use of this source code is governed by a
5822 // BSD-style license that can be found in the LICENSE file. 5822 // BSD-style license that can be found in the LICENSE file.
5823 5823
5824 5824
5825 /// @domName PluginArray 5825 /// @domName PluginArray; @docsEditable true
5826 class DOMPluginArray implements JavaScriptIndexingBehavior, List<DOMPlugin> nati ve "*PluginArray" { 5826 class DOMPluginArray implements JavaScriptIndexingBehavior, List<DOMPlugin> nati ve "*PluginArray" {
5827 5827
5828 /** @domName PluginArray.length */ 5828 /** @domName PluginArray.length; @docsEditable true */
5829 final int length; 5829 final int length;
5830 5830
5831 DOMPlugin operator[](int index) => JS("DOMPlugin", "#[#]", this, index); 5831 DOMPlugin operator[](int index) => JS("DOMPlugin", "#[#]", this, index);
5832 5832
5833 void operator[]=(int index, DOMPlugin value) { 5833 void operator[]=(int index, DOMPlugin value) {
5834 throw new UnsupportedError("Cannot assign element of immutable List."); 5834 throw new UnsupportedError("Cannot assign element of immutable List.");
5835 } 5835 }
5836 // -- start List<DOMPlugin> mixins. 5836 // -- start List<DOMPlugin> mixins.
5837 // DOMPlugin is the element type. 5837 // DOMPlugin is the element type.
5838 5838
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
5906 5906
5907 void insertRange(int start, int rangeLength, [DOMPlugin initialValue]) { 5907 void insertRange(int start, int rangeLength, [DOMPlugin initialValue]) {
5908 throw new UnsupportedError("Cannot insertRange on immutable List."); 5908 throw new UnsupportedError("Cannot insertRange on immutable List.");
5909 } 5909 }
5910 5910
5911 List<DOMPlugin> getRange(int start, int rangeLength) => 5911 List<DOMPlugin> getRange(int start, int rangeLength) =>
5912 _Lists.getRange(this, start, rangeLength, <DOMPlugin>[]); 5912 _Lists.getRange(this, start, rangeLength, <DOMPlugin>[]);
5913 5913
5914 // -- end List<DOMPlugin> mixins. 5914 // -- end List<DOMPlugin> mixins.
5915 5915
5916 /** @domName PluginArray.item */ 5916 /** @domName PluginArray.item; @docsEditable true */
5917 DOMPlugin item(int index) native; 5917 DOMPlugin item(int index) native;
5918 5918
5919 /** @domName PluginArray.namedItem */ 5919 /** @domName PluginArray.namedItem; @docsEditable true */
5920 DOMPlugin namedItem(String name) native; 5920 DOMPlugin namedItem(String name) native;
5921 5921
5922 /** @domName PluginArray.refresh */ 5922 /** @domName PluginArray.refresh; @docsEditable true */
5923 void refresh(bool reload) native; 5923 void refresh(bool reload) native;
5924 } 5924 }
5925 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5925 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5926 // for details. All rights reserved. Use of this source code is governed by a 5926 // for details. All rights reserved. Use of this source code is governed by a
5927 // BSD-style license that can be found in the LICENSE file. 5927 // BSD-style license that can be found in the LICENSE file.
5928 5928
5929 5929
5930 /// @domName Selection 5930 /// @domName Selection; @docsEditable true
5931 class DOMSelection native "*Selection" { 5931 class DOMSelection native "*Selection" {
5932 5932
5933 /** @domName Selection.anchorNode */ 5933 /** @domName Selection.anchorNode; @docsEditable true */
5934 final Node anchorNode; 5934 final Node anchorNode;
5935 5935
5936 /** @domName Selection.anchorOffset */ 5936 /** @domName Selection.anchorOffset; @docsEditable true */
5937 final int anchorOffset; 5937 final int anchorOffset;
5938 5938
5939 /** @domName Selection.baseNode */ 5939 /** @domName Selection.baseNode; @docsEditable true */
5940 final Node baseNode; 5940 final Node baseNode;
5941 5941
5942 /** @domName Selection.baseOffset */ 5942 /** @domName Selection.baseOffset; @docsEditable true */
5943 final int baseOffset; 5943 final int baseOffset;
5944 5944
5945 /** @domName Selection.extentNode */ 5945 /** @domName Selection.extentNode; @docsEditable true */
5946 final Node extentNode; 5946 final Node extentNode;
5947 5947
5948 /** @domName Selection.extentOffset */ 5948 /** @domName Selection.extentOffset; @docsEditable true */
5949 final int extentOffset; 5949 final int extentOffset;
5950 5950
5951 /** @domName Selection.focusNode */ 5951 /** @domName Selection.focusNode; @docsEditable true */
5952 final Node focusNode; 5952 final Node focusNode;
5953 5953
5954 /** @domName Selection.focusOffset */ 5954 /** @domName Selection.focusOffset; @docsEditable true */
5955 final int focusOffset; 5955 final int focusOffset;
5956 5956
5957 /** @domName Selection.isCollapsed */ 5957 /** @domName Selection.isCollapsed; @docsEditable true */
5958 final bool isCollapsed; 5958 final bool isCollapsed;
5959 5959
5960 /** @domName Selection.rangeCount */ 5960 /** @domName Selection.rangeCount; @docsEditable true */
5961 final int rangeCount; 5961 final int rangeCount;
5962 5962
5963 /** @domName Selection.type */ 5963 /** @domName Selection.type; @docsEditable true */
5964 final String type; 5964 final String type;
5965 5965
5966 /** @domName Selection.addRange */ 5966 /** @domName Selection.addRange; @docsEditable true */
5967 void addRange(Range range) native; 5967 void addRange(Range range) native;
5968 5968
5969 /** @domName Selection.collapse */ 5969 /** @domName Selection.collapse; @docsEditable true */
5970 void collapse(Node node, int index) native; 5970 void collapse(Node node, int index) native;
5971 5971
5972 /** @domName Selection.collapseToEnd */ 5972 /** @domName Selection.collapseToEnd; @docsEditable true */
5973 void collapseToEnd() native; 5973 void collapseToEnd() native;
5974 5974
5975 /** @domName Selection.collapseToStart */ 5975 /** @domName Selection.collapseToStart; @docsEditable true */
5976 void collapseToStart() native; 5976 void collapseToStart() native;
5977 5977
5978 /** @domName Selection.containsNode */ 5978 /** @domName Selection.containsNode; @docsEditable true */
5979 bool containsNode(Node node, bool allowPartial) native; 5979 bool containsNode(Node node, bool allowPartial) native;
5980 5980
5981 /** @domName Selection.deleteFromDocument */ 5981 /** @domName Selection.deleteFromDocument; @docsEditable true */
5982 void deleteFromDocument() native; 5982 void deleteFromDocument() native;
5983 5983
5984 /** @domName Selection.empty */ 5984 /** @domName Selection.empty; @docsEditable true */
5985 void empty() native; 5985 void empty() native;
5986 5986
5987 /** @domName Selection.extend */ 5987 /** @domName Selection.extend; @docsEditable true */
5988 void extend(Node node, int offset) native; 5988 void extend(Node node, int offset) native;
5989 5989
5990 /** @domName Selection.getRangeAt */ 5990 /** @domName Selection.getRangeAt; @docsEditable true */
5991 Range getRangeAt(int index) native; 5991 Range getRangeAt(int index) native;
5992 5992
5993 /** @domName Selection.modify */ 5993 /** @domName Selection.modify; @docsEditable true */
5994 void modify(String alter, String direction, String granularity) native; 5994 void modify(String alter, String direction, String granularity) native;
5995 5995
5996 /** @domName Selection.removeAllRanges */ 5996 /** @domName Selection.removeAllRanges; @docsEditable true */
5997 void removeAllRanges() native; 5997 void removeAllRanges() native;
5998 5998
5999 /** @domName Selection.selectAllChildren */ 5999 /** @domName Selection.selectAllChildren; @docsEditable true */
6000 void selectAllChildren(Node node) native; 6000 void selectAllChildren(Node node) native;
6001 6001
6002 /** @domName Selection.setBaseAndExtent */ 6002 /** @domName Selection.setBaseAndExtent; @docsEditable true */
6003 void setBaseAndExtent(Node baseNode, int baseOffset, Node extentNode, int exte ntOffset) native; 6003 void setBaseAndExtent(Node baseNode, int baseOffset, Node extentNode, int exte ntOffset) native;
6004 6004
6005 /** @domName Selection.setPosition */ 6005 /** @domName Selection.setPosition; @docsEditable true */
6006 void setPosition(Node node, int offset) native; 6006 void setPosition(Node node, int offset) native;
6007 6007
6008 /** @domName Selection.toString */ 6008 /** @domName Selection.toString; @docsEditable true */
6009 String toString() native; 6009 String toString() native;
6010 } 6010 }
6011 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6011 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6012 // for details. All rights reserved. Use of this source code is governed by a 6012 // for details. All rights reserved. Use of this source code is governed by a
6013 // BSD-style license that can be found in the LICENSE file. 6013 // BSD-style license that can be found in the LICENSE file.
6014 6014
6015 6015
6016 /// @domName DOMSettableTokenList 6016 /// @domName DOMSettableTokenList; @docsEditable true
6017 class DOMSettableTokenList extends DOMTokenList native "*DOMSettableTokenList" { 6017 class DOMSettableTokenList extends DOMTokenList native "*DOMSettableTokenList" {
6018 6018
6019 /** @domName DOMSettableTokenList.value */ 6019 /** @domName DOMSettableTokenList.value; @docsEditable true */
6020 String value; 6020 String value;
6021 } 6021 }
6022 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6022 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6023 // for details. All rights reserved. Use of this source code is governed by a 6023 // for details. All rights reserved. Use of this source code is governed by a
6024 // BSD-style license that can be found in the LICENSE file. 6024 // BSD-style license that can be found in the LICENSE file.
6025 6025
6026 6026
6027 /// @domName DOMStringMap 6027 /// @domName DOMStringMap
6028 abstract class DOMStringMap { 6028 abstract class DOMStringMap {
6029 } 6029 }
6030 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6030 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6031 // for details. All rights reserved. Use of this source code is governed by a 6031 // for details. All rights reserved. Use of this source code is governed by a
6032 // BSD-style license that can be found in the LICENSE file. 6032 // BSD-style license that can be found in the LICENSE file.
6033 6033
6034 6034
6035 /// @domName DOMTokenList 6035 /// @domName DOMTokenList; @docsEditable true
6036 class DOMTokenList native "*DOMTokenList" { 6036 class DOMTokenList native "*DOMTokenList" {
6037 6037
6038 /** @domName DOMTokenList.length */ 6038 /** @domName DOMTokenList.length; @docsEditable true */
6039 final int length; 6039 final int length;
6040 6040
6041 /** @domName DOMTokenList.contains */ 6041 /** @domName DOMTokenList.contains; @docsEditable true */
6042 bool contains(String token) native; 6042 bool contains(String token) native;
6043 6043
6044 /** @domName DOMTokenList.item */ 6044 /** @domName DOMTokenList.item; @docsEditable true */
6045 String item(int index) native; 6045 String item(int index) native;
6046 6046
6047 /** @domName DOMTokenList.toString */ 6047 /** @domName DOMTokenList.toString; @docsEditable true */
6048 String toString() native; 6048 String toString() native;
6049 6049
6050 /** @domName DOMTokenList.toggle */ 6050 /** @domName DOMTokenList.toggle; @docsEditable true */
6051 bool toggle(String token, [bool force]) native; 6051 bool toggle(String token, [bool force]) native;
6052 } 6052 }
6053 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6053 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6054 // for details. All rights reserved. Use of this source code is governed by a 6054 // for details. All rights reserved. Use of this source code is governed by a
6055 // BSD-style license that can be found in the LICENSE file. 6055 // BSD-style license that can be found in the LICENSE file.
6056 6056
6057 6057
6058 /// @domName HTMLDataListElement 6058 /// @domName HTMLDataListElement; @docsEditable true
6059 class DataListElement extends Element implements Element native "*HTMLDataListEl ement" { 6059 class DataListElement extends Element implements Element native "*HTMLDataListEl ement" {
6060 6060
6061 factory DataListElement() => document.$dom_createElement("datalist"); 6061 factory DataListElement() => document.$dom_createElement("datalist");
6062 6062
6063 /** @domName HTMLDataListElement.options */ 6063 /** @domName HTMLDataListElement.options; @docsEditable true */
6064 final HTMLCollection options; 6064 final HTMLCollection options;
6065 } 6065 }
6066 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6066 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6067 // for details. All rights reserved. Use of this source code is governed by a 6067 // for details. All rights reserved. Use of this source code is governed by a
6068 // BSD-style license that can be found in the LICENSE file. 6068 // BSD-style license that can be found in the LICENSE file.
6069 6069
6070 6070
6071 /// @domName DataTransferItem 6071 /// @domName DataTransferItem; @docsEditable true
6072 class DataTransferItem native "*DataTransferItem" { 6072 class DataTransferItem native "*DataTransferItem" {
6073 6073
6074 /** @domName DataTransferItem.kind */ 6074 /** @domName DataTransferItem.kind; @docsEditable true */
6075 final String kind; 6075 final String kind;
6076 6076
6077 /** @domName DataTransferItem.type */ 6077 /** @domName DataTransferItem.type; @docsEditable true */
6078 final String type; 6078 final String type;
6079 6079
6080 /** @domName DataTransferItem.getAsFile */ 6080 /** @domName DataTransferItem.getAsFile; @docsEditable true */
6081 Blob getAsFile() native; 6081 Blob getAsFile() native;
6082 6082
6083 /** @domName DataTransferItem.getAsString */ 6083 /** @domName DataTransferItem.getAsString; @docsEditable true */
6084 void getAsString([StringCallback callback]) native; 6084 void getAsString([StringCallback callback]) native;
6085 6085
6086 /** @domName DataTransferItem.webkitGetAsEntry */ 6086 /** @domName DataTransferItem.webkitGetAsEntry; @docsEditable true */
6087 Entry webkitGetAsEntry() native; 6087 Entry webkitGetAsEntry() native;
6088 } 6088 }
6089 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6089 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6090 // for details. All rights reserved. Use of this source code is governed by a 6090 // for details. All rights reserved. Use of this source code is governed by a
6091 // BSD-style license that can be found in the LICENSE file. 6091 // BSD-style license that can be found in the LICENSE file.
6092 6092
6093 6093
6094 /// @domName DataTransferItemList 6094 /// @domName DataTransferItemList; @docsEditable true
6095 class DataTransferItemList native "*DataTransferItemList" { 6095 class DataTransferItemList native "*DataTransferItemList" {
6096 6096
6097 /** @domName DataTransferItemList.length */ 6097 /** @domName DataTransferItemList.length; @docsEditable true */
6098 final int length; 6098 final int length;
6099 6099
6100 /** @domName DataTransferItemList.add */ 6100 /** @domName DataTransferItemList.add; @docsEditable true */
6101 void add(data_OR_file, [String type]) native; 6101 void add(data_OR_file, [String type]) native;
6102 6102
6103 /** @domName DataTransferItemList.clear */ 6103 /** @domName DataTransferItemList.clear; @docsEditable true */
6104 void clear() native; 6104 void clear() native;
6105 6105
6106 /** @domName DataTransferItemList.item */ 6106 /** @domName DataTransferItemList.item; @docsEditable true */
6107 DataTransferItem item(int index) native; 6107 DataTransferItem item(int index) native;
6108 } 6108 }
6109 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6109 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6110 // for details. All rights reserved. Use of this source code is governed by a 6110 // for details. All rights reserved. Use of this source code is governed by a
6111 // BSD-style license that can be found in the LICENSE file. 6111 // BSD-style license that can be found in the LICENSE file.
6112 6112
6113 6113
6114 /// @domName DataView 6114 /// @domName DataView; @docsEditable true
6115 class DataView extends ArrayBufferView native "*DataView" { 6115 class DataView extends ArrayBufferView native "*DataView" {
6116 6116
6117 factory DataView(ArrayBuffer buffer, [int byteOffset, int byteLength]) { 6117 factory DataView(ArrayBuffer buffer, [int byteOffset, int byteLength]) {
6118 if (!?byteOffset) { 6118 if (!?byteOffset) {
6119 return _DataViewFactoryProvider.createDataView(buffer); 6119 return _DataViewFactoryProvider.createDataView(buffer);
6120 } 6120 }
6121 if (!?byteLength) { 6121 if (!?byteLength) {
6122 return _DataViewFactoryProvider.createDataView(buffer, byteOffset); 6122 return _DataViewFactoryProvider.createDataView(buffer, byteOffset);
6123 } 6123 }
6124 return _DataViewFactoryProvider.createDataView(buffer, byteOffset, byteLengt h); 6124 return _DataViewFactoryProvider.createDataView(buffer, byteOffset, byteLengt h);
6125 } 6125 }
6126 6126
6127 /** @domName DataView.getFloat32 */ 6127 /** @domName DataView.getFloat32; @docsEditable true */
6128 num getFloat32(int byteOffset, {bool littleEndian}) native; 6128 num getFloat32(int byteOffset, {bool littleEndian}) native;
6129 6129
6130 /** @domName DataView.getFloat64 */ 6130 /** @domName DataView.getFloat64; @docsEditable true */
6131 num getFloat64(int byteOffset, {bool littleEndian}) native; 6131 num getFloat64(int byteOffset, {bool littleEndian}) native;
6132 6132
6133 /** @domName DataView.getInt16 */ 6133 /** @domName DataView.getInt16; @docsEditable true */
6134 int getInt16(int byteOffset, {bool littleEndian}) native; 6134 int getInt16(int byteOffset, {bool littleEndian}) native;
6135 6135
6136 /** @domName DataView.getInt32 */ 6136 /** @domName DataView.getInt32; @docsEditable true */
6137 int getInt32(int byteOffset, {bool littleEndian}) native; 6137 int getInt32(int byteOffset, {bool littleEndian}) native;
6138 6138
6139 /** @domName DataView.getInt8 */ 6139 /** @domName DataView.getInt8; @docsEditable true */
6140 int getInt8(int byteOffset) native; 6140 int getInt8(int byteOffset) native;
6141 6141
6142 /** @domName DataView.getUint16 */ 6142 /** @domName DataView.getUint16; @docsEditable true */
6143 int getUint16(int byteOffset, {bool littleEndian}) native; 6143 int getUint16(int byteOffset, {bool littleEndian}) native;
6144 6144
6145 /** @domName DataView.getUint32 */ 6145 /** @domName DataView.getUint32; @docsEditable true */
6146 int getUint32(int byteOffset, {bool littleEndian}) native; 6146 int getUint32(int byteOffset, {bool littleEndian}) native;
6147 6147
6148 /** @domName DataView.getUint8 */ 6148 /** @domName DataView.getUint8; @docsEditable true */
6149 int getUint8(int byteOffset) native; 6149 int getUint8(int byteOffset) native;
6150 6150
6151 /** @domName DataView.setFloat32 */ 6151 /** @domName DataView.setFloat32; @docsEditable true */
6152 void setFloat32(int byteOffset, num value, {bool littleEndian}) native; 6152 void setFloat32(int byteOffset, num value, {bool littleEndian}) native;
6153 6153
6154 /** @domName DataView.setFloat64 */ 6154 /** @domName DataView.setFloat64; @docsEditable true */
6155 void setFloat64(int byteOffset, num value, {bool littleEndian}) native; 6155 void setFloat64(int byteOffset, num value, {bool littleEndian}) native;
6156 6156
6157 /** @domName DataView.setInt16 */ 6157 /** @domName DataView.setInt16; @docsEditable true */
6158 void setInt16(int byteOffset, int value, {bool littleEndian}) native; 6158 void setInt16(int byteOffset, int value, {bool littleEndian}) native;
6159 6159
6160 /** @domName DataView.setInt32 */ 6160 /** @domName DataView.setInt32; @docsEditable true */
6161 void setInt32(int byteOffset, int value, {bool littleEndian}) native; 6161 void setInt32(int byteOffset, int value, {bool littleEndian}) native;
6162 6162
6163 /** @domName DataView.setInt8 */ 6163 /** @domName DataView.setInt8; @docsEditable true */
6164 void setInt8(int byteOffset, int value) native; 6164 void setInt8(int byteOffset, int value) native;
6165 6165
6166 /** @domName DataView.setUint16 */ 6166 /** @domName DataView.setUint16; @docsEditable true */
6167 void setUint16(int byteOffset, int value, {bool littleEndian}) native; 6167 void setUint16(int byteOffset, int value, {bool littleEndian}) native;
6168 6168
6169 /** @domName DataView.setUint32 */ 6169 /** @domName DataView.setUint32; @docsEditable true */
6170 void setUint32(int byteOffset, int value, {bool littleEndian}) native; 6170 void setUint32(int byteOffset, int value, {bool littleEndian}) native;
6171 6171
6172 /** @domName DataView.setUint8 */ 6172 /** @domName DataView.setUint8; @docsEditable true */
6173 void setUint8(int byteOffset, int value) native; 6173 void setUint8(int byteOffset, int value) native;
6174 } 6174 }
6175 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6175 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6176 // for details. All rights reserved. Use of this source code is governed by a 6176 // for details. All rights reserved. Use of this source code is governed by a
6177 // BSD-style license that can be found in the LICENSE file. 6177 // BSD-style license that can be found in the LICENSE file.
6178 6178
6179 6179
6180 /// @domName Database 6180 /// @domName Database; @docsEditable true
6181 class Database native "*Database" { 6181 class Database native "*Database" {
6182 6182
6183 /** @domName Database.version */ 6183 /** @domName Database.version; @docsEditable true */
6184 final String version; 6184 final String version;
6185 6185
6186 /** @domName Database.changeVersion */ 6186 /** @domName Database.changeVersion; @docsEditable true */
6187 void changeVersion(String oldVersion, String newVersion, [SQLTransactionCallba ck callback, SQLTransactionErrorCallback errorCallback, VoidCallback successCall back]) native; 6187 void changeVersion(String oldVersion, String newVersion, [SQLTransactionCallba ck callback, SQLTransactionErrorCallback errorCallback, VoidCallback successCall back]) native;
6188 6188
6189 /** @domName Database.readTransaction */ 6189 /** @domName Database.readTransaction; @docsEditable true */
6190 void readTransaction(SQLTransactionCallback callback, [SQLTransactionErrorCall back errorCallback, VoidCallback successCallback]) native; 6190 void readTransaction(SQLTransactionCallback callback, [SQLTransactionErrorCall back errorCallback, VoidCallback successCallback]) native;
6191 6191
6192 /** @domName Database.transaction */ 6192 /** @domName Database.transaction; @docsEditable true */
6193 void transaction(SQLTransactionCallback callback, [SQLTransactionErrorCallback errorCallback, VoidCallback successCallback]) native; 6193 void transaction(SQLTransactionCallback callback, [SQLTransactionErrorCallback errorCallback, VoidCallback successCallback]) native;
6194 } 6194 }
6195 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6195 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6196 // for details. All rights reserved. Use of this source code is governed by a 6196 // for details. All rights reserved. Use of this source code is governed by a
6197 // BSD-style license that can be found in the LICENSE file. 6197 // BSD-style license that can be found in the LICENSE file.
6198 6198
6199 // WARNING: Do not edit - generated code. 6199 // WARNING: Do not edit - generated code.
6200 6200
6201 6201
6202 typedef void DatabaseCallback(database); 6202 typedef void DatabaseCallback(database);
6203 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6203 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6204 // for details. All rights reserved. Use of this source code is governed by a 6204 // for details. All rights reserved. Use of this source code is governed by a
6205 // BSD-style license that can be found in the LICENSE file. 6205 // BSD-style license that can be found in the LICENSE file.
6206 6206
6207 6207
6208 /// @domName DatabaseSync 6208 /// @domName DatabaseSync; @docsEditable true
6209 class DatabaseSync native "*DatabaseSync" { 6209 class DatabaseSync native "*DatabaseSync" {
6210 6210
6211 /** @domName DatabaseSync.lastErrorMessage */ 6211 /** @domName DatabaseSync.lastErrorMessage; @docsEditable true */
6212 final String lastErrorMessage; 6212 final String lastErrorMessage;
6213 6213
6214 /** @domName DatabaseSync.version */ 6214 /** @domName DatabaseSync.version; @docsEditable true */
6215 final String version; 6215 final String version;
6216 6216
6217 /** @domName DatabaseSync.changeVersion */ 6217 /** @domName DatabaseSync.changeVersion; @docsEditable true */
6218 void changeVersion(String oldVersion, String newVersion, [SQLTransactionSyncCa llback callback]) native; 6218 void changeVersion(String oldVersion, String newVersion, [SQLTransactionSyncCa llback callback]) native;
6219 6219
6220 /** @domName DatabaseSync.readTransaction */ 6220 /** @domName DatabaseSync.readTransaction; @docsEditable true */
6221 void readTransaction(SQLTransactionSyncCallback callback) native; 6221 void readTransaction(SQLTransactionSyncCallback callback) native;
6222 6222
6223 /** @domName DatabaseSync.transaction */ 6223 /** @domName DatabaseSync.transaction; @docsEditable true */
6224 void transaction(SQLTransactionSyncCallback callback) native; 6224 void transaction(SQLTransactionSyncCallback callback) native;
6225 } 6225 }
6226 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6226 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6227 // for details. All rights reserved. Use of this source code is governed by a 6227 // for details. All rights reserved. Use of this source code is governed by a
6228 // BSD-style license that can be found in the LICENSE file. 6228 // BSD-style license that can be found in the LICENSE file.
6229 6229
6230 6230
6231 /// @domName DedicatedWorkerContext 6231 /// @domName DedicatedWorkerContext; @docsEditable true
6232 class DedicatedWorkerContext extends WorkerContext native "*DedicatedWorkerConte xt" { 6232 class DedicatedWorkerContext extends WorkerContext native "*DedicatedWorkerConte xt" {
6233 6233
6234 /** 6234 /**
6235 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 6235 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent; @docsEditable true
6236 */ 6236 */
6237 DedicatedWorkerContextEvents get on => 6237 DedicatedWorkerContextEvents get on =>
6238 new DedicatedWorkerContextEvents(this); 6238 new DedicatedWorkerContextEvents(this);
6239 6239
6240 /** @domName DedicatedWorkerContext.postMessage */ 6240 /** @domName DedicatedWorkerContext.postMessage; @docsEditable true */
6241 void postMessage(/*any*/ message, [List messagePorts]) { 6241 void postMessage(/*any*/ message, [List messagePorts]) {
6242 if (?messagePorts) { 6242 if (?messagePorts) {
6243 var message_1 = _convertDartToNative_SerializedScriptValue(message); 6243 var message_1 = _convertDartToNative_SerializedScriptValue(message);
6244 _postMessage_1(message_1, messagePorts); 6244 _postMessage_1(message_1, messagePorts);
6245 return; 6245 return;
6246 } 6246 }
6247 var message_2 = _convertDartToNative_SerializedScriptValue(message); 6247 var message_2 = _convertDartToNative_SerializedScriptValue(message);
6248 _postMessage_2(message_2); 6248 _postMessage_2(message_2);
6249 return; 6249 return;
6250 } 6250 }
6251 void _postMessage_1(message, List messagePorts) native "postMessage"; 6251 void _postMessage_1(message, List messagePorts) native "postMessage";
6252 void _postMessage_2(message) native "postMessage"; 6252 void _postMessage_2(message) native "postMessage";
6253 } 6253 }
6254 6254
6255 class DedicatedWorkerContextEvents extends WorkerContextEvents { 6255 class DedicatedWorkerContextEvents extends WorkerContextEvents {
6256 DedicatedWorkerContextEvents(EventTarget _ptr) : super(_ptr); 6256 DedicatedWorkerContextEvents(EventTarget _ptr) : super(_ptr);
6257 6257
6258 EventListenerList get message => this['message']; 6258 EventListenerList get message => this['message'];
6259 } 6259 }
6260 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6260 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6261 // for details. All rights reserved. Use of this source code is governed by a 6261 // for details. All rights reserved. Use of this source code is governed by a
6262 // BSD-style license that can be found in the LICENSE file. 6262 // BSD-style license that can be found in the LICENSE file.
6263 6263
6264 6264
6265 /// @domName DelayNode 6265 /// @domName DelayNode; @docsEditable true
6266 class DelayNode extends AudioNode native "*DelayNode" { 6266 class DelayNode extends AudioNode native "*DelayNode" {
6267 6267
6268 /** @domName DelayNode.delayTime */ 6268 /** @domName DelayNode.delayTime; @docsEditable true */
6269 final AudioParam delayTime; 6269 final AudioParam delayTime;
6270 } 6270 }
6271 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6271 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6272 // for details. All rights reserved. Use of this source code is governed by a 6272 // for details. All rights reserved. Use of this source code is governed by a
6273 // BSD-style license that can be found in the LICENSE file. 6273 // BSD-style license that can be found in the LICENSE file.
6274 6274
6275 6275
6276 /// @domName HTMLDetailsElement 6276 /// @domName HTMLDetailsElement; @docsEditable true
6277 class DetailsElement extends Element implements Element native "*HTMLDetailsElem ent" { 6277 class DetailsElement extends Element implements Element native "*HTMLDetailsElem ent" {
6278 6278
6279 factory DetailsElement() => document.$dom_createElement("details"); 6279 factory DetailsElement() => document.$dom_createElement("details");
6280 6280
6281 /** @domName HTMLDetailsElement.open */ 6281 /** @domName HTMLDetailsElement.open; @docsEditable true */
6282 bool open; 6282 bool open;
6283 } 6283 }
6284 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6284 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6285 // for details. All rights reserved. Use of this source code is governed by a 6285 // for details. All rights reserved. Use of this source code is governed by a
6286 // BSD-style license that can be found in the LICENSE file. 6286 // BSD-style license that can be found in the LICENSE file.
6287 6287
6288 6288
6289 /// @domName DeviceMotionEvent 6289 /// @domName DeviceMotionEvent; @docsEditable true
6290 class DeviceMotionEvent extends Event native "*DeviceMotionEvent" { 6290 class DeviceMotionEvent extends Event native "*DeviceMotionEvent" {
6291 6291
6292 /** @domName DeviceMotionEvent.interval */ 6292 /** @domName DeviceMotionEvent.interval; @docsEditable true */
6293 final num interval; 6293 final num interval;
6294 } 6294 }
6295 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6295 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6296 // for details. All rights reserved. Use of this source code is governed by a 6296 // for details. All rights reserved. Use of this source code is governed by a
6297 // BSD-style license that can be found in the LICENSE file. 6297 // BSD-style license that can be found in the LICENSE file.
6298 6298
6299 6299
6300 /// @domName DeviceOrientationEvent 6300 /// @domName DeviceOrientationEvent; @docsEditable true
6301 class DeviceOrientationEvent extends Event native "*DeviceOrientationEvent" { 6301 class DeviceOrientationEvent extends Event native "*DeviceOrientationEvent" {
6302 6302
6303 /** @domName DeviceOrientationEvent.absolute */ 6303 /** @domName DeviceOrientationEvent.absolute; @docsEditable true */
6304 final bool absolute; 6304 final bool absolute;
6305 6305
6306 /** @domName DeviceOrientationEvent.alpha */ 6306 /** @domName DeviceOrientationEvent.alpha; @docsEditable true */
6307 final num alpha; 6307 final num alpha;
6308 6308
6309 /** @domName DeviceOrientationEvent.beta */ 6309 /** @domName DeviceOrientationEvent.beta; @docsEditable true */
6310 final num beta; 6310 final num beta;
6311 6311
6312 /** @domName DeviceOrientationEvent.gamma */ 6312 /** @domName DeviceOrientationEvent.gamma; @docsEditable true */
6313 final num gamma; 6313 final num gamma;
6314 6314
6315 /** @domName DeviceOrientationEvent.initDeviceOrientationEvent */ 6315 /** @domName DeviceOrientationEvent.initDeviceOrientationEvent; @docsEditable true */
6316 void initDeviceOrientationEvent(String type, bool bubbles, bool cancelable, nu m alpha, num beta, num gamma, bool absolute) native; 6316 void initDeviceOrientationEvent(String type, bool bubbles, bool cancelable, nu m alpha, num beta, num gamma, bool absolute) native;
6317 } 6317 }
6318 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6318 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6319 // for details. All rights reserved. Use of this source code is governed by a 6319 // for details. All rights reserved. Use of this source code is governed by a
6320 // BSD-style license that can be found in the LICENSE file. 6320 // BSD-style license that can be found in the LICENSE file.
6321 6321
6322 6322
6323 /// @domName HTMLDirectoryElement 6323 /// @domName HTMLDirectoryElement; @docsEditable true
6324 class DirectoryElement extends Element implements Element native "*HTMLDirectory Element" { 6324 class DirectoryElement extends Element implements Element native "*HTMLDirectory Element" {
6325 6325
6326 /** @domName HTMLDirectoryElement.compact */ 6326 /** @domName HTMLDirectoryElement.compact; @docsEditable true */
6327 bool compact; 6327 bool compact;
6328 } 6328 }
6329 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6329 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6330 // for details. All rights reserved. Use of this source code is governed by a 6330 // for details. All rights reserved. Use of this source code is governed by a
6331 // BSD-style license that can be found in the LICENSE file. 6331 // BSD-style license that can be found in the LICENSE file.
6332 6332
6333 6333
6334 /// @domName DirectoryEntry 6334 /// @domName DirectoryEntry; @docsEditable true
6335 class DirectoryEntry extends Entry native "*DirectoryEntry" { 6335 class DirectoryEntry extends Entry native "*DirectoryEntry" {
6336 6336
6337 /** @domName DirectoryEntry.createReader */ 6337 /** @domName DirectoryEntry.createReader; @docsEditable true */
6338 DirectoryReader createReader() native; 6338 DirectoryReader createReader() native;
6339 6339
6340 /** @domName DirectoryEntry.getDirectory */ 6340 /** @domName DirectoryEntry.getDirectory; @docsEditable true */
6341 void getDirectory(String path, {Map options, EntryCallback successCallback, Er rorCallback errorCallback}) { 6341 void getDirectory(String path, {Map options, EntryCallback successCallback, Er rorCallback errorCallback}) {
6342 if (?errorCallback) { 6342 if (?errorCallback) {
6343 var options_1 = _convertDartToNative_Dictionary(options); 6343 var options_1 = _convertDartToNative_Dictionary(options);
6344 _getDirectory_1(path, options_1, successCallback, errorCallback); 6344 _getDirectory_1(path, options_1, successCallback, errorCallback);
6345 return; 6345 return;
6346 } 6346 }
6347 if (?successCallback) { 6347 if (?successCallback) {
6348 var options_2 = _convertDartToNative_Dictionary(options); 6348 var options_2 = _convertDartToNative_Dictionary(options);
6349 _getDirectory_2(path, options_2, successCallback); 6349 _getDirectory_2(path, options_2, successCallback);
6350 return; 6350 return;
6351 } 6351 }
6352 if (?options) { 6352 if (?options) {
6353 var options_3 = _convertDartToNative_Dictionary(options); 6353 var options_3 = _convertDartToNative_Dictionary(options);
6354 _getDirectory_3(path, options_3); 6354 _getDirectory_3(path, options_3);
6355 return; 6355 return;
6356 } 6356 }
6357 _getDirectory_4(path); 6357 _getDirectory_4(path);
6358 return; 6358 return;
6359 } 6359 }
6360 void _getDirectory_1(path, options, EntryCallback successCallback, ErrorCallba ck errorCallback) native "getDirectory"; 6360 void _getDirectory_1(path, options, EntryCallback successCallback, ErrorCallba ck errorCallback) native "getDirectory";
6361 void _getDirectory_2(path, options, EntryCallback successCallback) native "get Directory"; 6361 void _getDirectory_2(path, options, EntryCallback successCallback) native "get Directory";
6362 void _getDirectory_3(path, options) native "getDirectory"; 6362 void _getDirectory_3(path, options) native "getDirectory";
6363 void _getDirectory_4(path) native "getDirectory"; 6363 void _getDirectory_4(path) native "getDirectory";
6364 6364
6365 /** @domName DirectoryEntry.getFile */ 6365 /** @domName DirectoryEntry.getFile; @docsEditable true */
6366 void getFile(String path, {Map options, EntryCallback successCallback, ErrorCa llback errorCallback}) { 6366 void getFile(String path, {Map options, EntryCallback successCallback, ErrorCa llback errorCallback}) {
6367 if (?errorCallback) { 6367 if (?errorCallback) {
6368 var options_1 = _convertDartToNative_Dictionary(options); 6368 var options_1 = _convertDartToNative_Dictionary(options);
6369 _getFile_1(path, options_1, successCallback, errorCallback); 6369 _getFile_1(path, options_1, successCallback, errorCallback);
6370 return; 6370 return;
6371 } 6371 }
6372 if (?successCallback) { 6372 if (?successCallback) {
6373 var options_2 = _convertDartToNative_Dictionary(options); 6373 var options_2 = _convertDartToNative_Dictionary(options);
6374 _getFile_2(path, options_2, successCallback); 6374 _getFile_2(path, options_2, successCallback);
6375 return; 6375 return;
6376 } 6376 }
6377 if (?options) { 6377 if (?options) {
6378 var options_3 = _convertDartToNative_Dictionary(options); 6378 var options_3 = _convertDartToNative_Dictionary(options);
6379 _getFile_3(path, options_3); 6379 _getFile_3(path, options_3);
6380 return; 6380 return;
6381 } 6381 }
6382 _getFile_4(path); 6382 _getFile_4(path);
6383 return; 6383 return;
6384 } 6384 }
6385 void _getFile_1(path, options, EntryCallback successCallback, ErrorCallback er rorCallback) native "getFile"; 6385 void _getFile_1(path, options, EntryCallback successCallback, ErrorCallback er rorCallback) native "getFile";
6386 void _getFile_2(path, options, EntryCallback successCallback) native "getFile" ; 6386 void _getFile_2(path, options, EntryCallback successCallback) native "getFile" ;
6387 void _getFile_3(path, options) native "getFile"; 6387 void _getFile_3(path, options) native "getFile";
6388 void _getFile_4(path) native "getFile"; 6388 void _getFile_4(path) native "getFile";
6389 6389
6390 /** @domName DirectoryEntry.removeRecursively */ 6390 /** @domName DirectoryEntry.removeRecursively; @docsEditable true */
6391 void removeRecursively(VoidCallback successCallback, [ErrorCallback errorCallb ack]) native; 6391 void removeRecursively(VoidCallback successCallback, [ErrorCallback errorCallb ack]) native;
6392 } 6392 }
6393 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6393 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6394 // for details. All rights reserved. Use of this source code is governed by a 6394 // for details. All rights reserved. Use of this source code is governed by a
6395 // BSD-style license that can be found in the LICENSE file. 6395 // BSD-style license that can be found in the LICENSE file.
6396 6396
6397 6397
6398 /// @domName DirectoryEntrySync 6398 /// @domName DirectoryEntrySync; @docsEditable true
6399 class DirectoryEntrySync extends EntrySync native "*DirectoryEntrySync" { 6399 class DirectoryEntrySync extends EntrySync native "*DirectoryEntrySync" {
6400 6400
6401 /** @domName DirectoryEntrySync.createReader */ 6401 /** @domName DirectoryEntrySync.createReader; @docsEditable true */
6402 DirectoryReaderSync createReader() native; 6402 DirectoryReaderSync createReader() native;
6403 6403
6404 /** @domName DirectoryEntrySync.getDirectory */ 6404 /** @domName DirectoryEntrySync.getDirectory; @docsEditable true */
6405 DirectoryEntrySync getDirectory(String path, Map flags) { 6405 DirectoryEntrySync getDirectory(String path, Map flags) {
6406 var flags_1 = _convertDartToNative_Dictionary(flags); 6406 var flags_1 = _convertDartToNative_Dictionary(flags);
6407 return _getDirectory_1(path, flags_1); 6407 return _getDirectory_1(path, flags_1);
6408 } 6408 }
6409 DirectoryEntrySync _getDirectory_1(path, flags) native "getDirectory"; 6409 DirectoryEntrySync _getDirectory_1(path, flags) native "getDirectory";
6410 6410
6411 /** @domName DirectoryEntrySync.getFile */ 6411 /** @domName DirectoryEntrySync.getFile; @docsEditable true */
6412 FileEntrySync getFile(String path, Map flags) { 6412 FileEntrySync getFile(String path, Map flags) {
6413 var flags_1 = _convertDartToNative_Dictionary(flags); 6413 var flags_1 = _convertDartToNative_Dictionary(flags);
6414 return _getFile_1(path, flags_1); 6414 return _getFile_1(path, flags_1);
6415 } 6415 }
6416 FileEntrySync _getFile_1(path, flags) native "getFile"; 6416 FileEntrySync _getFile_1(path, flags) native "getFile";
6417 6417
6418 /** @domName DirectoryEntrySync.removeRecursively */ 6418 /** @domName DirectoryEntrySync.removeRecursively; @docsEditable true */
6419 void removeRecursively() native; 6419 void removeRecursively() native;
6420 } 6420 }
6421 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6421 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6422 // for details. All rights reserved. Use of this source code is governed by a 6422 // for details. All rights reserved. Use of this source code is governed by a
6423 // BSD-style license that can be found in the LICENSE file. 6423 // BSD-style license that can be found in the LICENSE file.
6424 6424
6425 6425
6426 /// @domName DirectoryReader 6426 /// @domName DirectoryReader; @docsEditable true
6427 class DirectoryReader native "*DirectoryReader" { 6427 class DirectoryReader native "*DirectoryReader" {
6428 6428
6429 /** @domName DirectoryReader.readEntries */ 6429 /** @domName DirectoryReader.readEntries; @docsEditable true */
6430 void readEntries(EntriesCallback successCallback, [ErrorCallback errorCallback ]) native; 6430 void readEntries(EntriesCallback successCallback, [ErrorCallback errorCallback ]) native;
6431 } 6431 }
6432 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6432 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6433 // for details. All rights reserved. Use of this source code is governed by a 6433 // for details. All rights reserved. Use of this source code is governed by a
6434 // BSD-style license that can be found in the LICENSE file. 6434 // BSD-style license that can be found in the LICENSE file.
6435 6435
6436 6436
6437 /// @domName DirectoryReaderSync 6437 /// @domName DirectoryReaderSync; @docsEditable true
6438 class DirectoryReaderSync native "*DirectoryReaderSync" { 6438 class DirectoryReaderSync native "*DirectoryReaderSync" {
6439 6439
6440 /** @domName DirectoryReaderSync.readEntries */ 6440 /** @domName DirectoryReaderSync.readEntries; @docsEditable true */
6441 List<EntrySync> readEntries() native; 6441 List<EntrySync> readEntries() native;
6442 } 6442 }
6443 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6443 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6444 // for details. All rights reserved. Use of this source code is governed by a 6444 // for details. All rights reserved. Use of this source code is governed by a
6445 // BSD-style license that can be found in the LICENSE file. 6445 // BSD-style license that can be found in the LICENSE file.
6446 6446
6447 6447
6448 /// @domName HTMLDivElement 6448 /// @domName HTMLDivElement; @docsEditable true
6449 class DivElement extends Element implements Element native "*HTMLDivElement" { 6449 class DivElement extends Element implements Element native "*HTMLDivElement" {
6450 6450
6451 factory DivElement() => document.$dom_createElement("div"); 6451 factory DivElement() => document.$dom_createElement("div");
6452 } 6452 }
6453 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6453 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6454 // for details. All rights reserved. Use of this source code is governed by a 6454 // for details. All rights reserved. Use of this source code is governed by a
6455 // BSD-style license that can be found in the LICENSE file. 6455 // BSD-style license that can be found in the LICENSE file.
6456 6456
6457 6457
6458 class Document extends Node native "*Document" 6458 class Document extends Node native "*Document"
6459 { 6459 {
6460 6460
6461 6461
6462 /** 6462 /**
6463 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 6463 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent; @docsEditable true
6464 */ 6464 */
6465 DocumentEvents get on => 6465 DocumentEvents get on =>
6466 new DocumentEvents(this); 6466 new DocumentEvents(this);
6467 6467
6468 /** @domName Document.body */ 6468 /** @domName Document.body; @docsEditable true */
6469 Element get $dom_body => JS("Element", "#.body", this); 6469 Element get $dom_body => JS("Element", "#.body", this);
6470 6470
6471 /** @domName Document.body */ 6471 /** @domName Document.body; @docsEditable true */
6472 void set $dom_body(Element value) { 6472 void set $dom_body(Element value) {
6473 JS("void", "#.body = #", this, value); 6473 JS("void", "#.body = #", this, value);
6474 } 6474 }
6475 6475
6476 /** @domName Document.charset */ 6476 /** @domName Document.charset; @docsEditable true */
6477 String charset; 6477 String charset;
6478 6478
6479 /** @domName Document.cookie */ 6479 /** @domName Document.cookie; @docsEditable true */
6480 String cookie; 6480 String cookie;
6481 6481
6482 /** @domName Document.defaultView */ 6482 /** @domName Document.defaultView; @docsEditable true */
6483 Window get window => _convertNativeToDart_Window(this._window); 6483 Window get window => _convertNativeToDart_Window(this._window);
6484 dynamic get _window => JS("dynamic", "#.defaultView", this); 6484 dynamic get _window => JS("dynamic", "#.defaultView", this);
6485 6485
6486 /** @domName Document.documentElement */ 6486 /** @domName Document.documentElement; @docsEditable true */
6487 final Element documentElement; 6487 final Element documentElement;
6488 6488
6489 /** @domName Document.domain */ 6489 /** @domName Document.domain; @docsEditable true */
6490 final String domain; 6490 final String domain;
6491 6491
6492 /** @domName Document.head */ 6492 /** @domName Document.head; @docsEditable true */
6493 HeadElement get $dom_head => JS("HeadElement", "#.head", this); 6493 HeadElement get $dom_head => JS("HeadElement", "#.head", this);
6494 6494
6495 /** @domName Document.implementation */ 6495 /** @domName Document.implementation; @docsEditable true */
6496 final DOMImplementation implementation; 6496 final DOMImplementation implementation;
6497 6497
6498 /** @domName Document.lastModified */ 6498 /** @domName Document.lastModified; @docsEditable true */
6499 String get $dom_lastModified => JS("String", "#.lastModified", this); 6499 String get $dom_lastModified => JS("String", "#.lastModified", this);
6500 6500
6501 /** @domName Document.preferredStylesheetSet */ 6501 /** @domName Document.preferredStylesheetSet; @docsEditable true */
6502 final String preferredStylesheetSet; 6502 final String preferredStylesheetSet;
6503 6503
6504 /** @domName Document.readyState */ 6504 /** @domName Document.readyState; @docsEditable true */
6505 final String readyState; 6505 final String readyState;
6506 6506
6507 /** @domName Document.referrer */ 6507 /** @domName Document.referrer; @docsEditable true */
6508 String get $dom_referrer => JS("String", "#.referrer", this); 6508 String get $dom_referrer => JS("String", "#.referrer", this);
6509 6509
6510 /** @domName Document.selectedStylesheetSet */ 6510 /** @domName Document.selectedStylesheetSet; @docsEditable true */
6511 String selectedStylesheetSet; 6511 String selectedStylesheetSet;
6512 6512
6513 /** @domName Document.styleSheets */ 6513 /** @domName Document.styleSheets; @docsEditable true */
6514 List<StyleSheet> get $dom_styleSheets => JS("List<StyleSheet>", "#.styleSheets ", this); 6514 List<StyleSheet> get $dom_styleSheets => JS("List<StyleSheet>", "#.styleSheets ", this);
6515 6515
6516 /** @domName Document.title */ 6516 /** @domName Document.title; @docsEditable true */
6517 String get $dom_title => JS("String", "#.title", this); 6517 String get $dom_title => JS("String", "#.title", this);
6518 6518
6519 /** @domName Document.title */ 6519 /** @domName Document.title; @docsEditable true */
6520 void set $dom_title(String value) { 6520 void set $dom_title(String value) {
6521 JS("void", "#.title = #", this, value); 6521 JS("void", "#.title = #", this, value);
6522 } 6522 }
6523 6523
6524 /** @domName Document.webkitFullscreenElement */ 6524 /** @domName Document.webkitFullscreenElement; @docsEditable true */
6525 Element get $dom_webkitFullscreenElement => JS("Element", "#.webkitFullscreenE lement", this); 6525 Element get $dom_webkitFullscreenElement => JS("Element", "#.webkitFullscreenE lement", this);
6526 6526
6527 /** @domName Document.webkitFullscreenEnabled */ 6527 /** @domName Document.webkitFullscreenEnabled; @docsEditable true */
6528 bool get $dom_webkitFullscreenEnabled => JS("bool", "#.webkitFullscreenEnabled ", this); 6528 bool get $dom_webkitFullscreenEnabled => JS("bool", "#.webkitFullscreenEnabled ", this);
6529 6529
6530 /** @domName Document.webkitHidden */ 6530 /** @domName Document.webkitHidden; @docsEditable true */
6531 bool get $dom_webkitHidden => JS("bool", "#.webkitHidden", this); 6531 bool get $dom_webkitHidden => JS("bool", "#.webkitHidden", this);
6532 6532
6533 /** @domName Document.webkitIsFullScreen */ 6533 /** @domName Document.webkitIsFullScreen; @docsEditable true */
6534 bool get $dom_webkitIsFullScreen => JS("bool", "#.webkitIsFullScreen", this); 6534 bool get $dom_webkitIsFullScreen => JS("bool", "#.webkitIsFullScreen", this);
6535 6535
6536 /** @domName Document.webkitPointerLockElement */ 6536 /** @domName Document.webkitPointerLockElement; @docsEditable true */
6537 Element get $dom_webkitPointerLockElement => JS("Element", "#.webkitPointerLoc kElement", this); 6537 Element get $dom_webkitPointerLockElement => JS("Element", "#.webkitPointerLoc kElement", this);
6538 6538
6539 /** @domName Document.webkitVisibilityState */ 6539 /** @domName Document.webkitVisibilityState; @docsEditable true */
6540 String get $dom_webkitVisibilityState => JS("String", "#.webkitVisibilityState ", this); 6540 String get $dom_webkitVisibilityState => JS("String", "#.webkitVisibilityState ", this);
6541 6541
6542 /** @domName Document.caretRangeFromPoint */ 6542 /** @domName Document.caretRangeFromPoint; @docsEditable true */
6543 Range $dom_caretRangeFromPoint(int x, int y) native "caretRangeFromPoint"; 6543 Range $dom_caretRangeFromPoint(int x, int y) native "caretRangeFromPoint";
6544 6544
6545 /** @domName Document.createCDATASection */ 6545 /** @domName Document.createCDATASection; @docsEditable true */
6546 CDATASection createCDATASection(String data) native; 6546 CDATASection createCDATASection(String data) native;
6547 6547
6548 /** @domName Document.createDocumentFragment */ 6548 /** @domName Document.createDocumentFragment; @docsEditable true */
6549 DocumentFragment createDocumentFragment() native; 6549 DocumentFragment createDocumentFragment() native;
6550 6550
6551 /** @domName Document.createElement */ 6551 /** @domName Document.createElement; @docsEditable true */
6552 Element $dom_createElement(String tagName) native "createElement"; 6552 Element $dom_createElement(String tagName) native "createElement";
6553 6553
6554 /** @domName Document.createElementNS */ 6554 /** @domName Document.createElementNS; @docsEditable true */
6555 Element $dom_createElementNS(String namespaceURI, String qualifiedName) native "createElementNS"; 6555 Element $dom_createElementNS(String namespaceURI, String qualifiedName) native "createElementNS";
6556 6556
6557 /** @domName Document.createEvent */ 6557 /** @domName Document.createEvent; @docsEditable true */
6558 Event $dom_createEvent(String eventType) native "createEvent"; 6558 Event $dom_createEvent(String eventType) native "createEvent";
6559 6559
6560 /** @domName Document.createRange */ 6560 /** @domName Document.createRange; @docsEditable true */
6561 Range createRange() native; 6561 Range createRange() native;
6562 6562
6563 /** @domName Document.createTextNode */ 6563 /** @domName Document.createTextNode; @docsEditable true */
6564 Text $dom_createTextNode(String data) native "createTextNode"; 6564 Text $dom_createTextNode(String data) native "createTextNode";
6565 6565
6566 /** @domName Document.createTouch */ 6566 /** @domName Document.createTouch; @docsEditable true */
6567 Touch createTouch(LocalWindow window, EventTarget target, int identifier, int pageX, int pageY, int screenX, int screenY, int webkitRadiusX, int webkitRadiusY , num webkitRotationAngle, num webkitForce) { 6567 Touch createTouch(LocalWindow window, EventTarget target, int identifier, int pageX, int pageY, int screenX, int screenY, int webkitRadiusX, int webkitRadiusY , num webkitRotationAngle, num webkitForce) {
6568 var target_1 = _convertDartToNative_EventTarget(target); 6568 var target_1 = _convertDartToNative_EventTarget(target);
6569 return _createTouch_1(window, target_1, identifier, pageX, pageY, screenX, s creenY, webkitRadiusX, webkitRadiusY, webkitRotationAngle, webkitForce); 6569 return _createTouch_1(window, target_1, identifier, pageX, pageY, screenX, s creenY, webkitRadiusX, webkitRadiusY, webkitRotationAngle, webkitForce);
6570 } 6570 }
6571 Touch _createTouch_1(LocalWindow window, target, identifier, pageX, pageY, scr eenX, screenY, webkitRadiusX, webkitRadiusY, webkitRotationAngle, webkitForce) n ative "createTouch"; 6571 Touch _createTouch_1(LocalWindow window, target, identifier, pageX, pageY, scr eenX, screenY, webkitRadiusX, webkitRadiusY, webkitRotationAngle, webkitForce) n ative "createTouch";
6572 6572
6573 /** @domName Document.createTouchList */ 6573 /** @domName Document.createTouchList; @docsEditable true */
6574 TouchList $dom_createTouchList() native "createTouchList"; 6574 TouchList $dom_createTouchList() native "createTouchList";
6575 6575
6576 /** @domName Document.elementFromPoint */ 6576 /** @domName Document.elementFromPoint; @docsEditable true */
6577 Element $dom_elementFromPoint(int x, int y) native "elementFromPoint"; 6577 Element $dom_elementFromPoint(int x, int y) native "elementFromPoint";
6578 6578
6579 /** @domName Document.execCommand */ 6579 /** @domName Document.execCommand; @docsEditable true */
6580 bool execCommand(String command, bool userInterface, String value) native; 6580 bool execCommand(String command, bool userInterface, String value) native;
6581 6581
6582 /** @domName Document.getCSSCanvasContext */ 6582 /** @domName Document.getCSSCanvasContext; @docsEditable true */
6583 CanvasRenderingContext getCSSCanvasContext(String contextId, String name, int width, int height) native; 6583 CanvasRenderingContext getCSSCanvasContext(String contextId, String name, int width, int height) native;
6584 6584
6585 /** @domName Document.getElementById */ 6585 /** @domName Document.getElementById; @docsEditable true */
6586 Element $dom_getElementById(String elementId) native "getElementById"; 6586 Element $dom_getElementById(String elementId) native "getElementById";
6587 6587
6588 /** @domName Document.getElementsByClassName */ 6588 /** @domName Document.getElementsByClassName; @docsEditable true */
6589 List<Node> $dom_getElementsByClassName(String tagname) native "getElementsByCl assName"; 6589 List<Node> $dom_getElementsByClassName(String tagname) native "getElementsByCl assName";
6590 6590
6591 /** @domName Document.getElementsByName */ 6591 /** @domName Document.getElementsByName; @docsEditable true */
6592 List<Node> $dom_getElementsByName(String elementName) native "getElementsByNam e"; 6592 List<Node> $dom_getElementsByName(String elementName) native "getElementsByNam e";
6593 6593
6594 /** @domName Document.getElementsByTagName */ 6594 /** @domName Document.getElementsByTagName; @docsEditable true */
6595 List<Node> $dom_getElementsByTagName(String tagname) native "getElementsByTagN ame"; 6595 List<Node> $dom_getElementsByTagName(String tagname) native "getElementsByTagN ame";
6596 6596
6597 /** @domName Document.queryCommandEnabled */ 6597 /** @domName Document.queryCommandEnabled; @docsEditable true */
6598 bool queryCommandEnabled(String command) native; 6598 bool queryCommandEnabled(String command) native;
6599 6599
6600 /** @domName Document.queryCommandIndeterm */ 6600 /** @domName Document.queryCommandIndeterm; @docsEditable true */
6601 bool queryCommandIndeterm(String command) native; 6601 bool queryCommandIndeterm(String command) native;
6602 6602
6603 /** @domName Document.queryCommandState */ 6603 /** @domName Document.queryCommandState; @docsEditable true */
6604 bool queryCommandState(String command) native; 6604 bool queryCommandState(String command) native;
6605 6605
6606 /** @domName Document.queryCommandSupported */ 6606 /** @domName Document.queryCommandSupported; @docsEditable true */
6607 bool queryCommandSupported(String command) native; 6607 bool queryCommandSupported(String command) native;
6608 6608
6609 /** @domName Document.queryCommandValue */ 6609 /** @domName Document.queryCommandValue; @docsEditable true */
6610 String queryCommandValue(String command) native; 6610 String queryCommandValue(String command) native;
6611 6611
6612 /** @domName Document.querySelector */ 6612 /** @domName Document.querySelector; @docsEditable true */
6613 Element $dom_querySelector(String selectors) native "querySelector"; 6613 Element $dom_querySelector(String selectors) native "querySelector";
6614 6614
6615 /** @domName Document.querySelectorAll */ 6615 /** @domName Document.querySelectorAll; @docsEditable true */
6616 List<Node> $dom_querySelectorAll(String selectors) native "querySelectorAll"; 6616 List<Node> $dom_querySelectorAll(String selectors) native "querySelectorAll";
6617 6617
6618 /** @domName Document.webkitCancelFullScreen */ 6618 /** @domName Document.webkitCancelFullScreen; @docsEditable true */
6619 void $dom_webkitCancelFullScreen() native "webkitCancelFullScreen"; 6619 void $dom_webkitCancelFullScreen() native "webkitCancelFullScreen";
6620 6620
6621 /** @domName Document.webkitExitFullscreen */ 6621 /** @domName Document.webkitExitFullscreen; @docsEditable true */
6622 void $dom_webkitExitFullscreen() native "webkitExitFullscreen"; 6622 void $dom_webkitExitFullscreen() native "webkitExitFullscreen";
6623 6623
6624 /** @domName Document.webkitExitPointerLock */ 6624 /** @domName Document.webkitExitPointerLock; @docsEditable true */
6625 void $dom_webkitExitPointerLock() native "webkitExitPointerLock"; 6625 void $dom_webkitExitPointerLock() native "webkitExitPointerLock";
6626 6626
6627 // TODO(jacobr): implement all Element methods not on Document. 6627 // TODO(jacobr): implement all Element methods not on Document.
6628 6628
6629 Element query(String selectors) { 6629 Element query(String selectors) {
6630 // It is fine for our RegExp to detect element id query selectors to have 6630 // It is fine for our RegExp to detect element id query selectors to have
6631 // false negatives but not false positives. 6631 // false negatives but not false positives.
6632 if (new RegExp("^#[_a-zA-Z]\\w*\$").hasMatch(selectors)) { 6632 if (new RegExp("^#[_a-zA-Z]\\w*\$").hasMatch(selectors)) {
6633 return $dom_getElementById(selectors.substring(1)); 6633 return $dom_getElementById(selectors.substring(1));
6634 } 6634 }
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
7016 "WebKit drop zone can't be set for document fragments."); 7016 "WebKit drop zone can't be set for document fragments.");
7017 } 7017 }
7018 7018
7019 void set webkitRegionOverflow(String value) { 7019 void set webkitRegionOverflow(String value) {
7020 throw new UnsupportedError( 7020 throw new UnsupportedError(
7021 "WebKit region overflow can't be set for document fragments."); 7021 "WebKit region overflow can't be set for document fragments.");
7022 } 7022 }
7023 7023
7024 7024
7025 /** 7025 /**
7026 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 7026 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent; @docsEditable true
7027 */ 7027 */
7028 ElementEvents get on => 7028 ElementEvents get on =>
7029 new ElementEvents(this); 7029 new ElementEvents(this);
7030 7030
7031 /** @domName DocumentFragment.querySelector */ 7031 /** @domName DocumentFragment.querySelector; @docsEditable true */
7032 Element $dom_querySelector(String selectors) native "querySelector"; 7032 Element $dom_querySelector(String selectors) native "querySelector";
7033 7033
7034 /** @domName DocumentFragment.querySelectorAll */ 7034 /** @domName DocumentFragment.querySelectorAll; @docsEditable true */
7035 List<Node> $dom_querySelectorAll(String selectors) native "querySelectorAll"; 7035 List<Node> $dom_querySelectorAll(String selectors) native "querySelectorAll";
7036 7036
7037 } 7037 }
7038 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7038 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7039 // for details. All rights reserved. Use of this source code is governed by a 7039 // for details. All rights reserved. Use of this source code is governed by a
7040 // BSD-style license that can be found in the LICENSE file. 7040 // BSD-style license that can be found in the LICENSE file.
7041 7041
7042 7042
7043 /// @domName DocumentType 7043 /// @domName DocumentType; @docsEditable true
7044 class DocumentType extends Node native "*DocumentType" { 7044 class DocumentType extends Node native "*DocumentType" {
7045 7045
7046 /** @domName DocumentType.entities */ 7046 /** @domName DocumentType.entities; @docsEditable true */
7047 final NamedNodeMap entities; 7047 final NamedNodeMap entities;
7048 7048
7049 /** @domName DocumentType.internalSubset */ 7049 /** @domName DocumentType.internalSubset; @docsEditable true */
7050 final String internalSubset; 7050 final String internalSubset;
7051 7051
7052 /** @domName DocumentType.name */ 7052 /** @domName DocumentType.name; @docsEditable true */
7053 final String name; 7053 final String name;
7054 7054
7055 /** @domName DocumentType.notations */ 7055 /** @domName DocumentType.notations; @docsEditable true */
7056 final NamedNodeMap notations; 7056 final NamedNodeMap notations;
7057 7057
7058 /** @domName DocumentType.publicId */ 7058 /** @domName DocumentType.publicId; @docsEditable true */
7059 final String publicId; 7059 final String publicId;
7060 7060
7061 /** @domName DocumentType.systemId */ 7061 /** @domName DocumentType.systemId; @docsEditable true */
7062 final String systemId; 7062 final String systemId;
7063 7063
7064 /** @domName DocumentType.remove */ 7064 /** @domName DocumentType.remove; @docsEditable true */
7065 void remove() native; 7065 void remove() native;
7066 } 7066 }
7067 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7067 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7068 // for details. All rights reserved. Use of this source code is governed by a 7068 // for details. All rights reserved. Use of this source code is governed by a
7069 // BSD-style license that can be found in the LICENSE file. 7069 // BSD-style license that can be found in the LICENSE file.
7070 7070
7071 7071
7072 /// @domName DynamicsCompressorNode 7072 /// @domName DynamicsCompressorNode; @docsEditable true
7073 class DynamicsCompressorNode extends AudioNode native "*DynamicsCompressorNode" { 7073 class DynamicsCompressorNode extends AudioNode native "*DynamicsCompressorNode" {
7074 7074
7075 /** @domName DynamicsCompressorNode.attack */ 7075 /** @domName DynamicsCompressorNode.attack; @docsEditable true */
7076 final AudioParam attack; 7076 final AudioParam attack;
7077 7077
7078 /** @domName DynamicsCompressorNode.knee */ 7078 /** @domName DynamicsCompressorNode.knee; @docsEditable true */
7079 final AudioParam knee; 7079 final AudioParam knee;
7080 7080
7081 /** @domName DynamicsCompressorNode.ratio */ 7081 /** @domName DynamicsCompressorNode.ratio; @docsEditable true */
7082 final AudioParam ratio; 7082 final AudioParam ratio;
7083 7083
7084 /** @domName DynamicsCompressorNode.reduction */ 7084 /** @domName DynamicsCompressorNode.reduction; @docsEditable true */
7085 final AudioParam reduction; 7085 final AudioParam reduction;
7086 7086
7087 /** @domName DynamicsCompressorNode.release */ 7087 /** @domName DynamicsCompressorNode.release; @docsEditable true */
7088 final AudioParam release; 7088 final AudioParam release;
7089 7089
7090 /** @domName DynamicsCompressorNode.threshold */ 7090 /** @domName DynamicsCompressorNode.threshold; @docsEditable true */
7091 final AudioParam threshold; 7091 final AudioParam threshold;
7092 } 7092 }
7093 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7093 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7094 // for details. All rights reserved. Use of this source code is governed by a 7094 // for details. All rights reserved. Use of this source code is governed by a
7095 // BSD-style license that can be found in the LICENSE file. 7095 // BSD-style license that can be found in the LICENSE file.
7096 7096
7097 7097
7098 /// @domName EXTTextureFilterAnisotropic 7098 /// @domName EXTTextureFilterAnisotropic; @docsEditable true
7099 class EXTTextureFilterAnisotropic native "*EXTTextureFilterAnisotropic" { 7099 class EXTTextureFilterAnisotropic native "*EXTTextureFilterAnisotropic" {
7100 7100
7101 static const int MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF; 7101 static const int MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF;
7102 7102
7103 static const int TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE; 7103 static const int TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE;
7104 } 7104 }
7105 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7105 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7106 // for details. All rights reserved. Use of this source code is governed by a 7106 // for details. All rights reserved. Use of this source code is governed by a
7107 // BSD-style license that can be found in the LICENSE file. 7107 // BSD-style license that can be found in the LICENSE file.
7108 7108
(...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after
7776 case 'afterend': 7776 case 'afterend':
7777 this.parent.insertBefore(node, this.nextNode); 7777 this.parent.insertBefore(node, this.nextNode);
7778 break; 7778 break;
7779 default: 7779 default:
7780 throw new ArgumentError("Invalid position ${where}"); 7780 throw new ArgumentError("Invalid position ${where}");
7781 } 7781 }
7782 } 7782 }
7783 7783
7784 7784
7785 /** 7785 /**
7786 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 7786 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent; @docsEditable true
7787 */ 7787 */
7788 ElementEvents get on => 7788 ElementEvents get on =>
7789 new ElementEvents(this); 7789 new ElementEvents(this);
7790 7790
7791 /** @domName HTMLElement.children */ 7791 /** @domName HTMLElement.children; @docsEditable true */
7792 HTMLCollection get $dom_children => JS("HTMLCollection", "#.children", this); 7792 HTMLCollection get $dom_children => JS("HTMLCollection", "#.children", this);
7793 7793
7794 /** @domName HTMLElement.contentEditable */ 7794 /** @domName HTMLElement.contentEditable; @docsEditable true */
7795 String contentEditable; 7795 String contentEditable;
7796 7796
7797 /** @domName HTMLElement.dir */ 7797 /** @domName HTMLElement.dir; @docsEditable true */
7798 String dir; 7798 String dir;
7799 7799
7800 /** @domName HTMLElement.draggable */ 7800 /** @domName HTMLElement.draggable; @docsEditable true */
7801 bool draggable; 7801 bool draggable;
7802 7802
7803 /** @domName HTMLElement.hidden */ 7803 /** @domName HTMLElement.hidden; @docsEditable true */
7804 bool hidden; 7804 bool hidden;
7805 7805
7806 /** @domName HTMLElement.id */ 7806 /** @domName HTMLElement.id; @docsEditable true */
7807 String id; 7807 String id;
7808 7808
7809 /** @domName HTMLElement.innerHTML */ 7809 /** @domName HTMLElement.innerHTML; @docsEditable true */
7810 String innerHTML; 7810 String innerHTML;
7811 7811
7812 /** @domName HTMLElement.isContentEditable */ 7812 /** @domName HTMLElement.isContentEditable; @docsEditable true */
7813 final bool isContentEditable; 7813 final bool isContentEditable;
7814 7814
7815 /** @domName HTMLElement.lang */ 7815 /** @domName HTMLElement.lang; @docsEditable true */
7816 String lang; 7816 String lang;
7817 7817
7818 /** @domName HTMLElement.outerHTML */ 7818 /** @domName HTMLElement.outerHTML; @docsEditable true */
7819 final String outerHTML; 7819 final String outerHTML;
7820 7820
7821 /** @domName HTMLElement.spellcheck */ 7821 /** @domName HTMLElement.spellcheck; @docsEditable true */
7822 bool spellcheck; 7822 bool spellcheck;
7823 7823
7824 /** @domName HTMLElement.tabIndex */ 7824 /** @domName HTMLElement.tabIndex; @docsEditable true */
7825 int tabIndex; 7825 int tabIndex;
7826 7826
7827 /** @domName HTMLElement.title */ 7827 /** @domName HTMLElement.title; @docsEditable true */
7828 String title; 7828 String title;
7829 7829
7830 /** @domName HTMLElement.translate */ 7830 /** @domName HTMLElement.translate; @docsEditable true */
7831 bool translate; 7831 bool translate;
7832 7832
7833 /** @domName HTMLElement.webkitdropzone */ 7833 /** @domName HTMLElement.webkitdropzone; @docsEditable true */
7834 String webkitdropzone; 7834 String webkitdropzone;
7835 7835
7836 /** @domName HTMLElement.click */ 7836 /** @domName HTMLElement.click; @docsEditable true */
7837 void click() native; 7837 void click() native;
7838 7838
7839 static const int ALLOW_KEYBOARD_INPUT = 1; 7839 static const int ALLOW_KEYBOARD_INPUT = 1;
7840 7840
7841 /** @domName Element.childElementCount */ 7841 /** @domName Element.childElementCount; @docsEditable true */
7842 int get $dom_childElementCount => JS("int", "#.childElementCount", this); 7842 int get $dom_childElementCount => JS("int", "#.childElementCount", this);
7843 7843
7844 /** @domName Element.className */ 7844 /** @domName Element.className; @docsEditable true */
7845 String get $dom_className => JS("String", "#.className", this); 7845 String get $dom_className => JS("String", "#.className", this);
7846 7846
7847 /** @domName Element.className */ 7847 /** @domName Element.className; @docsEditable true */
7848 void set $dom_className(String value) { 7848 void set $dom_className(String value) {
7849 JS("void", "#.className = #", this, value); 7849 JS("void", "#.className = #", this, value);
7850 } 7850 }
7851 7851
7852 /** @domName Element.clientHeight */ 7852 /** @domName Element.clientHeight; @docsEditable true */
7853 final int clientHeight; 7853 final int clientHeight;
7854 7854
7855 /** @domName Element.clientLeft */ 7855 /** @domName Element.clientLeft; @docsEditable true */
7856 final int clientLeft; 7856 final int clientLeft;
7857 7857
7858 /** @domName Element.clientTop */ 7858 /** @domName Element.clientTop; @docsEditable true */
7859 final int clientTop; 7859 final int clientTop;
7860 7860
7861 /** @domName Element.clientWidth */ 7861 /** @domName Element.clientWidth; @docsEditable true */
7862 final int clientWidth; 7862 final int clientWidth;
7863 7863
7864 /** @domName Element.dataset */ 7864 /** @domName Element.dataset; @docsEditable true */
7865 final Map<String, String> dataset; 7865 final Map<String, String> dataset;
7866 7866
7867 /** @domName Element.firstElementChild */ 7867 /** @domName Element.firstElementChild; @docsEditable true */
7868 Element get $dom_firstElementChild => JS("Element", "#.firstElementChild", thi s); 7868 Element get $dom_firstElementChild => JS("Element", "#.firstElementChild", thi s);
7869 7869
7870 /** @domName Element.lastElementChild */ 7870 /** @domName Element.lastElementChild; @docsEditable true */
7871 Element get $dom_lastElementChild => JS("Element", "#.lastElementChild", this) ; 7871 Element get $dom_lastElementChild => JS("Element", "#.lastElementChild", this) ;
7872 7872
7873 /** @domName Element.nextElementSibling */ 7873 /** @domName Element.nextElementSibling; @docsEditable true */
7874 final Element nextElementSibling; 7874 final Element nextElementSibling;
7875 7875
7876 /** @domName Element.offsetHeight */ 7876 /** @domName Element.offsetHeight; @docsEditable true */
7877 final int offsetHeight; 7877 final int offsetHeight;
7878 7878
7879 /** @domName Element.offsetLeft */ 7879 /** @domName Element.offsetLeft; @docsEditable true */
7880 final int offsetLeft; 7880 final int offsetLeft;
7881 7881
7882 /** @domName Element.offsetParent */ 7882 /** @domName Element.offsetParent; @docsEditable true */
7883 final Element offsetParent; 7883 final Element offsetParent;
7884 7884
7885 /** @domName Element.offsetTop */ 7885 /** @domName Element.offsetTop; @docsEditable true */
7886 final int offsetTop; 7886 final int offsetTop;
7887 7887
7888 /** @domName Element.offsetWidth */ 7888 /** @domName Element.offsetWidth; @docsEditable true */
7889 final int offsetWidth; 7889 final int offsetWidth;
7890 7890
7891 /** @domName Element.previousElementSibling */ 7891 /** @domName Element.previousElementSibling; @docsEditable true */
7892 final Element previousElementSibling; 7892 final Element previousElementSibling;
7893 7893
7894 /** @domName Element.scrollHeight */ 7894 /** @domName Element.scrollHeight; @docsEditable true */
7895 final int scrollHeight; 7895 final int scrollHeight;
7896 7896
7897 /** @domName Element.scrollLeft */ 7897 /** @domName Element.scrollLeft; @docsEditable true */
7898 int scrollLeft; 7898 int scrollLeft;
7899 7899
7900 /** @domName Element.scrollTop */ 7900 /** @domName Element.scrollTop; @docsEditable true */
7901 int scrollTop; 7901 int scrollTop;
7902 7902
7903 /** @domName Element.scrollWidth */ 7903 /** @domName Element.scrollWidth; @docsEditable true */
7904 final int scrollWidth; 7904 final int scrollWidth;
7905 7905
7906 /** @domName Element.style */ 7906 /** @domName Element.style; @docsEditable true */
7907 final CSSStyleDeclaration style; 7907 final CSSStyleDeclaration style;
7908 7908
7909 /** @domName Element.tagName */ 7909 /** @domName Element.tagName; @docsEditable true */
7910 final String tagName; 7910 final String tagName;
7911 7911
7912 /** @domName Element.blur */ 7912 /** @domName Element.blur; @docsEditable true */
7913 void blur() native; 7913 void blur() native;
7914 7914
7915 /** @domName Element.focus */ 7915 /** @domName Element.focus; @docsEditable true */
7916 void focus() native; 7916 void focus() native;
7917 7917
7918 /** @domName Element.getAttribute */ 7918 /** @domName Element.getAttribute; @docsEditable true */
7919 String $dom_getAttribute(String name) native "getAttribute"; 7919 String $dom_getAttribute(String name) native "getAttribute";
7920 7920
7921 /** @domName Element.getBoundingClientRect */ 7921 /** @domName Element.getBoundingClientRect; @docsEditable true */
7922 ClientRect getBoundingClientRect() native; 7922 ClientRect getBoundingClientRect() native;
7923 7923
7924 /** @domName Element.getClientRects */ 7924 /** @domName Element.getClientRects; @docsEditable true */
7925 List<ClientRect> getClientRects() native; 7925 List<ClientRect> getClientRects() native;
7926 7926
7927 /** @domName Element.getElementsByClassName */ 7927 /** @domName Element.getElementsByClassName; @docsEditable true */
7928 List<Node> $dom_getElementsByClassName(String name) native "getElementsByClass Name"; 7928 List<Node> $dom_getElementsByClassName(String name) native "getElementsByClass Name";
7929 7929
7930 /** @domName Element.getElementsByTagName */ 7930 /** @domName Element.getElementsByTagName; @docsEditable true */
7931 List<Node> $dom_getElementsByTagName(String name) native "getElementsByTagName "; 7931 List<Node> $dom_getElementsByTagName(String name) native "getElementsByTagName ";
7932 7932
7933 /** @domName Element.hasAttribute */ 7933 /** @domName Element.hasAttribute; @docsEditable true */
7934 bool $dom_hasAttribute(String name) native "hasAttribute"; 7934 bool $dom_hasAttribute(String name) native "hasAttribute";
7935 7935
7936 /** @domName Element.querySelector */ 7936 /** @domName Element.querySelector; @docsEditable true */
7937 Element $dom_querySelector(String selectors) native "querySelector"; 7937 Element $dom_querySelector(String selectors) native "querySelector";
7938 7938
7939 /** @domName Element.querySelectorAll */ 7939 /** @domName Element.querySelectorAll; @docsEditable true */
7940 List<Node> $dom_querySelectorAll(String selectors) native "querySelectorAll"; 7940 List<Node> $dom_querySelectorAll(String selectors) native "querySelectorAll";
7941 7941
7942 /** @domName Element.removeAttribute */ 7942 /** @domName Element.removeAttribute; @docsEditable true */
7943 void $dom_removeAttribute(String name) native "removeAttribute"; 7943 void $dom_removeAttribute(String name) native "removeAttribute";
7944 7944
7945 /** @domName Element.scrollByLines */ 7945 /** @domName Element.scrollByLines; @docsEditable true */
7946 void scrollByLines(int lines) native; 7946 void scrollByLines(int lines) native;
7947 7947
7948 /** @domName Element.scrollByPages */ 7948 /** @domName Element.scrollByPages; @docsEditable true */
7949 void scrollByPages(int pages) native; 7949 void scrollByPages(int pages) native;
7950 7950
7951 /** @domName Element.scrollIntoViewIfNeeded */ 7951 /** @domName Element.scrollIntoViewIfNeeded; @docsEditable true */
7952 void scrollIntoView([bool centerIfNeeded]) native "scrollIntoViewIfNeeded"; 7952 void scrollIntoView([bool centerIfNeeded]) native "scrollIntoViewIfNeeded";
7953 7953
7954 /** @domName Element.setAttribute */ 7954 /** @domName Element.setAttribute; @docsEditable true */
7955 void $dom_setAttribute(String name, String value) native "setAttribute"; 7955 void $dom_setAttribute(String name, String value) native "setAttribute";
7956 7956
7957 /** @domName Element.webkitMatchesSelector */ 7957 /** @domName Element.webkitMatchesSelector; @docsEditable true */
7958 bool matchesSelector(String selectors) native "webkitMatchesSelector"; 7958 bool matchesSelector(String selectors) native "webkitMatchesSelector";
7959 7959
7960 /** @domName Element.webkitRequestFullScreen */ 7960 /** @domName Element.webkitRequestFullScreen; @docsEditable true */
7961 void webkitRequestFullScreen(int flags) native; 7961 void webkitRequestFullScreen(int flags) native;
7962 7962
7963 /** @domName Element.webkitRequestFullscreen */ 7963 /** @domName Element.webkitRequestFullscreen; @docsEditable true */
7964 void webkitRequestFullscreen() native; 7964 void webkitRequestFullscreen() native;
7965 7965
7966 /** @domName Element.webkitRequestPointerLock */ 7966 /** @domName Element.webkitRequestPointerLock; @docsEditable true */
7967 void webkitRequestPointerLock() native; 7967 void webkitRequestPointerLock() native;
7968 7968
7969 } 7969 }
7970 7970
7971 // Temporary dispatch hook to support WebComponents. 7971 // Temporary dispatch hook to support WebComponents.
7972 Function dynamicUnknownElementDispatcher; 7972 Function dynamicUnknownElementDispatcher;
7973 7973
7974 final _START_TAG_REGEXP = new RegExp('<(\\w+)'); 7974 final _START_TAG_REGEXP = new RegExp('<(\\w+)');
7975 class _ElementFactoryProvider { 7975 class _ElementFactoryProvider {
7976 static final _CUSTOM_PARENT_TAG_MAP = const { 7976 static final _CUSTOM_PARENT_TAG_MAP = const {
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
8145 } 8145 }
8146 } 8146 }
8147 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 8147 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8148 // for details. All rights reserved. Use of this source code is governed by a 8148 // for details. All rights reserved. Use of this source code is governed by a
8149 // BSD-style license that can be found in the LICENSE file. 8149 // BSD-style license that can be found in the LICENSE file.
8150 8150
8151 8151
8152 /// @domName ElementTimeControl 8152 /// @domName ElementTimeControl
8153 abstract class ElementTimeControl { 8153 abstract class ElementTimeControl {
8154 8154
8155 /** @domName ElementTimeControl.beginElement */ 8155 /** @domName ElementTimeControl.beginElement; @docsEditable true */
8156 void beginElement(); 8156 void beginElement();
8157 8157
8158 /** @domName ElementTimeControl.beginElementAt */ 8158 /** @domName ElementTimeControl.beginElementAt; @docsEditable true */
8159 void beginElementAt(num offset); 8159 void beginElementAt(num offset);
8160 8160
8161 /** @domName ElementTimeControl.endElement */ 8161 /** @domName ElementTimeControl.endElement; @docsEditable true */
8162 void endElement(); 8162 void endElement();
8163 8163
8164 /** @domName ElementTimeControl.endElementAt */ 8164 /** @domName ElementTimeControl.endElementAt; @docsEditable true */
8165 void endElementAt(num offset); 8165 void endElementAt(num offset);
8166 } 8166 }
8167 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 8167 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8168 // for details. All rights reserved. Use of this source code is governed by a 8168 // for details. All rights reserved. Use of this source code is governed by a
8169 // BSD-style license that can be found in the LICENSE file. 8169 // BSD-style license that can be found in the LICENSE file.
8170 8170
8171 8171
8172 /// @domName ElementTraversal 8172 /// @domName ElementTraversal
8173 abstract class ElementTraversal { 8173 abstract class ElementTraversal {
8174 8174
8175 int childElementCount; 8175 int childElementCount;
8176 8176
8177 Element firstElementChild; 8177 Element firstElementChild;
8178 8178
8179 Element lastElementChild; 8179 Element lastElementChild;
8180 8180
8181 Element nextElementSibling; 8181 Element nextElementSibling;
8182 8182
8183 Element previousElementSibling; 8183 Element previousElementSibling;
8184 } 8184 }
8185 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 8185 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8186 // for details. All rights reserved. Use of this source code is governed by a 8186 // for details. All rights reserved. Use of this source code is governed by a
8187 // BSD-style license that can be found in the LICENSE file. 8187 // BSD-style license that can be found in the LICENSE file.
8188 8188
8189 8189
8190 /// @domName HTMLEmbedElement 8190 /// @domName HTMLEmbedElement; @docsEditable true
8191 class EmbedElement extends Element implements Element native "*HTMLEmbedElement" { 8191 class EmbedElement extends Element implements Element native "*HTMLEmbedElement" {
8192 8192
8193 factory EmbedElement() => document.$dom_createElement("embed"); 8193 factory EmbedElement() => document.$dom_createElement("embed");
8194 8194
8195 /** @domName HTMLEmbedElement.align */ 8195 /** @domName HTMLEmbedElement.align; @docsEditable true */
8196 String align; 8196 String align;
8197 8197
8198 /** @domName HTMLEmbedElement.height */ 8198 /** @domName HTMLEmbedElement.height; @docsEditable true */
8199 String height; 8199 String height;
8200 8200
8201 /** @domName HTMLEmbedElement.name */ 8201 /** @domName HTMLEmbedElement.name; @docsEditable true */
8202 String name; 8202 String name;
8203 8203
8204 /** @domName HTMLEmbedElement.src */ 8204 /** @domName HTMLEmbedElement.src; @docsEditable true */
8205 String src; 8205 String src;
8206 8206
8207 /** @domName HTMLEmbedElement.type */ 8207 /** @domName HTMLEmbedElement.type; @docsEditable true */
8208 String type; 8208 String type;
8209 8209
8210 /** @domName HTMLEmbedElement.width */ 8210 /** @domName HTMLEmbedElement.width; @docsEditable true */
8211 String width; 8211 String width;
8212 } 8212 }
8213 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 8213 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8214 // for details. All rights reserved. Use of this source code is governed by a 8214 // for details. All rights reserved. Use of this source code is governed by a
8215 // BSD-style license that can be found in the LICENSE file. 8215 // BSD-style license that can be found in the LICENSE file.
8216 8216
8217 8217
8218 /// @domName EntityReference 8218 /// @domName EntityReference; @docsEditable true
8219 class EntityReference extends Node native "*EntityReference" { 8219 class EntityReference extends Node native "*EntityReference" {
8220 } 8220 }
8221 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 8221 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8222 // for details. All rights reserved. Use of this source code is governed by a 8222 // for details. All rights reserved. Use of this source code is governed by a
8223 // BSD-style license that can be found in the LICENSE file. 8223 // BSD-style license that can be found in the LICENSE file.
8224 8224
8225 // WARNING: Do not edit - generated code. 8225 // WARNING: Do not edit - generated code.
8226 8226
8227 8227
8228 typedef void EntriesCallback(List<Entry> entries); 8228 typedef void EntriesCallback(List<Entry> entries);
8229 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 8229 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8230 // for details. All rights reserved. Use of this source code is governed by a 8230 // for details. All rights reserved. Use of this source code is governed by a
8231 // BSD-style license that can be found in the LICENSE file. 8231 // BSD-style license that can be found in the LICENSE file.
8232 8232
8233 8233
8234 /// @domName Entry 8234 /// @domName Entry; @docsEditable true
8235 class Entry native "*Entry" { 8235 class Entry native "*Entry" {
8236 8236
8237 /** @domName Entry.filesystem */ 8237 /** @domName Entry.filesystem; @docsEditable true */
8238 final DOMFileSystem filesystem; 8238 final DOMFileSystem filesystem;
8239 8239
8240 /** @domName Entry.fullPath */ 8240 /** @domName Entry.fullPath; @docsEditable true */
8241 final String fullPath; 8241 final String fullPath;
8242 8242
8243 /** @domName Entry.isDirectory */ 8243 /** @domName Entry.isDirectory; @docsEditable true */
8244 final bool isDirectory; 8244 final bool isDirectory;
8245 8245
8246 /** @domName Entry.isFile */ 8246 /** @domName Entry.isFile; @docsEditable true */
8247 final bool isFile; 8247 final bool isFile;
8248 8248
8249 /** @domName Entry.name */ 8249 /** @domName Entry.name; @docsEditable true */
8250 final String name; 8250 final String name;
8251 8251
8252 /** @domName Entry.copyTo */ 8252 /** @domName Entry.copyTo; @docsEditable true */
8253 void copyTo(DirectoryEntry parent, [String name, EntryCallback successCallback , ErrorCallback errorCallback]) native; 8253 void copyTo(DirectoryEntry parent, [String name, EntryCallback successCallback , ErrorCallback errorCallback]) native;
8254 8254
8255 /** @domName Entry.getMetadata */ 8255 /** @domName Entry.getMetadata; @docsEditable true */
8256 void getMetadata(MetadataCallback successCallback, [ErrorCallback errorCallbac k]) native; 8256 void getMetadata(MetadataCallback successCallback, [ErrorCallback errorCallbac k]) native;
8257 8257
8258 /** @domName Entry.getParent */ 8258 /** @domName Entry.getParent; @docsEditable true */
8259 void getParent([EntryCallback successCallback, ErrorCallback errorCallback]) n ative; 8259 void getParent([EntryCallback successCallback, ErrorCallback errorCallback]) n ative;
8260 8260
8261 /** @domName Entry.moveTo */ 8261 /** @domName Entry.moveTo; @docsEditable true */
8262 void moveTo(DirectoryEntry parent, [String name, EntryCallback successCallback , ErrorCallback errorCallback]) native; 8262 void moveTo(DirectoryEntry parent, [String name, EntryCallback successCallback , ErrorCallback errorCallback]) native;
8263 8263
8264 /** @domName Entry.remove */ 8264 /** @domName Entry.remove; @docsEditable true */
8265 void remove(VoidCallback successCallback, [ErrorCallback errorCallback]) nativ e; 8265 void remove(VoidCallback successCallback, [ErrorCallback errorCallback]) nativ e;
8266 8266
8267 /** @domName Entry.toURL */ 8267 /** @domName Entry.toURL; @docsEditable true */
8268 String toURL() native; 8268 String toURL() native;
8269 } 8269 }
8270 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 8270 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8271 // for details. All rights reserved. Use of this source code is governed by a 8271 // for details. All rights reserved. Use of this source code is governed by a
8272 // BSD-style license that can be found in the LICENSE file. 8272 // BSD-style license that can be found in the LICENSE file.
8273 8273
8274 // WARNING: Do not edit - generated code. 8274 // WARNING: Do not edit - generated code.
8275 8275
8276 8276
8277 typedef void EntryCallback(Entry entry); 8277 typedef void EntryCallback(Entry entry);
8278 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 8278 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8279 // for details. All rights reserved. Use of this source code is governed by a 8279 // for details. All rights reserved. Use of this source code is governed by a
8280 // BSD-style license that can be found in the LICENSE file. 8280 // BSD-style license that can be found in the LICENSE file.
8281 8281
8282 8282
8283 /// @domName EntrySync 8283 /// @domName EntrySync; @docsEditable true
8284 class EntrySync native "*EntrySync" { 8284 class EntrySync native "*EntrySync" {
8285 8285
8286 /** @domName EntrySync.filesystem */ 8286 /** @domName EntrySync.filesystem; @docsEditable true */
8287 final DOMFileSystemSync filesystem; 8287 final DOMFileSystemSync filesystem;
8288 8288
8289 /** @domName EntrySync.fullPath */ 8289 /** @domName EntrySync.fullPath; @docsEditable true */
8290 final String fullPath; 8290 final String fullPath;
8291 8291
8292 /** @domName EntrySync.isDirectory */ 8292 /** @domName EntrySync.isDirectory; @docsEditable true */
8293 final bool isDirectory; 8293 final bool isDirectory;
8294 8294
8295 /** @domName EntrySync.isFile */ 8295 /** @domName EntrySync.isFile; @docsEditable true */
8296 final bool isFile; 8296 final bool isFile;
8297 8297
8298 /** @domName EntrySync.name */ 8298 /** @domName EntrySync.name; @docsEditable true */
8299 final String name; 8299 final String name;
8300 8300
8301 /** @domName EntrySync.copyTo */ 8301 /** @domName EntrySync.copyTo; @docsEditable true */
8302 EntrySync copyTo(DirectoryEntrySync parent, String name) native; 8302 EntrySync copyTo(DirectoryEntrySync parent, String name) native;
8303 8303
8304 /** @domName EntrySync.getMetadata */ 8304 /** @domName EntrySync.getMetadata; @docsEditable true */
8305 Metadata getMetadata() native; 8305 Metadata getMetadata() native;
8306 8306
8307 /** @domName EntrySync.getParent */ 8307 /** @domName EntrySync.getParent; @docsEditable true */
8308 EntrySync getParent() native; 8308 EntrySync getParent() native;
8309 8309
8310 /** @domName EntrySync.moveTo */ 8310 /** @domName EntrySync.moveTo; @docsEditable true */
8311 EntrySync moveTo(DirectoryEntrySync parent, String name) native; 8311 EntrySync moveTo(DirectoryEntrySync parent, String name) native;
8312 8312
8313 /** @domName EntrySync.remove */ 8313 /** @domName EntrySync.remove; @docsEditable true */
8314 void remove() native; 8314 void remove() native;
8315 8315
8316 /** @domName EntrySync.toURL */ 8316 /** @domName EntrySync.toURL; @docsEditable true */
8317 String toURL() native; 8317 String toURL() native;
8318 } 8318 }
8319 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 8319 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8320 // for details. All rights reserved. Use of this source code is governed by a 8320 // for details. All rights reserved. Use of this source code is governed by a
8321 // BSD-style license that can be found in the LICENSE file. 8321 // BSD-style license that can be found in the LICENSE file.
8322 8322
8323 // WARNING: Do not edit - generated code. 8323 // WARNING: Do not edit - generated code.
8324 8324
8325 8325
8326 typedef void ErrorCallback(FileError error); 8326 typedef void ErrorCallback(FileError error);
8327 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 8327 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8328 // for details. All rights reserved. Use of this source code is governed by a 8328 // for details. All rights reserved. Use of this source code is governed by a
8329 // BSD-style license that can be found in the LICENSE file. 8329 // BSD-style license that can be found in the LICENSE file.
8330 8330
8331 8331
8332 /// @domName ErrorEvent 8332 /// @domName ErrorEvent; @docsEditable true
8333 class ErrorEvent extends Event native "*ErrorEvent" { 8333 class ErrorEvent extends Event native "*ErrorEvent" {
8334 8334
8335 /** @domName ErrorEvent.filename */ 8335 /** @domName ErrorEvent.filename; @docsEditable true */
8336 final String filename; 8336 final String filename;
8337 8337
8338 /** @domName ErrorEvent.lineno */ 8338 /** @domName ErrorEvent.lineno; @docsEditable true */
8339 final int lineno; 8339 final int lineno;
8340 8340
8341 /** @domName ErrorEvent.message */ 8341 /** @domName ErrorEvent.message; @docsEditable true */
8342 final String message; 8342 final String message;
8343 } 8343 }
8344 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 8344 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8345 // for details. All rights reserved. Use of this source code is governed by a 8345 // for details. All rights reserved. Use of this source code is governed by a
8346 // BSD-style license that can be found in the LICENSE file. 8346 // BSD-style license that can be found in the LICENSE file.
8347 8347
8348 // WARNING: Do not edit - generated code. 8348 // WARNING: Do not edit - generated code.
8349 8349
8350 8350
8351 class Event native "*Event" { 8351 class Event native "*Event" {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
8391 static const int MOUSEOUT = 8; 8391 static const int MOUSEOUT = 8;
8392 8392
8393 static const int MOUSEOVER = 4; 8393 static const int MOUSEOVER = 4;
8394 8394
8395 static const int MOUSEUP = 2; 8395 static const int MOUSEUP = 2;
8396 8396
8397 static const int NONE = 0; 8397 static const int NONE = 0;
8398 8398
8399 static const int SELECT = 16384; 8399 static const int SELECT = 16384;
8400 8400
8401 /** @domName Event.bubbles */ 8401 /** @domName Event.bubbles; @docsEditable true */
8402 final bool bubbles; 8402 final bool bubbles;
8403 8403
8404 /** @domName Event.cancelBubble */ 8404 /** @domName Event.cancelBubble; @docsEditable true */
8405 bool cancelBubble; 8405 bool cancelBubble;
8406 8406
8407 /** @domName Event.cancelable */ 8407 /** @domName Event.cancelable; @docsEditable true */
8408 final bool cancelable; 8408 final bool cancelable;
8409 8409
8410 /** @domName Event.clipboardData */ 8410 /** @domName Event.clipboardData; @docsEditable true */
8411 final Clipboard clipboardData; 8411 final Clipboard clipboardData;
8412 8412
8413 /** @domName Event.currentTarget */ 8413 /** @domName Event.currentTarget; @docsEditable true */
8414 EventTarget get currentTarget => _convertNativeToDart_EventTarget(this._curren tTarget); 8414 EventTarget get currentTarget => _convertNativeToDart_EventTarget(this._curren tTarget);
8415 dynamic get _currentTarget => JS("dynamic", "#.currentTarget", this); 8415 dynamic get _currentTarget => JS("dynamic", "#.currentTarget", this);
8416 8416
8417 /** @domName Event.defaultPrevented */ 8417 /** @domName Event.defaultPrevented; @docsEditable true */
8418 final bool defaultPrevented; 8418 final bool defaultPrevented;
8419 8419
8420 /** @domName Event.eventPhase */ 8420 /** @domName Event.eventPhase; @docsEditable true */
8421 final int eventPhase; 8421 final int eventPhase;
8422 8422
8423 /** @domName Event.returnValue */ 8423 /** @domName Event.returnValue; @docsEditable true */
8424 bool returnValue; 8424 bool returnValue;
8425 8425
8426 /** @domName Event.target */ 8426 /** @domName Event.target; @docsEditable true */
8427 EventTarget get target => _convertNativeToDart_EventTarget(this._target); 8427 EventTarget get target => _convertNativeToDart_EventTarget(this._target);
8428 dynamic get _target => JS("dynamic", "#.target", this); 8428 dynamic get _target => JS("dynamic", "#.target", this);
8429 8429
8430 /** @domName Event.timeStamp */ 8430 /** @domName Event.timeStamp; @docsEditable true */
8431 final int timeStamp; 8431 final int timeStamp;
8432 8432
8433 /** @domName Event.type */ 8433 /** @domName Event.type; @docsEditable true */
8434 final String type; 8434 final String type;
8435 8435
8436 /** @domName Event.initEvent */ 8436 /** @domName Event.initEvent; @docsEditable true */
8437 void $dom_initEvent(String eventTypeArg, bool canBubbleArg, bool cancelableArg ) native "initEvent"; 8437 void $dom_initEvent(String eventTypeArg, bool canBubbleArg, bool cancelableArg ) native "initEvent";
8438 8438
8439 /** @domName Event.preventDefault */ 8439 /** @domName Event.preventDefault; @docsEditable true */
8440 void preventDefault() native; 8440 void preventDefault() native;
8441 8441
8442 /** @domName Event.stopImmediatePropagation */ 8442 /** @domName Event.stopImmediatePropagation; @docsEditable true */
8443 void stopImmediatePropagation() native; 8443 void stopImmediatePropagation() native;
8444 8444
8445 /** @domName Event.stopPropagation */ 8445 /** @domName Event.stopPropagation; @docsEditable true */
8446 void stopPropagation() native; 8446 void stopPropagation() native;
8447 8447
8448 } 8448 }
8449 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 8449 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8450 // for details. All rights reserved. Use of this source code is governed by a 8450 // for details. All rights reserved. Use of this source code is governed by a
8451 // BSD-style license that can be found in the LICENSE file. 8451 // BSD-style license that can be found in the LICENSE file.
8452 8452
8453 8453
8454 /// @domName EventException 8454 /// @domName EventException; @docsEditable true
8455 class EventException native "*EventException" { 8455 class EventException native "*EventException" {
8456 8456
8457 static const int DISPATCH_REQUEST_ERR = 1; 8457 static const int DISPATCH_REQUEST_ERR = 1;
8458 8458
8459 static const int UNSPECIFIED_EVENT_TYPE_ERR = 0; 8459 static const int UNSPECIFIED_EVENT_TYPE_ERR = 0;
8460 8460
8461 /** @domName EventException.code */ 8461 /** @domName EventException.code; @docsEditable true */
8462 final int code; 8462 final int code;
8463 8463
8464 /** @domName EventException.message */ 8464 /** @domName EventException.message; @docsEditable true */
8465 final String message; 8465 final String message;
8466 8466
8467 /** @domName EventException.name */ 8467 /** @domName EventException.name; @docsEditable true */
8468 final String name; 8468 final String name;
8469 8469
8470 /** @domName EventException.toString */ 8470 /** @domName EventException.toString; @docsEditable true */
8471 String toString() native; 8471 String toString() native;
8472 } 8472 }
8473 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 8473 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8474 // for details. All rights reserved. Use of this source code is governed by a 8474 // for details. All rights reserved. Use of this source code is governed by a
8475 // BSD-style license that can be found in the LICENSE file. 8475 // BSD-style license that can be found in the LICENSE file.
8476 8476
8477 8477
8478 /// @domName EventSource 8478 /// @domName EventSource; @docsEditable true
8479 class EventSource extends EventTarget native "*EventSource" { 8479 class EventSource extends EventTarget native "*EventSource" {
8480 8480
8481 factory EventSource(String scriptUrl) => _EventSourceFactoryProvider.createEve ntSource(scriptUrl); 8481 factory EventSource(String scriptUrl) => _EventSourceFactoryProvider.createEve ntSource(scriptUrl);
8482 8482
8483 /** 8483 /**
8484 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 8484 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent; @docsEditable true
8485 */ 8485 */
8486 EventSourceEvents get on => 8486 EventSourceEvents get on =>
8487 new EventSourceEvents(this); 8487 new EventSourceEvents(this);
8488 8488
8489 static const int CLOSED = 2; 8489 static const int CLOSED = 2;
8490 8490
8491 static const int CONNECTING = 0; 8491 static const int CONNECTING = 0;
8492 8492
8493 static const int OPEN = 1; 8493 static const int OPEN = 1;
8494 8494
8495 /** @domName EventSource.URL */ 8495 /** @domName EventSource.URL; @docsEditable true */
8496 final String URL; 8496 final String URL;
8497 8497
8498 /** @domName EventSource.readyState */ 8498 /** @domName EventSource.readyState; @docsEditable true */
8499 final int readyState; 8499 final int readyState;
8500 8500
8501 /** @domName EventSource.url */ 8501 /** @domName EventSource.url; @docsEditable true */
8502 final String url; 8502 final String url;
8503 8503
8504 /** @domName EventSource.addEventListener */ 8504 /** @domName EventSource.addEventListener; @docsEditable true */
8505 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 8505 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
8506 8506
8507 /** @domName EventSource.close */ 8507 /** @domName EventSource.close; @docsEditable true */
8508 void close() native; 8508 void close() native;
8509 8509
8510 /** @domName EventSource.dispatchEvent */ 8510 /** @domName EventSource.dispatchEvent; @docsEditable true */
8511 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; 8511 bool $dom_dispatchEvent(Event evt) native "dispatchEvent";
8512 8512
8513 /** @domName EventSource.removeEventListener */ 8513 /** @domName EventSource.removeEventListener; @docsEditable true */
8514 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 8514 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
8515 } 8515 }
8516 8516
8517 class EventSourceEvents extends Events { 8517 class EventSourceEvents extends Events {
8518 EventSourceEvents(EventTarget _ptr) : super(_ptr); 8518 EventSourceEvents(EventTarget _ptr) : super(_ptr);
8519 8519
8520 EventListenerList get error => this['error']; 8520 EventListenerList get error => this['error'];
8521 8521
8522 EventListenerList get message => this['message']; 8522 EventListenerList get message => this['message'];
8523 8523
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
8572 _ptr.$dom_removeEventListener(_type, listener, useCapture); 8572 _ptr.$dom_removeEventListener(_type, listener, useCapture);
8573 } 8573 }
8574 } 8574 }
8575 8575
8576 8576
8577 class EventTarget native "*EventTarget" { 8577 class EventTarget native "*EventTarget" {
8578 8578
8579 /** @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev entTarget.dispatchEvent */ 8579 /** @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev entTarget.dispatchEvent */
8580 Events get on => new Events(this); 8580 Events get on => new Events(this);
8581 8581
8582 /** @domName EventTarget.addEventListener */ 8582 /** @domName EventTarget.addEventListener; @docsEditable true */
8583 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 8583 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
8584 8584
8585 /** @domName EventTarget.dispatchEvent */ 8585 /** @domName EventTarget.dispatchEvent; @docsEditable true */
8586 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; 8586 bool $dom_dispatchEvent(Event event) native "dispatchEvent";
8587 8587
8588 /** @domName EventTarget.removeEventListener */ 8588 /** @domName EventTarget.removeEventListener; @docsEditable true */
8589 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 8589 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
8590 8590
8591 } 8591 }
8592 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 8592 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8593 // for details. All rights reserved. Use of this source code is governed by a 8593 // for details. All rights reserved. Use of this source code is governed by a
8594 // BSD-style license that can be found in the LICENSE file. 8594 // BSD-style license that can be found in the LICENSE file.
8595 8595
8596 8596
8597 /// @domName HTMLFieldSetElement 8597 /// @domName HTMLFieldSetElement; @docsEditable true
8598 class FieldSetElement extends Element implements Element native "*HTMLFieldSetEl ement" { 8598 class FieldSetElement extends Element implements Element native "*HTMLFieldSetEl ement" {
8599 8599
8600 factory FieldSetElement() => document.$dom_createElement("fieldset"); 8600 factory FieldSetElement() => document.$dom_createElement("fieldset");
8601 8601
8602 /** @domName HTMLFieldSetElement.disabled */ 8602 /** @domName HTMLFieldSetElement.disabled; @docsEditable true */
8603 bool disabled; 8603 bool disabled;
8604 8604
8605 /** @domName HTMLFieldSetElement.elements */ 8605 /** @domName HTMLFieldSetElement.elements; @docsEditable true */
8606 final HTMLCollection elements; 8606 final HTMLCollection elements;
8607 8607
8608 /** @domName HTMLFieldSetElement.form */ 8608 /** @domName HTMLFieldSetElement.form; @docsEditable true */
8609 final FormElement form; 8609 final FormElement form;
8610 8610
8611 /** @domName HTMLFieldSetElement.name */ 8611 /** @domName HTMLFieldSetElement.name; @docsEditable true */
8612 String name; 8612 String name;
8613 8613
8614 /** @domName HTMLFieldSetElement.type */ 8614 /** @domName HTMLFieldSetElement.type; @docsEditable true */
8615 final String type; 8615 final String type;
8616 8616
8617 /** @domName HTMLFieldSetElement.validationMessage */ 8617 /** @domName HTMLFieldSetElement.validationMessage; @docsEditable true */
8618 final String validationMessage; 8618 final String validationMessage;
8619 8619
8620 /** @domName HTMLFieldSetElement.validity */ 8620 /** @domName HTMLFieldSetElement.validity; @docsEditable true */
8621 final ValidityState validity; 8621 final ValidityState validity;
8622 8622
8623 /** @domName HTMLFieldSetElement.willValidate */ 8623 /** @domName HTMLFieldSetElement.willValidate; @docsEditable true */
8624 final bool willValidate; 8624 final bool willValidate;
8625 8625
8626 /** @domName HTMLFieldSetElement.checkValidity */ 8626 /** @domName HTMLFieldSetElement.checkValidity; @docsEditable true */
8627 bool checkValidity() native; 8627 bool checkValidity() native;
8628 8628
8629 /** @domName HTMLFieldSetElement.setCustomValidity */ 8629 /** @domName HTMLFieldSetElement.setCustomValidity; @docsEditable true */
8630 void setCustomValidity(String error) native; 8630 void setCustomValidity(String error) native;
8631 } 8631 }
8632 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 8632 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8633 // for details. All rights reserved. Use of this source code is governed by a 8633 // for details. All rights reserved. Use of this source code is governed by a
8634 // BSD-style license that can be found in the LICENSE file. 8634 // BSD-style license that can be found in the LICENSE file.
8635 8635
8636 8636
8637 /// @domName File 8637 /// @domName File; @docsEditable true
8638 class File extends Blob native "*File" { 8638 class File extends Blob native "*File" {
8639 8639
8640 /** @domName File.lastModifiedDate */ 8640 /** @domName File.lastModifiedDate; @docsEditable true */
8641 final Date lastModifiedDate; 8641 final Date lastModifiedDate;
8642 8642
8643 /** @domName File.name */ 8643 /** @domName File.name; @docsEditable true */
8644 final String name; 8644 final String name;
8645 8645
8646 /** @domName File.webkitRelativePath */ 8646 /** @domName File.webkitRelativePath; @docsEditable true */
8647 final String webkitRelativePath; 8647 final String webkitRelativePath;
8648 } 8648 }
8649 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 8649 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8650 // for details. All rights reserved. Use of this source code is governed by a 8650 // for details. All rights reserved. Use of this source code is governed by a
8651 // BSD-style license that can be found in the LICENSE file. 8651 // BSD-style license that can be found in the LICENSE file.
8652 8652
8653 // WARNING: Do not edit - generated code. 8653 // WARNING: Do not edit - generated code.
8654 8654
8655 8655
8656 typedef void FileCallback(File file); 8656 typedef void FileCallback(File file);
8657 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 8657 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8658 // for details. All rights reserved. Use of this source code is governed by a 8658 // for details. All rights reserved. Use of this source code is governed by a
8659 // BSD-style license that can be found in the LICENSE file. 8659 // BSD-style license that can be found in the LICENSE file.
8660 8660
8661 8661
8662 /// @domName FileEntry 8662 /// @domName FileEntry; @docsEditable true
8663 class FileEntry extends Entry native "*FileEntry" { 8663 class FileEntry extends Entry native "*FileEntry" {
8664 8664
8665 /** @domName FileEntry.createWriter */ 8665 /** @domName FileEntry.createWriter; @docsEditable true */
8666 void createWriter(FileWriterCallback successCallback, [ErrorCallback errorCall back]) native; 8666 void createWriter(FileWriterCallback successCallback, [ErrorCallback errorCall back]) native;
8667 8667
8668 /** @domName FileEntry.file */ 8668 /** @domName FileEntry.file; @docsEditable true */
8669 void file(FileCallback successCallback, [ErrorCallback errorCallback]) native; 8669 void file(FileCallback successCallback, [ErrorCallback errorCallback]) native;
8670 } 8670 }
8671 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 8671 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8672 // for details. All rights reserved. Use of this source code is governed by a 8672 // for details. All rights reserved. Use of this source code is governed by a
8673 // BSD-style license that can be found in the LICENSE file. 8673 // BSD-style license that can be found in the LICENSE file.
8674 8674
8675 8675
8676 /// @domName FileEntrySync 8676 /// @domName FileEntrySync; @docsEditable true
8677 class FileEntrySync extends EntrySync native "*FileEntrySync" { 8677 class FileEntrySync extends EntrySync native "*FileEntrySync" {
8678 8678
8679 /** @domName FileEntrySync.createWriter */ 8679 /** @domName FileEntrySync.createWriter; @docsEditable true */
8680 FileWriterSync createWriter() native; 8680 FileWriterSync createWriter() native;
8681 8681
8682 /** @domName FileEntrySync.file */ 8682 /** @domName FileEntrySync.file; @docsEditable true */
8683 File file() native; 8683 File file() native;
8684 } 8684 }
8685 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 8685 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8686 // for details. All rights reserved. Use of this source code is governed by a 8686 // for details. All rights reserved. Use of this source code is governed by a
8687 // BSD-style license that can be found in the LICENSE file. 8687 // BSD-style license that can be found in the LICENSE file.
8688 8688
8689 8689
8690 /// @domName FileError 8690 /// @domName FileError; @docsEditable true
8691 class FileError native "*FileError" { 8691 class FileError native "*FileError" {
8692 8692
8693 static const int ABORT_ERR = 3; 8693 static const int ABORT_ERR = 3;
8694 8694
8695 static const int ENCODING_ERR = 5; 8695 static const int ENCODING_ERR = 5;
8696 8696
8697 static const int INVALID_MODIFICATION_ERR = 9; 8697 static const int INVALID_MODIFICATION_ERR = 9;
8698 8698
8699 static const int INVALID_STATE_ERR = 7; 8699 static const int INVALID_STATE_ERR = 7;
8700 8700
8701 static const int NOT_FOUND_ERR = 1; 8701 static const int NOT_FOUND_ERR = 1;
8702 8702
8703 static const int NOT_READABLE_ERR = 4; 8703 static const int NOT_READABLE_ERR = 4;
8704 8704
8705 static const int NO_MODIFICATION_ALLOWED_ERR = 6; 8705 static const int NO_MODIFICATION_ALLOWED_ERR = 6;
8706 8706
8707 static const int PATH_EXISTS_ERR = 12; 8707 static const int PATH_EXISTS_ERR = 12;
8708 8708
8709 static const int QUOTA_EXCEEDED_ERR = 10; 8709 static const int QUOTA_EXCEEDED_ERR = 10;
8710 8710
8711 static const int SECURITY_ERR = 2; 8711 static const int SECURITY_ERR = 2;
8712 8712
8713 static const int SYNTAX_ERR = 8; 8713 static const int SYNTAX_ERR = 8;
8714 8714
8715 static const int TYPE_MISMATCH_ERR = 11; 8715 static const int TYPE_MISMATCH_ERR = 11;
8716 8716
8717 /** @domName FileError.code */ 8717 /** @domName FileError.code; @docsEditable true */
8718 final int code; 8718 final int code;
8719 } 8719 }
8720 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 8720 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8721 // for details. All rights reserved. Use of this source code is governed by a 8721 // for details. All rights reserved. Use of this source code is governed by a
8722 // BSD-style license that can be found in the LICENSE file. 8722 // BSD-style license that can be found in the LICENSE file.
8723 8723
8724 8724
8725 /// @domName FileException 8725 /// @domName FileException; @docsEditable true
8726 class FileException native "*FileException" { 8726 class FileException native "*FileException" {
8727 8727
8728 static const int ABORT_ERR = 3; 8728 static const int ABORT_ERR = 3;
8729 8729
8730 static const int ENCODING_ERR = 5; 8730 static const int ENCODING_ERR = 5;
8731 8731
8732 static const int INVALID_MODIFICATION_ERR = 9; 8732 static const int INVALID_MODIFICATION_ERR = 9;
8733 8733
8734 static const int INVALID_STATE_ERR = 7; 8734 static const int INVALID_STATE_ERR = 7;
8735 8735
8736 static const int NOT_FOUND_ERR = 1; 8736 static const int NOT_FOUND_ERR = 1;
8737 8737
8738 static const int NOT_READABLE_ERR = 4; 8738 static const int NOT_READABLE_ERR = 4;
8739 8739
8740 static const int NO_MODIFICATION_ALLOWED_ERR = 6; 8740 static const int NO_MODIFICATION_ALLOWED_ERR = 6;
8741 8741
8742 static const int PATH_EXISTS_ERR = 12; 8742 static const int PATH_EXISTS_ERR = 12;
8743 8743
8744 static const int QUOTA_EXCEEDED_ERR = 10; 8744 static const int QUOTA_EXCEEDED_ERR = 10;
8745 8745
8746 static const int SECURITY_ERR = 2; 8746 static const int SECURITY_ERR = 2;
8747 8747
8748 static const int SYNTAX_ERR = 8; 8748 static const int SYNTAX_ERR = 8;
8749 8749
8750 static const int TYPE_MISMATCH_ERR = 11; 8750 static const int TYPE_MISMATCH_ERR = 11;
8751 8751
8752 /** @domName FileException.code */ 8752 /** @domName FileException.code; @docsEditable true */
8753 final int code; 8753 final int code;
8754 8754
8755 /** @domName FileException.message */ 8755 /** @domName FileException.message; @docsEditable true */
8756 final String message; 8756 final String message;
8757 8757
8758 /** @domName FileException.name */ 8758 /** @domName FileException.name; @docsEditable true */
8759 final String name; 8759 final String name;
8760 8760
8761 /** @domName FileException.toString */ 8761 /** @domName FileException.toString; @docsEditable true */
8762 String toString() native; 8762 String toString() native;
8763 } 8763 }
8764 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 8764 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8765 // for details. All rights reserved. Use of this source code is governed by a 8765 // for details. All rights reserved. Use of this source code is governed by a
8766 // BSD-style license that can be found in the LICENSE file. 8766 // BSD-style license that can be found in the LICENSE file.
8767 8767
8768 8768
8769 /// @domName FileReader 8769 /// @domName FileReader; @docsEditable true
8770 class FileReader extends EventTarget native "*FileReader" { 8770 class FileReader extends EventTarget native "*FileReader" {
8771 8771
8772 factory FileReader() => _FileReaderFactoryProvider.createFileReader(); 8772 factory FileReader() => _FileReaderFactoryProvider.createFileReader();
8773 8773
8774 /** 8774 /**
8775 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 8775 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent; @docsEditable true
8776 */ 8776 */
8777 FileReaderEvents get on => 8777 FileReaderEvents get on =>
8778 new FileReaderEvents(this); 8778 new FileReaderEvents(this);
8779 8779
8780 static const int DONE = 2; 8780 static const int DONE = 2;
8781 8781
8782 static const int EMPTY = 0; 8782 static const int EMPTY = 0;
8783 8783
8784 static const int LOADING = 1; 8784 static const int LOADING = 1;
8785 8785
8786 /** @domName FileReader.error */ 8786 /** @domName FileReader.error; @docsEditable true */
8787 final FileError error; 8787 final FileError error;
8788 8788
8789 /** @domName FileReader.readyState */ 8789 /** @domName FileReader.readyState; @docsEditable true */
8790 final int readyState; 8790 final int readyState;
8791 8791
8792 /** @domName FileReader.result */ 8792 /** @domName FileReader.result; @docsEditable true */
8793 @Creates('String|ArrayBuffer|Null') 8793 @Creates('String|ArrayBuffer|Null')
8794 final Object result; 8794 final Object result;
8795 8795
8796 /** @domName FileReader.abort */ 8796 /** @domName FileReader.abort; @docsEditable true */
8797 void abort() native; 8797 void abort() native;
8798 8798
8799 /** @domName FileReader.addEventListener */ 8799 /** @domName FileReader.addEventListener; @docsEditable true */
8800 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 8800 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
8801 8801
8802 /** @domName FileReader.dispatchEvent */ 8802 /** @domName FileReader.dispatchEvent; @docsEditable true */
8803 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; 8803 bool $dom_dispatchEvent(Event evt) native "dispatchEvent";
8804 8804
8805 /** @domName FileReader.readAsArrayBuffer */ 8805 /** @domName FileReader.readAsArrayBuffer; @docsEditable true */
8806 void readAsArrayBuffer(Blob blob) native; 8806 void readAsArrayBuffer(Blob blob) native;
8807 8807
8808 /** @domName FileReader.readAsBinaryString */ 8808 /** @domName FileReader.readAsBinaryString; @docsEditable true */
8809 void readAsBinaryString(Blob blob) native; 8809 void readAsBinaryString(Blob blob) native;
8810 8810
8811 /** @domName FileReader.readAsDataURL */ 8811 /** @domName FileReader.readAsDataURL; @docsEditable true */
8812 void readAsDataURL(Blob blob) native; 8812 void readAsDataURL(Blob blob) native;
8813 8813
8814 /** @domName FileReader.readAsText */ 8814 /** @domName FileReader.readAsText; @docsEditable true */
8815 void readAsText(Blob blob, [String encoding]) native; 8815 void readAsText(Blob blob, [String encoding]) native;
8816 8816
8817 /** @domName FileReader.removeEventListener */ 8817 /** @domName FileReader.removeEventListener; @docsEditable true */
8818 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 8818 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
8819 } 8819 }
8820 8820
8821 class FileReaderEvents extends Events { 8821 class FileReaderEvents extends Events {
8822 FileReaderEvents(EventTarget _ptr) : super(_ptr); 8822 FileReaderEvents(EventTarget _ptr) : super(_ptr);
8823 8823
8824 EventListenerList get abort => this['abort']; 8824 EventListenerList get abort => this['abort'];
8825 8825
8826 EventListenerList get error => this['error']; 8826 EventListenerList get error => this['error'];
8827 8827
8828 EventListenerList get load => this['load']; 8828 EventListenerList get load => this['load'];
8829 8829
8830 EventListenerList get loadEnd => this['loadend']; 8830 EventListenerList get loadEnd => this['loadend'];
8831 8831
8832 EventListenerList get loadStart => this['loadstart']; 8832 EventListenerList get loadStart => this['loadstart'];
8833 8833
8834 EventListenerList get progress => this['progress']; 8834 EventListenerList get progress => this['progress'];
8835 } 8835 }
8836 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 8836 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8837 // for details. All rights reserved. Use of this source code is governed by a 8837 // for details. All rights reserved. Use of this source code is governed by a
8838 // BSD-style license that can be found in the LICENSE file. 8838 // BSD-style license that can be found in the LICENSE file.
8839 8839
8840 8840
8841 /// @domName FileReaderSync 8841 /// @domName FileReaderSync; @docsEditable true
8842 class FileReaderSync native "*FileReaderSync" { 8842 class FileReaderSync native "*FileReaderSync" {
8843 8843
8844 factory FileReaderSync() => _FileReaderSyncFactoryProvider.createFileReaderSyn c(); 8844 factory FileReaderSync() => _FileReaderSyncFactoryProvider.createFileReaderSyn c();
8845 8845
8846 /** @domName FileReaderSync.readAsArrayBuffer */ 8846 /** @domName FileReaderSync.readAsArrayBuffer; @docsEditable true */
8847 ArrayBuffer readAsArrayBuffer(Blob blob) native; 8847 ArrayBuffer readAsArrayBuffer(Blob blob) native;
8848 8848
8849 /** @domName FileReaderSync.readAsBinaryString */ 8849 /** @domName FileReaderSync.readAsBinaryString; @docsEditable true */
8850 String readAsBinaryString(Blob blob) native; 8850 String readAsBinaryString(Blob blob) native;
8851 8851
8852 /** @domName FileReaderSync.readAsDataURL */ 8852 /** @domName FileReaderSync.readAsDataURL; @docsEditable true */
8853 String readAsDataURL(Blob blob) native; 8853 String readAsDataURL(Blob blob) native;
8854 8854
8855 /** @domName FileReaderSync.readAsText */ 8855 /** @domName FileReaderSync.readAsText; @docsEditable true */
8856 String readAsText(Blob blob, [String encoding]) native; 8856 String readAsText(Blob blob, [String encoding]) native;
8857 } 8857 }
8858 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 8858 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8859 // for details. All rights reserved. Use of this source code is governed by a 8859 // for details. All rights reserved. Use of this source code is governed by a
8860 // BSD-style license that can be found in the LICENSE file. 8860 // BSD-style license that can be found in the LICENSE file.
8861 8861
8862 // WARNING: Do not edit - generated code. 8862 // WARNING: Do not edit - generated code.
8863 8863
8864 8864
8865 typedef void FileSystemCallback(DOMFileSystem fileSystem); 8865 typedef void FileSystemCallback(DOMFileSystem fileSystem);
8866 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 8866 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8867 // for details. All rights reserved. Use of this source code is governed by a 8867 // for details. All rights reserved. Use of this source code is governed by a
8868 // BSD-style license that can be found in the LICENSE file. 8868 // BSD-style license that can be found in the LICENSE file.
8869 8869
8870 8870
8871 /// @domName FileWriter 8871 /// @domName FileWriter; @docsEditable true
8872 class FileWriter extends EventTarget native "*FileWriter" { 8872 class FileWriter extends EventTarget native "*FileWriter" {
8873 8873
8874 /** 8874 /**
8875 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 8875 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent; @docsEditable true
8876 */ 8876 */
8877 FileWriterEvents get on => 8877 FileWriterEvents get on =>
8878 new FileWriterEvents(this); 8878 new FileWriterEvents(this);
8879 8879
8880 static const int DONE = 2; 8880 static const int DONE = 2;
8881 8881
8882 static const int INIT = 0; 8882 static const int INIT = 0;
8883 8883
8884 static const int WRITING = 1; 8884 static const int WRITING = 1;
8885 8885
8886 /** @domName FileWriter.error */ 8886 /** @domName FileWriter.error; @docsEditable true */
8887 final FileError error; 8887 final FileError error;
8888 8888
8889 /** @domName FileWriter.length */ 8889 /** @domName FileWriter.length; @docsEditable true */
8890 final int length; 8890 final int length;
8891 8891
8892 /** @domName FileWriter.position */ 8892 /** @domName FileWriter.position; @docsEditable true */
8893 final int position; 8893 final int position;
8894 8894
8895 /** @domName FileWriter.readyState */ 8895 /** @domName FileWriter.readyState; @docsEditable true */
8896 final int readyState; 8896 final int readyState;
8897 8897
8898 /** @domName FileWriter.abort */ 8898 /** @domName FileWriter.abort; @docsEditable true */
8899 void abort() native; 8899 void abort() native;
8900 8900
8901 /** @domName FileWriter.addEventListener */ 8901 /** @domName FileWriter.addEventListener; @docsEditable true */
8902 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 8902 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
8903 8903
8904 /** @domName FileWriter.dispatchEvent */ 8904 /** @domName FileWriter.dispatchEvent; @docsEditable true */
8905 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; 8905 bool $dom_dispatchEvent(Event evt) native "dispatchEvent";
8906 8906
8907 /** @domName FileWriter.removeEventListener */ 8907 /** @domName FileWriter.removeEventListener; @docsEditable true */
8908 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 8908 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
8909 8909
8910 /** @domName FileWriter.seek */ 8910 /** @domName FileWriter.seek; @docsEditable true */
8911 void seek(int position) native; 8911 void seek(int position) native;
8912 8912
8913 /** @domName FileWriter.truncate */ 8913 /** @domName FileWriter.truncate; @docsEditable true */
8914 void truncate(int size) native; 8914 void truncate(int size) native;
8915 8915
8916 /** @domName FileWriter.write */ 8916 /** @domName FileWriter.write; @docsEditable true */
8917 void write(Blob data) native; 8917 void write(Blob data) native;
8918 } 8918 }
8919 8919
8920 class FileWriterEvents extends Events { 8920 class FileWriterEvents extends Events {
8921 FileWriterEvents(EventTarget _ptr) : super(_ptr); 8921 FileWriterEvents(EventTarget _ptr) : super(_ptr);
8922 8922
8923 EventListenerList get abort => this['abort']; 8923 EventListenerList get abort => this['abort'];
8924 8924
8925 EventListenerList get error => this['error']; 8925 EventListenerList get error => this['error'];
8926 8926
(...skipping 11 matching lines...) Expand all
8938 8938
8939 // WARNING: Do not edit - generated code. 8939 // WARNING: Do not edit - generated code.
8940 8940
8941 8941
8942 typedef void FileWriterCallback(FileWriter fileWriter); 8942 typedef void FileWriterCallback(FileWriter fileWriter);
8943 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 8943 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8944 // for details. All rights reserved. Use of this source code is governed by a 8944 // for details. All rights reserved. Use of this source code is governed by a
8945 // BSD-style license that can be found in the LICENSE file. 8945 // BSD-style license that can be found in the LICENSE file.
8946 8946
8947 8947
8948 /// @domName FileWriterSync 8948 /// @domName FileWriterSync; @docsEditable true
8949 class FileWriterSync native "*FileWriterSync" { 8949 class FileWriterSync native "*FileWriterSync" {
8950 8950
8951 /** @domName FileWriterSync.length */ 8951 /** @domName FileWriterSync.length; @docsEditable true */
8952 final int length; 8952 final int length;
8953 8953
8954 /** @domName FileWriterSync.position */ 8954 /** @domName FileWriterSync.position; @docsEditable true */
8955 final int position; 8955 final int position;
8956 8956
8957 /** @domName FileWriterSync.seek */ 8957 /** @domName FileWriterSync.seek; @docsEditable true */
8958 void seek(int position) native; 8958 void seek(int position) native;
8959 8959
8960 /** @domName FileWriterSync.truncate */ 8960 /** @domName FileWriterSync.truncate; @docsEditable true */
8961 void truncate(int size) native; 8961 void truncate(int size) native;
8962 8962
8963 /** @domName FileWriterSync.write */ 8963 /** @domName FileWriterSync.write; @docsEditable true */
8964 void write(Blob data) native; 8964 void write(Blob data) native;
8965 } 8965 }
8966 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 8966 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8967 // for details. All rights reserved. Use of this source code is governed by a 8967 // for details. All rights reserved. Use of this source code is governed by a
8968 // BSD-style license that can be found in the LICENSE file. 8968 // BSD-style license that can be found in the LICENSE file.
8969 8969
8970 8970
8971 /// @domName Float32Array 8971 /// @domName Float32Array; @docsEditable true
8972 class Float32Array extends ArrayBufferView implements JavaScriptIndexingBehavior , List<num> native "*Float32Array" { 8972 class Float32Array extends ArrayBufferView implements JavaScriptIndexingBehavior , List<num> native "*Float32Array" {
8973 8973
8974 factory Float32Array(int length) => 8974 factory Float32Array(int length) =>
8975 _TypedArrayFactoryProvider.createFloat32Array(length); 8975 _TypedArrayFactoryProvider.createFloat32Array(length);
8976 8976
8977 factory Float32Array.fromList(List<num> list) => 8977 factory Float32Array.fromList(List<num> list) =>
8978 _TypedArrayFactoryProvider.createFloat32Array_fromList(list); 8978 _TypedArrayFactoryProvider.createFloat32Array_fromList(list);
8979 8979
8980 factory Float32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int lengt h]) => 8980 factory Float32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int lengt h]) =>
8981 _TypedArrayFactoryProvider.createFloat32Array_fromBuffer(buffer, byteOffset, length); 8981 _TypedArrayFactoryProvider.createFloat32Array_fromBuffer(buffer, byteOffset, length);
8982 8982
8983 static const int BYTES_PER_ELEMENT = 4; 8983 static const int BYTES_PER_ELEMENT = 4;
8984 8984
8985 /** @domName Float32Array.length */ 8985 /** @domName Float32Array.length; @docsEditable true */
8986 final int length; 8986 final int length;
8987 8987
8988 num operator[](int index) => JS("num", "#[#]", this, index); 8988 num operator[](int index) => JS("num", "#[#]", this, index);
8989 8989
8990 void operator[]=(int index, num value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<num> mixins. 8990 void operator[]=(int index, num value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<num> mixins.
8991 // num is the element type. 8991 // num is the element type.
8992 8992
8993 // From Iterable<num>: 8993 // From Iterable<num>:
8994 8994
8995 Iterator<num> iterator() { 8995 Iterator<num> iterator() {
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
9060 9060
9061 void insertRange(int start, int rangeLength, [num initialValue]) { 9061 void insertRange(int start, int rangeLength, [num initialValue]) {
9062 throw new UnsupportedError("Cannot insertRange on immutable List."); 9062 throw new UnsupportedError("Cannot insertRange on immutable List.");
9063 } 9063 }
9064 9064
9065 List<num> getRange(int start, int rangeLength) => 9065 List<num> getRange(int start, int rangeLength) =>
9066 _Lists.getRange(this, start, rangeLength, <num>[]); 9066 _Lists.getRange(this, start, rangeLength, <num>[]);
9067 9067
9068 // -- end List<num> mixins. 9068 // -- end List<num> mixins.
9069 9069
9070 /** @domName Float32Array.setElements */ 9070 /** @domName Float32Array.setElements; @docsEditable true */
9071 void setElements(Object array, [int offset]) native "set"; 9071 void setElements(Object array, [int offset]) native "set";
9072 9072
9073 /** @domName Float32Array.subarray */ 9073 /** @domName Float32Array.subarray; @docsEditable true */
9074 Float32Array subarray(int start, [int end]) native; 9074 Float32Array subarray(int start, [int end]) native;
9075 } 9075 }
9076 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9076 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9077 // for details. All rights reserved. Use of this source code is governed by a 9077 // for details. All rights reserved. Use of this source code is governed by a
9078 // BSD-style license that can be found in the LICENSE file. 9078 // BSD-style license that can be found in the LICENSE file.
9079 9079
9080 9080
9081 /// @domName Float64Array 9081 /// @domName Float64Array; @docsEditable true
9082 class Float64Array extends ArrayBufferView implements JavaScriptIndexingBehavior , List<num> native "*Float64Array" { 9082 class Float64Array extends ArrayBufferView implements JavaScriptIndexingBehavior , List<num> native "*Float64Array" {
9083 9083
9084 factory Float64Array(int length) => 9084 factory Float64Array(int length) =>
9085 _TypedArrayFactoryProvider.createFloat64Array(length); 9085 _TypedArrayFactoryProvider.createFloat64Array(length);
9086 9086
9087 factory Float64Array.fromList(List<num> list) => 9087 factory Float64Array.fromList(List<num> list) =>
9088 _TypedArrayFactoryProvider.createFloat64Array_fromList(list); 9088 _TypedArrayFactoryProvider.createFloat64Array_fromList(list);
9089 9089
9090 factory Float64Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int lengt h]) => 9090 factory Float64Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int lengt h]) =>
9091 _TypedArrayFactoryProvider.createFloat64Array_fromBuffer(buffer, byteOffset, length); 9091 _TypedArrayFactoryProvider.createFloat64Array_fromBuffer(buffer, byteOffset, length);
9092 9092
9093 static const int BYTES_PER_ELEMENT = 8; 9093 static const int BYTES_PER_ELEMENT = 8;
9094 9094
9095 /** @domName Float64Array.length */ 9095 /** @domName Float64Array.length; @docsEditable true */
9096 final int length; 9096 final int length;
9097 9097
9098 num operator[](int index) => JS("num", "#[#]", this, index); 9098 num operator[](int index) => JS("num", "#[#]", this, index);
9099 9099
9100 void operator[]=(int index, num value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<num> mixins. 9100 void operator[]=(int index, num value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<num> mixins.
9101 // num is the element type. 9101 // num is the element type.
9102 9102
9103 // From Iterable<num>: 9103 // From Iterable<num>:
9104 9104
9105 Iterator<num> iterator() { 9105 Iterator<num> iterator() {
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
9170 9170
9171 void insertRange(int start, int rangeLength, [num initialValue]) { 9171 void insertRange(int start, int rangeLength, [num initialValue]) {
9172 throw new UnsupportedError("Cannot insertRange on immutable List."); 9172 throw new UnsupportedError("Cannot insertRange on immutable List.");
9173 } 9173 }
9174 9174
9175 List<num> getRange(int start, int rangeLength) => 9175 List<num> getRange(int start, int rangeLength) =>
9176 _Lists.getRange(this, start, rangeLength, <num>[]); 9176 _Lists.getRange(this, start, rangeLength, <num>[]);
9177 9177
9178 // -- end List<num> mixins. 9178 // -- end List<num> mixins.
9179 9179
9180 /** @domName Float64Array.setElements */ 9180 /** @domName Float64Array.setElements; @docsEditable true */
9181 void setElements(Object array, [int offset]) native "set"; 9181 void setElements(Object array, [int offset]) native "set";
9182 9182
9183 /** @domName Float64Array.subarray */ 9183 /** @domName Float64Array.subarray; @docsEditable true */
9184 Float64Array subarray(int start, [int end]) native; 9184 Float64Array subarray(int start, [int end]) native;
9185 } 9185 }
9186 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9186 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9187 // for details. All rights reserved. Use of this source code is governed by a 9187 // for details. All rights reserved. Use of this source code is governed by a
9188 // BSD-style license that can be found in the LICENSE file. 9188 // BSD-style license that can be found in the LICENSE file.
9189 9189
9190 9190
9191 /// @domName HTMLFontElement 9191 /// @domName HTMLFontElement; @docsEditable true
9192 class FontElement extends Element implements Element native "*HTMLFontElement" { 9192 class FontElement extends Element implements Element native "*HTMLFontElement" {
9193 9193
9194 /** @domName HTMLFontElement.color */ 9194 /** @domName HTMLFontElement.color; @docsEditable true */
9195 String color; 9195 String color;
9196 9196
9197 /** @domName HTMLFontElement.face */ 9197 /** @domName HTMLFontElement.face; @docsEditable true */
9198 String face; 9198 String face;
9199 9199
9200 /** @domName HTMLFontElement.size */ 9200 /** @domName HTMLFontElement.size; @docsEditable true */
9201 String size; 9201 String size;
9202 } 9202 }
9203 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9203 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9204 // for details. All rights reserved. Use of this source code is governed by a 9204 // for details. All rights reserved. Use of this source code is governed by a
9205 // BSD-style license that can be found in the LICENSE file. 9205 // BSD-style license that can be found in the LICENSE file.
9206 9206
9207 9207
9208 /// @domName FormData 9208 /// @domName FormData; @docsEditable true
9209 class FormData native "*FormData" { 9209 class FormData native "*FormData" {
9210 9210
9211 factory FormData([FormElement form]) { 9211 factory FormData([FormElement form]) {
9212 if (!?form) { 9212 if (!?form) {
9213 return _FormDataFactoryProvider.createFormData(); 9213 return _FormDataFactoryProvider.createFormData();
9214 } 9214 }
9215 return _FormDataFactoryProvider.createFormData(form); 9215 return _FormDataFactoryProvider.createFormData(form);
9216 } 9216 }
9217 9217
9218 /** @domName FormData.append */ 9218 /** @domName FormData.append; @docsEditable true */
9219 void append(String name, String value, String filename) native; 9219 void append(String name, String value, String filename) native;
9220 } 9220 }
9221 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9221 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9222 // for details. All rights reserved. Use of this source code is governed by a 9222 // for details. All rights reserved. Use of this source code is governed by a
9223 // BSD-style license that can be found in the LICENSE file. 9223 // BSD-style license that can be found in the LICENSE file.
9224 9224
9225 9225
9226 /// @domName HTMLFormElement 9226 /// @domName HTMLFormElement; @docsEditable true
9227 class FormElement extends Element implements Element native "*HTMLFormElement" { 9227 class FormElement extends Element implements Element native "*HTMLFormElement" {
9228 9228
9229 factory FormElement() => document.$dom_createElement("form"); 9229 factory FormElement() => document.$dom_createElement("form");
9230 9230
9231 /** @domName HTMLFormElement.acceptCharset */ 9231 /** @domName HTMLFormElement.acceptCharset; @docsEditable true */
9232 String acceptCharset; 9232 String acceptCharset;
9233 9233
9234 /** @domName HTMLFormElement.action */ 9234 /** @domName HTMLFormElement.action; @docsEditable true */
9235 String action; 9235 String action;
9236 9236
9237 /** @domName HTMLFormElement.autocomplete */ 9237 /** @domName HTMLFormElement.autocomplete; @docsEditable true */
9238 String autocomplete; 9238 String autocomplete;
9239 9239
9240 /** @domName HTMLFormElement.encoding */ 9240 /** @domName HTMLFormElement.encoding; @docsEditable true */
9241 String encoding; 9241 String encoding;
9242 9242
9243 /** @domName HTMLFormElement.enctype */ 9243 /** @domName HTMLFormElement.enctype; @docsEditable true */
9244 String enctype; 9244 String enctype;
9245 9245
9246 /** @domName HTMLFormElement.length */ 9246 /** @domName HTMLFormElement.length; @docsEditable true */
9247 final int length; 9247 final int length;
9248 9248
9249 /** @domName HTMLFormElement.method */ 9249 /** @domName HTMLFormElement.method; @docsEditable true */
9250 String method; 9250 String method;
9251 9251
9252 /** @domName HTMLFormElement.name */ 9252 /** @domName HTMLFormElement.name; @docsEditable true */
9253 String name; 9253 String name;
9254 9254
9255 /** @domName HTMLFormElement.noValidate */ 9255 /** @domName HTMLFormElement.noValidate; @docsEditable true */
9256 bool noValidate; 9256 bool noValidate;
9257 9257
9258 /** @domName HTMLFormElement.target */ 9258 /** @domName HTMLFormElement.target; @docsEditable true */
9259 String target; 9259 String target;
9260 9260
9261 /** @domName HTMLFormElement.checkValidity */ 9261 /** @domName HTMLFormElement.checkValidity; @docsEditable true */
9262 bool checkValidity() native; 9262 bool checkValidity() native;
9263 9263
9264 /** @domName HTMLFormElement.reset */ 9264 /** @domName HTMLFormElement.reset; @docsEditable true */
9265 void reset() native; 9265 void reset() native;
9266 9266
9267 /** @domName HTMLFormElement.submit */ 9267 /** @domName HTMLFormElement.submit; @docsEditable true */
9268 void submit() native; 9268 void submit() native;
9269 } 9269 }
9270 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9270 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9271 // for details. All rights reserved. Use of this source code is governed by a 9271 // for details. All rights reserved. Use of this source code is governed by a
9272 // BSD-style license that can be found in the LICENSE file. 9272 // BSD-style license that can be found in the LICENSE file.
9273 9273
9274 9274
9275 /// @domName HTMLFrameElement 9275 /// @domName HTMLFrameElement; @docsEditable true
9276 class FrameElement extends Element implements Element native "*HTMLFrameElement" { 9276 class FrameElement extends Element implements Element native "*HTMLFrameElement" {
9277 9277
9278 /** @domName HTMLFrameElement.contentWindow */ 9278 /** @domName HTMLFrameElement.contentWindow; @docsEditable true */
9279 Window get contentWindow => _convertNativeToDart_Window(this._contentWindow); 9279 Window get contentWindow => _convertNativeToDart_Window(this._contentWindow);
9280 dynamic get _contentWindow => JS("dynamic", "#.contentWindow", this); 9280 dynamic get _contentWindow => JS("dynamic", "#.contentWindow", this);
9281 9281
9282 /** @domName HTMLFrameElement.frameBorder */ 9282 /** @domName HTMLFrameElement.frameBorder; @docsEditable true */
9283 String frameBorder; 9283 String frameBorder;
9284 9284
9285 /** @domName HTMLFrameElement.height */ 9285 /** @domName HTMLFrameElement.height; @docsEditable true */
9286 final int height; 9286 final int height;
9287 9287
9288 /** @domName HTMLFrameElement.location */ 9288 /** @domName HTMLFrameElement.location; @docsEditable true */
9289 String location; 9289 String location;
9290 9290
9291 /** @domName HTMLFrameElement.longDesc */ 9291 /** @domName HTMLFrameElement.longDesc; @docsEditable true */
9292 String longDesc; 9292 String longDesc;
9293 9293
9294 /** @domName HTMLFrameElement.marginHeight */ 9294 /** @domName HTMLFrameElement.marginHeight; @docsEditable true */
9295 String marginHeight; 9295 String marginHeight;
9296 9296
9297 /** @domName HTMLFrameElement.marginWidth */ 9297 /** @domName HTMLFrameElement.marginWidth; @docsEditable true */
9298 String marginWidth; 9298 String marginWidth;
9299 9299
9300 /** @domName HTMLFrameElement.name */ 9300 /** @domName HTMLFrameElement.name; @docsEditable true */
9301 String name; 9301 String name;
9302 9302
9303 /** @domName HTMLFrameElement.noResize */ 9303 /** @domName HTMLFrameElement.noResize; @docsEditable true */
9304 bool noResize; 9304 bool noResize;
9305 9305
9306 /** @domName HTMLFrameElement.scrolling */ 9306 /** @domName HTMLFrameElement.scrolling; @docsEditable true */
9307 String scrolling; 9307 String scrolling;
9308 9308
9309 /** @domName HTMLFrameElement.src */ 9309 /** @domName HTMLFrameElement.src; @docsEditable true */
9310 String src; 9310 String src;
9311 9311
9312 /** @domName HTMLFrameElement.width */ 9312 /** @domName HTMLFrameElement.width; @docsEditable true */
9313 final int width; 9313 final int width;
9314 } 9314 }
9315 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9315 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9316 // for details. All rights reserved. Use of this source code is governed by a 9316 // for details. All rights reserved. Use of this source code is governed by a
9317 // BSD-style license that can be found in the LICENSE file. 9317 // BSD-style license that can be found in the LICENSE file.
9318 9318
9319 9319
9320 /// @domName HTMLFrameSetElement 9320 /// @domName HTMLFrameSetElement; @docsEditable true
9321 class FrameSetElement extends Element implements Element native "*HTMLFrameSetEl ement" { 9321 class FrameSetElement extends Element implements Element native "*HTMLFrameSetEl ement" {
9322 9322
9323 /** 9323 /**
9324 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 9324 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent; @docsEditable true
9325 */ 9325 */
9326 FrameSetElementEvents get on => 9326 FrameSetElementEvents get on =>
9327 new FrameSetElementEvents(this); 9327 new FrameSetElementEvents(this);
9328 9328
9329 /** @domName HTMLFrameSetElement.cols */ 9329 /** @domName HTMLFrameSetElement.cols; @docsEditable true */
9330 String cols; 9330 String cols;
9331 9331
9332 /** @domName HTMLFrameSetElement.rows */ 9332 /** @domName HTMLFrameSetElement.rows; @docsEditable true */
9333 String rows; 9333 String rows;
9334 } 9334 }
9335 9335
9336 class FrameSetElementEvents extends ElementEvents { 9336 class FrameSetElementEvents extends ElementEvents {
9337 FrameSetElementEvents(EventTarget _ptr) : super(_ptr); 9337 FrameSetElementEvents(EventTarget _ptr) : super(_ptr);
9338 9338
9339 EventListenerList get beforeUnload => this['beforeunload']; 9339 EventListenerList get beforeUnload => this['beforeunload'];
9340 9340
9341 EventListenerList get blur => this['blur']; 9341 EventListenerList get blur => this['blur'];
9342 9342
(...skipping 17 matching lines...) Expand all
9360 9360
9361 EventListenerList get storage => this['storage']; 9361 EventListenerList get storage => this['storage'];
9362 9362
9363 EventListenerList get unload => this['unload']; 9363 EventListenerList get unload => this['unload'];
9364 } 9364 }
9365 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9365 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9366 // for details. All rights reserved. Use of this source code is governed by a 9366 // for details. All rights reserved. Use of this source code is governed by a
9367 // BSD-style license that can be found in the LICENSE file. 9367 // BSD-style license that can be found in the LICENSE file.
9368 9368
9369 9369
9370 /// @domName GainNode 9370 /// @domName GainNode; @docsEditable true
9371 class GainNode extends AudioNode native "*GainNode" { 9371 class GainNode extends AudioNode native "*GainNode" {
9372 9372
9373 /** @domName GainNode.gain */ 9373 /** @domName GainNode.gain; @docsEditable true */
9374 final AudioGain gain; 9374 final AudioGain gain;
9375 } 9375 }
9376 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9376 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9377 // for details. All rights reserved. Use of this source code is governed by a 9377 // for details. All rights reserved. Use of this source code is governed by a
9378 // BSD-style license that can be found in the LICENSE file. 9378 // BSD-style license that can be found in the LICENSE file.
9379 9379
9380 9380
9381 /// @domName Gamepad 9381 /// @domName Gamepad; @docsEditable true
9382 class Gamepad native "*Gamepad" { 9382 class Gamepad native "*Gamepad" {
9383 9383
9384 /** @domName Gamepad.axes */ 9384 /** @domName Gamepad.axes; @docsEditable true */
9385 final List<num> axes; 9385 final List<num> axes;
9386 9386
9387 /** @domName Gamepad.buttons */ 9387 /** @domName Gamepad.buttons; @docsEditable true */
9388 final List<num> buttons; 9388 final List<num> buttons;
9389 9389
9390 /** @domName Gamepad.id */ 9390 /** @domName Gamepad.id; @docsEditable true */
9391 final String id; 9391 final String id;
9392 9392
9393 /** @domName Gamepad.index */ 9393 /** @domName Gamepad.index; @docsEditable true */
9394 final int index; 9394 final int index;
9395 9395
9396 /** @domName Gamepad.timestamp */ 9396 /** @domName Gamepad.timestamp; @docsEditable true */
9397 final int timestamp; 9397 final int timestamp;
9398 } 9398 }
9399 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9399 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9400 // for details. All rights reserved. Use of this source code is governed by a 9400 // for details. All rights reserved. Use of this source code is governed by a
9401 // BSD-style license that can be found in the LICENSE file. 9401 // BSD-style license that can be found in the LICENSE file.
9402 9402
9403 9403
9404 /// @domName Geolocation 9404 /// @domName Geolocation; @docsEditable true
9405 class Geolocation native "*Geolocation" { 9405 class Geolocation native "*Geolocation" {
9406 9406
9407 /** @domName Geolocation.clearWatch */ 9407 /** @domName Geolocation.clearWatch; @docsEditable true */
9408 void clearWatch(int watchId) native; 9408 void clearWatch(int watchId) native;
9409 9409
9410 /** @domName Geolocation.getCurrentPosition */ 9410 /** @domName Geolocation.getCurrentPosition; @docsEditable true */
9411 void getCurrentPosition(PositionCallback successCallback, [PositionErrorCallba ck errorCallback, Object options]) native; 9411 void getCurrentPosition(PositionCallback successCallback, [PositionErrorCallba ck errorCallback, Object options]) native;
9412 9412
9413 /** @domName Geolocation.watchPosition */ 9413 /** @domName Geolocation.watchPosition; @docsEditable true */
9414 int watchPosition(PositionCallback successCallback, [PositionErrorCallback err orCallback, Object options]) native; 9414 int watchPosition(PositionCallback successCallback, [PositionErrorCallback err orCallback, Object options]) native;
9415 } 9415 }
9416 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9416 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9417 // for details. All rights reserved. Use of this source code is governed by a 9417 // for details. All rights reserved. Use of this source code is governed by a
9418 // BSD-style license that can be found in the LICENSE file. 9418 // BSD-style license that can be found in the LICENSE file.
9419 9419
9420 9420
9421 /// @domName Geoposition 9421 /// @domName Geoposition; @docsEditable true
9422 class Geoposition native "*Geoposition" { 9422 class Geoposition native "*Geoposition" {
9423 9423
9424 /** @domName Geoposition.coords */ 9424 /** @domName Geoposition.coords; @docsEditable true */
9425 final Coordinates coords; 9425 final Coordinates coords;
9426 9426
9427 /** @domName Geoposition.timestamp */ 9427 /** @domName Geoposition.timestamp; @docsEditable true */
9428 final int timestamp; 9428 final int timestamp;
9429 } 9429 }
9430 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9430 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9431 // for details. All rights reserved. Use of this source code is governed by a 9431 // for details. All rights reserved. Use of this source code is governed by a
9432 // BSD-style license that can be found in the LICENSE file. 9432 // BSD-style license that can be found in the LICENSE file.
9433 9433
9434 9434
9435 /// @domName HTMLHRElement 9435 /// @domName HTMLHRElement; @docsEditable true
9436 class HRElement extends Element implements Element native "*HTMLHRElement" { 9436 class HRElement extends Element implements Element native "*HTMLHRElement" {
9437 9437
9438 factory HRElement() => document.$dom_createElement("hr"); 9438 factory HRElement() => document.$dom_createElement("hr");
9439 9439
9440 /** @domName HTMLHRElement.align */ 9440 /** @domName HTMLHRElement.align; @docsEditable true */
9441 String align; 9441 String align;
9442 9442
9443 /** @domName HTMLHRElement.noShade */ 9443 /** @domName HTMLHRElement.noShade; @docsEditable true */
9444 bool noShade; 9444 bool noShade;
9445 9445
9446 /** @domName HTMLHRElement.size */ 9446 /** @domName HTMLHRElement.size; @docsEditable true */
9447 String size; 9447 String size;
9448 9448
9449 /** @domName HTMLHRElement.width */ 9449 /** @domName HTMLHRElement.width; @docsEditable true */
9450 String width; 9450 String width;
9451 } 9451 }
9452 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9452 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9453 // for details. All rights reserved. Use of this source code is governed by a 9453 // for details. All rights reserved. Use of this source code is governed by a
9454 // BSD-style license that can be found in the LICENSE file. 9454 // BSD-style license that can be found in the LICENSE file.
9455 9455
9456 9456
9457 /// @domName HTMLAllCollection 9457 /// @domName HTMLAllCollection; @docsEditable true
9458 class HTMLAllCollection implements JavaScriptIndexingBehavior, List<Node> native "*HTMLAllCollection" { 9458 class HTMLAllCollection implements JavaScriptIndexingBehavior, List<Node> native "*HTMLAllCollection" {
9459 9459
9460 /** @domName HTMLAllCollection.length */ 9460 /** @domName HTMLAllCollection.length; @docsEditable true */
9461 final int length; 9461 final int length;
9462 9462
9463 Node operator[](int index) => JS("Node", "#[#]", this, index); 9463 Node operator[](int index) => JS("Node", "#[#]", this, index);
9464 9464
9465 void operator[]=(int index, Node value) { 9465 void operator[]=(int index, Node value) {
9466 throw new UnsupportedError("Cannot assign element of immutable List."); 9466 throw new UnsupportedError("Cannot assign element of immutable List.");
9467 } 9467 }
9468 // -- start List<Node> mixins. 9468 // -- start List<Node> mixins.
9469 // Node is the element type. 9469 // Node is the element type.
9470 9470
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
9538 9538
9539 void insertRange(int start, int rangeLength, [Node initialValue]) { 9539 void insertRange(int start, int rangeLength, [Node initialValue]) {
9540 throw new UnsupportedError("Cannot insertRange on immutable List."); 9540 throw new UnsupportedError("Cannot insertRange on immutable List.");
9541 } 9541 }
9542 9542
9543 List<Node> getRange(int start, int rangeLength) => 9543 List<Node> getRange(int start, int rangeLength) =>
9544 _Lists.getRange(this, start, rangeLength, <Node>[]); 9544 _Lists.getRange(this, start, rangeLength, <Node>[]);
9545 9545
9546 // -- end List<Node> mixins. 9546 // -- end List<Node> mixins.
9547 9547
9548 /** @domName HTMLAllCollection.item */ 9548 /** @domName HTMLAllCollection.item; @docsEditable true */
9549 Node item(int index) native; 9549 Node item(int index) native;
9550 9550
9551 /** @domName HTMLAllCollection.namedItem */ 9551 /** @domName HTMLAllCollection.namedItem; @docsEditable true */
9552 Node namedItem(String name) native; 9552 Node namedItem(String name) native;
9553 9553
9554 /** @domName HTMLAllCollection.tags */ 9554 /** @domName HTMLAllCollection.tags; @docsEditable true */
9555 List<Node> tags(String name) native; 9555 List<Node> tags(String name) native;
9556 } 9556 }
9557 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9557 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9558 // for details. All rights reserved. Use of this source code is governed by a 9558 // for details. All rights reserved. Use of this source code is governed by a
9559 // BSD-style license that can be found in the LICENSE file. 9559 // BSD-style license that can be found in the LICENSE file.
9560 9560
9561 9561
9562 /// @domName HTMLCollection 9562 /// @domName HTMLCollection; @docsEditable true
9563 class HTMLCollection implements JavaScriptIndexingBehavior, List<Node> native "* HTMLCollection" { 9563 class HTMLCollection implements JavaScriptIndexingBehavior, List<Node> native "* HTMLCollection" {
9564 9564
9565 /** @domName HTMLCollection.length */ 9565 /** @domName HTMLCollection.length; @docsEditable true */
9566 final int length; 9566 final int length;
9567 9567
9568 Node operator[](int index) => JS("Node", "#[#]", this, index); 9568 Node operator[](int index) => JS("Node", "#[#]", this, index);
9569 9569
9570 void operator[]=(int index, Node value) { 9570 void operator[]=(int index, Node value) {
9571 throw new UnsupportedError("Cannot assign element of immutable List."); 9571 throw new UnsupportedError("Cannot assign element of immutable List.");
9572 } 9572 }
9573 // -- start List<Node> mixins. 9573 // -- start List<Node> mixins.
9574 // Node is the element type. 9574 // Node is the element type.
9575 9575
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
9643 9643
9644 void insertRange(int start, int rangeLength, [Node initialValue]) { 9644 void insertRange(int start, int rangeLength, [Node initialValue]) {
9645 throw new UnsupportedError("Cannot insertRange on immutable List."); 9645 throw new UnsupportedError("Cannot insertRange on immutable List.");
9646 } 9646 }
9647 9647
9648 List<Node> getRange(int start, int rangeLength) => 9648 List<Node> getRange(int start, int rangeLength) =>
9649 _Lists.getRange(this, start, rangeLength, <Node>[]); 9649 _Lists.getRange(this, start, rangeLength, <Node>[]);
9650 9650
9651 // -- end List<Node> mixins. 9651 // -- end List<Node> mixins.
9652 9652
9653 /** @domName HTMLCollection.item */ 9653 /** @domName HTMLCollection.item; @docsEditable true */
9654 Node item(int index) native; 9654 Node item(int index) native;
9655 9655
9656 /** @domName HTMLCollection.namedItem */ 9656 /** @domName HTMLCollection.namedItem; @docsEditable true */
9657 Node namedItem(String name) native; 9657 Node namedItem(String name) native;
9658 } 9658 }
9659 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9659 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9660 // for details. All rights reserved. Use of this source code is governed by a 9660 // for details. All rights reserved. Use of this source code is governed by a
9661 // BSD-style license that can be found in the LICENSE file. 9661 // BSD-style license that can be found in the LICENSE file.
9662 9662
9663 9663
9664 /// @domName HTMLOptionsCollection 9664 /// @domName HTMLOptionsCollection; @docsEditable true
9665 class HTMLOptionsCollection extends HTMLCollection native "*HTMLOptionsCollectio n" { 9665 class HTMLOptionsCollection extends HTMLCollection native "*HTMLOptionsCollectio n" {
9666 9666
9667 // Shadowing definition. 9667 // Shadowing definition.
9668 /** @domName HTMLOptionsCollection.length */ 9668 /** @domName HTMLOptionsCollection.length; @docsEditable true */
9669 int get length => JS("int", "#.length", this); 9669 int get length => JS("int", "#.length", this);
9670 9670
9671 /** @domName HTMLOptionsCollection.length */ 9671 /** @domName HTMLOptionsCollection.length; @docsEditable true */
9672 void set length(int value) { 9672 void set length(int value) {
9673 JS("void", "#.length = #", this, value); 9673 JS("void", "#.length = #", this, value);
9674 } 9674 }
9675 9675
9676 /** @domName HTMLOptionsCollection.selectedIndex */ 9676 /** @domName HTMLOptionsCollection.selectedIndex; @docsEditable true */
9677 int selectedIndex; 9677 int selectedIndex;
9678 9678
9679 /** @domName HTMLOptionsCollection.remove */ 9679 /** @domName HTMLOptionsCollection.remove; @docsEditable true */
9680 void remove(int index) native; 9680 void remove(int index) native;
9681 } 9681 }
9682 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9682 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9683 // for details. All rights reserved. Use of this source code is governed by a 9683 // for details. All rights reserved. Use of this source code is governed by a
9684 // BSD-style license that can be found in the LICENSE file. 9684 // BSD-style license that can be found in the LICENSE file.
9685 9685
9686 9686
9687 /// @domName HashChangeEvent 9687 /// @domName HashChangeEvent; @docsEditable true
9688 class HashChangeEvent extends Event native "*HashChangeEvent" { 9688 class HashChangeEvent extends Event native "*HashChangeEvent" {
9689 9689
9690 /** @domName HashChangeEvent.newURL */ 9690 /** @domName HashChangeEvent.newURL; @docsEditable true */
9691 final String newURL; 9691 final String newURL;
9692 9692
9693 /** @domName HashChangeEvent.oldURL */ 9693 /** @domName HashChangeEvent.oldURL; @docsEditable true */
9694 final String oldURL; 9694 final String oldURL;
9695 9695
9696 /** @domName HashChangeEvent.initHashChangeEvent */ 9696 /** @domName HashChangeEvent.initHashChangeEvent; @docsEditable true */
9697 void initHashChangeEvent(String type, bool canBubble, bool cancelable, String oldURL, String newURL) native; 9697 void initHashChangeEvent(String type, bool canBubble, bool cancelable, String oldURL, String newURL) native;
9698 } 9698 }
9699 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9699 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9700 // for details. All rights reserved. Use of this source code is governed by a 9700 // for details. All rights reserved. Use of this source code is governed by a
9701 // BSD-style license that can be found in the LICENSE file. 9701 // BSD-style license that can be found in the LICENSE file.
9702 9702
9703 9703
9704 /// @domName HTMLHeadElement 9704 /// @domName HTMLHeadElement; @docsEditable true
9705 class HeadElement extends Element implements Element native "*HTMLHeadElement" { 9705 class HeadElement extends Element implements Element native "*HTMLHeadElement" {
9706 9706
9707 factory HeadElement() => document.$dom_createElement("head"); 9707 factory HeadElement() => document.$dom_createElement("head");
9708 9708
9709 /** @domName HTMLHeadElement.profile */ 9709 /** @domName HTMLHeadElement.profile; @docsEditable true */
9710 String profile; 9710 String profile;
9711 } 9711 }
9712 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9712 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9713 // for details. All rights reserved. Use of this source code is governed by a 9713 // for details. All rights reserved. Use of this source code is governed by a
9714 // BSD-style license that can be found in the LICENSE file. 9714 // BSD-style license that can be found in the LICENSE file.
9715 9715
9716 9716
9717 /// @domName HTMLHeadingElement 9717 /// @domName HTMLHeadingElement; @docsEditable true
9718 class HeadingElement extends Element implements Element native "*HTMLHeadingElem ent" { 9718 class HeadingElement extends Element implements Element native "*HTMLHeadingElem ent" {
9719 9719
9720 factory HeadingElement.h1() => document.$dom_createElement("h1"); 9720 factory HeadingElement.h1() => document.$dom_createElement("h1");
9721 9721
9722 factory HeadingElement.h2() => document.$dom_createElement("h2"); 9722 factory HeadingElement.h2() => document.$dom_createElement("h2");
9723 9723
9724 factory HeadingElement.h3() => document.$dom_createElement("h3"); 9724 factory HeadingElement.h3() => document.$dom_createElement("h3");
9725 9725
9726 factory HeadingElement.h4() => document.$dom_createElement("h4"); 9726 factory HeadingElement.h4() => document.$dom_createElement("h4");
9727 9727
9728 factory HeadingElement.h5() => document.$dom_createElement("h5"); 9728 factory HeadingElement.h5() => document.$dom_createElement("h5");
9729 9729
9730 factory HeadingElement.h6() => document.$dom_createElement("h6"); 9730 factory HeadingElement.h6() => document.$dom_createElement("h6");
9731 9731
9732 /** @domName HTMLHeadingElement.align */ 9732 /** @domName HTMLHeadingElement.align; @docsEditable true */
9733 String align; 9733 String align;
9734 } 9734 }
9735 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9735 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9736 // for details. All rights reserved. Use of this source code is governed by a 9736 // for details. All rights reserved. Use of this source code is governed by a
9737 // BSD-style license that can be found in the LICENSE file. 9737 // BSD-style license that can be found in the LICENSE file.
9738 9738
9739 // WARNING: Do not edit - generated code. 9739 // WARNING: Do not edit - generated code.
9740 9740
9741 9741
9742 class HtmlDocument extends Document native "*HTMLDocument" { 9742 class HtmlDocument extends Document native "*HTMLDocument" {
9743 9743
9744 /** @domName HTMLDocument.activeElement */ 9744 /** @domName HTMLDocument.activeElement; @docsEditable true */
9745 final Element activeElement; 9745 final Element activeElement;
9746 9746
9747 /** @domName Document.body */ 9747 /** @domName Document.body */
9748 BodyElement get body => document.$dom_body; 9748 BodyElement get body => document.$dom_body;
9749 9749
9750 /** @domName Document.body */ 9750 /** @domName Document.body */
9751 void set body(BodyElement value) { 9751 void set body(BodyElement value) {
9752 document.$dom_body = value; 9752 document.$dom_body = value;
9753 } 9753 }
9754 9754
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
9814 document.$dom_webkitPointerLockElement; 9814 document.$dom_webkitPointerLockElement;
9815 9815
9816 /** @domName Document.webkitVisibilityState */ 9816 /** @domName Document.webkitVisibilityState */
9817 String get webkitVisibilityState => document.$dom_webkitVisibilityState; 9817 String get webkitVisibilityState => document.$dom_webkitVisibilityState;
9818 } 9818 }
9819 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9819 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9820 // for details. All rights reserved. Use of this source code is governed by a 9820 // for details. All rights reserved. Use of this source code is governed by a
9821 // BSD-style license that can be found in the LICENSE file. 9821 // BSD-style license that can be found in the LICENSE file.
9822 9822
9823 9823
9824 /// @domName HTMLHtmlElement 9824 /// @domName HTMLHtmlElement; @docsEditable true
9825 class HtmlElement extends Element implements Element native "*HTMLHtmlElement" { 9825 class HtmlElement extends Element implements Element native "*HTMLHtmlElement" {
9826 9826
9827 factory HtmlElement() => document.$dom_createElement("html"); 9827 factory HtmlElement() => document.$dom_createElement("html");
9828 } 9828 }
9829 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9829 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9830 // for details. All rights reserved. Use of this source code is governed by a 9830 // for details. All rights reserved. Use of this source code is governed by a
9831 // BSD-style license that can be found in the LICENSE file. 9831 // BSD-style license that can be found in the LICENSE file.
9832 9832
9833 9833
9834 class HttpRequest extends EventTarget native "*XMLHttpRequest" { 9834 class HttpRequest extends EventTarget native "*XMLHttpRequest" {
9835 factory HttpRequest.get(String url, onSuccess(HttpRequest request)) => 9835 factory HttpRequest.get(String url, onSuccess(HttpRequest request)) =>
9836 _HttpRequestFactoryProvider.createHttpRequest_get(url, onSuccess); 9836 _HttpRequestFactoryProvider.createHttpRequest_get(url, onSuccess);
9837 9837
9838 factory HttpRequest.getWithCredentials(String url, onSuccess(HttpRequest reque st)) => 9838 factory HttpRequest.getWithCredentials(String url, onSuccess(HttpRequest reque st)) =>
9839 _HttpRequestFactoryProvider.createHttpRequest_getWithCredentials(url, onSu ccess); 9839 _HttpRequestFactoryProvider.createHttpRequest_getWithCredentials(url, onSu ccess);
9840 9840
9841 9841
9842 factory HttpRequest() => _HttpRequestFactoryProvider.createHttpRequest(); 9842 factory HttpRequest() => _HttpRequestFactoryProvider.createHttpRequest();
9843 9843
9844 /** 9844 /**
9845 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 9845 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent; @docsEditable true
9846 */ 9846 */
9847 HttpRequestEvents get on => 9847 HttpRequestEvents get on =>
9848 new HttpRequestEvents(this); 9848 new HttpRequestEvents(this);
9849 9849
9850 static const int DONE = 4; 9850 static const int DONE = 4;
9851 9851
9852 static const int HEADERS_RECEIVED = 2; 9852 static const int HEADERS_RECEIVED = 2;
9853 9853
9854 static const int LOADING = 3; 9854 static const int LOADING = 3;
9855 9855
9856 static const int OPENED = 1; 9856 static const int OPENED = 1;
9857 9857
9858 static const int UNSENT = 0; 9858 static const int UNSENT = 0;
9859 9859
9860 /** @domName XMLHttpRequest.readyState */ 9860 /** @domName XMLHttpRequest.readyState; @docsEditable true */
9861 final int readyState; 9861 final int readyState;
9862 9862
9863 /** @domName XMLHttpRequest.response */ 9863 /** @domName XMLHttpRequest.response; @docsEditable true */
9864 @Creates('ArrayBuffer|Blob|Document|=Object|=List|String|num') 9864 @Creates('ArrayBuffer|Blob|Document|=Object|=List|String|num')
9865 final Object response; 9865 final Object response;
9866 9866
9867 /** @domName XMLHttpRequest.responseText */ 9867 /** @domName XMLHttpRequest.responseText; @docsEditable true */
9868 final String responseText; 9868 final String responseText;
9869 9869
9870 /** @domName XMLHttpRequest.responseType */ 9870 /** @domName XMLHttpRequest.responseType; @docsEditable true */
9871 String responseType; 9871 String responseType;
9872 9872
9873 /** @domName XMLHttpRequest.responseXML */ 9873 /** @domName XMLHttpRequest.responseXML; @docsEditable true */
9874 final Document responseXML; 9874 final Document responseXML;
9875 9875
9876 /** @domName XMLHttpRequest.status */ 9876 /** @domName XMLHttpRequest.status; @docsEditable true */
9877 final int status; 9877 final int status;
9878 9878
9879 /** @domName XMLHttpRequest.statusText */ 9879 /** @domName XMLHttpRequest.statusText; @docsEditable true */
9880 final String statusText; 9880 final String statusText;
9881 9881
9882 /** @domName XMLHttpRequest.upload */ 9882 /** @domName XMLHttpRequest.upload; @docsEditable true */
9883 final HttpRequestUpload upload; 9883 final HttpRequestUpload upload;
9884 9884
9885 /** @domName XMLHttpRequest.withCredentials */ 9885 /** @domName XMLHttpRequest.withCredentials; @docsEditable true */
9886 bool withCredentials; 9886 bool withCredentials;
9887 9887
9888 /** @domName XMLHttpRequest.abort */ 9888 /** @domName XMLHttpRequest.abort; @docsEditable true */
9889 void abort() native; 9889 void abort() native;
9890 9890
9891 /** @domName XMLHttpRequest.addEventListener */ 9891 /** @domName XMLHttpRequest.addEventListener; @docsEditable true */
9892 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 9892 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
9893 9893
9894 /** @domName XMLHttpRequest.dispatchEvent */ 9894 /** @domName XMLHttpRequest.dispatchEvent; @docsEditable true */
9895 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; 9895 bool $dom_dispatchEvent(Event evt) native "dispatchEvent";
9896 9896
9897 /** @domName XMLHttpRequest.getAllResponseHeaders */ 9897 /** @domName XMLHttpRequest.getAllResponseHeaders; @docsEditable true */
9898 String getAllResponseHeaders() native; 9898 String getAllResponseHeaders() native;
9899 9899
9900 /** @domName XMLHttpRequest.getResponseHeader */ 9900 /** @domName XMLHttpRequest.getResponseHeader; @docsEditable true */
9901 String getResponseHeader(String header) native; 9901 String getResponseHeader(String header) native;
9902 9902
9903 /** @domName XMLHttpRequest.open */ 9903 /** @domName XMLHttpRequest.open; @docsEditable true */
9904 void open(String method, String url, [bool async, String user, String password ]) native; 9904 void open(String method, String url, [bool async, String user, String password ]) native;
9905 9905
9906 /** @domName XMLHttpRequest.overrideMimeType */ 9906 /** @domName XMLHttpRequest.overrideMimeType; @docsEditable true */
9907 void overrideMimeType(String override) native; 9907 void overrideMimeType(String override) native;
9908 9908
9909 /** @domName XMLHttpRequest.removeEventListener */ 9909 /** @domName XMLHttpRequest.removeEventListener; @docsEditable true */
9910 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 9910 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
9911 9911
9912 /** @domName XMLHttpRequest.send */ 9912 /** @domName XMLHttpRequest.send; @docsEditable true */
9913 void send([data]) native; 9913 void send([data]) native;
9914 9914
9915 /** @domName XMLHttpRequest.setRequestHeader */ 9915 /** @domName XMLHttpRequest.setRequestHeader; @docsEditable true */
9916 void setRequestHeader(String header, String value) native; 9916 void setRequestHeader(String header, String value) native;
9917 9917
9918 } 9918 }
9919 9919
9920 class HttpRequestEvents extends Events { 9920 class HttpRequestEvents extends Events {
9921 HttpRequestEvents(EventTarget _ptr) : super(_ptr); 9921 HttpRequestEvents(EventTarget _ptr) : super(_ptr);
9922 9922
9923 EventListenerList get abort => this['abort']; 9923 EventListenerList get abort => this['abort'];
9924 9924
9925 EventListenerList get error => this['error']; 9925 EventListenerList get error => this['error'];
9926 9926
9927 EventListenerList get load => this['load']; 9927 EventListenerList get load => this['load'];
9928 9928
9929 EventListenerList get loadEnd => this['loadend']; 9929 EventListenerList get loadEnd => this['loadend'];
9930 9930
9931 EventListenerList get loadStart => this['loadstart']; 9931 EventListenerList get loadStart => this['loadstart'];
9932 9932
9933 EventListenerList get progress => this['progress']; 9933 EventListenerList get progress => this['progress'];
9934 9934
9935 EventListenerList get readyStateChange => this['readystatechange']; 9935 EventListenerList get readyStateChange => this['readystatechange'];
9936 } 9936 }
9937 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9937 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9938 // for details. All rights reserved. Use of this source code is governed by a 9938 // for details. All rights reserved. Use of this source code is governed by a
9939 // BSD-style license that can be found in the LICENSE file. 9939 // BSD-style license that can be found in the LICENSE file.
9940 9940
9941 9941
9942 /// @domName XMLHttpRequestException 9942 /// @domName XMLHttpRequestException; @docsEditable true
9943 class HttpRequestException native "*XMLHttpRequestException" { 9943 class HttpRequestException native "*XMLHttpRequestException" {
9944 9944
9945 static const int ABORT_ERR = 102; 9945 static const int ABORT_ERR = 102;
9946 9946
9947 static const int NETWORK_ERR = 101; 9947 static const int NETWORK_ERR = 101;
9948 9948
9949 /** @domName XMLHttpRequestException.code */ 9949 /** @domName XMLHttpRequestException.code; @docsEditable true */
9950 final int code; 9950 final int code;
9951 9951
9952 /** @domName XMLHttpRequestException.message */ 9952 /** @domName XMLHttpRequestException.message; @docsEditable true */
9953 final String message; 9953 final String message;
9954 9954
9955 /** @domName XMLHttpRequestException.name */ 9955 /** @domName XMLHttpRequestException.name; @docsEditable true */
9956 final String name; 9956 final String name;
9957 9957
9958 /** @domName XMLHttpRequestException.toString */ 9958 /** @domName XMLHttpRequestException.toString; @docsEditable true */
9959 String toString() native; 9959 String toString() native;
9960 } 9960 }
9961 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9961 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9962 // for details. All rights reserved. Use of this source code is governed by a 9962 // for details. All rights reserved. Use of this source code is governed by a
9963 // BSD-style license that can be found in the LICENSE file. 9963 // BSD-style license that can be found in the LICENSE file.
9964 9964
9965 9965
9966 /// @domName XMLHttpRequestProgressEvent 9966 /// @domName XMLHttpRequestProgressEvent; @docsEditable true
9967 class HttpRequestProgressEvent extends ProgressEvent native "*XMLHttpRequestProg ressEvent" { 9967 class HttpRequestProgressEvent extends ProgressEvent native "*XMLHttpRequestProg ressEvent" {
9968 9968
9969 /** @domName XMLHttpRequestProgressEvent.position */ 9969 /** @domName XMLHttpRequestProgressEvent.position; @docsEditable true */
9970 final int position; 9970 final int position;
9971 9971
9972 /** @domName XMLHttpRequestProgressEvent.totalSize */ 9972 /** @domName XMLHttpRequestProgressEvent.totalSize; @docsEditable true */
9973 final int totalSize; 9973 final int totalSize;
9974 } 9974 }
9975 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9975 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9976 // for details. All rights reserved. Use of this source code is governed by a 9976 // for details. All rights reserved. Use of this source code is governed by a
9977 // BSD-style license that can be found in the LICENSE file. 9977 // BSD-style license that can be found in the LICENSE file.
9978 9978
9979 9979
9980 /// @domName XMLHttpRequestUpload 9980 /// @domName XMLHttpRequestUpload; @docsEditable true
9981 class HttpRequestUpload extends EventTarget native "*XMLHttpRequestUpload" { 9981 class HttpRequestUpload extends EventTarget native "*XMLHttpRequestUpload" {
9982 9982
9983 /** 9983 /**
9984 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 9984 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent; @docsEditable true
9985 */ 9985 */
9986 HttpRequestUploadEvents get on => 9986 HttpRequestUploadEvents get on =>
9987 new HttpRequestUploadEvents(this); 9987 new HttpRequestUploadEvents(this);
9988 9988
9989 /** @domName XMLHttpRequestUpload.addEventListener */ 9989 /** @domName XMLHttpRequestUpload.addEventListener; @docsEditable true */
9990 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 9990 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
9991 9991
9992 /** @domName XMLHttpRequestUpload.dispatchEvent */ 9992 /** @domName XMLHttpRequestUpload.dispatchEvent; @docsEditable true */
9993 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; 9993 bool $dom_dispatchEvent(Event evt) native "dispatchEvent";
9994 9994
9995 /** @domName XMLHttpRequestUpload.removeEventListener */ 9995 /** @domName XMLHttpRequestUpload.removeEventListener; @docsEditable true */
9996 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 9996 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
9997 } 9997 }
9998 9998
9999 class HttpRequestUploadEvents extends Events { 9999 class HttpRequestUploadEvents extends Events {
10000 HttpRequestUploadEvents(EventTarget _ptr) : super(_ptr); 10000 HttpRequestUploadEvents(EventTarget _ptr) : super(_ptr);
10001 10001
10002 EventListenerList get abort => this['abort']; 10002 EventListenerList get abort => this['abort'];
10003 10003
10004 EventListenerList get error => this['error']; 10004 EventListenerList get error => this['error'];
10005 10005
10006 EventListenerList get load => this['load']; 10006 EventListenerList get load => this['load'];
10007 10007
10008 EventListenerList get loadEnd => this['loadend']; 10008 EventListenerList get loadEnd => this['loadend'];
10009 10009
10010 EventListenerList get loadStart => this['loadstart']; 10010 EventListenerList get loadStart => this['loadstart'];
10011 10011
10012 EventListenerList get progress => this['progress']; 10012 EventListenerList get progress => this['progress'];
10013 } 10013 }
10014 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10014 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10015 // for details. All rights reserved. Use of this source code is governed by a 10015 // for details. All rights reserved. Use of this source code is governed by a
10016 // BSD-style license that can be found in the LICENSE file. 10016 // BSD-style license that can be found in the LICENSE file.
10017 10017
10018 10018
10019 /// @domName IDBAny 10019 /// @domName IDBAny; @docsEditable true
10020 class IDBAny native "*IDBAny" { 10020 class IDBAny native "*IDBAny" {
10021 } 10021 }
10022 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10022 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10023 // for details. All rights reserved. Use of this source code is governed by a 10023 // for details. All rights reserved. Use of this source code is governed by a
10024 // BSD-style license that can be found in the LICENSE file. 10024 // BSD-style license that can be found in the LICENSE file.
10025 10025
10026 10026
10027 /// @domName IDBCursor 10027 /// @domName IDBCursor; @docsEditable true
10028 class IDBCursor native "*IDBCursor" { 10028 class IDBCursor native "*IDBCursor" {
10029 10029
10030 static const int NEXT = 0; 10030 static const int NEXT = 0;
10031 10031
10032 static const int NEXT_NO_DUPLICATE = 1; 10032 static const int NEXT_NO_DUPLICATE = 1;
10033 10033
10034 static const int PREV = 2; 10034 static const int PREV = 2;
10035 10035
10036 static const int PREV_NO_DUPLICATE = 3; 10036 static const int PREV_NO_DUPLICATE = 3;
10037 10037
10038 /** @domName IDBCursor.direction */ 10038 /** @domName IDBCursor.direction; @docsEditable true */
10039 final String direction; 10039 final String direction;
10040 10040
10041 /** @domName IDBCursor.key */ 10041 /** @domName IDBCursor.key; @docsEditable true */
10042 @_annotation_Creates_IDBKey @_annotation_Returns_IDBKey 10042 @_annotation_Creates_IDBKey @_annotation_Returns_IDBKey
10043 final Object key; 10043 final Object key;
10044 10044
10045 /** @domName IDBCursor.primaryKey */ 10045 /** @domName IDBCursor.primaryKey; @docsEditable true */
10046 final Object primaryKey; 10046 final Object primaryKey;
10047 10047
10048 /** @domName IDBCursor.source */ 10048 /** @domName IDBCursor.source; @docsEditable true */
10049 final dynamic source; 10049 final dynamic source;
10050 10050
10051 /** @domName IDBCursor.advance */ 10051 /** @domName IDBCursor.advance; @docsEditable true */
10052 void advance(int count) native; 10052 void advance(int count) native;
10053 10053
10054 /** @domName IDBCursor.continueFunction */ 10054 /** @domName IDBCursor.continueFunction; @docsEditable true */
10055 void continueFunction([/*IDBKey*/ key]) { 10055 void continueFunction([/*IDBKey*/ key]) {
10056 if (?key) { 10056 if (?key) {
10057 var key_1 = _convertDartToNative_IDBKey(key); 10057 var key_1 = _convertDartToNative_IDBKey(key);
10058 _continueFunction_1(key_1); 10058 _continueFunction_1(key_1);
10059 return; 10059 return;
10060 } 10060 }
10061 _continueFunction_2(); 10061 _continueFunction_2();
10062 return; 10062 return;
10063 } 10063 }
10064 void _continueFunction_1(key) native "continue"; 10064 void _continueFunction_1(key) native "continue";
10065 void _continueFunction_2() native "continue"; 10065 void _continueFunction_2() native "continue";
10066 10066
10067 /** @domName IDBCursor.delete */ 10067 /** @domName IDBCursor.delete; @docsEditable true */
10068 IDBRequest delete() native; 10068 IDBRequest delete() native;
10069 10069
10070 /** @domName IDBCursor.update */ 10070 /** @domName IDBCursor.update; @docsEditable true */
10071 IDBRequest update(/*any*/ value) { 10071 IDBRequest update(/*any*/ value) {
10072 var value_1 = _convertDartToNative_SerializedScriptValue(value); 10072 var value_1 = _convertDartToNative_SerializedScriptValue(value);
10073 return _update_1(value_1); 10073 return _update_1(value_1);
10074 } 10074 }
10075 IDBRequest _update_1(value) native "update"; 10075 IDBRequest _update_1(value) native "update";
10076 } 10076 }
10077 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10077 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10078 // for details. All rights reserved. Use of this source code is governed by a 10078 // for details. All rights reserved. Use of this source code is governed by a
10079 // BSD-style license that can be found in the LICENSE file. 10079 // BSD-style license that can be found in the LICENSE file.
10080 10080
10081 10081
10082 /// @domName IDBCursorWithValue 10082 /// @domName IDBCursorWithValue; @docsEditable true
10083 class IDBCursorWithValue extends IDBCursor native "*IDBCursorWithValue" { 10083 class IDBCursorWithValue extends IDBCursor native "*IDBCursorWithValue" {
10084 10084
10085 /** @domName IDBCursorWithValue.value */ 10085 /** @domName IDBCursorWithValue.value; @docsEditable true */
10086 @_annotation_Creates_SerializedScriptValue @_annotation_Returns_SerializedScri ptValue 10086 @_annotation_Creates_SerializedScriptValue @_annotation_Returns_SerializedScri ptValue
10087 final Object value; 10087 final Object value;
10088 } 10088 }
10089 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10089 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10090 // for details. All rights reserved. Use of this source code is governed by a 10090 // for details. All rights reserved. Use of this source code is governed by a
10091 // BSD-style license that can be found in the LICENSE file. 10091 // BSD-style license that can be found in the LICENSE file.
10092 10092
10093 10093
10094 class IDBDatabase extends EventTarget native "*IDBDatabase" { 10094 class IDBDatabase extends EventTarget native "*IDBDatabase" {
10095 10095
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
10129 return db._transaction(stores, intMode); 10129 return db._transaction(stores, intMode);
10130 } 10130 }
10131 10131
10132 IDBTransaction _transaction(stores, mode) native 'transaction'; 10132 IDBTransaction _transaction(stores, mode) native 'transaction';
10133 10133
10134 static bool _hasNumericMode(txn) => 10134 static bool _hasNumericMode(txn) =>
10135 JS('bool', 'typeof(#.mode) === "number"', txn); 10135 JS('bool', 'typeof(#.mode) === "number"', txn);
10136 10136
10137 10137
10138 /** 10138 /**
10139 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 10139 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent; @docsEditable true
10140 */ 10140 */
10141 IDBDatabaseEvents get on => 10141 IDBDatabaseEvents get on =>
10142 new IDBDatabaseEvents(this); 10142 new IDBDatabaseEvents(this);
10143 10143
10144 /** @domName IDBDatabase.name */ 10144 /** @domName IDBDatabase.name; @docsEditable true */
10145 final String name; 10145 final String name;
10146 10146
10147 /** @domName IDBDatabase.objectStoreNames */ 10147 /** @domName IDBDatabase.objectStoreNames; @docsEditable true */
10148 final List<String> objectStoreNames; 10148 final List<String> objectStoreNames;
10149 10149
10150 /** @domName IDBDatabase.version */ 10150 /** @domName IDBDatabase.version; @docsEditable true */
10151 final dynamic version; 10151 final dynamic version;
10152 10152
10153 /** @domName IDBDatabase.addEventListener */ 10153 /** @domName IDBDatabase.addEventListener; @docsEditable true */
10154 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 10154 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
10155 10155
10156 /** @domName IDBDatabase.close */ 10156 /** @domName IDBDatabase.close; @docsEditable true */
10157 void close() native; 10157 void close() native;
10158 10158
10159 /** @domName IDBDatabase.createObjectStore */ 10159 /** @domName IDBDatabase.createObjectStore; @docsEditable true */
10160 IDBObjectStore createObjectStore(String name, [Map options]) { 10160 IDBObjectStore createObjectStore(String name, [Map options]) {
10161 if (?options) { 10161 if (?options) {
10162 var options_1 = _convertDartToNative_Dictionary(options); 10162 var options_1 = _convertDartToNative_Dictionary(options);
10163 return _createObjectStore_1(name, options_1); 10163 return _createObjectStore_1(name, options_1);
10164 } 10164 }
10165 return _createObjectStore_2(name); 10165 return _createObjectStore_2(name);
10166 } 10166 }
10167 IDBObjectStore _createObjectStore_1(name, options) native "createObjectStore"; 10167 IDBObjectStore _createObjectStore_1(name, options) native "createObjectStore";
10168 IDBObjectStore _createObjectStore_2(name) native "createObjectStore"; 10168 IDBObjectStore _createObjectStore_2(name) native "createObjectStore";
10169 10169
10170 /** @domName IDBDatabase.deleteObjectStore */ 10170 /** @domName IDBDatabase.deleteObjectStore; @docsEditable true */
10171 void deleteObjectStore(String name) native; 10171 void deleteObjectStore(String name) native;
10172 10172
10173 /** @domName IDBDatabase.dispatchEvent */ 10173 /** @domName IDBDatabase.dispatchEvent; @docsEditable true */
10174 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; 10174 bool $dom_dispatchEvent(Event evt) native "dispatchEvent";
10175 10175
10176 /** @domName IDBDatabase.removeEventListener */ 10176 /** @domName IDBDatabase.removeEventListener; @docsEditable true */
10177 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 10177 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
10178 10178
10179 /** @domName IDBDatabase.setVersion */ 10179 /** @domName IDBDatabase.setVersion; @docsEditable true */
10180 IDBVersionChangeRequest setVersion(String version) native; 10180 IDBVersionChangeRequest setVersion(String version) native;
10181 } 10181 }
10182 10182
10183 // TODO(sra): This should be a static member of IDBTransaction but dart2js 10183 // TODO(sra): This should be a static member of IDBTransaction but dart2js
10184 // can't handle that. Move it back after dart2js is completely done. 10184 // can't handle that. Move it back after dart2js is completely done.
10185 var _transaction_fn; // Assigned one of the static methods. 10185 var _transaction_fn; // Assigned one of the static methods.
10186 10186
10187 class IDBDatabaseEvents extends Events { 10187 class IDBDatabaseEvents extends Events {
10188 IDBDatabaseEvents(EventTarget _ptr) : super(_ptr); 10188 IDBDatabaseEvents(EventTarget _ptr) : super(_ptr);
10189 10189
10190 EventListenerList get abort => this['abort']; 10190 EventListenerList get abort => this['abort'];
10191 10191
10192 EventListenerList get error => this['error']; 10192 EventListenerList get error => this['error'];
10193 10193
10194 EventListenerList get versionChange => this['versionchange']; 10194 EventListenerList get versionChange => this['versionchange'];
10195 } 10195 }
10196 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10196 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10197 // for details. All rights reserved. Use of this source code is governed by a 10197 // for details. All rights reserved. Use of this source code is governed by a
10198 // BSD-style license that can be found in the LICENSE file. 10198 // BSD-style license that can be found in the LICENSE file.
10199 10199
10200 10200
10201 /// @domName IDBDatabaseException 10201 /// @domName IDBDatabaseException; @docsEditable true
10202 class IDBDatabaseException native "*IDBDatabaseException" { 10202 class IDBDatabaseException native "*IDBDatabaseException" {
10203 10203
10204 static const int ABORT_ERR = 20; 10204 static const int ABORT_ERR = 20;
10205 10205
10206 static const int CONSTRAINT_ERR = 4; 10206 static const int CONSTRAINT_ERR = 4;
10207 10207
10208 static const int DATA_ERR = 5; 10208 static const int DATA_ERR = 5;
10209 10209
10210 static const int NON_TRANSIENT_ERR = 2; 10210 static const int NON_TRANSIENT_ERR = 2;
10211 10211
10212 static const int NOT_ALLOWED_ERR = 6; 10212 static const int NOT_ALLOWED_ERR = 6;
10213 10213
10214 static const int NOT_FOUND_ERR = 8; 10214 static const int NOT_FOUND_ERR = 8;
10215 10215
10216 static const int NO_ERR = 0; 10216 static const int NO_ERR = 0;
10217 10217
10218 static const int QUOTA_ERR = 22; 10218 static const int QUOTA_ERR = 22;
10219 10219
10220 static const int READ_ONLY_ERR = 9; 10220 static const int READ_ONLY_ERR = 9;
10221 10221
10222 static const int TIMEOUT_ERR = 23; 10222 static const int TIMEOUT_ERR = 23;
10223 10223
10224 static const int TRANSACTION_INACTIVE_ERR = 7; 10224 static const int TRANSACTION_INACTIVE_ERR = 7;
10225 10225
10226 static const int UNKNOWN_ERR = 1; 10226 static const int UNKNOWN_ERR = 1;
10227 10227
10228 static const int VER_ERR = 12; 10228 static const int VER_ERR = 12;
10229 10229
10230 /** @domName IDBDatabaseException.code */ 10230 /** @domName IDBDatabaseException.code; @docsEditable true */
10231 final int code; 10231 final int code;
10232 10232
10233 /** @domName IDBDatabaseException.message */ 10233 /** @domName IDBDatabaseException.message; @docsEditable true */
10234 final String message; 10234 final String message;
10235 10235
10236 /** @domName IDBDatabaseException.name */ 10236 /** @domName IDBDatabaseException.name; @docsEditable true */
10237 final String name; 10237 final String name;
10238 10238
10239 /** @domName IDBDatabaseException.toString */ 10239 /** @domName IDBDatabaseException.toString; @docsEditable true */
10240 String toString() native; 10240 String toString() native;
10241 } 10241 }
10242 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10242 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10243 // for details. All rights reserved. Use of this source code is governed by a 10243 // for details. All rights reserved. Use of this source code is governed by a
10244 // BSD-style license that can be found in the LICENSE file. 10244 // BSD-style license that can be found in the LICENSE file.
10245 10245
10246 10246
10247 /// @domName IDBFactory 10247 /// @domName IDBFactory; @docsEditable true
10248 class IDBFactory native "*IDBFactory" { 10248 class IDBFactory native "*IDBFactory" {
10249 10249
10250 /** @domName IDBFactory.cmp */ 10250 /** @domName IDBFactory.cmp; @docsEditable true */
10251 int cmp(/*IDBKey*/ first, /*IDBKey*/ second) { 10251 int cmp(/*IDBKey*/ first, /*IDBKey*/ second) {
10252 var first_1 = _convertDartToNative_IDBKey(first); 10252 var first_1 = _convertDartToNative_IDBKey(first);
10253 var second_2 = _convertDartToNative_IDBKey(second); 10253 var second_2 = _convertDartToNative_IDBKey(second);
10254 return _cmp_1(first_1, second_2); 10254 return _cmp_1(first_1, second_2);
10255 } 10255 }
10256 int _cmp_1(first, second) native "cmp"; 10256 int _cmp_1(first, second) native "cmp";
10257 10257
10258 /** @domName IDBFactory.deleteDatabase */ 10258 /** @domName IDBFactory.deleteDatabase; @docsEditable true */
10259 IDBVersionChangeRequest deleteDatabase(String name) native; 10259 IDBVersionChangeRequest deleteDatabase(String name) native;
10260 10260
10261 /** @domName IDBFactory.open */ 10261 /** @domName IDBFactory.open; @docsEditable true */
10262 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBDatabase') 10262 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBDatabase')
10263 IDBOpenDBRequest open(String name, [int version]) native; 10263 IDBOpenDBRequest open(String name, [int version]) native;
10264 10264
10265 /** @domName IDBFactory.webkitGetDatabaseNames */ 10265 /** @domName IDBFactory.webkitGetDatabaseNames; @docsEditable true */
10266 IDBRequest webkitGetDatabaseNames() native; 10266 IDBRequest webkitGetDatabaseNames() native;
10267 } 10267 }
10268 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10268 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10269 // for details. All rights reserved. Use of this source code is governed by a 10269 // for details. All rights reserved. Use of this source code is governed by a
10270 // BSD-style license that can be found in the LICENSE file. 10270 // BSD-style license that can be found in the LICENSE file.
10271 10271
10272 10272
10273 /// @domName IDBIndex 10273 /// @domName IDBIndex; @docsEditable true
10274 class IDBIndex native "*IDBIndex" { 10274 class IDBIndex native "*IDBIndex" {
10275 10275
10276 /** @domName IDBIndex.keyPath */ 10276 /** @domName IDBIndex.keyPath; @docsEditable true */
10277 final dynamic keyPath; 10277 final dynamic keyPath;
10278 10278
10279 /** @domName IDBIndex.multiEntry */ 10279 /** @domName IDBIndex.multiEntry; @docsEditable true */
10280 final bool multiEntry; 10280 final bool multiEntry;
10281 10281
10282 /** @domName IDBIndex.name */ 10282 /** @domName IDBIndex.name; @docsEditable true */
10283 final String name; 10283 final String name;
10284 10284
10285 /** @domName IDBIndex.objectStore */ 10285 /** @domName IDBIndex.objectStore; @docsEditable true */
10286 final IDBObjectStore objectStore; 10286 final IDBObjectStore objectStore;
10287 10287
10288 /** @domName IDBIndex.unique */ 10288 /** @domName IDBIndex.unique; @docsEditable true */
10289 final bool unique; 10289 final bool unique;
10290 10290
10291 /** @domName IDBIndex.count */ 10291 /** @domName IDBIndex.count; @docsEditable true */
10292 IDBRequest count([key_OR_range]) { 10292 IDBRequest count([key_OR_range]) {
10293 if (!?key_OR_range) { 10293 if (!?key_OR_range) {
10294 return _count_1(); 10294 return _count_1();
10295 } 10295 }
10296 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null)) ) { 10296 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null)) ) {
10297 return _count_2(key_OR_range); 10297 return _count_2(key_OR_range);
10298 } 10298 }
10299 if (?key_OR_range) { 10299 if (?key_OR_range) {
10300 var key_1 = _convertDartToNative_IDBKey(key_OR_range); 10300 var key_1 = _convertDartToNative_IDBKey(key_OR_range);
10301 return _count_3(key_1); 10301 return _count_3(key_1);
10302 } 10302 }
10303 throw new ArgumentError("Incorrect number or type of arguments"); 10303 throw new ArgumentError("Incorrect number or type of arguments");
10304 } 10304 }
10305 IDBRequest _count_1() native "count"; 10305 IDBRequest _count_1() native "count";
10306 IDBRequest _count_2(IDBKeyRange range) native "count"; 10306 IDBRequest _count_2(IDBKeyRange range) native "count";
10307 IDBRequest _count_3(key) native "count"; 10307 IDBRequest _count_3(key) native "count";
10308 10308
10309 /** @domName IDBIndex.get */ 10309 /** @domName IDBIndex.get; @docsEditable true */
10310 IDBRequest get(key) { 10310 IDBRequest get(key) {
10311 if ((?key && (key is IDBKeyRange || key == null))) { 10311 if ((?key && (key is IDBKeyRange || key == null))) {
10312 return _get_1(key); 10312 return _get_1(key);
10313 } 10313 }
10314 if (?key) { 10314 if (?key) {
10315 var key_1 = _convertDartToNative_IDBKey(key); 10315 var key_1 = _convertDartToNative_IDBKey(key);
10316 return _get_2(key_1); 10316 return _get_2(key_1);
10317 } 10317 }
10318 throw new ArgumentError("Incorrect number or type of arguments"); 10318 throw new ArgumentError("Incorrect number or type of arguments");
10319 } 10319 }
10320 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_SerializedS criptValue 10320 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_SerializedS criptValue
10321 IDBRequest _get_1(IDBKeyRange key) native "get"; 10321 IDBRequest _get_1(IDBKeyRange key) native "get";
10322 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_SerializedS criptValue 10322 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_SerializedS criptValue
10323 IDBRequest _get_2(key) native "get"; 10323 IDBRequest _get_2(key) native "get";
10324 10324
10325 /** @domName IDBIndex.getKey */ 10325 /** @domName IDBIndex.getKey; @docsEditable true */
10326 IDBRequest getKey(key) { 10326 IDBRequest getKey(key) {
10327 if ((?key && (key is IDBKeyRange || key == null))) { 10327 if ((?key && (key is IDBKeyRange || key == null))) {
10328 return _getKey_1(key); 10328 return _getKey_1(key);
10329 } 10329 }
10330 if (?key) { 10330 if (?key) {
10331 var key_1 = _convertDartToNative_IDBKey(key); 10331 var key_1 = _convertDartToNative_IDBKey(key);
10332 return _getKey_2(key_1); 10332 return _getKey_2(key_1);
10333 } 10333 }
10334 throw new ArgumentError("Incorrect number or type of arguments"); 10334 throw new ArgumentError("Incorrect number or type of arguments");
10335 } 10335 }
10336 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_SerializedS criptValue @Creates('IDBObjectStore') 10336 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_SerializedS criptValue @Creates('IDBObjectStore')
10337 IDBRequest _getKey_1(IDBKeyRange key) native "getKey"; 10337 IDBRequest _getKey_1(IDBKeyRange key) native "getKey";
10338 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_SerializedS criptValue @Creates('IDBObjectStore') 10338 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_SerializedS criptValue @Creates('IDBObjectStore')
10339 IDBRequest _getKey_2(key) native "getKey"; 10339 IDBRequest _getKey_2(key) native "getKey";
10340 10340
10341 /** @domName IDBIndex.openCursor */ 10341 /** @domName IDBIndex.openCursor; @docsEditable true */
10342 IDBRequest openCursor([key_OR_range, String direction]) { 10342 IDBRequest openCursor([key_OR_range, String direction]) {
10343 if (!?key_OR_range && 10343 if (!?key_OR_range &&
10344 !?direction) { 10344 !?direction) {
10345 return _openCursor_1(); 10345 return _openCursor_1();
10346 } 10346 }
10347 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null)) && 10347 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null)) &&
10348 !?direction) { 10348 !?direction) {
10349 return _openCursor_2(key_OR_range); 10349 return _openCursor_2(key_OR_range);
10350 } 10350 }
10351 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null)) ) { 10351 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null)) ) {
(...skipping 14 matching lines...) Expand all
10366 IDBRequest _openCursor_1() native "openCursor"; 10366 IDBRequest _openCursor_1() native "openCursor";
10367 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') 10367 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor')
10368 IDBRequest _openCursor_2(IDBKeyRange range) native "openCursor"; 10368 IDBRequest _openCursor_2(IDBKeyRange range) native "openCursor";
10369 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') 10369 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor')
10370 IDBRequest _openCursor_3(IDBKeyRange range, direction) native "openCursor"; 10370 IDBRequest _openCursor_3(IDBKeyRange range, direction) native "openCursor";
10371 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') 10371 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor')
10372 IDBRequest _openCursor_4(key) native "openCursor"; 10372 IDBRequest _openCursor_4(key) native "openCursor";
10373 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') 10373 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor')
10374 IDBRequest _openCursor_5(key, direction) native "openCursor"; 10374 IDBRequest _openCursor_5(key, direction) native "openCursor";
10375 10375
10376 /** @domName IDBIndex.openKeyCursor */ 10376 /** @domName IDBIndex.openKeyCursor; @docsEditable true */
10377 IDBRequest openKeyCursor([key_OR_range, String direction]) { 10377 IDBRequest openKeyCursor([key_OR_range, String direction]) {
10378 if (!?key_OR_range && 10378 if (!?key_OR_range &&
10379 !?direction) { 10379 !?direction) {
10380 return _openKeyCursor_1(); 10380 return _openKeyCursor_1();
10381 } 10381 }
10382 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null)) && 10382 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null)) &&
10383 !?direction) { 10383 !?direction) {
10384 return _openKeyCursor_2(key_OR_range); 10384 return _openKeyCursor_2(key_OR_range);
10385 } 10385 }
10386 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null)) ) { 10386 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null)) ) {
(...skipping 19 matching lines...) Expand all
10406 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') 10406 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor')
10407 IDBRequest _openKeyCursor_4(key) native "openKeyCursor"; 10407 IDBRequest _openKeyCursor_4(key) native "openKeyCursor";
10408 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') 10408 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor')
10409 IDBRequest _openKeyCursor_5(key, direction) native "openKeyCursor"; 10409 IDBRequest _openKeyCursor_5(key, direction) native "openKeyCursor";
10410 } 10410 }
10411 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10411 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10412 // for details. All rights reserved. Use of this source code is governed by a 10412 // for details. All rights reserved. Use of this source code is governed by a
10413 // BSD-style license that can be found in the LICENSE file. 10413 // BSD-style license that can be found in the LICENSE file.
10414 10414
10415 10415
10416 /// @domName IDBKey 10416 /// @domName IDBKey; @docsEditable true
10417 class IDBKey native "*IDBKey" { 10417 class IDBKey native "*IDBKey" {
10418 } 10418 }
10419 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10419 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10420 // for details. All rights reserved. Use of this source code is governed by a 10420 // for details. All rights reserved. Use of this source code is governed by a
10421 // BSD-style license that can be found in the LICENSE file. 10421 // BSD-style license that can be found in the LICENSE file.
10422 10422
10423 10423
10424 class IDBKeyRange native "*IDBKeyRange" { 10424 class IDBKeyRange native "*IDBKeyRange" {
10425 /** 10425 /**
10426 * @domName IDBKeyRange.only 10426 * @domName IDBKeyRange.only
(...skipping 15 matching lines...) Expand all
10442 10442
10443 /** 10443 /**
10444 * @domName IDBKeyRange.bound 10444 * @domName IDBKeyRange.bound
10445 */ 10445 */
10446 factory IDBKeyRange.bound(/*IDBKey*/ lower, /*IDBKey*/ upper, 10446 factory IDBKeyRange.bound(/*IDBKey*/ lower, /*IDBKey*/ upper,
10447 [bool lowerOpen = false, bool upperOpen = false]) => 10447 [bool lowerOpen = false, bool upperOpen = false]) =>
10448 _IDBKeyRangeFactoryProvider.createIDBKeyRange_bound( 10448 _IDBKeyRangeFactoryProvider.createIDBKeyRange_bound(
10449 lower, upper, lowerOpen, upperOpen); 10449 lower, upper, lowerOpen, upperOpen);
10450 10450
10451 10451
10452 /** @domName IDBKeyRange.lower */ 10452 /** @domName IDBKeyRange.lower; @docsEditable true */
10453 dynamic get lower => _convertNativeToDart_IDBKey(this._lower); 10453 dynamic get lower => _convertNativeToDart_IDBKey(this._lower);
10454 dynamic get _lower => JS("dynamic", "#.lower", this); 10454 dynamic get _lower => JS("dynamic", "#.lower", this);
10455 10455
10456 /** @domName IDBKeyRange.lowerOpen */ 10456 /** @domName IDBKeyRange.lowerOpen; @docsEditable true */
10457 final bool lowerOpen; 10457 final bool lowerOpen;
10458 10458
10459 /** @domName IDBKeyRange.upper */ 10459 /** @domName IDBKeyRange.upper; @docsEditable true */
10460 dynamic get upper => _convertNativeToDart_IDBKey(this._upper); 10460 dynamic get upper => _convertNativeToDart_IDBKey(this._upper);
10461 dynamic get _upper => JS("dynamic", "#.upper", this); 10461 dynamic get _upper => JS("dynamic", "#.upper", this);
10462 10462
10463 /** @domName IDBKeyRange.upperOpen */ 10463 /** @domName IDBKeyRange.upperOpen; @docsEditable true */
10464 final bool upperOpen; 10464 final bool upperOpen;
10465 10465
10466 /** @domName IDBKeyRange.bound_ */ 10466 /** @domName IDBKeyRange.bound_; @docsEditable true */
10467 static IDBKeyRange bound_(/*IDBKey*/ lower, /*IDBKey*/ upper, [bool lowerOpen, bool upperOpen]) { 10467 static IDBKeyRange bound_(/*IDBKey*/ lower, /*IDBKey*/ upper, [bool lowerOpen, bool upperOpen]) {
10468 if (?upperOpen) { 10468 if (?upperOpen) {
10469 var lower_1 = _convertDartToNative_IDBKey(lower); 10469 var lower_1 = _convertDartToNative_IDBKey(lower);
10470 var upper_2 = _convertDartToNative_IDBKey(upper); 10470 var upper_2 = _convertDartToNative_IDBKey(upper);
10471 return _bound__1(lower_1, upper_2, lowerOpen, upperOpen); 10471 return _bound__1(lower_1, upper_2, lowerOpen, upperOpen);
10472 } 10472 }
10473 if (?lowerOpen) { 10473 if (?lowerOpen) {
10474 var lower_3 = _convertDartToNative_IDBKey(lower); 10474 var lower_3 = _convertDartToNative_IDBKey(lower);
10475 var upper_4 = _convertDartToNative_IDBKey(upper); 10475 var upper_4 = _convertDartToNative_IDBKey(upper);
10476 return _bound__2(lower_3, upper_4, lowerOpen); 10476 return _bound__2(lower_3, upper_4, lowerOpen);
10477 } 10477 }
10478 var lower_5 = _convertDartToNative_IDBKey(lower); 10478 var lower_5 = _convertDartToNative_IDBKey(lower);
10479 var upper_6 = _convertDartToNative_IDBKey(upper); 10479 var upper_6 = _convertDartToNative_IDBKey(upper);
10480 return _bound__3(lower_5, upper_6); 10480 return _bound__3(lower_5, upper_6);
10481 } 10481 }
10482 static IDBKeyRange _bound__1(lower, upper, lowerOpen, upperOpen) native "bound "; 10482 static IDBKeyRange _bound__1(lower, upper, lowerOpen, upperOpen) native "bound ";
10483 static IDBKeyRange _bound__2(lower, upper, lowerOpen) native "bound"; 10483 static IDBKeyRange _bound__2(lower, upper, lowerOpen) native "bound";
10484 static IDBKeyRange _bound__3(lower, upper) native "bound"; 10484 static IDBKeyRange _bound__3(lower, upper) native "bound";
10485 10485
10486 /** @domName IDBKeyRange.lowerBound_ */ 10486 /** @domName IDBKeyRange.lowerBound_; @docsEditable true */
10487 static IDBKeyRange lowerBound_(/*IDBKey*/ bound, [bool open]) { 10487 static IDBKeyRange lowerBound_(/*IDBKey*/ bound, [bool open]) {
10488 if (?open) { 10488 if (?open) {
10489 var bound_1 = _convertDartToNative_IDBKey(bound); 10489 var bound_1 = _convertDartToNative_IDBKey(bound);
10490 return _lowerBound__1(bound_1, open); 10490 return _lowerBound__1(bound_1, open);
10491 } 10491 }
10492 var bound_2 = _convertDartToNative_IDBKey(bound); 10492 var bound_2 = _convertDartToNative_IDBKey(bound);
10493 return _lowerBound__2(bound_2); 10493 return _lowerBound__2(bound_2);
10494 } 10494 }
10495 static IDBKeyRange _lowerBound__1(bound, open) native "lowerBound"; 10495 static IDBKeyRange _lowerBound__1(bound, open) native "lowerBound";
10496 static IDBKeyRange _lowerBound__2(bound) native "lowerBound"; 10496 static IDBKeyRange _lowerBound__2(bound) native "lowerBound";
10497 10497
10498 /** @domName IDBKeyRange.only_ */ 10498 /** @domName IDBKeyRange.only_; @docsEditable true */
10499 static IDBKeyRange only_(/*IDBKey*/ value) { 10499 static IDBKeyRange only_(/*IDBKey*/ value) {
10500 var value_1 = _convertDartToNative_IDBKey(value); 10500 var value_1 = _convertDartToNative_IDBKey(value);
10501 return _only__1(value_1); 10501 return _only__1(value_1);
10502 } 10502 }
10503 static IDBKeyRange _only__1(value) native "only"; 10503 static IDBKeyRange _only__1(value) native "only";
10504 10504
10505 /** @domName IDBKeyRange.upperBound_ */ 10505 /** @domName IDBKeyRange.upperBound_; @docsEditable true */
10506 static IDBKeyRange upperBound_(/*IDBKey*/ bound, [bool open]) { 10506 static IDBKeyRange upperBound_(/*IDBKey*/ bound, [bool open]) {
10507 if (?open) { 10507 if (?open) {
10508 var bound_1 = _convertDartToNative_IDBKey(bound); 10508 var bound_1 = _convertDartToNative_IDBKey(bound);
10509 return _upperBound__1(bound_1, open); 10509 return _upperBound__1(bound_1, open);
10510 } 10510 }
10511 var bound_2 = _convertDartToNative_IDBKey(bound); 10511 var bound_2 = _convertDartToNative_IDBKey(bound);
10512 return _upperBound__2(bound_2); 10512 return _upperBound__2(bound_2);
10513 } 10513 }
10514 static IDBKeyRange _upperBound__1(bound, open) native "upperBound"; 10514 static IDBKeyRange _upperBound__1(bound, open) native "upperBound";
10515 static IDBKeyRange _upperBound__2(bound) native "upperBound"; 10515 static IDBKeyRange _upperBound__2(bound) native "upperBound";
10516 10516
10517 } 10517 }
10518 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10518 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10519 // for details. All rights reserved. Use of this source code is governed by a 10519 // for details. All rights reserved. Use of this source code is governed by a
10520 // BSD-style license that can be found in the LICENSE file. 10520 // BSD-style license that can be found in the LICENSE file.
10521 10521
10522 10522
10523 /// @domName IDBObjectStore 10523 /// @domName IDBObjectStore; @docsEditable true
10524 class IDBObjectStore native "*IDBObjectStore" { 10524 class IDBObjectStore native "*IDBObjectStore" {
10525 10525
10526 /** @domName IDBObjectStore.autoIncrement */ 10526 /** @domName IDBObjectStore.autoIncrement; @docsEditable true */
10527 final bool autoIncrement; 10527 final bool autoIncrement;
10528 10528
10529 /** @domName IDBObjectStore.indexNames */ 10529 /** @domName IDBObjectStore.indexNames; @docsEditable true */
10530 final List<String> indexNames; 10530 final List<String> indexNames;
10531 10531
10532 /** @domName IDBObjectStore.keyPath */ 10532 /** @domName IDBObjectStore.keyPath; @docsEditable true */
10533 final dynamic keyPath; 10533 final dynamic keyPath;
10534 10534
10535 /** @domName IDBObjectStore.name */ 10535 /** @domName IDBObjectStore.name; @docsEditable true */
10536 final String name; 10536 final String name;
10537 10537
10538 /** @domName IDBObjectStore.transaction */ 10538 /** @domName IDBObjectStore.transaction; @docsEditable true */
10539 final IDBTransaction transaction; 10539 final IDBTransaction transaction;
10540 10540
10541 /** @domName IDBObjectStore.add */ 10541 /** @domName IDBObjectStore.add; @docsEditable true */
10542 IDBRequest add(/*any*/ value, [/*IDBKey*/ key]) { 10542 IDBRequest add(/*any*/ value, [/*IDBKey*/ key]) {
10543 if (?key) { 10543 if (?key) {
10544 var value_1 = _convertDartToNative_SerializedScriptValue(value); 10544 var value_1 = _convertDartToNative_SerializedScriptValue(value);
10545 var key_2 = _convertDartToNative_IDBKey(key); 10545 var key_2 = _convertDartToNative_IDBKey(key);
10546 return _add_1(value_1, key_2); 10546 return _add_1(value_1, key_2);
10547 } 10547 }
10548 var value_3 = _convertDartToNative_SerializedScriptValue(value); 10548 var value_3 = _convertDartToNative_SerializedScriptValue(value);
10549 return _add_2(value_3); 10549 return _add_2(value_3);
10550 } 10550 }
10551 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_IDBKey 10551 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_IDBKey
10552 IDBRequest _add_1(value, key) native "add"; 10552 IDBRequest _add_1(value, key) native "add";
10553 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_IDBKey 10553 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_IDBKey
10554 IDBRequest _add_2(value) native "add"; 10554 IDBRequest _add_2(value) native "add";
10555 10555
10556 /** @domName IDBObjectStore.clear */ 10556 /** @domName IDBObjectStore.clear; @docsEditable true */
10557 IDBRequest clear() native; 10557 IDBRequest clear() native;
10558 10558
10559 /** @domName IDBObjectStore.count */ 10559 /** @domName IDBObjectStore.count; @docsEditable true */
10560 IDBRequest count([key_OR_range]) { 10560 IDBRequest count([key_OR_range]) {
10561 if (!?key_OR_range) { 10561 if (!?key_OR_range) {
10562 return _count_1(); 10562 return _count_1();
10563 } 10563 }
10564 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null)) ) { 10564 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null)) ) {
10565 return _count_2(key_OR_range); 10565 return _count_2(key_OR_range);
10566 } 10566 }
10567 if (?key_OR_range) { 10567 if (?key_OR_range) {
10568 var key_1 = _convertDartToNative_IDBKey(key_OR_range); 10568 var key_1 = _convertDartToNative_IDBKey(key_OR_range);
10569 return _count_3(key_1); 10569 return _count_3(key_1);
10570 } 10570 }
10571 throw new ArgumentError("Incorrect number or type of arguments"); 10571 throw new ArgumentError("Incorrect number or type of arguments");
10572 } 10572 }
10573 IDBRequest _count_1() native "count"; 10573 IDBRequest _count_1() native "count";
10574 IDBRequest _count_2(IDBKeyRange range) native "count"; 10574 IDBRequest _count_2(IDBKeyRange range) native "count";
10575 IDBRequest _count_3(key) native "count"; 10575 IDBRequest _count_3(key) native "count";
10576 10576
10577 /** @domName IDBObjectStore.createIndex */ 10577 /** @domName IDBObjectStore.createIndex; @docsEditable true */
10578 IDBIndex createIndex(String name, keyPath, [Map options]) { 10578 IDBIndex createIndex(String name, keyPath, [Map options]) {
10579 if ((?keyPath && (keyPath is List<String> || keyPath == null)) && 10579 if ((?keyPath && (keyPath is List<String> || keyPath == null)) &&
10580 !?options) { 10580 !?options) {
10581 List keyPath_1 = _convertDartToNative_StringArray(keyPath); 10581 List keyPath_1 = _convertDartToNative_StringArray(keyPath);
10582 return _createIndex_1(name, keyPath_1); 10582 return _createIndex_1(name, keyPath_1);
10583 } 10583 }
10584 if ((?keyPath && (keyPath is List<String> || keyPath == null))) { 10584 if ((?keyPath && (keyPath is List<String> || keyPath == null))) {
10585 List keyPath_2 = _convertDartToNative_StringArray(keyPath); 10585 List keyPath_2 = _convertDartToNative_StringArray(keyPath);
10586 var options_3 = _convertDartToNative_Dictionary(options); 10586 var options_3 = _convertDartToNative_Dictionary(options);
10587 return _createIndex_2(name, keyPath_2, options_3); 10587 return _createIndex_2(name, keyPath_2, options_3);
10588 } 10588 }
10589 if ((?keyPath && (keyPath is String || keyPath == null)) && 10589 if ((?keyPath && (keyPath is String || keyPath == null)) &&
10590 !?options) { 10590 !?options) {
10591 return _createIndex_3(name, keyPath); 10591 return _createIndex_3(name, keyPath);
10592 } 10592 }
10593 if ((?keyPath && (keyPath is String || keyPath == null))) { 10593 if ((?keyPath && (keyPath is String || keyPath == null))) {
10594 var options_4 = _convertDartToNative_Dictionary(options); 10594 var options_4 = _convertDartToNative_Dictionary(options);
10595 return _createIndex_4(name, keyPath, options_4); 10595 return _createIndex_4(name, keyPath, options_4);
10596 } 10596 }
10597 throw new ArgumentError("Incorrect number or type of arguments"); 10597 throw new ArgumentError("Incorrect number or type of arguments");
10598 } 10598 }
10599 IDBIndex _createIndex_1(name, List keyPath) native "createIndex"; 10599 IDBIndex _createIndex_1(name, List keyPath) native "createIndex";
10600 IDBIndex _createIndex_2(name, List keyPath, options) native "createIndex"; 10600 IDBIndex _createIndex_2(name, List keyPath, options) native "createIndex";
10601 IDBIndex _createIndex_3(name, String keyPath) native "createIndex"; 10601 IDBIndex _createIndex_3(name, String keyPath) native "createIndex";
10602 IDBIndex _createIndex_4(name, String keyPath, options) native "createIndex"; 10602 IDBIndex _createIndex_4(name, String keyPath, options) native "createIndex";
10603 10603
10604 /** @domName IDBObjectStore.delete */ 10604 /** @domName IDBObjectStore.delete; @docsEditable true */
10605 IDBRequest delete(key_OR_keyRange) { 10605 IDBRequest delete(key_OR_keyRange) {
10606 if ((?key_OR_keyRange && (key_OR_keyRange is IDBKeyRange || key_OR_keyRange == null))) { 10606 if ((?key_OR_keyRange && (key_OR_keyRange is IDBKeyRange || key_OR_keyRange == null))) {
10607 return _delete_1(key_OR_keyRange); 10607 return _delete_1(key_OR_keyRange);
10608 } 10608 }
10609 if (?key_OR_keyRange) { 10609 if (?key_OR_keyRange) {
10610 var key_1 = _convertDartToNative_IDBKey(key_OR_keyRange); 10610 var key_1 = _convertDartToNative_IDBKey(key_OR_keyRange);
10611 return _delete_2(key_1); 10611 return _delete_2(key_1);
10612 } 10612 }
10613 throw new ArgumentError("Incorrect number or type of arguments"); 10613 throw new ArgumentError("Incorrect number or type of arguments");
10614 } 10614 }
10615 IDBRequest _delete_1(IDBKeyRange keyRange) native "delete"; 10615 IDBRequest _delete_1(IDBKeyRange keyRange) native "delete";
10616 IDBRequest _delete_2(key) native "delete"; 10616 IDBRequest _delete_2(key) native "delete";
10617 10617
10618 /** @domName IDBObjectStore.deleteIndex */ 10618 /** @domName IDBObjectStore.deleteIndex; @docsEditable true */
10619 void deleteIndex(String name) native; 10619 void deleteIndex(String name) native;
10620 10620
10621 /** @domName IDBObjectStore.getObject */ 10621 /** @domName IDBObjectStore.getObject; @docsEditable true */
10622 IDBRequest getObject(key) { 10622 IDBRequest getObject(key) {
10623 if ((?key && (key is IDBKeyRange || key == null))) { 10623 if ((?key && (key is IDBKeyRange || key == null))) {
10624 return _getObject_1(key); 10624 return _getObject_1(key);
10625 } 10625 }
10626 if (?key) { 10626 if (?key) {
10627 var key_1 = _convertDartToNative_IDBKey(key); 10627 var key_1 = _convertDartToNative_IDBKey(key);
10628 return _getObject_2(key_1); 10628 return _getObject_2(key_1);
10629 } 10629 }
10630 throw new ArgumentError("Incorrect number or type of arguments"); 10630 throw new ArgumentError("Incorrect number or type of arguments");
10631 } 10631 }
10632 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_SerializedS criptValue 10632 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_SerializedS criptValue
10633 IDBRequest _getObject_1(IDBKeyRange key) native "get"; 10633 IDBRequest _getObject_1(IDBKeyRange key) native "get";
10634 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_SerializedS criptValue 10634 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_SerializedS criptValue
10635 IDBRequest _getObject_2(key) native "get"; 10635 IDBRequest _getObject_2(key) native "get";
10636 10636
10637 /** @domName IDBObjectStore.index */ 10637 /** @domName IDBObjectStore.index; @docsEditable true */
10638 IDBIndex index(String name) native; 10638 IDBIndex index(String name) native;
10639 10639
10640 /** @domName IDBObjectStore.openCursor */ 10640 /** @domName IDBObjectStore.openCursor; @docsEditable true */
10641 IDBRequest openCursor([key_OR_range, String direction]) { 10641 IDBRequest openCursor([key_OR_range, String direction]) {
10642 if (!?key_OR_range && 10642 if (!?key_OR_range &&
10643 !?direction) { 10643 !?direction) {
10644 return _openCursor_1(); 10644 return _openCursor_1();
10645 } 10645 }
10646 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null)) && 10646 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null)) &&
10647 !?direction) { 10647 !?direction) {
10648 return _openCursor_2(key_OR_range); 10648 return _openCursor_2(key_OR_range);
10649 } 10649 }
10650 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null)) ) { 10650 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null)) ) {
(...skipping 14 matching lines...) Expand all
10665 IDBRequest _openCursor_1() native "openCursor"; 10665 IDBRequest _openCursor_1() native "openCursor";
10666 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') 10666 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor')
10667 IDBRequest _openCursor_2(IDBKeyRange range) native "openCursor"; 10667 IDBRequest _openCursor_2(IDBKeyRange range) native "openCursor";
10668 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') 10668 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor')
10669 IDBRequest _openCursor_3(IDBKeyRange range, direction) native "openCursor"; 10669 IDBRequest _openCursor_3(IDBKeyRange range, direction) native "openCursor";
10670 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') 10670 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor')
10671 IDBRequest _openCursor_4(key) native "openCursor"; 10671 IDBRequest _openCursor_4(key) native "openCursor";
10672 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') 10672 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor')
10673 IDBRequest _openCursor_5(key, direction) native "openCursor"; 10673 IDBRequest _openCursor_5(key, direction) native "openCursor";
10674 10674
10675 /** @domName IDBObjectStore.put */ 10675 /** @domName IDBObjectStore.put; @docsEditable true */
10676 IDBRequest put(/*any*/ value, [/*IDBKey*/ key]) { 10676 IDBRequest put(/*any*/ value, [/*IDBKey*/ key]) {
10677 if (?key) { 10677 if (?key) {
10678 var value_1 = _convertDartToNative_SerializedScriptValue(value); 10678 var value_1 = _convertDartToNative_SerializedScriptValue(value);
10679 var key_2 = _convertDartToNative_IDBKey(key); 10679 var key_2 = _convertDartToNative_IDBKey(key);
10680 return _put_1(value_1, key_2); 10680 return _put_1(value_1, key_2);
10681 } 10681 }
10682 var value_3 = _convertDartToNative_SerializedScriptValue(value); 10682 var value_3 = _convertDartToNative_SerializedScriptValue(value);
10683 return _put_2(value_3); 10683 return _put_2(value_3);
10684 } 10684 }
10685 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_IDBKey 10685 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_IDBKey
10686 IDBRequest _put_1(value, key) native "put"; 10686 IDBRequest _put_1(value, key) native "put";
10687 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_IDBKey 10687 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_IDBKey
10688 IDBRequest _put_2(value) native "put"; 10688 IDBRequest _put_2(value) native "put";
10689 } 10689 }
10690 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10690 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10691 // for details. All rights reserved. Use of this source code is governed by a 10691 // for details. All rights reserved. Use of this source code is governed by a
10692 // BSD-style license that can be found in the LICENSE file. 10692 // BSD-style license that can be found in the LICENSE file.
10693 10693
10694 10694
10695 /// @domName IDBOpenDBRequest 10695 /// @domName IDBOpenDBRequest; @docsEditable true
10696 class IDBOpenDBRequest extends IDBRequest implements EventTarget native "*IDBOpe nDBRequest" { 10696 class IDBOpenDBRequest extends IDBRequest implements EventTarget native "*IDBOpe nDBRequest" {
10697 10697
10698 /** 10698 /**
10699 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 10699 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent; @docsEditable true
10700 */ 10700 */
10701 IDBOpenDBRequestEvents get on => 10701 IDBOpenDBRequestEvents get on =>
10702 new IDBOpenDBRequestEvents(this); 10702 new IDBOpenDBRequestEvents(this);
10703 } 10703 }
10704 10704
10705 class IDBOpenDBRequestEvents extends IDBRequestEvents { 10705 class IDBOpenDBRequestEvents extends IDBRequestEvents {
10706 IDBOpenDBRequestEvents(EventTarget _ptr) : super(_ptr); 10706 IDBOpenDBRequestEvents(EventTarget _ptr) : super(_ptr);
10707 10707
10708 EventListenerList get blocked => this['blocked']; 10708 EventListenerList get blocked => this['blocked'];
10709 10709
10710 EventListenerList get upgradeNeeded => this['upgradeneeded']; 10710 EventListenerList get upgradeNeeded => this['upgradeneeded'];
10711 } 10711 }
10712 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10712 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10713 // for details. All rights reserved. Use of this source code is governed by a 10713 // for details. All rights reserved. Use of this source code is governed by a
10714 // BSD-style license that can be found in the LICENSE file. 10714 // BSD-style license that can be found in the LICENSE file.
10715 10715
10716 10716
10717 /// @domName IDBRequest 10717 /// @domName IDBRequest; @docsEditable true
10718 class IDBRequest extends EventTarget native "*IDBRequest" { 10718 class IDBRequest extends EventTarget native "*IDBRequest" {
10719 10719
10720 /** 10720 /**
10721 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 10721 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent; @docsEditable true
10722 */ 10722 */
10723 IDBRequestEvents get on => 10723 IDBRequestEvents get on =>
10724 new IDBRequestEvents(this); 10724 new IDBRequestEvents(this);
10725 10725
10726 /** @domName IDBRequest.error */ 10726 /** @domName IDBRequest.error; @docsEditable true */
10727 final DOMError error; 10727 final DOMError error;
10728 10728
10729 /** @domName IDBRequest.errorCode */ 10729 /** @domName IDBRequest.errorCode; @docsEditable true */
10730 final int errorCode; 10730 final int errorCode;
10731 10731
10732 /** @domName IDBRequest.readyState */ 10732 /** @domName IDBRequest.readyState; @docsEditable true */
10733 final String readyState; 10733 final String readyState;
10734 10734
10735 /** @domName IDBRequest.result */ 10735 /** @domName IDBRequest.result; @docsEditable true */
10736 dynamic get result => _convertNativeToDart_IDBAny(this._result); 10736 dynamic get result => _convertNativeToDart_IDBAny(this._result);
10737 dynamic get _result => JS("dynamic", "#.result", this); 10737 dynamic get _result => JS("dynamic", "#.result", this);
10738 10738
10739 /** @domName IDBRequest.source */ 10739 /** @domName IDBRequest.source; @docsEditable true */
10740 @Creates('Null') 10740 @Creates('Null')
10741 final dynamic source; 10741 final dynamic source;
10742 10742
10743 /** @domName IDBRequest.transaction */ 10743 /** @domName IDBRequest.transaction; @docsEditable true */
10744 final IDBTransaction transaction; 10744 final IDBTransaction transaction;
10745 10745
10746 /** @domName IDBRequest.webkitErrorMessage */ 10746 /** @domName IDBRequest.webkitErrorMessage; @docsEditable true */
10747 final String webkitErrorMessage; 10747 final String webkitErrorMessage;
10748 10748
10749 /** @domName IDBRequest.addEventListener */ 10749 /** @domName IDBRequest.addEventListener; @docsEditable true */
10750 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 10750 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
10751 10751
10752 /** @domName IDBRequest.dispatchEvent */ 10752 /** @domName IDBRequest.dispatchEvent; @docsEditable true */
10753 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; 10753 bool $dom_dispatchEvent(Event evt) native "dispatchEvent";
10754 10754
10755 /** @domName IDBRequest.removeEventListener */ 10755 /** @domName IDBRequest.removeEventListener; @docsEditable true */
10756 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 10756 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
10757 } 10757 }
10758 10758
10759 class IDBRequestEvents extends Events { 10759 class IDBRequestEvents extends Events {
10760 IDBRequestEvents(EventTarget _ptr) : super(_ptr); 10760 IDBRequestEvents(EventTarget _ptr) : super(_ptr);
10761 10761
10762 EventListenerList get error => this['error']; 10762 EventListenerList get error => this['error'];
10763 10763
10764 EventListenerList get success => this['success']; 10764 EventListenerList get success => this['success'];
10765 } 10765 }
10766 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10766 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10767 // for details. All rights reserved. Use of this source code is governed by a 10767 // for details. All rights reserved. Use of this source code is governed by a
10768 // BSD-style license that can be found in the LICENSE file. 10768 // BSD-style license that can be found in the LICENSE file.
10769 10769
10770 10770
10771 /// @domName IDBTransaction 10771 /// @domName IDBTransaction; @docsEditable true
10772 class IDBTransaction extends EventTarget native "*IDBTransaction" { 10772 class IDBTransaction extends EventTarget native "*IDBTransaction" {
10773 10773
10774 /** 10774 /**
10775 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 10775 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent; @docsEditable true
10776 */ 10776 */
10777 IDBTransactionEvents get on => 10777 IDBTransactionEvents get on =>
10778 new IDBTransactionEvents(this); 10778 new IDBTransactionEvents(this);
10779 10779
10780 static const int READ_ONLY = 0; 10780 static const int READ_ONLY = 0;
10781 10781
10782 static const int READ_WRITE = 1; 10782 static const int READ_WRITE = 1;
10783 10783
10784 static const int VERSION_CHANGE = 2; 10784 static const int VERSION_CHANGE = 2;
10785 10785
10786 /** @domName IDBTransaction.db */ 10786 /** @domName IDBTransaction.db; @docsEditable true */
10787 final IDBDatabase db; 10787 final IDBDatabase db;
10788 10788
10789 /** @domName IDBTransaction.error */ 10789 /** @domName IDBTransaction.error; @docsEditable true */
10790 final DOMError error; 10790 final DOMError error;
10791 10791
10792 /** @domName IDBTransaction.mode */ 10792 /** @domName IDBTransaction.mode; @docsEditable true */
10793 final String mode; 10793 final String mode;
10794 10794
10795 /** @domName IDBTransaction.abort */ 10795 /** @domName IDBTransaction.abort; @docsEditable true */
10796 void abort() native; 10796 void abort() native;
10797 10797
10798 /** @domName IDBTransaction.addEventListener */ 10798 /** @domName IDBTransaction.addEventListener; @docsEditable true */
10799 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 10799 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
10800 10800
10801 /** @domName IDBTransaction.dispatchEvent */ 10801 /** @domName IDBTransaction.dispatchEvent; @docsEditable true */
10802 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; 10802 bool $dom_dispatchEvent(Event evt) native "dispatchEvent";
10803 10803
10804 /** @domName IDBTransaction.objectStore */ 10804 /** @domName IDBTransaction.objectStore; @docsEditable true */
10805 IDBObjectStore objectStore(String name) native; 10805 IDBObjectStore objectStore(String name) native;
10806 10806
10807 /** @domName IDBTransaction.removeEventListener */ 10807 /** @domName IDBTransaction.removeEventListener; @docsEditable true */
10808 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 10808 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
10809 } 10809 }
10810 10810
10811 class IDBTransactionEvents extends Events { 10811 class IDBTransactionEvents extends Events {
10812 IDBTransactionEvents(EventTarget _ptr) : super(_ptr); 10812 IDBTransactionEvents(EventTarget _ptr) : super(_ptr);
10813 10813
10814 EventListenerList get abort => this['abort']; 10814 EventListenerList get abort => this['abort'];
10815 10815
10816 EventListenerList get complete => this['complete']; 10816 EventListenerList get complete => this['complete'];
10817 10817
10818 EventListenerList get error => this['error']; 10818 EventListenerList get error => this['error'];
10819 } 10819 }
10820 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10820 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10821 // for details. All rights reserved. Use of this source code is governed by a 10821 // for details. All rights reserved. Use of this source code is governed by a
10822 // BSD-style license that can be found in the LICENSE file. 10822 // BSD-style license that can be found in the LICENSE file.
10823 10823
10824 10824
10825 /// @domName IDBVersionChangeEvent 10825 /// @domName IDBVersionChangeEvent; @docsEditable true
10826 class IDBUpgradeNeededEvent extends Event native "*IDBVersionChangeEvent" { 10826 class IDBUpgradeNeededEvent extends Event native "*IDBVersionChangeEvent" {
10827 10827
10828 /** @domName IDBVersionChangeEvent.newVersion */ 10828 /** @domName IDBVersionChangeEvent.newVersion; @docsEditable true */
10829 final int newVersion; 10829 final int newVersion;
10830 10830
10831 /** @domName IDBVersionChangeEvent.oldVersion */ 10831 /** @domName IDBVersionChangeEvent.oldVersion; @docsEditable true */
10832 final int oldVersion; 10832 final int oldVersion;
10833 } 10833 }
10834 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10834 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10835 // for details. All rights reserved. Use of this source code is governed by a 10835 // for details. All rights reserved. Use of this source code is governed by a
10836 // BSD-style license that can be found in the LICENSE file. 10836 // BSD-style license that can be found in the LICENSE file.
10837 10837
10838 10838
10839 /// @domName IDBVersionChangeEvent 10839 /// @domName IDBVersionChangeEvent; @docsEditable true
10840 class IDBVersionChangeEvent extends Event native "*IDBVersionChangeEvent" { 10840 class IDBVersionChangeEvent extends Event native "*IDBVersionChangeEvent" {
10841 10841
10842 /** @domName IDBVersionChangeEvent.version */ 10842 /** @domName IDBVersionChangeEvent.version; @docsEditable true */
10843 final String version; 10843 final String version;
10844 } 10844 }
10845 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10845 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10846 // for details. All rights reserved. Use of this source code is governed by a 10846 // for details. All rights reserved. Use of this source code is governed by a
10847 // BSD-style license that can be found in the LICENSE file. 10847 // BSD-style license that can be found in the LICENSE file.
10848 10848
10849 10849
10850 /// @domName IDBVersionChangeRequest 10850 /// @domName IDBVersionChangeRequest; @docsEditable true
10851 class IDBVersionChangeRequest extends IDBRequest implements EventTarget native " *IDBVersionChangeRequest" { 10851 class IDBVersionChangeRequest extends IDBRequest implements EventTarget native " *IDBVersionChangeRequest" {
10852 10852
10853 /** 10853 /**
10854 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 10854 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent; @docsEditable true
10855 */ 10855 */
10856 IDBVersionChangeRequestEvents get on => 10856 IDBVersionChangeRequestEvents get on =>
10857 new IDBVersionChangeRequestEvents(this); 10857 new IDBVersionChangeRequestEvents(this);
10858 } 10858 }
10859 10859
10860 class IDBVersionChangeRequestEvents extends IDBRequestEvents { 10860 class IDBVersionChangeRequestEvents extends IDBRequestEvents {
10861 IDBVersionChangeRequestEvents(EventTarget _ptr) : super(_ptr); 10861 IDBVersionChangeRequestEvents(EventTarget _ptr) : super(_ptr);
10862 10862
10863 EventListenerList get blocked => this['blocked']; 10863 EventListenerList get blocked => this['blocked'];
10864 } 10864 }
10865 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10865 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10866 // for details. All rights reserved. Use of this source code is governed by a 10866 // for details. All rights reserved. Use of this source code is governed by a
10867 // BSD-style license that can be found in the LICENSE file. 10867 // BSD-style license that can be found in the LICENSE file.
10868 10868
10869 10869
10870 /// @domName HTMLIFrameElement 10870 /// @domName HTMLIFrameElement; @docsEditable true
10871 class IFrameElement extends Element implements Element native "*HTMLIFrameElemen t" { 10871 class IFrameElement extends Element implements Element native "*HTMLIFrameElemen t" {
10872 10872
10873 factory IFrameElement() => document.$dom_createElement("iframe"); 10873 factory IFrameElement() => document.$dom_createElement("iframe");
10874 10874
10875 /** @domName HTMLIFrameElement.align */ 10875 /** @domName HTMLIFrameElement.align; @docsEditable true */
10876 String align; 10876 String align;
10877 10877
10878 /** @domName HTMLIFrameElement.contentWindow */ 10878 /** @domName HTMLIFrameElement.contentWindow; @docsEditable true */
10879 Window get contentWindow => _convertNativeToDart_Window(this._contentWindow); 10879 Window get contentWindow => _convertNativeToDart_Window(this._contentWindow);
10880 dynamic get _contentWindow => JS("dynamic", "#.contentWindow", this); 10880 dynamic get _contentWindow => JS("dynamic", "#.contentWindow", this);
10881 10881
10882 /** @domName HTMLIFrameElement.frameBorder */ 10882 /** @domName HTMLIFrameElement.frameBorder; @docsEditable true */
10883 String frameBorder; 10883 String frameBorder;
10884 10884
10885 /** @domName HTMLIFrameElement.height */ 10885 /** @domName HTMLIFrameElement.height; @docsEditable true */
10886 String height; 10886 String height;
10887 10887
10888 /** @domName HTMLIFrameElement.longDesc */ 10888 /** @domName HTMLIFrameElement.longDesc; @docsEditable true */
10889 String longDesc; 10889 String longDesc;
10890 10890
10891 /** @domName HTMLIFrameElement.marginHeight */ 10891 /** @domName HTMLIFrameElement.marginHeight; @docsEditable true */
10892 String marginHeight; 10892 String marginHeight;
10893 10893
10894 /** @domName HTMLIFrameElement.marginWidth */ 10894 /** @domName HTMLIFrameElement.marginWidth; @docsEditable true */
10895 String marginWidth; 10895 String marginWidth;
10896 10896
10897 /** @domName HTMLIFrameElement.name */ 10897 /** @domName HTMLIFrameElement.name; @docsEditable true */
10898 String name; 10898 String name;
10899 10899
10900 /** @domName HTMLIFrameElement.sandbox */ 10900 /** @domName HTMLIFrameElement.sandbox; @docsEditable true */
10901 String sandbox; 10901 String sandbox;
10902 10902
10903 /** @domName HTMLIFrameElement.scrolling */ 10903 /** @domName HTMLIFrameElement.scrolling; @docsEditable true */
10904 String scrolling; 10904 String scrolling;
10905 10905
10906 /** @domName HTMLIFrameElement.src */ 10906 /** @domName HTMLIFrameElement.src; @docsEditable true */
10907 String src; 10907 String src;
10908 10908
10909 /** @domName HTMLIFrameElement.srcdoc */ 10909 /** @domName HTMLIFrameElement.srcdoc; @docsEditable true */
10910 String srcdoc; 10910 String srcdoc;
10911 10911
10912 /** @domName HTMLIFrameElement.width */ 10912 /** @domName HTMLIFrameElement.width; @docsEditable true */
10913 String width; 10913 String width;
10914 } 10914 }
10915 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10915 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10916 // for details. All rights reserved. Use of this source code is governed by a 10916 // for details. All rights reserved. Use of this source code is governed by a
10917 // BSD-style license that can be found in the LICENSE file. 10917 // BSD-style license that can be found in the LICENSE file.
10918 10918
10919 // WARNING: Do not edit - generated code. 10919 // WARNING: Do not edit - generated code.
10920 10920
10921 10921
10922 typedef void IceCallback(IceCandidate candidate, bool moreToFollow, PeerConnecti on00 source); 10922 typedef void IceCallback(IceCandidate candidate, bool moreToFollow, PeerConnecti on00 source);
10923 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10923 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10924 // for details. All rights reserved. Use of this source code is governed by a 10924 // for details. All rights reserved. Use of this source code is governed by a
10925 // BSD-style license that can be found in the LICENSE file. 10925 // BSD-style license that can be found in the LICENSE file.
10926 10926
10927 10927
10928 /// @domName IceCandidate 10928 /// @domName IceCandidate; @docsEditable true
10929 class IceCandidate native "*IceCandidate" { 10929 class IceCandidate native "*IceCandidate" {
10930 10930
10931 factory IceCandidate(String label, String candidateLine) => _IceCandidateFacto ryProvider.createIceCandidate(label, candidateLine); 10931 factory IceCandidate(String label, String candidateLine) => _IceCandidateFacto ryProvider.createIceCandidate(label, candidateLine);
10932 10932
10933 /** @domName IceCandidate.label */ 10933 /** @domName IceCandidate.label; @docsEditable true */
10934 final String label; 10934 final String label;
10935 10935
10936 /** @domName IceCandidate.toSdp */ 10936 /** @domName IceCandidate.toSdp; @docsEditable true */
10937 String toSdp() native; 10937 String toSdp() native;
10938 } 10938 }
10939 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10939 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10940 // for details. All rights reserved. Use of this source code is governed by a 10940 // for details. All rights reserved. Use of this source code is governed by a
10941 // BSD-style license that can be found in the LICENSE file. 10941 // BSD-style license that can be found in the LICENSE file.
10942 10942
10943 10943
10944 /// @domName ImageData 10944 /// @domName ImageData; @docsEditable true
10945 class ImageData native "*ImageData" { 10945 class ImageData native "*ImageData" {
10946 10946
10947 /** @domName ImageData.data */ 10947 /** @domName ImageData.data; @docsEditable true */
10948 final Uint8ClampedArray data; 10948 final Uint8ClampedArray data;
10949 10949
10950 /** @domName ImageData.height */ 10950 /** @domName ImageData.height; @docsEditable true */
10951 final int height; 10951 final int height;
10952 10952
10953 /** @domName ImageData.width */ 10953 /** @domName ImageData.width; @docsEditable true */
10954 final int width; 10954 final int width;
10955 } 10955 }
10956 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10956 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10957 // for details. All rights reserved. Use of this source code is governed by a 10957 // for details. All rights reserved. Use of this source code is governed by a
10958 // BSD-style license that can be found in the LICENSE file. 10958 // BSD-style license that can be found in the LICENSE file.
10959 10959
10960 10960
10961 /// @domName HTMLImageElement 10961 /// @domName HTMLImageElement; @docsEditable true
10962 class ImageElement extends Element implements Element native "*HTMLImageElement" { 10962 class ImageElement extends Element implements Element native "*HTMLImageElement" {
10963 10963
10964 factory ImageElement({String src, int width, int height}) { 10964 factory ImageElement({String src, int width, int height}) {
10965 var e = document.$dom_createElement("img"); 10965 var e = document.$dom_createElement("img");
10966 if (src != null) e.src = src; 10966 if (src != null) e.src = src;
10967 if (width != null) e.width = width; 10967 if (width != null) e.width = width;
10968 if (height != null) e.height = height; 10968 if (height != null) e.height = height;
10969 return e; 10969 return e;
10970 } 10970 }
10971 10971
10972 /** @domName HTMLImageElement.align */ 10972 /** @domName HTMLImageElement.align; @docsEditable true */
10973 String align; 10973 String align;
10974 10974
10975 /** @domName HTMLImageElement.alt */ 10975 /** @domName HTMLImageElement.alt; @docsEditable true */
10976 String alt; 10976 String alt;
10977 10977
10978 /** @domName HTMLImageElement.border */ 10978 /** @domName HTMLImageElement.border; @docsEditable true */
10979 String border; 10979 String border;
10980 10980
10981 /** @domName HTMLImageElement.complete */ 10981 /** @domName HTMLImageElement.complete; @docsEditable true */
10982 final bool complete; 10982 final bool complete;
10983 10983
10984 /** @domName HTMLImageElement.crossOrigin */ 10984 /** @domName HTMLImageElement.crossOrigin; @docsEditable true */
10985 String crossOrigin; 10985 String crossOrigin;
10986 10986
10987 /** @domName HTMLImageElement.height */ 10987 /** @domName HTMLImageElement.height; @docsEditable true */
10988 int height; 10988 int height;
10989 10989
10990 /** @domName HTMLImageElement.hspace */ 10990 /** @domName HTMLImageElement.hspace; @docsEditable true */
10991 int hspace; 10991 int hspace;
10992 10992
10993 /** @domName HTMLImageElement.isMap */ 10993 /** @domName HTMLImageElement.isMap; @docsEditable true */
10994 bool isMap; 10994 bool isMap;
10995 10995
10996 /** @domName HTMLImageElement.longDesc */ 10996 /** @domName HTMLImageElement.longDesc; @docsEditable true */
10997 String longDesc; 10997 String longDesc;
10998 10998
10999 /** @domName HTMLImageElement.lowsrc */ 10999 /** @domName HTMLImageElement.lowsrc; @docsEditable true */
11000 String lowsrc; 11000 String lowsrc;
11001 11001
11002 /** @domName HTMLImageElement.name */ 11002 /** @domName HTMLImageElement.name; @docsEditable true */
11003 String name; 11003 String name;
11004 11004
11005 /** @domName HTMLImageElement.naturalHeight */ 11005 /** @domName HTMLImageElement.naturalHeight; @docsEditable true */
11006 final int naturalHeight; 11006 final int naturalHeight;
11007 11007
11008 /** @domName HTMLImageElement.naturalWidth */ 11008 /** @domName HTMLImageElement.naturalWidth; @docsEditable true */
11009 final int naturalWidth; 11009 final int naturalWidth;
11010 11010
11011 /** @domName HTMLImageElement.src */ 11011 /** @domName HTMLImageElement.src; @docsEditable true */
11012 String src; 11012 String src;
11013 11013
11014 /** @domName HTMLImageElement.useMap */ 11014 /** @domName HTMLImageElement.useMap; @docsEditable true */
11015 String useMap; 11015 String useMap;
11016 11016
11017 /** @domName HTMLImageElement.vspace */ 11017 /** @domName HTMLImageElement.vspace; @docsEditable true */
11018 int vspace; 11018 int vspace;
11019 11019
11020 /** @domName HTMLImageElement.width */ 11020 /** @domName HTMLImageElement.width; @docsEditable true */
11021 int width; 11021 int width;
11022 11022
11023 /** @domName HTMLImageElement.x */ 11023 /** @domName HTMLImageElement.x; @docsEditable true */
11024 final int x; 11024 final int x;
11025 11025
11026 /** @domName HTMLImageElement.y */ 11026 /** @domName HTMLImageElement.y; @docsEditable true */
11027 final int y; 11027 final int y;
11028 } 11028 }
11029 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11029 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11030 // for details. All rights reserved. Use of this source code is governed by a 11030 // for details. All rights reserved. Use of this source code is governed by a
11031 // BSD-style license that can be found in the LICENSE file. 11031 // BSD-style license that can be found in the LICENSE file.
11032 11032
11033 11033
11034 /// @domName HTMLInputElement 11034 /// @domName HTMLInputElement; @docsEditable true
11035 class InputElement extends Element implements Element native "*HTMLInputElement" { 11035 class InputElement extends Element implements Element native "*HTMLInputElement" {
11036 11036
11037 factory InputElement({String type}) { 11037 factory InputElement({String type}) {
11038 var e = document.$dom_createElement("input"); 11038 var e = document.$dom_createElement("input");
11039 if (type != null) e.type = type; 11039 if (type != null) e.type = type;
11040 return e; 11040 return e;
11041 } 11041 }
11042 11042
11043 /** 11043 /**
11044 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 11044 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent; @docsEditable true
11045 */ 11045 */
11046 InputElementEvents get on => 11046 InputElementEvents get on =>
11047 new InputElementEvents(this); 11047 new InputElementEvents(this);
11048 11048
11049 /** @domName HTMLInputElement.accept */ 11049 /** @domName HTMLInputElement.accept; @docsEditable true */
11050 String accept; 11050 String accept;
11051 11051
11052 /** @domName HTMLInputElement.align */ 11052 /** @domName HTMLInputElement.align; @docsEditable true */
11053 String align; 11053 String align;
11054 11054
11055 /** @domName HTMLInputElement.alt */ 11055 /** @domName HTMLInputElement.alt; @docsEditable true */
11056 String alt; 11056 String alt;
11057 11057
11058 /** @domName HTMLInputElement.autocomplete */ 11058 /** @domName HTMLInputElement.autocomplete; @docsEditable true */
11059 String autocomplete; 11059 String autocomplete;
11060 11060
11061 /** @domName HTMLInputElement.autofocus */ 11061 /** @domName HTMLInputElement.autofocus; @docsEditable true */
11062 bool autofocus; 11062 bool autofocus;
11063 11063
11064 /** @domName HTMLInputElement.checked */ 11064 /** @domName HTMLInputElement.checked; @docsEditable true */
11065 bool checked; 11065 bool checked;
11066 11066
11067 /** @domName HTMLInputElement.defaultChecked */ 11067 /** @domName HTMLInputElement.defaultChecked; @docsEditable true */
11068 bool defaultChecked; 11068 bool defaultChecked;
11069 11069
11070 /** @domName HTMLInputElement.defaultValue */ 11070 /** @domName HTMLInputElement.defaultValue; @docsEditable true */
11071 String defaultValue; 11071 String defaultValue;
11072 11072
11073 /** @domName HTMLInputElement.dirName */ 11073 /** @domName HTMLInputElement.dirName; @docsEditable true */
11074 String dirName; 11074 String dirName;
11075 11075
11076 /** @domName HTMLInputElement.disabled */ 11076 /** @domName HTMLInputElement.disabled; @docsEditable true */
11077 bool disabled; 11077 bool disabled;
11078 11078
11079 /** @domName HTMLInputElement.files */ 11079 /** @domName HTMLInputElement.files; @docsEditable true */
11080 List<File> files; 11080 List<File> files;
11081 11081
11082 /** @domName HTMLInputElement.form */ 11082 /** @domName HTMLInputElement.form; @docsEditable true */
11083 final FormElement form; 11083 final FormElement form;
11084 11084
11085 /** @domName HTMLInputElement.formAction */ 11085 /** @domName HTMLInputElement.formAction; @docsEditable true */
11086 String formAction; 11086 String formAction;
11087 11087
11088 /** @domName HTMLInputElement.formEnctype */ 11088 /** @domName HTMLInputElement.formEnctype; @docsEditable true */
11089 String formEnctype; 11089 String formEnctype;
11090 11090
11091 /** @domName HTMLInputElement.formMethod */ 11091 /** @domName HTMLInputElement.formMethod; @docsEditable true */
11092 String formMethod; 11092 String formMethod;
11093 11093
11094 /** @domName HTMLInputElement.formNoValidate */ 11094 /** @domName HTMLInputElement.formNoValidate; @docsEditable true */
11095 bool formNoValidate; 11095 bool formNoValidate;
11096 11096
11097 /** @domName HTMLInputElement.formTarget */ 11097 /** @domName HTMLInputElement.formTarget; @docsEditable true */
11098 String formTarget; 11098 String formTarget;
11099 11099
11100 /** @domName HTMLInputElement.height */ 11100 /** @domName HTMLInputElement.height; @docsEditable true */
11101 int height; 11101 int height;
11102 11102
11103 /** @domName HTMLInputElement.incremental */ 11103 /** @domName HTMLInputElement.incremental; @docsEditable true */
11104 bool incremental; 11104 bool incremental;
11105 11105
11106 /** @domName HTMLInputElement.indeterminate */ 11106 /** @domName HTMLInputElement.indeterminate; @docsEditable true */
11107 bool indeterminate; 11107 bool indeterminate;
11108 11108
11109 /** @domName HTMLInputElement.labels */ 11109 /** @domName HTMLInputElement.labels; @docsEditable true */
11110 final List<Node> labels; 11110 final List<Node> labels;
11111 11111
11112 /** @domName HTMLInputElement.list */ 11112 /** @domName HTMLInputElement.list; @docsEditable true */
11113 final Element list; 11113 final Element list;
11114 11114
11115 /** @domName HTMLInputElement.max */ 11115 /** @domName HTMLInputElement.max; @docsEditable true */
11116 String max; 11116 String max;
11117 11117
11118 /** @domName HTMLInputElement.maxLength */ 11118 /** @domName HTMLInputElement.maxLength; @docsEditable true */
11119 int maxLength; 11119 int maxLength;
11120 11120
11121 /** @domName HTMLInputElement.min */ 11121 /** @domName HTMLInputElement.min; @docsEditable true */
11122 String min; 11122 String min;
11123 11123
11124 /** @domName HTMLInputElement.multiple */ 11124 /** @domName HTMLInputElement.multiple; @docsEditable true */
11125 bool multiple; 11125 bool multiple;
11126 11126
11127 /** @domName HTMLInputElement.name */ 11127 /** @domName HTMLInputElement.name; @docsEditable true */
11128 String name; 11128 String name;
11129 11129
11130 /** @domName HTMLInputElement.pattern */ 11130 /** @domName HTMLInputElement.pattern; @docsEditable true */
11131 String pattern; 11131 String pattern;
11132 11132
11133 /** @domName HTMLInputElement.placeholder */ 11133 /** @domName HTMLInputElement.placeholder; @docsEditable true */
11134 String placeholder; 11134 String placeholder;
11135 11135
11136 /** @domName HTMLInputElement.readOnly */ 11136 /** @domName HTMLInputElement.readOnly; @docsEditable true */
11137 bool readOnly; 11137 bool readOnly;
11138 11138
11139 /** @domName HTMLInputElement.required */ 11139 /** @domName HTMLInputElement.required; @docsEditable true */
11140 bool required; 11140 bool required;
11141 11141
11142 /** @domName HTMLInputElement.selectionDirection */ 11142 /** @domName HTMLInputElement.selectionDirection; @docsEditable true */
11143 String selectionDirection; 11143 String selectionDirection;
11144 11144
11145 /** @domName HTMLInputElement.selectionEnd */ 11145 /** @domName HTMLInputElement.selectionEnd; @docsEditable true */
11146 int selectionEnd; 11146 int selectionEnd;
11147 11147
11148 /** @domName HTMLInputElement.selectionStart */ 11148 /** @domName HTMLInputElement.selectionStart; @docsEditable true */
11149 int selectionStart; 11149 int selectionStart;
11150 11150
11151 /** @domName HTMLInputElement.size */ 11151 /** @domName HTMLInputElement.size; @docsEditable true */
11152 int size; 11152 int size;
11153 11153
11154 /** @domName HTMLInputElement.src */ 11154 /** @domName HTMLInputElement.src; @docsEditable true */
11155 String src; 11155 String src;
11156 11156
11157 /** @domName HTMLInputElement.step */ 11157 /** @domName HTMLInputElement.step; @docsEditable true */
11158 String step; 11158 String step;
11159 11159
11160 /** @domName HTMLInputElement.type */ 11160 /** @domName HTMLInputElement.type; @docsEditable true */
11161 String type; 11161 String type;
11162 11162
11163 /** @domName HTMLInputElement.useMap */ 11163 /** @domName HTMLInputElement.useMap; @docsEditable true */
11164 String useMap; 11164 String useMap;
11165 11165
11166 /** @domName HTMLInputElement.validationMessage */ 11166 /** @domName HTMLInputElement.validationMessage; @docsEditable true */
11167 final String validationMessage; 11167 final String validationMessage;
11168 11168
11169 /** @domName HTMLInputElement.validity */ 11169 /** @domName HTMLInputElement.validity; @docsEditable true */
11170 final ValidityState validity; 11170 final ValidityState validity;
11171 11171
11172 /** @domName HTMLInputElement.value */ 11172 /** @domName HTMLInputElement.value; @docsEditable true */
11173 String value; 11173 String value;
11174 11174
11175 /** @domName HTMLInputElement.valueAsDate */ 11175 /** @domName HTMLInputElement.valueAsDate; @docsEditable true */
11176 Date valueAsDate; 11176 Date valueAsDate;
11177 11177
11178 /** @domName HTMLInputElement.valueAsNumber */ 11178 /** @domName HTMLInputElement.valueAsNumber; @docsEditable true */
11179 num valueAsNumber; 11179 num valueAsNumber;
11180 11180
11181 /** @domName HTMLInputElement.webkitEntries */ 11181 /** @domName HTMLInputElement.webkitEntries; @docsEditable true */
11182 final List<Entry> webkitEntries; 11182 final List<Entry> webkitEntries;
11183 11183
11184 /** @domName HTMLInputElement.webkitGrammar */ 11184 /** @domName HTMLInputElement.webkitGrammar; @docsEditable true */
11185 bool webkitGrammar; 11185 bool webkitGrammar;
11186 11186
11187 /** @domName HTMLInputElement.webkitSpeech */ 11187 /** @domName HTMLInputElement.webkitSpeech; @docsEditable true */
11188 bool webkitSpeech; 11188 bool webkitSpeech;
11189 11189
11190 /** @domName HTMLInputElement.webkitdirectory */ 11190 /** @domName HTMLInputElement.webkitdirectory; @docsEditable true */
11191 bool webkitdirectory; 11191 bool webkitdirectory;
11192 11192
11193 /** @domName HTMLInputElement.width */ 11193 /** @domName HTMLInputElement.width; @docsEditable true */
11194 int width; 11194 int width;
11195 11195
11196 /** @domName HTMLInputElement.willValidate */ 11196 /** @domName HTMLInputElement.willValidate; @docsEditable true */
11197 final bool willValidate; 11197 final bool willValidate;
11198 11198
11199 /** @domName HTMLInputElement.checkValidity */ 11199 /** @domName HTMLInputElement.checkValidity; @docsEditable true */
11200 bool checkValidity() native; 11200 bool checkValidity() native;
11201 11201
11202 /** @domName HTMLInputElement.select */ 11202 /** @domName HTMLInputElement.select; @docsEditable true */
11203 void select() native; 11203 void select() native;
11204 11204
11205 /** @domName HTMLInputElement.setCustomValidity */ 11205 /** @domName HTMLInputElement.setCustomValidity; @docsEditable true */
11206 void setCustomValidity(String error) native; 11206 void setCustomValidity(String error) native;
11207 11207
11208 /** @domName HTMLInputElement.setRangeText */ 11208 /** @domName HTMLInputElement.setRangeText; @docsEditable true */
11209 void setRangeText(String replacement, [int start, int end, String selectionMod e]) native; 11209 void setRangeText(String replacement, [int start, int end, String selectionMod e]) native;
11210 11210
11211 /** @domName HTMLInputElement.setSelectionRange */ 11211 /** @domName HTMLInputElement.setSelectionRange; @docsEditable true */
11212 void setSelectionRange(int start, int end, [String direction]) native; 11212 void setSelectionRange(int start, int end, [String direction]) native;
11213 11213
11214 /** @domName HTMLInputElement.stepDown */ 11214 /** @domName HTMLInputElement.stepDown; @docsEditable true */
11215 void stepDown([int n]) native; 11215 void stepDown([int n]) native;
11216 11216
11217 /** @domName HTMLInputElement.stepUp */ 11217 /** @domName HTMLInputElement.stepUp; @docsEditable true */
11218 void stepUp([int n]) native; 11218 void stepUp([int n]) native;
11219 } 11219 }
11220 11220
11221 class InputElementEvents extends ElementEvents { 11221 class InputElementEvents extends ElementEvents {
11222 InputElementEvents(EventTarget _ptr) : super(_ptr); 11222 InputElementEvents(EventTarget _ptr) : super(_ptr);
11223 11223
11224 EventListenerList get speechChange => this['webkitSpeechChange']; 11224 EventListenerList get speechChange => this['webkitSpeechChange'];
11225 } 11225 }
11226 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11226 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11227 // for details. All rights reserved. Use of this source code is governed by a 11227 // for details. All rights reserved. Use of this source code is governed by a
11228 // BSD-style license that can be found in the LICENSE file. 11228 // BSD-style license that can be found in the LICENSE file.
11229 11229
11230 11230
11231 /// @domName Int16Array 11231 /// @domName Int16Array; @docsEditable true
11232 class Int16Array extends ArrayBufferView implements JavaScriptIndexingBehavior, List<int> native "*Int16Array" { 11232 class Int16Array extends ArrayBufferView implements JavaScriptIndexingBehavior, List<int> native "*Int16Array" {
11233 11233
11234 factory Int16Array(int length) => 11234 factory Int16Array(int length) =>
11235 _TypedArrayFactoryProvider.createInt16Array(length); 11235 _TypedArrayFactoryProvider.createInt16Array(length);
11236 11236
11237 factory Int16Array.fromList(List<int> list) => 11237 factory Int16Array.fromList(List<int> list) =>
11238 _TypedArrayFactoryProvider.createInt16Array_fromList(list); 11238 _TypedArrayFactoryProvider.createInt16Array_fromList(list);
11239 11239
11240 factory Int16Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length] ) => 11240 factory Int16Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length] ) =>
11241 _TypedArrayFactoryProvider.createInt16Array_fromBuffer(buffer, byteOffset, l ength); 11241 _TypedArrayFactoryProvider.createInt16Array_fromBuffer(buffer, byteOffset, l ength);
11242 11242
11243 static const int BYTES_PER_ELEMENT = 2; 11243 static const int BYTES_PER_ELEMENT = 2;
11244 11244
11245 /** @domName Int16Array.length */ 11245 /** @domName Int16Array.length; @docsEditable true */
11246 final int length; 11246 final int length;
11247 11247
11248 int operator[](int index) => JS("int", "#[#]", this, index); 11248 int operator[](int index) => JS("int", "#[#]", this, index);
11249 11249
11250 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<int> mixins. 11250 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<int> mixins.
11251 // int is the element type. 11251 // int is the element type.
11252 11252
11253 // From Iterable<int>: 11253 // From Iterable<int>:
11254 11254
11255 Iterator<int> iterator() { 11255 Iterator<int> iterator() {
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
11320 11320
11321 void insertRange(int start, int rangeLength, [int initialValue]) { 11321 void insertRange(int start, int rangeLength, [int initialValue]) {
11322 throw new UnsupportedError("Cannot insertRange on immutable List."); 11322 throw new UnsupportedError("Cannot insertRange on immutable List.");
11323 } 11323 }
11324 11324
11325 List<int> getRange(int start, int rangeLength) => 11325 List<int> getRange(int start, int rangeLength) =>
11326 _Lists.getRange(this, start, rangeLength, <int>[]); 11326 _Lists.getRange(this, start, rangeLength, <int>[]);
11327 11327
11328 // -- end List<int> mixins. 11328 // -- end List<int> mixins.
11329 11329
11330 /** @domName Int16Array.setElements */ 11330 /** @domName Int16Array.setElements; @docsEditable true */
11331 void setElements(Object array, [int offset]) native "set"; 11331 void setElements(Object array, [int offset]) native "set";
11332 11332
11333 /** @domName Int16Array.subarray */ 11333 /** @domName Int16Array.subarray; @docsEditable true */
11334 Int16Array subarray(int start, [int end]) native; 11334 Int16Array subarray(int start, [int end]) native;
11335 } 11335 }
11336 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11336 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11337 // for details. All rights reserved. Use of this source code is governed by a 11337 // for details. All rights reserved. Use of this source code is governed by a
11338 // BSD-style license that can be found in the LICENSE file. 11338 // BSD-style license that can be found in the LICENSE file.
11339 11339
11340 11340
11341 /// @domName Int32Array 11341 /// @domName Int32Array; @docsEditable true
11342 class Int32Array extends ArrayBufferView implements JavaScriptIndexingBehavior, List<int> native "*Int32Array" { 11342 class Int32Array extends ArrayBufferView implements JavaScriptIndexingBehavior, List<int> native "*Int32Array" {
11343 11343
11344 factory Int32Array(int length) => 11344 factory Int32Array(int length) =>
11345 _TypedArrayFactoryProvider.createInt32Array(length); 11345 _TypedArrayFactoryProvider.createInt32Array(length);
11346 11346
11347 factory Int32Array.fromList(List<int> list) => 11347 factory Int32Array.fromList(List<int> list) =>
11348 _TypedArrayFactoryProvider.createInt32Array_fromList(list); 11348 _TypedArrayFactoryProvider.createInt32Array_fromList(list);
11349 11349
11350 factory Int32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length] ) => 11350 factory Int32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length] ) =>
11351 _TypedArrayFactoryProvider.createInt32Array_fromBuffer(buffer, byteOffset, l ength); 11351 _TypedArrayFactoryProvider.createInt32Array_fromBuffer(buffer, byteOffset, l ength);
11352 11352
11353 static const int BYTES_PER_ELEMENT = 4; 11353 static const int BYTES_PER_ELEMENT = 4;
11354 11354
11355 /** @domName Int32Array.length */ 11355 /** @domName Int32Array.length; @docsEditable true */
11356 final int length; 11356 final int length;
11357 11357
11358 int operator[](int index) => JS("int", "#[#]", this, index); 11358 int operator[](int index) => JS("int", "#[#]", this, index);
11359 11359
11360 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<int> mixins. 11360 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<int> mixins.
11361 // int is the element type. 11361 // int is the element type.
11362 11362
11363 // From Iterable<int>: 11363 // From Iterable<int>:
11364 11364
11365 Iterator<int> iterator() { 11365 Iterator<int> iterator() {
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
11430 11430
11431 void insertRange(int start, int rangeLength, [int initialValue]) { 11431 void insertRange(int start, int rangeLength, [int initialValue]) {
11432 throw new UnsupportedError("Cannot insertRange on immutable List."); 11432 throw new UnsupportedError("Cannot insertRange on immutable List.");
11433 } 11433 }
11434 11434
11435 List<int> getRange(int start, int rangeLength) => 11435 List<int> getRange(int start, int rangeLength) =>
11436 _Lists.getRange(this, start, rangeLength, <int>[]); 11436 _Lists.getRange(this, start, rangeLength, <int>[]);
11437 11437
11438 // -- end List<int> mixins. 11438 // -- end List<int> mixins.
11439 11439
11440 /** @domName Int32Array.setElements */ 11440 /** @domName Int32Array.setElements; @docsEditable true */
11441 void setElements(Object array, [int offset]) native "set"; 11441 void setElements(Object array, [int offset]) native "set";
11442 11442
11443 /** @domName Int32Array.subarray */ 11443 /** @domName Int32Array.subarray; @docsEditable true */
11444 Int32Array subarray(int start, [int end]) native; 11444 Int32Array subarray(int start, [int end]) native;
11445 } 11445 }
11446 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11446 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11447 // for details. All rights reserved. Use of this source code is governed by a 11447 // for details. All rights reserved. Use of this source code is governed by a
11448 // BSD-style license that can be found in the LICENSE file. 11448 // BSD-style license that can be found in the LICENSE file.
11449 11449
11450 11450
11451 /// @domName Int8Array 11451 /// @domName Int8Array; @docsEditable true
11452 class Int8Array extends ArrayBufferView implements JavaScriptIndexingBehavior, L ist<int> native "*Int8Array" { 11452 class Int8Array extends ArrayBufferView implements JavaScriptIndexingBehavior, L ist<int> native "*Int8Array" {
11453 11453
11454 factory Int8Array(int length) => 11454 factory Int8Array(int length) =>
11455 _TypedArrayFactoryProvider.createInt8Array(length); 11455 _TypedArrayFactoryProvider.createInt8Array(length);
11456 11456
11457 factory Int8Array.fromList(List<int> list) => 11457 factory Int8Array.fromList(List<int> list) =>
11458 _TypedArrayFactoryProvider.createInt8Array_fromList(list); 11458 _TypedArrayFactoryProvider.createInt8Array_fromList(list);
11459 11459
11460 factory Int8Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) => 11460 factory Int8Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) =>
11461 _TypedArrayFactoryProvider.createInt8Array_fromBuffer(buffer, byteOffset, le ngth); 11461 _TypedArrayFactoryProvider.createInt8Array_fromBuffer(buffer, byteOffset, le ngth);
11462 11462
11463 static const int BYTES_PER_ELEMENT = 1; 11463 static const int BYTES_PER_ELEMENT = 1;
11464 11464
11465 /** @domName Int8Array.length */ 11465 /** @domName Int8Array.length; @docsEditable true */
11466 final int length; 11466 final int length;
11467 11467
11468 int operator[](int index) => JS("int", "#[#]", this, index); 11468 int operator[](int index) => JS("int", "#[#]", this, index);
11469 11469
11470 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<int> mixins. 11470 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<int> mixins.
11471 // int is the element type. 11471 // int is the element type.
11472 11472
11473 // From Iterable<int>: 11473 // From Iterable<int>:
11474 11474
11475 Iterator<int> iterator() { 11475 Iterator<int> iterator() {
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
11540 11540
11541 void insertRange(int start, int rangeLength, [int initialValue]) { 11541 void insertRange(int start, int rangeLength, [int initialValue]) {
11542 throw new UnsupportedError("Cannot insertRange on immutable List."); 11542 throw new UnsupportedError("Cannot insertRange on immutable List.");
11543 } 11543 }
11544 11544
11545 List<int> getRange(int start, int rangeLength) => 11545 List<int> getRange(int start, int rangeLength) =>
11546 _Lists.getRange(this, start, rangeLength, <int>[]); 11546 _Lists.getRange(this, start, rangeLength, <int>[]);
11547 11547
11548 // -- end List<int> mixins. 11548 // -- end List<int> mixins.
11549 11549
11550 /** @domName Int8Array.setElements */ 11550 /** @domName Int8Array.setElements; @docsEditable true */
11551 void setElements(Object array, [int offset]) native "set"; 11551 void setElements(Object array, [int offset]) native "set";
11552 11552
11553 /** @domName Int8Array.subarray */ 11553 /** @domName Int8Array.subarray; @docsEditable true */
11554 Int8Array subarray(int start, [int end]) native; 11554 Int8Array subarray(int start, [int end]) native;
11555 } 11555 }
11556 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11556 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11557 // for details. All rights reserved. Use of this source code is governed by a 11557 // for details. All rights reserved. Use of this source code is governed by a
11558 // BSD-style license that can be found in the LICENSE file. 11558 // BSD-style license that can be found in the LICENSE file.
11559 11559
11560 11560
11561 /// @domName JavaScriptCallFrame 11561 /// @domName JavaScriptCallFrame; @docsEditable true
11562 class JavaScriptCallFrame native "*JavaScriptCallFrame" { 11562 class JavaScriptCallFrame native "*JavaScriptCallFrame" {
11563 11563
11564 static const int CATCH_SCOPE = 4; 11564 static const int CATCH_SCOPE = 4;
11565 11565
11566 static const int CLOSURE_SCOPE = 3; 11566 static const int CLOSURE_SCOPE = 3;
11567 11567
11568 static const int GLOBAL_SCOPE = 0; 11568 static const int GLOBAL_SCOPE = 0;
11569 11569
11570 static const int LOCAL_SCOPE = 1; 11570 static const int LOCAL_SCOPE = 1;
11571 11571
11572 static const int WITH_SCOPE = 2; 11572 static const int WITH_SCOPE = 2;
11573 11573
11574 /** @domName JavaScriptCallFrame.caller */ 11574 /** @domName JavaScriptCallFrame.caller; @docsEditable true */
11575 final JavaScriptCallFrame caller; 11575 final JavaScriptCallFrame caller;
11576 11576
11577 /** @domName JavaScriptCallFrame.column */ 11577 /** @domName JavaScriptCallFrame.column; @docsEditable true */
11578 final int column; 11578 final int column;
11579 11579
11580 /** @domName JavaScriptCallFrame.functionName */ 11580 /** @domName JavaScriptCallFrame.functionName; @docsEditable true */
11581 final String functionName; 11581 final String functionName;
11582 11582
11583 /** @domName JavaScriptCallFrame.line */ 11583 /** @domName JavaScriptCallFrame.line; @docsEditable true */
11584 final int line; 11584 final int line;
11585 11585
11586 /** @domName JavaScriptCallFrame.scopeChain */ 11586 /** @domName JavaScriptCallFrame.scopeChain; @docsEditable true */
11587 final List scopeChain; 11587 final List scopeChain;
11588 11588
11589 /** @domName JavaScriptCallFrame.sourceID */ 11589 /** @domName JavaScriptCallFrame.sourceID; @docsEditable true */
11590 final int sourceID; 11590 final int sourceID;
11591 11591
11592 /** @domName JavaScriptCallFrame.thisObject */ 11592 /** @domName JavaScriptCallFrame.thisObject; @docsEditable true */
11593 final Object thisObject; 11593 final Object thisObject;
11594 11594
11595 /** @domName JavaScriptCallFrame.type */ 11595 /** @domName JavaScriptCallFrame.type; @docsEditable true */
11596 final String type; 11596 final String type;
11597 11597
11598 /** @domName JavaScriptCallFrame.evaluate */ 11598 /** @domName JavaScriptCallFrame.evaluate; @docsEditable true */
11599 void evaluate(String script) native; 11599 void evaluate(String script) native;
11600 11600
11601 /** @domName JavaScriptCallFrame.restart */ 11601 /** @domName JavaScriptCallFrame.restart; @docsEditable true */
11602 Object restart() native; 11602 Object restart() native;
11603 11603
11604 /** @domName JavaScriptCallFrame.scopeType */ 11604 /** @domName JavaScriptCallFrame.scopeType; @docsEditable true */
11605 int scopeType(int scopeIndex) native; 11605 int scopeType(int scopeIndex) native;
11606 } 11606 }
11607 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11607 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11608 // for details. All rights reserved. Use of this source code is governed by a 11608 // for details. All rights reserved. Use of this source code is governed by a
11609 // BSD-style license that can be found in the LICENSE file. 11609 // BSD-style license that can be found in the LICENSE file.
11610 11610
11611 11611
11612 /// @domName KeyboardEvent 11612 /// @domName KeyboardEvent; @docsEditable true
11613 class KeyboardEvent extends UIEvent native "*KeyboardEvent" { 11613 class KeyboardEvent extends UIEvent native "*KeyboardEvent" {
11614 11614
11615 /** @domName KeyboardEvent.altGraphKey */ 11615 /** @domName KeyboardEvent.altGraphKey; @docsEditable true */
11616 final bool altGraphKey; 11616 final bool altGraphKey;
11617 11617
11618 /** @domName KeyboardEvent.altKey */ 11618 /** @domName KeyboardEvent.altKey; @docsEditable true */
11619 final bool altKey; 11619 final bool altKey;
11620 11620
11621 /** @domName KeyboardEvent.ctrlKey */ 11621 /** @domName KeyboardEvent.ctrlKey; @docsEditable true */
11622 final bool ctrlKey; 11622 final bool ctrlKey;
11623 11623
11624 /** @domName KeyboardEvent.keyIdentifier */ 11624 /** @domName KeyboardEvent.keyIdentifier; @docsEditable true */
11625 final String keyIdentifier; 11625 final String keyIdentifier;
11626 11626
11627 /** @domName KeyboardEvent.keyLocation */ 11627 /** @domName KeyboardEvent.keyLocation; @docsEditable true */
11628 final int keyLocation; 11628 final int keyLocation;
11629 11629
11630 /** @domName KeyboardEvent.metaKey */ 11630 /** @domName KeyboardEvent.metaKey; @docsEditable true */
11631 final bool metaKey; 11631 final bool metaKey;
11632 11632
11633 /** @domName KeyboardEvent.shiftKey */ 11633 /** @domName KeyboardEvent.shiftKey; @docsEditable true */
11634 final bool shiftKey; 11634 final bool shiftKey;
11635 11635
11636 /** @domName KeyboardEvent.initKeyboardEvent */ 11636 /** @domName KeyboardEvent.initKeyboardEvent; @docsEditable true */
11637 void initKeyboardEvent(String type, bool canBubble, bool cancelable, LocalWind ow view, String keyIdentifier, int keyLocation, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, bool altGraphKey) native; 11637 void initKeyboardEvent(String type, bool canBubble, bool cancelable, LocalWind ow view, String keyIdentifier, int keyLocation, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, bool altGraphKey) native;
11638 } 11638 }
11639 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11639 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11640 // for details. All rights reserved. Use of this source code is governed by a 11640 // for details. All rights reserved. Use of this source code is governed by a
11641 // BSD-style license that can be found in the LICENSE file. 11641 // BSD-style license that can be found in the LICENSE file.
11642 11642
11643 11643
11644 /// @domName HTMLKeygenElement 11644 /// @domName HTMLKeygenElement; @docsEditable true
11645 class KeygenElement extends Element implements Element native "*HTMLKeygenElemen t" { 11645 class KeygenElement extends Element implements Element native "*HTMLKeygenElemen t" {
11646 11646
11647 factory KeygenElement() => document.$dom_createElement("keygen"); 11647 factory KeygenElement() => document.$dom_createElement("keygen");
11648 11648
11649 /** @domName HTMLKeygenElement.autofocus */ 11649 /** @domName HTMLKeygenElement.autofocus; @docsEditable true */
11650 bool autofocus; 11650 bool autofocus;
11651 11651
11652 /** @domName HTMLKeygenElement.challenge */ 11652 /** @domName HTMLKeygenElement.challenge; @docsEditable true */
11653 String challenge; 11653 String challenge;
11654 11654
11655 /** @domName HTMLKeygenElement.disabled */ 11655 /** @domName HTMLKeygenElement.disabled; @docsEditable true */
11656 bool disabled; 11656 bool disabled;
11657 11657
11658 /** @domName HTMLKeygenElement.form */ 11658 /** @domName HTMLKeygenElement.form; @docsEditable true */
11659 final FormElement form; 11659 final FormElement form;
11660 11660
11661 /** @domName HTMLKeygenElement.keytype */ 11661 /** @domName HTMLKeygenElement.keytype; @docsEditable true */
11662 String keytype; 11662 String keytype;
11663 11663
11664 /** @domName HTMLKeygenElement.labels */ 11664 /** @domName HTMLKeygenElement.labels; @docsEditable true */
11665 final List<Node> labels; 11665 final List<Node> labels;
11666 11666
11667 /** @domName HTMLKeygenElement.name */ 11667 /** @domName HTMLKeygenElement.name; @docsEditable true */
11668 String name; 11668 String name;
11669 11669
11670 /** @domName HTMLKeygenElement.type */ 11670 /** @domName HTMLKeygenElement.type; @docsEditable true */
11671 final String type; 11671 final String type;
11672 11672
11673 /** @domName HTMLKeygenElement.validationMessage */ 11673 /** @domName HTMLKeygenElement.validationMessage; @docsEditable true */
11674 final String validationMessage; 11674 final String validationMessage;
11675 11675
11676 /** @domName HTMLKeygenElement.validity */ 11676 /** @domName HTMLKeygenElement.validity; @docsEditable true */
11677 final ValidityState validity; 11677 final ValidityState validity;
11678 11678
11679 /** @domName HTMLKeygenElement.willValidate */ 11679 /** @domName HTMLKeygenElement.willValidate; @docsEditable true */
11680 final bool willValidate; 11680 final bool willValidate;
11681 11681
11682 /** @domName HTMLKeygenElement.checkValidity */ 11682 /** @domName HTMLKeygenElement.checkValidity; @docsEditable true */
11683 bool checkValidity() native; 11683 bool checkValidity() native;
11684 11684
11685 /** @domName HTMLKeygenElement.setCustomValidity */ 11685 /** @domName HTMLKeygenElement.setCustomValidity; @docsEditable true */
11686 void setCustomValidity(String error) native; 11686 void setCustomValidity(String error) native;
11687 } 11687 }
11688 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11688 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11689 // for details. All rights reserved. Use of this source code is governed by a 11689 // for details. All rights reserved. Use of this source code is governed by a
11690 // BSD-style license that can be found in the LICENSE file. 11690 // BSD-style license that can be found in the LICENSE file.
11691 11691
11692 11692
11693 /// @domName HTMLLIElement 11693 /// @domName HTMLLIElement; @docsEditable true
11694 class LIElement extends Element implements Element native "*HTMLLIElement" { 11694 class LIElement extends Element implements Element native "*HTMLLIElement" {
11695 11695
11696 factory LIElement() => document.$dom_createElement("li"); 11696 factory LIElement() => document.$dom_createElement("li");
11697 11697
11698 /** @domName HTMLLIElement.type */ 11698 /** @domName HTMLLIElement.type; @docsEditable true */
11699 String type; 11699 String type;
11700 11700
11701 /** @domName HTMLLIElement.value */ 11701 /** @domName HTMLLIElement.value; @docsEditable true */
11702 int value; 11702 int value;
11703 } 11703 }
11704 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11704 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11705 // for details. All rights reserved. Use of this source code is governed by a 11705 // for details. All rights reserved. Use of this source code is governed by a
11706 // BSD-style license that can be found in the LICENSE file. 11706 // BSD-style license that can be found in the LICENSE file.
11707 11707
11708 11708
11709 /// @domName HTMLLabelElement 11709 /// @domName HTMLLabelElement; @docsEditable true
11710 class LabelElement extends Element implements Element native "*HTMLLabelElement" { 11710 class LabelElement extends Element implements Element native "*HTMLLabelElement" {
11711 11711
11712 factory LabelElement() => document.$dom_createElement("label"); 11712 factory LabelElement() => document.$dom_createElement("label");
11713 11713
11714 /** @domName HTMLLabelElement.control */ 11714 /** @domName HTMLLabelElement.control; @docsEditable true */
11715 final Element control; 11715 final Element control;
11716 11716
11717 /** @domName HTMLLabelElement.form */ 11717 /** @domName HTMLLabelElement.form; @docsEditable true */
11718 final FormElement form; 11718 final FormElement form;
11719 11719
11720 /** @domName HTMLLabelElement.htmlFor */ 11720 /** @domName HTMLLabelElement.htmlFor; @docsEditable true */
11721 String htmlFor; 11721 String htmlFor;
11722 } 11722 }
11723 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11723 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11724 // for details. All rights reserved. Use of this source code is governed by a 11724 // for details. All rights reserved. Use of this source code is governed by a
11725 // BSD-style license that can be found in the LICENSE file. 11725 // BSD-style license that can be found in the LICENSE file.
11726 11726
11727 11727
11728 /// @domName HTMLLegendElement 11728 /// @domName HTMLLegendElement; @docsEditable true
11729 class LegendElement extends Element implements Element native "*HTMLLegendElemen t" { 11729 class LegendElement extends Element implements Element native "*HTMLLegendElemen t" {
11730 11730
11731 factory LegendElement() => document.$dom_createElement("legend"); 11731 factory LegendElement() => document.$dom_createElement("legend");
11732 11732
11733 /** @domName HTMLLegendElement.align */ 11733 /** @domName HTMLLegendElement.align; @docsEditable true */
11734 String align; 11734 String align;
11735 11735
11736 /** @domName HTMLLegendElement.form */ 11736 /** @domName HTMLLegendElement.form; @docsEditable true */
11737 final FormElement form; 11737 final FormElement form;
11738 } 11738 }
11739 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11739 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11740 // for details. All rights reserved. Use of this source code is governed by a 11740 // for details. All rights reserved. Use of this source code is governed by a
11741 // BSD-style license that can be found in the LICENSE file. 11741 // BSD-style license that can be found in the LICENSE file.
11742 11742
11743 11743
11744 /// @domName HTMLLinkElement 11744 /// @domName HTMLLinkElement; @docsEditable true
11745 class LinkElement extends Element implements Element native "*HTMLLinkElement" { 11745 class LinkElement extends Element implements Element native "*HTMLLinkElement" {
11746 11746
11747 factory LinkElement() => document.$dom_createElement("link"); 11747 factory LinkElement() => document.$dom_createElement("link");
11748 11748
11749 /** @domName HTMLLinkElement.charset */ 11749 /** @domName HTMLLinkElement.charset; @docsEditable true */
11750 String charset; 11750 String charset;
11751 11751
11752 /** @domName HTMLLinkElement.disabled */ 11752 /** @domName HTMLLinkElement.disabled; @docsEditable true */
11753 bool disabled; 11753 bool disabled;
11754 11754
11755 /** @domName HTMLLinkElement.href */ 11755 /** @domName HTMLLinkElement.href; @docsEditable true */
11756 String href; 11756 String href;
11757 11757
11758 /** @domName HTMLLinkElement.hreflang */ 11758 /** @domName HTMLLinkElement.hreflang; @docsEditable true */
11759 String hreflang; 11759 String hreflang;
11760 11760
11761 /** @domName HTMLLinkElement.media */ 11761 /** @domName HTMLLinkElement.media; @docsEditable true */
11762 String media; 11762 String media;
11763 11763
11764 /** @domName HTMLLinkElement.rel */ 11764 /** @domName HTMLLinkElement.rel; @docsEditable true */
11765 String rel; 11765 String rel;
11766 11766
11767 /** @domName HTMLLinkElement.rev */ 11767 /** @domName HTMLLinkElement.rev; @docsEditable true */
11768 String rev; 11768 String rev;
11769 11769
11770 /** @domName HTMLLinkElement.sheet */ 11770 /** @domName HTMLLinkElement.sheet; @docsEditable true */
11771 final StyleSheet sheet; 11771 final StyleSheet sheet;
11772 11772
11773 /** @domName HTMLLinkElement.sizes */ 11773 /** @domName HTMLLinkElement.sizes; @docsEditable true */
11774 DOMSettableTokenList sizes; 11774 DOMSettableTokenList sizes;
11775 11775
11776 /** @domName HTMLLinkElement.target */ 11776 /** @domName HTMLLinkElement.target; @docsEditable true */
11777 String target; 11777 String target;
11778 11778
11779 /** @domName HTMLLinkElement.type */ 11779 /** @domName HTMLLinkElement.type; @docsEditable true */
11780 String type; 11780 String type;
11781 } 11781 }
11782 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11782 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11783 // for details. All rights reserved. Use of this source code is governed by a 11783 // for details. All rights reserved. Use of this source code is governed by a
11784 // BSD-style license that can be found in the LICENSE file. 11784 // BSD-style license that can be found in the LICENSE file.
11785 11785
11786 11786
11787 /// @domName History 11787 /// @domName History; @docsEditable true
11788 class LocalHistory implements History native "*History" { 11788 class LocalHistory implements History native "*History" {
11789 11789
11790 /** @domName History.length */ 11790 /** @domName History.length; @docsEditable true */
11791 final int length; 11791 final int length;
11792 11792
11793 /** @domName History.state */ 11793 /** @domName History.state; @docsEditable true */
11794 final dynamic state; 11794 final dynamic state;
11795 11795
11796 /** @domName History.back */ 11796 /** @domName History.back; @docsEditable true */
11797 void back() native; 11797 void back() native;
11798 11798
11799 /** @domName History.forward */ 11799 /** @domName History.forward; @docsEditable true */
11800 void forward() native; 11800 void forward() native;
11801 11801
11802 /** @domName History.go */ 11802 /** @domName History.go; @docsEditable true */
11803 void go(int distance) native; 11803 void go(int distance) native;
11804 11804
11805 /** @domName History.pushState */ 11805 /** @domName History.pushState; @docsEditable true */
11806 void pushState(Object data, String title, [String url]) native; 11806 void pushState(Object data, String title, [String url]) native;
11807 11807
11808 /** @domName History.replaceState */ 11808 /** @domName History.replaceState; @docsEditable true */
11809 void replaceState(Object data, String title, [String url]) native; 11809 void replaceState(Object data, String title, [String url]) native;
11810 } 11810 }
11811 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11811 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11812 // for details. All rights reserved. Use of this source code is governed by a 11812 // for details. All rights reserved. Use of this source code is governed by a
11813 // BSD-style license that can be found in the LICENSE file. 11813 // BSD-style license that can be found in the LICENSE file.
11814 11814
11815 11815
11816 /// @domName Location 11816 /// @domName Location; @docsEditable true
11817 class LocalLocation implements Location native "*Location" { 11817 class LocalLocation implements Location native "*Location" {
11818 11818
11819 /** @domName Location.ancestorOrigins */ 11819 /** @domName Location.ancestorOrigins; @docsEditable true */
11820 final List<String> ancestorOrigins; 11820 final List<String> ancestorOrigins;
11821 11821
11822 /** @domName Location.hash */ 11822 /** @domName Location.hash; @docsEditable true */
11823 String hash; 11823 String hash;
11824 11824
11825 /** @domName Location.host */ 11825 /** @domName Location.host; @docsEditable true */
11826 String host; 11826 String host;
11827 11827
11828 /** @domName Location.hostname */ 11828 /** @domName Location.hostname; @docsEditable true */
11829 String hostname; 11829 String hostname;
11830 11830
11831 /** @domName Location.href */ 11831 /** @domName Location.href; @docsEditable true */
11832 String href; 11832 String href;
11833 11833
11834 /** @domName Location.origin */ 11834 /** @domName Location.origin; @docsEditable true */
11835 final String origin; 11835 final String origin;
11836 11836
11837 /** @domName Location.pathname */ 11837 /** @domName Location.pathname; @docsEditable true */
11838 String pathname; 11838 String pathname;
11839 11839
11840 /** @domName Location.port */ 11840 /** @domName Location.port; @docsEditable true */
11841 String port; 11841 String port;
11842 11842
11843 /** @domName Location.protocol */ 11843 /** @domName Location.protocol; @docsEditable true */
11844 String protocol; 11844 String protocol;
11845 11845
11846 /** @domName Location.search */ 11846 /** @domName Location.search; @docsEditable true */
11847 String search; 11847 String search;
11848 11848
11849 /** @domName Location.assign */ 11849 /** @domName Location.assign; @docsEditable true */
11850 void assign(String url) native; 11850 void assign(String url) native;
11851 11851
11852 /** @domName Location.reload */ 11852 /** @domName Location.reload; @docsEditable true */
11853 void reload() native; 11853 void reload() native;
11854 11854
11855 /** @domName Location.replace */ 11855 /** @domName Location.replace; @docsEditable true */
11856 void replace(String url) native; 11856 void replace(String url) native;
11857 11857
11858 /** @domName Location.toString */ 11858 /** @domName Location.toString; @docsEditable true */
11859 String toString() native; 11859 String toString() native;
11860 } 11860 }
11861 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11861 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11862 // for details. All rights reserved. Use of this source code is governed by a 11862 // for details. All rights reserved. Use of this source code is governed by a
11863 // BSD-style license that can be found in the LICENSE file. 11863 // BSD-style license that can be found in the LICENSE file.
11864 11864
11865 11865
11866 /// @domName LocalMediaStream 11866 /// @domName LocalMediaStream; @docsEditable true
11867 class LocalMediaStream extends MediaStream implements EventTarget native "*Local MediaStream" { 11867 class LocalMediaStream extends MediaStream implements EventTarget native "*Local MediaStream" {
11868 11868
11869 /** @domName LocalMediaStream.stop */ 11869 /** @domName LocalMediaStream.stop; @docsEditable true */
11870 void stop() native; 11870 void stop() native;
11871 } 11871 }
11872 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11872 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11873 // for details. All rights reserved. Use of this source code is governed by a 11873 // for details. All rights reserved. Use of this source code is governed by a
11874 // BSD-style license that can be found in the LICENSE file. 11874 // BSD-style license that can be found in the LICENSE file.
11875 11875
11876 11876
11877 class LocalWindow extends EventTarget implements Window native "@*DOMWindow" { 11877 class LocalWindow extends EventTarget implements Window native "@*DOMWindow" {
11878 11878
11879 Document get document => JS('Document', '#.document', this); 11879 Document get document => JS('Document', '#.document', this);
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
12010 * port may be retrieved by any isolate (or JavaScript script) 12010 * port may be retrieved by any isolate (or JavaScript script)
12011 * running in this window. 12011 * running in this window.
12012 */ 12012 */
12013 void registerPort(String name, var port) { 12013 void registerPort(String name, var port) {
12014 var serialized = _serialize(port); 12014 var serialized = _serialize(port);
12015 document.documentElement.attributes['dart-port:$name'] = JSON.stringify(seri alized); 12015 document.documentElement.attributes['dart-port:$name'] = JSON.stringify(seri alized);
12016 } 12016 }
12017 12017
12018 12018
12019 /** 12019 /**
12020 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 12020 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent; @docsEditable true
12021 */ 12021 */
12022 LocalWindowEvents get on => 12022 LocalWindowEvents get on =>
12023 new LocalWindowEvents(this); 12023 new LocalWindowEvents(this);
12024 12024
12025 static const int PERSISTENT = 1; 12025 static const int PERSISTENT = 1;
12026 12026
12027 static const int TEMPORARY = 0; 12027 static const int TEMPORARY = 0;
12028 12028
12029 /** @domName Window.applicationCache */ 12029 /** @domName Window.applicationCache; @docsEditable true */
12030 final DOMApplicationCache applicationCache; 12030 final DOMApplicationCache applicationCache;
12031 12031
12032 /** @domName Window.closed */ 12032 /** @domName Window.closed; @docsEditable true */
12033 final bool closed; 12033 final bool closed;
12034 12034
12035 /** @domName Window.console */ 12035 /** @domName Window.console; @docsEditable true */
12036 final Console console; 12036 final Console console;
12037 12037
12038 /** @domName Window.crypto */ 12038 /** @domName Window.crypto; @docsEditable true */
12039 final Crypto crypto; 12039 final Crypto crypto;
12040 12040
12041 /** @domName Window.defaultStatus */ 12041 /** @domName Window.defaultStatus; @docsEditable true */
12042 String defaultStatus; 12042 String defaultStatus;
12043 12043
12044 /** @domName Window.defaultstatus */ 12044 /** @domName Window.defaultstatus; @docsEditable true */
12045 String defaultstatus; 12045 String defaultstatus;
12046 12046
12047 /** @domName Window.devicePixelRatio */ 12047 /** @domName Window.devicePixelRatio; @docsEditable true */
12048 final num devicePixelRatio; 12048 final num devicePixelRatio;
12049 12049
12050 /** @domName Window.event */ 12050 /** @domName Window.event; @docsEditable true */
12051 final Event event; 12051 final Event event;
12052 12052
12053 /** @domName Window.history */ 12053 /** @domName Window.history; @docsEditable true */
12054 final LocalHistory history; 12054 final LocalHistory history;
12055 12055
12056 /** @domName Window.innerHeight */ 12056 /** @domName Window.innerHeight; @docsEditable true */
12057 final int innerHeight; 12057 final int innerHeight;
12058 12058
12059 /** @domName Window.innerWidth */ 12059 /** @domName Window.innerWidth; @docsEditable true */
12060 final int innerWidth; 12060 final int innerWidth;
12061 12061
12062 /** @domName Window.localStorage */ 12062 /** @domName Window.localStorage; @docsEditable true */
12063 final Storage localStorage; 12063 final Storage localStorage;
12064 12064
12065 /** @domName Window.locationbar */ 12065 /** @domName Window.locationbar; @docsEditable true */
12066 final BarInfo locationbar; 12066 final BarInfo locationbar;
12067 12067
12068 /** @domName Window.menubar */ 12068 /** @domName Window.menubar; @docsEditable true */
12069 final BarInfo menubar; 12069 final BarInfo menubar;
12070 12070
12071 /** @domName Window.name */ 12071 /** @domName Window.name; @docsEditable true */
12072 String name; 12072 String name;
12073 12073
12074 /** @domName Window.navigator */ 12074 /** @domName Window.navigator; @docsEditable true */
12075 final Navigator navigator; 12075 final Navigator navigator;
12076 12076
12077 /** @domName Window.offscreenBuffering */ 12077 /** @domName Window.offscreenBuffering; @docsEditable true */
12078 final bool offscreenBuffering; 12078 final bool offscreenBuffering;
12079 12079
12080 /** @domName Window.opener */ 12080 /** @domName Window.opener; @docsEditable true */
12081 Window get opener => _convertNativeToDart_Window(this._opener); 12081 Window get opener => _convertNativeToDart_Window(this._opener);
12082 dynamic get _opener => JS("dynamic", "#.opener", this); 12082 dynamic get _opener => JS("dynamic", "#.opener", this);
12083 12083
12084 /** @domName Window.outerHeight */ 12084 /** @domName Window.outerHeight; @docsEditable true */
12085 final int outerHeight; 12085 final int outerHeight;
12086 12086
12087 /** @domName Window.outerWidth */ 12087 /** @domName Window.outerWidth; @docsEditable true */
12088 final int outerWidth; 12088 final int outerWidth;
12089 12089
12090 /** @domName DOMWindow.pagePopupController */ 12090 /** @domName DOMWindow.pagePopupController; @docsEditable true */
12091 final PagePopupController pagePopupController; 12091 final PagePopupController pagePopupController;
12092 12092
12093 /** @domName Window.pageXOffset */ 12093 /** @domName Window.pageXOffset; @docsEditable true */
12094 final int pageXOffset; 12094 final int pageXOffset;
12095 12095
12096 /** @domName Window.pageYOffset */ 12096 /** @domName Window.pageYOffset; @docsEditable true */
12097 final int pageYOffset; 12097 final int pageYOffset;
12098 12098
12099 /** @domName Window.parent */ 12099 /** @domName Window.parent; @docsEditable true */
12100 Window get parent => _convertNativeToDart_Window(this._parent); 12100 Window get parent => _convertNativeToDart_Window(this._parent);
12101 dynamic get _parent => JS("dynamic", "#.parent", this); 12101 dynamic get _parent => JS("dynamic", "#.parent", this);
12102 12102
12103 /** @domName Window.performance */ 12103 /** @domName Window.performance; @docsEditable true */
12104 final Performance performance; 12104 final Performance performance;
12105 12105
12106 /** @domName Window.personalbar */ 12106 /** @domName Window.personalbar; @docsEditable true */
12107 final BarInfo personalbar; 12107 final BarInfo personalbar;
12108 12108
12109 /** @domName Window.screen */ 12109 /** @domName Window.screen; @docsEditable true */
12110 final Screen screen; 12110 final Screen screen;
12111 12111
12112 /** @domName Window.screenLeft */ 12112 /** @domName Window.screenLeft; @docsEditable true */
12113 final int screenLeft; 12113 final int screenLeft;
12114 12114
12115 /** @domName Window.screenTop */ 12115 /** @domName Window.screenTop; @docsEditable true */
12116 final int screenTop; 12116 final int screenTop;
12117 12117
12118 /** @domName Window.screenX */ 12118 /** @domName Window.screenX; @docsEditable true */
12119 final int screenX; 12119 final int screenX;
12120 12120
12121 /** @domName Window.screenY */ 12121 /** @domName Window.screenY; @docsEditable true */
12122 final int screenY; 12122 final int screenY;
12123 12123
12124 /** @domName Window.scrollX */ 12124 /** @domName Window.scrollX; @docsEditable true */
12125 final int scrollX; 12125 final int scrollX;
12126 12126
12127 /** @domName Window.scrollY */ 12127 /** @domName Window.scrollY; @docsEditable true */
12128 final int scrollY; 12128 final int scrollY;
12129 12129
12130 /** @domName Window.scrollbars */ 12130 /** @domName Window.scrollbars; @docsEditable true */
12131 final BarInfo scrollbars; 12131 final BarInfo scrollbars;
12132 12132
12133 /** @domName Window.self */ 12133 /** @domName Window.self; @docsEditable true */
12134 Window get self => _convertNativeToDart_Window(this._self); 12134 Window get self => _convertNativeToDart_Window(this._self);
12135 dynamic get _self => JS("dynamic", "#.self", this); 12135 dynamic get _self => JS("dynamic", "#.self", this);
12136 12136
12137 /** @domName Window.sessionStorage */ 12137 /** @domName Window.sessionStorage; @docsEditable true */
12138 final Storage sessionStorage; 12138 final Storage sessionStorage;
12139 12139
12140 /** @domName Window.status */ 12140 /** @domName Window.status; @docsEditable true */
12141 String status; 12141 String status;
12142 12142
12143 /** @domName Window.statusbar */ 12143 /** @domName Window.statusbar; @docsEditable true */
12144 final BarInfo statusbar; 12144 final BarInfo statusbar;
12145 12145
12146 /** @domName Window.styleMedia */ 12146 /** @domName Window.styleMedia; @docsEditable true */
12147 final StyleMedia styleMedia; 12147 final StyleMedia styleMedia;
12148 12148
12149 /** @domName Window.toolbar */ 12149 /** @domName Window.toolbar; @docsEditable true */
12150 final BarInfo toolbar; 12150 final BarInfo toolbar;
12151 12151
12152 /** @domName Window.top */ 12152 /** @domName Window.top; @docsEditable true */
12153 Window get top => _convertNativeToDart_Window(this._top); 12153 Window get top => _convertNativeToDart_Window(this._top);
12154 dynamic get _top => JS("dynamic", "#.top", this); 12154 dynamic get _top => JS("dynamic", "#.top", this);
12155 12155
12156 /** @domName DOMWindow.webkitIndexedDB */ 12156 /** @domName DOMWindow.webkitIndexedDB; @docsEditable true */
12157 final IDBFactory webkitIndexedDB; 12157 final IDBFactory webkitIndexedDB;
12158 12158
12159 /** @domName DOMWindow.webkitNotifications */ 12159 /** @domName DOMWindow.webkitNotifications; @docsEditable true */
12160 final NotificationCenter webkitNotifications; 12160 final NotificationCenter webkitNotifications;
12161 12161
12162 /** @domName DOMWindow.webkitStorageInfo */ 12162 /** @domName DOMWindow.webkitStorageInfo; @docsEditable true */
12163 final StorageInfo webkitStorageInfo; 12163 final StorageInfo webkitStorageInfo;
12164 12164
12165 /** @domName Window.window */ 12165 /** @domName Window.window; @docsEditable true */
12166 Window get window => _convertNativeToDart_Window(this._window); 12166 Window get window => _convertNativeToDart_Window(this._window);
12167 dynamic get _window => JS("dynamic", "#.window", this); 12167 dynamic get _window => JS("dynamic", "#.window", this);
12168 12168
12169 /** @domName Window.addEventListener */ 12169 /** @domName Window.addEventListener; @docsEditable true */
12170 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 12170 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
12171 12171
12172 /** @domName Window.alert */ 12172 /** @domName Window.alert; @docsEditable true */
12173 void alert(String message) native; 12173 void alert(String message) native;
12174 12174
12175 /** @domName Window.atob */ 12175 /** @domName Window.atob; @docsEditable true */
12176 String atob(String string) native; 12176 String atob(String string) native;
12177 12177
12178 /** @domName Window.btoa */ 12178 /** @domName Window.btoa; @docsEditable true */
12179 String btoa(String string) native; 12179 String btoa(String string) native;
12180 12180
12181 /** @domName Window.captureEvents */ 12181 /** @domName Window.captureEvents; @docsEditable true */
12182 void captureEvents() native; 12182 void captureEvents() native;
12183 12183
12184 /** @domName Window.clearInterval */ 12184 /** @domName Window.clearInterval; @docsEditable true */
12185 void clearInterval(int handle) native; 12185 void clearInterval(int handle) native;
12186 12186
12187 /** @domName Window.clearTimeout */ 12187 /** @domName Window.clearTimeout; @docsEditable true */
12188 void clearTimeout(int handle) native; 12188 void clearTimeout(int handle) native;
12189 12189
12190 /** @domName Window.close */ 12190 /** @domName Window.close; @docsEditable true */
12191 void close() native; 12191 void close() native;
12192 12192
12193 /** @domName Window.confirm */ 12193 /** @domName Window.confirm; @docsEditable true */
12194 bool confirm(String message) native; 12194 bool confirm(String message) native;
12195 12195
12196 /** @domName Window.dispatchEvent */ 12196 /** @domName Window.dispatchEvent; @docsEditable true */
12197 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; 12197 bool $dom_dispatchEvent(Event evt) native "dispatchEvent";
12198 12198
12199 /** @domName Window.find */ 12199 /** @domName Window.find; @docsEditable true */
12200 bool find(String string, bool caseSensitive, bool backwards, bool wrap, bool w holeWord, bool searchInFrames, bool showDialog) native; 12200 bool find(String string, bool caseSensitive, bool backwards, bool wrap, bool w holeWord, bool searchInFrames, bool showDialog) native;
12201 12201
12202 /** @domName Window.getComputedStyle */ 12202 /** @domName Window.getComputedStyle; @docsEditable true */
12203 CSSStyleDeclaration $dom_getComputedStyle(Element element, String pseudoElemen t) native "getComputedStyle"; 12203 CSSStyleDeclaration $dom_getComputedStyle(Element element, String pseudoElemen t) native "getComputedStyle";
12204 12204
12205 /** @domName Window.getMatchedCSSRules */ 12205 /** @domName Window.getMatchedCSSRules; @docsEditable true */
12206 List<CSSRule> getMatchedCSSRules(Element element, String pseudoElement) native ; 12206 List<CSSRule> getMatchedCSSRules(Element element, String pseudoElement) native ;
12207 12207
12208 /** @domName Window.getSelection */ 12208 /** @domName Window.getSelection; @docsEditable true */
12209 DOMSelection getSelection() native; 12209 DOMSelection getSelection() native;
12210 12210
12211 /** @domName Window.matchMedia */ 12211 /** @domName Window.matchMedia; @docsEditable true */
12212 MediaQueryList matchMedia(String query) native; 12212 MediaQueryList matchMedia(String query) native;
12213 12213
12214 /** @domName Window.moveBy */ 12214 /** @domName Window.moveBy; @docsEditable true */
12215 void moveBy(num x, num y) native; 12215 void moveBy(num x, num y) native;
12216 12216
12217 /** @domName Window.moveTo */ 12217 /** @domName Window.moveTo; @docsEditable true */
12218 void moveTo(num x, num y) native; 12218 void moveTo(num x, num y) native;
12219 12219
12220 /** @domName DOMWindow.openDatabase */ 12220 /** @domName DOMWindow.openDatabase; @docsEditable true */
12221 Database openDatabase(String name, String version, String displayName, int est imatedSize, [DatabaseCallback creationCallback]) native; 12221 Database openDatabase(String name, String version, String displayName, int est imatedSize, [DatabaseCallback creationCallback]) native;
12222 12222
12223 /** @domName Window.postMessage */ 12223 /** @domName Window.postMessage; @docsEditable true */
12224 void postMessage(/*SerializedScriptValue*/ message, String targetOrigin, [List messagePorts]) { 12224 void postMessage(/*SerializedScriptValue*/ message, String targetOrigin, [List messagePorts]) {
12225 if (?message && 12225 if (?message &&
12226 !?messagePorts) { 12226 !?messagePorts) {
12227 var message_1 = _convertDartToNative_SerializedScriptValue(message); 12227 var message_1 = _convertDartToNative_SerializedScriptValue(message);
12228 _postMessage_1(message_1, targetOrigin); 12228 _postMessage_1(message_1, targetOrigin);
12229 return; 12229 return;
12230 } 12230 }
12231 if (?message) { 12231 if (?message) {
12232 var message_2 = _convertDartToNative_SerializedScriptValue(message); 12232 var message_2 = _convertDartToNative_SerializedScriptValue(message);
12233 _postMessage_2(message_2, targetOrigin, messagePorts); 12233 _postMessage_2(message_2, targetOrigin, messagePorts);
12234 return; 12234 return;
12235 } 12235 }
12236 throw new ArgumentError("Incorrect number or type of arguments"); 12236 throw new ArgumentError("Incorrect number or type of arguments");
12237 } 12237 }
12238 void _postMessage_1(message, targetOrigin) native "postMessage"; 12238 void _postMessage_1(message, targetOrigin) native "postMessage";
12239 void _postMessage_2(message, targetOrigin, List messagePorts) native "postMess age"; 12239 void _postMessage_2(message, targetOrigin, List messagePorts) native "postMess age";
12240 12240
12241 /** @domName Window.print */ 12241 /** @domName Window.print; @docsEditable true */
12242 void print() native; 12242 void print() native;
12243 12243
12244 /** @domName Window.releaseEvents */ 12244 /** @domName Window.releaseEvents; @docsEditable true */
12245 void releaseEvents() native; 12245 void releaseEvents() native;
12246 12246
12247 /** @domName Window.removeEventListener */ 12247 /** @domName Window.removeEventListener; @docsEditable true */
12248 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 12248 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
12249 12249
12250 /** @domName Window.resizeBy */ 12250 /** @domName Window.resizeBy; @docsEditable true */
12251 void resizeBy(num x, num y) native; 12251 void resizeBy(num x, num y) native;
12252 12252
12253 /** @domName Window.resizeTo */ 12253 /** @domName Window.resizeTo; @docsEditable true */
12254 void resizeTo(num width, num height) native; 12254 void resizeTo(num width, num height) native;
12255 12255
12256 /** @domName Window.scroll */ 12256 /** @domName Window.scroll; @docsEditable true */
12257 void scroll(int x, int y) native; 12257 void scroll(int x, int y) native;
12258 12258
12259 /** @domName Window.scrollBy */ 12259 /** @domName Window.scrollBy; @docsEditable true */
12260 void scrollBy(int x, int y) native; 12260 void scrollBy(int x, int y) native;
12261 12261
12262 /** @domName Window.scrollTo */ 12262 /** @domName Window.scrollTo; @docsEditable true */
12263 void scrollTo(int x, int y) native; 12263 void scrollTo(int x, int y) native;
12264 12264
12265 /** @domName Window.setInterval */ 12265 /** @domName Window.setInterval; @docsEditable true */
12266 int setInterval(TimeoutHandler handler, int timeout) native; 12266 int setInterval(TimeoutHandler handler, int timeout) native;
12267 12267
12268 /** @domName Window.setTimeout */ 12268 /** @domName Window.setTimeout; @docsEditable true */
12269 int setTimeout(TimeoutHandler handler, int timeout) native; 12269 int setTimeout(TimeoutHandler handler, int timeout) native;
12270 12270
12271 /** @domName Window.showModalDialog */ 12271 /** @domName Window.showModalDialog; @docsEditable true */
12272 Object showModalDialog(String url, [Object dialogArgs, String featureArgs]) na tive; 12272 Object showModalDialog(String url, [Object dialogArgs, String featureArgs]) na tive;
12273 12273
12274 /** @domName Window.stop */ 12274 /** @domName Window.stop; @docsEditable true */
12275 void stop() native; 12275 void stop() native;
12276 12276
12277 /** @domName Window.webkitConvertPointFromNodeToPage */ 12277 /** @domName Window.webkitConvertPointFromNodeToPage; @docsEditable true */
12278 Point webkitConvertPointFromNodeToPage(Node node, Point p) native; 12278 Point webkitConvertPointFromNodeToPage(Node node, Point p) native;
12279 12279
12280 /** @domName Window.webkitConvertPointFromPageToNode */ 12280 /** @domName Window.webkitConvertPointFromPageToNode; @docsEditable true */
12281 Point webkitConvertPointFromPageToNode(Node node, Point p) native; 12281 Point webkitConvertPointFromPageToNode(Node node, Point p) native;
12282 12282
12283 /** @domName DOMWindow.webkitRequestFileSystem */ 12283 /** @domName DOMWindow.webkitRequestFileSystem; @docsEditable true */
12284 void webkitRequestFileSystem(int type, int size, FileSystemCallback successCal lback, [ErrorCallback errorCallback]) native; 12284 void webkitRequestFileSystem(int type, int size, FileSystemCallback successCal lback, [ErrorCallback errorCallback]) native;
12285 12285
12286 /** @domName DOMWindow.webkitResolveLocalFileSystemURL */ 12286 /** @domName DOMWindow.webkitResolveLocalFileSystemURL; @docsEditable true */
12287 void webkitResolveLocalFileSystemURL(String url, EntryCallback successCallback , [ErrorCallback errorCallback]) native; 12287 void webkitResolveLocalFileSystemURL(String url, EntryCallback successCallback , [ErrorCallback errorCallback]) native;
12288 12288
12289 } 12289 }
12290 12290
12291 class LocalWindowEvents extends Events { 12291 class LocalWindowEvents extends Events {
12292 LocalWindowEvents(EventTarget _ptr) : super(_ptr); 12292 LocalWindowEvents(EventTarget _ptr) : super(_ptr);
12293 12293
12294 EventListenerList get abort => this['abort']; 12294 EventListenerList get abort => this['abort'];
12295 12295
12296 EventListenerList get beforeUnload => this['beforeunload']; 12296 EventListenerList get beforeUnload => this['beforeunload'];
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
12435 12435
12436 EventListenerList get animationStart => this['webkitAnimationStart']; 12436 EventListenerList get animationStart => this['webkitAnimationStart'];
12437 12437
12438 EventListenerList get transitionEnd => this['webkitTransitionEnd']; 12438 EventListenerList get transitionEnd => this['webkitTransitionEnd'];
12439 } 12439 }
12440 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12440 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12441 // for details. All rights reserved. Use of this source code is governed by a 12441 // for details. All rights reserved. Use of this source code is governed by a
12442 // BSD-style license that can be found in the LICENSE file. 12442 // BSD-style license that can be found in the LICENSE file.
12443 12443
12444 12444
12445 /// @domName HTMLMapElement 12445 /// @domName HTMLMapElement; @docsEditable true
12446 class MapElement extends Element implements Element native "*HTMLMapElement" { 12446 class MapElement extends Element implements Element native "*HTMLMapElement" {
12447 12447
12448 factory MapElement() => document.$dom_createElement("map"); 12448 factory MapElement() => document.$dom_createElement("map");
12449 12449
12450 /** @domName HTMLMapElement.areas */ 12450 /** @domName HTMLMapElement.areas; @docsEditable true */
12451 final HTMLCollection areas; 12451 final HTMLCollection areas;
12452 12452
12453 /** @domName HTMLMapElement.name */ 12453 /** @domName HTMLMapElement.name; @docsEditable true */
12454 String name; 12454 String name;
12455 } 12455 }
12456 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12456 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12457 // for details. All rights reserved. Use of this source code is governed by a 12457 // for details. All rights reserved. Use of this source code is governed by a
12458 // BSD-style license that can be found in the LICENSE file. 12458 // BSD-style license that can be found in the LICENSE file.
12459 12459
12460 12460
12461 /// @domName HTMLMarqueeElement 12461 /// @domName HTMLMarqueeElement; @docsEditable true
12462 class MarqueeElement extends Element implements Element native "*HTMLMarqueeElem ent" { 12462 class MarqueeElement extends Element implements Element native "*HTMLMarqueeElem ent" {
12463 12463
12464 /** @domName HTMLMarqueeElement.behavior */ 12464 /** @domName HTMLMarqueeElement.behavior; @docsEditable true */
12465 String behavior; 12465 String behavior;
12466 12466
12467 /** @domName HTMLMarqueeElement.bgColor */ 12467 /** @domName HTMLMarqueeElement.bgColor; @docsEditable true */
12468 String bgColor; 12468 String bgColor;
12469 12469
12470 /** @domName HTMLMarqueeElement.direction */ 12470 /** @domName HTMLMarqueeElement.direction; @docsEditable true */
12471 String direction; 12471 String direction;
12472 12472
12473 /** @domName HTMLMarqueeElement.height */ 12473 /** @domName HTMLMarqueeElement.height; @docsEditable true */
12474 String height; 12474 String height;
12475 12475
12476 /** @domName HTMLMarqueeElement.hspace */ 12476 /** @domName HTMLMarqueeElement.hspace; @docsEditable true */
12477 int hspace; 12477 int hspace;
12478 12478
12479 /** @domName HTMLMarqueeElement.loop */ 12479 /** @domName HTMLMarqueeElement.loop; @docsEditable true */
12480 int loop; 12480 int loop;
12481 12481
12482 /** @domName HTMLMarqueeElement.scrollAmount */ 12482 /** @domName HTMLMarqueeElement.scrollAmount; @docsEditable true */
12483 int scrollAmount; 12483 int scrollAmount;
12484 12484
12485 /** @domName HTMLMarqueeElement.scrollDelay */ 12485 /** @domName HTMLMarqueeElement.scrollDelay; @docsEditable true */
12486 int scrollDelay; 12486 int scrollDelay;
12487 12487
12488 /** @domName HTMLMarqueeElement.trueSpeed */ 12488 /** @domName HTMLMarqueeElement.trueSpeed; @docsEditable true */
12489 bool trueSpeed; 12489 bool trueSpeed;
12490 12490
12491 /** @domName HTMLMarqueeElement.vspace */ 12491 /** @domName HTMLMarqueeElement.vspace; @docsEditable true */
12492 int vspace; 12492 int vspace;
12493 12493
12494 /** @domName HTMLMarqueeElement.width */ 12494 /** @domName HTMLMarqueeElement.width; @docsEditable true */
12495 String width; 12495 String width;
12496 12496
12497 /** @domName HTMLMarqueeElement.start */ 12497 /** @domName HTMLMarqueeElement.start; @docsEditable true */
12498 void start() native; 12498 void start() native;
12499 12499
12500 /** @domName HTMLMarqueeElement.stop */ 12500 /** @domName HTMLMarqueeElement.stop; @docsEditable true */
12501 void stop() native; 12501 void stop() native;
12502 } 12502 }
12503 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12503 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12504 // for details. All rights reserved. Use of this source code is governed by a 12504 // for details. All rights reserved. Use of this source code is governed by a
12505 // BSD-style license that can be found in the LICENSE file. 12505 // BSD-style license that can be found in the LICENSE file.
12506 12506
12507 12507
12508 /// @domName MediaController 12508 /// @domName MediaController; @docsEditable true
12509 class MediaController extends EventTarget native "*MediaController" { 12509 class MediaController extends EventTarget native "*MediaController" {
12510 12510
12511 factory MediaController() => _MediaControllerFactoryProvider.createMediaContro ller(); 12511 factory MediaController() => _MediaControllerFactoryProvider.createMediaContro ller();
12512 12512
12513 /** @domName MediaController.buffered */ 12513 /** @domName MediaController.buffered; @docsEditable true */
12514 final TimeRanges buffered; 12514 final TimeRanges buffered;
12515 12515
12516 /** @domName MediaController.currentTime */ 12516 /** @domName MediaController.currentTime; @docsEditable true */
12517 num currentTime; 12517 num currentTime;
12518 12518
12519 /** @domName MediaController.defaultPlaybackRate */ 12519 /** @domName MediaController.defaultPlaybackRate; @docsEditable true */
12520 num defaultPlaybackRate; 12520 num defaultPlaybackRate;
12521 12521
12522 /** @domName MediaController.duration */ 12522 /** @domName MediaController.duration; @docsEditable true */
12523 final num duration; 12523 final num duration;
12524 12524
12525 /** @domName MediaController.muted */ 12525 /** @domName MediaController.muted; @docsEditable true */
12526 bool muted; 12526 bool muted;
12527 12527
12528 /** @domName MediaController.paused */ 12528 /** @domName MediaController.paused; @docsEditable true */
12529 final bool paused; 12529 final bool paused;
12530 12530
12531 /** @domName MediaController.playbackRate */ 12531 /** @domName MediaController.playbackRate; @docsEditable true */
12532 num playbackRate; 12532 num playbackRate;
12533 12533
12534 /** @domName MediaController.played */ 12534 /** @domName MediaController.played; @docsEditable true */
12535 final TimeRanges played; 12535 final TimeRanges played;
12536 12536
12537 /** @domName MediaController.seekable */ 12537 /** @domName MediaController.seekable; @docsEditable true */
12538 final TimeRanges seekable; 12538 final TimeRanges seekable;
12539 12539
12540 /** @domName MediaController.volume */ 12540 /** @domName MediaController.volume; @docsEditable true */
12541 num volume; 12541 num volume;
12542 12542
12543 /** @domName MediaController.addEventListener */ 12543 /** @domName MediaController.addEventListener; @docsEditable true */
12544 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 12544 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
12545 12545
12546 /** @domName MediaController.dispatchEvent */ 12546 /** @domName MediaController.dispatchEvent; @docsEditable true */
12547 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; 12547 bool $dom_dispatchEvent(Event evt) native "dispatchEvent";
12548 12548
12549 /** @domName MediaController.pause */ 12549 /** @domName MediaController.pause; @docsEditable true */
12550 void pause() native; 12550 void pause() native;
12551 12551
12552 /** @domName MediaController.play */ 12552 /** @domName MediaController.play; @docsEditable true */
12553 void play() native; 12553 void play() native;
12554 12554
12555 /** @domName MediaController.removeEventListener */ 12555 /** @domName MediaController.removeEventListener; @docsEditable true */
12556 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 12556 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
12557 } 12557 }
12558 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12558 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12559 // for details. All rights reserved. Use of this source code is governed by a 12559 // for details. All rights reserved. Use of this source code is governed by a
12560 // BSD-style license that can be found in the LICENSE file. 12560 // BSD-style license that can be found in the LICENSE file.
12561 12561
12562 12562
12563 /// @domName HTMLMediaElement 12563 /// @domName HTMLMediaElement; @docsEditable true
12564 class MediaElement extends Element implements Element native "*HTMLMediaElement" { 12564 class MediaElement extends Element implements Element native "*HTMLMediaElement" {
12565 12565
12566 /** 12566 /**
12567 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 12567 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent; @docsEditable true
12568 */ 12568 */
12569 MediaElementEvents get on => 12569 MediaElementEvents get on =>
12570 new MediaElementEvents(this); 12570 new MediaElementEvents(this);
12571 12571
12572 static const int HAVE_CURRENT_DATA = 2; 12572 static const int HAVE_CURRENT_DATA = 2;
12573 12573
12574 static const int HAVE_ENOUGH_DATA = 4; 12574 static const int HAVE_ENOUGH_DATA = 4;
12575 12575
12576 static const int HAVE_FUTURE_DATA = 3; 12576 static const int HAVE_FUTURE_DATA = 3;
12577 12577
12578 static const int HAVE_METADATA = 1; 12578 static const int HAVE_METADATA = 1;
12579 12579
12580 static const int HAVE_NOTHING = 0; 12580 static const int HAVE_NOTHING = 0;
12581 12581
12582 static const int NETWORK_EMPTY = 0; 12582 static const int NETWORK_EMPTY = 0;
12583 12583
12584 static const int NETWORK_IDLE = 1; 12584 static const int NETWORK_IDLE = 1;
12585 12585
12586 static const int NETWORK_LOADING = 2; 12586 static const int NETWORK_LOADING = 2;
12587 12587
12588 static const int NETWORK_NO_SOURCE = 3; 12588 static const int NETWORK_NO_SOURCE = 3;
12589 12589
12590 /** @domName HTMLMediaElement.autoplay */ 12590 /** @domName HTMLMediaElement.autoplay; @docsEditable true */
12591 bool autoplay; 12591 bool autoplay;
12592 12592
12593 /** @domName HTMLMediaElement.buffered */ 12593 /** @domName HTMLMediaElement.buffered; @docsEditable true */
12594 final TimeRanges buffered; 12594 final TimeRanges buffered;
12595 12595
12596 /** @domName HTMLMediaElement.controller */ 12596 /** @domName HTMLMediaElement.controller; @docsEditable true */
12597 MediaController controller; 12597 MediaController controller;
12598 12598
12599 /** @domName HTMLMediaElement.controls */ 12599 /** @domName HTMLMediaElement.controls; @docsEditable true */
12600 bool controls; 12600 bool controls;
12601 12601
12602 /** @domName HTMLMediaElement.currentSrc */ 12602 /** @domName HTMLMediaElement.currentSrc; @docsEditable true */
12603 final String currentSrc; 12603 final String currentSrc;
12604 12604
12605 /** @domName HTMLMediaElement.currentTime */ 12605 /** @domName HTMLMediaElement.currentTime; @docsEditable true */
12606 num currentTime; 12606 num currentTime;
12607 12607
12608 /** @domName HTMLMediaElement.defaultMuted */ 12608 /** @domName HTMLMediaElement.defaultMuted; @docsEditable true */
12609 bool defaultMuted; 12609 bool defaultMuted;
12610 12610
12611 /** @domName HTMLMediaElement.defaultPlaybackRate */ 12611 /** @domName HTMLMediaElement.defaultPlaybackRate; @docsEditable true */
12612 num defaultPlaybackRate; 12612 num defaultPlaybackRate;
12613 12613
12614 /** @domName HTMLMediaElement.duration */ 12614 /** @domName HTMLMediaElement.duration; @docsEditable true */
12615 final num duration; 12615 final num duration;
12616 12616
12617 /** @domName HTMLMediaElement.ended */ 12617 /** @domName HTMLMediaElement.ended; @docsEditable true */
12618 final bool ended; 12618 final bool ended;
12619 12619
12620 /** @domName HTMLMediaElement.error */ 12620 /** @domName HTMLMediaElement.error; @docsEditable true */
12621 final MediaError error; 12621 final MediaError error;
12622 12622
12623 /** @domName HTMLMediaElement.initialTime */ 12623 /** @domName HTMLMediaElement.initialTime; @docsEditable true */
12624 final num initialTime; 12624 final num initialTime;
12625 12625
12626 /** @domName HTMLMediaElement.loop */ 12626 /** @domName HTMLMediaElement.loop; @docsEditable true */
12627 bool loop; 12627 bool loop;
12628 12628
12629 /** @domName HTMLMediaElement.mediaGroup */ 12629 /** @domName HTMLMediaElement.mediaGroup; @docsEditable true */
12630 String mediaGroup; 12630 String mediaGroup;
12631 12631
12632 /** @domName HTMLMediaElement.muted */ 12632 /** @domName HTMLMediaElement.muted; @docsEditable true */
12633 bool muted; 12633 bool muted;
12634 12634
12635 /** @domName HTMLMediaElement.networkState */ 12635 /** @domName HTMLMediaElement.networkState; @docsEditable true */
12636 final int networkState; 12636 final int networkState;
12637 12637
12638 /** @domName HTMLMediaElement.paused */ 12638 /** @domName HTMLMediaElement.paused; @docsEditable true */
12639 final bool paused; 12639 final bool paused;
12640 12640
12641 /** @domName HTMLMediaElement.playbackRate */ 12641 /** @domName HTMLMediaElement.playbackRate; @docsEditable true */
12642 num playbackRate; 12642 num playbackRate;
12643 12643
12644 /** @domName HTMLMediaElement.played */ 12644 /** @domName HTMLMediaElement.played; @docsEditable true */
12645 final TimeRanges played; 12645 final TimeRanges played;
12646 12646
12647 /** @domName HTMLMediaElement.preload */ 12647 /** @domName HTMLMediaElement.preload; @docsEditable true */
12648 String preload; 12648 String preload;
12649 12649
12650 /** @domName HTMLMediaElement.readyState */ 12650 /** @domName HTMLMediaElement.readyState; @docsEditable true */
12651 final int readyState; 12651 final int readyState;
12652 12652
12653 /** @domName HTMLMediaElement.seekable */ 12653 /** @domName HTMLMediaElement.seekable; @docsEditable true */
12654 final TimeRanges seekable; 12654 final TimeRanges seekable;
12655 12655
12656 /** @domName HTMLMediaElement.seeking */ 12656 /** @domName HTMLMediaElement.seeking; @docsEditable true */
12657 final bool seeking; 12657 final bool seeking;
12658 12658
12659 /** @domName HTMLMediaElement.src */ 12659 /** @domName HTMLMediaElement.src; @docsEditable true */
12660 String src; 12660 String src;
12661 12661
12662 /** @domName HTMLMediaElement.startTime */ 12662 /** @domName HTMLMediaElement.startTime; @docsEditable true */
12663 final num startTime; 12663 final num startTime;
12664 12664
12665 /** @domName HTMLMediaElement.textTracks */ 12665 /** @domName HTMLMediaElement.textTracks; @docsEditable true */
12666 final TextTrackList textTracks; 12666 final TextTrackList textTracks;
12667 12667
12668 /** @domName HTMLMediaElement.volume */ 12668 /** @domName HTMLMediaElement.volume; @docsEditable true */
12669 num volume; 12669 num volume;
12670 12670
12671 /** @domName HTMLMediaElement.webkitAudioDecodedByteCount */ 12671 /** @domName HTMLMediaElement.webkitAudioDecodedByteCount; @docsEditable true */
12672 final int webkitAudioDecodedByteCount; 12672 final int webkitAudioDecodedByteCount;
12673 12673
12674 /** @domName HTMLMediaElement.webkitClosedCaptionsVisible */ 12674 /** @domName HTMLMediaElement.webkitClosedCaptionsVisible; @docsEditable true */
12675 bool webkitClosedCaptionsVisible; 12675 bool webkitClosedCaptionsVisible;
12676 12676
12677 /** @domName HTMLMediaElement.webkitHasClosedCaptions */ 12677 /** @domName HTMLMediaElement.webkitHasClosedCaptions; @docsEditable true */
12678 final bool webkitHasClosedCaptions; 12678 final bool webkitHasClosedCaptions;
12679 12679
12680 /** @domName HTMLMediaElement.webkitPreservesPitch */ 12680 /** @domName HTMLMediaElement.webkitPreservesPitch; @docsEditable true */
12681 bool webkitPreservesPitch; 12681 bool webkitPreservesPitch;
12682 12682
12683 /** @domName HTMLMediaElement.webkitVideoDecodedByteCount */ 12683 /** @domName HTMLMediaElement.webkitVideoDecodedByteCount; @docsEditable true */
12684 final int webkitVideoDecodedByteCount; 12684 final int webkitVideoDecodedByteCount;
12685 12685
12686 /** @domName HTMLMediaElement.addTextTrack */ 12686 /** @domName HTMLMediaElement.addTextTrack; @docsEditable true */
12687 TextTrack addTextTrack(String kind, [String label, String language]) native; 12687 TextTrack addTextTrack(String kind, [String label, String language]) native;
12688 12688
12689 /** @domName HTMLMediaElement.canPlayType */ 12689 /** @domName HTMLMediaElement.canPlayType; @docsEditable true */
12690 String canPlayType(String type, String keySystem) native; 12690 String canPlayType(String type, String keySystem) native;
12691 12691
12692 /** @domName HTMLMediaElement.load */ 12692 /** @domName HTMLMediaElement.load; @docsEditable true */
12693 void load() native; 12693 void load() native;
12694 12694
12695 /** @domName HTMLMediaElement.pause */ 12695 /** @domName HTMLMediaElement.pause; @docsEditable true */
12696 void pause() native; 12696 void pause() native;
12697 12697
12698 /** @domName HTMLMediaElement.play */ 12698 /** @domName HTMLMediaElement.play; @docsEditable true */
12699 void play() native; 12699 void play() native;
12700 12700
12701 /** @domName HTMLMediaElement.webkitAddKey */ 12701 /** @domName HTMLMediaElement.webkitAddKey; @docsEditable true */
12702 void webkitAddKey(String keySystem, Uint8Array key, [Uint8Array initData, Stri ng sessionId]) native; 12702 void webkitAddKey(String keySystem, Uint8Array key, [Uint8Array initData, Stri ng sessionId]) native;
12703 12703
12704 /** @domName HTMLMediaElement.webkitCancelKeyRequest */ 12704 /** @domName HTMLMediaElement.webkitCancelKeyRequest; @docsEditable true */
12705 void webkitCancelKeyRequest(String keySystem, String sessionId) native; 12705 void webkitCancelKeyRequest(String keySystem, String sessionId) native;
12706 12706
12707 /** @domName HTMLMediaElement.webkitGenerateKeyRequest */ 12707 /** @domName HTMLMediaElement.webkitGenerateKeyRequest; @docsEditable true */
12708 void webkitGenerateKeyRequest(String keySystem, [Uint8Array initData]) native; 12708 void webkitGenerateKeyRequest(String keySystem, [Uint8Array initData]) native;
12709 } 12709 }
12710 12710
12711 class MediaElementEvents extends ElementEvents { 12711 class MediaElementEvents extends ElementEvents {
12712 MediaElementEvents(EventTarget _ptr) : super(_ptr); 12712 MediaElementEvents(EventTarget _ptr) : super(_ptr);
12713 12713
12714 EventListenerList get canPlay => this['canplay']; 12714 EventListenerList get canPlay => this['canplay'];
12715 12715
12716 EventListenerList get canPlayThrough => this['canplaythrough']; 12716 EventListenerList get canPlayThrough => this['canplaythrough'];
12717 12717
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
12759 12759
12760 EventListenerList get keyMessage => this['webkitkeymessage']; 12760 EventListenerList get keyMessage => this['webkitkeymessage'];
12761 12761
12762 EventListenerList get needKey => this['webkitneedkey']; 12762 EventListenerList get needKey => this['webkitneedkey'];
12763 } 12763 }
12764 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12764 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12765 // for details. All rights reserved. Use of this source code is governed by a 12765 // for details. All rights reserved. Use of this source code is governed by a
12766 // BSD-style license that can be found in the LICENSE file. 12766 // BSD-style license that can be found in the LICENSE file.
12767 12767
12768 12768
12769 /// @domName MediaElementAudioSourceNode 12769 /// @domName MediaElementAudioSourceNode; @docsEditable true
12770 class MediaElementAudioSourceNode extends AudioSourceNode native "*MediaElementA udioSourceNode" { 12770 class MediaElementAudioSourceNode extends AudioSourceNode native "*MediaElementA udioSourceNode" {
12771 12771
12772 /** @domName MediaElementAudioSourceNode.mediaElement */ 12772 /** @domName MediaElementAudioSourceNode.mediaElement; @docsEditable true */
12773 final MediaElement mediaElement; 12773 final MediaElement mediaElement;
12774 } 12774 }
12775 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12775 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12776 // for details. All rights reserved. Use of this source code is governed by a 12776 // for details. All rights reserved. Use of this source code is governed by a
12777 // BSD-style license that can be found in the LICENSE file. 12777 // BSD-style license that can be found in the LICENSE file.
12778 12778
12779 12779
12780 /// @domName MediaError 12780 /// @domName MediaError; @docsEditable true
12781 class MediaError native "*MediaError" { 12781 class MediaError native "*MediaError" {
12782 12782
12783 static const int MEDIA_ERR_ABORTED = 1; 12783 static const int MEDIA_ERR_ABORTED = 1;
12784 12784
12785 static const int MEDIA_ERR_DECODE = 3; 12785 static const int MEDIA_ERR_DECODE = 3;
12786 12786
12787 static const int MEDIA_ERR_ENCRYPTED = 5; 12787 static const int MEDIA_ERR_ENCRYPTED = 5;
12788 12788
12789 static const int MEDIA_ERR_NETWORK = 2; 12789 static const int MEDIA_ERR_NETWORK = 2;
12790 12790
12791 static const int MEDIA_ERR_SRC_NOT_SUPPORTED = 4; 12791 static const int MEDIA_ERR_SRC_NOT_SUPPORTED = 4;
12792 12792
12793 /** @domName MediaError.code */ 12793 /** @domName MediaError.code; @docsEditable true */
12794 final int code; 12794 final int code;
12795 } 12795 }
12796 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12796 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12797 // for details. All rights reserved. Use of this source code is governed by a 12797 // for details. All rights reserved. Use of this source code is governed by a
12798 // BSD-style license that can be found in the LICENSE file. 12798 // BSD-style license that can be found in the LICENSE file.
12799 12799
12800 12800
12801 /// @domName MediaKeyError 12801 /// @domName MediaKeyError; @docsEditable true
12802 class MediaKeyError native "*MediaKeyError" { 12802 class MediaKeyError native "*MediaKeyError" {
12803 12803
12804 static const int MEDIA_KEYERR_CLIENT = 2; 12804 static const int MEDIA_KEYERR_CLIENT = 2;
12805 12805
12806 static const int MEDIA_KEYERR_DOMAIN = 6; 12806 static const int MEDIA_KEYERR_DOMAIN = 6;
12807 12807
12808 static const int MEDIA_KEYERR_HARDWARECHANGE = 5; 12808 static const int MEDIA_KEYERR_HARDWARECHANGE = 5;
12809 12809
12810 static const int MEDIA_KEYERR_OUTPUT = 4; 12810 static const int MEDIA_KEYERR_OUTPUT = 4;
12811 12811
12812 static const int MEDIA_KEYERR_SERVICE = 3; 12812 static const int MEDIA_KEYERR_SERVICE = 3;
12813 12813
12814 static const int MEDIA_KEYERR_UNKNOWN = 1; 12814 static const int MEDIA_KEYERR_UNKNOWN = 1;
12815 12815
12816 /** @domName MediaKeyError.code */ 12816 /** @domName MediaKeyError.code; @docsEditable true */
12817 final int code; 12817 final int code;
12818 } 12818 }
12819 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12819 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12820 // for details. All rights reserved. Use of this source code is governed by a 12820 // for details. All rights reserved. Use of this source code is governed by a
12821 // BSD-style license that can be found in the LICENSE file. 12821 // BSD-style license that can be found in the LICENSE file.
12822 12822
12823 12823
12824 /// @domName MediaKeyEvent 12824 /// @domName MediaKeyEvent; @docsEditable true
12825 class MediaKeyEvent extends Event native "*MediaKeyEvent" { 12825 class MediaKeyEvent extends Event native "*MediaKeyEvent" {
12826 12826
12827 /** @domName MediaKeyEvent.defaultURL */ 12827 /** @domName MediaKeyEvent.defaultURL; @docsEditable true */
12828 final String defaultURL; 12828 final String defaultURL;
12829 12829
12830 /** @domName MediaKeyEvent.errorCode */ 12830 /** @domName MediaKeyEvent.errorCode; @docsEditable true */
12831 final MediaKeyError errorCode; 12831 final MediaKeyError errorCode;
12832 12832
12833 /** @domName MediaKeyEvent.initData */ 12833 /** @domName MediaKeyEvent.initData; @docsEditable true */
12834 final Uint8Array initData; 12834 final Uint8Array initData;
12835 12835
12836 /** @domName MediaKeyEvent.keySystem */ 12836 /** @domName MediaKeyEvent.keySystem; @docsEditable true */
12837 final String keySystem; 12837 final String keySystem;
12838 12838
12839 /** @domName MediaKeyEvent.message */ 12839 /** @domName MediaKeyEvent.message; @docsEditable true */
12840 final Uint8Array message; 12840 final Uint8Array message;
12841 12841
12842 /** @domName MediaKeyEvent.sessionId */ 12842 /** @domName MediaKeyEvent.sessionId; @docsEditable true */
12843 final String sessionId; 12843 final String sessionId;
12844 12844
12845 /** @domName MediaKeyEvent.systemCode */ 12845 /** @domName MediaKeyEvent.systemCode; @docsEditable true */
12846 final int systemCode; 12846 final int systemCode;
12847 } 12847 }
12848 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12848 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12849 // for details. All rights reserved. Use of this source code is governed by a 12849 // for details. All rights reserved. Use of this source code is governed by a
12850 // BSD-style license that can be found in the LICENSE file. 12850 // BSD-style license that can be found in the LICENSE file.
12851 12851
12852 12852
12853 /// @domName MediaList 12853 /// @domName MediaList; @docsEditable true
12854 class MediaList native "*MediaList" { 12854 class MediaList native "*MediaList" {
12855 12855
12856 /** @domName MediaList.length */ 12856 /** @domName MediaList.length; @docsEditable true */
12857 final int length; 12857 final int length;
12858 12858
12859 /** @domName MediaList.mediaText */ 12859 /** @domName MediaList.mediaText; @docsEditable true */
12860 String mediaText; 12860 String mediaText;
12861 12861
12862 /** @domName MediaList.appendMedium */ 12862 /** @domName MediaList.appendMedium; @docsEditable true */
12863 void appendMedium(String newMedium) native; 12863 void appendMedium(String newMedium) native;
12864 12864
12865 /** @domName MediaList.deleteMedium */ 12865 /** @domName MediaList.deleteMedium; @docsEditable true */
12866 void deleteMedium(String oldMedium) native; 12866 void deleteMedium(String oldMedium) native;
12867 12867
12868 /** @domName MediaList.item */ 12868 /** @domName MediaList.item; @docsEditable true */
12869 String item(int index) native; 12869 String item(int index) native;
12870 } 12870 }
12871 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12871 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12872 // for details. All rights reserved. Use of this source code is governed by a 12872 // for details. All rights reserved. Use of this source code is governed by a
12873 // BSD-style license that can be found in the LICENSE file. 12873 // BSD-style license that can be found in the LICENSE file.
12874 12874
12875 12875
12876 /// @domName MediaQueryList 12876 /// @domName MediaQueryList; @docsEditable true
12877 class MediaQueryList native "*MediaQueryList" { 12877 class MediaQueryList native "*MediaQueryList" {
12878 12878
12879 /** @domName MediaQueryList.matches */ 12879 /** @domName MediaQueryList.matches; @docsEditable true */
12880 final bool matches; 12880 final bool matches;
12881 12881
12882 /** @domName MediaQueryList.media */ 12882 /** @domName MediaQueryList.media; @docsEditable true */
12883 final String media; 12883 final String media;
12884 12884
12885 /** @domName MediaQueryList.addListener */ 12885 /** @domName MediaQueryList.addListener; @docsEditable true */
12886 void addListener(MediaQueryListListener listener) native; 12886 void addListener(MediaQueryListListener listener) native;
12887 12887
12888 /** @domName MediaQueryList.removeListener */ 12888 /** @domName MediaQueryList.removeListener; @docsEditable true */
12889 void removeListener(MediaQueryListListener listener) native; 12889 void removeListener(MediaQueryListListener listener) native;
12890 } 12890 }
12891 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12891 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12892 // for details. All rights reserved. Use of this source code is governed by a 12892 // for details. All rights reserved. Use of this source code is governed by a
12893 // BSD-style license that can be found in the LICENSE file. 12893 // BSD-style license that can be found in the LICENSE file.
12894 12894
12895 12895
12896 /// @domName MediaQueryListListener 12896 /// @domName MediaQueryListListener
12897 abstract class MediaQueryListListener { 12897 abstract class MediaQueryListListener {
12898 12898
12899 /** @domName MediaQueryListListener.queryChanged */ 12899 /** @domName MediaQueryListListener.queryChanged; @docsEditable true */
12900 void queryChanged(MediaQueryList list); 12900 void queryChanged(MediaQueryList list);
12901 } 12901 }
12902 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12902 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12903 // for details. All rights reserved. Use of this source code is governed by a 12903 // for details. All rights reserved. Use of this source code is governed by a
12904 // BSD-style license that can be found in the LICENSE file. 12904 // BSD-style license that can be found in the LICENSE file.
12905 12905
12906 12906
12907 /// @domName MediaSource 12907 /// @domName MediaSource; @docsEditable true
12908 class MediaSource extends EventTarget native "*MediaSource" { 12908 class MediaSource extends EventTarget native "*MediaSource" {
12909 12909
12910 factory MediaSource() => _MediaSourceFactoryProvider.createMediaSource(); 12910 factory MediaSource() => _MediaSourceFactoryProvider.createMediaSource();
12911 12911
12912 /** @domName MediaSource.activeSourceBuffers */ 12912 /** @domName MediaSource.activeSourceBuffers; @docsEditable true */
12913 final SourceBufferList activeSourceBuffers; 12913 final SourceBufferList activeSourceBuffers;
12914 12914
12915 /** @domName MediaSource.duration */ 12915 /** @domName MediaSource.duration; @docsEditable true */
12916 num duration; 12916 num duration;
12917 12917
12918 /** @domName MediaSource.readyState */ 12918 /** @domName MediaSource.readyState; @docsEditable true */
12919 final String readyState; 12919 final String readyState;
12920 12920
12921 /** @domName MediaSource.sourceBuffers */ 12921 /** @domName MediaSource.sourceBuffers; @docsEditable true */
12922 final SourceBufferList sourceBuffers; 12922 final SourceBufferList sourceBuffers;
12923 12923
12924 /** @domName MediaSource.addEventListener */ 12924 /** @domName MediaSource.addEventListener; @docsEditable true */
12925 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 12925 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
12926 12926
12927 /** @domName MediaSource.addSourceBuffer */ 12927 /** @domName MediaSource.addSourceBuffer; @docsEditable true */
12928 SourceBuffer addSourceBuffer(String type) native; 12928 SourceBuffer addSourceBuffer(String type) native;
12929 12929
12930 /** @domName MediaSource.dispatchEvent */ 12930 /** @domName MediaSource.dispatchEvent; @docsEditable true */
12931 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; 12931 bool $dom_dispatchEvent(Event event) native "dispatchEvent";
12932 12932
12933 /** @domName MediaSource.endOfStream */ 12933 /** @domName MediaSource.endOfStream; @docsEditable true */
12934 void endOfStream(String error) native; 12934 void endOfStream(String error) native;
12935 12935
12936 /** @domName MediaSource.removeEventListener */ 12936 /** @domName MediaSource.removeEventListener; @docsEditable true */
12937 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 12937 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
12938 12938
12939 /** @domName MediaSource.removeSourceBuffer */ 12939 /** @domName MediaSource.removeSourceBuffer; @docsEditable true */
12940 void removeSourceBuffer(SourceBuffer buffer) native; 12940 void removeSourceBuffer(SourceBuffer buffer) native;
12941 } 12941 }
12942 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12942 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12943 // for details. All rights reserved. Use of this source code is governed by a 12943 // for details. All rights reserved. Use of this source code is governed by a
12944 // BSD-style license that can be found in the LICENSE file. 12944 // BSD-style license that can be found in the LICENSE file.
12945 12945
12946 12946
12947 /// @domName MediaStream 12947 /// @domName MediaStream; @docsEditable true
12948 class MediaStream extends EventTarget native "*MediaStream" { 12948 class MediaStream extends EventTarget native "*MediaStream" {
12949 12949
12950 factory MediaStream(MediaStreamTrackList audioTracks, MediaStreamTrackList vid eoTracks) => _MediaStreamFactoryProvider.createMediaStream(audioTracks, videoTra cks); 12950 factory MediaStream(MediaStreamTrackList audioTracks, MediaStreamTrackList vid eoTracks) => _MediaStreamFactoryProvider.createMediaStream(audioTracks, videoTra cks);
12951 12951
12952 /** 12952 /**
12953 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 12953 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent; @docsEditable true
12954 */ 12954 */
12955 MediaStreamEvents get on => 12955 MediaStreamEvents get on =>
12956 new MediaStreamEvents(this); 12956 new MediaStreamEvents(this);
12957 12957
12958 static const int ENDED = 2; 12958 static const int ENDED = 2;
12959 12959
12960 static const int LIVE = 1; 12960 static const int LIVE = 1;
12961 12961
12962 /** @domName MediaStream.audioTracks */ 12962 /** @domName MediaStream.audioTracks; @docsEditable true */
12963 final MediaStreamTrackList audioTracks; 12963 final MediaStreamTrackList audioTracks;
12964 12964
12965 /** @domName MediaStream.label */ 12965 /** @domName MediaStream.label; @docsEditable true */
12966 final String label; 12966 final String label;
12967 12967
12968 /** @domName MediaStream.readyState */ 12968 /** @domName MediaStream.readyState; @docsEditable true */
12969 final int readyState; 12969 final int readyState;
12970 12970
12971 /** @domName MediaStream.videoTracks */ 12971 /** @domName MediaStream.videoTracks; @docsEditable true */
12972 final MediaStreamTrackList videoTracks; 12972 final MediaStreamTrackList videoTracks;
12973 12973
12974 /** @domName MediaStream.addEventListener */ 12974 /** @domName MediaStream.addEventListener; @docsEditable true */
12975 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 12975 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
12976 12976
12977 /** @domName MediaStream.dispatchEvent */ 12977 /** @domName MediaStream.dispatchEvent; @docsEditable true */
12978 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; 12978 bool $dom_dispatchEvent(Event event) native "dispatchEvent";
12979 12979
12980 /** @domName MediaStream.removeEventListener */ 12980 /** @domName MediaStream.removeEventListener; @docsEditable true */
12981 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 12981 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
12982 } 12982 }
12983 12983
12984 class MediaStreamEvents extends Events { 12984 class MediaStreamEvents extends Events {
12985 MediaStreamEvents(EventTarget _ptr) : super(_ptr); 12985 MediaStreamEvents(EventTarget _ptr) : super(_ptr);
12986 12986
12987 EventListenerList get ended => this['ended']; 12987 EventListenerList get ended => this['ended'];
12988 } 12988 }
12989 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12989 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12990 // for details. All rights reserved. Use of this source code is governed by a 12990 // for details. All rights reserved. Use of this source code is governed by a
12991 // BSD-style license that can be found in the LICENSE file. 12991 // BSD-style license that can be found in the LICENSE file.
12992 12992
12993 12993
12994 /// @domName MediaStreamAudioSourceNode 12994 /// @domName MediaStreamAudioSourceNode; @docsEditable true
12995 class MediaStreamAudioSourceNode extends AudioSourceNode native "*MediaStreamAud ioSourceNode" { 12995 class MediaStreamAudioSourceNode extends AudioSourceNode native "*MediaStreamAud ioSourceNode" {
12996 12996
12997 /** @domName MediaStreamAudioSourceNode.mediaStream */ 12997 /** @domName MediaStreamAudioSourceNode.mediaStream; @docsEditable true */
12998 final MediaStream mediaStream; 12998 final MediaStream mediaStream;
12999 } 12999 }
13000 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13000 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13001 // for details. All rights reserved. Use of this source code is governed by a 13001 // for details. All rights reserved. Use of this source code is governed by a
13002 // BSD-style license that can be found in the LICENSE file. 13002 // BSD-style license that can be found in the LICENSE file.
13003 13003
13004 13004
13005 /// @domName MediaStreamEvent 13005 /// @domName MediaStreamEvent; @docsEditable true
13006 class MediaStreamEvent extends Event native "*MediaStreamEvent" { 13006 class MediaStreamEvent extends Event native "*MediaStreamEvent" {
13007 13007
13008 /** @domName MediaStreamEvent.stream */ 13008 /** @domName MediaStreamEvent.stream; @docsEditable true */
13009 final MediaStream stream; 13009 final MediaStream stream;
13010 } 13010 }
13011 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13011 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13012 // for details. All rights reserved. Use of this source code is governed by a 13012 // for details. All rights reserved. Use of this source code is governed by a
13013 // BSD-style license that can be found in the LICENSE file. 13013 // BSD-style license that can be found in the LICENSE file.
13014 13014
13015 13015
13016 /// @domName MediaStreamTrack 13016 /// @domName MediaStreamTrack; @docsEditable true
13017 class MediaStreamTrack extends EventTarget native "*MediaStreamTrack" { 13017 class MediaStreamTrack extends EventTarget native "*MediaStreamTrack" {
13018 13018
13019 /** 13019 /**
13020 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 13020 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent; @docsEditable true
13021 */ 13021 */
13022 MediaStreamTrackEvents get on => 13022 MediaStreamTrackEvents get on =>
13023 new MediaStreamTrackEvents(this); 13023 new MediaStreamTrackEvents(this);
13024 13024
13025 static const int ENDED = 2; 13025 static const int ENDED = 2;
13026 13026
13027 static const int LIVE = 0; 13027 static const int LIVE = 0;
13028 13028
13029 static const int MUTED = 1; 13029 static const int MUTED = 1;
13030 13030
13031 /** @domName MediaStreamTrack.enabled */ 13031 /** @domName MediaStreamTrack.enabled; @docsEditable true */
13032 bool enabled; 13032 bool enabled;
13033 13033
13034 /** @domName MediaStreamTrack.kind */ 13034 /** @domName MediaStreamTrack.kind; @docsEditable true */
13035 final String kind; 13035 final String kind;
13036 13036
13037 /** @domName MediaStreamTrack.label */ 13037 /** @domName MediaStreamTrack.label; @docsEditable true */
13038 final String label; 13038 final String label;
13039 13039
13040 /** @domName MediaStreamTrack.readyState */ 13040 /** @domName MediaStreamTrack.readyState; @docsEditable true */
13041 final int readyState; 13041 final int readyState;
13042 13042
13043 /** @domName MediaStreamTrack.addEventListener */ 13043 /** @domName MediaStreamTrack.addEventListener; @docsEditable true */
13044 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 13044 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
13045 13045
13046 /** @domName MediaStreamTrack.dispatchEvent */ 13046 /** @domName MediaStreamTrack.dispatchEvent; @docsEditable true */
13047 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; 13047 bool $dom_dispatchEvent(Event event) native "dispatchEvent";
13048 13048
13049 /** @domName MediaStreamTrack.removeEventListener */ 13049 /** @domName MediaStreamTrack.removeEventListener; @docsEditable true */
13050 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 13050 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
13051 } 13051 }
13052 13052
13053 class MediaStreamTrackEvents extends Events { 13053 class MediaStreamTrackEvents extends Events {
13054 MediaStreamTrackEvents(EventTarget _ptr) : super(_ptr); 13054 MediaStreamTrackEvents(EventTarget _ptr) : super(_ptr);
13055 13055
13056 EventListenerList get ended => this['ended']; 13056 EventListenerList get ended => this['ended'];
13057 13057
13058 EventListenerList get mute => this['mute']; 13058 EventListenerList get mute => this['mute'];
13059 13059
13060 EventListenerList get unmute => this['unmute']; 13060 EventListenerList get unmute => this['unmute'];
13061 } 13061 }
13062 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13062 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13063 // for details. All rights reserved. Use of this source code is governed by a 13063 // for details. All rights reserved. Use of this source code is governed by a
13064 // BSD-style license that can be found in the LICENSE file. 13064 // BSD-style license that can be found in the LICENSE file.
13065 13065
13066 13066
13067 /// @domName MediaStreamTrackEvent 13067 /// @domName MediaStreamTrackEvent; @docsEditable true
13068 class MediaStreamTrackEvent extends Event native "*MediaStreamTrackEvent" { 13068 class MediaStreamTrackEvent extends Event native "*MediaStreamTrackEvent" {
13069 13069
13070 /** @domName MediaStreamTrackEvent.track */ 13070 /** @domName MediaStreamTrackEvent.track; @docsEditable true */
13071 final MediaStreamTrack track; 13071 final MediaStreamTrack track;
13072 } 13072 }
13073 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13073 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13074 // for details. All rights reserved. Use of this source code is governed by a 13074 // for details. All rights reserved. Use of this source code is governed by a
13075 // BSD-style license that can be found in the LICENSE file. 13075 // BSD-style license that can be found in the LICENSE file.
13076 13076
13077 13077
13078 /// @domName MediaStreamTrackList 13078 /// @domName MediaStreamTrackList; @docsEditable true
13079 class MediaStreamTrackList extends EventTarget native "*MediaStreamTrackList" { 13079 class MediaStreamTrackList extends EventTarget native "*MediaStreamTrackList" {
13080 13080
13081 /** 13081 /**
13082 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 13082 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent; @docsEditable true
13083 */ 13083 */
13084 MediaStreamTrackListEvents get on => 13084 MediaStreamTrackListEvents get on =>
13085 new MediaStreamTrackListEvents(this); 13085 new MediaStreamTrackListEvents(this);
13086 13086
13087 /** @domName MediaStreamTrackList.length */ 13087 /** @domName MediaStreamTrackList.length; @docsEditable true */
13088 final int length; 13088 final int length;
13089 13089
13090 /** @domName MediaStreamTrackList.add */ 13090 /** @domName MediaStreamTrackList.add; @docsEditable true */
13091 void add(MediaStreamTrack track) native; 13091 void add(MediaStreamTrack track) native;
13092 13092
13093 /** @domName MediaStreamTrackList.addEventListener */ 13093 /** @domName MediaStreamTrackList.addEventListener; @docsEditable true */
13094 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 13094 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
13095 13095
13096 /** @domName MediaStreamTrackList.dispatchEvent */ 13096 /** @domName MediaStreamTrackList.dispatchEvent; @docsEditable true */
13097 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; 13097 bool $dom_dispatchEvent(Event event) native "dispatchEvent";
13098 13098
13099 /** @domName MediaStreamTrackList.item */ 13099 /** @domName MediaStreamTrackList.item; @docsEditable true */
13100 MediaStreamTrack item(int index) native; 13100 MediaStreamTrack item(int index) native;
13101 13101
13102 /** @domName MediaStreamTrackList.remove */ 13102 /** @domName MediaStreamTrackList.remove; @docsEditable true */
13103 void remove(MediaStreamTrack track) native; 13103 void remove(MediaStreamTrack track) native;
13104 13104
13105 /** @domName MediaStreamTrackList.removeEventListener */ 13105 /** @domName MediaStreamTrackList.removeEventListener; @docsEditable true */
13106 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 13106 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
13107 } 13107 }
13108 13108
13109 class MediaStreamTrackListEvents extends Events { 13109 class MediaStreamTrackListEvents extends Events {
13110 MediaStreamTrackListEvents(EventTarget _ptr) : super(_ptr); 13110 MediaStreamTrackListEvents(EventTarget _ptr) : super(_ptr);
13111 13111
13112 EventListenerList get addTrack => this['addtrack']; 13112 EventListenerList get addTrack => this['addtrack'];
13113 13113
13114 EventListenerList get removeTrack => this['removetrack']; 13114 EventListenerList get removeTrack => this['removetrack'];
13115 } 13115 }
13116 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13116 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13117 // for details. All rights reserved. Use of this source code is governed by a 13117 // for details. All rights reserved. Use of this source code is governed by a
13118 // BSD-style license that can be found in the LICENSE file. 13118 // BSD-style license that can be found in the LICENSE file.
13119 13119
13120 13120
13121 /// @domName MemoryInfo 13121 /// @domName MemoryInfo; @docsEditable true
13122 class MemoryInfo native "*MemoryInfo" { 13122 class MemoryInfo native "*MemoryInfo" {
13123 13123
13124 /** @domName MemoryInfo.jsHeapSizeLimit */ 13124 /** @domName MemoryInfo.jsHeapSizeLimit; @docsEditable true */
13125 final int jsHeapSizeLimit; 13125 final int jsHeapSizeLimit;
13126 13126
13127 /** @domName MemoryInfo.totalJSHeapSize */ 13127 /** @domName MemoryInfo.totalJSHeapSize; @docsEditable true */
13128 final int totalJSHeapSize; 13128 final int totalJSHeapSize;
13129 13129
13130 /** @domName MemoryInfo.usedJSHeapSize */ 13130 /** @domName MemoryInfo.usedJSHeapSize; @docsEditable true */
13131 final int usedJSHeapSize; 13131 final int usedJSHeapSize;
13132 } 13132 }
13133 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13133 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13134 // for details. All rights reserved. Use of this source code is governed by a 13134 // for details. All rights reserved. Use of this source code is governed by a
13135 // BSD-style license that can be found in the LICENSE file. 13135 // BSD-style license that can be found in the LICENSE file.
13136 13136
13137 13137
13138 /// @domName HTMLMenuElement 13138 /// @domName HTMLMenuElement; @docsEditable true
13139 class MenuElement extends Element implements Element native "*HTMLMenuElement" { 13139 class MenuElement extends Element implements Element native "*HTMLMenuElement" {
13140 13140
13141 factory MenuElement() => document.$dom_createElement("menu"); 13141 factory MenuElement() => document.$dom_createElement("menu");
13142 13142
13143 /** @domName HTMLMenuElement.compact */ 13143 /** @domName HTMLMenuElement.compact; @docsEditable true */
13144 bool compact; 13144 bool compact;
13145 } 13145 }
13146 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13146 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13147 // for details. All rights reserved. Use of this source code is governed by a 13147 // for details. All rights reserved. Use of this source code is governed by a
13148 // BSD-style license that can be found in the LICENSE file. 13148 // BSD-style license that can be found in the LICENSE file.
13149 13149
13150 13150
13151 /// @domName MessageChannel 13151 /// @domName MessageChannel; @docsEditable true
13152 class MessageChannel native "*MessageChannel" { 13152 class MessageChannel native "*MessageChannel" {
13153 13153
13154 factory MessageChannel() => _MessageChannelFactoryProvider.createMessageChanne l(); 13154 factory MessageChannel() => _MessageChannelFactoryProvider.createMessageChanne l();
13155 13155
13156 /** @domName MessageChannel.port1 */ 13156 /** @domName MessageChannel.port1; @docsEditable true */
13157 final MessagePort port1; 13157 final MessagePort port1;
13158 13158
13159 /** @domName MessageChannel.port2 */ 13159 /** @domName MessageChannel.port2; @docsEditable true */
13160 final MessagePort port2; 13160 final MessagePort port2;
13161 } 13161 }
13162 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13162 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13163 // for details. All rights reserved. Use of this source code is governed by a 13163 // for details. All rights reserved. Use of this source code is governed by a
13164 // BSD-style license that can be found in the LICENSE file. 13164 // BSD-style license that can be found in the LICENSE file.
13165 13165
13166 13166
13167 /// @domName MessageEvent 13167 /// @domName MessageEvent; @docsEditable true
13168 class MessageEvent extends Event native "*MessageEvent" { 13168 class MessageEvent extends Event native "*MessageEvent" {
13169 13169
13170 /** @domName MessageEvent.data */ 13170 /** @domName MessageEvent.data; @docsEditable true */
13171 dynamic get data => _convertNativeToDart_SerializedScriptValue(this._data); 13171 dynamic get data => _convertNativeToDart_SerializedScriptValue(this._data);
13172 dynamic get _data => JS("dynamic", "#.data", this); 13172 dynamic get _data => JS("dynamic", "#.data", this);
13173 13173
13174 /** @domName MessageEvent.lastEventId */ 13174 /** @domName MessageEvent.lastEventId; @docsEditable true */
13175 final String lastEventId; 13175 final String lastEventId;
13176 13176
13177 /** @domName MessageEvent.origin */ 13177 /** @domName MessageEvent.origin; @docsEditable true */
13178 final String origin; 13178 final String origin;
13179 13179
13180 /** @domName MessageEvent.ports */ 13180 /** @domName MessageEvent.ports; @docsEditable true */
13181 final List ports; 13181 final List ports;
13182 13182
13183 /** @domName MessageEvent.source */ 13183 /** @domName MessageEvent.source; @docsEditable true */
13184 Window get source => _convertNativeToDart_Window(this._source); 13184 Window get source => _convertNativeToDart_Window(this._source);
13185 dynamic get _source => JS("dynamic", "#.source", this); 13185 dynamic get _source => JS("dynamic", "#.source", this);
13186 13186
13187 /** @domName MessageEvent.initMessageEvent */ 13187 /** @domName MessageEvent.initMessageEvent; @docsEditable true */
13188 void initMessageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, O bject dataArg, String originArg, String lastEventIdArg, LocalWindow sourceArg, L ist messagePorts) native; 13188 void initMessageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, O bject dataArg, String originArg, String lastEventIdArg, LocalWindow sourceArg, L ist messagePorts) native;
13189 13189
13190 /** @domName MessageEvent.webkitInitMessageEvent */ 13190 /** @domName MessageEvent.webkitInitMessageEvent; @docsEditable true */
13191 void webkitInitMessageEvent(String typeArg, bool canBubbleArg, bool cancelable Arg, Object dataArg, String originArg, String lastEventIdArg, LocalWindow source Arg, List transferables) native; 13191 void webkitInitMessageEvent(String typeArg, bool canBubbleArg, bool cancelable Arg, Object dataArg, String originArg, String lastEventIdArg, LocalWindow source Arg, List transferables) native;
13192 } 13192 }
13193 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13193 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13194 // for details. All rights reserved. Use of this source code is governed by a 13194 // for details. All rights reserved. Use of this source code is governed by a
13195 // BSD-style license that can be found in the LICENSE file. 13195 // BSD-style license that can be found in the LICENSE file.
13196 13196
13197 13197
13198 /// @domName MessagePort 13198 /// @domName MessagePort; @docsEditable true
13199 class MessagePort extends EventTarget native "*MessagePort" { 13199 class MessagePort extends EventTarget native "*MessagePort" {
13200 13200
13201 /** 13201 /**
13202 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 13202 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent; @docsEditable true
13203 */ 13203 */
13204 MessagePortEvents get on => 13204 MessagePortEvents get on =>
13205 new MessagePortEvents(this); 13205 new MessagePortEvents(this);
13206 13206
13207 /** @domName MessagePort.addEventListener */ 13207 /** @domName MessagePort.addEventListener; @docsEditable true */
13208 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 13208 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
13209 13209
13210 /** @domName MessagePort.close */ 13210 /** @domName MessagePort.close; @docsEditable true */
13211 void close() native; 13211 void close() native;
13212 13212
13213 /** @domName MessagePort.dispatchEvent */ 13213 /** @domName MessagePort.dispatchEvent; @docsEditable true */
13214 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; 13214 bool $dom_dispatchEvent(Event evt) native "dispatchEvent";
13215 13215
13216 /** @domName MessagePort.postMessage */ 13216 /** @domName MessagePort.postMessage; @docsEditable true */
13217 void postMessage(/*any*/ message, [List messagePorts]) { 13217 void postMessage(/*any*/ message, [List messagePorts]) {
13218 if (?messagePorts) { 13218 if (?messagePorts) {
13219 var message_1 = _convertDartToNative_SerializedScriptValue(message); 13219 var message_1 = _convertDartToNative_SerializedScriptValue(message);
13220 _postMessage_1(message_1, messagePorts); 13220 _postMessage_1(message_1, messagePorts);
13221 return; 13221 return;
13222 } 13222 }
13223 var message_2 = _convertDartToNative_SerializedScriptValue(message); 13223 var message_2 = _convertDartToNative_SerializedScriptValue(message);
13224 _postMessage_2(message_2); 13224 _postMessage_2(message_2);
13225 return; 13225 return;
13226 } 13226 }
13227 void _postMessage_1(message, List messagePorts) native "postMessage"; 13227 void _postMessage_1(message, List messagePorts) native "postMessage";
13228 void _postMessage_2(message) native "postMessage"; 13228 void _postMessage_2(message) native "postMessage";
13229 13229
13230 /** @domName MessagePort.removeEventListener */ 13230 /** @domName MessagePort.removeEventListener; @docsEditable true */
13231 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 13231 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
13232 13232
13233 /** @domName MessagePort.start */ 13233 /** @domName MessagePort.start; @docsEditable true */
13234 void start() native; 13234 void start() native;
13235 } 13235 }
13236 13236
13237 class MessagePortEvents extends Events { 13237 class MessagePortEvents extends Events {
13238 MessagePortEvents(EventTarget _ptr) : super(_ptr); 13238 MessagePortEvents(EventTarget _ptr) : super(_ptr);
13239 13239
13240 EventListenerList get message => this['message']; 13240 EventListenerList get message => this['message'];
13241 } 13241 }
13242 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13242 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13243 // for details. All rights reserved. Use of this source code is governed by a 13243 // for details. All rights reserved. Use of this source code is governed by a
13244 // BSD-style license that can be found in the LICENSE file. 13244 // BSD-style license that can be found in the LICENSE file.
13245 13245
13246 13246
13247 /// @domName HTMLMetaElement 13247 /// @domName HTMLMetaElement; @docsEditable true
13248 class MetaElement extends Element implements Element native "*HTMLMetaElement" { 13248 class MetaElement extends Element implements Element native "*HTMLMetaElement" {
13249 13249
13250 /** @domName HTMLMetaElement.content */ 13250 /** @domName HTMLMetaElement.content; @docsEditable true */
13251 String content; 13251 String content;
13252 13252
13253 /** @domName HTMLMetaElement.httpEquiv */ 13253 /** @domName HTMLMetaElement.httpEquiv; @docsEditable true */
13254 String httpEquiv; 13254 String httpEquiv;
13255 13255
13256 /** @domName HTMLMetaElement.name */ 13256 /** @domName HTMLMetaElement.name; @docsEditable true */
13257 String name; 13257 String name;
13258 13258
13259 /** @domName HTMLMetaElement.scheme */ 13259 /** @domName HTMLMetaElement.scheme; @docsEditable true */
13260 String scheme; 13260 String scheme;
13261 } 13261 }
13262 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13262 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13263 // for details. All rights reserved. Use of this source code is governed by a 13263 // for details. All rights reserved. Use of this source code is governed by a
13264 // BSD-style license that can be found in the LICENSE file. 13264 // BSD-style license that can be found in the LICENSE file.
13265 13265
13266 13266
13267 /// @domName Metadata 13267 /// @domName Metadata; @docsEditable true
13268 class Metadata native "*Metadata" { 13268 class Metadata native "*Metadata" {
13269 13269
13270 /** @domName Metadata.modificationTime */ 13270 /** @domName Metadata.modificationTime; @docsEditable true */
13271 final Date modificationTime; 13271 final Date modificationTime;
13272 13272
13273 /** @domName Metadata.size */ 13273 /** @domName Metadata.size; @docsEditable true */
13274 final int size; 13274 final int size;
13275 } 13275 }
13276 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13276 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13277 // for details. All rights reserved. Use of this source code is governed by a 13277 // for details. All rights reserved. Use of this source code is governed by a
13278 // BSD-style license that can be found in the LICENSE file. 13278 // BSD-style license that can be found in the LICENSE file.
13279 13279
13280 // WARNING: Do not edit - generated code. 13280 // WARNING: Do not edit - generated code.
13281 13281
13282 13282
13283 typedef void MetadataCallback(Metadata metadata); 13283 typedef void MetadataCallback(Metadata metadata);
13284 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13284 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13285 // for details. All rights reserved. Use of this source code is governed by a 13285 // for details. All rights reserved. Use of this source code is governed by a
13286 // BSD-style license that can be found in the LICENSE file. 13286 // BSD-style license that can be found in the LICENSE file.
13287 13287
13288 13288
13289 /// @domName HTMLMeterElement 13289 /// @domName HTMLMeterElement; @docsEditable true
13290 class MeterElement extends Element implements Element native "*HTMLMeterElement" { 13290 class MeterElement extends Element implements Element native "*HTMLMeterElement" {
13291 13291
13292 factory MeterElement() => document.$dom_createElement("meter"); 13292 factory MeterElement() => document.$dom_createElement("meter");
13293 13293
13294 /** @domName HTMLMeterElement.high */ 13294 /** @domName HTMLMeterElement.high; @docsEditable true */
13295 num high; 13295 num high;
13296 13296
13297 /** @domName HTMLMeterElement.labels */ 13297 /** @domName HTMLMeterElement.labels; @docsEditable true */
13298 final List<Node> labels; 13298 final List<Node> labels;
13299 13299
13300 /** @domName HTMLMeterElement.low */ 13300 /** @domName HTMLMeterElement.low; @docsEditable true */
13301 num low; 13301 num low;
13302 13302
13303 /** @domName HTMLMeterElement.max */ 13303 /** @domName HTMLMeterElement.max; @docsEditable true */
13304 num max; 13304 num max;
13305 13305
13306 /** @domName HTMLMeterElement.min */ 13306 /** @domName HTMLMeterElement.min; @docsEditable true */
13307 num min; 13307 num min;
13308 13308
13309 /** @domName HTMLMeterElement.optimum */ 13309 /** @domName HTMLMeterElement.optimum; @docsEditable true */
13310 num optimum; 13310 num optimum;
13311 13311
13312 /** @domName HTMLMeterElement.value */ 13312 /** @domName HTMLMeterElement.value; @docsEditable true */
13313 num value; 13313 num value;
13314 } 13314 }
13315 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13315 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13316 // for details. All rights reserved. Use of this source code is governed by a 13316 // for details. All rights reserved. Use of this source code is governed by a
13317 // BSD-style license that can be found in the LICENSE file. 13317 // BSD-style license that can be found in the LICENSE file.
13318 13318
13319 13319
13320 /// @domName HTMLModElement 13320 /// @domName HTMLModElement; @docsEditable true
13321 class ModElement extends Element implements Element native "*HTMLModElement" { 13321 class ModElement extends Element implements Element native "*HTMLModElement" {
13322 13322
13323 /** @domName HTMLModElement.cite */ 13323 /** @domName HTMLModElement.cite; @docsEditable true */
13324 String cite; 13324 String cite;
13325 13325
13326 /** @domName HTMLModElement.dateTime */ 13326 /** @domName HTMLModElement.dateTime; @docsEditable true */
13327 String dateTime; 13327 String dateTime;
13328 } 13328 }
13329 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13329 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13330 // for details. All rights reserved. Use of this source code is governed by a 13330 // for details. All rights reserved. Use of this source code is governed by a
13331 // BSD-style license that can be found in the LICENSE file. 13331 // BSD-style license that can be found in the LICENSE file.
13332 13332
13333 13333
13334 class MouseEvent extends UIEvent native "*MouseEvent" { 13334 class MouseEvent extends UIEvent native "*MouseEvent" {
13335 factory MouseEvent(String type, Window view, int detail, int screenX, 13335 factory MouseEvent(String type, Window view, int detail, int screenX,
13336 int screenY, int clientX, int clientY, int button, [bool canBubble = true, 13336 int screenY, int clientX, int clientY, int button, [bool canBubble = true,
13337 bool cancelable = true, bool ctrlKey = false, bool altKey = false, 13337 bool cancelable = true, bool ctrlKey = false, bool altKey = false,
13338 bool shiftKey = false, bool metaKey = false, 13338 bool shiftKey = false, bool metaKey = false,
13339 EventTarget relatedTarget = null]) => 13339 EventTarget relatedTarget = null]) =>
13340 _MouseEventFactoryProvider.createMouseEvent( 13340 _MouseEventFactoryProvider.createMouseEvent(
13341 type, view, detail, screenX, screenY, 13341 type, view, detail, screenX, screenY,
13342 clientX, clientY, button, canBubble, cancelable, 13342 clientX, clientY, button, canBubble, cancelable,
13343 ctrlKey, altKey, shiftKey, metaKey, 13343 ctrlKey, altKey, shiftKey, metaKey,
13344 relatedTarget); 13344 relatedTarget);
13345 13345
13346 /** @domName MouseEvent.altKey */ 13346 /** @domName MouseEvent.altKey; @docsEditable true */
13347 final bool altKey; 13347 final bool altKey;
13348 13348
13349 /** @domName MouseEvent.button */ 13349 /** @domName MouseEvent.button; @docsEditable true */
13350 final int button; 13350 final int button;
13351 13351
13352 /** @domName MouseEvent.clientX */ 13352 /** @domName MouseEvent.clientX; @docsEditable true */
13353 final int clientX; 13353 final int clientX;
13354 13354
13355 /** @domName MouseEvent.clientY */ 13355 /** @domName MouseEvent.clientY; @docsEditable true */
13356 final int clientY; 13356 final int clientY;
13357 13357
13358 /** @domName MouseEvent.ctrlKey */ 13358 /** @domName MouseEvent.ctrlKey; @docsEditable true */
13359 final bool ctrlKey; 13359 final bool ctrlKey;
13360 13360
13361 /** @domName MouseEvent.dataTransfer */ 13361 /** @domName MouseEvent.dataTransfer; @docsEditable true */
13362 final Clipboard dataTransfer; 13362 final Clipboard dataTransfer;
13363 13363
13364 /** @domName MouseEvent.fromElement */ 13364 /** @domName MouseEvent.fromElement; @docsEditable true */
13365 final Node fromElement; 13365 final Node fromElement;
13366 13366
13367 /** @domName MouseEvent.metaKey */ 13367 /** @domName MouseEvent.metaKey; @docsEditable true */
13368 final bool metaKey; 13368 final bool metaKey;
13369 13369
13370 /** @domName MouseEvent.relatedTarget */ 13370 /** @domName MouseEvent.relatedTarget; @docsEditable true */
13371 EventTarget get relatedTarget => _convertNativeToDart_EventTarget(this._relate dTarget); 13371 EventTarget get relatedTarget => _convertNativeToDart_EventTarget(this._relate dTarget);
13372 dynamic get _relatedTarget => JS("dynamic", "#.relatedTarget", this); 13372 dynamic get _relatedTarget => JS("dynamic", "#.relatedTarget", this);
13373 13373
13374 /** @domName MouseEvent.screenX */ 13374 /** @domName MouseEvent.screenX; @docsEditable true */
13375 final int screenX; 13375 final int screenX;
13376 13376
13377 /** @domName MouseEvent.screenY */ 13377 /** @domName MouseEvent.screenY; @docsEditable true */
13378 final int screenY; 13378 final int screenY;
13379 13379
13380 /** @domName MouseEvent.shiftKey */ 13380 /** @domName MouseEvent.shiftKey; @docsEditable true */
13381 final bool shiftKey; 13381 final bool shiftKey;
13382 13382
13383 /** @domName MouseEvent.toElement */ 13383 /** @domName MouseEvent.toElement; @docsEditable true */
13384 final Node toElement; 13384 final Node toElement;
13385 13385
13386 /** @domName MouseEvent.webkitMovementX */ 13386 /** @domName MouseEvent.webkitMovementX; @docsEditable true */
13387 final int webkitMovementX; 13387 final int webkitMovementX;
13388 13388
13389 /** @domName MouseEvent.webkitMovementY */ 13389 /** @domName MouseEvent.webkitMovementY; @docsEditable true */
13390 final int webkitMovementY; 13390 final int webkitMovementY;
13391 13391
13392 /** @domName MouseEvent.x */ 13392 /** @domName MouseEvent.x; @docsEditable true */
13393 final int x; 13393 final int x;
13394 13394
13395 /** @domName MouseEvent.y */ 13395 /** @domName MouseEvent.y; @docsEditable true */
13396 final int y; 13396 final int y;
13397 13397
13398 /** @domName MouseEvent.initMouseEvent */ 13398 /** @domName MouseEvent.initMouseEvent; @docsEditable true */
13399 void $dom_initMouseEvent(String type, bool canBubble, bool cancelable, LocalWi ndow view, int detail, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, int button, EventTarget relat edTarget) { 13399 void $dom_initMouseEvent(String type, bool canBubble, bool cancelable, LocalWi ndow view, int detail, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, int button, EventTarget relat edTarget) {
13400 var relatedTarget_1 = _convertDartToNative_EventTarget(relatedTarget); 13400 var relatedTarget_1 = _convertDartToNative_EventTarget(relatedTarget);
13401 _$dom_initMouseEvent_1(type, canBubble, cancelable, view, detail, screenX, s creenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, button, relatedTar get_1); 13401 _$dom_initMouseEvent_1(type, canBubble, cancelable, view, detail, screenX, s creenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, button, relatedTar get_1);
13402 return; 13402 return;
13403 } 13403 }
13404 void _$dom_initMouseEvent_1(type, canBubble, cancelable, LocalWindow view, det ail, screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, but ton, relatedTarget) native "initMouseEvent"; 13404 void _$dom_initMouseEvent_1(type, canBubble, cancelable, LocalWindow view, det ail, screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, but ton, relatedTarget) native "initMouseEvent";
13405 13405
13406 13406
13407 int get offsetX { 13407 int get offsetX {
13408 if (JS('bool', '!!#.offsetX', this)) { 13408 if (JS('bool', '!!#.offsetX', this)) {
(...skipping 29 matching lines...) Expand all
13438 13438
13439 // WARNING: Do not edit - generated code. 13439 // WARNING: Do not edit - generated code.
13440 13440
13441 13441
13442 typedef void MutationCallback(List<MutationRecord> mutations, MutationObserver o bserver); 13442 typedef void MutationCallback(List<MutationRecord> mutations, MutationObserver o bserver);
13443 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13443 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13444 // for details. All rights reserved. Use of this source code is governed by a 13444 // for details. All rights reserved. Use of this source code is governed by a
13445 // BSD-style license that can be found in the LICENSE file. 13445 // BSD-style license that can be found in the LICENSE file.
13446 13446
13447 13447
13448 /// @domName MutationEvent 13448 /// @domName MutationEvent; @docsEditable true
13449 class MutationEvent extends Event native "*MutationEvent" { 13449 class MutationEvent extends Event native "*MutationEvent" {
13450 13450
13451 static const int ADDITION = 2; 13451 static const int ADDITION = 2;
13452 13452
13453 static const int MODIFICATION = 1; 13453 static const int MODIFICATION = 1;
13454 13454
13455 static const int REMOVAL = 3; 13455 static const int REMOVAL = 3;
13456 13456
13457 /** @domName MutationEvent.attrChange */ 13457 /** @domName MutationEvent.attrChange; @docsEditable true */
13458 final int attrChange; 13458 final int attrChange;
13459 13459
13460 /** @domName MutationEvent.attrName */ 13460 /** @domName MutationEvent.attrName; @docsEditable true */
13461 final String attrName; 13461 final String attrName;
13462 13462
13463 /** @domName MutationEvent.newValue */ 13463 /** @domName MutationEvent.newValue; @docsEditable true */
13464 final String newValue; 13464 final String newValue;
13465 13465
13466 /** @domName MutationEvent.prevValue */ 13466 /** @domName MutationEvent.prevValue; @docsEditable true */
13467 final String prevValue; 13467 final String prevValue;
13468 13468
13469 /** @domName MutationEvent.relatedNode */ 13469 /** @domName MutationEvent.relatedNode; @docsEditable true */
13470 final Node relatedNode; 13470 final Node relatedNode;
13471 13471
13472 /** @domName MutationEvent.initMutationEvent */ 13472 /** @domName MutationEvent.initMutationEvent; @docsEditable true */
13473 void initMutationEvent(String type, bool canBubble, bool cancelable, Node rela tedNode, String prevValue, String newValue, String attrName, int attrChange) nat ive; 13473 void initMutationEvent(String type, bool canBubble, bool cancelable, Node rela tedNode, String prevValue, String newValue, String attrName, int attrChange) nat ive;
13474 } 13474 }
13475 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13475 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13476 // for details. All rights reserved. Use of this source code is governed by a 13476 // for details. All rights reserved. Use of this source code is governed by a
13477 // BSD-style license that can be found in the LICENSE file. 13477 // BSD-style license that can be found in the LICENSE file.
13478 13478
13479 13479
13480 class MutationObserver native "*MutationObserver" { 13480 class MutationObserver native "*MutationObserver" {
13481 13481
13482 factory MutationObserver(MutationCallback callback) => _MutationObserverFactor yProvider.createMutationObserver(callback); 13482 factory MutationObserver(MutationCallback callback) => _MutationObserverFactor yProvider.createMutationObserver(callback);
13483 13483
13484 /** @domName MutationObserver.disconnect */ 13484 /** @domName MutationObserver.disconnect; @docsEditable true */
13485 void disconnect() native; 13485 void disconnect() native;
13486 13486
13487 /** @domName MutationObserver._observe */ 13487 /** @domName MutationObserver._observe; @docsEditable true */
13488 void _observe(Node target, Map options) { 13488 void _observe(Node target, Map options) {
13489 var options_1 = _convertDartToNative_Dictionary(options); 13489 var options_1 = _convertDartToNative_Dictionary(options);
13490 __observe_1(target, options_1); 13490 __observe_1(target, options_1);
13491 return; 13491 return;
13492 } 13492 }
13493 void __observe_1(Node target, options) native "observe"; 13493 void __observe_1(Node target, options) native "observe";
13494 13494
13495 /** @domName MutationObserver.takeRecords */ 13495 /** @domName MutationObserver.takeRecords; @docsEditable true */
13496 List<MutationRecord> takeRecords() native; 13496 List<MutationRecord> takeRecords() native;
13497 13497
13498 void observe(Node target, 13498 void observe(Node target,
13499 {Map options, 13499 {Map options,
13500 bool childList, 13500 bool childList,
13501 bool attributes, 13501 bool attributes,
13502 bool characterData, 13502 bool characterData,
13503 bool subtree, 13503 bool subtree,
13504 bool attributeOldValue, 13504 bool attributeOldValue,
13505 bool characterDataOldValue, 13505 bool characterDataOldValue,
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
13554 static _fixupList(list) => list; // TODO: Ensure is a JavaScript Array. 13554 static _fixupList(list) => list; // TODO: Ensure is a JavaScript Array.
13555 13555
13556 // Call native function with no conversions. 13556 // Call native function with no conversions.
13557 void _call(target, options) native 'observe'; 13557 void _call(target, options) native 'observe';
13558 } 13558 }
13559 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13559 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13560 // for details. All rights reserved. Use of this source code is governed by a 13560 // for details. All rights reserved. Use of this source code is governed by a
13561 // BSD-style license that can be found in the LICENSE file. 13561 // BSD-style license that can be found in the LICENSE file.
13562 13562
13563 13563
13564 /// @domName MutationRecord 13564 /// @domName MutationRecord; @docsEditable true
13565 class MutationRecord native "*MutationRecord" { 13565 class MutationRecord native "*MutationRecord" {
13566 13566
13567 /** @domName MutationRecord.addedNodes */ 13567 /** @domName MutationRecord.addedNodes; @docsEditable true */
13568 final List<Node> addedNodes; 13568 final List<Node> addedNodes;
13569 13569
13570 /** @domName MutationRecord.attributeName */ 13570 /** @domName MutationRecord.attributeName; @docsEditable true */
13571 final String attributeName; 13571 final String attributeName;
13572 13572
13573 /** @domName MutationRecord.attributeNamespace */ 13573 /** @domName MutationRecord.attributeNamespace; @docsEditable true */
13574 final String attributeNamespace; 13574 final String attributeNamespace;
13575 13575
13576 /** @domName MutationRecord.nextSibling */ 13576 /** @domName MutationRecord.nextSibling; @docsEditable true */
13577 final Node nextSibling; 13577 final Node nextSibling;
13578 13578
13579 /** @domName MutationRecord.oldValue */ 13579 /** @domName MutationRecord.oldValue; @docsEditable true */
13580 final String oldValue; 13580 final String oldValue;
13581 13581
13582 /** @domName MutationRecord.previousSibling */ 13582 /** @domName MutationRecord.previousSibling; @docsEditable true */
13583 final Node previousSibling; 13583 final Node previousSibling;
13584 13584
13585 /** @domName MutationRecord.removedNodes */ 13585 /** @domName MutationRecord.removedNodes; @docsEditable true */
13586 final List<Node> removedNodes; 13586 final List<Node> removedNodes;
13587 13587
13588 /** @domName MutationRecord.target */ 13588 /** @domName MutationRecord.target; @docsEditable true */
13589 final Node target; 13589 final Node target;
13590 13590
13591 /** @domName MutationRecord.type */ 13591 /** @domName MutationRecord.type; @docsEditable true */
13592 final String type; 13592 final String type;
13593 } 13593 }
13594 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13594 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13595 // for details. All rights reserved. Use of this source code is governed by a 13595 // for details. All rights reserved. Use of this source code is governed by a
13596 // BSD-style license that can be found in the LICENSE file. 13596 // BSD-style license that can be found in the LICENSE file.
13597 13597
13598 13598
13599 /// @domName NamedNodeMap 13599 /// @domName NamedNodeMap; @docsEditable true
13600 class NamedNodeMap implements JavaScriptIndexingBehavior, List<Node> native "*Na medNodeMap" { 13600 class NamedNodeMap implements JavaScriptIndexingBehavior, List<Node> native "*Na medNodeMap" {
13601 13601
13602 /** @domName NamedNodeMap.length */ 13602 /** @domName NamedNodeMap.length; @docsEditable true */
13603 final int length; 13603 final int length;
13604 13604
13605 Node operator[](int index) => JS("Node", "#[#]", this, index); 13605 Node operator[](int index) => JS("Node", "#[#]", this, index);
13606 13606
13607 void operator[]=(int index, Node value) { 13607 void operator[]=(int index, Node value) {
13608 throw new UnsupportedError("Cannot assign element of immutable List."); 13608 throw new UnsupportedError("Cannot assign element of immutable List.");
13609 } 13609 }
13610 // -- start List<Node> mixins. 13610 // -- start List<Node> mixins.
13611 // Node is the element type. 13611 // Node is the element type.
13612 13612
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
13680 13680
13681 void insertRange(int start, int rangeLength, [Node initialValue]) { 13681 void insertRange(int start, int rangeLength, [Node initialValue]) {
13682 throw new UnsupportedError("Cannot insertRange on immutable List."); 13682 throw new UnsupportedError("Cannot insertRange on immutable List.");
13683 } 13683 }
13684 13684
13685 List<Node> getRange(int start, int rangeLength) => 13685 List<Node> getRange(int start, int rangeLength) =>
13686 _Lists.getRange(this, start, rangeLength, <Node>[]); 13686 _Lists.getRange(this, start, rangeLength, <Node>[]);
13687 13687
13688 // -- end List<Node> mixins. 13688 // -- end List<Node> mixins.
13689 13689
13690 /** @domName NamedNodeMap.getNamedItem */ 13690 /** @domName NamedNodeMap.getNamedItem; @docsEditable true */
13691 Node getNamedItem(String name) native; 13691 Node getNamedItem(String name) native;
13692 13692
13693 /** @domName NamedNodeMap.getNamedItemNS */ 13693 /** @domName NamedNodeMap.getNamedItemNS; @docsEditable true */
13694 Node getNamedItemNS(String namespaceURI, String localName) native; 13694 Node getNamedItemNS(String namespaceURI, String localName) native;
13695 13695
13696 /** @domName NamedNodeMap.item */ 13696 /** @domName NamedNodeMap.item; @docsEditable true */
13697 Node item(int index) native; 13697 Node item(int index) native;
13698 13698
13699 /** @domName NamedNodeMap.removeNamedItem */ 13699 /** @domName NamedNodeMap.removeNamedItem; @docsEditable true */
13700 Node removeNamedItem(String name) native; 13700 Node removeNamedItem(String name) native;
13701 13701
13702 /** @domName NamedNodeMap.removeNamedItemNS */ 13702 /** @domName NamedNodeMap.removeNamedItemNS; @docsEditable true */
13703 Node removeNamedItemNS(String namespaceURI, String localName) native; 13703 Node removeNamedItemNS(String namespaceURI, String localName) native;
13704 13704
13705 /** @domName NamedNodeMap.setNamedItem */ 13705 /** @domName NamedNodeMap.setNamedItem; @docsEditable true */
13706 Node setNamedItem(Node node) native; 13706 Node setNamedItem(Node node) native;
13707 13707
13708 /** @domName NamedNodeMap.setNamedItemNS */ 13708 /** @domName NamedNodeMap.setNamedItemNS; @docsEditable true */
13709 Node setNamedItemNS(Node node) native; 13709 Node setNamedItemNS(Node node) native;
13710 } 13710 }
13711 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13711 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13712 // for details. All rights reserved. Use of this source code is governed by a 13712 // for details. All rights reserved. Use of this source code is governed by a
13713 // BSD-style license that can be found in the LICENSE file. 13713 // BSD-style license that can be found in the LICENSE file.
13714 13714
13715 13715
13716 /// @domName Navigator 13716 /// @domName Navigator; @docsEditable true
13717 class Navigator native "*Navigator" { 13717 class Navigator native "*Navigator" {
13718 13718
13719 /** @domName Navigator.appCodeName */ 13719 /** @domName Navigator.appCodeName; @docsEditable true */
13720 final String appCodeName; 13720 final String appCodeName;
13721 13721
13722 /** @domName Navigator.appName */ 13722 /** @domName Navigator.appName; @docsEditable true */
13723 final String appName; 13723 final String appName;
13724 13724
13725 /** @domName Navigator.appVersion */ 13725 /** @domName Navigator.appVersion; @docsEditable true */
13726 final String appVersion; 13726 final String appVersion;
13727 13727
13728 /** @domName Navigator.cookieEnabled */ 13728 /** @domName Navigator.cookieEnabled; @docsEditable true */
13729 final bool cookieEnabled; 13729 final bool cookieEnabled;
13730 13730
13731 /** @domName Navigator.geolocation */ 13731 /** @domName Navigator.geolocation; @docsEditable true */
13732 final Geolocation geolocation; 13732 final Geolocation geolocation;
13733 13733
13734 /** @domName Navigator.language */ 13734 /** @domName Navigator.language; @docsEditable true */
13735 final String language; 13735 final String language;
13736 13736
13737 /** @domName Navigator.mimeTypes */ 13737 /** @domName Navigator.mimeTypes; @docsEditable true */
13738 final DOMMimeTypeArray mimeTypes; 13738 final DOMMimeTypeArray mimeTypes;
13739 13739
13740 /** @domName Navigator.onLine */ 13740 /** @domName Navigator.onLine; @docsEditable true */
13741 final bool onLine; 13741 final bool onLine;
13742 13742
13743 /** @domName Navigator.platform */ 13743 /** @domName Navigator.platform; @docsEditable true */
13744 final String platform; 13744 final String platform;
13745 13745
13746 /** @domName Navigator.plugins */ 13746 /** @domName Navigator.plugins; @docsEditable true */
13747 final DOMPluginArray plugins; 13747 final DOMPluginArray plugins;
13748 13748
13749 /** @domName Navigator.product */ 13749 /** @domName Navigator.product; @docsEditable true */
13750 final String product; 13750 final String product;
13751 13751
13752 /** @domName Navigator.productSub */ 13752 /** @domName Navigator.productSub; @docsEditable true */
13753 final String productSub; 13753 final String productSub;
13754 13754
13755 /** @domName Navigator.userAgent */ 13755 /** @domName Navigator.userAgent; @docsEditable true */
13756 final String userAgent; 13756 final String userAgent;
13757 13757
13758 /** @domName Navigator.vendor */ 13758 /** @domName Navigator.vendor; @docsEditable true */
13759 final String vendor; 13759 final String vendor;
13760 13760
13761 /** @domName Navigator.vendorSub */ 13761 /** @domName Navigator.vendorSub; @docsEditable true */
13762 final String vendorSub; 13762 final String vendorSub;
13763 13763
13764 /** @domName Navigator.webkitBattery */ 13764 /** @domName Navigator.webkitBattery; @docsEditable true */
13765 final BatteryManager webkitBattery; 13765 final BatteryManager webkitBattery;
13766 13766
13767 /** @domName Navigator.getStorageUpdates */ 13767 /** @domName Navigator.getStorageUpdates; @docsEditable true */
13768 void getStorageUpdates() native; 13768 void getStorageUpdates() native;
13769 13769
13770 /** @domName Navigator.javaEnabled */ 13770 /** @domName Navigator.javaEnabled; @docsEditable true */
13771 bool javaEnabled() native; 13771 bool javaEnabled() native;
13772 13772
13773 /** @domName Navigator.webkitGetGamepads */ 13773 /** @domName Navigator.webkitGetGamepads; @docsEditable true */
13774 List<Gamepad> webkitGetGamepads() native; 13774 List<Gamepad> webkitGetGamepads() native;
13775 13775
13776 /** @domName Navigator.webkitGetUserMedia */ 13776 /** @domName Navigator.webkitGetUserMedia; @docsEditable true */
13777 void webkitGetUserMedia(Map options, NavigatorUserMediaSuccessCallback success Callback, [NavigatorUserMediaErrorCallback errorCallback]) { 13777 void webkitGetUserMedia(Map options, NavigatorUserMediaSuccessCallback success Callback, [NavigatorUserMediaErrorCallback errorCallback]) {
13778 if (?errorCallback) { 13778 if (?errorCallback) {
13779 var options_1 = _convertDartToNative_Dictionary(options); 13779 var options_1 = _convertDartToNative_Dictionary(options);
13780 _webkitGetUserMedia_1(options_1, successCallback, errorCallback); 13780 _webkitGetUserMedia_1(options_1, successCallback, errorCallback);
13781 return; 13781 return;
13782 } 13782 }
13783 var options_2 = _convertDartToNative_Dictionary(options); 13783 var options_2 = _convertDartToNative_Dictionary(options);
13784 _webkitGetUserMedia_2(options_2, successCallback); 13784 _webkitGetUserMedia_2(options_2, successCallback);
13785 return; 13785 return;
13786 } 13786 }
13787 void _webkitGetUserMedia_1(options, NavigatorUserMediaSuccessCallback successC allback, NavigatorUserMediaErrorCallback errorCallback) native "webkitGetUserMed ia"; 13787 void _webkitGetUserMedia_1(options, NavigatorUserMediaSuccessCallback successC allback, NavigatorUserMediaErrorCallback errorCallback) native "webkitGetUserMed ia";
13788 void _webkitGetUserMedia_2(options, NavigatorUserMediaSuccessCallback successC allback) native "webkitGetUserMedia"; 13788 void _webkitGetUserMedia_2(options, NavigatorUserMediaSuccessCallback successC allback) native "webkitGetUserMedia";
13789 } 13789 }
13790 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13790 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13791 // for details. All rights reserved. Use of this source code is governed by a 13791 // for details. All rights reserved. Use of this source code is governed by a
13792 // BSD-style license that can be found in the LICENSE file. 13792 // BSD-style license that can be found in the LICENSE file.
13793 13793
13794 13794
13795 /// @domName NavigatorUserMediaError 13795 /// @domName NavigatorUserMediaError; @docsEditable true
13796 class NavigatorUserMediaError native "*NavigatorUserMediaError" { 13796 class NavigatorUserMediaError native "*NavigatorUserMediaError" {
13797 13797
13798 static const int PERMISSION_DENIED = 1; 13798 static const int PERMISSION_DENIED = 1;
13799 13799
13800 /** @domName NavigatorUserMediaError.code */ 13800 /** @domName NavigatorUserMediaError.code; @docsEditable true */
13801 final int code; 13801 final int code;
13802 } 13802 }
13803 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13803 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13804 // for details. All rights reserved. Use of this source code is governed by a 13804 // for details. All rights reserved. Use of this source code is governed by a
13805 // BSD-style license that can be found in the LICENSE file. 13805 // BSD-style license that can be found in the LICENSE file.
13806 13806
13807 // WARNING: Do not edit - generated code. 13807 // WARNING: Do not edit - generated code.
13808 13808
13809 13809
13810 typedef void NavigatorUserMediaErrorCallback(NavigatorUserMediaError error); 13810 typedef void NavigatorUserMediaErrorCallback(NavigatorUserMediaError error);
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
13996 static const int ENTITY_NODE = 6; 13996 static const int ENTITY_NODE = 6;
13997 13997
13998 static const int ENTITY_REFERENCE_NODE = 5; 13998 static const int ENTITY_REFERENCE_NODE = 5;
13999 13999
14000 static const int NOTATION_NODE = 12; 14000 static const int NOTATION_NODE = 12;
14001 14001
14002 static const int PROCESSING_INSTRUCTION_NODE = 7; 14002 static const int PROCESSING_INSTRUCTION_NODE = 7;
14003 14003
14004 static const int TEXT_NODE = 3; 14004 static const int TEXT_NODE = 3;
14005 14005
14006 /** @domName Node.attributes */ 14006 /** @domName Node.attributes; @docsEditable true */
14007 NamedNodeMap get $dom_attributes => JS("NamedNodeMap", "#.attributes", this); 14007 NamedNodeMap get $dom_attributes => JS("NamedNodeMap", "#.attributes", this);
14008 14008
14009 /** @domName Node.childNodes */ 14009 /** @domName Node.childNodes; @docsEditable true */
14010 List<Node> get $dom_childNodes => JS("List<Node>", "#.childNodes", this); 14010 List<Node> get $dom_childNodes => JS("List<Node>", "#.childNodes", this);
14011 14011
14012 /** @domName Node.firstChild */ 14012 /** @domName Node.firstChild; @docsEditable true */
14013 Node get $dom_firstChild => JS("Node", "#.firstChild", this); 14013 Node get $dom_firstChild => JS("Node", "#.firstChild", this);
14014 14014
14015 /** @domName Node.lastChild */ 14015 /** @domName Node.lastChild; @docsEditable true */
14016 Node get $dom_lastChild => JS("Node", "#.lastChild", this); 14016 Node get $dom_lastChild => JS("Node", "#.lastChild", this);
14017 14017
14018 /** @domName Node.nextSibling */ 14018 /** @domName Node.nextSibling; @docsEditable true */
14019 Node get nextNode => JS("Node", "#.nextSibling", this); 14019 Node get nextNode => JS("Node", "#.nextSibling", this);
14020 14020
14021 /** @domName Node.nodeType */ 14021 /** @domName Node.nodeType; @docsEditable true */
14022 final int nodeType; 14022 final int nodeType;
14023 14023
14024 /** @domName Node.ownerDocument */ 14024 /** @domName Node.ownerDocument; @docsEditable true */
14025 Document get document => JS("Document", "#.ownerDocument", this); 14025 Document get document => JS("Document", "#.ownerDocument", this);
14026 14026
14027 /** @domName Node.parentNode */ 14027 /** @domName Node.parentNode; @docsEditable true */
14028 Node get parent => JS("Node", "#.parentNode", this); 14028 Node get parent => JS("Node", "#.parentNode", this);
14029 14029
14030 /** @domName Node.previousSibling */ 14030 /** @domName Node.previousSibling; @docsEditable true */
14031 Node get previousNode => JS("Node", "#.previousSibling", this); 14031 Node get previousNode => JS("Node", "#.previousSibling", this);
14032 14032
14033 /** @domName Node.textContent */ 14033 /** @domName Node.textContent; @docsEditable true */
14034 String get text => JS("String", "#.textContent", this); 14034 String get text => JS("String", "#.textContent", this);
14035 14035
14036 /** @domName Node.textContent */ 14036 /** @domName Node.textContent; @docsEditable true */
14037 void set text(String value) { 14037 void set text(String value) {
14038 JS("void", "#.textContent = #", this, value); 14038 JS("void", "#.textContent = #", this, value);
14039 } 14039 }
14040 14040
14041 /** @domName Node.addEventListener */ 14041 /** @domName Node.addEventListener; @docsEditable true */
14042 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 14042 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
14043 14043
14044 /** @domName Node.appendChild */ 14044 /** @domName Node.appendChild; @docsEditable true */
14045 Node $dom_appendChild(Node newChild) native "appendChild"; 14045 Node $dom_appendChild(Node newChild) native "appendChild";
14046 14046
14047 /** @domName Node.cloneNode */ 14047 /** @domName Node.cloneNode; @docsEditable true */
14048 Node clone(bool deep) native "cloneNode"; 14048 Node clone(bool deep) native "cloneNode";
14049 14049
14050 /** @domName Node.contains */ 14050 /** @domName Node.contains; @docsEditable true */
14051 bool contains(Node other) native; 14051 bool contains(Node other) native;
14052 14052
14053 /** @domName Node.dispatchEvent */ 14053 /** @domName Node.dispatchEvent; @docsEditable true */
14054 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; 14054 bool $dom_dispatchEvent(Event event) native "dispatchEvent";
14055 14055
14056 /** @domName Node.hasChildNodes */ 14056 /** @domName Node.hasChildNodes; @docsEditable true */
14057 bool hasChildNodes() native; 14057 bool hasChildNodes() native;
14058 14058
14059 /** @domName Node.insertBefore */ 14059 /** @domName Node.insertBefore; @docsEditable true */
14060 Node insertBefore(Node newChild, Node refChild) native; 14060 Node insertBefore(Node newChild, Node refChild) native;
14061 14061
14062 /** @domName Node.removeChild */ 14062 /** @domName Node.removeChild; @docsEditable true */
14063 Node $dom_removeChild(Node oldChild) native "removeChild"; 14063 Node $dom_removeChild(Node oldChild) native "removeChild";
14064 14064
14065 /** @domName Node.removeEventListener */ 14065 /** @domName Node.removeEventListener; @docsEditable true */
14066 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 14066 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
14067 14067
14068 /** @domName Node.replaceChild */ 14068 /** @domName Node.replaceChild; @docsEditable true */
14069 Node $dom_replaceChild(Node newChild, Node oldChild) native "replaceChild"; 14069 Node $dom_replaceChild(Node newChild, Node oldChild) native "replaceChild";
14070 14070
14071 } 14071 }
14072 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14072 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14073 // for details. All rights reserved. Use of this source code is governed by a 14073 // for details. All rights reserved. Use of this source code is governed by a
14074 // BSD-style license that can be found in the LICENSE file. 14074 // BSD-style license that can be found in the LICENSE file.
14075 14075
14076 14076
14077 /// @domName NodeFilter 14077 /// @domName NodeFilter; @docsEditable true
14078 class NodeFilter native "*NodeFilter" { 14078 class NodeFilter native "*NodeFilter" {
14079 14079
14080 static const int FILTER_ACCEPT = 1; 14080 static const int FILTER_ACCEPT = 1;
14081 14081
14082 static const int FILTER_REJECT = 2; 14082 static const int FILTER_REJECT = 2;
14083 14083
14084 static const int FILTER_SKIP = 3; 14084 static const int FILTER_SKIP = 3;
14085 14085
14086 static const int SHOW_ALL = 0xFFFFFFFF; 14086 static const int SHOW_ALL = 0xFFFFFFFF;
14087 14087
(...skipping 14 matching lines...) Expand all
14102 static const int SHOW_ENTITY = 0x00000020; 14102 static const int SHOW_ENTITY = 0x00000020;
14103 14103
14104 static const int SHOW_ENTITY_REFERENCE = 0x00000010; 14104 static const int SHOW_ENTITY_REFERENCE = 0x00000010;
14105 14105
14106 static const int SHOW_NOTATION = 0x00000800; 14106 static const int SHOW_NOTATION = 0x00000800;
14107 14107
14108 static const int SHOW_PROCESSING_INSTRUCTION = 0x00000040; 14108 static const int SHOW_PROCESSING_INSTRUCTION = 0x00000040;
14109 14109
14110 static const int SHOW_TEXT = 0x00000004; 14110 static const int SHOW_TEXT = 0x00000004;
14111 14111
14112 /** @domName NodeFilter.acceptNode */ 14112 /** @domName NodeFilter.acceptNode; @docsEditable true */
14113 int acceptNode(Node n) native; 14113 int acceptNode(Node n) native;
14114 } 14114 }
14115 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14115 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14116 // for details. All rights reserved. Use of this source code is governed by a 14116 // for details. All rights reserved. Use of this source code is governed by a
14117 // BSD-style license that can be found in the LICENSE file. 14117 // BSD-style license that can be found in the LICENSE file.
14118 14118
14119 14119
14120 /// @domName NodeIterator 14120 /// @domName NodeIterator; @docsEditable true
14121 class NodeIterator native "*NodeIterator" { 14121 class NodeIterator native "*NodeIterator" {
14122 14122
14123 /** @domName NodeIterator.expandEntityReferences */ 14123 /** @domName NodeIterator.expandEntityReferences; @docsEditable true */
14124 final bool expandEntityReferences; 14124 final bool expandEntityReferences;
14125 14125
14126 /** @domName NodeIterator.filter */ 14126 /** @domName NodeIterator.filter; @docsEditable true */
14127 final NodeFilter filter; 14127 final NodeFilter filter;
14128 14128
14129 /** @domName NodeIterator.pointerBeforeReferenceNode */ 14129 /** @domName NodeIterator.pointerBeforeReferenceNode; @docsEditable true */
14130 final bool pointerBeforeReferenceNode; 14130 final bool pointerBeforeReferenceNode;
14131 14131
14132 /** @domName NodeIterator.referenceNode */ 14132 /** @domName NodeIterator.referenceNode; @docsEditable true */
14133 final Node referenceNode; 14133 final Node referenceNode;
14134 14134
14135 /** @domName NodeIterator.root */ 14135 /** @domName NodeIterator.root; @docsEditable true */
14136 final Node root; 14136 final Node root;
14137 14137
14138 /** @domName NodeIterator.whatToShow */ 14138 /** @domName NodeIterator.whatToShow; @docsEditable true */
14139 final int whatToShow; 14139 final int whatToShow;
14140 14140
14141 /** @domName NodeIterator.detach */ 14141 /** @domName NodeIterator.detach; @docsEditable true */
14142 void detach() native; 14142 void detach() native;
14143 14143
14144 /** @domName NodeIterator.nextNode */ 14144 /** @domName NodeIterator.nextNode; @docsEditable true */
14145 Node nextNode() native; 14145 Node nextNode() native;
14146 14146
14147 /** @domName NodeIterator.previousNode */ 14147 /** @domName NodeIterator.previousNode; @docsEditable true */
14148 Node previousNode() native; 14148 Node previousNode() native;
14149 } 14149 }
14150 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14150 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14151 // for details. All rights reserved. Use of this source code is governed by a 14151 // for details. All rights reserved. Use of this source code is governed by a
14152 // BSD-style license that can be found in the LICENSE file. 14152 // BSD-style license that can be found in the LICENSE file.
14153 14153
14154 14154
14155 /// @domName Notation 14155 /// @domName Notation; @docsEditable true
14156 class Notation extends Node native "*Notation" { 14156 class Notation extends Node native "*Notation" {
14157 14157
14158 /** @domName Notation.publicId */ 14158 /** @domName Notation.publicId; @docsEditable true */
14159 final String publicId; 14159 final String publicId;
14160 14160
14161 /** @domName Notation.systemId */ 14161 /** @domName Notation.systemId; @docsEditable true */
14162 final String systemId; 14162 final String systemId;
14163 } 14163 }
14164 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14164 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14165 // for details. All rights reserved. Use of this source code is governed by a 14165 // for details. All rights reserved. Use of this source code is governed by a
14166 // BSD-style license that can be found in the LICENSE file. 14166 // BSD-style license that can be found in the LICENSE file.
14167 14167
14168 14168
14169 /// @domName Notification 14169 /// @domName Notification; @docsEditable true
14170 class Notification extends EventTarget native "*Notification" { 14170 class Notification extends EventTarget native "*Notification" {
14171 14171
14172 factory Notification(String title, [Map options]) { 14172 factory Notification(String title, [Map options]) {
14173 if (!?options) { 14173 if (!?options) {
14174 return _NotificationFactoryProvider.createNotification(title); 14174 return _NotificationFactoryProvider.createNotification(title);
14175 } 14175 }
14176 return _NotificationFactoryProvider.createNotification(title, options); 14176 return _NotificationFactoryProvider.createNotification(title, options);
14177 } 14177 }
14178 14178
14179 /** 14179 /**
14180 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 14180 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent; @docsEditable true
14181 */ 14181 */
14182 NotificationEvents get on => 14182 NotificationEvents get on =>
14183 new NotificationEvents(this); 14183 new NotificationEvents(this);
14184 14184
14185 /** @domName Notification.dir */ 14185 /** @domName Notification.dir; @docsEditable true */
14186 String dir; 14186 String dir;
14187 14187
14188 /** @domName Notification.permission */ 14188 /** @domName Notification.permission; @docsEditable true */
14189 final String permission; 14189 final String permission;
14190 14190
14191 /** @domName Notification.replaceId */ 14191 /** @domName Notification.replaceId; @docsEditable true */
14192 String replaceId; 14192 String replaceId;
14193 14193
14194 /** @domName Notification.tag */ 14194 /** @domName Notification.tag; @docsEditable true */
14195 String tag; 14195 String tag;
14196 14196
14197 /** @domName Notification.addEventListener */ 14197 /** @domName Notification.addEventListener; @docsEditable true */
14198 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 14198 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
14199 14199
14200 /** @domName Notification.cancel */ 14200 /** @domName Notification.cancel; @docsEditable true */
14201 void cancel() native; 14201 void cancel() native;
14202 14202
14203 /** @domName Notification.close */ 14203 /** @domName Notification.close; @docsEditable true */
14204 void close() native; 14204 void close() native;
14205 14205
14206 /** @domName Notification.dispatchEvent */ 14206 /** @domName Notification.dispatchEvent; @docsEditable true */
14207 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; 14207 bool $dom_dispatchEvent(Event evt) native "dispatchEvent";
14208 14208
14209 /** @domName Notification.removeEventListener */ 14209 /** @domName Notification.removeEventListener; @docsEditable true */
14210 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 14210 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
14211 14211
14212 /** @domName Notification.requestPermission */ 14212 /** @domName Notification.requestPermission; @docsEditable true */
14213 static void requestPermission(NotificationPermissionCallback callback) native; 14213 static void requestPermission(NotificationPermissionCallback callback) native;
14214 14214
14215 /** @domName Notification.show */ 14215 /** @domName Notification.show; @docsEditable true */
14216 void show() native; 14216 void show() native;
14217 } 14217 }
14218 14218
14219 class NotificationEvents extends Events { 14219 class NotificationEvents extends Events {
14220 NotificationEvents(EventTarget _ptr) : super(_ptr); 14220 NotificationEvents(EventTarget _ptr) : super(_ptr);
14221 14221
14222 EventListenerList get click => this['click']; 14222 EventListenerList get click => this['click'];
14223 14223
14224 EventListenerList get close => this['close']; 14224 EventListenerList get close => this['close'];
14225 14225
14226 EventListenerList get display => this['display']; 14226 EventListenerList get display => this['display'];
14227 14227
14228 EventListenerList get error => this['error']; 14228 EventListenerList get error => this['error'];
14229 14229
14230 EventListenerList get show => this['show']; 14230 EventListenerList get show => this['show'];
14231 } 14231 }
14232 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14232 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14233 // for details. All rights reserved. Use of this source code is governed by a 14233 // for details. All rights reserved. Use of this source code is governed by a
14234 // BSD-style license that can be found in the LICENSE file. 14234 // BSD-style license that can be found in the LICENSE file.
14235 14235
14236 14236
14237 /// @domName NotificationCenter 14237 /// @domName NotificationCenter; @docsEditable true
14238 class NotificationCenter native "*NotificationCenter" { 14238 class NotificationCenter native "*NotificationCenter" {
14239 14239
14240 /** @domName NotificationCenter.checkPermission */ 14240 /** @domName NotificationCenter.checkPermission; @docsEditable true */
14241 int checkPermission() native; 14241 int checkPermission() native;
14242 14242
14243 /** @domName NotificationCenter.createHTMLNotification */ 14243 /** @domName NotificationCenter.createHTMLNotification; @docsEditable true */
14244 Notification createHTMLNotification(String url) native; 14244 Notification createHTMLNotification(String url) native;
14245 14245
14246 /** @domName NotificationCenter.createNotification */ 14246 /** @domName NotificationCenter.createNotification; @docsEditable true */
14247 Notification createNotification(String iconUrl, String title, String body) nat ive; 14247 Notification createNotification(String iconUrl, String title, String body) nat ive;
14248 14248
14249 /** @domName NotificationCenter.requestPermission */ 14249 /** @domName NotificationCenter.requestPermission; @docsEditable true */
14250 void requestPermission(VoidCallback callback) native; 14250 void requestPermission(VoidCallback callback) native;
14251 } 14251 }
14252 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14252 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14253 // for details. All rights reserved. Use of this source code is governed by a 14253 // for details. All rights reserved. Use of this source code is governed by a
14254 // BSD-style license that can be found in the LICENSE file. 14254 // BSD-style license that can be found in the LICENSE file.
14255 14255
14256 // WARNING: Do not edit - generated code. 14256 // WARNING: Do not edit - generated code.
14257 14257
14258 14258
14259 typedef void NotificationPermissionCallback(String permission); 14259 typedef void NotificationPermissionCallback(String permission);
14260 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14260 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14261 // for details. All rights reserved. Use of this source code is governed by a 14261 // for details. All rights reserved. Use of this source code is governed by a
14262 // BSD-style license that can be found in the LICENSE file. 14262 // BSD-style license that can be found in the LICENSE file.
14263 14263
14264 14264
14265 /// @domName OESElementIndexUint 14265 /// @domName OESElementIndexUint; @docsEditable true
14266 class OESElementIndexUint native "*OESElementIndexUint" { 14266 class OESElementIndexUint native "*OESElementIndexUint" {
14267 } 14267 }
14268 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14268 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14269 // for details. All rights reserved. Use of this source code is governed by a 14269 // for details. All rights reserved. Use of this source code is governed by a
14270 // BSD-style license that can be found in the LICENSE file. 14270 // BSD-style license that can be found in the LICENSE file.
14271 14271
14272 14272
14273 /// @domName OESStandardDerivatives 14273 /// @domName OESStandardDerivatives; @docsEditable true
14274 class OESStandardDerivatives native "*OESStandardDerivatives" { 14274 class OESStandardDerivatives native "*OESStandardDerivatives" {
14275 14275
14276 static const int FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8B8B; 14276 static const int FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8B8B;
14277 } 14277 }
14278 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14278 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14279 // for details. All rights reserved. Use of this source code is governed by a 14279 // for details. All rights reserved. Use of this source code is governed by a
14280 // BSD-style license that can be found in the LICENSE file. 14280 // BSD-style license that can be found in the LICENSE file.
14281 14281
14282 14282
14283 /// @domName OESTextureFloat 14283 /// @domName OESTextureFloat; @docsEditable true
14284 class OESTextureFloat native "*OESTextureFloat" { 14284 class OESTextureFloat native "*OESTextureFloat" {
14285 } 14285 }
14286 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14286 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14287 // for details. All rights reserved. Use of this source code is governed by a 14287 // for details. All rights reserved. Use of this source code is governed by a
14288 // BSD-style license that can be found in the LICENSE file. 14288 // BSD-style license that can be found in the LICENSE file.
14289 14289
14290 14290
14291 /// @domName OESVertexArrayObject 14291 /// @domName OESVertexArrayObject; @docsEditable true
14292 class OESVertexArrayObject native "*OESVertexArrayObject" { 14292 class OESVertexArrayObject native "*OESVertexArrayObject" {
14293 14293
14294 static const int VERTEX_ARRAY_BINDING_OES = 0x85B5; 14294 static const int VERTEX_ARRAY_BINDING_OES = 0x85B5;
14295 14295
14296 /** @domName OESVertexArrayObject.bindVertexArrayOES */ 14296 /** @domName OESVertexArrayObject.bindVertexArrayOES; @docsEditable true */
14297 void bindVertexArrayOES(WebGLVertexArrayObjectOES arrayObject) native; 14297 void bindVertexArrayOES(WebGLVertexArrayObjectOES arrayObject) native;
14298 14298
14299 /** @domName OESVertexArrayObject.createVertexArrayOES */ 14299 /** @domName OESVertexArrayObject.createVertexArrayOES; @docsEditable true */
14300 WebGLVertexArrayObjectOES createVertexArrayOES() native; 14300 WebGLVertexArrayObjectOES createVertexArrayOES() native;
14301 14301
14302 /** @domName OESVertexArrayObject.deleteVertexArrayOES */ 14302 /** @domName OESVertexArrayObject.deleteVertexArrayOES; @docsEditable true */
14303 void deleteVertexArrayOES(WebGLVertexArrayObjectOES arrayObject) native; 14303 void deleteVertexArrayOES(WebGLVertexArrayObjectOES arrayObject) native;
14304 14304
14305 /** @domName OESVertexArrayObject.isVertexArrayOES */ 14305 /** @domName OESVertexArrayObject.isVertexArrayOES; @docsEditable true */
14306 bool isVertexArrayOES(WebGLVertexArrayObjectOES arrayObject) native; 14306 bool isVertexArrayOES(WebGLVertexArrayObjectOES arrayObject) native;
14307 } 14307 }
14308 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14308 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14309 // for details. All rights reserved. Use of this source code is governed by a 14309 // for details. All rights reserved. Use of this source code is governed by a
14310 // BSD-style license that can be found in the LICENSE file. 14310 // BSD-style license that can be found in the LICENSE file.
14311 14311
14312 14312
14313 /// @domName HTMLOListElement 14313 /// @domName HTMLOListElement; @docsEditable true
14314 class OListElement extends Element implements Element native "*HTMLOListElement" { 14314 class OListElement extends Element implements Element native "*HTMLOListElement" {
14315 14315
14316 factory OListElement() => document.$dom_createElement("ol"); 14316 factory OListElement() => document.$dom_createElement("ol");
14317 14317
14318 /** @domName HTMLOListElement.compact */ 14318 /** @domName HTMLOListElement.compact; @docsEditable true */
14319 bool compact; 14319 bool compact;
14320 14320
14321 /** @domName HTMLOListElement.reversed */ 14321 /** @domName HTMLOListElement.reversed; @docsEditable true */
14322 bool reversed; 14322 bool reversed;
14323 14323
14324 /** @domName HTMLOListElement.start */ 14324 /** @domName HTMLOListElement.start; @docsEditable true */
14325 int start; 14325 int start;
14326 14326
14327 /** @domName HTMLOListElement.type */ 14327 /** @domName HTMLOListElement.type; @docsEditable true */
14328 String type; 14328 String type;
14329 } 14329 }
14330 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14330 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14331 // for details. All rights reserved. Use of this source code is governed by a 14331 // for details. All rights reserved. Use of this source code is governed by a
14332 // BSD-style license that can be found in the LICENSE file. 14332 // BSD-style license that can be found in the LICENSE file.
14333 14333
14334 14334
14335 /// @domName HTMLObjectElement 14335 /// @domName HTMLObjectElement; @docsEditable true
14336 class ObjectElement extends Element implements Element native "*HTMLObjectElemen t" { 14336 class ObjectElement extends Element implements Element native "*HTMLObjectElemen t" {
14337 14337
14338 factory ObjectElement() => document.$dom_createElement("object"); 14338 factory ObjectElement() => document.$dom_createElement("object");
14339 14339
14340 /** @domName HTMLObjectElement.align */ 14340 /** @domName HTMLObjectElement.align; @docsEditable true */
14341 String align; 14341 String align;
14342 14342
14343 /** @domName HTMLObjectElement.archive */ 14343 /** @domName HTMLObjectElement.archive; @docsEditable true */
14344 String archive; 14344 String archive;
14345 14345
14346 /** @domName HTMLObjectElement.border */ 14346 /** @domName HTMLObjectElement.border; @docsEditable true */
14347 String border; 14347 String border;
14348 14348
14349 /** @domName HTMLObjectElement.code */ 14349 /** @domName HTMLObjectElement.code; @docsEditable true */
14350 String code; 14350 String code;
14351 14351
14352 /** @domName HTMLObjectElement.codeBase */ 14352 /** @domName HTMLObjectElement.codeBase; @docsEditable true */
14353 String codeBase; 14353 String codeBase;
14354 14354
14355 /** @domName HTMLObjectElement.codeType */ 14355 /** @domName HTMLObjectElement.codeType; @docsEditable true */
14356 String codeType; 14356 String codeType;
14357 14357
14358 /** @domName HTMLObjectElement.data */ 14358 /** @domName HTMLObjectElement.data; @docsEditable true */
14359 String data; 14359 String data;
14360 14360
14361 /** @domName HTMLObjectElement.declare */ 14361 /** @domName HTMLObjectElement.declare; @docsEditable true */
14362 bool declare; 14362 bool declare;
14363 14363
14364 /** @domName HTMLObjectElement.form */ 14364 /** @domName HTMLObjectElement.form; @docsEditable true */
14365 final FormElement form; 14365 final FormElement form;
14366 14366
14367 /** @domName HTMLObjectElement.height */ 14367 /** @domName HTMLObjectElement.height; @docsEditable true */
14368 String height; 14368 String height;
14369 14369
14370 /** @domName HTMLObjectElement.hspace */ 14370 /** @domName HTMLObjectElement.hspace; @docsEditable true */
14371 int hspace; 14371 int hspace;
14372 14372
14373 /** @domName HTMLObjectElement.name */ 14373 /** @domName HTMLObjectElement.name; @docsEditable true */
14374 String name; 14374 String name;
14375 14375
14376 /** @domName HTMLObjectElement.standby */ 14376 /** @domName HTMLObjectElement.standby; @docsEditable true */
14377 String standby; 14377 String standby;
14378 14378
14379 /** @domName HTMLObjectElement.type */ 14379 /** @domName HTMLObjectElement.type; @docsEditable true */
14380 String type; 14380 String type;
14381 14381
14382 /** @domName HTMLObjectElement.useMap */ 14382 /** @domName HTMLObjectElement.useMap; @docsEditable true */
14383 String useMap; 14383 String useMap;
14384 14384
14385 /** @domName HTMLObjectElement.validationMessage */ 14385 /** @domName HTMLObjectElement.validationMessage; @docsEditable true */
14386 final String validationMessage; 14386 final String validationMessage;
14387 14387
14388 /** @domName HTMLObjectElement.validity */ 14388 /** @domName HTMLObjectElement.validity; @docsEditable true */
14389 final ValidityState validity; 14389 final ValidityState validity;
14390 14390
14391 /** @domName HTMLObjectElement.vspace */ 14391 /** @domName HTMLObjectElement.vspace; @docsEditable true */
14392 int vspace; 14392 int vspace;
14393 14393
14394 /** @domName HTMLObjectElement.width */ 14394 /** @domName HTMLObjectElement.width; @docsEditable true */
14395 String width; 14395 String width;
14396 14396
14397 /** @domName HTMLObjectElement.willValidate */ 14397 /** @domName HTMLObjectElement.willValidate; @docsEditable true */
14398 final bool willValidate; 14398 final bool willValidate;
14399 14399
14400 /** @domName HTMLObjectElement.checkValidity */ 14400 /** @domName HTMLObjectElement.checkValidity; @docsEditable true */
14401 bool checkValidity() native; 14401 bool checkValidity() native;
14402 14402
14403 /** @domName HTMLObjectElement.setCustomValidity */ 14403 /** @domName HTMLObjectElement.setCustomValidity; @docsEditable true */
14404 void setCustomValidity(String error) native; 14404 void setCustomValidity(String error) native;
14405 } 14405 }
14406 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14406 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14407 // for details. All rights reserved. Use of this source code is governed by a 14407 // for details. All rights reserved. Use of this source code is governed by a
14408 // BSD-style license that can be found in the LICENSE file. 14408 // BSD-style license that can be found in the LICENSE file.
14409 14409
14410 14410
14411 /// @domName OfflineAudioCompletionEvent 14411 /// @domName OfflineAudioCompletionEvent; @docsEditable true
14412 class OfflineAudioCompletionEvent extends Event native "*OfflineAudioCompletionE vent" { 14412 class OfflineAudioCompletionEvent extends Event native "*OfflineAudioCompletionE vent" {
14413 14413
14414 /** @domName OfflineAudioCompletionEvent.renderedBuffer */ 14414 /** @domName OfflineAudioCompletionEvent.renderedBuffer; @docsEditable true */
14415 final AudioBuffer renderedBuffer; 14415 final AudioBuffer renderedBuffer;
14416 } 14416 }
14417 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14417 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14418 // for details. All rights reserved. Use of this source code is governed by a 14418 // for details. All rights reserved. Use of this source code is governed by a
14419 // BSD-style license that can be found in the LICENSE file. 14419 // BSD-style license that can be found in the LICENSE file.
14420 14420
14421 14421
14422 /// @domName HTMLOptGroupElement 14422 /// @domName HTMLOptGroupElement; @docsEditable true
14423 class OptGroupElement extends Element implements Element native "*HTMLOptGroupEl ement" { 14423 class OptGroupElement extends Element implements Element native "*HTMLOptGroupEl ement" {
14424 14424
14425 factory OptGroupElement() => document.$dom_createElement("optgroup"); 14425 factory OptGroupElement() => document.$dom_createElement("optgroup");
14426 14426
14427 /** @domName HTMLOptGroupElement.disabled */ 14427 /** @domName HTMLOptGroupElement.disabled; @docsEditable true */
14428 bool disabled; 14428 bool disabled;
14429 14429
14430 /** @domName HTMLOptGroupElement.label */ 14430 /** @domName HTMLOptGroupElement.label; @docsEditable true */
14431 String label; 14431 String label;
14432 } 14432 }
14433 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14433 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14434 // for details. All rights reserved. Use of this source code is governed by a 14434 // for details. All rights reserved. Use of this source code is governed by a
14435 // BSD-style license that can be found in the LICENSE file. 14435 // BSD-style license that can be found in the LICENSE file.
14436 14436
14437 14437
14438 /// @domName HTMLOptionElement 14438 /// @domName HTMLOptionElement; @docsEditable true
14439 class OptionElement extends Element implements Element native "*HTMLOptionElemen t" { 14439 class OptionElement extends Element implements Element native "*HTMLOptionElemen t" {
14440 14440
14441 factory OptionElement([String data, String value, bool defaultSelected, bool s elected]) { 14441 factory OptionElement([String data, String value, bool defaultSelected, bool s elected]) {
14442 if (!?data) { 14442 if (!?data) {
14443 return _OptionElementFactoryProvider.createOptionElement(); 14443 return _OptionElementFactoryProvider.createOptionElement();
14444 } 14444 }
14445 if (!?value) { 14445 if (!?value) {
14446 return _OptionElementFactoryProvider.createOptionElement(data); 14446 return _OptionElementFactoryProvider.createOptionElement(data);
14447 } 14447 }
14448 if (!?defaultSelected) { 14448 if (!?defaultSelected) {
14449 return _OptionElementFactoryProvider.createOptionElement(data, value); 14449 return _OptionElementFactoryProvider.createOptionElement(data, value);
14450 } 14450 }
14451 if (!?selected) { 14451 if (!?selected) {
14452 return _OptionElementFactoryProvider.createOptionElement(data, value, defa ultSelected); 14452 return _OptionElementFactoryProvider.createOptionElement(data, value, defa ultSelected);
14453 } 14453 }
14454 return _OptionElementFactoryProvider.createOptionElement(data, value, defaul tSelected, selected); 14454 return _OptionElementFactoryProvider.createOptionElement(data, value, defaul tSelected, selected);
14455 } 14455 }
14456 14456
14457 /** @domName HTMLOptionElement.defaultSelected */ 14457 /** @domName HTMLOptionElement.defaultSelected; @docsEditable true */
14458 bool defaultSelected; 14458 bool defaultSelected;
14459 14459
14460 /** @domName HTMLOptionElement.disabled */ 14460 /** @domName HTMLOptionElement.disabled; @docsEditable true */
14461 bool disabled; 14461 bool disabled;
14462 14462
14463 /** @domName HTMLOptionElement.form */ 14463 /** @domName HTMLOptionElement.form; @docsEditable true */
14464 final FormElement form; 14464 final FormElement form;
14465 14465
14466 /** @domName HTMLOptionElement.index */ 14466 /** @domName HTMLOptionElement.index; @docsEditable true */
14467 final int index; 14467 final int index;
14468 14468
14469 /** @domName HTMLOptionElement.label */ 14469 /** @domName HTMLOptionElement.label; @docsEditable true */
14470 String label; 14470 String label;
14471 14471
14472 /** @domName HTMLOptionElement.selected */ 14472 /** @domName HTMLOptionElement.selected; @docsEditable true */
14473 bool selected; 14473 bool selected;
14474 14474
14475 /** @domName HTMLOptionElement.value */ 14475 /** @domName HTMLOptionElement.value; @docsEditable true */
14476 String value; 14476 String value;
14477 } 14477 }
14478 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14478 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14479 // for details. All rights reserved. Use of this source code is governed by a 14479 // for details. All rights reserved. Use of this source code is governed by a
14480 // BSD-style license that can be found in the LICENSE file. 14480 // BSD-style license that can be found in the LICENSE file.
14481 14481
14482 14482
14483 /// @domName OscillatorNode 14483 /// @domName OscillatorNode; @docsEditable true
14484 class OscillatorNode extends AudioSourceNode native "*OscillatorNode" { 14484 class OscillatorNode extends AudioSourceNode native "*OscillatorNode" {
14485 14485
14486 static const int CUSTOM = 4; 14486 static const int CUSTOM = 4;
14487 14487
14488 static const int FINISHED_STATE = 3; 14488 static const int FINISHED_STATE = 3;
14489 14489
14490 static const int PLAYING_STATE = 2; 14490 static const int PLAYING_STATE = 2;
14491 14491
14492 static const int SAWTOOTH = 2; 14492 static const int SAWTOOTH = 2;
14493 14493
14494 static const int SCHEDULED_STATE = 1; 14494 static const int SCHEDULED_STATE = 1;
14495 14495
14496 static const int SINE = 0; 14496 static const int SINE = 0;
14497 14497
14498 static const int SQUARE = 1; 14498 static const int SQUARE = 1;
14499 14499
14500 static const int TRIANGLE = 3; 14500 static const int TRIANGLE = 3;
14501 14501
14502 static const int UNSCHEDULED_STATE = 0; 14502 static const int UNSCHEDULED_STATE = 0;
14503 14503
14504 /** @domName OscillatorNode.detune */ 14504 /** @domName OscillatorNode.detune; @docsEditable true */
14505 final AudioParam detune; 14505 final AudioParam detune;
14506 14506
14507 /** @domName OscillatorNode.frequency */ 14507 /** @domName OscillatorNode.frequency; @docsEditable true */
14508 final AudioParam frequency; 14508 final AudioParam frequency;
14509 14509
14510 /** @domName OscillatorNode.playbackState */ 14510 /** @domName OscillatorNode.playbackState; @docsEditable true */
14511 final int playbackState; 14511 final int playbackState;
14512 14512
14513 /** @domName OscillatorNode.type */ 14513 /** @domName OscillatorNode.type; @docsEditable true */
14514 int type; 14514 int type;
14515 14515
14516 /** @domName OscillatorNode.setWaveTable */ 14516 /** @domName OscillatorNode.setWaveTable; @docsEditable true */
14517 void setWaveTable(WaveTable waveTable) native; 14517 void setWaveTable(WaveTable waveTable) native;
14518 14518
14519 /** @domName OscillatorNode.start */ 14519 /** @domName OscillatorNode.start; @docsEditable true */
14520 void start(num when) native; 14520 void start(num when) native;
14521 14521
14522 /** @domName OscillatorNode.stop */ 14522 /** @domName OscillatorNode.stop; @docsEditable true */
14523 void stop(num when) native; 14523 void stop(num when) native;
14524 } 14524 }
14525 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14525 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14526 // for details. All rights reserved. Use of this source code is governed by a 14526 // for details. All rights reserved. Use of this source code is governed by a
14527 // BSD-style license that can be found in the LICENSE file. 14527 // BSD-style license that can be found in the LICENSE file.
14528 14528
14529 14529
14530 /// @domName HTMLOutputElement 14530 /// @domName HTMLOutputElement; @docsEditable true
14531 class OutputElement extends Element implements Element native "*HTMLOutputElemen t" { 14531 class OutputElement extends Element implements Element native "*HTMLOutputElemen t" {
14532 14532
14533 factory OutputElement() => document.$dom_createElement("output"); 14533 factory OutputElement() => document.$dom_createElement("output");
14534 14534
14535 /** @domName HTMLOutputElement.defaultValue */ 14535 /** @domName HTMLOutputElement.defaultValue; @docsEditable true */
14536 String defaultValue; 14536 String defaultValue;
14537 14537
14538 /** @domName HTMLOutputElement.form */ 14538 /** @domName HTMLOutputElement.form; @docsEditable true */
14539 final FormElement form; 14539 final FormElement form;
14540 14540
14541 /** @domName HTMLOutputElement.htmlFor */ 14541 /** @domName HTMLOutputElement.htmlFor; @docsEditable true */
14542 DOMSettableTokenList htmlFor; 14542 DOMSettableTokenList htmlFor;
14543 14543
14544 /** @domName HTMLOutputElement.labels */ 14544 /** @domName HTMLOutputElement.labels; @docsEditable true */
14545 final List<Node> labels; 14545 final List<Node> labels;
14546 14546
14547 /** @domName HTMLOutputElement.name */ 14547 /** @domName HTMLOutputElement.name; @docsEditable true */
14548 String name; 14548 String name;
14549 14549
14550 /** @domName HTMLOutputElement.type */ 14550 /** @domName HTMLOutputElement.type; @docsEditable true */
14551 final String type; 14551 final String type;
14552 14552
14553 /** @domName HTMLOutputElement.validationMessage */ 14553 /** @domName HTMLOutputElement.validationMessage; @docsEditable true */
14554 final String validationMessage; 14554 final String validationMessage;
14555 14555
14556 /** @domName HTMLOutputElement.validity */ 14556 /** @domName HTMLOutputElement.validity; @docsEditable true */
14557 final ValidityState validity; 14557 final ValidityState validity;
14558 14558
14559 /** @domName HTMLOutputElement.value */ 14559 /** @domName HTMLOutputElement.value; @docsEditable true */
14560 String value; 14560 String value;
14561 14561
14562 /** @domName HTMLOutputElement.willValidate */ 14562 /** @domName HTMLOutputElement.willValidate; @docsEditable true */
14563 final bool willValidate; 14563 final bool willValidate;
14564 14564
14565 /** @domName HTMLOutputElement.checkValidity */ 14565 /** @domName HTMLOutputElement.checkValidity; @docsEditable true */
14566 bool checkValidity() native; 14566 bool checkValidity() native;
14567 14567
14568 /** @domName HTMLOutputElement.setCustomValidity */ 14568 /** @domName HTMLOutputElement.setCustomValidity; @docsEditable true */
14569 void setCustomValidity(String error) native; 14569 void setCustomValidity(String error) native;
14570 } 14570 }
14571 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14571 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14572 // for details. All rights reserved. Use of this source code is governed by a 14572 // for details. All rights reserved. Use of this source code is governed by a
14573 // BSD-style license that can be found in the LICENSE file. 14573 // BSD-style license that can be found in the LICENSE file.
14574 14574
14575 14575
14576 /// @domName OverflowEvent 14576 /// @domName OverflowEvent; @docsEditable true
14577 class OverflowEvent extends Event native "*OverflowEvent" { 14577 class OverflowEvent extends Event native "*OverflowEvent" {
14578 14578
14579 static const int BOTH = 2; 14579 static const int BOTH = 2;
14580 14580
14581 static const int HORIZONTAL = 0; 14581 static const int HORIZONTAL = 0;
14582 14582
14583 static const int VERTICAL = 1; 14583 static const int VERTICAL = 1;
14584 14584
14585 /** @domName OverflowEvent.horizontalOverflow */ 14585 /** @domName OverflowEvent.horizontalOverflow; @docsEditable true */
14586 final bool horizontalOverflow; 14586 final bool horizontalOverflow;
14587 14587
14588 /** @domName OverflowEvent.orient */ 14588 /** @domName OverflowEvent.orient; @docsEditable true */
14589 final int orient; 14589 final int orient;
14590 14590
14591 /** @domName OverflowEvent.verticalOverflow */ 14591 /** @domName OverflowEvent.verticalOverflow; @docsEditable true */
14592 final bool verticalOverflow; 14592 final bool verticalOverflow;
14593 } 14593 }
14594 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14594 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14595 // for details. All rights reserved. Use of this source code is governed by a 14595 // for details. All rights reserved. Use of this source code is governed by a
14596 // BSD-style license that can be found in the LICENSE file. 14596 // BSD-style license that can be found in the LICENSE file.
14597 14597
14598 14598
14599 /// @domName PagePopupController 14599 /// @domName PagePopupController; @docsEditable true
14600 class PagePopupController native "*PagePopupController" { 14600 class PagePopupController native "*PagePopupController" {
14601 14601
14602 /** @domName PagePopupController.localizeNumberString */ 14602 /** @domName PagePopupController.localizeNumberString; @docsEditable true */
14603 String localizeNumberString(String numberString) native; 14603 String localizeNumberString(String numberString) native;
14604 14604
14605 /** @domName PagePopupController.setValueAndClosePopup */ 14605 /** @domName PagePopupController.setValueAndClosePopup; @docsEditable true */
14606 void setValueAndClosePopup(int numberValue, String stringValue) native; 14606 void setValueAndClosePopup(int numberValue, String stringValue) native;
14607 } 14607 }
14608 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14608 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14609 // for details. All rights reserved. Use of this source code is governed by a 14609 // for details. All rights reserved. Use of this source code is governed by a
14610 // BSD-style license that can be found in the LICENSE file. 14610 // BSD-style license that can be found in the LICENSE file.
14611 14611
14612 14612
14613 /// @domName PageTransitionEvent 14613 /// @domName PageTransitionEvent; @docsEditable true
14614 class PageTransitionEvent extends Event native "*PageTransitionEvent" { 14614 class PageTransitionEvent extends Event native "*PageTransitionEvent" {
14615 14615
14616 /** @domName PageTransitionEvent.persisted */ 14616 /** @domName PageTransitionEvent.persisted; @docsEditable true */
14617 final bool persisted; 14617 final bool persisted;
14618 } 14618 }
14619 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14619 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14620 // for details. All rights reserved. Use of this source code is governed by a 14620 // for details. All rights reserved. Use of this source code is governed by a
14621 // BSD-style license that can be found in the LICENSE file. 14621 // BSD-style license that can be found in the LICENSE file.
14622 14622
14623 14623
14624 /// @domName PannerNode 14624 /// @domName PannerNode; @docsEditable true
14625 class PannerNode extends AudioNode native "*PannerNode" { 14625 class PannerNode extends AudioNode native "*PannerNode" {
14626 14626
14627 static const int EQUALPOWER = 0; 14627 static const int EQUALPOWER = 0;
14628 14628
14629 static const int EXPONENTIAL_DISTANCE = 2; 14629 static const int EXPONENTIAL_DISTANCE = 2;
14630 14630
14631 static const int HRTF = 1; 14631 static const int HRTF = 1;
14632 14632
14633 static const int INVERSE_DISTANCE = 1; 14633 static const int INVERSE_DISTANCE = 1;
14634 14634
14635 static const int LINEAR_DISTANCE = 0; 14635 static const int LINEAR_DISTANCE = 0;
14636 14636
14637 static const int SOUNDFIELD = 2; 14637 static const int SOUNDFIELD = 2;
14638 14638
14639 /** @domName PannerNode.coneGain */ 14639 /** @domName PannerNode.coneGain; @docsEditable true */
14640 final AudioGain coneGain; 14640 final AudioGain coneGain;
14641 14641
14642 /** @domName PannerNode.coneInnerAngle */ 14642 /** @domName PannerNode.coneInnerAngle; @docsEditable true */
14643 num coneInnerAngle; 14643 num coneInnerAngle;
14644 14644
14645 /** @domName PannerNode.coneOuterAngle */ 14645 /** @domName PannerNode.coneOuterAngle; @docsEditable true */
14646 num coneOuterAngle; 14646 num coneOuterAngle;
14647 14647
14648 /** @domName PannerNode.coneOuterGain */ 14648 /** @domName PannerNode.coneOuterGain; @docsEditable true */
14649 num coneOuterGain; 14649 num coneOuterGain;
14650 14650
14651 /** @domName PannerNode.distanceGain */ 14651 /** @domName PannerNode.distanceGain; @docsEditable true */
14652 final AudioGain distanceGain; 14652 final AudioGain distanceGain;
14653 14653
14654 /** @domName PannerNode.distanceModel */ 14654 /** @domName PannerNode.distanceModel; @docsEditable true */
14655 int distanceModel; 14655 int distanceModel;
14656 14656
14657 /** @domName PannerNode.maxDistance */ 14657 /** @domName PannerNode.maxDistance; @docsEditable true */
14658 num maxDistance; 14658 num maxDistance;
14659 14659
14660 /** @domName PannerNode.panningModel */ 14660 /** @domName PannerNode.panningModel; @docsEditable true */
14661 int panningModel; 14661 int panningModel;
14662 14662
14663 /** @domName PannerNode.refDistance */ 14663 /** @domName PannerNode.refDistance; @docsEditable true */
14664 num refDistance; 14664 num refDistance;
14665 14665
14666 /** @domName PannerNode.rolloffFactor */ 14666 /** @domName PannerNode.rolloffFactor; @docsEditable true */
14667 num rolloffFactor; 14667 num rolloffFactor;
14668 14668
14669 /** @domName PannerNode.setOrientation */ 14669 /** @domName PannerNode.setOrientation; @docsEditable true */
14670 void setOrientation(num x, num y, num z) native; 14670 void setOrientation(num x, num y, num z) native;
14671 14671
14672 /** @domName PannerNode.setPosition */ 14672 /** @domName PannerNode.setPosition; @docsEditable true */
14673 void setPosition(num x, num y, num z) native; 14673 void setPosition(num x, num y, num z) native;
14674 14674
14675 /** @domName PannerNode.setVelocity */ 14675 /** @domName PannerNode.setVelocity; @docsEditable true */
14676 void setVelocity(num x, num y, num z) native; 14676 void setVelocity(num x, num y, num z) native;
14677 } 14677 }
14678 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14678 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14679 // for details. All rights reserved. Use of this source code is governed by a 14679 // for details. All rights reserved. Use of this source code is governed by a
14680 // BSD-style license that can be found in the LICENSE file. 14680 // BSD-style license that can be found in the LICENSE file.
14681 14681
14682 14682
14683 /// @domName HTMLParagraphElement 14683 /// @domName HTMLParagraphElement; @docsEditable true
14684 class ParagraphElement extends Element implements Element native "*HTMLParagraph Element" { 14684 class ParagraphElement extends Element implements Element native "*HTMLParagraph Element" {
14685 14685
14686 factory ParagraphElement() => document.$dom_createElement("p"); 14686 factory ParagraphElement() => document.$dom_createElement("p");
14687 14687
14688 /** @domName HTMLParagraphElement.align */ 14688 /** @domName HTMLParagraphElement.align; @docsEditable true */
14689 String align; 14689 String align;
14690 } 14690 }
14691 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14691 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14692 // for details. All rights reserved. Use of this source code is governed by a 14692 // for details. All rights reserved. Use of this source code is governed by a
14693 // BSD-style license that can be found in the LICENSE file. 14693 // BSD-style license that can be found in the LICENSE file.
14694 14694
14695 14695
14696 /// @domName HTMLParamElement 14696 /// @domName HTMLParamElement; @docsEditable true
14697 class ParamElement extends Element implements Element native "*HTMLParamElement" { 14697 class ParamElement extends Element implements Element native "*HTMLParamElement" {
14698 14698
14699 factory ParamElement() => document.$dom_createElement("param"); 14699 factory ParamElement() => document.$dom_createElement("param");
14700 14700
14701 /** @domName HTMLParamElement.name */ 14701 /** @domName HTMLParamElement.name; @docsEditable true */
14702 String name; 14702 String name;
14703 14703
14704 /** @domName HTMLParamElement.type */ 14704 /** @domName HTMLParamElement.type; @docsEditable true */
14705 String type; 14705 String type;
14706 14706
14707 /** @domName HTMLParamElement.value */ 14707 /** @domName HTMLParamElement.value; @docsEditable true */
14708 String value; 14708 String value;
14709 14709
14710 /** @domName HTMLParamElement.valueType */ 14710 /** @domName HTMLParamElement.valueType; @docsEditable true */
14711 String valueType; 14711 String valueType;
14712 } 14712 }
14713 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14713 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14714 // for details. All rights reserved. Use of this source code is governed by a 14714 // for details. All rights reserved. Use of this source code is governed by a
14715 // BSD-style license that can be found in the LICENSE file. 14715 // BSD-style license that can be found in the LICENSE file.
14716 14716
14717 14717
14718 /// @domName PeerConnection00 14718 /// @domName PeerConnection00; @docsEditable true
14719 class PeerConnection00 extends EventTarget native "*PeerConnection00" { 14719 class PeerConnection00 extends EventTarget native "*PeerConnection00" {
14720 14720
14721 factory PeerConnection00(String serverConfiguration, IceCallback iceCallback) => _PeerConnection00FactoryProvider.createPeerConnection00(serverConfiguration, iceCallback); 14721 factory PeerConnection00(String serverConfiguration, IceCallback iceCallback) => _PeerConnection00FactoryProvider.createPeerConnection00(serverConfiguration, iceCallback);
14722 14722
14723 /** 14723 /**
14724 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 14724 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent; @docsEditable true
14725 */ 14725 */
14726 PeerConnection00Events get on => 14726 PeerConnection00Events get on =>
14727 new PeerConnection00Events(this); 14727 new PeerConnection00Events(this);
14728 14728
14729 static const int ACTIVE = 2; 14729 static const int ACTIVE = 2;
14730 14730
14731 static const int CLOSED = 3; 14731 static const int CLOSED = 3;
14732 14732
14733 static const int ICE_CHECKING = 0x300; 14733 static const int ICE_CHECKING = 0x300;
14734 14734
(...skipping 12 matching lines...) Expand all
14747 static const int NEW = 0; 14747 static const int NEW = 0;
14748 14748
14749 static const int OPENING = 1; 14749 static const int OPENING = 1;
14750 14750
14751 static const int SDP_ANSWER = 0x300; 14751 static const int SDP_ANSWER = 0x300;
14752 14752
14753 static const int SDP_OFFER = 0x100; 14753 static const int SDP_OFFER = 0x100;
14754 14754
14755 static const int SDP_PRANSWER = 0x200; 14755 static const int SDP_PRANSWER = 0x200;
14756 14756
14757 /** @domName PeerConnection00.iceState */ 14757 /** @domName PeerConnection00.iceState; @docsEditable true */
14758 final int iceState; 14758 final int iceState;
14759 14759
14760 /** @domName PeerConnection00.localDescription */ 14760 /** @domName PeerConnection00.localDescription; @docsEditable true */
14761 final SessionDescription localDescription; 14761 final SessionDescription localDescription;
14762 14762
14763 /** @domName PeerConnection00.localStreams */ 14763 /** @domName PeerConnection00.localStreams; @docsEditable true */
14764 final List<MediaStream> localStreams; 14764 final List<MediaStream> localStreams;
14765 14765
14766 /** @domName PeerConnection00.readyState */ 14766 /** @domName PeerConnection00.readyState; @docsEditable true */
14767 final int readyState; 14767 final int readyState;
14768 14768
14769 /** @domName PeerConnection00.remoteDescription */ 14769 /** @domName PeerConnection00.remoteDescription; @docsEditable true */
14770 final SessionDescription remoteDescription; 14770 final SessionDescription remoteDescription;
14771 14771
14772 /** @domName PeerConnection00.remoteStreams */ 14772 /** @domName PeerConnection00.remoteStreams; @docsEditable true */
14773 final List<MediaStream> remoteStreams; 14773 final List<MediaStream> remoteStreams;
14774 14774
14775 /** @domName PeerConnection00.addEventListener */ 14775 /** @domName PeerConnection00.addEventListener; @docsEditable true */
14776 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 14776 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
14777 14777
14778 /** @domName PeerConnection00.addStream */ 14778 /** @domName PeerConnection00.addStream; @docsEditable true */
14779 void addStream(MediaStream stream, [Map mediaStreamHints]) { 14779 void addStream(MediaStream stream, [Map mediaStreamHints]) {
14780 if (?mediaStreamHints) { 14780 if (?mediaStreamHints) {
14781 var mediaStreamHints_1 = _convertDartToNative_Dictionary(mediaStreamHints) ; 14781 var mediaStreamHints_1 = _convertDartToNative_Dictionary(mediaStreamHints) ;
14782 _addStream_1(stream, mediaStreamHints_1); 14782 _addStream_1(stream, mediaStreamHints_1);
14783 return; 14783 return;
14784 } 14784 }
14785 _addStream_2(stream); 14785 _addStream_2(stream);
14786 return; 14786 return;
14787 } 14787 }
14788 void _addStream_1(MediaStream stream, mediaStreamHints) native "addStream"; 14788 void _addStream_1(MediaStream stream, mediaStreamHints) native "addStream";
14789 void _addStream_2(MediaStream stream) native "addStream"; 14789 void _addStream_2(MediaStream stream) native "addStream";
14790 14790
14791 /** @domName PeerConnection00.close */ 14791 /** @domName PeerConnection00.close; @docsEditable true */
14792 void close() native; 14792 void close() native;
14793 14793
14794 /** @domName PeerConnection00.createAnswer */ 14794 /** @domName PeerConnection00.createAnswer; @docsEditable true */
14795 SessionDescription createAnswer(String offer, [Map mediaHints]) { 14795 SessionDescription createAnswer(String offer, [Map mediaHints]) {
14796 if (?mediaHints) { 14796 if (?mediaHints) {
14797 var mediaHints_1 = _convertDartToNative_Dictionary(mediaHints); 14797 var mediaHints_1 = _convertDartToNative_Dictionary(mediaHints);
14798 return _createAnswer_1(offer, mediaHints_1); 14798 return _createAnswer_1(offer, mediaHints_1);
14799 } 14799 }
14800 return _createAnswer_2(offer); 14800 return _createAnswer_2(offer);
14801 } 14801 }
14802 SessionDescription _createAnswer_1(offer, mediaHints) native "createAnswer"; 14802 SessionDescription _createAnswer_1(offer, mediaHints) native "createAnswer";
14803 SessionDescription _createAnswer_2(offer) native "createAnswer"; 14803 SessionDescription _createAnswer_2(offer) native "createAnswer";
14804 14804
14805 /** @domName PeerConnection00.createOffer */ 14805 /** @domName PeerConnection00.createOffer; @docsEditable true */
14806 SessionDescription createOffer([Map mediaHints]) { 14806 SessionDescription createOffer([Map mediaHints]) {
14807 if (?mediaHints) { 14807 if (?mediaHints) {
14808 var mediaHints_1 = _convertDartToNative_Dictionary(mediaHints); 14808 var mediaHints_1 = _convertDartToNative_Dictionary(mediaHints);
14809 return _createOffer_1(mediaHints_1); 14809 return _createOffer_1(mediaHints_1);
14810 } 14810 }
14811 return _createOffer_2(); 14811 return _createOffer_2();
14812 } 14812 }
14813 SessionDescription _createOffer_1(mediaHints) native "createOffer"; 14813 SessionDescription _createOffer_1(mediaHints) native "createOffer";
14814 SessionDescription _createOffer_2() native "createOffer"; 14814 SessionDescription _createOffer_2() native "createOffer";
14815 14815
14816 /** @domName PeerConnection00.dispatchEvent */ 14816 /** @domName PeerConnection00.dispatchEvent; @docsEditable true */
14817 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; 14817 bool $dom_dispatchEvent(Event event) native "dispatchEvent";
14818 14818
14819 /** @domName PeerConnection00.processIceMessage */ 14819 /** @domName PeerConnection00.processIceMessage; @docsEditable true */
14820 void processIceMessage(IceCandidate candidate) native; 14820 void processIceMessage(IceCandidate candidate) native;
14821 14821
14822 /** @domName PeerConnection00.removeEventListener */ 14822 /** @domName PeerConnection00.removeEventListener; @docsEditable true */
14823 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 14823 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
14824 14824
14825 /** @domName PeerConnection00.removeStream */ 14825 /** @domName PeerConnection00.removeStream; @docsEditable true */
14826 void removeStream(MediaStream stream) native; 14826 void removeStream(MediaStream stream) native;
14827 14827
14828 /** @domName PeerConnection00.setLocalDescription */ 14828 /** @domName PeerConnection00.setLocalDescription; @docsEditable true */
14829 void setLocalDescription(int action, SessionDescription desc) native; 14829 void setLocalDescription(int action, SessionDescription desc) native;
14830 14830
14831 /** @domName PeerConnection00.setRemoteDescription */ 14831 /** @domName PeerConnection00.setRemoteDescription; @docsEditable true */
14832 void setRemoteDescription(int action, SessionDescription desc) native; 14832 void setRemoteDescription(int action, SessionDescription desc) native;
14833 14833
14834 /** @domName PeerConnection00.startIce */ 14834 /** @domName PeerConnection00.startIce; @docsEditable true */
14835 void startIce([Map iceOptions]) { 14835 void startIce([Map iceOptions]) {
14836 if (?iceOptions) { 14836 if (?iceOptions) {
14837 var iceOptions_1 = _convertDartToNative_Dictionary(iceOptions); 14837 var iceOptions_1 = _convertDartToNative_Dictionary(iceOptions);
14838 _startIce_1(iceOptions_1); 14838 _startIce_1(iceOptions_1);
14839 return; 14839 return;
14840 } 14840 }
14841 _startIce_2(); 14841 _startIce_2();
14842 return; 14842 return;
14843 } 14843 }
14844 void _startIce_1(iceOptions) native "startIce"; 14844 void _startIce_1(iceOptions) native "startIce";
(...skipping 11 matching lines...) Expand all
14856 14856
14857 EventListenerList get removeStream => this['removestream']; 14857 EventListenerList get removeStream => this['removestream'];
14858 14858
14859 EventListenerList get stateChange => this['statechange']; 14859 EventListenerList get stateChange => this['statechange'];
14860 } 14860 }
14861 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14861 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14862 // for details. All rights reserved. Use of this source code is governed by a 14862 // for details. All rights reserved. Use of this source code is governed by a
14863 // BSD-style license that can be found in the LICENSE file. 14863 // BSD-style license that can be found in the LICENSE file.
14864 14864
14865 14865
14866 /// @domName Performance 14866 /// @domName Performance; @docsEditable true
14867 class Performance extends EventTarget native "*Performance" { 14867 class Performance extends EventTarget native "*Performance" {
14868 14868
14869 /** @domName Performance.memory */ 14869 /** @domName Performance.memory; @docsEditable true */
14870 final MemoryInfo memory; 14870 final MemoryInfo memory;
14871 14871
14872 /** @domName Performance.navigation */ 14872 /** @domName Performance.navigation; @docsEditable true */
14873 final PerformanceNavigation navigation; 14873 final PerformanceNavigation navigation;
14874 14874
14875 /** @domName Performance.timing */ 14875 /** @domName Performance.timing; @docsEditable true */
14876 final PerformanceTiming timing; 14876 final PerformanceTiming timing;
14877 14877
14878 /** @domName Performance.now */ 14878 /** @domName Performance.now; @docsEditable true */
14879 num now() native; 14879 num now() native;
14880 } 14880 }
14881 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14881 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14882 // for details. All rights reserved. Use of this source code is governed by a 14882 // for details. All rights reserved. Use of this source code is governed by a
14883 // BSD-style license that can be found in the LICENSE file. 14883 // BSD-style license that can be found in the LICENSE file.
14884 14884
14885 14885
14886 /// @domName PerformanceNavigation 14886 /// @domName PerformanceNavigation; @docsEditable true
14887 class PerformanceNavigation native "*PerformanceNavigation" { 14887 class PerformanceNavigation native "*PerformanceNavigation" {
14888 14888
14889 static const int TYPE_BACK_FORWARD = 2; 14889 static const int TYPE_BACK_FORWARD = 2;
14890 14890
14891 static const int TYPE_NAVIGATE = 0; 14891 static const int TYPE_NAVIGATE = 0;
14892 14892
14893 static const int TYPE_RELOAD = 1; 14893 static const int TYPE_RELOAD = 1;
14894 14894
14895 static const int TYPE_RESERVED = 255; 14895 static const int TYPE_RESERVED = 255;
14896 14896
14897 /** @domName PerformanceNavigation.redirectCount */ 14897 /** @domName PerformanceNavigation.redirectCount; @docsEditable true */
14898 final int redirectCount; 14898 final int redirectCount;
14899 14899
14900 /** @domName PerformanceNavigation.type */ 14900 /** @domName PerformanceNavigation.type; @docsEditable true */
14901 final int type; 14901 final int type;
14902 } 14902 }
14903 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14903 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14904 // for details. All rights reserved. Use of this source code is governed by a 14904 // for details. All rights reserved. Use of this source code is governed by a
14905 // BSD-style license that can be found in the LICENSE file. 14905 // BSD-style license that can be found in the LICENSE file.
14906 14906
14907 14907
14908 /// @domName PerformanceTiming 14908 /// @domName PerformanceTiming; @docsEditable true
14909 class PerformanceTiming native "*PerformanceTiming" { 14909 class PerformanceTiming native "*PerformanceTiming" {
14910 14910
14911 /** @domName PerformanceTiming.connectEnd */ 14911 /** @domName PerformanceTiming.connectEnd; @docsEditable true */
14912 final int connectEnd; 14912 final int connectEnd;
14913 14913
14914 /** @domName PerformanceTiming.connectStart */ 14914 /** @domName PerformanceTiming.connectStart; @docsEditable true */
14915 final int connectStart; 14915 final int connectStart;
14916 14916
14917 /** @domName PerformanceTiming.domComplete */ 14917 /** @domName PerformanceTiming.domComplete; @docsEditable true */
14918 final int domComplete; 14918 final int domComplete;
14919 14919
14920 /** @domName PerformanceTiming.domContentLoadedEventEnd */ 14920 /** @domName PerformanceTiming.domContentLoadedEventEnd; @docsEditable true */
14921 final int domContentLoadedEventEnd; 14921 final int domContentLoadedEventEnd;
14922 14922
14923 /** @domName PerformanceTiming.domContentLoadedEventStart */ 14923 /** @domName PerformanceTiming.domContentLoadedEventStart; @docsEditable true */
14924 final int domContentLoadedEventStart; 14924 final int domContentLoadedEventStart;
14925 14925
14926 /** @domName PerformanceTiming.domInteractive */ 14926 /** @domName PerformanceTiming.domInteractive; @docsEditable true */
14927 final int domInteractive; 14927 final int domInteractive;
14928 14928
14929 /** @domName PerformanceTiming.domLoading */ 14929 /** @domName PerformanceTiming.domLoading; @docsEditable true */
14930 final int domLoading; 14930 final int domLoading;
14931 14931
14932 /** @domName PerformanceTiming.domainLookupEnd */ 14932 /** @domName PerformanceTiming.domainLookupEnd; @docsEditable true */
14933 final int domainLookupEnd; 14933 final int domainLookupEnd;
14934 14934
14935 /** @domName PerformanceTiming.domainLookupStart */ 14935 /** @domName PerformanceTiming.domainLookupStart; @docsEditable true */
14936 final int domainLookupStart; 14936 final int domainLookupStart;
14937 14937
14938 /** @domName PerformanceTiming.fetchStart */ 14938 /** @domName PerformanceTiming.fetchStart; @docsEditable true */
14939 final int fetchStart; 14939 final int fetchStart;
14940 14940
14941 /** @domName PerformanceTiming.loadEventEnd */ 14941 /** @domName PerformanceTiming.loadEventEnd; @docsEditable true */
14942 final int loadEventEnd; 14942 final int loadEventEnd;
14943 14943
14944 /** @domName PerformanceTiming.loadEventStart */ 14944 /** @domName PerformanceTiming.loadEventStart; @docsEditable true */
14945 final int loadEventStart; 14945 final int loadEventStart;
14946 14946
14947 /** @domName PerformanceTiming.navigationStart */ 14947 /** @domName PerformanceTiming.navigationStart; @docsEditable true */
14948 final int navigationStart; 14948 final int navigationStart;
14949 14949
14950 /** @domName PerformanceTiming.redirectEnd */ 14950 /** @domName PerformanceTiming.redirectEnd; @docsEditable true */
14951 final int redirectEnd; 14951 final int redirectEnd;
14952 14952
14953 /** @domName PerformanceTiming.redirectStart */ 14953 /** @domName PerformanceTiming.redirectStart; @docsEditable true */
14954 final int redirectStart; 14954 final int redirectStart;
14955 14955
14956 /** @domName PerformanceTiming.requestStart */ 14956 /** @domName PerformanceTiming.requestStart; @docsEditable true */
14957 final int requestStart; 14957 final int requestStart;
14958 14958
14959 /** @domName PerformanceTiming.responseEnd */ 14959 /** @domName PerformanceTiming.responseEnd; @docsEditable true */
14960 final int responseEnd; 14960 final int responseEnd;
14961 14961
14962 /** @domName PerformanceTiming.responseStart */ 14962 /** @domName PerformanceTiming.responseStart; @docsEditable true */
14963 final int responseStart; 14963 final int responseStart;
14964 14964
14965 /** @domName PerformanceTiming.secureConnectionStart */ 14965 /** @domName PerformanceTiming.secureConnectionStart; @docsEditable true */
14966 final int secureConnectionStart; 14966 final int secureConnectionStart;
14967 14967
14968 /** @domName PerformanceTiming.unloadEventEnd */ 14968 /** @domName PerformanceTiming.unloadEventEnd; @docsEditable true */
14969 final int unloadEventEnd; 14969 final int unloadEventEnd;
14970 14970
14971 /** @domName PerformanceTiming.unloadEventStart */ 14971 /** @domName PerformanceTiming.unloadEventStart; @docsEditable true */
14972 final int unloadEventStart; 14972 final int unloadEventStart;
14973 } 14973 }
14974 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14974 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14975 // for details. All rights reserved. Use of this source code is governed by a 14975 // for details. All rights reserved. Use of this source code is governed by a
14976 // BSD-style license that can be found in the LICENSE file. 14976 // BSD-style license that can be found in the LICENSE file.
14977 14977
14978 // WARNING: Do not edit - generated code. 14978 // WARNING: Do not edit - generated code.
14979 14979
14980 14980
14981 class Point native "*WebKitPoint" { 14981 class Point native "*WebKitPoint" {
14982 factory Point(num x, num y) => _PointFactoryProvider.createPoint(x, y); 14982 factory Point(num x, num y) => _PointFactoryProvider.createPoint(x, y);
14983 14983
14984 /** @domName WebKitPoint.x */ 14984 /** @domName WebKitPoint.x; @docsEditable true */
14985 num x; 14985 num x;
14986 14986
14987 /** @domName WebKitPoint.y */ 14987 /** @domName WebKitPoint.y; @docsEditable true */
14988 num y; 14988 num y;
14989 14989
14990 } 14990 }
14991 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14991 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14992 // for details. All rights reserved. Use of this source code is governed by a 14992 // for details. All rights reserved. Use of this source code is governed by a
14993 // BSD-style license that can be found in the LICENSE file. 14993 // BSD-style license that can be found in the LICENSE file.
14994 14994
14995 14995
14996 /// @domName PopStateEvent 14996 /// @domName PopStateEvent; @docsEditable true
14997 class PopStateEvent extends Event native "*PopStateEvent" { 14997 class PopStateEvent extends Event native "*PopStateEvent" {
14998 14998
14999 /** @domName PopStateEvent.state */ 14999 /** @domName PopStateEvent.state; @docsEditable true */
15000 dynamic get state => _convertNativeToDart_SerializedScriptValue(this._state); 15000 dynamic get state => _convertNativeToDart_SerializedScriptValue(this._state);
15001 dynamic get _state => JS("dynamic", "#.state", this); 15001 dynamic get _state => JS("dynamic", "#.state", this);
15002 } 15002 }
15003 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15003 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15004 // for details. All rights reserved. Use of this source code is governed by a 15004 // for details. All rights reserved. Use of this source code is governed by a
15005 // BSD-style license that can be found in the LICENSE file. 15005 // BSD-style license that can be found in the LICENSE file.
15006 15006
15007 // WARNING: Do not edit - generated code. 15007 // WARNING: Do not edit - generated code.
15008 15008
15009 15009
15010 typedef void PositionCallback(Geoposition position); 15010 typedef void PositionCallback(Geoposition position);
15011 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15011 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15012 // for details. All rights reserved. Use of this source code is governed by a 15012 // for details. All rights reserved. Use of this source code is governed by a
15013 // BSD-style license that can be found in the LICENSE file. 15013 // BSD-style license that can be found in the LICENSE file.
15014 15014
15015 15015
15016 /// @domName PositionError 15016 /// @domName PositionError; @docsEditable true
15017 class PositionError native "*PositionError" { 15017 class PositionError native "*PositionError" {
15018 15018
15019 static const int PERMISSION_DENIED = 1; 15019 static const int PERMISSION_DENIED = 1;
15020 15020
15021 static const int POSITION_UNAVAILABLE = 2; 15021 static const int POSITION_UNAVAILABLE = 2;
15022 15022
15023 static const int TIMEOUT = 3; 15023 static const int TIMEOUT = 3;
15024 15024
15025 /** @domName PositionError.code */ 15025 /** @domName PositionError.code; @docsEditable true */
15026 final int code; 15026 final int code;
15027 15027
15028 /** @domName PositionError.message */ 15028 /** @domName PositionError.message; @docsEditable true */
15029 final String message; 15029 final String message;
15030 } 15030 }
15031 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15031 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15032 // for details. All rights reserved. Use of this source code is governed by a 15032 // for details. All rights reserved. Use of this source code is governed by a
15033 // BSD-style license that can be found in the LICENSE file. 15033 // BSD-style license that can be found in the LICENSE file.
15034 15034
15035 // WARNING: Do not edit - generated code. 15035 // WARNING: Do not edit - generated code.
15036 15036
15037 15037
15038 typedef void PositionErrorCallback(PositionError error); 15038 typedef void PositionErrorCallback(PositionError error);
15039 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15039 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15040 // for details. All rights reserved. Use of this source code is governed by a 15040 // for details. All rights reserved. Use of this source code is governed by a
15041 // BSD-style license that can be found in the LICENSE file. 15041 // BSD-style license that can be found in the LICENSE file.
15042 15042
15043 15043
15044 /// @domName HTMLPreElement 15044 /// @domName HTMLPreElement; @docsEditable true
15045 class PreElement extends Element implements Element native "*HTMLPreElement" { 15045 class PreElement extends Element implements Element native "*HTMLPreElement" {
15046 15046
15047 factory PreElement() => document.$dom_createElement("pre"); 15047 factory PreElement() => document.$dom_createElement("pre");
15048 15048
15049 /** @domName HTMLPreElement.width */ 15049 /** @domName HTMLPreElement.width; @docsEditable true */
15050 int width; 15050 int width;
15051 15051
15052 /** @domName HTMLPreElement.wrap */ 15052 /** @domName HTMLPreElement.wrap; @docsEditable true */
15053 bool wrap; 15053 bool wrap;
15054 } 15054 }
15055 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15055 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15056 // for details. All rights reserved. Use of this source code is governed by a 15056 // for details. All rights reserved. Use of this source code is governed by a
15057 // BSD-style license that can be found in the LICENSE file. 15057 // BSD-style license that can be found in the LICENSE file.
15058 15058
15059 15059
15060 /// @domName ProcessingInstruction 15060 /// @domName ProcessingInstruction; @docsEditable true
15061 class ProcessingInstruction extends Node native "*ProcessingInstruction" { 15061 class ProcessingInstruction extends Node native "*ProcessingInstruction" {
15062 15062
15063 /** @domName ProcessingInstruction.data */ 15063 /** @domName ProcessingInstruction.data; @docsEditable true */
15064 String data; 15064 String data;
15065 15065
15066 /** @domName ProcessingInstruction.sheet */ 15066 /** @domName ProcessingInstruction.sheet; @docsEditable true */
15067 final StyleSheet sheet; 15067 final StyleSheet sheet;
15068 15068
15069 /** @domName ProcessingInstruction.target */ 15069 /** @domName ProcessingInstruction.target; @docsEditable true */
15070 final String target; 15070 final String target;
15071 } 15071 }
15072 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15072 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15073 // for details. All rights reserved. Use of this source code is governed by a 15073 // for details. All rights reserved. Use of this source code is governed by a
15074 // BSD-style license that can be found in the LICENSE file. 15074 // BSD-style license that can be found in the LICENSE file.
15075 15075
15076 15076
15077 /// @domName HTMLProgressElement 15077 /// @domName HTMLProgressElement; @docsEditable true
15078 class ProgressElement extends Element implements Element native "*HTMLProgressEl ement" { 15078 class ProgressElement extends Element implements Element native "*HTMLProgressEl ement" {
15079 15079
15080 factory ProgressElement() => document.$dom_createElement("progress"); 15080 factory ProgressElement() => document.$dom_createElement("progress");
15081 15081
15082 /** @domName HTMLProgressElement.labels */ 15082 /** @domName HTMLProgressElement.labels; @docsEditable true */
15083 final List<Node> labels; 15083 final List<Node> labels;
15084 15084
15085 /** @domName HTMLProgressElement.max */ 15085 /** @domName HTMLProgressElement.max; @docsEditable true */
15086 num max; 15086 num max;
15087 15087
15088 /** @domName HTMLProgressElement.position */ 15088 /** @domName HTMLProgressElement.position; @docsEditable true */
15089 final num position; 15089 final num position;
15090 15090
15091 /** @domName HTMLProgressElement.value */ 15091 /** @domName HTMLProgressElement.value; @docsEditable true */
15092 num value; 15092 num value;
15093 } 15093 }
15094 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15094 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15095 // for details. All rights reserved. Use of this source code is governed by a 15095 // for details. All rights reserved. Use of this source code is governed by a
15096 // BSD-style license that can be found in the LICENSE file. 15096 // BSD-style license that can be found in the LICENSE file.
15097 15097
15098 15098
15099 /// @domName ProgressEvent 15099 /// @domName ProgressEvent; @docsEditable true
15100 class ProgressEvent extends Event native "*ProgressEvent" { 15100 class ProgressEvent extends Event native "*ProgressEvent" {
15101 15101
15102 /** @domName ProgressEvent.lengthComputable */ 15102 /** @domName ProgressEvent.lengthComputable; @docsEditable true */
15103 final bool lengthComputable; 15103 final bool lengthComputable;
15104 15104
15105 /** @domName ProgressEvent.loaded */ 15105 /** @domName ProgressEvent.loaded; @docsEditable true */
15106 final int loaded; 15106 final int loaded;
15107 15107
15108 /** @domName ProgressEvent.total */ 15108 /** @domName ProgressEvent.total; @docsEditable true */
15109 final int total; 15109 final int total;
15110 } 15110 }
15111 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15111 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15112 // for details. All rights reserved. Use of this source code is governed by a 15112 // for details. All rights reserved. Use of this source code is governed by a
15113 // BSD-style license that can be found in the LICENSE file. 15113 // BSD-style license that can be found in the LICENSE file.
15114 15114
15115 15115
15116 /// @domName HTMLQuoteElement 15116 /// @domName HTMLQuoteElement; @docsEditable true
15117 class QuoteElement extends Element implements Element native "*HTMLQuoteElement" { 15117 class QuoteElement extends Element implements Element native "*HTMLQuoteElement" {
15118 15118
15119 /** @domName HTMLQuoteElement.cite */ 15119 /** @domName HTMLQuoteElement.cite; @docsEditable true */
15120 String cite; 15120 String cite;
15121 } 15121 }
15122 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15122 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15123 // for details. All rights reserved. Use of this source code is governed by a 15123 // for details. All rights reserved. Use of this source code is governed by a
15124 // BSD-style license that can be found in the LICENSE file. 15124 // BSD-style license that can be found in the LICENSE file.
15125 15125
15126 15126
15127 /// @domName RGBColor 15127 /// @domName RGBColor; @docsEditable true
15128 class RGBColor native "*RGBColor" { 15128 class RGBColor native "*RGBColor" {
15129 15129
15130 /** @domName RGBColor.blue */ 15130 /** @domName RGBColor.blue; @docsEditable true */
15131 final CSSPrimitiveValue blue; 15131 final CSSPrimitiveValue blue;
15132 15132
15133 /** @domName RGBColor.green */ 15133 /** @domName RGBColor.green; @docsEditable true */
15134 final CSSPrimitiveValue green; 15134 final CSSPrimitiveValue green;
15135 15135
15136 /** @domName RGBColor.red */ 15136 /** @domName RGBColor.red; @docsEditable true */
15137 final CSSPrimitiveValue red; 15137 final CSSPrimitiveValue red;
15138 } 15138 }
15139 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15139 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15140 // for details. All rights reserved. Use of this source code is governed by a 15140 // for details. All rights reserved. Use of this source code is governed by a
15141 // BSD-style license that can be found in the LICENSE file. 15141 // BSD-style license that can be found in the LICENSE file.
15142 15142
15143 15143
15144 /// @domName RTCDataChannel 15144 /// @domName RTCDataChannel; @docsEditable true
15145 class RTCDataChannel extends EventTarget native "*RTCDataChannel" { 15145 class RTCDataChannel extends EventTarget native "*RTCDataChannel" {
15146 15146
15147 /** 15147 /**
15148 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 15148 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent; @docsEditable true
15149 */ 15149 */
15150 RTCDataChannelEvents get on => 15150 RTCDataChannelEvents get on =>
15151 new RTCDataChannelEvents(this); 15151 new RTCDataChannelEvents(this);
15152 15152
15153 /** @domName RTCDataChannel.binaryType */ 15153 /** @domName RTCDataChannel.binaryType; @docsEditable true */
15154 String binaryType; 15154 String binaryType;
15155 15155
15156 /** @domName RTCDataChannel.bufferedAmount */ 15156 /** @domName RTCDataChannel.bufferedAmount; @docsEditable true */
15157 final int bufferedAmount; 15157 final int bufferedAmount;
15158 15158
15159 /** @domName RTCDataChannel.label */ 15159 /** @domName RTCDataChannel.label; @docsEditable true */
15160 final String label; 15160 final String label;
15161 15161
15162 /** @domName RTCDataChannel.readyState */ 15162 /** @domName RTCDataChannel.readyState; @docsEditable true */
15163 final String readyState; 15163 final String readyState;
15164 15164
15165 /** @domName RTCDataChannel.reliable */ 15165 /** @domName RTCDataChannel.reliable; @docsEditable true */
15166 final bool reliable; 15166 final bool reliable;
15167 15167
15168 /** @domName RTCDataChannel.addEventListener */ 15168 /** @domName RTCDataChannel.addEventListener; @docsEditable true */
15169 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 15169 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
15170 15170
15171 /** @domName RTCDataChannel.close */ 15171 /** @domName RTCDataChannel.close; @docsEditable true */
15172 void close() native; 15172 void close() native;
15173 15173
15174 /** @domName RTCDataChannel.dispatchEvent */ 15174 /** @domName RTCDataChannel.dispatchEvent; @docsEditable true */
15175 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; 15175 bool $dom_dispatchEvent(Event event) native "dispatchEvent";
15176 15176
15177 /** @domName RTCDataChannel.removeEventListener */ 15177 /** @domName RTCDataChannel.removeEventListener; @docsEditable true */
15178 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 15178 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
15179 15179
15180 /** @domName RTCDataChannel.send */ 15180 /** @domName RTCDataChannel.send; @docsEditable true */
15181 void send(data) native; 15181 void send(data) native;
15182 } 15182 }
15183 15183
15184 class RTCDataChannelEvents extends Events { 15184 class RTCDataChannelEvents extends Events {
15185 RTCDataChannelEvents(EventTarget _ptr) : super(_ptr); 15185 RTCDataChannelEvents(EventTarget _ptr) : super(_ptr);
15186 15186
15187 EventListenerList get close => this['close']; 15187 EventListenerList get close => this['close'];
15188 15188
15189 EventListenerList get error => this['error']; 15189 EventListenerList get error => this['error'];
15190 15190
15191 EventListenerList get message => this['message']; 15191 EventListenerList get message => this['message'];
15192 15192
15193 EventListenerList get open => this['open']; 15193 EventListenerList get open => this['open'];
15194 } 15194 }
15195 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15195 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15196 // for details. All rights reserved. Use of this source code is governed by a 15196 // for details. All rights reserved. Use of this source code is governed by a
15197 // BSD-style license that can be found in the LICENSE file. 15197 // BSD-style license that can be found in the LICENSE file.
15198 15198
15199 15199
15200 /// @domName RTCDataChannelEvent 15200 /// @domName RTCDataChannelEvent; @docsEditable true
15201 class RTCDataChannelEvent extends Event native "*RTCDataChannelEvent" { 15201 class RTCDataChannelEvent extends Event native "*RTCDataChannelEvent" {
15202 15202
15203 /** @domName RTCDataChannelEvent.channel */ 15203 /** @domName RTCDataChannelEvent.channel; @docsEditable true */
15204 final RTCDataChannel channel; 15204 final RTCDataChannel channel;
15205 } 15205 }
15206 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15206 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15207 // for details. All rights reserved. Use of this source code is governed by a 15207 // for details. All rights reserved. Use of this source code is governed by a
15208 // BSD-style license that can be found in the LICENSE file. 15208 // BSD-style license that can be found in the LICENSE file.
15209 15209
15210 // WARNING: Do not edit - generated code. 15210 // WARNING: Do not edit - generated code.
15211 15211
15212 15212
15213 typedef void RTCErrorCallback(String errorInformation); 15213 typedef void RTCErrorCallback(String errorInformation);
15214 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15214 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15215 // for details. All rights reserved. Use of this source code is governed by a 15215 // for details. All rights reserved. Use of this source code is governed by a
15216 // BSD-style license that can be found in the LICENSE file. 15216 // BSD-style license that can be found in the LICENSE file.
15217 15217
15218 15218
15219 /// @domName RTCIceCandidate 15219 /// @domName RTCIceCandidate; @docsEditable true
15220 class RTCIceCandidate native "*RTCIceCandidate" { 15220 class RTCIceCandidate native "*RTCIceCandidate" {
15221 15221
15222 factory RTCIceCandidate(Map dictionary) => _RTCIceCandidateFactoryProvider.cre ateRTCIceCandidate(dictionary); 15222 factory RTCIceCandidate(Map dictionary) => _RTCIceCandidateFactoryProvider.cre ateRTCIceCandidate(dictionary);
15223 15223
15224 /** @domName RTCIceCandidate.candidate */ 15224 /** @domName RTCIceCandidate.candidate; @docsEditable true */
15225 final String candidate; 15225 final String candidate;
15226 15226
15227 /** @domName RTCIceCandidate.sdpMLineIndex */ 15227 /** @domName RTCIceCandidate.sdpMLineIndex; @docsEditable true */
15228 final int sdpMLineIndex; 15228 final int sdpMLineIndex;
15229 15229
15230 /** @domName RTCIceCandidate.sdpMid */ 15230 /** @domName RTCIceCandidate.sdpMid; @docsEditable true */
15231 final String sdpMid; 15231 final String sdpMid;
15232 } 15232 }
15233 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15233 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15234 // for details. All rights reserved. Use of this source code is governed by a 15234 // for details. All rights reserved. Use of this source code is governed by a
15235 // BSD-style license that can be found in the LICENSE file. 15235 // BSD-style license that can be found in the LICENSE file.
15236 15236
15237 15237
15238 /// @domName RTCIceCandidateEvent 15238 /// @domName RTCIceCandidateEvent; @docsEditable true
15239 class RTCIceCandidateEvent extends Event native "*RTCIceCandidateEvent" { 15239 class RTCIceCandidateEvent extends Event native "*RTCIceCandidateEvent" {
15240 15240
15241 /** @domName RTCIceCandidateEvent.candidate */ 15241 /** @domName RTCIceCandidateEvent.candidate; @docsEditable true */
15242 final RTCIceCandidate candidate; 15242 final RTCIceCandidate candidate;
15243 } 15243 }
15244 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15244 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15245 // for details. All rights reserved. Use of this source code is governed by a 15245 // for details. All rights reserved. Use of this source code is governed by a
15246 // BSD-style license that can be found in the LICENSE file. 15246 // BSD-style license that can be found in the LICENSE file.
15247 15247
15248 15248
15249 /// @domName RTCPeerConnection 15249 /// @domName RTCPeerConnection; @docsEditable true
15250 class RTCPeerConnection extends EventTarget native "*RTCPeerConnection" { 15250 class RTCPeerConnection extends EventTarget native "*RTCPeerConnection" {
15251 15251
15252 factory RTCPeerConnection(Map rtcIceServers, [Map mediaConstraints]) { 15252 factory RTCPeerConnection(Map rtcIceServers, [Map mediaConstraints]) {
15253 if (!?mediaConstraints) { 15253 if (!?mediaConstraints) {
15254 return _RTCPeerConnectionFactoryProvider.createRTCPeerConnection(rtcIceSer vers); 15254 return _RTCPeerConnectionFactoryProvider.createRTCPeerConnection(rtcIceSer vers);
15255 } 15255 }
15256 return _RTCPeerConnectionFactoryProvider.createRTCPeerConnection(rtcIceServe rs, mediaConstraints); 15256 return _RTCPeerConnectionFactoryProvider.createRTCPeerConnection(rtcIceServe rs, mediaConstraints);
15257 } 15257 }
15258 15258
15259 /** 15259 /**
15260 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 15260 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent; @docsEditable true
15261 */ 15261 */
15262 RTCPeerConnectionEvents get on => 15262 RTCPeerConnectionEvents get on =>
15263 new RTCPeerConnectionEvents(this); 15263 new RTCPeerConnectionEvents(this);
15264 15264
15265 /** @domName RTCPeerConnection.iceState */ 15265 /** @domName RTCPeerConnection.iceState; @docsEditable true */
15266 final String iceState; 15266 final String iceState;
15267 15267
15268 /** @domName RTCPeerConnection.localDescription */ 15268 /** @domName RTCPeerConnection.localDescription; @docsEditable true */
15269 final RTCSessionDescription localDescription; 15269 final RTCSessionDescription localDescription;
15270 15270
15271 /** @domName RTCPeerConnection.localStreams */ 15271 /** @domName RTCPeerConnection.localStreams; @docsEditable true */
15272 final List<MediaStream> localStreams; 15272 final List<MediaStream> localStreams;
15273 15273
15274 /** @domName RTCPeerConnection.readyState */ 15274 /** @domName RTCPeerConnection.readyState; @docsEditable true */
15275 final String readyState; 15275 final String readyState;
15276 15276
15277 /** @domName RTCPeerConnection.remoteDescription */ 15277 /** @domName RTCPeerConnection.remoteDescription; @docsEditable true */
15278 final RTCSessionDescription remoteDescription; 15278 final RTCSessionDescription remoteDescription;
15279 15279
15280 /** @domName RTCPeerConnection.remoteStreams */ 15280 /** @domName RTCPeerConnection.remoteStreams; @docsEditable true */
15281 final List<MediaStream> remoteStreams; 15281 final List<MediaStream> remoteStreams;
15282 15282
15283 /** @domName RTCPeerConnection.addEventListener */ 15283 /** @domName RTCPeerConnection.addEventListener; @docsEditable true */
15284 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 15284 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
15285 15285
15286 /** @domName RTCPeerConnection.addIceCandidate */ 15286 /** @domName RTCPeerConnection.addIceCandidate; @docsEditable true */
15287 void addIceCandidate(RTCIceCandidate candidate) native; 15287 void addIceCandidate(RTCIceCandidate candidate) native;
15288 15288
15289 /** @domName RTCPeerConnection.addStream */ 15289 /** @domName RTCPeerConnection.addStream; @docsEditable true */
15290 void addStream(MediaStream stream, [Map mediaConstraints]) { 15290 void addStream(MediaStream stream, [Map mediaConstraints]) {
15291 if (?mediaConstraints) { 15291 if (?mediaConstraints) {
15292 var mediaConstraints_1 = _convertDartToNative_Dictionary(mediaConstraints) ; 15292 var mediaConstraints_1 = _convertDartToNative_Dictionary(mediaConstraints) ;
15293 _addStream_1(stream, mediaConstraints_1); 15293 _addStream_1(stream, mediaConstraints_1);
15294 return; 15294 return;
15295 } 15295 }
15296 _addStream_2(stream); 15296 _addStream_2(stream);
15297 return; 15297 return;
15298 } 15298 }
15299 void _addStream_1(MediaStream stream, mediaConstraints) native "addStream"; 15299 void _addStream_1(MediaStream stream, mediaConstraints) native "addStream";
15300 void _addStream_2(MediaStream stream) native "addStream"; 15300 void _addStream_2(MediaStream stream) native "addStream";
15301 15301
15302 /** @domName RTCPeerConnection.close */ 15302 /** @domName RTCPeerConnection.close; @docsEditable true */
15303 void close() native; 15303 void close() native;
15304 15304
15305 /** @domName RTCPeerConnection.createAnswer */ 15305 /** @domName RTCPeerConnection.createAnswer; @docsEditable true */
15306 void createAnswer(RTCSessionDescriptionCallback successCallback, [RTCErrorCall back failureCallback, Map mediaConstraints]) { 15306 void createAnswer(RTCSessionDescriptionCallback successCallback, [RTCErrorCall back failureCallback, Map mediaConstraints]) {
15307 if (?mediaConstraints) { 15307 if (?mediaConstraints) {
15308 var mediaConstraints_1 = _convertDartToNative_Dictionary(mediaConstraints) ; 15308 var mediaConstraints_1 = _convertDartToNative_Dictionary(mediaConstraints) ;
15309 _createAnswer_1(successCallback, failureCallback, mediaConstraints_1); 15309 _createAnswer_1(successCallback, failureCallback, mediaConstraints_1);
15310 return; 15310 return;
15311 } 15311 }
15312 _createAnswer_2(successCallback, failureCallback); 15312 _createAnswer_2(successCallback, failureCallback);
15313 return; 15313 return;
15314 } 15314 }
15315 void _createAnswer_1(RTCSessionDescriptionCallback successCallback, RTCErrorCa llback failureCallback, mediaConstraints) native "createAnswer"; 15315 void _createAnswer_1(RTCSessionDescriptionCallback successCallback, RTCErrorCa llback failureCallback, mediaConstraints) native "createAnswer";
15316 void _createAnswer_2(RTCSessionDescriptionCallback successCallback, RTCErrorCa llback failureCallback) native "createAnswer"; 15316 void _createAnswer_2(RTCSessionDescriptionCallback successCallback, RTCErrorCa llback failureCallback) native "createAnswer";
15317 15317
15318 /** @domName RTCPeerConnection.createDataChannel */ 15318 /** @domName RTCPeerConnection.createDataChannel; @docsEditable true */
15319 RTCDataChannel createDataChannel(String label, [Map options]) { 15319 RTCDataChannel createDataChannel(String label, [Map options]) {
15320 if (?options) { 15320 if (?options) {
15321 var options_1 = _convertDartToNative_Dictionary(options); 15321 var options_1 = _convertDartToNative_Dictionary(options);
15322 return _createDataChannel_1(label, options_1); 15322 return _createDataChannel_1(label, options_1);
15323 } 15323 }
15324 return _createDataChannel_2(label); 15324 return _createDataChannel_2(label);
15325 } 15325 }
15326 RTCDataChannel _createDataChannel_1(label, options) native "createDataChannel" ; 15326 RTCDataChannel _createDataChannel_1(label, options) native "createDataChannel" ;
15327 RTCDataChannel _createDataChannel_2(label) native "createDataChannel"; 15327 RTCDataChannel _createDataChannel_2(label) native "createDataChannel";
15328 15328
15329 /** @domName RTCPeerConnection.createOffer */ 15329 /** @domName RTCPeerConnection.createOffer; @docsEditable true */
15330 void createOffer(RTCSessionDescriptionCallback successCallback, [RTCErrorCallb ack failureCallback, Map mediaConstraints]) { 15330 void createOffer(RTCSessionDescriptionCallback successCallback, [RTCErrorCallb ack failureCallback, Map mediaConstraints]) {
15331 if (?mediaConstraints) { 15331 if (?mediaConstraints) {
15332 var mediaConstraints_1 = _convertDartToNative_Dictionary(mediaConstraints) ; 15332 var mediaConstraints_1 = _convertDartToNative_Dictionary(mediaConstraints) ;
15333 _createOffer_1(successCallback, failureCallback, mediaConstraints_1); 15333 _createOffer_1(successCallback, failureCallback, mediaConstraints_1);
15334 return; 15334 return;
15335 } 15335 }
15336 _createOffer_2(successCallback, failureCallback); 15336 _createOffer_2(successCallback, failureCallback);
15337 return; 15337 return;
15338 } 15338 }
15339 void _createOffer_1(RTCSessionDescriptionCallback successCallback, RTCErrorCal lback failureCallback, mediaConstraints) native "createOffer"; 15339 void _createOffer_1(RTCSessionDescriptionCallback successCallback, RTCErrorCal lback failureCallback, mediaConstraints) native "createOffer";
15340 void _createOffer_2(RTCSessionDescriptionCallback successCallback, RTCErrorCal lback failureCallback) native "createOffer"; 15340 void _createOffer_2(RTCSessionDescriptionCallback successCallback, RTCErrorCal lback failureCallback) native "createOffer";
15341 15341
15342 /** @domName RTCPeerConnection.dispatchEvent */ 15342 /** @domName RTCPeerConnection.dispatchEvent; @docsEditable true */
15343 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; 15343 bool $dom_dispatchEvent(Event event) native "dispatchEvent";
15344 15344
15345 /** @domName RTCPeerConnection.getStats */ 15345 /** @domName RTCPeerConnection.getStats; @docsEditable true */
15346 void getStats(RTCStatsCallback successCallback, MediaStreamTrack selector) nat ive; 15346 void getStats(RTCStatsCallback successCallback, MediaStreamTrack selector) nat ive;
15347 15347
15348 /** @domName RTCPeerConnection.removeEventListener */ 15348 /** @domName RTCPeerConnection.removeEventListener; @docsEditable true */
15349 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 15349 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
15350 15350
15351 /** @domName RTCPeerConnection.removeStream */ 15351 /** @domName RTCPeerConnection.removeStream; @docsEditable true */
15352 void removeStream(MediaStream stream) native; 15352 void removeStream(MediaStream stream) native;
15353 15353
15354 /** @domName RTCPeerConnection.setLocalDescription */ 15354 /** @domName RTCPeerConnection.setLocalDescription; @docsEditable true */
15355 void setLocalDescription(RTCSessionDescription description, [VoidCallback succ essCallback, RTCErrorCallback failureCallback]) native; 15355 void setLocalDescription(RTCSessionDescription description, [VoidCallback succ essCallback, RTCErrorCallback failureCallback]) native;
15356 15356
15357 /** @domName RTCPeerConnection.setRemoteDescription */ 15357 /** @domName RTCPeerConnection.setRemoteDescription; @docsEditable true */
15358 void setRemoteDescription(RTCSessionDescription description, [VoidCallback suc cessCallback, RTCErrorCallback failureCallback]) native; 15358 void setRemoteDescription(RTCSessionDescription description, [VoidCallback suc cessCallback, RTCErrorCallback failureCallback]) native;
15359 15359
15360 /** @domName RTCPeerConnection.updateIce */ 15360 /** @domName RTCPeerConnection.updateIce; @docsEditable true */
15361 void updateIce([Map configuration, Map mediaConstraints]) { 15361 void updateIce([Map configuration, Map mediaConstraints]) {
15362 if (?mediaConstraints) { 15362 if (?mediaConstraints) {
15363 var configuration_1 = _convertDartToNative_Dictionary(configuration); 15363 var configuration_1 = _convertDartToNative_Dictionary(configuration);
15364 var mediaConstraints_2 = _convertDartToNative_Dictionary(mediaConstraints) ; 15364 var mediaConstraints_2 = _convertDartToNative_Dictionary(mediaConstraints) ;
15365 _updateIce_1(configuration_1, mediaConstraints_2); 15365 _updateIce_1(configuration_1, mediaConstraints_2);
15366 return; 15366 return;
15367 } 15367 }
15368 if (?configuration) { 15368 if (?configuration) {
15369 var configuration_3 = _convertDartToNative_Dictionary(configuration); 15369 var configuration_3 = _convertDartToNative_Dictionary(configuration);
15370 _updateIce_2(configuration_3); 15370 _updateIce_2(configuration_3);
(...skipping 22 matching lines...) Expand all
15393 15393
15394 EventListenerList get removeStream => this['removestream']; 15394 EventListenerList get removeStream => this['removestream'];
15395 15395
15396 EventListenerList get stateChange => this['statechange']; 15396 EventListenerList get stateChange => this['statechange'];
15397 } 15397 }
15398 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15398 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15399 // for details. All rights reserved. Use of this source code is governed by a 15399 // for details. All rights reserved. Use of this source code is governed by a
15400 // BSD-style license that can be found in the LICENSE file. 15400 // BSD-style license that can be found in the LICENSE file.
15401 15401
15402 15402
15403 /// @domName RTCSessionDescription 15403 /// @domName RTCSessionDescription; @docsEditable true
15404 class RTCSessionDescription native "*RTCSessionDescription" { 15404 class RTCSessionDescription native "*RTCSessionDescription" {
15405 15405
15406 factory RTCSessionDescription(Map dictionary) => _RTCSessionDescriptionFactory Provider.createRTCSessionDescription(dictionary); 15406 factory RTCSessionDescription(Map dictionary) => _RTCSessionDescriptionFactory Provider.createRTCSessionDescription(dictionary);
15407 15407
15408 /** @domName RTCSessionDescription.sdp */ 15408 /** @domName RTCSessionDescription.sdp; @docsEditable true */
15409 String sdp; 15409 String sdp;
15410 15410
15411 /** @domName RTCSessionDescription.type */ 15411 /** @domName RTCSessionDescription.type; @docsEditable true */
15412 String type; 15412 String type;
15413 } 15413 }
15414 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15414 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15415 // for details. All rights reserved. Use of this source code is governed by a 15415 // for details. All rights reserved. Use of this source code is governed by a
15416 // BSD-style license that can be found in the LICENSE file. 15416 // BSD-style license that can be found in the LICENSE file.
15417 15417
15418 // WARNING: Do not edit - generated code. 15418 // WARNING: Do not edit - generated code.
15419 15419
15420 15420
15421 typedef void RTCSessionDescriptionCallback(RTCSessionDescription sdp); 15421 typedef void RTCSessionDescriptionCallback(RTCSessionDescription sdp);
15422 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15422 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15423 // for details. All rights reserved. Use of this source code is governed by a 15423 // for details. All rights reserved. Use of this source code is governed by a
15424 // BSD-style license that can be found in the LICENSE file. 15424 // BSD-style license that can be found in the LICENSE file.
15425 15425
15426 // WARNING: Do not edit - generated code. 15426 // WARNING: Do not edit - generated code.
15427 15427
15428 15428
15429 typedef void RTCStatsCallback(RTCStatsResponse response); 15429 typedef void RTCStatsCallback(RTCStatsResponse response);
15430 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15430 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15431 // for details. All rights reserved. Use of this source code is governed by a 15431 // for details. All rights reserved. Use of this source code is governed by a
15432 // BSD-style license that can be found in the LICENSE file. 15432 // BSD-style license that can be found in the LICENSE file.
15433 15433
15434 15434
15435 /// @domName RTCStatsElement 15435 /// @domName RTCStatsElement; @docsEditable true
15436 class RTCStatsElement native "*RTCStatsElement" { 15436 class RTCStatsElement native "*RTCStatsElement" {
15437 15437
15438 /** @domName RTCStatsElement.timestamp */ 15438 /** @domName RTCStatsElement.timestamp; @docsEditable true */
15439 final Date timestamp; 15439 final Date timestamp;
15440 15440
15441 /** @domName RTCStatsElement.stat */ 15441 /** @domName RTCStatsElement.stat; @docsEditable true */
15442 String stat(String name) native; 15442 String stat(String name) native;
15443 } 15443 }
15444 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15444 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15445 // for details. All rights reserved. Use of this source code is governed by a 15445 // for details. All rights reserved. Use of this source code is governed by a
15446 // BSD-style license that can be found in the LICENSE file. 15446 // BSD-style license that can be found in the LICENSE file.
15447 15447
15448 15448
15449 /// @domName RTCStatsReport 15449 /// @domName RTCStatsReport; @docsEditable true
15450 class RTCStatsReport native "*RTCStatsReport" { 15450 class RTCStatsReport native "*RTCStatsReport" {
15451 15451
15452 /** @domName RTCStatsReport.local */ 15452 /** @domName RTCStatsReport.local; @docsEditable true */
15453 final RTCStatsElement local; 15453 final RTCStatsElement local;
15454 15454
15455 /** @domName RTCStatsReport.remote */ 15455 /** @domName RTCStatsReport.remote; @docsEditable true */
15456 final RTCStatsElement remote; 15456 final RTCStatsElement remote;
15457 } 15457 }
15458 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15458 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15459 // for details. All rights reserved. Use of this source code is governed by a 15459 // for details. All rights reserved. Use of this source code is governed by a
15460 // BSD-style license that can be found in the LICENSE file. 15460 // BSD-style license that can be found in the LICENSE file.
15461 15461
15462 15462
15463 /// @domName RTCStatsResponse 15463 /// @domName RTCStatsResponse; @docsEditable true
15464 class RTCStatsResponse native "*RTCStatsResponse" { 15464 class RTCStatsResponse native "*RTCStatsResponse" {
15465 15465
15466 /** @domName RTCStatsResponse.result */ 15466 /** @domName RTCStatsResponse.result; @docsEditable true */
15467 List<RTCStatsReport> result() native; 15467 List<RTCStatsReport> result() native;
15468 } 15468 }
15469 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15469 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15470 // for details. All rights reserved. Use of this source code is governed by a 15470 // for details. All rights reserved. Use of this source code is governed by a
15471 // BSD-style license that can be found in the LICENSE file. 15471 // BSD-style license that can be found in the LICENSE file.
15472 15472
15473 15473
15474 /// @domName RadioNodeList 15474 /// @domName RadioNodeList; @docsEditable true
15475 class RadioNodeList extends _NodeList native "*RadioNodeList" { 15475 class RadioNodeList extends _NodeList native "*RadioNodeList" {
15476 15476
15477 /** @domName RadioNodeList.value */ 15477 /** @domName RadioNodeList.value; @docsEditable true */
15478 String value; 15478 String value;
15479 } 15479 }
15480 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15480 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15481 // for details. All rights reserved. Use of this source code is governed by a 15481 // for details. All rights reserved. Use of this source code is governed by a
15482 // BSD-style license that can be found in the LICENSE file. 15482 // BSD-style license that can be found in the LICENSE file.
15483 15483
15484 15484
15485 /// @domName Range 15485 /// @domName Range; @docsEditable true
15486 class Range native "*Range" { 15486 class Range native "*Range" {
15487 15487
15488 static const int END_TO_END = 2; 15488 static const int END_TO_END = 2;
15489 15489
15490 static const int END_TO_START = 3; 15490 static const int END_TO_START = 3;
15491 15491
15492 static const int NODE_AFTER = 1; 15492 static const int NODE_AFTER = 1;
15493 15493
15494 static const int NODE_BEFORE = 0; 15494 static const int NODE_BEFORE = 0;
15495 15495
15496 static const int NODE_BEFORE_AND_AFTER = 2; 15496 static const int NODE_BEFORE_AND_AFTER = 2;
15497 15497
15498 static const int NODE_INSIDE = 3; 15498 static const int NODE_INSIDE = 3;
15499 15499
15500 static const int START_TO_END = 1; 15500 static const int START_TO_END = 1;
15501 15501
15502 static const int START_TO_START = 0; 15502 static const int START_TO_START = 0;
15503 15503
15504 /** @domName Range.collapsed */ 15504 /** @domName Range.collapsed; @docsEditable true */
15505 final bool collapsed; 15505 final bool collapsed;
15506 15506
15507 /** @domName Range.commonAncestorContainer */ 15507 /** @domName Range.commonAncestorContainer; @docsEditable true */
15508 final Node commonAncestorContainer; 15508 final Node commonAncestorContainer;
15509 15509
15510 /** @domName Range.endContainer */ 15510 /** @domName Range.endContainer; @docsEditable true */
15511 final Node endContainer; 15511 final Node endContainer;
15512 15512
15513 /** @domName Range.endOffset */ 15513 /** @domName Range.endOffset; @docsEditable true */
15514 final int endOffset; 15514 final int endOffset;
15515 15515
15516 /** @domName Range.startContainer */ 15516 /** @domName Range.startContainer; @docsEditable true */
15517 final Node startContainer; 15517 final Node startContainer;
15518 15518
15519 /** @domName Range.startOffset */ 15519 /** @domName Range.startOffset; @docsEditable true */
15520 final int startOffset; 15520 final int startOffset;
15521 15521
15522 /** @domName Range.cloneContents */ 15522 /** @domName Range.cloneContents; @docsEditable true */
15523 DocumentFragment cloneContents() native; 15523 DocumentFragment cloneContents() native;
15524 15524
15525 /** @domName Range.cloneRange */ 15525 /** @domName Range.cloneRange; @docsEditable true */
15526 Range cloneRange() native; 15526 Range cloneRange() native;
15527 15527
15528 /** @domName Range.collapse */ 15528 /** @domName Range.collapse; @docsEditable true */
15529 void collapse(bool toStart) native; 15529 void collapse(bool toStart) native;
15530 15530
15531 /** @domName Range.compareNode */ 15531 /** @domName Range.compareNode; @docsEditable true */
15532 int compareNode(Node refNode) native; 15532 int compareNode(Node refNode) native;
15533 15533
15534 /** @domName Range.comparePoint */ 15534 /** @domName Range.comparePoint; @docsEditable true */
15535 int comparePoint(Node refNode, int offset) native; 15535 int comparePoint(Node refNode, int offset) native;
15536 15536
15537 /** @domName Range.createContextualFragment */ 15537 /** @domName Range.createContextualFragment; @docsEditable true */
15538 DocumentFragment createContextualFragment(String html) native; 15538 DocumentFragment createContextualFragment(String html) native;
15539 15539
15540 /** @domName Range.deleteContents */ 15540 /** @domName Range.deleteContents; @docsEditable true */
15541 void deleteContents() native; 15541 void deleteContents() native;
15542 15542
15543 /** @domName Range.detach */ 15543 /** @domName Range.detach; @docsEditable true */
15544 void detach() native; 15544 void detach() native;
15545 15545
15546 /** @domName Range.expand */ 15546 /** @domName Range.expand; @docsEditable true */
15547 void expand(String unit) native; 15547 void expand(String unit) native;
15548 15548
15549 /** @domName Range.extractContents */ 15549 /** @domName Range.extractContents; @docsEditable true */
15550 DocumentFragment extractContents() native; 15550 DocumentFragment extractContents() native;
15551 15551
15552 /** @domName Range.getBoundingClientRect */ 15552 /** @domName Range.getBoundingClientRect; @docsEditable true */
15553 ClientRect getBoundingClientRect() native; 15553 ClientRect getBoundingClientRect() native;
15554 15554
15555 /** @domName Range.getClientRects */ 15555 /** @domName Range.getClientRects; @docsEditable true */
15556 List<ClientRect> getClientRects() native; 15556 List<ClientRect> getClientRects() native;
15557 15557
15558 /** @domName Range.insertNode */ 15558 /** @domName Range.insertNode; @docsEditable true */
15559 void insertNode(Node newNode) native; 15559 void insertNode(Node newNode) native;
15560 15560
15561 /** @domName Range.intersectsNode */ 15561 /** @domName Range.intersectsNode; @docsEditable true */
15562 bool intersectsNode(Node refNode) native; 15562 bool intersectsNode(Node refNode) native;
15563 15563
15564 /** @domName Range.isPointInRange */ 15564 /** @domName Range.isPointInRange; @docsEditable true */
15565 bool isPointInRange(Node refNode, int offset) native; 15565 bool isPointInRange(Node refNode, int offset) native;
15566 15566
15567 /** @domName Range.selectNode */ 15567 /** @domName Range.selectNode; @docsEditable true */
15568 void selectNode(Node refNode) native; 15568 void selectNode(Node refNode) native;
15569 15569
15570 /** @domName Range.selectNodeContents */ 15570 /** @domName Range.selectNodeContents; @docsEditable true */
15571 void selectNodeContents(Node refNode) native; 15571 void selectNodeContents(Node refNode) native;
15572 15572
15573 /** @domName Range.setEnd */ 15573 /** @domName Range.setEnd; @docsEditable true */
15574 void setEnd(Node refNode, int offset) native; 15574 void setEnd(Node refNode, int offset) native;
15575 15575
15576 /** @domName Range.setEndAfter */ 15576 /** @domName Range.setEndAfter; @docsEditable true */
15577 void setEndAfter(Node refNode) native; 15577 void setEndAfter(Node refNode) native;
15578 15578
15579 /** @domName Range.setEndBefore */ 15579 /** @domName Range.setEndBefore; @docsEditable true */
15580 void setEndBefore(Node refNode) native; 15580 void setEndBefore(Node refNode) native;
15581 15581
15582 /** @domName Range.setStart */ 15582 /** @domName Range.setStart; @docsEditable true */
15583 void setStart(Node refNode, int offset) native; 15583 void setStart(Node refNode, int offset) native;
15584 15584
15585 /** @domName Range.setStartAfter */ 15585 /** @domName Range.setStartAfter; @docsEditable true */
15586 void setStartAfter(Node refNode) native; 15586 void setStartAfter(Node refNode) native;
15587 15587
15588 /** @domName Range.setStartBefore */ 15588 /** @domName Range.setStartBefore; @docsEditable true */
15589 void setStartBefore(Node refNode) native; 15589 void setStartBefore(Node refNode) native;
15590 15590
15591 /** @domName Range.surroundContents */ 15591 /** @domName Range.surroundContents; @docsEditable true */
15592 void surroundContents(Node newParent) native; 15592 void surroundContents(Node newParent) native;
15593 15593
15594 /** @domName Range.toString */ 15594 /** @domName Range.toString; @docsEditable true */
15595 String toString() native; 15595 String toString() native;
15596 } 15596 }
15597 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15597 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15598 // for details. All rights reserved. Use of this source code is governed by a 15598 // for details. All rights reserved. Use of this source code is governed by a
15599 // BSD-style license that can be found in the LICENSE file. 15599 // BSD-style license that can be found in the LICENSE file.
15600 15600
15601 15601
15602 /// @domName RangeException 15602 /// @domName RangeException; @docsEditable true
15603 class RangeException native "*RangeException" { 15603 class RangeException native "*RangeException" {
15604 15604
15605 static const int BAD_BOUNDARYPOINTS_ERR = 1; 15605 static const int BAD_BOUNDARYPOINTS_ERR = 1;
15606 15606
15607 static const int INVALID_NODE_TYPE_ERR = 2; 15607 static const int INVALID_NODE_TYPE_ERR = 2;
15608 15608
15609 /** @domName RangeException.code */ 15609 /** @domName RangeException.code; @docsEditable true */
15610 final int code; 15610 final int code;
15611 15611
15612 /** @domName RangeException.message */ 15612 /** @domName RangeException.message; @docsEditable true */
15613 final String message; 15613 final String message;
15614 15614
15615 /** @domName RangeException.name */ 15615 /** @domName RangeException.name; @docsEditable true */
15616 final String name; 15616 final String name;
15617 15617
15618 /** @domName RangeException.toString */ 15618 /** @domName RangeException.toString; @docsEditable true */
15619 String toString() native; 15619 String toString() native;
15620 } 15620 }
15621 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15621 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15622 // for details. All rights reserved. Use of this source code is governed by a 15622 // for details. All rights reserved. Use of this source code is governed by a
15623 // BSD-style license that can be found in the LICENSE file. 15623 // BSD-style license that can be found in the LICENSE file.
15624 15624
15625 15625
15626 /// @domName Rect 15626 /// @domName Rect; @docsEditable true
15627 class Rect native "*Rect" { 15627 class Rect native "*Rect" {
15628 15628
15629 /** @domName Rect.bottom */ 15629 /** @domName Rect.bottom; @docsEditable true */
15630 final CSSPrimitiveValue bottom; 15630 final CSSPrimitiveValue bottom;
15631 15631
15632 /** @domName Rect.left */ 15632 /** @domName Rect.left; @docsEditable true */
15633 final CSSPrimitiveValue left; 15633 final CSSPrimitiveValue left;
15634 15634
15635 /** @domName Rect.right */ 15635 /** @domName Rect.right; @docsEditable true */
15636 final CSSPrimitiveValue right; 15636 final CSSPrimitiveValue right;
15637 15637
15638 /** @domName Rect.top */ 15638 /** @domName Rect.top; @docsEditable true */
15639 final CSSPrimitiveValue top; 15639 final CSSPrimitiveValue top;
15640 } 15640 }
15641 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15641 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15642 // for details. All rights reserved. Use of this source code is governed by a 15642 // for details. All rights reserved. Use of this source code is governed by a
15643 // BSD-style license that can be found in the LICENSE file. 15643 // BSD-style license that can be found in the LICENSE file.
15644 15644
15645 // WARNING: Do not edit - generated code. 15645 // WARNING: Do not edit - generated code.
15646 15646
15647 15647
15648 typedef void RequestAnimationFrameCallback(num highResTime); 15648 typedef void RequestAnimationFrameCallback(num highResTime);
15649 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15649 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15650 // for details. All rights reserved. Use of this source code is governed by a 15650 // for details. All rights reserved. Use of this source code is governed by a
15651 // BSD-style license that can be found in the LICENSE file. 15651 // BSD-style license that can be found in the LICENSE file.
15652 15652
15653 15653
15654 /// @domName SQLError 15654 /// @domName SQLError; @docsEditable true
15655 class SQLError native "*SQLError" { 15655 class SQLError native "*SQLError" {
15656 15656
15657 static const int CONSTRAINT_ERR = 6; 15657 static const int CONSTRAINT_ERR = 6;
15658 15658
15659 static const int DATABASE_ERR = 1; 15659 static const int DATABASE_ERR = 1;
15660 15660
15661 static const int QUOTA_ERR = 4; 15661 static const int QUOTA_ERR = 4;
15662 15662
15663 static const int SYNTAX_ERR = 5; 15663 static const int SYNTAX_ERR = 5;
15664 15664
15665 static const int TIMEOUT_ERR = 7; 15665 static const int TIMEOUT_ERR = 7;
15666 15666
15667 static const int TOO_LARGE_ERR = 3; 15667 static const int TOO_LARGE_ERR = 3;
15668 15668
15669 static const int UNKNOWN_ERR = 0; 15669 static const int UNKNOWN_ERR = 0;
15670 15670
15671 static const int VERSION_ERR = 2; 15671 static const int VERSION_ERR = 2;
15672 15672
15673 /** @domName SQLError.code */ 15673 /** @domName SQLError.code; @docsEditable true */
15674 final int code; 15674 final int code;
15675 15675
15676 /** @domName SQLError.message */ 15676 /** @domName SQLError.message; @docsEditable true */
15677 final String message; 15677 final String message;
15678 } 15678 }
15679 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15679 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15680 // for details. All rights reserved. Use of this source code is governed by a 15680 // for details. All rights reserved. Use of this source code is governed by a
15681 // BSD-style license that can be found in the LICENSE file. 15681 // BSD-style license that can be found in the LICENSE file.
15682 15682
15683 15683
15684 /// @domName SQLException 15684 /// @domName SQLException; @docsEditable true
15685 class SQLException native "*SQLException" { 15685 class SQLException native "*SQLException" {
15686 15686
15687 static const int CONSTRAINT_ERR = 6; 15687 static const int CONSTRAINT_ERR = 6;
15688 15688
15689 static const int DATABASE_ERR = 1; 15689 static const int DATABASE_ERR = 1;
15690 15690
15691 static const int QUOTA_ERR = 4; 15691 static const int QUOTA_ERR = 4;
15692 15692
15693 static const int SYNTAX_ERR = 5; 15693 static const int SYNTAX_ERR = 5;
15694 15694
15695 static const int TIMEOUT_ERR = 7; 15695 static const int TIMEOUT_ERR = 7;
15696 15696
15697 static const int TOO_LARGE_ERR = 3; 15697 static const int TOO_LARGE_ERR = 3;
15698 15698
15699 static const int UNKNOWN_ERR = 0; 15699 static const int UNKNOWN_ERR = 0;
15700 15700
15701 static const int VERSION_ERR = 2; 15701 static const int VERSION_ERR = 2;
15702 15702
15703 /** @domName SQLException.code */ 15703 /** @domName SQLException.code; @docsEditable true */
15704 final int code; 15704 final int code;
15705 15705
15706 /** @domName SQLException.message */ 15706 /** @domName SQLException.message; @docsEditable true */
15707 final String message; 15707 final String message;
15708 } 15708 }
15709 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15709 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15710 // for details. All rights reserved. Use of this source code is governed by a 15710 // for details. All rights reserved. Use of this source code is governed by a
15711 // BSD-style license that can be found in the LICENSE file. 15711 // BSD-style license that can be found in the LICENSE file.
15712 15712
15713 15713
15714 /// @domName SQLResultSet 15714 /// @domName SQLResultSet; @docsEditable true
15715 class SQLResultSet native "*SQLResultSet" { 15715 class SQLResultSet native "*SQLResultSet" {
15716 15716
15717 /** @domName SQLResultSet.insertId */ 15717 /** @domName SQLResultSet.insertId; @docsEditable true */
15718 final int insertId; 15718 final int insertId;
15719 15719
15720 /** @domName SQLResultSet.rows */ 15720 /** @domName SQLResultSet.rows; @docsEditable true */
15721 final SQLResultSetRowList rows; 15721 final SQLResultSetRowList rows;
15722 15722
15723 /** @domName SQLResultSet.rowsAffected */ 15723 /** @domName SQLResultSet.rowsAffected; @docsEditable true */
15724 final int rowsAffected; 15724 final int rowsAffected;
15725 } 15725 }
15726 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15726 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15727 // for details. All rights reserved. Use of this source code is governed by a 15727 // for details. All rights reserved. Use of this source code is governed by a
15728 // BSD-style license that can be found in the LICENSE file. 15728 // BSD-style license that can be found in the LICENSE file.
15729 15729
15730 15730
15731 /// @domName SQLResultSetRowList 15731 /// @domName SQLResultSetRowList; @docsEditable true
15732 class SQLResultSetRowList implements JavaScriptIndexingBehavior, List<Map> nativ e "*SQLResultSetRowList" { 15732 class SQLResultSetRowList implements JavaScriptIndexingBehavior, List<Map> nativ e "*SQLResultSetRowList" {
15733 15733
15734 /** @domName SQLResultSetRowList.length */ 15734 /** @domName SQLResultSetRowList.length; @docsEditable true */
15735 final int length; 15735 final int length;
15736 15736
15737 Map operator[](int index) => JS("Map", "#[#]", this, index); 15737 Map operator[](int index) => JS("Map", "#[#]", this, index);
15738 15738
15739 void operator[]=(int index, Map value) { 15739 void operator[]=(int index, Map value) {
15740 throw new UnsupportedError("Cannot assign element of immutable List."); 15740 throw new UnsupportedError("Cannot assign element of immutable List.");
15741 } 15741 }
15742 // -- start List<Map> mixins. 15742 // -- start List<Map> mixins.
15743 // Map is the element type. 15743 // Map is the element type.
15744 15744
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
15812 15812
15813 void insertRange(int start, int rangeLength, [Map initialValue]) { 15813 void insertRange(int start, int rangeLength, [Map initialValue]) {
15814 throw new UnsupportedError("Cannot insertRange on immutable List."); 15814 throw new UnsupportedError("Cannot insertRange on immutable List.");
15815 } 15815 }
15816 15816
15817 List<Map> getRange(int start, int rangeLength) => 15817 List<Map> getRange(int start, int rangeLength) =>
15818 _Lists.getRange(this, start, rangeLength, <Map>[]); 15818 _Lists.getRange(this, start, rangeLength, <Map>[]);
15819 15819
15820 // -- end List<Map> mixins. 15820 // -- end List<Map> mixins.
15821 15821
15822 /** @domName SQLResultSetRowList.item */ 15822 /** @domName SQLResultSetRowList.item; @docsEditable true */
15823 Map item(int index) { 15823 Map item(int index) {
15824 return _convertNativeToDart_Dictionary(_item_1(index)); 15824 return _convertNativeToDart_Dictionary(_item_1(index));
15825 } 15825 }
15826 @Creates('=Object') 15826 @Creates('=Object')
15827 _item_1(index) native "item"; 15827 _item_1(index) native "item";
15828 } 15828 }
15829 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15829 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15830 // for details. All rights reserved. Use of this source code is governed by a 15830 // for details. All rights reserved. Use of this source code is governed by a
15831 // BSD-style license that can be found in the LICENSE file. 15831 // BSD-style license that can be found in the LICENSE file.
15832 15832
15833 // WARNING: Do not edit - generated code. 15833 // WARNING: Do not edit - generated code.
15834 15834
15835 15835
15836 typedef void SQLStatementCallback(SQLTransaction transaction, SQLResultSet resul tSet); 15836 typedef void SQLStatementCallback(SQLTransaction transaction, SQLResultSet resul tSet);
15837 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15837 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15838 // for details. All rights reserved. Use of this source code is governed by a 15838 // for details. All rights reserved. Use of this source code is governed by a
15839 // BSD-style license that can be found in the LICENSE file. 15839 // BSD-style license that can be found in the LICENSE file.
15840 15840
15841 // WARNING: Do not edit - generated code. 15841 // WARNING: Do not edit - generated code.
15842 15842
15843 15843
15844 typedef void SQLStatementErrorCallback(SQLTransaction transaction, SQLError erro r); 15844 typedef void SQLStatementErrorCallback(SQLTransaction transaction, SQLError erro r);
15845 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15845 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15846 // for details. All rights reserved. Use of this source code is governed by a 15846 // for details. All rights reserved. Use of this source code is governed by a
15847 // BSD-style license that can be found in the LICENSE file. 15847 // BSD-style license that can be found in the LICENSE file.
15848 15848
15849 15849
15850 /// @domName SQLTransaction 15850 /// @domName SQLTransaction; @docsEditable true
15851 class SQLTransaction native "*SQLTransaction" { 15851 class SQLTransaction native "*SQLTransaction" {
15852 15852
15853 /** @domName SQLTransaction.executeSql */ 15853 /** @domName SQLTransaction.executeSql; @docsEditable true */
15854 void executeSql(String sqlStatement, List arguments, [SQLStatementCallback cal lback, SQLStatementErrorCallback errorCallback]) native; 15854 void executeSql(String sqlStatement, List arguments, [SQLStatementCallback cal lback, SQLStatementErrorCallback errorCallback]) native;
15855 } 15855 }
15856 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15856 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15857 // for details. All rights reserved. Use of this source code is governed by a 15857 // for details. All rights reserved. Use of this source code is governed by a
15858 // BSD-style license that can be found in the LICENSE file. 15858 // BSD-style license that can be found in the LICENSE file.
15859 15859
15860 // WARNING: Do not edit - generated code. 15860 // WARNING: Do not edit - generated code.
15861 15861
15862 15862
15863 typedef void SQLTransactionCallback(SQLTransaction transaction); 15863 typedef void SQLTransactionCallback(SQLTransaction transaction);
15864 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15864 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15865 // for details. All rights reserved. Use of this source code is governed by a 15865 // for details. All rights reserved. Use of this source code is governed by a
15866 // BSD-style license that can be found in the LICENSE file. 15866 // BSD-style license that can be found in the LICENSE file.
15867 15867
15868 // WARNING: Do not edit - generated code. 15868 // WARNING: Do not edit - generated code.
15869 15869
15870 15870
15871 typedef void SQLTransactionErrorCallback(SQLError error); 15871 typedef void SQLTransactionErrorCallback(SQLError error);
15872 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15872 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15873 // for details. All rights reserved. Use of this source code is governed by a 15873 // for details. All rights reserved. Use of this source code is governed by a
15874 // BSD-style license that can be found in the LICENSE file. 15874 // BSD-style license that can be found in the LICENSE file.
15875 15875
15876 15876
15877 /// @domName SQLTransactionSync 15877 /// @domName SQLTransactionSync; @docsEditable true
15878 class SQLTransactionSync native "*SQLTransactionSync" { 15878 class SQLTransactionSync native "*SQLTransactionSync" {
15879 15879
15880 /** @domName SQLTransactionSync.executeSql */ 15880 /** @domName SQLTransactionSync.executeSql; @docsEditable true */
15881 SQLResultSet executeSql(String sqlStatement, List arguments) native; 15881 SQLResultSet executeSql(String sqlStatement, List arguments) native;
15882 } 15882 }
15883 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15883 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15884 // for details. All rights reserved. Use of this source code is governed by a 15884 // for details. All rights reserved. Use of this source code is governed by a
15885 // BSD-style license that can be found in the LICENSE file. 15885 // BSD-style license that can be found in the LICENSE file.
15886 15886
15887 // WARNING: Do not edit - generated code. 15887 // WARNING: Do not edit - generated code.
15888 15888
15889 15889
15890 typedef void SQLTransactionSyncCallback(SQLTransactionSync transaction); 15890 typedef void SQLTransactionSyncCallback(SQLTransactionSync transaction);
15891 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15891 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15892 // for details. All rights reserved. Use of this source code is governed by a 15892 // for details. All rights reserved. Use of this source code is governed by a
15893 // BSD-style license that can be found in the LICENSE file. 15893 // BSD-style license that can be found in the LICENSE file.
15894 15894
15895 15895
15896 /// @domName Screen 15896 /// @domName Screen; @docsEditable true
15897 class Screen native "*Screen" { 15897 class Screen native "*Screen" {
15898 15898
15899 /** @domName Screen.availHeight */ 15899 /** @domName Screen.availHeight; @docsEditable true */
15900 final int availHeight; 15900 final int availHeight;
15901 15901
15902 /** @domName Screen.availLeft */ 15902 /** @domName Screen.availLeft; @docsEditable true */
15903 final int availLeft; 15903 final int availLeft;
15904 15904
15905 /** @domName Screen.availTop */ 15905 /** @domName Screen.availTop; @docsEditable true */
15906 final int availTop; 15906 final int availTop;
15907 15907
15908 /** @domName Screen.availWidth */ 15908 /** @domName Screen.availWidth; @docsEditable true */
15909 final int availWidth; 15909 final int availWidth;
15910 15910
15911 /** @domName Screen.colorDepth */ 15911 /** @domName Screen.colorDepth; @docsEditable true */
15912 final int colorDepth; 15912 final int colorDepth;
15913 15913
15914 /** @domName Screen.height */ 15914 /** @domName Screen.height; @docsEditable true */
15915 final int height; 15915 final int height;
15916 15916
15917 /** @domName Screen.pixelDepth */ 15917 /** @domName Screen.pixelDepth; @docsEditable true */
15918 final int pixelDepth; 15918 final int pixelDepth;
15919 15919
15920 /** @domName Screen.width */ 15920 /** @domName Screen.width; @docsEditable true */
15921 final int width; 15921 final int width;
15922 } 15922 }
15923 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15923 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15924 // for details. All rights reserved. Use of this source code is governed by a 15924 // for details. All rights reserved. Use of this source code is governed by a
15925 // BSD-style license that can be found in the LICENSE file. 15925 // BSD-style license that can be found in the LICENSE file.
15926 15926
15927 15927
15928 /// @domName HTMLScriptElement 15928 /// @domName HTMLScriptElement; @docsEditable true
15929 class ScriptElement extends Element implements Element native "*HTMLScriptElemen t" { 15929 class ScriptElement extends Element implements Element native "*HTMLScriptElemen t" {
15930 15930
15931 factory ScriptElement() => document.$dom_createElement("script"); 15931 factory ScriptElement() => document.$dom_createElement("script");
15932 15932
15933 /** @domName HTMLScriptElement.async */ 15933 /** @domName HTMLScriptElement.async; @docsEditable true */
15934 bool async; 15934 bool async;
15935 15935
15936 /** @domName HTMLScriptElement.charset */ 15936 /** @domName HTMLScriptElement.charset; @docsEditable true */
15937 String charset; 15937 String charset;
15938 15938
15939 /** @domName HTMLScriptElement.crossOrigin */ 15939 /** @domName HTMLScriptElement.crossOrigin; @docsEditable true */
15940 String crossOrigin; 15940 String crossOrigin;
15941 15941
15942 /** @domName HTMLScriptElement.defer */ 15942 /** @domName HTMLScriptElement.defer; @docsEditable true */
15943 bool defer; 15943 bool defer;
15944 15944
15945 /** @domName HTMLScriptElement.event */ 15945 /** @domName HTMLScriptElement.event; @docsEditable true */
15946 String event; 15946 String event;
15947 15947
15948 /** @domName HTMLScriptElement.htmlFor */ 15948 /** @domName HTMLScriptElement.htmlFor; @docsEditable true */
15949 String htmlFor; 15949 String htmlFor;
15950 15950
15951 /** @domName HTMLScriptElement.src */ 15951 /** @domName HTMLScriptElement.src; @docsEditable true */
15952 String src; 15952 String src;
15953 15953
15954 /** @domName HTMLScriptElement.type */ 15954 /** @domName HTMLScriptElement.type; @docsEditable true */
15955 String type; 15955 String type;
15956 } 15956 }
15957 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15957 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15958 // for details. All rights reserved. Use of this source code is governed by a 15958 // for details. All rights reserved. Use of this source code is governed by a
15959 // BSD-style license that can be found in the LICENSE file. 15959 // BSD-style license that can be found in the LICENSE file.
15960 15960
15961 15961
15962 /// @domName ScriptProcessorNode 15962 /// @domName ScriptProcessorNode; @docsEditable true
15963 class ScriptProcessorNode extends AudioNode implements EventTarget native "*Scri ptProcessorNode" { 15963 class ScriptProcessorNode extends AudioNode implements EventTarget native "*Scri ptProcessorNode" {
15964 15964
15965 /** 15965 /**
15966 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 15966 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent; @docsEditable true
15967 */ 15967 */
15968 ScriptProcessorNodeEvents get on => 15968 ScriptProcessorNodeEvents get on =>
15969 new ScriptProcessorNodeEvents(this); 15969 new ScriptProcessorNodeEvents(this);
15970 15970
15971 /** @domName ScriptProcessorNode.bufferSize */ 15971 /** @domName ScriptProcessorNode.bufferSize; @docsEditable true */
15972 final int bufferSize; 15972 final int bufferSize;
15973 } 15973 }
15974 15974
15975 class ScriptProcessorNodeEvents extends Events { 15975 class ScriptProcessorNodeEvents extends Events {
15976 ScriptProcessorNodeEvents(EventTarget _ptr) : super(_ptr); 15976 ScriptProcessorNodeEvents(EventTarget _ptr) : super(_ptr);
15977 15977
15978 EventListenerList get audioProcess => this['audioprocess']; 15978 EventListenerList get audioProcess => this['audioprocess'];
15979 } 15979 }
15980 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15980 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15981 // for details. All rights reserved. Use of this source code is governed by a 15981 // for details. All rights reserved. Use of this source code is governed by a
15982 // BSD-style license that can be found in the LICENSE file. 15982 // BSD-style license that can be found in the LICENSE file.
15983 15983
15984 15984
15985 /// @domName ScriptProfile 15985 /// @domName ScriptProfile; @docsEditable true
15986 class ScriptProfile native "*ScriptProfile" { 15986 class ScriptProfile native "*ScriptProfile" {
15987 15987
15988 /** @domName ScriptProfile.head */ 15988 /** @domName ScriptProfile.head; @docsEditable true */
15989 final ScriptProfileNode head; 15989 final ScriptProfileNode head;
15990 15990
15991 /** @domName ScriptProfile.title */ 15991 /** @domName ScriptProfile.title; @docsEditable true */
15992 final String title; 15992 final String title;
15993 15993
15994 /** @domName ScriptProfile.uid */ 15994 /** @domName ScriptProfile.uid; @docsEditable true */
15995 final int uid; 15995 final int uid;
15996 } 15996 }
15997 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15997 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15998 // for details. All rights reserved. Use of this source code is governed by a 15998 // for details. All rights reserved. Use of this source code is governed by a
15999 // BSD-style license that can be found in the LICENSE file. 15999 // BSD-style license that can be found in the LICENSE file.
16000 16000
16001 16001
16002 /// @domName ScriptProfileNode 16002 /// @domName ScriptProfileNode; @docsEditable true
16003 class ScriptProfileNode native "*ScriptProfileNode" { 16003 class ScriptProfileNode native "*ScriptProfileNode" {
16004 16004
16005 /** @domName ScriptProfileNode.callUID */ 16005 /** @domName ScriptProfileNode.callUID; @docsEditable true */
16006 final int callUID; 16006 final int callUID;
16007 16007
16008 /** @domName ScriptProfileNode.functionName */ 16008 /** @domName ScriptProfileNode.functionName; @docsEditable true */
16009 final String functionName; 16009 final String functionName;
16010 16010
16011 /** @domName ScriptProfileNode.lineNumber */ 16011 /** @domName ScriptProfileNode.lineNumber; @docsEditable true */
16012 final int lineNumber; 16012 final int lineNumber;
16013 16013
16014 /** @domName ScriptProfileNode.numberOfCalls */ 16014 /** @domName ScriptProfileNode.numberOfCalls; @docsEditable true */
16015 final int numberOfCalls; 16015 final int numberOfCalls;
16016 16016
16017 /** @domName ScriptProfileNode.selfTime */ 16017 /** @domName ScriptProfileNode.selfTime; @docsEditable true */
16018 final num selfTime; 16018 final num selfTime;
16019 16019
16020 /** @domName ScriptProfileNode.totalTime */ 16020 /** @domName ScriptProfileNode.totalTime; @docsEditable true */
16021 final num totalTime; 16021 final num totalTime;
16022 16022
16023 /** @domName ScriptProfileNode.url */ 16023 /** @domName ScriptProfileNode.url; @docsEditable true */
16024 final String url; 16024 final String url;
16025 16025
16026 /** @domName ScriptProfileNode.visible */ 16026 /** @domName ScriptProfileNode.visible; @docsEditable true */
16027 final bool visible; 16027 final bool visible;
16028 16028
16029 /** @domName ScriptProfileNode.children */ 16029 /** @domName ScriptProfileNode.children; @docsEditable true */
16030 List<ScriptProfileNode> children() native; 16030 List<ScriptProfileNode> children() native;
16031 } 16031 }
16032 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16032 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16033 // for details. All rights reserved. Use of this source code is governed by a 16033 // for details. All rights reserved. Use of this source code is governed by a
16034 // BSD-style license that can be found in the LICENSE file. 16034 // BSD-style license that can be found in the LICENSE file.
16035 16035
16036 16036
16037 class SelectElement extends Element implements Element native "*HTMLSelectElemen t" { 16037 class SelectElement extends Element implements Element native "*HTMLSelectElemen t" {
16038 16038
16039 factory SelectElement() => document.$dom_createElement("select"); 16039 factory SelectElement() => document.$dom_createElement("select");
16040 16040
16041 /** @domName HTMLSelectElement.autofocus */ 16041 /** @domName HTMLSelectElement.autofocus; @docsEditable true */
16042 bool autofocus; 16042 bool autofocus;
16043 16043
16044 /** @domName HTMLSelectElement.disabled */ 16044 /** @domName HTMLSelectElement.disabled; @docsEditable true */
16045 bool disabled; 16045 bool disabled;
16046 16046
16047 /** @domName HTMLSelectElement.form */ 16047 /** @domName HTMLSelectElement.form; @docsEditable true */
16048 final FormElement form; 16048 final FormElement form;
16049 16049
16050 /** @domName HTMLSelectElement.labels */ 16050 /** @domName HTMLSelectElement.labels; @docsEditable true */
16051 final List<Node> labels; 16051 final List<Node> labels;
16052 16052
16053 /** @domName HTMLSelectElement.length */ 16053 /** @domName HTMLSelectElement.length; @docsEditable true */
16054 int length; 16054 int length;
16055 16055
16056 /** @domName HTMLSelectElement.multiple */ 16056 /** @domName HTMLSelectElement.multiple; @docsEditable true */
16057 bool multiple; 16057 bool multiple;
16058 16058
16059 /** @domName HTMLSelectElement.name */ 16059 /** @domName HTMLSelectElement.name; @docsEditable true */
16060 String name; 16060 String name;
16061 16061
16062 /** @domName HTMLSelectElement.required */ 16062 /** @domName HTMLSelectElement.required; @docsEditable true */
16063 bool required; 16063 bool required;
16064 16064
16065 /** @domName HTMLSelectElement.selectedIndex */ 16065 /** @domName HTMLSelectElement.selectedIndex; @docsEditable true */
16066 int selectedIndex; 16066 int selectedIndex;
16067 16067
16068 /** @domName HTMLSelectElement.size */ 16068 /** @domName HTMLSelectElement.size; @docsEditable true */
16069 int size; 16069 int size;
16070 16070
16071 /** @domName HTMLSelectElement.type */ 16071 /** @domName HTMLSelectElement.type; @docsEditable true */
16072 final String type; 16072 final String type;
16073 16073
16074 /** @domName HTMLSelectElement.validationMessage */ 16074 /** @domName HTMLSelectElement.validationMessage; @docsEditable true */
16075 final String validationMessage; 16075 final String validationMessage;
16076 16076
16077 /** @domName HTMLSelectElement.validity */ 16077 /** @domName HTMLSelectElement.validity; @docsEditable true */
16078 final ValidityState validity; 16078 final ValidityState validity;
16079 16079
16080 /** @domName HTMLSelectElement.value */ 16080 /** @domName HTMLSelectElement.value; @docsEditable true */
16081 String value; 16081 String value;
16082 16082
16083 /** @domName HTMLSelectElement.willValidate */ 16083 /** @domName HTMLSelectElement.willValidate; @docsEditable true */
16084 final bool willValidate; 16084 final bool willValidate;
16085 16085
16086 /** @domName HTMLSelectElement.checkValidity */ 16086 /** @domName HTMLSelectElement.checkValidity; @docsEditable true */
16087 bool checkValidity() native; 16087 bool checkValidity() native;
16088 16088
16089 /** @domName HTMLSelectElement.item */ 16089 /** @domName HTMLSelectElement.item; @docsEditable true */
16090 Node item(int index) native; 16090 Node item(int index) native;
16091 16091
16092 /** @domName HTMLSelectElement.namedItem */ 16092 /** @domName HTMLSelectElement.namedItem; @docsEditable true */
16093 Node namedItem(String name) native; 16093 Node namedItem(String name) native;
16094 16094
16095 /** @domName HTMLSelectElement.setCustomValidity */ 16095 /** @domName HTMLSelectElement.setCustomValidity; @docsEditable true */
16096 void setCustomValidity(String error) native; 16096 void setCustomValidity(String error) native;
16097 16097
16098 16098
16099 // Override default options, since IE returns SelectElement itself and it 16099 // Override default options, since IE returns SelectElement itself and it
16100 // does not operate as a List. 16100 // does not operate as a List.
16101 List<OptionElement> get options { 16101 List<OptionElement> get options {
16102 return this.elements.filter((e) => e is OptionElement); 16102 return this.elements.filter((e) => e is OptionElement);
16103 } 16103 }
16104 16104
16105 List<OptionElement> get selectedOptions { 16105 List<OptionElement> get selectedOptions {
16106 // IE does not change the selected flag for single-selection items. 16106 // IE does not change the selected flag for single-selection items.
16107 if (this.multiple) { 16107 if (this.multiple) {
16108 return this.options.filter((o) => o.selected); 16108 return this.options.filter((o) => o.selected);
16109 } else { 16109 } else {
16110 return [this.options[this.selectedIndex]]; 16110 return [this.options[this.selectedIndex]];
16111 } 16111 }
16112 } 16112 }
16113 } 16113 }
16114 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16114 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16115 // for details. All rights reserved. Use of this source code is governed by a 16115 // for details. All rights reserved. Use of this source code is governed by a
16116 // BSD-style license that can be found in the LICENSE file. 16116 // BSD-style license that can be found in the LICENSE file.
16117 16117
16118 16118
16119 /// @domName SessionDescription 16119 /// @domName SessionDescription; @docsEditable true
16120 class SessionDescription native "*SessionDescription" { 16120 class SessionDescription native "*SessionDescription" {
16121 16121
16122 factory SessionDescription(String sdp) => _SessionDescriptionFactoryProvider.c reateSessionDescription(sdp); 16122 factory SessionDescription(String sdp) => _SessionDescriptionFactoryProvider.c reateSessionDescription(sdp);
16123 16123
16124 /** @domName SessionDescription.addCandidate */ 16124 /** @domName SessionDescription.addCandidate; @docsEditable true */
16125 void addCandidate(IceCandidate candidate) native; 16125 void addCandidate(IceCandidate candidate) native;
16126 16126
16127 /** @domName SessionDescription.toSdp */ 16127 /** @domName SessionDescription.toSdp; @docsEditable true */
16128 String toSdp() native; 16128 String toSdp() native;
16129 } 16129 }
16130 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16130 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16131 // for details. All rights reserved. Use of this source code is governed by a 16131 // for details. All rights reserved. Use of this source code is governed by a
16132 // BSD-style license that can be found in the LICENSE file. 16132 // BSD-style license that can be found in the LICENSE file.
16133 16133
16134 16134
16135 /// @domName HTMLShadowElement 16135 /// @domName HTMLShadowElement; @docsEditable true
16136 class ShadowElement extends Element implements Element native "*HTMLShadowElemen t" { 16136 class ShadowElement extends Element implements Element native "*HTMLShadowElemen t" {
16137 16137
16138 /** @domName HTMLShadowElement.resetStyleInheritance */ 16138 /** @domName HTMLShadowElement.resetStyleInheritance; @docsEditable true */
16139 bool resetStyleInheritance; 16139 bool resetStyleInheritance;
16140 } 16140 }
16141 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16141 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16142 // for details. All rights reserved. Use of this source code is governed by a 16142 // for details. All rights reserved. Use of this source code is governed by a
16143 // BSD-style license that can be found in the LICENSE file. 16143 // BSD-style license that can be found in the LICENSE file.
16144 16144
16145 // WARNING: Do not edit - generated code. 16145 // WARNING: Do not edit - generated code.
16146 16146
16147 16147
16148 class ShadowRoot extends DocumentFragment native "*ShadowRoot" { 16148 class ShadowRoot extends DocumentFragment native "*ShadowRoot" {
16149 16149
16150 factory ShadowRoot(Element host) => _ShadowRootFactoryProvider.createShadowRoo t(host); 16150 factory ShadowRoot(Element host) => _ShadowRootFactoryProvider.createShadowRoo t(host);
16151 16151
16152 /** @domName ShadowRoot.activeElement */ 16152 /** @domName ShadowRoot.activeElement; @docsEditable true */
16153 final Element activeElement; 16153 final Element activeElement;
16154 16154
16155 /** @domName ShadowRoot.applyAuthorStyles */ 16155 /** @domName ShadowRoot.applyAuthorStyles; @docsEditable true */
16156 bool applyAuthorStyles; 16156 bool applyAuthorStyles;
16157 16157
16158 /** @domName ShadowRoot.innerHTML */ 16158 /** @domName ShadowRoot.innerHTML; @docsEditable true */
16159 String innerHTML; 16159 String innerHTML;
16160 16160
16161 /** @domName ShadowRoot.resetStyleInheritance */ 16161 /** @domName ShadowRoot.resetStyleInheritance; @docsEditable true */
16162 bool resetStyleInheritance; 16162 bool resetStyleInheritance;
16163 16163
16164 /** @domName ShadowRoot.cloneNode */ 16164 /** @domName ShadowRoot.cloneNode; @docsEditable true */
16165 Node clone(bool deep) native "cloneNode"; 16165 Node clone(bool deep) native "cloneNode";
16166 16166
16167 /** @domName ShadowRoot.getElementById */ 16167 /** @domName ShadowRoot.getElementById; @docsEditable true */
16168 Element $dom_getElementById(String elementId) native "getElementById"; 16168 Element $dom_getElementById(String elementId) native "getElementById";
16169 16169
16170 /** @domName ShadowRoot.getElementsByClassName */ 16170 /** @domName ShadowRoot.getElementsByClassName; @docsEditable true */
16171 List<Node> $dom_getElementsByClassName(String className) native "getElementsBy ClassName"; 16171 List<Node> $dom_getElementsByClassName(String className) native "getElementsBy ClassName";
16172 16172
16173 /** @domName ShadowRoot.getElementsByTagName */ 16173 /** @domName ShadowRoot.getElementsByTagName; @docsEditable true */
16174 List<Node> $dom_getElementsByTagName(String tagName) native "getElementsByTagN ame"; 16174 List<Node> $dom_getElementsByTagName(String tagName) native "getElementsByTagN ame";
16175 16175
16176 /** @domName ShadowRoot.getSelection */ 16176 /** @domName ShadowRoot.getSelection; @docsEditable true */
16177 DOMSelection getSelection() native; 16177 DOMSelection getSelection() native;
16178 16178
16179 static bool get supported => 16179 static bool get supported =>
16180 JS('bool', '!!(window.ShadowRoot || window.WebKitShadowRoot)'); 16180 JS('bool', '!!(window.ShadowRoot || window.WebKitShadowRoot)');
16181 } 16181 }
16182 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16182 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16183 // for details. All rights reserved. Use of this source code is governed by a 16183 // for details. All rights reserved. Use of this source code is governed by a
16184 // BSD-style license that can be found in the LICENSE file. 16184 // BSD-style license that can be found in the LICENSE file.
16185 16185
16186 16186
16187 /// @domName SharedWorker 16187 /// @domName SharedWorker; @docsEditable true
16188 class SharedWorker extends AbstractWorker native "*SharedWorker" { 16188 class SharedWorker extends AbstractWorker native "*SharedWorker" {
16189 16189
16190 factory SharedWorker(String scriptURL, [String name]) { 16190 factory SharedWorker(String scriptURL, [String name]) {
16191 if (!?name) { 16191 if (!?name) {
16192 return _SharedWorkerFactoryProvider.createSharedWorker(scriptURL); 16192 return _SharedWorkerFactoryProvider.createSharedWorker(scriptURL);
16193 } 16193 }
16194 return _SharedWorkerFactoryProvider.createSharedWorker(scriptURL, name); 16194 return _SharedWorkerFactoryProvider.createSharedWorker(scriptURL, name);
16195 } 16195 }
16196 16196
16197 /** @domName SharedWorker.port */ 16197 /** @domName SharedWorker.port; @docsEditable true */
16198 final MessagePort port; 16198 final MessagePort port;
16199 } 16199 }
16200 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16200 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16201 // for details. All rights reserved. Use of this source code is governed by a 16201 // for details. All rights reserved. Use of this source code is governed by a
16202 // BSD-style license that can be found in the LICENSE file. 16202 // BSD-style license that can be found in the LICENSE file.
16203 16203
16204 16204
16205 /// @domName SharedWorkerContext 16205 /// @domName SharedWorkerContext; @docsEditable true
16206 class SharedWorkerContext extends WorkerContext native "*SharedWorkerContext" { 16206 class SharedWorkerContext extends WorkerContext native "*SharedWorkerContext" {
16207 16207
16208 /** 16208 /**
16209 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 16209 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent; @docsEditable true
16210 */ 16210 */
16211 SharedWorkerContextEvents get on => 16211 SharedWorkerContextEvents get on =>
16212 new SharedWorkerContextEvents(this); 16212 new SharedWorkerContextEvents(this);
16213 16213
16214 /** @domName SharedWorkerContext.name */ 16214 /** @domName SharedWorkerContext.name; @docsEditable true */
16215 final String name; 16215 final String name;
16216 } 16216 }
16217 16217
16218 class SharedWorkerContextEvents extends WorkerContextEvents { 16218 class SharedWorkerContextEvents extends WorkerContextEvents {
16219 SharedWorkerContextEvents(EventTarget _ptr) : super(_ptr); 16219 SharedWorkerContextEvents(EventTarget _ptr) : super(_ptr);
16220 16220
16221 EventListenerList get connect => this['connect']; 16221 EventListenerList get connect => this['connect'];
16222 } 16222 }
16223 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16223 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16224 // for details. All rights reserved. Use of this source code is governed by a 16224 // for details. All rights reserved. Use of this source code is governed by a
16225 // BSD-style license that can be found in the LICENSE file. 16225 // BSD-style license that can be found in the LICENSE file.
16226 16226
16227 16227
16228 /// @domName SourceBuffer 16228 /// @domName SourceBuffer; @docsEditable true
16229 class SourceBuffer native "*SourceBuffer" { 16229 class SourceBuffer native "*SourceBuffer" {
16230 16230
16231 /** @domName SourceBuffer.buffered */ 16231 /** @domName SourceBuffer.buffered; @docsEditable true */
16232 final TimeRanges buffered; 16232 final TimeRanges buffered;
16233 16233
16234 /** @domName SourceBuffer.timestampOffset */ 16234 /** @domName SourceBuffer.timestampOffset; @docsEditable true */
16235 num timestampOffset; 16235 num timestampOffset;
16236 16236
16237 /** @domName SourceBuffer.abort */ 16237 /** @domName SourceBuffer.abort; @docsEditable true */
16238 void abort() native; 16238 void abort() native;
16239 16239
16240 /** @domName SourceBuffer.append */ 16240 /** @domName SourceBuffer.append; @docsEditable true */
16241 void append(Uint8Array data) native; 16241 void append(Uint8Array data) native;
16242 } 16242 }
16243 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16243 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16244 // for details. All rights reserved. Use of this source code is governed by a 16244 // for details. All rights reserved. Use of this source code is governed by a
16245 // BSD-style license that can be found in the LICENSE file. 16245 // BSD-style license that can be found in the LICENSE file.
16246 16246
16247 16247
16248 /// @domName SourceBufferList 16248 /// @domName SourceBufferList; @docsEditable true
16249 class SourceBufferList extends EventTarget implements JavaScriptIndexingBehavior , List<SourceBuffer> native "*SourceBufferList" { 16249 class SourceBufferList extends EventTarget implements JavaScriptIndexingBehavior , List<SourceBuffer> native "*SourceBufferList" {
16250 16250
16251 /** @domName SourceBufferList.length */ 16251 /** @domName SourceBufferList.length; @docsEditable true */
16252 final int length; 16252 final int length;
16253 16253
16254 SourceBuffer operator[](int index) => JS("SourceBuffer", "#[#]", this, index); 16254 SourceBuffer operator[](int index) => JS("SourceBuffer", "#[#]", this, index);
16255 16255
16256 void operator[]=(int index, SourceBuffer value) { 16256 void operator[]=(int index, SourceBuffer value) {
16257 throw new UnsupportedError("Cannot assign element of immutable List."); 16257 throw new UnsupportedError("Cannot assign element of immutable List.");
16258 } 16258 }
16259 // -- start List<SourceBuffer> mixins. 16259 // -- start List<SourceBuffer> mixins.
16260 // SourceBuffer is the element type. 16260 // SourceBuffer is the element type.
16261 16261
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
16329 16329
16330 void insertRange(int start, int rangeLength, [SourceBuffer initialValue]) { 16330 void insertRange(int start, int rangeLength, [SourceBuffer initialValue]) {
16331 throw new UnsupportedError("Cannot insertRange on immutable List."); 16331 throw new UnsupportedError("Cannot insertRange on immutable List.");
16332 } 16332 }
16333 16333
16334 List<SourceBuffer> getRange(int start, int rangeLength) => 16334 List<SourceBuffer> getRange(int start, int rangeLength) =>
16335 _Lists.getRange(this, start, rangeLength, <SourceBuffer>[]); 16335 _Lists.getRange(this, start, rangeLength, <SourceBuffer>[]);
16336 16336
16337 // -- end List<SourceBuffer> mixins. 16337 // -- end List<SourceBuffer> mixins.
16338 16338
16339 /** @domName SourceBufferList.addEventListener */ 16339 /** @domName SourceBufferList.addEventListener; @docsEditable true */
16340 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 16340 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
16341 16341
16342 /** @domName SourceBufferList.dispatchEvent */ 16342 /** @domName SourceBufferList.dispatchEvent; @docsEditable true */
16343 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; 16343 bool $dom_dispatchEvent(Event event) native "dispatchEvent";
16344 16344
16345 /** @domName SourceBufferList.item */ 16345 /** @domName SourceBufferList.item; @docsEditable true */
16346 SourceBuffer item(int index) native; 16346 SourceBuffer item(int index) native;
16347 16347
16348 /** @domName SourceBufferList.removeEventListener */ 16348 /** @domName SourceBufferList.removeEventListener; @docsEditable true */
16349 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 16349 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
16350 } 16350 }
16351 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16351 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16352 // for details. All rights reserved. Use of this source code is governed by a 16352 // for details. All rights reserved. Use of this source code is governed by a
16353 // BSD-style license that can be found in the LICENSE file. 16353 // BSD-style license that can be found in the LICENSE file.
16354 16354
16355 16355
16356 /// @domName HTMLSourceElement 16356 /// @domName HTMLSourceElement; @docsEditable true
16357 class SourceElement extends Element implements Element native "*HTMLSourceElemen t" { 16357 class SourceElement extends Element implements Element native "*HTMLSourceElemen t" {
16358 16358
16359 factory SourceElement() => document.$dom_createElement("source"); 16359 factory SourceElement() => document.$dom_createElement("source");
16360 16360
16361 /** @domName HTMLSourceElement.media */ 16361 /** @domName HTMLSourceElement.media; @docsEditable true */
16362 String media; 16362 String media;
16363 16363
16364 /** @domName HTMLSourceElement.src */ 16364 /** @domName HTMLSourceElement.src; @docsEditable true */
16365 String src; 16365 String src;
16366 16366
16367 /** @domName HTMLSourceElement.type */ 16367 /** @domName HTMLSourceElement.type; @docsEditable true */
16368 String type; 16368 String type;
16369 } 16369 }
16370 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16370 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16371 // for details. All rights reserved. Use of this source code is governed by a 16371 // for details. All rights reserved. Use of this source code is governed by a
16372 // BSD-style license that can be found in the LICENSE file. 16372 // BSD-style license that can be found in the LICENSE file.
16373 16373
16374 16374
16375 /// @domName HTMLSpanElement 16375 /// @domName HTMLSpanElement; @docsEditable true
16376 class SpanElement extends Element implements Element native "*HTMLSpanElement" { 16376 class SpanElement extends Element implements Element native "*HTMLSpanElement" {
16377 16377
16378 factory SpanElement() => document.$dom_createElement("span"); 16378 factory SpanElement() => document.$dom_createElement("span");
16379 } 16379 }
16380 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16380 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16381 // for details. All rights reserved. Use of this source code is governed by a 16381 // for details. All rights reserved. Use of this source code is governed by a
16382 // BSD-style license that can be found in the LICENSE file. 16382 // BSD-style license that can be found in the LICENSE file.
16383 16383
16384 16384
16385 /// @domName SpeechGrammar 16385 /// @domName SpeechGrammar; @docsEditable true
16386 class SpeechGrammar native "*SpeechGrammar" { 16386 class SpeechGrammar native "*SpeechGrammar" {
16387 16387
16388 factory SpeechGrammar() => _SpeechGrammarFactoryProvider.createSpeechGrammar() ; 16388 factory SpeechGrammar() => _SpeechGrammarFactoryProvider.createSpeechGrammar() ;
16389 16389
16390 /** @domName SpeechGrammar.src */ 16390 /** @domName SpeechGrammar.src; @docsEditable true */
16391 String src; 16391 String src;
16392 16392
16393 /** @domName SpeechGrammar.weight */ 16393 /** @domName SpeechGrammar.weight; @docsEditable true */
16394 num weight; 16394 num weight;
16395 } 16395 }
16396 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16396 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16397 // for details. All rights reserved. Use of this source code is governed by a 16397 // for details. All rights reserved. Use of this source code is governed by a
16398 // BSD-style license that can be found in the LICENSE file. 16398 // BSD-style license that can be found in the LICENSE file.
16399 16399
16400 16400
16401 /// @domName SpeechGrammarList 16401 /// @domName SpeechGrammarList; @docsEditable true
16402 class SpeechGrammarList implements JavaScriptIndexingBehavior, List<SpeechGramma r> native "*SpeechGrammarList" { 16402 class SpeechGrammarList implements JavaScriptIndexingBehavior, List<SpeechGramma r> native "*SpeechGrammarList" {
16403 16403
16404 factory SpeechGrammarList() => _SpeechGrammarListFactoryProvider.createSpeechG rammarList(); 16404 factory SpeechGrammarList() => _SpeechGrammarListFactoryProvider.createSpeechG rammarList();
16405 16405
16406 /** @domName SpeechGrammarList.length */ 16406 /** @domName SpeechGrammarList.length; @docsEditable true */
16407 final int length; 16407 final int length;
16408 16408
16409 SpeechGrammar operator[](int index) => JS("SpeechGrammar", "#[#]", this, index ); 16409 SpeechGrammar operator[](int index) => JS("SpeechGrammar", "#[#]", this, index );
16410 16410
16411 void operator[]=(int index, SpeechGrammar value) { 16411 void operator[]=(int index, SpeechGrammar value) {
16412 throw new UnsupportedError("Cannot assign element of immutable List."); 16412 throw new UnsupportedError("Cannot assign element of immutable List.");
16413 } 16413 }
16414 // -- start List<SpeechGrammar> mixins. 16414 // -- start List<SpeechGrammar> mixins.
16415 // SpeechGrammar is the element type. 16415 // SpeechGrammar is the element type.
16416 16416
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
16484 16484
16485 void insertRange(int start, int rangeLength, [SpeechGrammar initialValue]) { 16485 void insertRange(int start, int rangeLength, [SpeechGrammar initialValue]) {
16486 throw new UnsupportedError("Cannot insertRange on immutable List."); 16486 throw new UnsupportedError("Cannot insertRange on immutable List.");
16487 } 16487 }
16488 16488
16489 List<SpeechGrammar> getRange(int start, int rangeLength) => 16489 List<SpeechGrammar> getRange(int start, int rangeLength) =>
16490 _Lists.getRange(this, start, rangeLength, <SpeechGrammar>[]); 16490 _Lists.getRange(this, start, rangeLength, <SpeechGrammar>[]);
16491 16491
16492 // -- end List<SpeechGrammar> mixins. 16492 // -- end List<SpeechGrammar> mixins.
16493 16493
16494 /** @domName SpeechGrammarList.addFromString */ 16494 /** @domName SpeechGrammarList.addFromString; @docsEditable true */
16495 void addFromString(String string, [num weight]) native; 16495 void addFromString(String string, [num weight]) native;
16496 16496
16497 /** @domName SpeechGrammarList.addFromUri */ 16497 /** @domName SpeechGrammarList.addFromUri; @docsEditable true */
16498 void addFromUri(String src, [num weight]) native; 16498 void addFromUri(String src, [num weight]) native;
16499 16499
16500 /** @domName SpeechGrammarList.item */ 16500 /** @domName SpeechGrammarList.item; @docsEditable true */
16501 SpeechGrammar item(int index) native; 16501 SpeechGrammar item(int index) native;
16502 } 16502 }
16503 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16503 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16504 // for details. All rights reserved. Use of this source code is governed by a 16504 // for details. All rights reserved. Use of this source code is governed by a
16505 // BSD-style license that can be found in the LICENSE file. 16505 // BSD-style license that can be found in the LICENSE file.
16506 16506
16507 16507
16508 /// @domName SpeechInputEvent 16508 /// @domName SpeechInputEvent; @docsEditable true
16509 class SpeechInputEvent extends Event native "*SpeechInputEvent" { 16509 class SpeechInputEvent extends Event native "*SpeechInputEvent" {
16510 16510
16511 /** @domName SpeechInputEvent.results */ 16511 /** @domName SpeechInputEvent.results; @docsEditable true */
16512 final List<SpeechInputResult> results; 16512 final List<SpeechInputResult> results;
16513 } 16513 }
16514 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16514 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16515 // for details. All rights reserved. Use of this source code is governed by a 16515 // for details. All rights reserved. Use of this source code is governed by a
16516 // BSD-style license that can be found in the LICENSE file. 16516 // BSD-style license that can be found in the LICENSE file.
16517 16517
16518 16518
16519 /// @domName SpeechInputResult 16519 /// @domName SpeechInputResult; @docsEditable true
16520 class SpeechInputResult native "*SpeechInputResult" { 16520 class SpeechInputResult native "*SpeechInputResult" {
16521 16521
16522 /** @domName SpeechInputResult.confidence */ 16522 /** @domName SpeechInputResult.confidence; @docsEditable true */
16523 final num confidence; 16523 final num confidence;
16524 16524
16525 /** @domName SpeechInputResult.utterance */ 16525 /** @domName SpeechInputResult.utterance; @docsEditable true */
16526 final String utterance; 16526 final String utterance;
16527 } 16527 }
16528 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16528 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16529 // for details. All rights reserved. Use of this source code is governed by a 16529 // for details. All rights reserved. Use of this source code is governed by a
16530 // BSD-style license that can be found in the LICENSE file. 16530 // BSD-style license that can be found in the LICENSE file.
16531 16531
16532 16532
16533 /// @domName SpeechRecognition 16533 /// @domName SpeechRecognition; @docsEditable true
16534 class SpeechRecognition extends EventTarget native "*SpeechRecognition" { 16534 class SpeechRecognition extends EventTarget native "*SpeechRecognition" {
16535 16535
16536 factory SpeechRecognition() => _SpeechRecognitionFactoryProvider.createSpeechR ecognition(); 16536 factory SpeechRecognition() => _SpeechRecognitionFactoryProvider.createSpeechR ecognition();
16537 16537
16538 /** 16538 /**
16539 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 16539 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent; @docsEditable true
16540 */ 16540 */
16541 SpeechRecognitionEvents get on => 16541 SpeechRecognitionEvents get on =>
16542 new SpeechRecognitionEvents(this); 16542 new SpeechRecognitionEvents(this);
16543 16543
16544 /** @domName SpeechRecognition.continuous */ 16544 /** @domName SpeechRecognition.continuous; @docsEditable true */
16545 bool continuous; 16545 bool continuous;
16546 16546
16547 /** @domName SpeechRecognition.grammars */ 16547 /** @domName SpeechRecognition.grammars; @docsEditable true */
16548 SpeechGrammarList grammars; 16548 SpeechGrammarList grammars;
16549 16549
16550 /** @domName SpeechRecognition.interimResults */ 16550 /** @domName SpeechRecognition.interimResults; @docsEditable true */
16551 bool interimResults; 16551 bool interimResults;
16552 16552
16553 /** @domName SpeechRecognition.lang */ 16553 /** @domName SpeechRecognition.lang; @docsEditable true */
16554 String lang; 16554 String lang;
16555 16555
16556 /** @domName SpeechRecognition.maxAlternatives */ 16556 /** @domName SpeechRecognition.maxAlternatives; @docsEditable true */
16557 int maxAlternatives; 16557 int maxAlternatives;
16558 16558
16559 /** @domName SpeechRecognition.abort */ 16559 /** @domName SpeechRecognition.abort; @docsEditable true */
16560 void abort() native; 16560 void abort() native;
16561 16561
16562 /** @domName SpeechRecognition.addEventListener */ 16562 /** @domName SpeechRecognition.addEventListener; @docsEditable true */
16563 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 16563 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
16564 16564
16565 /** @domName SpeechRecognition.dispatchEvent */ 16565 /** @domName SpeechRecognition.dispatchEvent; @docsEditable true */
16566 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; 16566 bool $dom_dispatchEvent(Event evt) native "dispatchEvent";
16567 16567
16568 /** @domName SpeechRecognition.removeEventListener */ 16568 /** @domName SpeechRecognition.removeEventListener; @docsEditable true */
16569 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 16569 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
16570 16570
16571 /** @domName SpeechRecognition.start */ 16571 /** @domName SpeechRecognition.start; @docsEditable true */
16572 void start() native; 16572 void start() native;
16573 16573
16574 /** @domName SpeechRecognition.stop */ 16574 /** @domName SpeechRecognition.stop; @docsEditable true */
16575 void stop() native; 16575 void stop() native;
16576 } 16576 }
16577 16577
16578 class SpeechRecognitionEvents extends Events { 16578 class SpeechRecognitionEvents extends Events {
16579 SpeechRecognitionEvents(EventTarget _ptr) : super(_ptr); 16579 SpeechRecognitionEvents(EventTarget _ptr) : super(_ptr);
16580 16580
16581 EventListenerList get audioEnd => this['audioend']; 16581 EventListenerList get audioEnd => this['audioend'];
16582 16582
16583 EventListenerList get audioStart => this['audiostart']; 16583 EventListenerList get audioStart => this['audiostart'];
16584 16584
(...skipping 13 matching lines...) Expand all
16598 16598
16599 EventListenerList get speechStart => this['speechstart']; 16599 EventListenerList get speechStart => this['speechstart'];
16600 16600
16601 EventListenerList get start => this['start']; 16601 EventListenerList get start => this['start'];
16602 } 16602 }
16603 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16603 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16604 // for details. All rights reserved. Use of this source code is governed by a 16604 // for details. All rights reserved. Use of this source code is governed by a
16605 // BSD-style license that can be found in the LICENSE file. 16605 // BSD-style license that can be found in the LICENSE file.
16606 16606
16607 16607
16608 /// @domName SpeechRecognitionAlternative 16608 /// @domName SpeechRecognitionAlternative; @docsEditable true
16609 class SpeechRecognitionAlternative native "*SpeechRecognitionAlternative" { 16609 class SpeechRecognitionAlternative native "*SpeechRecognitionAlternative" {
16610 16610
16611 /** @domName SpeechRecognitionAlternative.confidence */ 16611 /** @domName SpeechRecognitionAlternative.confidence; @docsEditable true */
16612 final num confidence; 16612 final num confidence;
16613 16613
16614 /** @domName SpeechRecognitionAlternative.transcript */ 16614 /** @domName SpeechRecognitionAlternative.transcript; @docsEditable true */
16615 final String transcript; 16615 final String transcript;
16616 } 16616 }
16617 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16617 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16618 // for details. All rights reserved. Use of this source code is governed by a 16618 // for details. All rights reserved. Use of this source code is governed by a
16619 // BSD-style license that can be found in the LICENSE file. 16619 // BSD-style license that can be found in the LICENSE file.
16620 16620
16621 16621
16622 /// @domName SpeechRecognitionError 16622 /// @domName SpeechRecognitionError; @docsEditable true
16623 class SpeechRecognitionError extends Event native "*SpeechRecognitionError" { 16623 class SpeechRecognitionError extends Event native "*SpeechRecognitionError" {
16624 16624
16625 static const int ABORTED = 2; 16625 static const int ABORTED = 2;
16626 16626
16627 static const int AUDIO_CAPTURE = 3; 16627 static const int AUDIO_CAPTURE = 3;
16628 16628
16629 static const int BAD_GRAMMAR = 7; 16629 static const int BAD_GRAMMAR = 7;
16630 16630
16631 static const int LANGUAGE_NOT_SUPPORTED = 8; 16631 static const int LANGUAGE_NOT_SUPPORTED = 8;
16632 16632
16633 static const int NETWORK = 4; 16633 static const int NETWORK = 4;
16634 16634
16635 static const int NOT_ALLOWED = 5; 16635 static const int NOT_ALLOWED = 5;
16636 16636
16637 static const int NO_SPEECH = 1; 16637 static const int NO_SPEECH = 1;
16638 16638
16639 static const int OTHER = 0; 16639 static const int OTHER = 0;
16640 16640
16641 static const int SERVICE_NOT_ALLOWED = 6; 16641 static const int SERVICE_NOT_ALLOWED = 6;
16642 16642
16643 /** @domName SpeechRecognitionError.code */ 16643 /** @domName SpeechRecognitionError.code; @docsEditable true */
16644 final int code; 16644 final int code;
16645 16645
16646 /** @domName SpeechRecognitionError.message */ 16646 /** @domName SpeechRecognitionError.message; @docsEditable true */
16647 final String message; 16647 final String message;
16648 } 16648 }
16649 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16649 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16650 // for details. All rights reserved. Use of this source code is governed by a 16650 // for details. All rights reserved. Use of this source code is governed by a
16651 // BSD-style license that can be found in the LICENSE file. 16651 // BSD-style license that can be found in the LICENSE file.
16652 16652
16653 16653
16654 /// @domName SpeechRecognitionEvent 16654 /// @domName SpeechRecognitionEvent; @docsEditable true
16655 class SpeechRecognitionEvent extends Event native "*SpeechRecognitionEvent" { 16655 class SpeechRecognitionEvent extends Event native "*SpeechRecognitionEvent" {
16656 16656
16657 /** @domName SpeechRecognitionEvent.result */ 16657 /** @domName SpeechRecognitionEvent.result; @docsEditable true */
16658 final SpeechRecognitionResult result; 16658 final SpeechRecognitionResult result;
16659 16659
16660 /** @domName SpeechRecognitionEvent.resultHistory */ 16660 /** @domName SpeechRecognitionEvent.resultHistory; @docsEditable true */
16661 final List<SpeechRecognitionResult> resultHistory; 16661 final List<SpeechRecognitionResult> resultHistory;
16662 16662
16663 /** @domName SpeechRecognitionEvent.resultIndex */ 16663 /** @domName SpeechRecognitionEvent.resultIndex; @docsEditable true */
16664 final int resultIndex; 16664 final int resultIndex;
16665 } 16665 }
16666 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16666 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16667 // for details. All rights reserved. Use of this source code is governed by a 16667 // for details. All rights reserved. Use of this source code is governed by a
16668 // BSD-style license that can be found in the LICENSE file. 16668 // BSD-style license that can be found in the LICENSE file.
16669 16669
16670 16670
16671 /// @domName SpeechRecognitionResult 16671 /// @domName SpeechRecognitionResult; @docsEditable true
16672 class SpeechRecognitionResult native "*SpeechRecognitionResult" { 16672 class SpeechRecognitionResult native "*SpeechRecognitionResult" {
16673 16673
16674 /** @domName SpeechRecognitionResult.emma */ 16674 /** @domName SpeechRecognitionResult.emma; @docsEditable true */
16675 final Document emma; 16675 final Document emma;
16676 16676
16677 /** @domName SpeechRecognitionResult.finalValue */ 16677 /** @domName SpeechRecognitionResult.finalValue; @docsEditable true */
16678 bool get finalValue => JS("bool", "#.final", this); 16678 bool get finalValue => JS("bool", "#.final", this);
16679 16679
16680 /** @domName SpeechRecognitionResult.length */ 16680 /** @domName SpeechRecognitionResult.length; @docsEditable true */
16681 final int length; 16681 final int length;
16682 16682
16683 /** @domName SpeechRecognitionResult.item */ 16683 /** @domName SpeechRecognitionResult.item; @docsEditable true */
16684 SpeechRecognitionAlternative item(int index) native; 16684 SpeechRecognitionAlternative item(int index) native;
16685 } 16685 }
16686 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16686 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16687 // for details. All rights reserved. Use of this source code is governed by a 16687 // for details. All rights reserved. Use of this source code is governed by a
16688 // BSD-style license that can be found in the LICENSE file. 16688 // BSD-style license that can be found in the LICENSE file.
16689 16689
16690 16690
16691 class Storage implements Map<String, String> native "*Storage" { 16691 class Storage implements Map<String, String> native "*Storage" {
16692 16692
16693 // TODO(nweiz): update this when maps support lazy iteration 16693 // TODO(nweiz): update this when maps support lazy iteration
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
16730 Collection<String> get values { 16730 Collection<String> get values {
16731 final values = []; 16731 final values = [];
16732 forEach((k, v) => values.add(v)); 16732 forEach((k, v) => values.add(v));
16733 return values; 16733 return values;
16734 } 16734 }
16735 16735
16736 int get length => $dom_length; 16736 int get length => $dom_length;
16737 16737
16738 bool get isEmpty => $dom_key(0) == null; 16738 bool get isEmpty => $dom_key(0) == null;
16739 16739
16740 /** @domName Storage.length */ 16740 /** @domName Storage.length; @docsEditable true */
16741 int get $dom_length => JS("int", "#.length", this); 16741 int get $dom_length => JS("int", "#.length", this);
16742 16742
16743 /** @domName Storage.clear */ 16743 /** @domName Storage.clear; @docsEditable true */
16744 void $dom_clear() native "clear"; 16744 void $dom_clear() native "clear";
16745 16745
16746 /** @domName Storage.getItem */ 16746 /** @domName Storage.getItem; @docsEditable true */
16747 String $dom_getItem(String key) native "getItem"; 16747 String $dom_getItem(String key) native "getItem";
16748 16748
16749 /** @domName Storage.key */ 16749 /** @domName Storage.key; @docsEditable true */
16750 String $dom_key(int index) native "key"; 16750 String $dom_key(int index) native "key";
16751 16751
16752 /** @domName Storage.removeItem */ 16752 /** @domName Storage.removeItem; @docsEditable true */
16753 void $dom_removeItem(String key) native "removeItem"; 16753 void $dom_removeItem(String key) native "removeItem";
16754 16754
16755 /** @domName Storage.setItem */ 16755 /** @domName Storage.setItem; @docsEditable true */
16756 void $dom_setItem(String key, String data) native "setItem"; 16756 void $dom_setItem(String key, String data) native "setItem";
16757 16757
16758 } 16758 }
16759 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16759 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16760 // for details. All rights reserved. Use of this source code is governed by a 16760 // for details. All rights reserved. Use of this source code is governed by a
16761 // BSD-style license that can be found in the LICENSE file. 16761 // BSD-style license that can be found in the LICENSE file.
16762 16762
16763 16763
16764 /// @domName StorageEvent 16764 /// @domName StorageEvent; @docsEditable true
16765 class StorageEvent extends Event native "*StorageEvent" { 16765 class StorageEvent extends Event native "*StorageEvent" {
16766 16766
16767 /** @domName StorageEvent.key */ 16767 /** @domName StorageEvent.key; @docsEditable true */
16768 final String key; 16768 final String key;
16769 16769
16770 /** @domName StorageEvent.newValue */ 16770 /** @domName StorageEvent.newValue; @docsEditable true */
16771 final String newValue; 16771 final String newValue;
16772 16772
16773 /** @domName StorageEvent.oldValue */ 16773 /** @domName StorageEvent.oldValue; @docsEditable true */
16774 final String oldValue; 16774 final String oldValue;
16775 16775
16776 /** @domName StorageEvent.storageArea */ 16776 /** @domName StorageEvent.storageArea; @docsEditable true */
16777 final Storage storageArea; 16777 final Storage storageArea;
16778 16778
16779 /** @domName StorageEvent.url */ 16779 /** @domName StorageEvent.url; @docsEditable true */
16780 final String url; 16780 final String url;
16781 16781
16782 /** @domName StorageEvent.initStorageEvent */ 16782 /** @domName StorageEvent.initStorageEvent; @docsEditable true */
16783 void initStorageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, S tring keyArg, String oldValueArg, String newValueArg, String urlArg, Storage sto rageAreaArg) native; 16783 void initStorageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, S tring keyArg, String oldValueArg, String newValueArg, String urlArg, Storage sto rageAreaArg) native;
16784 } 16784 }
16785 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16785 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16786 // for details. All rights reserved. Use of this source code is governed by a 16786 // for details. All rights reserved. Use of this source code is governed by a
16787 // BSD-style license that can be found in the LICENSE file. 16787 // BSD-style license that can be found in the LICENSE file.
16788 16788
16789 16789
16790 /// @domName StorageInfo 16790 /// @domName StorageInfo; @docsEditable true
16791 class StorageInfo native "*StorageInfo" { 16791 class StorageInfo native "*StorageInfo" {
16792 16792
16793 static const int PERSISTENT = 1; 16793 static const int PERSISTENT = 1;
16794 16794
16795 static const int TEMPORARY = 0; 16795 static const int TEMPORARY = 0;
16796 16796
16797 /** @domName StorageInfo.queryUsageAndQuota */ 16797 /** @domName StorageInfo.queryUsageAndQuota; @docsEditable true */
16798 void queryUsageAndQuota(int storageType, [StorageInfoUsageCallback usageCallba ck, StorageInfoErrorCallback errorCallback]) native; 16798 void queryUsageAndQuota(int storageType, [StorageInfoUsageCallback usageCallba ck, StorageInfoErrorCallback errorCallback]) native;
16799 16799
16800 /** @domName StorageInfo.requestQuota */ 16800 /** @domName StorageInfo.requestQuota; @docsEditable true */
16801 void requestQuota(int storageType, int newQuotaInBytes, [StorageInfoQuotaCallb ack quotaCallback, StorageInfoErrorCallback errorCallback]) native; 16801 void requestQuota(int storageType, int newQuotaInBytes, [StorageInfoQuotaCallb ack quotaCallback, StorageInfoErrorCallback errorCallback]) native;
16802 } 16802 }
16803 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16803 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16804 // for details. All rights reserved. Use of this source code is governed by a 16804 // for details. All rights reserved. Use of this source code is governed by a
16805 // BSD-style license that can be found in the LICENSE file. 16805 // BSD-style license that can be found in the LICENSE file.
16806 16806
16807 // WARNING: Do not edit - generated code. 16807 // WARNING: Do not edit - generated code.
16808 16808
16809 16809
16810 typedef void StorageInfoErrorCallback(DOMException error); 16810 typedef void StorageInfoErrorCallback(DOMException error);
(...skipping 19 matching lines...) Expand all
16830 16830
16831 // WARNING: Do not edit - generated code. 16831 // WARNING: Do not edit - generated code.
16832 16832
16833 16833
16834 typedef void StringCallback(String data); 16834 typedef void StringCallback(String data);
16835 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16835 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16836 // for details. All rights reserved. Use of this source code is governed by a 16836 // for details. All rights reserved. Use of this source code is governed by a
16837 // BSD-style license that can be found in the LICENSE file. 16837 // BSD-style license that can be found in the LICENSE file.
16838 16838
16839 16839
16840 /// @domName HTMLStyleElement 16840 /// @domName HTMLStyleElement; @docsEditable true
16841 class StyleElement extends Element implements Element native "*HTMLStyleElement" { 16841 class StyleElement extends Element implements Element native "*HTMLStyleElement" {
16842 16842
16843 factory StyleElement() => document.$dom_createElement("style"); 16843 factory StyleElement() => document.$dom_createElement("style");
16844 16844
16845 /** @domName HTMLStyleElement.disabled */ 16845 /** @domName HTMLStyleElement.disabled; @docsEditable true */
16846 bool disabled; 16846 bool disabled;
16847 16847
16848 /** @domName HTMLStyleElement.media */ 16848 /** @domName HTMLStyleElement.media; @docsEditable true */
16849 String media; 16849 String media;
16850 16850
16851 /** @domName HTMLStyleElement.scoped */ 16851 /** @domName HTMLStyleElement.scoped; @docsEditable true */
16852 bool scoped; 16852 bool scoped;
16853 16853
16854 /** @domName HTMLStyleElement.sheet */ 16854 /** @domName HTMLStyleElement.sheet; @docsEditable true */
16855 final StyleSheet sheet; 16855 final StyleSheet sheet;
16856 16856
16857 /** @domName HTMLStyleElement.type */ 16857 /** @domName HTMLStyleElement.type; @docsEditable true */
16858 String type; 16858 String type;
16859 } 16859 }
16860 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16860 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16861 // for details. All rights reserved. Use of this source code is governed by a 16861 // for details. All rights reserved. Use of this source code is governed by a
16862 // BSD-style license that can be found in the LICENSE file. 16862 // BSD-style license that can be found in the LICENSE file.
16863 16863
16864 16864
16865 /// @domName StyleMedia 16865 /// @domName StyleMedia; @docsEditable true
16866 class StyleMedia native "*StyleMedia" { 16866 class StyleMedia native "*StyleMedia" {
16867 16867
16868 /** @domName StyleMedia.type */ 16868 /** @domName StyleMedia.type; @docsEditable true */
16869 final String type; 16869 final String type;
16870 16870
16871 /** @domName StyleMedia.matchMedium */ 16871 /** @domName StyleMedia.matchMedium; @docsEditable true */
16872 bool matchMedium(String mediaquery) native; 16872 bool matchMedium(String mediaquery) native;
16873 } 16873 }
16874 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16874 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16875 // for details. All rights reserved. Use of this source code is governed by a 16875 // for details. All rights reserved. Use of this source code is governed by a
16876 // BSD-style license that can be found in the LICENSE file. 16876 // BSD-style license that can be found in the LICENSE file.
16877 16877
16878 16878
16879 /// @domName StyleSheet 16879 /// @domName StyleSheet; @docsEditable true
16880 class StyleSheet native "*StyleSheet" { 16880 class StyleSheet native "*StyleSheet" {
16881 16881
16882 /** @domName StyleSheet.disabled */ 16882 /** @domName StyleSheet.disabled; @docsEditable true */
16883 bool disabled; 16883 bool disabled;
16884 16884
16885 /** @domName StyleSheet.href */ 16885 /** @domName StyleSheet.href; @docsEditable true */
16886 final String href; 16886 final String href;
16887 16887
16888 /** @domName StyleSheet.media */ 16888 /** @domName StyleSheet.media; @docsEditable true */
16889 final MediaList media; 16889 final MediaList media;
16890 16890
16891 /** @domName StyleSheet.ownerNode */ 16891 /** @domName StyleSheet.ownerNode; @docsEditable true */
16892 final Node ownerNode; 16892 final Node ownerNode;
16893 16893
16894 /** @domName StyleSheet.parentStyleSheet */ 16894 /** @domName StyleSheet.parentStyleSheet; @docsEditable true */
16895 final StyleSheet parentStyleSheet; 16895 final StyleSheet parentStyleSheet;
16896 16896
16897 /** @domName StyleSheet.title */ 16897 /** @domName StyleSheet.title; @docsEditable true */
16898 final String title; 16898 final String title;
16899 16899
16900 /** @domName StyleSheet.type */ 16900 /** @domName StyleSheet.type; @docsEditable true */
16901 final String type; 16901 final String type;
16902 } 16902 }
16903 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16903 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16904 // for details. All rights reserved. Use of this source code is governed by a 16904 // for details. All rights reserved. Use of this source code is governed by a
16905 // BSD-style license that can be found in the LICENSE file. 16905 // BSD-style license that can be found in the LICENSE file.
16906 16906
16907 16907
16908 /// @domName HTMLTableCaptionElement 16908 /// @domName HTMLTableCaptionElement; @docsEditable true
16909 class TableCaptionElement extends Element implements Element native "*HTMLTableC aptionElement" { 16909 class TableCaptionElement extends Element implements Element native "*HTMLTableC aptionElement" {
16910 16910
16911 factory TableCaptionElement() => document.$dom_createElement("caption"); 16911 factory TableCaptionElement() => document.$dom_createElement("caption");
16912 16912
16913 /** @domName HTMLTableCaptionElement.align */ 16913 /** @domName HTMLTableCaptionElement.align; @docsEditable true */
16914 String align; 16914 String align;
16915 } 16915 }
16916 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16916 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16917 // for details. All rights reserved. Use of this source code is governed by a 16917 // for details. All rights reserved. Use of this source code is governed by a
16918 // BSD-style license that can be found in the LICENSE file. 16918 // BSD-style license that can be found in the LICENSE file.
16919 16919
16920 16920
16921 /// @domName HTMLTableCellElement 16921 /// @domName HTMLTableCellElement; @docsEditable true
16922 class TableCellElement extends Element implements Element native "*HTMLTableCell Element" { 16922 class TableCellElement extends Element implements Element native "*HTMLTableCell Element" {
16923 16923
16924 factory TableCellElement() => document.$dom_createElement("td"); 16924 factory TableCellElement() => document.$dom_createElement("td");
16925 16925
16926 /** @domName HTMLTableCellElement.abbr */ 16926 /** @domName HTMLTableCellElement.abbr; @docsEditable true */
16927 String abbr; 16927 String abbr;
16928 16928
16929 /** @domName HTMLTableCellElement.align */ 16929 /** @domName HTMLTableCellElement.align; @docsEditable true */
16930 String align; 16930 String align;
16931 16931
16932 /** @domName HTMLTableCellElement.axis */ 16932 /** @domName HTMLTableCellElement.axis; @docsEditable true */
16933 String axis; 16933 String axis;
16934 16934
16935 /** @domName HTMLTableCellElement.bgColor */ 16935 /** @domName HTMLTableCellElement.bgColor; @docsEditable true */
16936 String bgColor; 16936 String bgColor;
16937 16937
16938 /** @domName HTMLTableCellElement.cellIndex */ 16938 /** @domName HTMLTableCellElement.cellIndex; @docsEditable true */
16939 final int cellIndex; 16939 final int cellIndex;
16940 16940
16941 /** @domName HTMLTableCellElement.ch */ 16941 /** @domName HTMLTableCellElement.ch; @docsEditable true */
16942 String ch; 16942 String ch;
16943 16943
16944 /** @domName HTMLTableCellElement.chOff */ 16944 /** @domName HTMLTableCellElement.chOff; @docsEditable true */
16945 String chOff; 16945 String chOff;
16946 16946
16947 /** @domName HTMLTableCellElement.colSpan */ 16947 /** @domName HTMLTableCellElement.colSpan; @docsEditable true */
16948 int colSpan; 16948 int colSpan;
16949 16949
16950 /** @domName HTMLTableCellElement.headers */ 16950 /** @domName HTMLTableCellElement.headers; @docsEditable true */
16951 String headers; 16951 String headers;
16952 16952
16953 /** @domName HTMLTableCellElement.height */ 16953 /** @domName HTMLTableCellElement.height; @docsEditable true */
16954 String height; 16954 String height;
16955 16955
16956 /** @domName HTMLTableCellElement.noWrap */ 16956 /** @domName HTMLTableCellElement.noWrap; @docsEditable true */
16957 bool noWrap; 16957 bool noWrap;
16958 16958
16959 /** @domName HTMLTableCellElement.rowSpan */ 16959 /** @domName HTMLTableCellElement.rowSpan; @docsEditable true */
16960 int rowSpan; 16960 int rowSpan;
16961 16961
16962 /** @domName HTMLTableCellElement.scope */ 16962 /** @domName HTMLTableCellElement.scope; @docsEditable true */
16963 String scope; 16963 String scope;
16964 16964
16965 /** @domName HTMLTableCellElement.vAlign */ 16965 /** @domName HTMLTableCellElement.vAlign; @docsEditable true */
16966 String vAlign; 16966 String vAlign;
16967 16967
16968 /** @domName HTMLTableCellElement.width */ 16968 /** @domName HTMLTableCellElement.width; @docsEditable true */
16969 String width; 16969 String width;
16970 } 16970 }
16971 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16971 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16972 // for details. All rights reserved. Use of this source code is governed by a 16972 // for details. All rights reserved. Use of this source code is governed by a
16973 // BSD-style license that can be found in the LICENSE file. 16973 // BSD-style license that can be found in the LICENSE file.
16974 16974
16975 16975
16976 /// @domName HTMLTableColElement 16976 /// @domName HTMLTableColElement; @docsEditable true
16977 class TableColElement extends Element implements Element native "*HTMLTableColEl ement" { 16977 class TableColElement extends Element implements Element native "*HTMLTableColEl ement" {
16978 16978
16979 factory TableColElement() => document.$dom_createElement("col"); 16979 factory TableColElement() => document.$dom_createElement("col");
16980 16980
16981 /** @domName HTMLTableColElement.align */ 16981 /** @domName HTMLTableColElement.align; @docsEditable true */
16982 String align; 16982 String align;
16983 16983
16984 /** @domName HTMLTableColElement.ch */ 16984 /** @domName HTMLTableColElement.ch; @docsEditable true */
16985 String ch; 16985 String ch;
16986 16986
16987 /** @domName HTMLTableColElement.chOff */ 16987 /** @domName HTMLTableColElement.chOff; @docsEditable true */
16988 String chOff; 16988 String chOff;
16989 16989
16990 /** @domName HTMLTableColElement.span */ 16990 /** @domName HTMLTableColElement.span; @docsEditable true */
16991 int span; 16991 int span;
16992 16992
16993 /** @domName HTMLTableColElement.vAlign */ 16993 /** @domName HTMLTableColElement.vAlign; @docsEditable true */
16994 String vAlign; 16994 String vAlign;
16995 16995
16996 /** @domName HTMLTableColElement.width */ 16996 /** @domName HTMLTableColElement.width; @docsEditable true */
16997 String width; 16997 String width;
16998 } 16998 }
16999 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16999 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17000 // for details. All rights reserved. Use of this source code is governed by a 17000 // for details. All rights reserved. Use of this source code is governed by a
17001 // BSD-style license that can be found in the LICENSE file. 17001 // BSD-style license that can be found in the LICENSE file.
17002 17002
17003 17003
17004 class TableElement extends Element implements Element native "*HTMLTableElement" { 17004 class TableElement extends Element implements Element native "*HTMLTableElement" {
17005 17005
17006 factory TableElement() => document.$dom_createElement("table"); 17006 factory TableElement() => document.$dom_createElement("table");
17007 17007
17008 /** @domName HTMLTableElement.align */ 17008 /** @domName HTMLTableElement.align; @docsEditable true */
17009 String align; 17009 String align;
17010 17010
17011 /** @domName HTMLTableElement.bgColor */ 17011 /** @domName HTMLTableElement.bgColor; @docsEditable true */
17012 String bgColor; 17012 String bgColor;
17013 17013
17014 /** @domName HTMLTableElement.border */ 17014 /** @domName HTMLTableElement.border; @docsEditable true */
17015 String border; 17015 String border;
17016 17016
17017 /** @domName HTMLTableElement.caption */ 17017 /** @domName HTMLTableElement.caption; @docsEditable true */
17018 TableCaptionElement caption; 17018 TableCaptionElement caption;
17019 17019
17020 /** @domName HTMLTableElement.cellPadding */ 17020 /** @domName HTMLTableElement.cellPadding; @docsEditable true */
17021 String cellPadding; 17021 String cellPadding;
17022 17022
17023 /** @domName HTMLTableElement.cellSpacing */ 17023 /** @domName HTMLTableElement.cellSpacing; @docsEditable true */
17024 String cellSpacing; 17024 String cellSpacing;
17025 17025
17026 /** @domName HTMLTableElement.frame */ 17026 /** @domName HTMLTableElement.frame; @docsEditable true */
17027 String frame; 17027 String frame;
17028 17028
17029 /** @domName HTMLTableElement.rows */ 17029 /** @domName HTMLTableElement.rows; @docsEditable true */
17030 final HTMLCollection rows; 17030 final HTMLCollection rows;
17031 17031
17032 /** @domName HTMLTableElement.rules */ 17032 /** @domName HTMLTableElement.rules; @docsEditable true */
17033 String rules; 17033 String rules;
17034 17034
17035 /** @domName HTMLTableElement.summary */ 17035 /** @domName HTMLTableElement.summary; @docsEditable true */
17036 String summary; 17036 String summary;
17037 17037
17038 /** @domName HTMLTableElement.tBodies */ 17038 /** @domName HTMLTableElement.tBodies; @docsEditable true */
17039 final HTMLCollection tBodies; 17039 final HTMLCollection tBodies;
17040 17040
17041 /** @domName HTMLTableElement.tFoot */ 17041 /** @domName HTMLTableElement.tFoot; @docsEditable true */
17042 TableSectionElement tFoot; 17042 TableSectionElement tFoot;
17043 17043
17044 /** @domName HTMLTableElement.tHead */ 17044 /** @domName HTMLTableElement.tHead; @docsEditable true */
17045 TableSectionElement tHead; 17045 TableSectionElement tHead;
17046 17046
17047 /** @domName HTMLTableElement.width */ 17047 /** @domName HTMLTableElement.width; @docsEditable true */
17048 String width; 17048 String width;
17049 17049
17050 /** @domName HTMLTableElement.createCaption */ 17050 /** @domName HTMLTableElement.createCaption; @docsEditable true */
17051 Element createCaption() native; 17051 Element createCaption() native;
17052 17052
17053 /** @domName HTMLTableElement.createTFoot */ 17053 /** @domName HTMLTableElement.createTFoot; @docsEditable true */
17054 Element createTFoot() native; 17054 Element createTFoot() native;
17055 17055
17056 /** @domName HTMLTableElement.createTHead */ 17056 /** @domName HTMLTableElement.createTHead; @docsEditable true */
17057 Element createTHead() native; 17057 Element createTHead() native;
17058 17058
17059 /** @domName HTMLTableElement.deleteCaption */ 17059 /** @domName HTMLTableElement.deleteCaption; @docsEditable true */
17060 void deleteCaption() native; 17060 void deleteCaption() native;
17061 17061
17062 /** @domName HTMLTableElement.deleteRow */ 17062 /** @domName HTMLTableElement.deleteRow; @docsEditable true */
17063 void deleteRow(int index) native; 17063 void deleteRow(int index) native;
17064 17064
17065 /** @domName HTMLTableElement.deleteTFoot */ 17065 /** @domName HTMLTableElement.deleteTFoot; @docsEditable true */
17066 void deleteTFoot() native; 17066 void deleteTFoot() native;
17067 17067
17068 /** @domName HTMLTableElement.deleteTHead */ 17068 /** @domName HTMLTableElement.deleteTHead; @docsEditable true */
17069 void deleteTHead() native; 17069 void deleteTHead() native;
17070 17070
17071 /** @domName HTMLTableElement.insertRow */ 17071 /** @domName HTMLTableElement.insertRow; @docsEditable true */
17072 Element insertRow(int index) native; 17072 Element insertRow(int index) native;
17073 17073
17074 17074
17075 Element createTBody() { 17075 Element createTBody() {
17076 if (JS('bool', '!!#.createTBody', this)) { 17076 if (JS('bool', '!!#.createTBody', this)) {
17077 return this._createTBody(); 17077 return this._createTBody();
17078 } 17078 }
17079 var tbody = new Element.tag('tbody'); 17079 var tbody = new Element.tag('tbody');
17080 this.elements.add(tbody); 17080 this.elements.add(tbody);
17081 return tbody; 17081 return tbody;
17082 } 17082 }
17083 17083
17084 Element _createTBody() native 'createTBody'; 17084 Element _createTBody() native 'createTBody';
17085 } 17085 }
17086 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17086 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17087 // for details. All rights reserved. Use of this source code is governed by a 17087 // for details. All rights reserved. Use of this source code is governed by a
17088 // BSD-style license that can be found in the LICENSE file. 17088 // BSD-style license that can be found in the LICENSE file.
17089 17089
17090 17090
17091 /// @domName HTMLTableRowElement 17091 /// @domName HTMLTableRowElement; @docsEditable true
17092 class TableRowElement extends Element implements Element native "*HTMLTableRowEl ement" { 17092 class TableRowElement extends Element implements Element native "*HTMLTableRowEl ement" {
17093 17093
17094 factory TableRowElement() => document.$dom_createElement("tr"); 17094 factory TableRowElement() => document.$dom_createElement("tr");
17095 17095
17096 /** @domName HTMLTableRowElement.align */ 17096 /** @domName HTMLTableRowElement.align; @docsEditable true */
17097 String align; 17097 String align;
17098 17098
17099 /** @domName HTMLTableRowElement.bgColor */ 17099 /** @domName HTMLTableRowElement.bgColor; @docsEditable true */
17100 String bgColor; 17100 String bgColor;
17101 17101
17102 /** @domName HTMLTableRowElement.cells */ 17102 /** @domName HTMLTableRowElement.cells; @docsEditable true */
17103 final HTMLCollection cells; 17103 final HTMLCollection cells;
17104 17104
17105 /** @domName HTMLTableRowElement.ch */ 17105 /** @domName HTMLTableRowElement.ch; @docsEditable true */
17106 String ch; 17106 String ch;
17107 17107
17108 /** @domName HTMLTableRowElement.chOff */ 17108 /** @domName HTMLTableRowElement.chOff; @docsEditable true */
17109 String chOff; 17109 String chOff;
17110 17110
17111 /** @domName HTMLTableRowElement.rowIndex */ 17111 /** @domName HTMLTableRowElement.rowIndex; @docsEditable true */
17112 final int rowIndex; 17112 final int rowIndex;
17113 17113
17114 /** @domName HTMLTableRowElement.sectionRowIndex */ 17114 /** @domName HTMLTableRowElement.sectionRowIndex; @docsEditable true */
17115 final int sectionRowIndex; 17115 final int sectionRowIndex;
17116 17116
17117 /** @domName HTMLTableRowElement.vAlign */ 17117 /** @domName HTMLTableRowElement.vAlign; @docsEditable true */
17118 String vAlign; 17118 String vAlign;
17119 17119
17120 /** @domName HTMLTableRowElement.deleteCell */ 17120 /** @domName HTMLTableRowElement.deleteCell; @docsEditable true */
17121 void deleteCell(int index) native; 17121 void deleteCell(int index) native;
17122 17122
17123 /** @domName HTMLTableRowElement.insertCell */ 17123 /** @domName HTMLTableRowElement.insertCell; @docsEditable true */
17124 Element insertCell(int index) native; 17124 Element insertCell(int index) native;
17125 } 17125 }
17126 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17126 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17127 // for details. All rights reserved. Use of this source code is governed by a 17127 // for details. All rights reserved. Use of this source code is governed by a
17128 // BSD-style license that can be found in the LICENSE file. 17128 // BSD-style license that can be found in the LICENSE file.
17129 17129
17130 17130
17131 /// @domName HTMLTableSectionElement 17131 /// @domName HTMLTableSectionElement; @docsEditable true
17132 class TableSectionElement extends Element implements Element native "*HTMLTableS ectionElement" { 17132 class TableSectionElement extends Element implements Element native "*HTMLTableS ectionElement" {
17133 17133
17134 /** @domName HTMLTableSectionElement.align */ 17134 /** @domName HTMLTableSectionElement.align; @docsEditable true */
17135 String align; 17135 String align;
17136 17136
17137 /** @domName HTMLTableSectionElement.ch */ 17137 /** @domName HTMLTableSectionElement.ch; @docsEditable true */
17138 String ch; 17138 String ch;
17139 17139
17140 /** @domName HTMLTableSectionElement.chOff */ 17140 /** @domName HTMLTableSectionElement.chOff; @docsEditable true */
17141 String chOff; 17141 String chOff;
17142 17142
17143 /** @domName HTMLTableSectionElement.rows */ 17143 /** @domName HTMLTableSectionElement.rows; @docsEditable true */
17144 final HTMLCollection rows; 17144 final HTMLCollection rows;
17145 17145
17146 /** @domName HTMLTableSectionElement.vAlign */ 17146 /** @domName HTMLTableSectionElement.vAlign; @docsEditable true */
17147 String vAlign; 17147 String vAlign;
17148 17148
17149 /** @domName HTMLTableSectionElement.deleteRow */ 17149 /** @domName HTMLTableSectionElement.deleteRow; @docsEditable true */
17150 void deleteRow(int index) native; 17150 void deleteRow(int index) native;
17151 17151
17152 /** @domName HTMLTableSectionElement.insertRow */ 17152 /** @domName HTMLTableSectionElement.insertRow; @docsEditable true */
17153 Element insertRow(int index) native; 17153 Element insertRow(int index) native;
17154 } 17154 }
17155 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17155 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17156 // for details. All rights reserved. Use of this source code is governed by a 17156 // for details. All rights reserved. Use of this source code is governed by a
17157 // BSD-style license that can be found in the LICENSE file. 17157 // BSD-style license that can be found in the LICENSE file.
17158 17158
17159 // WARNING: Do not edit - generated code. 17159 // WARNING: Do not edit - generated code.
17160 17160
17161 17161
17162 class Text extends CharacterData native "*Text" { 17162 class Text extends CharacterData native "*Text" {
17163 factory Text(String data) => _TextFactoryProvider.createText(data); 17163 factory Text(String data) => _TextFactoryProvider.createText(data);
17164 17164
17165 /** @domName Text.wholeText */ 17165 /** @domName Text.wholeText; @docsEditable true */
17166 final String wholeText; 17166 final String wholeText;
17167 17167
17168 /** @domName Text.replaceWholeText */ 17168 /** @domName Text.replaceWholeText; @docsEditable true */
17169 Text replaceWholeText(String content) native; 17169 Text replaceWholeText(String content) native;
17170 17170
17171 /** @domName Text.splitText */ 17171 /** @domName Text.splitText; @docsEditable true */
17172 Text splitText(int offset) native; 17172 Text splitText(int offset) native;
17173 17173
17174 } 17174 }
17175 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17175 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17176 // for details. All rights reserved. Use of this source code is governed by a 17176 // for details. All rights reserved. Use of this source code is governed by a
17177 // BSD-style license that can be found in the LICENSE file. 17177 // BSD-style license that can be found in the LICENSE file.
17178 17178
17179 17179
17180 /// @domName HTMLTextAreaElement 17180 /// @domName HTMLTextAreaElement; @docsEditable true
17181 class TextAreaElement extends Element implements Element native "*HTMLTextAreaEl ement" { 17181 class TextAreaElement extends Element implements Element native "*HTMLTextAreaEl ement" {
17182 17182
17183 factory TextAreaElement() => document.$dom_createElement("textarea"); 17183 factory TextAreaElement() => document.$dom_createElement("textarea");
17184 17184
17185 /** @domName HTMLTextAreaElement.autofocus */ 17185 /** @domName HTMLTextAreaElement.autofocus; @docsEditable true */
17186 bool autofocus; 17186 bool autofocus;
17187 17187
17188 /** @domName HTMLTextAreaElement.cols */ 17188 /** @domName HTMLTextAreaElement.cols; @docsEditable true */
17189 int cols; 17189 int cols;
17190 17190
17191 /** @domName HTMLTextAreaElement.defaultValue */ 17191 /** @domName HTMLTextAreaElement.defaultValue; @docsEditable true */
17192 String defaultValue; 17192 String defaultValue;
17193 17193
17194 /** @domName HTMLTextAreaElement.dirName */ 17194 /** @domName HTMLTextAreaElement.dirName; @docsEditable true */
17195 String dirName; 17195 String dirName;
17196 17196
17197 /** @domName HTMLTextAreaElement.disabled */ 17197 /** @domName HTMLTextAreaElement.disabled; @docsEditable true */
17198 bool disabled; 17198 bool disabled;
17199 17199
17200 /** @domName HTMLTextAreaElement.form */ 17200 /** @domName HTMLTextAreaElement.form; @docsEditable true */
17201 final FormElement form; 17201 final FormElement form;
17202 17202
17203 /** @domName HTMLTextAreaElement.labels */ 17203 /** @domName HTMLTextAreaElement.labels; @docsEditable true */
17204 final List<Node> labels; 17204 final List<Node> labels;
17205 17205
17206 /** @domName HTMLTextAreaElement.maxLength */ 17206 /** @domName HTMLTextAreaElement.maxLength; @docsEditable true */
17207 int maxLength; 17207 int maxLength;
17208 17208
17209 /** @domName HTMLTextAreaElement.name */ 17209 /** @domName HTMLTextAreaElement.name; @docsEditable true */
17210 String name; 17210 String name;
17211 17211
17212 /** @domName HTMLTextAreaElement.placeholder */ 17212 /** @domName HTMLTextAreaElement.placeholder; @docsEditable true */
17213 String placeholder; 17213 String placeholder;
17214 17214
17215 /** @domName HTMLTextAreaElement.readOnly */ 17215 /** @domName HTMLTextAreaElement.readOnly; @docsEditable true */
17216 bool readOnly; 17216 bool readOnly;
17217 17217
17218 /** @domName HTMLTextAreaElement.required */ 17218 /** @domName HTMLTextAreaElement.required; @docsEditable true */
17219 bool required; 17219 bool required;
17220 17220
17221 /** @domName HTMLTextAreaElement.rows */ 17221 /** @domName HTMLTextAreaElement.rows; @docsEditable true */
17222 int rows; 17222 int rows;
17223 17223
17224 /** @domName HTMLTextAreaElement.selectionDirection */ 17224 /** @domName HTMLTextAreaElement.selectionDirection; @docsEditable true */
17225 String selectionDirection; 17225 String selectionDirection;
17226 17226
17227 /** @domName HTMLTextAreaElement.selectionEnd */ 17227 /** @domName HTMLTextAreaElement.selectionEnd; @docsEditable true */
17228 int selectionEnd; 17228 int selectionEnd;
17229 17229
17230 /** @domName HTMLTextAreaElement.selectionStart */ 17230 /** @domName HTMLTextAreaElement.selectionStart; @docsEditable true */
17231 int selectionStart; 17231 int selectionStart;
17232 17232
17233 /** @domName HTMLTextAreaElement.textLength */ 17233 /** @domName HTMLTextAreaElement.textLength; @docsEditable true */
17234 final int textLength; 17234 final int textLength;
17235 17235
17236 /** @domName HTMLTextAreaElement.type */ 17236 /** @domName HTMLTextAreaElement.type; @docsEditable true */
17237 final String type; 17237 final String type;
17238 17238
17239 /** @domName HTMLTextAreaElement.validationMessage */ 17239 /** @domName HTMLTextAreaElement.validationMessage; @docsEditable true */
17240 final String validationMessage; 17240 final String validationMessage;
17241 17241
17242 /** @domName HTMLTextAreaElement.validity */ 17242 /** @domName HTMLTextAreaElement.validity; @docsEditable true */
17243 final ValidityState validity; 17243 final ValidityState validity;
17244 17244
17245 /** @domName HTMLTextAreaElement.value */ 17245 /** @domName HTMLTextAreaElement.value; @docsEditable true */
17246 String value; 17246 String value;
17247 17247
17248 /** @domName HTMLTextAreaElement.willValidate */ 17248 /** @domName HTMLTextAreaElement.willValidate; @docsEditable true */
17249 final bool willValidate; 17249 final bool willValidate;
17250 17250
17251 /** @domName HTMLTextAreaElement.wrap */ 17251 /** @domName HTMLTextAreaElement.wrap; @docsEditable true */
17252 String wrap; 17252 String wrap;
17253 17253
17254 /** @domName HTMLTextAreaElement.checkValidity */ 17254 /** @domName HTMLTextAreaElement.checkValidity; @docsEditable true */
17255 bool checkValidity() native; 17255 bool checkValidity() native;
17256 17256
17257 /** @domName HTMLTextAreaElement.select */ 17257 /** @domName HTMLTextAreaElement.select; @docsEditable true */
17258 void select() native; 17258 void select() native;
17259 17259
17260 /** @domName HTMLTextAreaElement.setCustomValidity */ 17260 /** @domName HTMLTextAreaElement.setCustomValidity; @docsEditable true */
17261 void setCustomValidity(String error) native; 17261 void setCustomValidity(String error) native;
17262 17262
17263 /** @domName HTMLTextAreaElement.setRangeText */ 17263 /** @domName HTMLTextAreaElement.setRangeText; @docsEditable true */
17264 void setRangeText(String replacement, [int start, int end, String selectionMod e]) native; 17264 void setRangeText(String replacement, [int start, int end, String selectionMod e]) native;
17265 17265
17266 /** @domName HTMLTextAreaElement.setSelectionRange */ 17266 /** @domName HTMLTextAreaElement.setSelectionRange; @docsEditable true */
17267 void setSelectionRange(int start, int end, [String direction]) native; 17267 void setSelectionRange(int start, int end, [String direction]) native;
17268 } 17268 }
17269 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17269 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17270 // for details. All rights reserved. Use of this source code is governed by a 17270 // for details. All rights reserved. Use of this source code is governed by a
17271 // BSD-style license that can be found in the LICENSE file. 17271 // BSD-style license that can be found in the LICENSE file.
17272 17272
17273 17273
17274 /// @domName TextEvent 17274 /// @domName TextEvent; @docsEditable true
17275 class TextEvent extends UIEvent native "*TextEvent" { 17275 class TextEvent extends UIEvent native "*TextEvent" {
17276 17276
17277 /** @domName TextEvent.data */ 17277 /** @domName TextEvent.data; @docsEditable true */
17278 final String data; 17278 final String data;
17279 17279
17280 /** @domName TextEvent.initTextEvent */ 17280 /** @domName TextEvent.initTextEvent; @docsEditable true */
17281 void initTextEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Loca lWindow viewArg, String dataArg) native; 17281 void initTextEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Loca lWindow viewArg, String dataArg) native;
17282 } 17282 }
17283 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17283 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17284 // for details. All rights reserved. Use of this source code is governed by a 17284 // for details. All rights reserved. Use of this source code is governed by a
17285 // BSD-style license that can be found in the LICENSE file. 17285 // BSD-style license that can be found in the LICENSE file.
17286 17286
17287 17287
17288 /// @domName TextMetrics 17288 /// @domName TextMetrics; @docsEditable true
17289 class TextMetrics native "*TextMetrics" { 17289 class TextMetrics native "*TextMetrics" {
17290 17290
17291 /** @domName TextMetrics.width */ 17291 /** @domName TextMetrics.width; @docsEditable true */
17292 final num width; 17292 final num width;
17293 } 17293 }
17294 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17294 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17295 // for details. All rights reserved. Use of this source code is governed by a 17295 // for details. All rights reserved. Use of this source code is governed by a
17296 // BSD-style license that can be found in the LICENSE file. 17296 // BSD-style license that can be found in the LICENSE file.
17297 17297
17298 17298
17299 /// @domName TextTrack 17299 /// @domName TextTrack; @docsEditable true
17300 class TextTrack extends EventTarget native "*TextTrack" { 17300 class TextTrack extends EventTarget native "*TextTrack" {
17301 17301
17302 /** 17302 /**
17303 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 17303 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent; @docsEditable true
17304 */ 17304 */
17305 TextTrackEvents get on => 17305 TextTrackEvents get on =>
17306 new TextTrackEvents(this); 17306 new TextTrackEvents(this);
17307 17307
17308 /** @domName TextTrack.activeCues */ 17308 /** @domName TextTrack.activeCues; @docsEditable true */
17309 final TextTrackCueList activeCues; 17309 final TextTrackCueList activeCues;
17310 17310
17311 /** @domName TextTrack.cues */ 17311 /** @domName TextTrack.cues; @docsEditable true */
17312 final TextTrackCueList cues; 17312 final TextTrackCueList cues;
17313 17313
17314 /** @domName TextTrack.kind */ 17314 /** @domName TextTrack.kind; @docsEditable true */
17315 final String kind; 17315 final String kind;
17316 17316
17317 /** @domName TextTrack.label */ 17317 /** @domName TextTrack.label; @docsEditable true */
17318 final String label; 17318 final String label;
17319 17319
17320 /** @domName TextTrack.language */ 17320 /** @domName TextTrack.language; @docsEditable true */
17321 final String language; 17321 final String language;
17322 17322
17323 /** @domName TextTrack.mode */ 17323 /** @domName TextTrack.mode; @docsEditable true */
17324 String mode; 17324 String mode;
17325 17325
17326 /** @domName TextTrack.addCue */ 17326 /** @domName TextTrack.addCue; @docsEditable true */
17327 void addCue(TextTrackCue cue) native; 17327 void addCue(TextTrackCue cue) native;
17328 17328
17329 /** @domName TextTrack.addEventListener */ 17329 /** @domName TextTrack.addEventListener; @docsEditable true */
17330 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 17330 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
17331 17331
17332 /** @domName TextTrack.dispatchEvent */ 17332 /** @domName TextTrack.dispatchEvent; @docsEditable true */
17333 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; 17333 bool $dom_dispatchEvent(Event evt) native "dispatchEvent";
17334 17334
17335 /** @domName TextTrack.removeCue */ 17335 /** @domName TextTrack.removeCue; @docsEditable true */
17336 void removeCue(TextTrackCue cue) native; 17336 void removeCue(TextTrackCue cue) native;
17337 17337
17338 /** @domName TextTrack.removeEventListener */ 17338 /** @domName TextTrack.removeEventListener; @docsEditable true */
17339 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 17339 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
17340 } 17340 }
17341 17341
17342 class TextTrackEvents extends Events { 17342 class TextTrackEvents extends Events {
17343 TextTrackEvents(EventTarget _ptr) : super(_ptr); 17343 TextTrackEvents(EventTarget _ptr) : super(_ptr);
17344 17344
17345 EventListenerList get cueChange => this['cuechange']; 17345 EventListenerList get cueChange => this['cuechange'];
17346 } 17346 }
17347 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17347 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17348 // for details. All rights reserved. Use of this source code is governed by a 17348 // for details. All rights reserved. Use of this source code is governed by a
17349 // BSD-style license that can be found in the LICENSE file. 17349 // BSD-style license that can be found in the LICENSE file.
17350 17350
17351 17351
17352 /// @domName TextTrackCue 17352 /// @domName TextTrackCue; @docsEditable true
17353 class TextTrackCue extends EventTarget native "*TextTrackCue" { 17353 class TextTrackCue extends EventTarget native "*TextTrackCue" {
17354 17354
17355 factory TextTrackCue(num startTime, num endTime, String text) => _TextTrackCue FactoryProvider.createTextTrackCue(startTime, endTime, text); 17355 factory TextTrackCue(num startTime, num endTime, String text) => _TextTrackCue FactoryProvider.createTextTrackCue(startTime, endTime, text);
17356 17356
17357 /** 17357 /**
17358 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 17358 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent; @docsEditable true
17359 */ 17359 */
17360 TextTrackCueEvents get on => 17360 TextTrackCueEvents get on =>
17361 new TextTrackCueEvents(this); 17361 new TextTrackCueEvents(this);
17362 17362
17363 /** @domName TextTrackCue.align */ 17363 /** @domName TextTrackCue.align; @docsEditable true */
17364 String align; 17364 String align;
17365 17365
17366 /** @domName TextTrackCue.endTime */ 17366 /** @domName TextTrackCue.endTime; @docsEditable true */
17367 num endTime; 17367 num endTime;
17368 17368
17369 /** @domName TextTrackCue.id */ 17369 /** @domName TextTrackCue.id; @docsEditable true */
17370 String id; 17370 String id;
17371 17371
17372 /** @domName TextTrackCue.line */ 17372 /** @domName TextTrackCue.line; @docsEditable true */
17373 int line; 17373 int line;
17374 17374
17375 /** @domName TextTrackCue.pauseOnExit */ 17375 /** @domName TextTrackCue.pauseOnExit; @docsEditable true */
17376 bool pauseOnExit; 17376 bool pauseOnExit;
17377 17377
17378 /** @domName TextTrackCue.position */ 17378 /** @domName TextTrackCue.position; @docsEditable true */
17379 int position; 17379 int position;
17380 17380
17381 /** @domName TextTrackCue.size */ 17381 /** @domName TextTrackCue.size; @docsEditable true */
17382 int size; 17382 int size;
17383 17383
17384 /** @domName TextTrackCue.snapToLines */ 17384 /** @domName TextTrackCue.snapToLines; @docsEditable true */
17385 bool snapToLines; 17385 bool snapToLines;
17386 17386
17387 /** @domName TextTrackCue.startTime */ 17387 /** @domName TextTrackCue.startTime; @docsEditable true */
17388 num startTime; 17388 num startTime;
17389 17389
17390 /** @domName TextTrackCue.text */ 17390 /** @domName TextTrackCue.text; @docsEditable true */
17391 String text; 17391 String text;
17392 17392
17393 /** @domName TextTrackCue.track */ 17393 /** @domName TextTrackCue.track; @docsEditable true */
17394 final TextTrack track; 17394 final TextTrack track;
17395 17395
17396 /** @domName TextTrackCue.vertical */ 17396 /** @domName TextTrackCue.vertical; @docsEditable true */
17397 String vertical; 17397 String vertical;
17398 17398
17399 /** @domName TextTrackCue.addEventListener */ 17399 /** @domName TextTrackCue.addEventListener; @docsEditable true */
17400 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 17400 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
17401 17401
17402 /** @domName TextTrackCue.dispatchEvent */ 17402 /** @domName TextTrackCue.dispatchEvent; @docsEditable true */
17403 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; 17403 bool $dom_dispatchEvent(Event evt) native "dispatchEvent";
17404 17404
17405 /** @domName TextTrackCue.getCueAsHTML */ 17405 /** @domName TextTrackCue.getCueAsHTML; @docsEditable true */
17406 DocumentFragment getCueAsHTML() native; 17406 DocumentFragment getCueAsHTML() native;
17407 17407
17408 /** @domName TextTrackCue.removeEventListener */ 17408 /** @domName TextTrackCue.removeEventListener; @docsEditable true */
17409 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 17409 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
17410 } 17410 }
17411 17411
17412 class TextTrackCueEvents extends Events { 17412 class TextTrackCueEvents extends Events {
17413 TextTrackCueEvents(EventTarget _ptr) : super(_ptr); 17413 TextTrackCueEvents(EventTarget _ptr) : super(_ptr);
17414 17414
17415 EventListenerList get enter => this['enter']; 17415 EventListenerList get enter => this['enter'];
17416 17416
17417 EventListenerList get exit => this['exit']; 17417 EventListenerList get exit => this['exit'];
17418 } 17418 }
17419 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17419 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17420 // for details. All rights reserved. Use of this source code is governed by a 17420 // for details. All rights reserved. Use of this source code is governed by a
17421 // BSD-style license that can be found in the LICENSE file. 17421 // BSD-style license that can be found in the LICENSE file.
17422 17422
17423 17423
17424 /// @domName TextTrackCueList 17424 /// @domName TextTrackCueList; @docsEditable true
17425 class TextTrackCueList implements List<TextTrackCue>, JavaScriptIndexingBehavior native "*TextTrackCueList" { 17425 class TextTrackCueList implements List<TextTrackCue>, JavaScriptIndexingBehavior native "*TextTrackCueList" {
17426 17426
17427 /** @domName TextTrackCueList.length */ 17427 /** @domName TextTrackCueList.length; @docsEditable true */
17428 final int length; 17428 final int length;
17429 17429
17430 TextTrackCue operator[](int index) => JS("TextTrackCue", "#[#]", this, index); 17430 TextTrackCue operator[](int index) => JS("TextTrackCue", "#[#]", this, index);
17431 17431
17432 void operator[]=(int index, TextTrackCue value) { 17432 void operator[]=(int index, TextTrackCue value) {
17433 throw new UnsupportedError("Cannot assign element of immutable List."); 17433 throw new UnsupportedError("Cannot assign element of immutable List.");
17434 } 17434 }
17435 // -- start List<TextTrackCue> mixins. 17435 // -- start List<TextTrackCue> mixins.
17436 // TextTrackCue is the element type. 17436 // TextTrackCue is the element type.
17437 17437
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
17505 17505
17506 void insertRange(int start, int rangeLength, [TextTrackCue initialValue]) { 17506 void insertRange(int start, int rangeLength, [TextTrackCue initialValue]) {
17507 throw new UnsupportedError("Cannot insertRange on immutable List."); 17507 throw new UnsupportedError("Cannot insertRange on immutable List.");
17508 } 17508 }
17509 17509
17510 List<TextTrackCue> getRange(int start, int rangeLength) => 17510 List<TextTrackCue> getRange(int start, int rangeLength) =>
17511 _Lists.getRange(this, start, rangeLength, <TextTrackCue>[]); 17511 _Lists.getRange(this, start, rangeLength, <TextTrackCue>[]);
17512 17512
17513 // -- end List<TextTrackCue> mixins. 17513 // -- end List<TextTrackCue> mixins.
17514 17514
17515 /** @domName TextTrackCueList.getCueById */ 17515 /** @domName TextTrackCueList.getCueById; @docsEditable true */
17516 TextTrackCue getCueById(String id) native; 17516 TextTrackCue getCueById(String id) native;
17517 17517
17518 /** @domName TextTrackCueList.item */ 17518 /** @domName TextTrackCueList.item; @docsEditable true */
17519 TextTrackCue item(int index) native; 17519 TextTrackCue item(int index) native;
17520 } 17520 }
17521 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17521 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17522 // for details. All rights reserved. Use of this source code is governed by a 17522 // for details. All rights reserved. Use of this source code is governed by a
17523 // BSD-style license that can be found in the LICENSE file. 17523 // BSD-style license that can be found in the LICENSE file.
17524 17524
17525 17525
17526 /// @domName TextTrackList 17526 /// @domName TextTrackList; @docsEditable true
17527 class TextTrackList extends EventTarget implements JavaScriptIndexingBehavior, L ist<TextTrack> native "*TextTrackList" { 17527 class TextTrackList extends EventTarget implements JavaScriptIndexingBehavior, L ist<TextTrack> native "*TextTrackList" {
17528 17528
17529 /** 17529 /**
17530 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 17530 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent; @docsEditable true
17531 */ 17531 */
17532 TextTrackListEvents get on => 17532 TextTrackListEvents get on =>
17533 new TextTrackListEvents(this); 17533 new TextTrackListEvents(this);
17534 17534
17535 /** @domName TextTrackList.length */ 17535 /** @domName TextTrackList.length; @docsEditable true */
17536 final int length; 17536 final int length;
17537 17537
17538 TextTrack operator[](int index) => JS("TextTrack", "#[#]", this, index); 17538 TextTrack operator[](int index) => JS("TextTrack", "#[#]", this, index);
17539 17539
17540 void operator[]=(int index, TextTrack value) { 17540 void operator[]=(int index, TextTrack value) {
17541 throw new UnsupportedError("Cannot assign element of immutable List."); 17541 throw new UnsupportedError("Cannot assign element of immutable List.");
17542 } 17542 }
17543 // -- start List<TextTrack> mixins. 17543 // -- start List<TextTrack> mixins.
17544 // TextTrack is the element type. 17544 // TextTrack is the element type.
17545 17545
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
17613 17613
17614 void insertRange(int start, int rangeLength, [TextTrack initialValue]) { 17614 void insertRange(int start, int rangeLength, [TextTrack initialValue]) {
17615 throw new UnsupportedError("Cannot insertRange on immutable List."); 17615 throw new UnsupportedError("Cannot insertRange on immutable List.");
17616 } 17616 }
17617 17617
17618 List<TextTrack> getRange(int start, int rangeLength) => 17618 List<TextTrack> getRange(int start, int rangeLength) =>
17619 _Lists.getRange(this, start, rangeLength, <TextTrack>[]); 17619 _Lists.getRange(this, start, rangeLength, <TextTrack>[]);
17620 17620
17621 // -- end List<TextTrack> mixins. 17621 // -- end List<TextTrack> mixins.
17622 17622
17623 /** @domName TextTrackList.addEventListener */ 17623 /** @domName TextTrackList.addEventListener; @docsEditable true */
17624 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 17624 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
17625 17625
17626 /** @domName TextTrackList.dispatchEvent */ 17626 /** @domName TextTrackList.dispatchEvent; @docsEditable true */
17627 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; 17627 bool $dom_dispatchEvent(Event evt) native "dispatchEvent";
17628 17628
17629 /** @domName TextTrackList.item */ 17629 /** @domName TextTrackList.item; @docsEditable true */
17630 TextTrack item(int index) native; 17630 TextTrack item(int index) native;
17631 17631
17632 /** @domName TextTrackList.removeEventListener */ 17632 /** @domName TextTrackList.removeEventListener; @docsEditable true */
17633 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 17633 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
17634 } 17634 }
17635 17635
17636 class TextTrackListEvents extends Events { 17636 class TextTrackListEvents extends Events {
17637 TextTrackListEvents(EventTarget _ptr) : super(_ptr); 17637 TextTrackListEvents(EventTarget _ptr) : super(_ptr);
17638 17638
17639 EventListenerList get addTrack => this['addtrack']; 17639 EventListenerList get addTrack => this['addtrack'];
17640 } 17640 }
17641 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17641 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17642 // for details. All rights reserved. Use of this source code is governed by a 17642 // for details. All rights reserved. Use of this source code is governed by a
17643 // BSD-style license that can be found in the LICENSE file. 17643 // BSD-style license that can be found in the LICENSE file.
17644 17644
17645 17645
17646 /// @domName TimeRanges 17646 /// @domName TimeRanges; @docsEditable true
17647 class TimeRanges native "*TimeRanges" { 17647 class TimeRanges native "*TimeRanges" {
17648 17648
17649 /** @domName TimeRanges.length */ 17649 /** @domName TimeRanges.length; @docsEditable true */
17650 final int length; 17650 final int length;
17651 17651
17652 /** @domName TimeRanges.end */ 17652 /** @domName TimeRanges.end; @docsEditable true */
17653 num end(int index) native; 17653 num end(int index) native;
17654 17654
17655 /** @domName TimeRanges.start */ 17655 /** @domName TimeRanges.start; @docsEditable true */
17656 num start(int index) native; 17656 num start(int index) native;
17657 } 17657 }
17658 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17658 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17659 // for details. All rights reserved. Use of this source code is governed by a 17659 // for details. All rights reserved. Use of this source code is governed by a
17660 // BSD-style license that can be found in the LICENSE file. 17660 // BSD-style license that can be found in the LICENSE file.
17661 17661
17662 // WARNING: Do not edit - generated code. 17662 // WARNING: Do not edit - generated code.
17663 17663
17664 17664
17665 typedef void TimeoutHandler(); 17665 typedef void TimeoutHandler();
17666 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17666 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17667 // for details. All rights reserved. Use of this source code is governed by a 17667 // for details. All rights reserved. Use of this source code is governed by a
17668 // BSD-style license that can be found in the LICENSE file. 17668 // BSD-style license that can be found in the LICENSE file.
17669 17669
17670 17670
17671 /// @domName HTMLTitleElement 17671 /// @domName HTMLTitleElement; @docsEditable true
17672 class TitleElement extends Element implements Element native "*HTMLTitleElement" { 17672 class TitleElement extends Element implements Element native "*HTMLTitleElement" {
17673 17673
17674 factory TitleElement() => document.$dom_createElement("title"); 17674 factory TitleElement() => document.$dom_createElement("title");
17675 } 17675 }
17676 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17676 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17677 // for details. All rights reserved. Use of this source code is governed by a 17677 // for details. All rights reserved. Use of this source code is governed by a
17678 // BSD-style license that can be found in the LICENSE file. 17678 // BSD-style license that can be found in the LICENSE file.
17679 17679
17680 17680
17681 /// @domName Touch 17681 /// @domName Touch; @docsEditable true
17682 class Touch native "*Touch" { 17682 class Touch native "*Touch" {
17683 17683
17684 /** @domName Touch.clientX */ 17684 /** @domName Touch.clientX; @docsEditable true */
17685 final int clientX; 17685 final int clientX;
17686 17686
17687 /** @domName Touch.clientY */ 17687 /** @domName Touch.clientY; @docsEditable true */
17688 final int clientY; 17688 final int clientY;
17689 17689
17690 /** @domName Touch.identifier */ 17690 /** @domName Touch.identifier; @docsEditable true */
17691 final int identifier; 17691 final int identifier;
17692 17692
17693 /** @domName Touch.pageX */ 17693 /** @domName Touch.pageX; @docsEditable true */
17694 final int pageX; 17694 final int pageX;
17695 17695
17696 /** @domName Touch.pageY */ 17696 /** @domName Touch.pageY; @docsEditable true */
17697 final int pageY; 17697 final int pageY;
17698 17698
17699 /** @domName Touch.screenX */ 17699 /** @domName Touch.screenX; @docsEditable true */
17700 final int screenX; 17700 final int screenX;
17701 17701
17702 /** @domName Touch.screenY */ 17702 /** @domName Touch.screenY; @docsEditable true */
17703 final int screenY; 17703 final int screenY;
17704 17704
17705 /** @domName Touch.target */ 17705 /** @domName Touch.target; @docsEditable true */
17706 EventTarget get target => _convertNativeToDart_EventTarget(this._target); 17706 EventTarget get target => _convertNativeToDart_EventTarget(this._target);
17707 dynamic get _target => JS("dynamic", "#.target", this); 17707 dynamic get _target => JS("dynamic", "#.target", this);
17708 17708
17709 /** @domName Touch.webkitForce */ 17709 /** @domName Touch.webkitForce; @docsEditable true */
17710 final num webkitForce; 17710 final num webkitForce;
17711 17711
17712 /** @domName Touch.webkitRadiusX */ 17712 /** @domName Touch.webkitRadiusX; @docsEditable true */
17713 final int webkitRadiusX; 17713 final int webkitRadiusX;
17714 17714
17715 /** @domName Touch.webkitRadiusY */ 17715 /** @domName Touch.webkitRadiusY; @docsEditable true */
17716 final int webkitRadiusY; 17716 final int webkitRadiusY;
17717 17717
17718 /** @domName Touch.webkitRotationAngle */ 17718 /** @domName Touch.webkitRotationAngle; @docsEditable true */
17719 final num webkitRotationAngle; 17719 final num webkitRotationAngle;
17720 } 17720 }
17721 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17721 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17722 // for details. All rights reserved. Use of this source code is governed by a 17722 // for details. All rights reserved. Use of this source code is governed by a
17723 // BSD-style license that can be found in the LICENSE file. 17723 // BSD-style license that can be found in the LICENSE file.
17724 17724
17725 17725
17726 /// @domName TouchEvent 17726 /// @domName TouchEvent; @docsEditable true
17727 class TouchEvent extends UIEvent native "*TouchEvent" { 17727 class TouchEvent extends UIEvent native "*TouchEvent" {
17728 17728
17729 /** @domName TouchEvent.altKey */ 17729 /** @domName TouchEvent.altKey; @docsEditable true */
17730 final bool altKey; 17730 final bool altKey;
17731 17731
17732 /** @domName TouchEvent.changedTouches */ 17732 /** @domName TouchEvent.changedTouches; @docsEditable true */
17733 final TouchList changedTouches; 17733 final TouchList changedTouches;
17734 17734
17735 /** @domName TouchEvent.ctrlKey */ 17735 /** @domName TouchEvent.ctrlKey; @docsEditable true */
17736 final bool ctrlKey; 17736 final bool ctrlKey;
17737 17737
17738 /** @domName TouchEvent.metaKey */ 17738 /** @domName TouchEvent.metaKey; @docsEditable true */
17739 final bool metaKey; 17739 final bool metaKey;
17740 17740
17741 /** @domName TouchEvent.shiftKey */ 17741 /** @domName TouchEvent.shiftKey; @docsEditable true */
17742 final bool shiftKey; 17742 final bool shiftKey;
17743 17743
17744 /** @domName TouchEvent.targetTouches */ 17744 /** @domName TouchEvent.targetTouches; @docsEditable true */
17745 final TouchList targetTouches; 17745 final TouchList targetTouches;
17746 17746
17747 /** @domName TouchEvent.touches */ 17747 /** @domName TouchEvent.touches; @docsEditable true */
17748 final TouchList touches; 17748 final TouchList touches;
17749 17749
17750 /** @domName TouchEvent.initTouchEvent */ 17750 /** @domName TouchEvent.initTouchEvent; @docsEditable true */
17751 void initTouchEvent(TouchList touches, TouchList targetTouches, TouchList chan gedTouches, String type, LocalWindow view, int screenX, int screenY, int clientX , int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey) native; 17751 void initTouchEvent(TouchList touches, TouchList targetTouches, TouchList chan gedTouches, String type, LocalWindow view, int screenX, int screenY, int clientX , int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey) native;
17752 } 17752 }
17753 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17753 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17754 // for details. All rights reserved. Use of this source code is governed by a 17754 // for details. All rights reserved. Use of this source code is governed by a
17755 // BSD-style license that can be found in the LICENSE file. 17755 // BSD-style license that can be found in the LICENSE file.
17756 17756
17757 17757
17758 /// @domName TouchList 17758 /// @domName TouchList; @docsEditable true
17759 class TouchList implements JavaScriptIndexingBehavior, List<Touch> native "*Touc hList" { 17759 class TouchList implements JavaScriptIndexingBehavior, List<Touch> native "*Touc hList" {
17760 17760
17761 /** @domName TouchList.length */ 17761 /** @domName TouchList.length; @docsEditable true */
17762 final int length; 17762 final int length;
17763 17763
17764 Touch operator[](int index) => JS("Touch", "#[#]", this, index); 17764 Touch operator[](int index) => JS("Touch", "#[#]", this, index);
17765 17765
17766 void operator[]=(int index, Touch value) { 17766 void operator[]=(int index, Touch value) {
17767 throw new UnsupportedError("Cannot assign element of immutable List."); 17767 throw new UnsupportedError("Cannot assign element of immutable List.");
17768 } 17768 }
17769 // -- start List<Touch> mixins. 17769 // -- start List<Touch> mixins.
17770 // Touch is the element type. 17770 // Touch is the element type.
17771 17771
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
17839 17839
17840 void insertRange(int start, int rangeLength, [Touch initialValue]) { 17840 void insertRange(int start, int rangeLength, [Touch initialValue]) {
17841 throw new UnsupportedError("Cannot insertRange on immutable List."); 17841 throw new UnsupportedError("Cannot insertRange on immutable List.");
17842 } 17842 }
17843 17843
17844 List<Touch> getRange(int start, int rangeLength) => 17844 List<Touch> getRange(int start, int rangeLength) =>
17845 _Lists.getRange(this, start, rangeLength, <Touch>[]); 17845 _Lists.getRange(this, start, rangeLength, <Touch>[]);
17846 17846
17847 // -- end List<Touch> mixins. 17847 // -- end List<Touch> mixins.
17848 17848
17849 /** @domName TouchList.item */ 17849 /** @domName TouchList.item; @docsEditable true */
17850 Touch item(int index) native; 17850 Touch item(int index) native;
17851 } 17851 }
17852 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17852 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17853 // for details. All rights reserved. Use of this source code is governed by a 17853 // for details. All rights reserved. Use of this source code is governed by a
17854 // BSD-style license that can be found in the LICENSE file. 17854 // BSD-style license that can be found in the LICENSE file.
17855 17855
17856 17856
17857 /// @domName HTMLTrackElement 17857 /// @domName HTMLTrackElement; @docsEditable true
17858 class TrackElement extends Element implements Element native "*HTMLTrackElement" { 17858 class TrackElement extends Element implements Element native "*HTMLTrackElement" {
17859 17859
17860 factory TrackElement() => document.$dom_createElement("track"); 17860 factory TrackElement() => document.$dom_createElement("track");
17861 17861
17862 static const int ERROR = 3; 17862 static const int ERROR = 3;
17863 17863
17864 static const int LOADED = 2; 17864 static const int LOADED = 2;
17865 17865
17866 static const int LOADING = 1; 17866 static const int LOADING = 1;
17867 17867
17868 static const int NONE = 0; 17868 static const int NONE = 0;
17869 17869
17870 /** @domName HTMLTrackElement.defaultValue */ 17870 /** @domName HTMLTrackElement.defaultValue; @docsEditable true */
17871 bool get defaultValue => JS("bool", "#.default", this); 17871 bool get defaultValue => JS("bool", "#.default", this);
17872 17872
17873 /** @domName HTMLTrackElement.defaultValue */ 17873 /** @domName HTMLTrackElement.defaultValue; @docsEditable true */
17874 void set defaultValue(bool value) { 17874 void set defaultValue(bool value) {
17875 JS("void", "#.default = #", this, value); 17875 JS("void", "#.default = #", this, value);
17876 } 17876 }
17877 17877
17878 /** @domName HTMLTrackElement.kind */ 17878 /** @domName HTMLTrackElement.kind; @docsEditable true */
17879 String kind; 17879 String kind;
17880 17880
17881 /** @domName HTMLTrackElement.label */ 17881 /** @domName HTMLTrackElement.label; @docsEditable true */
17882 String label; 17882 String label;
17883 17883
17884 /** @domName HTMLTrackElement.readyState */ 17884 /** @domName HTMLTrackElement.readyState; @docsEditable true */
17885 final int readyState; 17885 final int readyState;
17886 17886
17887 /** @domName HTMLTrackElement.src */ 17887 /** @domName HTMLTrackElement.src; @docsEditable true */
17888 String src; 17888 String src;
17889 17889
17890 /** @domName HTMLTrackElement.srclang */ 17890 /** @domName HTMLTrackElement.srclang; @docsEditable true */
17891 String srclang; 17891 String srclang;
17892 17892
17893 /** @domName HTMLTrackElement.track */ 17893 /** @domName HTMLTrackElement.track; @docsEditable true */
17894 final TextTrack track; 17894 final TextTrack track;
17895 } 17895 }
17896 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17896 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17897 // for details. All rights reserved. Use of this source code is governed by a 17897 // for details. All rights reserved. Use of this source code is governed by a
17898 // BSD-style license that can be found in the LICENSE file. 17898 // BSD-style license that can be found in the LICENSE file.
17899 17899
17900 17900
17901 /// @domName TrackEvent 17901 /// @domName TrackEvent; @docsEditable true
17902 class TrackEvent extends Event native "*TrackEvent" { 17902 class TrackEvent extends Event native "*TrackEvent" {
17903 17903
17904 /** @domName TrackEvent.track */ 17904 /** @domName TrackEvent.track; @docsEditable true */
17905 final Object track; 17905 final Object track;
17906 } 17906 }
17907 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17907 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17908 // for details. All rights reserved. Use of this source code is governed by a 17908 // for details. All rights reserved. Use of this source code is governed by a
17909 // BSD-style license that can be found in the LICENSE file. 17909 // BSD-style license that can be found in the LICENSE file.
17910 17910
17911 17911
17912 /// @domName WebKitTransitionEvent 17912 /// @domName WebKitTransitionEvent; @docsEditable true
17913 class TransitionEvent extends Event native "*WebKitTransitionEvent" { 17913 class TransitionEvent extends Event native "*WebKitTransitionEvent" {
17914 17914
17915 /** @domName WebKitTransitionEvent.elapsedTime */ 17915 /** @domName WebKitTransitionEvent.elapsedTime; @docsEditable true */
17916 final num elapsedTime; 17916 final num elapsedTime;
17917 17917
17918 /** @domName WebKitTransitionEvent.propertyName */ 17918 /** @domName WebKitTransitionEvent.propertyName; @docsEditable true */
17919 final String propertyName; 17919 final String propertyName;
17920 } 17920 }
17921 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17921 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17922 // for details. All rights reserved. Use of this source code is governed by a 17922 // for details. All rights reserved. Use of this source code is governed by a
17923 // BSD-style license that can be found in the LICENSE file. 17923 // BSD-style license that can be found in the LICENSE file.
17924 17924
17925 17925
17926 /// @domName TreeWalker 17926 /// @domName TreeWalker; @docsEditable true
17927 class TreeWalker native "*TreeWalker" { 17927 class TreeWalker native "*TreeWalker" {
17928 17928
17929 /** @domName TreeWalker.currentNode */ 17929 /** @domName TreeWalker.currentNode; @docsEditable true */
17930 Node currentNode; 17930 Node currentNode;
17931 17931
17932 /** @domName TreeWalker.expandEntityReferences */ 17932 /** @domName TreeWalker.expandEntityReferences; @docsEditable true */
17933 final bool expandEntityReferences; 17933 final bool expandEntityReferences;
17934 17934
17935 /** @domName TreeWalker.filter */ 17935 /** @domName TreeWalker.filter; @docsEditable true */
17936 final NodeFilter filter; 17936 final NodeFilter filter;
17937 17937
17938 /** @domName TreeWalker.root */ 17938 /** @domName TreeWalker.root; @docsEditable true */
17939 final Node root; 17939 final Node root;
17940 17940
17941 /** @domName TreeWalker.whatToShow */ 17941 /** @domName TreeWalker.whatToShow; @docsEditable true */
17942 final int whatToShow; 17942 final int whatToShow;
17943 17943
17944 /** @domName TreeWalker.firstChild */ 17944 /** @domName TreeWalker.firstChild; @docsEditable true */
17945 Node firstChild() native; 17945 Node firstChild() native;
17946 17946
17947 /** @domName TreeWalker.lastChild */ 17947 /** @domName TreeWalker.lastChild; @docsEditable true */
17948 Node lastChild() native; 17948 Node lastChild() native;
17949 17949
17950 /** @domName TreeWalker.nextNode */ 17950 /** @domName TreeWalker.nextNode; @docsEditable true */
17951 Node nextNode() native; 17951 Node nextNode() native;
17952 17952
17953 /** @domName TreeWalker.nextSibling */ 17953 /** @domName TreeWalker.nextSibling; @docsEditable true */
17954 Node nextSibling() native; 17954 Node nextSibling() native;
17955 17955
17956 /** @domName TreeWalker.parentNode */ 17956 /** @domName TreeWalker.parentNode; @docsEditable true */
17957 Node parentNode() native; 17957 Node parentNode() native;
17958 17958
17959 /** @domName TreeWalker.previousNode */ 17959 /** @domName TreeWalker.previousNode; @docsEditable true */
17960 Node previousNode() native; 17960 Node previousNode() native;
17961 17961
17962 /** @domName TreeWalker.previousSibling */ 17962 /** @domName TreeWalker.previousSibling; @docsEditable true */
17963 Node previousSibling() native; 17963 Node previousSibling() native;
17964 } 17964 }
17965 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17965 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17966 // for details. All rights reserved. Use of this source code is governed by a 17966 // for details. All rights reserved. Use of this source code is governed by a
17967 // BSD-style license that can be found in the LICENSE file. 17967 // BSD-style license that can be found in the LICENSE file.
17968 17968
17969 17969
17970 /// @domName UIEvent 17970 /// @domName UIEvent; @docsEditable true
17971 class UIEvent extends Event native "*UIEvent" { 17971 class UIEvent extends Event native "*UIEvent" {
17972 17972
17973 /** @domName UIEvent.charCode */ 17973 /** @domName UIEvent.charCode; @docsEditable true */
17974 final int charCode; 17974 final int charCode;
17975 17975
17976 /** @domName UIEvent.detail */ 17976 /** @domName UIEvent.detail; @docsEditable true */
17977 final int detail; 17977 final int detail;
17978 17978
17979 /** @domName UIEvent.keyCode */ 17979 /** @domName UIEvent.keyCode; @docsEditable true */
17980 final int keyCode; 17980 final int keyCode;
17981 17981
17982 /** @domName UIEvent.layerX */ 17982 /** @domName UIEvent.layerX; @docsEditable true */
17983 final int layerX; 17983 final int layerX;
17984 17984
17985 /** @domName UIEvent.layerY */ 17985 /** @domName UIEvent.layerY; @docsEditable true */
17986 final int layerY; 17986 final int layerY;
17987 17987
17988 /** @domName UIEvent.pageX */ 17988 /** @domName UIEvent.pageX; @docsEditable true */
17989 final int pageX; 17989 final int pageX;
17990 17990
17991 /** @domName UIEvent.pageY */ 17991 /** @domName UIEvent.pageY; @docsEditable true */
17992 final int pageY; 17992 final int pageY;
17993 17993
17994 /** @domName UIEvent.view */ 17994 /** @domName UIEvent.view; @docsEditable true */
17995 Window get view => _convertNativeToDart_Window(this._view); 17995 Window get view => _convertNativeToDart_Window(this._view);
17996 dynamic get _view => JS("dynamic", "#.view", this); 17996 dynamic get _view => JS("dynamic", "#.view", this);
17997 17997
17998 /** @domName UIEvent.which */ 17998 /** @domName UIEvent.which; @docsEditable true */
17999 final int which; 17999 final int which;
18000 18000
18001 /** @domName UIEvent.initUIEvent */ 18001 /** @domName UIEvent.initUIEvent; @docsEditable true */
18002 void initUIEvent(String type, bool canBubble, bool cancelable, LocalWindow vie w, int detail) native; 18002 void initUIEvent(String type, bool canBubble, bool cancelable, LocalWindow vie w, int detail) native;
18003 } 18003 }
18004 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18004 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18005 // for details. All rights reserved. Use of this source code is governed by a 18005 // for details. All rights reserved. Use of this source code is governed by a
18006 // BSD-style license that can be found in the LICENSE file. 18006 // BSD-style license that can be found in the LICENSE file.
18007 18007
18008 18008
18009 /// @domName HTMLUListElement 18009 /// @domName HTMLUListElement; @docsEditable true
18010 class UListElement extends Element implements Element native "*HTMLUListElement" { 18010 class UListElement extends Element implements Element native "*HTMLUListElement" {
18011 18011
18012 factory UListElement() => document.$dom_createElement("ul"); 18012 factory UListElement() => document.$dom_createElement("ul");
18013 18013
18014 /** @domName HTMLUListElement.compact */ 18014 /** @domName HTMLUListElement.compact; @docsEditable true */
18015 bool compact; 18015 bool compact;
18016 18016
18017 /** @domName HTMLUListElement.type */ 18017 /** @domName HTMLUListElement.type; @docsEditable true */
18018 String type; 18018 String type;
18019 } 18019 }
18020 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18020 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18021 // for details. All rights reserved. Use of this source code is governed by a 18021 // for details. All rights reserved. Use of this source code is governed by a
18022 // BSD-style license that can be found in the LICENSE file. 18022 // BSD-style license that can be found in the LICENSE file.
18023 18023
18024 18024
18025 /// @domName Uint16Array 18025 /// @domName Uint16Array; @docsEditable true
18026 class Uint16Array extends ArrayBufferView implements JavaScriptIndexingBehavior, List<int> native "*Uint16Array" { 18026 class Uint16Array extends ArrayBufferView implements JavaScriptIndexingBehavior, List<int> native "*Uint16Array" {
18027 18027
18028 factory Uint16Array(int length) => 18028 factory Uint16Array(int length) =>
18029 _TypedArrayFactoryProvider.createUint16Array(length); 18029 _TypedArrayFactoryProvider.createUint16Array(length);
18030 18030
18031 factory Uint16Array.fromList(List<int> list) => 18031 factory Uint16Array.fromList(List<int> list) =>
18032 _TypedArrayFactoryProvider.createUint16Array_fromList(list); 18032 _TypedArrayFactoryProvider.createUint16Array_fromList(list);
18033 18033
18034 factory Uint16Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length ]) => 18034 factory Uint16Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length ]) =>
18035 _TypedArrayFactoryProvider.createUint16Array_fromBuffer(buffer, byteOffset, length); 18035 _TypedArrayFactoryProvider.createUint16Array_fromBuffer(buffer, byteOffset, length);
18036 18036
18037 static const int BYTES_PER_ELEMENT = 2; 18037 static const int BYTES_PER_ELEMENT = 2;
18038 18038
18039 /** @domName Uint16Array.length */ 18039 /** @domName Uint16Array.length; @docsEditable true */
18040 final int length; 18040 final int length;
18041 18041
18042 int operator[](int index) => JS("int", "#[#]", this, index); 18042 int operator[](int index) => JS("int", "#[#]", this, index);
18043 18043
18044 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<int> mixins. 18044 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<int> mixins.
18045 // int is the element type. 18045 // int is the element type.
18046 18046
18047 // From Iterable<int>: 18047 // From Iterable<int>:
18048 18048
18049 Iterator<int> iterator() { 18049 Iterator<int> iterator() {
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
18114 18114
18115 void insertRange(int start, int rangeLength, [int initialValue]) { 18115 void insertRange(int start, int rangeLength, [int initialValue]) {
18116 throw new UnsupportedError("Cannot insertRange on immutable List."); 18116 throw new UnsupportedError("Cannot insertRange on immutable List.");
18117 } 18117 }
18118 18118
18119 List<int> getRange(int start, int rangeLength) => 18119 List<int> getRange(int start, int rangeLength) =>
18120 _Lists.getRange(this, start, rangeLength, <int>[]); 18120 _Lists.getRange(this, start, rangeLength, <int>[]);
18121 18121
18122 // -- end List<int> mixins. 18122 // -- end List<int> mixins.
18123 18123
18124 /** @domName Uint16Array.setElements */ 18124 /** @domName Uint16Array.setElements; @docsEditable true */
18125 void setElements(Object array, [int offset]) native "set"; 18125 void setElements(Object array, [int offset]) native "set";
18126 18126
18127 /** @domName Uint16Array.subarray */ 18127 /** @domName Uint16Array.subarray; @docsEditable true */
18128 Uint16Array subarray(int start, [int end]) native; 18128 Uint16Array subarray(int start, [int end]) native;
18129 } 18129 }
18130 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18130 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18131 // for details. All rights reserved. Use of this source code is governed by a 18131 // for details. All rights reserved. Use of this source code is governed by a
18132 // BSD-style license that can be found in the LICENSE file. 18132 // BSD-style license that can be found in the LICENSE file.
18133 18133
18134 18134
18135 /// @domName Uint32Array 18135 /// @domName Uint32Array; @docsEditable true
18136 class Uint32Array extends ArrayBufferView implements JavaScriptIndexingBehavior, List<int> native "*Uint32Array" { 18136 class Uint32Array extends ArrayBufferView implements JavaScriptIndexingBehavior, List<int> native "*Uint32Array" {
18137 18137
18138 factory Uint32Array(int length) => 18138 factory Uint32Array(int length) =>
18139 _TypedArrayFactoryProvider.createUint32Array(length); 18139 _TypedArrayFactoryProvider.createUint32Array(length);
18140 18140
18141 factory Uint32Array.fromList(List<int> list) => 18141 factory Uint32Array.fromList(List<int> list) =>
18142 _TypedArrayFactoryProvider.createUint32Array_fromList(list); 18142 _TypedArrayFactoryProvider.createUint32Array_fromList(list);
18143 18143
18144 factory Uint32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length ]) => 18144 factory Uint32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length ]) =>
18145 _TypedArrayFactoryProvider.createUint32Array_fromBuffer(buffer, byteOffset, length); 18145 _TypedArrayFactoryProvider.createUint32Array_fromBuffer(buffer, byteOffset, length);
18146 18146
18147 static const int BYTES_PER_ELEMENT = 4; 18147 static const int BYTES_PER_ELEMENT = 4;
18148 18148
18149 /** @domName Uint32Array.length */ 18149 /** @domName Uint32Array.length; @docsEditable true */
18150 final int length; 18150 final int length;
18151 18151
18152 int operator[](int index) => JS("int", "#[#]", this, index); 18152 int operator[](int index) => JS("int", "#[#]", this, index);
18153 18153
18154 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<int> mixins. 18154 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<int> mixins.
18155 // int is the element type. 18155 // int is the element type.
18156 18156
18157 // From Iterable<int>: 18157 // From Iterable<int>:
18158 18158
18159 Iterator<int> iterator() { 18159 Iterator<int> iterator() {
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
18224 18224
18225 void insertRange(int start, int rangeLength, [int initialValue]) { 18225 void insertRange(int start, int rangeLength, [int initialValue]) {
18226 throw new UnsupportedError("Cannot insertRange on immutable List."); 18226 throw new UnsupportedError("Cannot insertRange on immutable List.");
18227 } 18227 }
18228 18228
18229 List<int> getRange(int start, int rangeLength) => 18229 List<int> getRange(int start, int rangeLength) =>
18230 _Lists.getRange(this, start, rangeLength, <int>[]); 18230 _Lists.getRange(this, start, rangeLength, <int>[]);
18231 18231
18232 // -- end List<int> mixins. 18232 // -- end List<int> mixins.
18233 18233
18234 /** @domName Uint32Array.setElements */ 18234 /** @domName Uint32Array.setElements; @docsEditable true */
18235 void setElements(Object array, [int offset]) native "set"; 18235 void setElements(Object array, [int offset]) native "set";
18236 18236
18237 /** @domName Uint32Array.subarray */ 18237 /** @domName Uint32Array.subarray; @docsEditable true */
18238 Uint32Array subarray(int start, [int end]) native; 18238 Uint32Array subarray(int start, [int end]) native;
18239 } 18239 }
18240 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18240 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18241 // for details. All rights reserved. Use of this source code is governed by a 18241 // for details. All rights reserved. Use of this source code is governed by a
18242 // BSD-style license that can be found in the LICENSE file. 18242 // BSD-style license that can be found in the LICENSE file.
18243 18243
18244 18244
18245 /// @domName Uint8Array 18245 /// @domName Uint8Array; @docsEditable true
18246 class Uint8Array extends ArrayBufferView implements JavaScriptIndexingBehavior, List<int> native "*Uint8Array" { 18246 class Uint8Array extends ArrayBufferView implements JavaScriptIndexingBehavior, List<int> native "*Uint8Array" {
18247 18247
18248 factory Uint8Array(int length) => 18248 factory Uint8Array(int length) =>
18249 _TypedArrayFactoryProvider.createUint8Array(length); 18249 _TypedArrayFactoryProvider.createUint8Array(length);
18250 18250
18251 factory Uint8Array.fromList(List<int> list) => 18251 factory Uint8Array.fromList(List<int> list) =>
18252 _TypedArrayFactoryProvider.createUint8Array_fromList(list); 18252 _TypedArrayFactoryProvider.createUint8Array_fromList(list);
18253 18253
18254 factory Uint8Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length] ) => 18254 factory Uint8Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length] ) =>
18255 _TypedArrayFactoryProvider.createUint8Array_fromBuffer(buffer, byteOffset, l ength); 18255 _TypedArrayFactoryProvider.createUint8Array_fromBuffer(buffer, byteOffset, l ength);
18256 18256
18257 static const int BYTES_PER_ELEMENT = 1; 18257 static const int BYTES_PER_ELEMENT = 1;
18258 18258
18259 /** @domName Uint8Array.length */ 18259 /** @domName Uint8Array.length; @docsEditable true */
18260 final int length; 18260 final int length;
18261 18261
18262 int operator[](int index) => JS("int", "#[#]", this, index); 18262 int operator[](int index) => JS("int", "#[#]", this, index);
18263 18263
18264 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<int> mixins. 18264 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v alue); } // -- start List<int> mixins.
18265 // int is the element type. 18265 // int is the element type.
18266 18266
18267 // From Iterable<int>: 18267 // From Iterable<int>:
18268 18268
18269 Iterator<int> iterator() { 18269 Iterator<int> iterator() {
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
18334 18334
18335 void insertRange(int start, int rangeLength, [int initialValue]) { 18335 void insertRange(int start, int rangeLength, [int initialValue]) {
18336 throw new UnsupportedError("Cannot insertRange on immutable List."); 18336 throw new UnsupportedError("Cannot insertRange on immutable List.");
18337 } 18337 }
18338 18338
18339 List<int> getRange(int start, int rangeLength) => 18339 List<int> getRange(int start, int rangeLength) =>
18340 _Lists.getRange(this, start, rangeLength, <int>[]); 18340 _Lists.getRange(this, start, rangeLength, <int>[]);
18341 18341
18342 // -- end List<int> mixins. 18342 // -- end List<int> mixins.
18343 18343
18344 /** @domName Uint8Array.setElements */ 18344 /** @domName Uint8Array.setElements; @docsEditable true */
18345 void setElements(Object array, [int offset]) native "set"; 18345 void setElements(Object array, [int offset]) native "set";
18346 18346
18347 /** @domName Uint8Array.subarray */ 18347 /** @domName Uint8Array.subarray; @docsEditable true */
18348 Uint8Array subarray(int start, [int end]) native; 18348 Uint8Array subarray(int start, [int end]) native;
18349 } 18349 }
18350 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18350 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18351 // for details. All rights reserved. Use of this source code is governed by a 18351 // for details. All rights reserved. Use of this source code is governed by a
18352 // BSD-style license that can be found in the LICENSE file. 18352 // BSD-style license that can be found in the LICENSE file.
18353 18353
18354 18354
18355 /// @domName Uint8ClampedArray 18355 /// @domName Uint8ClampedArray; @docsEditable true
18356 class Uint8ClampedArray extends Uint8Array native "*Uint8ClampedArray" { 18356 class Uint8ClampedArray extends Uint8Array native "*Uint8ClampedArray" {
18357 18357
18358 factory Uint8ClampedArray(int length) => 18358 factory Uint8ClampedArray(int length) =>
18359 _TypedArrayFactoryProvider.createUint8ClampedArray(length); 18359 _TypedArrayFactoryProvider.createUint8ClampedArray(length);
18360 18360
18361 factory Uint8ClampedArray.fromList(List<int> list) => 18361 factory Uint8ClampedArray.fromList(List<int> list) =>
18362 _TypedArrayFactoryProvider.createUint8ClampedArray_fromList(list); 18362 _TypedArrayFactoryProvider.createUint8ClampedArray_fromList(list);
18363 18363
18364 factory Uint8ClampedArray.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) => 18364 factory Uint8ClampedArray.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) =>
18365 _TypedArrayFactoryProvider.createUint8ClampedArray_fromBuffer(buffer, byteOf fset, length); 18365 _TypedArrayFactoryProvider.createUint8ClampedArray_fromBuffer(buffer, byteOf fset, length);
18366 18366
18367 // Use implementation from Uint8Array. 18367 // Use implementation from Uint8Array.
18368 // final int length; 18368 // final int length;
18369 18369
18370 /** @domName Uint8ClampedArray.setElements */ 18370 /** @domName Uint8ClampedArray.setElements; @docsEditable true */
18371 void setElements(Object array, [int offset]) native "set"; 18371 void setElements(Object array, [int offset]) native "set";
18372 18372
18373 /** @domName Uint8ClampedArray.subarray */ 18373 /** @domName Uint8ClampedArray.subarray; @docsEditable true */
18374 Uint8ClampedArray subarray(int start, [int end]) native; 18374 Uint8ClampedArray subarray(int start, [int end]) native;
18375 } 18375 }
18376 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18376 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18377 // for details. All rights reserved. Use of this source code is governed by a 18377 // for details. All rights reserved. Use of this source code is governed by a
18378 // BSD-style license that can be found in the LICENSE file. 18378 // BSD-style license that can be found in the LICENSE file.
18379 18379
18380 18380
18381 /// @domName HTMLUnknownElement 18381 /// @domName HTMLUnknownElement; @docsEditable true
18382 class UnknownElement extends Element implements Element native "*HTMLUnknownElem ent" { 18382 class UnknownElement extends Element implements Element native "*HTMLUnknownElem ent" {
18383 } 18383 }
18384 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18384 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18385 // for details. All rights reserved. Use of this source code is governed by a 18385 // for details. All rights reserved. Use of this source code is governed by a
18386 // BSD-style license that can be found in the LICENSE file. 18386 // BSD-style license that can be found in the LICENSE file.
18387 18387
18388 18388
18389 class Url native "*URL" { 18389 class Url native "*URL" {
18390 18390
18391 static String createObjectUrl(blob_OR_source_OR_stream) => 18391 static String createObjectUrl(blob_OR_source_OR_stream) =>
18392 JS('String', 18392 JS('String',
18393 '(window.URL || window.webkitURL).createObjectURL(#)', 18393 '(window.URL || window.webkitURL).createObjectURL(#)',
18394 blob_OR_source_OR_stream); 18394 blob_OR_source_OR_stream);
18395 18395
18396 static void revokeObjectUrl(String objectUrl) => 18396 static void revokeObjectUrl(String objectUrl) =>
18397 JS('void', 18397 JS('void',
18398 '(window.URL || window.webkitURL).revokeObjectURL(#)', objectUrl); 18398 '(window.URL || window.webkitURL).revokeObjectURL(#)', objectUrl);
18399 18399
18400 } 18400 }
18401 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18401 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18402 // for details. All rights reserved. Use of this source code is governed by a 18402 // for details. All rights reserved. Use of this source code is governed by a
18403 // BSD-style license that can be found in the LICENSE file. 18403 // BSD-style license that can be found in the LICENSE file.
18404 18404
18405 18405
18406 /// @domName ValidityState 18406 /// @domName ValidityState; @docsEditable true
18407 class ValidityState native "*ValidityState" { 18407 class ValidityState native "*ValidityState" {
18408 18408
18409 /** @domName ValidityState.customError */ 18409 /** @domName ValidityState.customError; @docsEditable true */
18410 final bool customError; 18410 final bool customError;
18411 18411
18412 /** @domName ValidityState.patternMismatch */ 18412 /** @domName ValidityState.patternMismatch; @docsEditable true */
18413 final bool patternMismatch; 18413 final bool patternMismatch;
18414 18414
18415 /** @domName ValidityState.rangeOverflow */ 18415 /** @domName ValidityState.rangeOverflow; @docsEditable true */
18416 final bool rangeOverflow; 18416 final bool rangeOverflow;
18417 18417
18418 /** @domName ValidityState.rangeUnderflow */ 18418 /** @domName ValidityState.rangeUnderflow; @docsEditable true */
18419 final bool rangeUnderflow; 18419 final bool rangeUnderflow;
18420 18420
18421 /** @domName ValidityState.stepMismatch */ 18421 /** @domName ValidityState.stepMismatch; @docsEditable true */
18422 final bool stepMismatch; 18422 final bool stepMismatch;
18423 18423
18424 /** @domName ValidityState.tooLong */ 18424 /** @domName ValidityState.tooLong; @docsEditable true */
18425 final bool tooLong; 18425 final bool tooLong;
18426 18426
18427 /** @domName ValidityState.typeMismatch */ 18427 /** @domName ValidityState.typeMismatch; @docsEditable true */
18428 final bool typeMismatch; 18428 final bool typeMismatch;
18429 18429
18430 /** @domName ValidityState.valid */ 18430 /** @domName ValidityState.valid; @docsEditable true */
18431 final bool valid; 18431 final bool valid;
18432 18432
18433 /** @domName ValidityState.valueMissing */ 18433 /** @domName ValidityState.valueMissing; @docsEditable true */
18434 final bool valueMissing; 18434 final bool valueMissing;
18435 } 18435 }
18436 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18436 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18437 // for details. All rights reserved. Use of this source code is governed by a 18437 // for details. All rights reserved. Use of this source code is governed by a
18438 // BSD-style license that can be found in the LICENSE file. 18438 // BSD-style license that can be found in the LICENSE file.
18439 18439
18440 18440
18441 /// @domName HTMLVideoElement 18441 /// @domName HTMLVideoElement; @docsEditable true
18442 class VideoElement extends MediaElement native "*HTMLVideoElement" { 18442 class VideoElement extends MediaElement native "*HTMLVideoElement" {
18443 18443
18444 factory VideoElement() => document.$dom_createElement("video"); 18444 factory VideoElement() => document.$dom_createElement("video");
18445 18445
18446 /** @domName HTMLVideoElement.height */ 18446 /** @domName HTMLVideoElement.height; @docsEditable true */
18447 int height; 18447 int height;
18448 18448
18449 /** @domName HTMLVideoElement.poster */ 18449 /** @domName HTMLVideoElement.poster; @docsEditable true */
18450 String poster; 18450 String poster;
18451 18451
18452 /** @domName HTMLVideoElement.videoHeight */ 18452 /** @domName HTMLVideoElement.videoHeight; @docsEditable true */
18453 final int videoHeight; 18453 final int videoHeight;
18454 18454
18455 /** @domName HTMLVideoElement.videoWidth */ 18455 /** @domName HTMLVideoElement.videoWidth; @docsEditable true */
18456 final int videoWidth; 18456 final int videoWidth;
18457 18457
18458 /** @domName HTMLVideoElement.webkitDecodedFrameCount */ 18458 /** @domName HTMLVideoElement.webkitDecodedFrameCount; @docsEditable true */
18459 final int webkitDecodedFrameCount; 18459 final int webkitDecodedFrameCount;
18460 18460
18461 /** @domName HTMLVideoElement.webkitDisplayingFullscreen */ 18461 /** @domName HTMLVideoElement.webkitDisplayingFullscreen; @docsEditable true * /
18462 final bool webkitDisplayingFullscreen; 18462 final bool webkitDisplayingFullscreen;
18463 18463
18464 /** @domName HTMLVideoElement.webkitDroppedFrameCount */ 18464 /** @domName HTMLVideoElement.webkitDroppedFrameCount; @docsEditable true */
18465 final int webkitDroppedFrameCount; 18465 final int webkitDroppedFrameCount;
18466 18466
18467 /** @domName HTMLVideoElement.webkitSupportsFullscreen */ 18467 /** @domName HTMLVideoElement.webkitSupportsFullscreen; @docsEditable true */
18468 final bool webkitSupportsFullscreen; 18468 final bool webkitSupportsFullscreen;
18469 18469
18470 /** @domName HTMLVideoElement.width */ 18470 /** @domName HTMLVideoElement.width; @docsEditable true */
18471 int width; 18471 int width;
18472 18472
18473 /** @domName HTMLVideoElement.webkitEnterFullScreen */ 18473 /** @domName HTMLVideoElement.webkitEnterFullScreen; @docsEditable true */
18474 void webkitEnterFullScreen() native; 18474 void webkitEnterFullScreen() native;
18475 18475
18476 /** @domName HTMLVideoElement.webkitEnterFullscreen */ 18476 /** @domName HTMLVideoElement.webkitEnterFullscreen; @docsEditable true */
18477 void webkitEnterFullscreen() native; 18477 void webkitEnterFullscreen() native;
18478 18478
18479 /** @domName HTMLVideoElement.webkitExitFullScreen */ 18479 /** @domName HTMLVideoElement.webkitExitFullScreen; @docsEditable true */
18480 void webkitExitFullScreen() native; 18480 void webkitExitFullScreen() native;
18481 18481
18482 /** @domName HTMLVideoElement.webkitExitFullscreen */ 18482 /** @domName HTMLVideoElement.webkitExitFullscreen; @docsEditable true */
18483 void webkitExitFullscreen() native; 18483 void webkitExitFullscreen() native;
18484 } 18484 }
18485 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18485 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18486 // for details. All rights reserved. Use of this source code is governed by a 18486 // for details. All rights reserved. Use of this source code is governed by a
18487 // BSD-style license that can be found in the LICENSE file. 18487 // BSD-style license that can be found in the LICENSE file.
18488 18488
18489 // WARNING: Do not edit - generated code. 18489 // WARNING: Do not edit - generated code.
18490 18490
18491 18491
18492 typedef void VoidCallback(); 18492 typedef void VoidCallback();
18493 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18493 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18494 // for details. All rights reserved. Use of this source code is governed by a 18494 // for details. All rights reserved. Use of this source code is governed by a
18495 // BSD-style license that can be found in the LICENSE file. 18495 // BSD-style license that can be found in the LICENSE file.
18496 18496
18497 18497
18498 /// @domName WaveShaperNode 18498 /// @domName WaveShaperNode; @docsEditable true
18499 class WaveShaperNode extends AudioNode native "*WaveShaperNode" { 18499 class WaveShaperNode extends AudioNode native "*WaveShaperNode" {
18500 18500
18501 /** @domName WaveShaperNode.curve */ 18501 /** @domName WaveShaperNode.curve; @docsEditable true */
18502 Float32Array curve; 18502 Float32Array curve;
18503 } 18503 }
18504 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18504 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18505 // for details. All rights reserved. Use of this source code is governed by a 18505 // for details. All rights reserved. Use of this source code is governed by a
18506 // BSD-style license that can be found in the LICENSE file. 18506 // BSD-style license that can be found in the LICENSE file.
18507 18507
18508 18508
18509 /// @domName WaveTable 18509 /// @domName WaveTable; @docsEditable true
18510 class WaveTable native "*WaveTable" { 18510 class WaveTable native "*WaveTable" {
18511 } 18511 }
18512 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18512 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18513 // for details. All rights reserved. Use of this source code is governed by a 18513 // for details. All rights reserved. Use of this source code is governed by a
18514 // BSD-style license that can be found in the LICENSE file. 18514 // BSD-style license that can be found in the LICENSE file.
18515 18515
18516 18516
18517 /// @domName WebGLActiveInfo 18517 /// @domName WebGLActiveInfo; @docsEditable true
18518 class WebGLActiveInfo native "*WebGLActiveInfo" { 18518 class WebGLActiveInfo native "*WebGLActiveInfo" {
18519 18519
18520 /** @domName WebGLActiveInfo.name */ 18520 /** @domName WebGLActiveInfo.name; @docsEditable true */
18521 final String name; 18521 final String name;
18522 18522
18523 /** @domName WebGLActiveInfo.size */ 18523 /** @domName WebGLActiveInfo.size; @docsEditable true */
18524 final int size; 18524 final int size;
18525 18525
18526 /** @domName WebGLActiveInfo.type */ 18526 /** @domName WebGLActiveInfo.type; @docsEditable true */
18527 final int type; 18527 final int type;
18528 } 18528 }
18529 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18529 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18530 // for details. All rights reserved. Use of this source code is governed by a 18530 // for details. All rights reserved. Use of this source code is governed by a
18531 // BSD-style license that can be found in the LICENSE file. 18531 // BSD-style license that can be found in the LICENSE file.
18532 18532
18533 18533
18534 /// @domName WebGLBuffer 18534 /// @domName WebGLBuffer; @docsEditable true
18535 class WebGLBuffer native "*WebGLBuffer" { 18535 class WebGLBuffer native "*WebGLBuffer" {
18536 } 18536 }
18537 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18537 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18538 // for details. All rights reserved. Use of this source code is governed by a 18538 // for details. All rights reserved. Use of this source code is governed by a
18539 // BSD-style license that can be found in the LICENSE file. 18539 // BSD-style license that can be found in the LICENSE file.
18540 18540
18541 18541
18542 /// @domName WebGLCompressedTextureS3TC 18542 /// @domName WebGLCompressedTextureS3TC; @docsEditable true
18543 class WebGLCompressedTextureS3TC native "*WebGLCompressedTextureS3TC" { 18543 class WebGLCompressedTextureS3TC native "*WebGLCompressedTextureS3TC" {
18544 18544
18545 static const int COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1; 18545 static const int COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1;
18546 18546
18547 static const int COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83F2; 18547 static const int COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83F2;
18548 18548
18549 static const int COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3; 18549 static const int COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3;
18550 18550
18551 static const int COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0; 18551 static const int COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0;
18552 } 18552 }
18553 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18553 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18554 // for details. All rights reserved. Use of this source code is governed by a 18554 // for details. All rights reserved. Use of this source code is governed by a
18555 // BSD-style license that can be found in the LICENSE file. 18555 // BSD-style license that can be found in the LICENSE file.
18556 18556
18557 18557
18558 /// @domName WebGLContextAttributes 18558 /// @domName WebGLContextAttributes; @docsEditable true
18559 class WebGLContextAttributes native "*WebGLContextAttributes" { 18559 class WebGLContextAttributes native "*WebGLContextAttributes" {
18560 18560
18561 /** @domName WebGLContextAttributes.alpha */ 18561 /** @domName WebGLContextAttributes.alpha; @docsEditable true */
18562 bool alpha; 18562 bool alpha;
18563 18563
18564 /** @domName WebGLContextAttributes.antialias */ 18564 /** @domName WebGLContextAttributes.antialias; @docsEditable true */
18565 bool antialias; 18565 bool antialias;
18566 18566
18567 /** @domName WebGLContextAttributes.depth */ 18567 /** @domName WebGLContextAttributes.depth; @docsEditable true */
18568 bool depth; 18568 bool depth;
18569 18569
18570 /** @domName WebGLContextAttributes.premultipliedAlpha */ 18570 /** @domName WebGLContextAttributes.premultipliedAlpha; @docsEditable true */
18571 bool premultipliedAlpha; 18571 bool premultipliedAlpha;
18572 18572
18573 /** @domName WebGLContextAttributes.preserveDrawingBuffer */ 18573 /** @domName WebGLContextAttributes.preserveDrawingBuffer; @docsEditable true */
18574 bool preserveDrawingBuffer; 18574 bool preserveDrawingBuffer;
18575 18575
18576 /** @domName WebGLContextAttributes.stencil */ 18576 /** @domName WebGLContextAttributes.stencil; @docsEditable true */
18577 bool stencil; 18577 bool stencil;
18578 } 18578 }
18579 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18579 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18580 // for details. All rights reserved. Use of this source code is governed by a 18580 // for details. All rights reserved. Use of this source code is governed by a
18581 // BSD-style license that can be found in the LICENSE file. 18581 // BSD-style license that can be found in the LICENSE file.
18582 18582
18583 18583
18584 /// @domName WebGLContextEvent 18584 /// @domName WebGLContextEvent; @docsEditable true
18585 class WebGLContextEvent extends Event native "*WebGLContextEvent" { 18585 class WebGLContextEvent extends Event native "*WebGLContextEvent" {
18586 18586
18587 /** @domName WebGLContextEvent.statusMessage */ 18587 /** @domName WebGLContextEvent.statusMessage; @docsEditable true */
18588 final String statusMessage; 18588 final String statusMessage;
18589 } 18589 }
18590 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18590 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18591 // for details. All rights reserved. Use of this source code is governed by a 18591 // for details. All rights reserved. Use of this source code is governed by a
18592 // BSD-style license that can be found in the LICENSE file. 18592 // BSD-style license that can be found in the LICENSE file.
18593 18593
18594 18594
18595 /// @domName WebGLDebugRendererInfo 18595 /// @domName WebGLDebugRendererInfo; @docsEditable true
18596 class WebGLDebugRendererInfo native "*WebGLDebugRendererInfo" { 18596 class WebGLDebugRendererInfo native "*WebGLDebugRendererInfo" {
18597 18597
18598 static const int UNMASKED_RENDERER_WEBGL = 0x9246; 18598 static const int UNMASKED_RENDERER_WEBGL = 0x9246;
18599 18599
18600 static const int UNMASKED_VENDOR_WEBGL = 0x9245; 18600 static const int UNMASKED_VENDOR_WEBGL = 0x9245;
18601 } 18601 }
18602 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18602 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18603 // for details. All rights reserved. Use of this source code is governed by a 18603 // for details. All rights reserved. Use of this source code is governed by a
18604 // BSD-style license that can be found in the LICENSE file. 18604 // BSD-style license that can be found in the LICENSE file.
18605 18605
18606 18606
18607 /// @domName WebGLDebugShaders 18607 /// @domName WebGLDebugShaders; @docsEditable true
18608 class WebGLDebugShaders native "*WebGLDebugShaders" { 18608 class WebGLDebugShaders native "*WebGLDebugShaders" {
18609 18609
18610 /** @domName WebGLDebugShaders.getTranslatedShaderSource */ 18610 /** @domName WebGLDebugShaders.getTranslatedShaderSource; @docsEditable true * /
18611 String getTranslatedShaderSource(WebGLShader shader) native; 18611 String getTranslatedShaderSource(WebGLShader shader) native;
18612 } 18612 }
18613 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18613 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18614 // for details. All rights reserved. Use of this source code is governed by a 18614 // for details. All rights reserved. Use of this source code is governed by a
18615 // BSD-style license that can be found in the LICENSE file. 18615 // BSD-style license that can be found in the LICENSE file.
18616 18616
18617 18617
18618 /// @domName WebGLDepthTexture 18618 /// @domName WebGLDepthTexture; @docsEditable true
18619 class WebGLDepthTexture native "*WebGLDepthTexture" { 18619 class WebGLDepthTexture native "*WebGLDepthTexture" {
18620 18620
18621 static const int UNSIGNED_INT_24_8_WEBGL = 0x84FA; 18621 static const int UNSIGNED_INT_24_8_WEBGL = 0x84FA;
18622 } 18622 }
18623 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18623 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18624 // for details. All rights reserved. Use of this source code is governed by a 18624 // for details. All rights reserved. Use of this source code is governed by a
18625 // BSD-style license that can be found in the LICENSE file. 18625 // BSD-style license that can be found in the LICENSE file.
18626 18626
18627 18627
18628 /// @domName WebGLFramebuffer 18628 /// @domName WebGLFramebuffer; @docsEditable true
18629 class WebGLFramebuffer native "*WebGLFramebuffer" { 18629 class WebGLFramebuffer native "*WebGLFramebuffer" {
18630 } 18630 }
18631 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18631 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18632 // for details. All rights reserved. Use of this source code is governed by a 18632 // for details. All rights reserved. Use of this source code is governed by a
18633 // BSD-style license that can be found in the LICENSE file. 18633 // BSD-style license that can be found in the LICENSE file.
18634 18634
18635 18635
18636 /// @domName WebGLLoseContext 18636 /// @domName WebGLLoseContext; @docsEditable true
18637 class WebGLLoseContext native "*WebGLLoseContext" { 18637 class WebGLLoseContext native "*WebGLLoseContext" {
18638 18638
18639 /** @domName WebGLLoseContext.loseContext */ 18639 /** @domName WebGLLoseContext.loseContext; @docsEditable true */
18640 void loseContext() native; 18640 void loseContext() native;
18641 18641
18642 /** @domName WebGLLoseContext.restoreContext */ 18642 /** @domName WebGLLoseContext.restoreContext; @docsEditable true */
18643 void restoreContext() native; 18643 void restoreContext() native;
18644 } 18644 }
18645 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18645 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18646 // for details. All rights reserved. Use of this source code is governed by a 18646 // for details. All rights reserved. Use of this source code is governed by a
18647 // BSD-style license that can be found in the LICENSE file. 18647 // BSD-style license that can be found in the LICENSE file.
18648 18648
18649 18649
18650 /// @domName WebGLProgram 18650 /// @domName WebGLProgram; @docsEditable true
18651 class WebGLProgram native "*WebGLProgram" { 18651 class WebGLProgram native "*WebGLProgram" {
18652 } 18652 }
18653 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18653 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18654 // for details. All rights reserved. Use of this source code is governed by a 18654 // for details. All rights reserved. Use of this source code is governed by a
18655 // BSD-style license that can be found in the LICENSE file. 18655 // BSD-style license that can be found in the LICENSE file.
18656 18656
18657 18657
18658 /// @domName WebGLRenderbuffer 18658 /// @domName WebGLRenderbuffer; @docsEditable true
18659 class WebGLRenderbuffer native "*WebGLRenderbuffer" { 18659 class WebGLRenderbuffer native "*WebGLRenderbuffer" {
18660 } 18660 }
18661 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18661 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18662 // for details. All rights reserved. Use of this source code is governed by a 18662 // for details. All rights reserved. Use of this source code is governed by a
18663 // BSD-style license that can be found in the LICENSE file. 18663 // BSD-style license that can be found in the LICENSE file.
18664 18664
18665 18665
18666 /// @domName WebGLRenderingContext 18666 /// @domName WebGLRenderingContext; @docsEditable true
18667 class WebGLRenderingContext extends CanvasRenderingContext native "*WebGLRenderi ngContext" { 18667 class WebGLRenderingContext extends CanvasRenderingContext native "*WebGLRenderi ngContext" {
18668 18668
18669 static const int ACTIVE_ATTRIBUTES = 0x8B89; 18669 static const int ACTIVE_ATTRIBUTES = 0x8B89;
18670 18670
18671 static const int ACTIVE_TEXTURE = 0x84E0; 18671 static const int ACTIVE_TEXTURE = 0x84E0;
18672 18672
18673 static const int ACTIVE_UNIFORMS = 0x8B86; 18673 static const int ACTIVE_UNIFORMS = 0x8B86;
18674 18674
18675 static const int ALIASED_LINE_WIDTH_RANGE = 0x846E; 18675 static const int ALIASED_LINE_WIDTH_RANGE = 0x846E;
18676 18676
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after
19249 static const int VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624; 19249 static const int VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624;
19250 19250
19251 static const int VERTEX_ATTRIB_ARRAY_TYPE = 0x8625; 19251 static const int VERTEX_ATTRIB_ARRAY_TYPE = 0x8625;
19252 19252
19253 static const int VERTEX_SHADER = 0x8B31; 19253 static const int VERTEX_SHADER = 0x8B31;
19254 19254
19255 static const int VIEWPORT = 0x0BA2; 19255 static const int VIEWPORT = 0x0BA2;
19256 19256
19257 static const int ZERO = 0; 19257 static const int ZERO = 0;
19258 19258
19259 /** @domName WebGLRenderingContext.drawingBufferHeight */ 19259 /** @domName WebGLRenderingContext.drawingBufferHeight; @docsEditable true */
19260 final int drawingBufferHeight; 19260 final int drawingBufferHeight;
19261 19261
19262 /** @domName WebGLRenderingContext.drawingBufferWidth */ 19262 /** @domName WebGLRenderingContext.drawingBufferWidth; @docsEditable true */
19263 final int drawingBufferWidth; 19263 final int drawingBufferWidth;
19264 19264
19265 /** @domName WebGLRenderingContext.activeTexture */ 19265 /** @domName WebGLRenderingContext.activeTexture; @docsEditable true */
19266 void activeTexture(int texture) native; 19266 void activeTexture(int texture) native;
19267 19267
19268 /** @domName WebGLRenderingContext.attachShader */ 19268 /** @domName WebGLRenderingContext.attachShader; @docsEditable true */
19269 void attachShader(WebGLProgram program, WebGLShader shader) native; 19269 void attachShader(WebGLProgram program, WebGLShader shader) native;
19270 19270
19271 /** @domName WebGLRenderingContext.bindAttribLocation */ 19271 /** @domName WebGLRenderingContext.bindAttribLocation; @docsEditable true */
19272 void bindAttribLocation(WebGLProgram program, int index, String name) native; 19272 void bindAttribLocation(WebGLProgram program, int index, String name) native;
19273 19273
19274 /** @domName WebGLRenderingContext.bindBuffer */ 19274 /** @domName WebGLRenderingContext.bindBuffer; @docsEditable true */
19275 void bindBuffer(int target, WebGLBuffer buffer) native; 19275 void bindBuffer(int target, WebGLBuffer buffer) native;
19276 19276
19277 /** @domName WebGLRenderingContext.bindFramebuffer */ 19277 /** @domName WebGLRenderingContext.bindFramebuffer; @docsEditable true */
19278 void bindFramebuffer(int target, WebGLFramebuffer framebuffer) native; 19278 void bindFramebuffer(int target, WebGLFramebuffer framebuffer) native;
19279 19279
19280 /** @domName WebGLRenderingContext.bindRenderbuffer */ 19280 /** @domName WebGLRenderingContext.bindRenderbuffer; @docsEditable true */
19281 void bindRenderbuffer(int target, WebGLRenderbuffer renderbuffer) native; 19281 void bindRenderbuffer(int target, WebGLRenderbuffer renderbuffer) native;
19282 19282
19283 /** @domName WebGLRenderingContext.bindTexture */ 19283 /** @domName WebGLRenderingContext.bindTexture; @docsEditable true */
19284 void bindTexture(int target, WebGLTexture texture) native; 19284 void bindTexture(int target, WebGLTexture texture) native;
19285 19285
19286 /** @domName WebGLRenderingContext.blendColor */ 19286 /** @domName WebGLRenderingContext.blendColor; @docsEditable true */
19287 void blendColor(num red, num green, num blue, num alpha) native; 19287 void blendColor(num red, num green, num blue, num alpha) native;
19288 19288
19289 /** @domName WebGLRenderingContext.blendEquation */ 19289 /** @domName WebGLRenderingContext.blendEquation; @docsEditable true */
19290 void blendEquation(int mode) native; 19290 void blendEquation(int mode) native;
19291 19291
19292 /** @domName WebGLRenderingContext.blendEquationSeparate */ 19292 /** @domName WebGLRenderingContext.blendEquationSeparate; @docsEditable true * /
19293 void blendEquationSeparate(int modeRGB, int modeAlpha) native; 19293 void blendEquationSeparate(int modeRGB, int modeAlpha) native;
19294 19294
19295 /** @domName WebGLRenderingContext.blendFunc */ 19295 /** @domName WebGLRenderingContext.blendFunc; @docsEditable true */
19296 void blendFunc(int sfactor, int dfactor) native; 19296 void blendFunc(int sfactor, int dfactor) native;
19297 19297
19298 /** @domName WebGLRenderingContext.blendFuncSeparate */ 19298 /** @domName WebGLRenderingContext.blendFuncSeparate; @docsEditable true */
19299 void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) nat ive; 19299 void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) nat ive;
19300 19300
19301 /** @domName WebGLRenderingContext.bufferData */ 19301 /** @domName WebGLRenderingContext.bufferData; @docsEditable true */
19302 void bufferData(int target, data_OR_size, int usage) native; 19302 void bufferData(int target, data_OR_size, int usage) native;
19303 19303
19304 /** @domName WebGLRenderingContext.bufferSubData */ 19304 /** @domName WebGLRenderingContext.bufferSubData; @docsEditable true */
19305 void bufferSubData(int target, int offset, data) native; 19305 void bufferSubData(int target, int offset, data) native;
19306 19306
19307 /** @domName WebGLRenderingContext.checkFramebufferStatus */ 19307 /** @domName WebGLRenderingContext.checkFramebufferStatus; @docsEditable true */
19308 int checkFramebufferStatus(int target) native; 19308 int checkFramebufferStatus(int target) native;
19309 19309
19310 /** @domName WebGLRenderingContext.clear */ 19310 /** @domName WebGLRenderingContext.clear; @docsEditable true */
19311 void clear(int mask) native; 19311 void clear(int mask) native;
19312 19312
19313 /** @domName WebGLRenderingContext.clearColor */ 19313 /** @domName WebGLRenderingContext.clearColor; @docsEditable true */
19314 void clearColor(num red, num green, num blue, num alpha) native; 19314 void clearColor(num red, num green, num blue, num alpha) native;
19315 19315
19316 /** @domName WebGLRenderingContext.clearDepth */ 19316 /** @domName WebGLRenderingContext.clearDepth; @docsEditable true */
19317 void clearDepth(num depth) native; 19317 void clearDepth(num depth) native;
19318 19318
19319 /** @domName WebGLRenderingContext.clearStencil */ 19319 /** @domName WebGLRenderingContext.clearStencil; @docsEditable true */
19320 void clearStencil(int s) native; 19320 void clearStencil(int s) native;
19321 19321
19322 /** @domName WebGLRenderingContext.colorMask */ 19322 /** @domName WebGLRenderingContext.colorMask; @docsEditable true */
19323 void colorMask(bool red, bool green, bool blue, bool alpha) native; 19323 void colorMask(bool red, bool green, bool blue, bool alpha) native;
19324 19324
19325 /** @domName WebGLRenderingContext.compileShader */ 19325 /** @domName WebGLRenderingContext.compileShader; @docsEditable true */
19326 void compileShader(WebGLShader shader) native; 19326 void compileShader(WebGLShader shader) native;
19327 19327
19328 /** @domName WebGLRenderingContext.compressedTexImage2D */ 19328 /** @domName WebGLRenderingContext.compressedTexImage2D; @docsEditable true */
19329 void compressedTexImage2D(int target, int level, int internalformat, int width , int height, int border, ArrayBufferView data) native; 19329 void compressedTexImage2D(int target, int level, int internalformat, int width , int height, int border, ArrayBufferView data) native;
19330 19330
19331 /** @domName WebGLRenderingContext.compressedTexSubImage2D */ 19331 /** @domName WebGLRenderingContext.compressedTexSubImage2D; @docsEditable true */
19332 void compressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, ArrayBufferView data) native; 19332 void compressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, ArrayBufferView data) native;
19333 19333
19334 /** @domName WebGLRenderingContext.copyTexImage2D */ 19334 /** @domName WebGLRenderingContext.copyTexImage2D; @docsEditable true */
19335 void copyTexImage2D(int target, int level, int internalformat, int x, int y, i nt width, int height, int border) native; 19335 void copyTexImage2D(int target, int level, int internalformat, int x, int y, i nt width, int height, int border) native;
19336 19336
19337 /** @domName WebGLRenderingContext.copyTexSubImage2D */ 19337 /** @domName WebGLRenderingContext.copyTexSubImage2D; @docsEditable true */
19338 void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height) native; 19338 void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height) native;
19339 19339
19340 /** @domName WebGLRenderingContext.createBuffer */ 19340 /** @domName WebGLRenderingContext.createBuffer; @docsEditable true */
19341 WebGLBuffer createBuffer() native; 19341 WebGLBuffer createBuffer() native;
19342 19342
19343 /** @domName WebGLRenderingContext.createFramebuffer */ 19343 /** @domName WebGLRenderingContext.createFramebuffer; @docsEditable true */
19344 WebGLFramebuffer createFramebuffer() native; 19344 WebGLFramebuffer createFramebuffer() native;
19345 19345
19346 /** @domName WebGLRenderingContext.createProgram */ 19346 /** @domName WebGLRenderingContext.createProgram; @docsEditable true */
19347 WebGLProgram createProgram() native; 19347 WebGLProgram createProgram() native;
19348 19348
19349 /** @domName WebGLRenderingContext.createRenderbuffer */ 19349 /** @domName WebGLRenderingContext.createRenderbuffer; @docsEditable true */
19350 WebGLRenderbuffer createRenderbuffer() native; 19350 WebGLRenderbuffer createRenderbuffer() native;
19351 19351
19352 /** @domName WebGLRenderingContext.createShader */ 19352 /** @domName WebGLRenderingContext.createShader; @docsEditable true */
19353 WebGLShader createShader(int type) native; 19353 WebGLShader createShader(int type) native;
19354 19354
19355 /** @domName WebGLRenderingContext.createTexture */ 19355 /** @domName WebGLRenderingContext.createTexture; @docsEditable true */
19356 WebGLTexture createTexture() native; 19356 WebGLTexture createTexture() native;
19357 19357
19358 /** @domName WebGLRenderingContext.cullFace */ 19358 /** @domName WebGLRenderingContext.cullFace; @docsEditable true */
19359 void cullFace(int mode) native; 19359 void cullFace(int mode) native;
19360 19360
19361 /** @domName WebGLRenderingContext.deleteBuffer */ 19361 /** @domName WebGLRenderingContext.deleteBuffer; @docsEditable true */
19362 void deleteBuffer(WebGLBuffer buffer) native; 19362 void deleteBuffer(WebGLBuffer buffer) native;
19363 19363
19364 /** @domName WebGLRenderingContext.deleteFramebuffer */ 19364 /** @domName WebGLRenderingContext.deleteFramebuffer; @docsEditable true */
19365 void deleteFramebuffer(WebGLFramebuffer framebuffer) native; 19365 void deleteFramebuffer(WebGLFramebuffer framebuffer) native;
19366 19366
19367 /** @domName WebGLRenderingContext.deleteProgram */ 19367 /** @domName WebGLRenderingContext.deleteProgram; @docsEditable true */
19368 void deleteProgram(WebGLProgram program) native; 19368 void deleteProgram(WebGLProgram program) native;
19369 19369
19370 /** @domName WebGLRenderingContext.deleteRenderbuffer */ 19370 /** @domName WebGLRenderingContext.deleteRenderbuffer; @docsEditable true */
19371 void deleteRenderbuffer(WebGLRenderbuffer renderbuffer) native; 19371 void deleteRenderbuffer(WebGLRenderbuffer renderbuffer) native;
19372 19372
19373 /** @domName WebGLRenderingContext.deleteShader */ 19373 /** @domName WebGLRenderingContext.deleteShader; @docsEditable true */
19374 void deleteShader(WebGLShader shader) native; 19374 void deleteShader(WebGLShader shader) native;
19375 19375
19376 /** @domName WebGLRenderingContext.deleteTexture */ 19376 /** @domName WebGLRenderingContext.deleteTexture; @docsEditable true */
19377 void deleteTexture(WebGLTexture texture) native; 19377 void deleteTexture(WebGLTexture texture) native;
19378 19378
19379 /** @domName WebGLRenderingContext.depthFunc */ 19379 /** @domName WebGLRenderingContext.depthFunc; @docsEditable true */
19380 void depthFunc(int func) native; 19380 void depthFunc(int func) native;
19381 19381
19382 /** @domName WebGLRenderingContext.depthMask */ 19382 /** @domName WebGLRenderingContext.depthMask; @docsEditable true */
19383 void depthMask(bool flag) native; 19383 void depthMask(bool flag) native;
19384 19384
19385 /** @domName WebGLRenderingContext.depthRange */ 19385 /** @domName WebGLRenderingContext.depthRange; @docsEditable true */
19386 void depthRange(num zNear, num zFar) native; 19386 void depthRange(num zNear, num zFar) native;
19387 19387
19388 /** @domName WebGLRenderingContext.detachShader */ 19388 /** @domName WebGLRenderingContext.detachShader; @docsEditable true */
19389 void detachShader(WebGLProgram program, WebGLShader shader) native; 19389 void detachShader(WebGLProgram program, WebGLShader shader) native;
19390 19390
19391 /** @domName WebGLRenderingContext.disable */ 19391 /** @domName WebGLRenderingContext.disable; @docsEditable true */
19392 void disable(int cap) native; 19392 void disable(int cap) native;
19393 19393
19394 /** @domName WebGLRenderingContext.disableVertexAttribArray */ 19394 /** @domName WebGLRenderingContext.disableVertexAttribArray; @docsEditable tru e */
19395 void disableVertexAttribArray(int index) native; 19395 void disableVertexAttribArray(int index) native;
19396 19396
19397 /** @domName WebGLRenderingContext.drawArrays */ 19397 /** @domName WebGLRenderingContext.drawArrays; @docsEditable true */
19398 void drawArrays(int mode, int first, int count) native; 19398 void drawArrays(int mode, int first, int count) native;
19399 19399
19400 /** @domName WebGLRenderingContext.drawElements */ 19400 /** @domName WebGLRenderingContext.drawElements; @docsEditable true */
19401 void drawElements(int mode, int count, int type, int offset) native; 19401 void drawElements(int mode, int count, int type, int offset) native;
19402 19402
19403 /** @domName WebGLRenderingContext.enable */ 19403 /** @domName WebGLRenderingContext.enable; @docsEditable true */
19404 void enable(int cap) native; 19404 void enable(int cap) native;
19405 19405
19406 /** @domName WebGLRenderingContext.enableVertexAttribArray */ 19406 /** @domName WebGLRenderingContext.enableVertexAttribArray; @docsEditable true */
19407 void enableVertexAttribArray(int index) native; 19407 void enableVertexAttribArray(int index) native;
19408 19408
19409 /** @domName WebGLRenderingContext.finish */ 19409 /** @domName WebGLRenderingContext.finish; @docsEditable true */
19410 void finish() native; 19410 void finish() native;
19411 19411
19412 /** @domName WebGLRenderingContext.flush */ 19412 /** @domName WebGLRenderingContext.flush; @docsEditable true */
19413 void flush() native; 19413 void flush() native;
19414 19414
19415 /** @domName WebGLRenderingContext.framebufferRenderbuffer */ 19415 /** @domName WebGLRenderingContext.framebufferRenderbuffer; @docsEditable true */
19416 void framebufferRenderbuffer(int target, int attachment, int renderbuffertarge t, WebGLRenderbuffer renderbuffer) native; 19416 void framebufferRenderbuffer(int target, int attachment, int renderbuffertarge t, WebGLRenderbuffer renderbuffer) native;
19417 19417
19418 /** @domName WebGLRenderingContext.framebufferTexture2D */ 19418 /** @domName WebGLRenderingContext.framebufferTexture2D; @docsEditable true */
19419 void framebufferTexture2D(int target, int attachment, int textarget, WebGLText ure texture, int level) native; 19419 void framebufferTexture2D(int target, int attachment, int textarget, WebGLText ure texture, int level) native;
19420 19420
19421 /** @domName WebGLRenderingContext.frontFace */ 19421 /** @domName WebGLRenderingContext.frontFace; @docsEditable true */
19422 void frontFace(int mode) native; 19422 void frontFace(int mode) native;
19423 19423
19424 /** @domName WebGLRenderingContext.generateMipmap */ 19424 /** @domName WebGLRenderingContext.generateMipmap; @docsEditable true */
19425 void generateMipmap(int target) native; 19425 void generateMipmap(int target) native;
19426 19426
19427 /** @domName WebGLRenderingContext.getActiveAttrib */ 19427 /** @domName WebGLRenderingContext.getActiveAttrib; @docsEditable true */
19428 WebGLActiveInfo getActiveAttrib(WebGLProgram program, int index) native; 19428 WebGLActiveInfo getActiveAttrib(WebGLProgram program, int index) native;
19429 19429
19430 /** @domName WebGLRenderingContext.getActiveUniform */ 19430 /** @domName WebGLRenderingContext.getActiveUniform; @docsEditable true */
19431 WebGLActiveInfo getActiveUniform(WebGLProgram program, int index) native; 19431 WebGLActiveInfo getActiveUniform(WebGLProgram program, int index) native;
19432 19432
19433 /** @domName WebGLRenderingContext.getAttachedShaders */ 19433 /** @domName WebGLRenderingContext.getAttachedShaders; @docsEditable true */
19434 void getAttachedShaders(WebGLProgram program) native; 19434 void getAttachedShaders(WebGLProgram program) native;
19435 19435
19436 /** @domName WebGLRenderingContext.getAttribLocation */ 19436 /** @domName WebGLRenderingContext.getAttribLocation; @docsEditable true */
19437 int getAttribLocation(WebGLProgram program, String name) native; 19437 int getAttribLocation(WebGLProgram program, String name) native;
19438 19438
19439 /** @domName WebGLRenderingContext.getBufferParameter */ 19439 /** @domName WebGLRenderingContext.getBufferParameter; @docsEditable true */
19440 Object getBufferParameter(int target, int pname) native; 19440 Object getBufferParameter(int target, int pname) native;
19441 19441
19442 /** @domName WebGLRenderingContext.getContextAttributes */ 19442 /** @domName WebGLRenderingContext.getContextAttributes; @docsEditable true */
19443 WebGLContextAttributes getContextAttributes() native; 19443 WebGLContextAttributes getContextAttributes() native;
19444 19444
19445 /** @domName WebGLRenderingContext.getError */ 19445 /** @domName WebGLRenderingContext.getError; @docsEditable true */
19446 int getError() native; 19446 int getError() native;
19447 19447
19448 /** @domName WebGLRenderingContext.getExtension */ 19448 /** @domName WebGLRenderingContext.getExtension; @docsEditable true */
19449 Object getExtension(String name) native; 19449 Object getExtension(String name) native;
19450 19450
19451 /** @domName WebGLRenderingContext.getFramebufferAttachmentParameter */ 19451 /** @domName WebGLRenderingContext.getFramebufferAttachmentParameter; @docsEdi table true */
19452 Object getFramebufferAttachmentParameter(int target, int attachment, int pname ) native; 19452 Object getFramebufferAttachmentParameter(int target, int attachment, int pname ) native;
19453 19453
19454 /** @domName WebGLRenderingContext.getParameter */ 19454 /** @domName WebGLRenderingContext.getParameter; @docsEditable true */
19455 Object getParameter(int pname) native; 19455 Object getParameter(int pname) native;
19456 19456
19457 /** @domName WebGLRenderingContext.getProgramInfoLog */ 19457 /** @domName WebGLRenderingContext.getProgramInfoLog; @docsEditable true */
19458 String getProgramInfoLog(WebGLProgram program) native; 19458 String getProgramInfoLog(WebGLProgram program) native;
19459 19459
19460 /** @domName WebGLRenderingContext.getProgramParameter */ 19460 /** @domName WebGLRenderingContext.getProgramParameter; @docsEditable true */
19461 Object getProgramParameter(WebGLProgram program, int pname) native; 19461 Object getProgramParameter(WebGLProgram program, int pname) native;
19462 19462
19463 /** @domName WebGLRenderingContext.getRenderbufferParameter */ 19463 /** @domName WebGLRenderingContext.getRenderbufferParameter; @docsEditable tru e */
19464 Object getRenderbufferParameter(int target, int pname) native; 19464 Object getRenderbufferParameter(int target, int pname) native;
19465 19465
19466 /** @domName WebGLRenderingContext.getShaderInfoLog */ 19466 /** @domName WebGLRenderingContext.getShaderInfoLog; @docsEditable true */
19467 String getShaderInfoLog(WebGLShader shader) native; 19467 String getShaderInfoLog(WebGLShader shader) native;
19468 19468
19469 /** @domName WebGLRenderingContext.getShaderParameter */ 19469 /** @domName WebGLRenderingContext.getShaderParameter; @docsEditable true */
19470 Object getShaderParameter(WebGLShader shader, int pname) native; 19470 Object getShaderParameter(WebGLShader shader, int pname) native;
19471 19471
19472 /** @domName WebGLRenderingContext.getShaderPrecisionFormat */ 19472 /** @domName WebGLRenderingContext.getShaderPrecisionFormat; @docsEditable tru e */
19473 WebGLShaderPrecisionFormat getShaderPrecisionFormat(int shadertype, int precis iontype) native; 19473 WebGLShaderPrecisionFormat getShaderPrecisionFormat(int shadertype, int precis iontype) native;
19474 19474
19475 /** @domName WebGLRenderingContext.getShaderSource */ 19475 /** @domName WebGLRenderingContext.getShaderSource; @docsEditable true */
19476 String getShaderSource(WebGLShader shader) native; 19476 String getShaderSource(WebGLShader shader) native;
19477 19477
19478 /** @domName WebGLRenderingContext.getSupportedExtensions */ 19478 /** @domName WebGLRenderingContext.getSupportedExtensions; @docsEditable true */
19479 List<String> getSupportedExtensions() native; 19479 List<String> getSupportedExtensions() native;
19480 19480
19481 /** @domName WebGLRenderingContext.getTexParameter */ 19481 /** @domName WebGLRenderingContext.getTexParameter; @docsEditable true */
19482 Object getTexParameter(int target, int pname) native; 19482 Object getTexParameter(int target, int pname) native;
19483 19483
19484 /** @domName WebGLRenderingContext.getUniform */ 19484 /** @domName WebGLRenderingContext.getUniform; @docsEditable true */
19485 Object getUniform(WebGLProgram program, WebGLUniformLocation location) native; 19485 Object getUniform(WebGLProgram program, WebGLUniformLocation location) native;
19486 19486
19487 /** @domName WebGLRenderingContext.getUniformLocation */ 19487 /** @domName WebGLRenderingContext.getUniformLocation; @docsEditable true */
19488 WebGLUniformLocation getUniformLocation(WebGLProgram program, String name) nat ive; 19488 WebGLUniformLocation getUniformLocation(WebGLProgram program, String name) nat ive;
19489 19489
19490 /** @domName WebGLRenderingContext.getVertexAttrib */ 19490 /** @domName WebGLRenderingContext.getVertexAttrib; @docsEditable true */
19491 Object getVertexAttrib(int index, int pname) native; 19491 Object getVertexAttrib(int index, int pname) native;
19492 19492
19493 /** @domName WebGLRenderingContext.getVertexAttribOffset */ 19493 /** @domName WebGLRenderingContext.getVertexAttribOffset; @docsEditable true * /
19494 int getVertexAttribOffset(int index, int pname) native; 19494 int getVertexAttribOffset(int index, int pname) native;
19495 19495
19496 /** @domName WebGLRenderingContext.hint */ 19496 /** @domName WebGLRenderingContext.hint; @docsEditable true */
19497 void hint(int target, int mode) native; 19497 void hint(int target, int mode) native;
19498 19498
19499 /** @domName WebGLRenderingContext.isBuffer */ 19499 /** @domName WebGLRenderingContext.isBuffer; @docsEditable true */
19500 bool isBuffer(WebGLBuffer buffer) native; 19500 bool isBuffer(WebGLBuffer buffer) native;
19501 19501
19502 /** @domName WebGLRenderingContext.isContextLost */ 19502 /** @domName WebGLRenderingContext.isContextLost; @docsEditable true */
19503 bool isContextLost() native; 19503 bool isContextLost() native;
19504 19504
19505 /** @domName WebGLRenderingContext.isEnabled */ 19505 /** @domName WebGLRenderingContext.isEnabled; @docsEditable true */
19506 bool isEnabled(int cap) native; 19506 bool isEnabled(int cap) native;
19507 19507
19508 /** @domName WebGLRenderingContext.isFramebuffer */ 19508 /** @domName WebGLRenderingContext.isFramebuffer; @docsEditable true */
19509 bool isFramebuffer(WebGLFramebuffer framebuffer) native; 19509 bool isFramebuffer(WebGLFramebuffer framebuffer) native;
19510 19510
19511 /** @domName WebGLRenderingContext.isProgram */ 19511 /** @domName WebGLRenderingContext.isProgram; @docsEditable true */
19512 bool isProgram(WebGLProgram program) native; 19512 bool isProgram(WebGLProgram program) native;
19513 19513
19514 /** @domName WebGLRenderingContext.isRenderbuffer */ 19514 /** @domName WebGLRenderingContext.isRenderbuffer; @docsEditable true */
19515 bool isRenderbuffer(WebGLRenderbuffer renderbuffer) native; 19515 bool isRenderbuffer(WebGLRenderbuffer renderbuffer) native;
19516 19516
19517 /** @domName WebGLRenderingContext.isShader */ 19517 /** @domName WebGLRenderingContext.isShader; @docsEditable true */
19518 bool isShader(WebGLShader shader) native; 19518 bool isShader(WebGLShader shader) native;
19519 19519
19520 /** @domName WebGLRenderingContext.isTexture */ 19520 /** @domName WebGLRenderingContext.isTexture; @docsEditable true */
19521 bool isTexture(WebGLTexture texture) native; 19521 bool isTexture(WebGLTexture texture) native;
19522 19522
19523 /** @domName WebGLRenderingContext.lineWidth */ 19523 /** @domName WebGLRenderingContext.lineWidth; @docsEditable true */
19524 void lineWidth(num width) native; 19524 void lineWidth(num width) native;
19525 19525
19526 /** @domName WebGLRenderingContext.linkProgram */ 19526 /** @domName WebGLRenderingContext.linkProgram; @docsEditable true */
19527 void linkProgram(WebGLProgram program) native; 19527 void linkProgram(WebGLProgram program) native;
19528 19528
19529 /** @domName WebGLRenderingContext.pixelStorei */ 19529 /** @domName WebGLRenderingContext.pixelStorei; @docsEditable true */
19530 void pixelStorei(int pname, int param) native; 19530 void pixelStorei(int pname, int param) native;
19531 19531
19532 /** @domName WebGLRenderingContext.polygonOffset */ 19532 /** @domName WebGLRenderingContext.polygonOffset; @docsEditable true */
19533 void polygonOffset(num factor, num units) native; 19533 void polygonOffset(num factor, num units) native;
19534 19534
19535 /** @domName WebGLRenderingContext.readPixels */ 19535 /** @domName WebGLRenderingContext.readPixels; @docsEditable true */
19536 void readPixels(int x, int y, int width, int height, int format, int type, Arr ayBufferView pixels) native; 19536 void readPixels(int x, int y, int width, int height, int format, int type, Arr ayBufferView pixels) native;
19537 19537
19538 /** @domName WebGLRenderingContext.releaseShaderCompiler */ 19538 /** @domName WebGLRenderingContext.releaseShaderCompiler; @docsEditable true * /
19539 void releaseShaderCompiler() native; 19539 void releaseShaderCompiler() native;
19540 19540
19541 /** @domName WebGLRenderingContext.renderbufferStorage */ 19541 /** @domName WebGLRenderingContext.renderbufferStorage; @docsEditable true */
19542 void renderbufferStorage(int target, int internalformat, int width, int height ) native; 19542 void renderbufferStorage(int target, int internalformat, int width, int height ) native;
19543 19543
19544 /** @domName WebGLRenderingContext.sampleCoverage */ 19544 /** @domName WebGLRenderingContext.sampleCoverage; @docsEditable true */
19545 void sampleCoverage(num value, bool invert) native; 19545 void sampleCoverage(num value, bool invert) native;
19546 19546
19547 /** @domName WebGLRenderingContext.scissor */ 19547 /** @domName WebGLRenderingContext.scissor; @docsEditable true */
19548 void scissor(int x, int y, int width, int height) native; 19548 void scissor(int x, int y, int width, int height) native;
19549 19549
19550 /** @domName WebGLRenderingContext.shaderSource */ 19550 /** @domName WebGLRenderingContext.shaderSource; @docsEditable true */
19551 void shaderSource(WebGLShader shader, String string) native; 19551 void shaderSource(WebGLShader shader, String string) native;
19552 19552
19553 /** @domName WebGLRenderingContext.stencilFunc */ 19553 /** @domName WebGLRenderingContext.stencilFunc; @docsEditable true */
19554 void stencilFunc(int func, int ref, int mask) native; 19554 void stencilFunc(int func, int ref, int mask) native;
19555 19555
19556 /** @domName WebGLRenderingContext.stencilFuncSeparate */ 19556 /** @domName WebGLRenderingContext.stencilFuncSeparate; @docsEditable true */
19557 void stencilFuncSeparate(int face, int func, int ref, int mask) native; 19557 void stencilFuncSeparate(int face, int func, int ref, int mask) native;
19558 19558
19559 /** @domName WebGLRenderingContext.stencilMask */ 19559 /** @domName WebGLRenderingContext.stencilMask; @docsEditable true */
19560 void stencilMask(int mask) native; 19560 void stencilMask(int mask) native;
19561 19561
19562 /** @domName WebGLRenderingContext.stencilMaskSeparate */ 19562 /** @domName WebGLRenderingContext.stencilMaskSeparate; @docsEditable true */
19563 void stencilMaskSeparate(int face, int mask) native; 19563 void stencilMaskSeparate(int face, int mask) native;
19564 19564
19565 /** @domName WebGLRenderingContext.stencilOp */ 19565 /** @domName WebGLRenderingContext.stencilOp; @docsEditable true */
19566 void stencilOp(int fail, int zfail, int zpass) native; 19566 void stencilOp(int fail, int zfail, int zpass) native;
19567 19567
19568 /** @domName WebGLRenderingContext.stencilOpSeparate */ 19568 /** @domName WebGLRenderingContext.stencilOpSeparate; @docsEditable true */
19569 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native; 19569 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native;
19570 19570
19571 /** @domName WebGLRenderingContext.texImage2D */ 19571 /** @domName WebGLRenderingContext.texImage2D; @docsEditable true */
19572 void texImage2D(int target, int level, int internalformat, int format_OR_width , int height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video, [int format, int type, ArrayBufferView pixels]) { 19572 void texImage2D(int target, int level, int internalformat, int format_OR_width , int height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video, [int format, int type, ArrayBufferView pixels]) {
19573 if ((?border_OR_canvas_OR_image_OR_pixels_OR_video && (border_OR_canvas_OR_i mage_OR_pixels_OR_video is int || border_OR_canvas_OR_image_OR_pixels_OR_video = = null))) { 19573 if ((?border_OR_canvas_OR_image_OR_pixels_OR_video && (border_OR_canvas_OR_i mage_OR_pixels_OR_video is int || border_OR_canvas_OR_image_OR_pixels_OR_video = = null))) {
19574 _texImage2D_1(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pixels); 19574 _texImage2D_1(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pixels);
19575 return; 19575 return;
19576 } 19576 }
19577 if ((?border_OR_canvas_OR_image_OR_pixels_OR_video && (border_OR_canvas_OR_i mage_OR_pixels_OR_video is ImageData || border_OR_canvas_OR_image_OR_pixels_OR_v ideo == null)) && 19577 if ((?border_OR_canvas_OR_image_OR_pixels_OR_video && (border_OR_canvas_OR_i mage_OR_pixels_OR_video is ImageData || border_OR_canvas_OR_image_OR_pixels_OR_v ideo == null)) &&
19578 !?format && 19578 !?format &&
19579 !?type && 19579 !?type &&
19580 !?pixels) { 19580 !?pixels) {
19581 var pixels_1 = _convertDartToNative_ImageData(border_OR_canvas_OR_image_OR _pixels_OR_video); 19581 var pixels_1 = _convertDartToNative_ImageData(border_OR_canvas_OR_image_OR _pixels_OR_video);
(...skipping 22 matching lines...) Expand all
19604 return; 19604 return;
19605 } 19605 }
19606 throw new ArgumentError("Incorrect number or type of arguments"); 19606 throw new ArgumentError("Incorrect number or type of arguments");
19607 } 19607 }
19608 void _texImage2D_1(target, level, internalformat, width, height, int border, f ormat, type, ArrayBufferView pixels) native "texImage2D"; 19608 void _texImage2D_1(target, level, internalformat, width, height, int border, f ormat, type, ArrayBufferView pixels) native "texImage2D";
19609 void _texImage2D_2(target, level, internalformat, format, type, pixels) native "texImage2D"; 19609 void _texImage2D_2(target, level, internalformat, format, type, pixels) native "texImage2D";
19610 void _texImage2D_3(target, level, internalformat, format, type, ImageElement i mage) native "texImage2D"; 19610 void _texImage2D_3(target, level, internalformat, format, type, ImageElement i mage) native "texImage2D";
19611 void _texImage2D_4(target, level, internalformat, format, type, CanvasElement canvas) native "texImage2D"; 19611 void _texImage2D_4(target, level, internalformat, format, type, CanvasElement canvas) native "texImage2D";
19612 void _texImage2D_5(target, level, internalformat, format, type, VideoElement v ideo) native "texImage2D"; 19612 void _texImage2D_5(target, level, internalformat, format, type, VideoElement v ideo) native "texImage2D";
19613 19613
19614 /** @domName WebGLRenderingContext.texParameterf */ 19614 /** @domName WebGLRenderingContext.texParameterf; @docsEditable true */
19615 void texParameterf(int target, int pname, num param) native; 19615 void texParameterf(int target, int pname, num param) native;
19616 19616
19617 /** @domName WebGLRenderingContext.texParameteri */ 19617 /** @domName WebGLRenderingContext.texParameteri; @docsEditable true */
19618 void texParameteri(int target, int pname, int param) native; 19618 void texParameteri(int target, int pname, int param) native;
19619 19619
19620 /** @domName WebGLRenderingContext.texSubImage2D */ 19620 /** @domName WebGLRenderingContext.texSubImage2D; @docsEditable true */
19621 void texSubImage2D(int target, int level, int xoffset, int yoffset, int format _OR_width, int height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, [in t type, ArrayBufferView pixels]) { 19621 void texSubImage2D(int target, int level, int xoffset, int yoffset, int format _OR_width, int height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, [in t type, ArrayBufferView pixels]) {
19622 if ((?canvas_OR_format_OR_image_OR_pixels_OR_video && (canvas_OR_format_OR_i mage_OR_pixels_OR_video is int || canvas_OR_format_OR_image_OR_pixels_OR_video = = null))) { 19622 if ((?canvas_OR_format_OR_image_OR_pixels_OR_video && (canvas_OR_format_OR_i mage_OR_pixels_OR_video is int || canvas_OR_format_OR_image_OR_pixels_OR_video = = null))) {
19623 _texSubImage2D_1(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixels); 19623 _texSubImage2D_1(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixels);
19624 return; 19624 return;
19625 } 19625 }
19626 if ((?canvas_OR_format_OR_image_OR_pixels_OR_video && (canvas_OR_format_OR_i mage_OR_pixels_OR_video is ImageData || canvas_OR_format_OR_image_OR_pixels_OR_v ideo == null)) && 19626 if ((?canvas_OR_format_OR_image_OR_pixels_OR_video && (canvas_OR_format_OR_i mage_OR_pixels_OR_video is ImageData || canvas_OR_format_OR_image_OR_pixels_OR_v ideo == null)) &&
19627 !?type && 19627 !?type &&
19628 !?pixels) { 19628 !?pixels) {
19629 var pixels_1 = _convertDartToNative_ImageData(canvas_OR_format_OR_image_OR _pixels_OR_video); 19629 var pixels_1 = _convertDartToNative_ImageData(canvas_OR_format_OR_image_OR _pixels_OR_video);
19630 _texSubImage2D_2(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, pixels_1); 19630 _texSubImage2D_2(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, pixels_1);
(...skipping 18 matching lines...) Expand all
19649 return; 19649 return;
19650 } 19650 }
19651 throw new ArgumentError("Incorrect number or type of arguments"); 19651 throw new ArgumentError("Incorrect number or type of arguments");
19652 } 19652 }
19653 void _texSubImage2D_1(target, level, xoffset, yoffset, width, height, int form at, type, ArrayBufferView pixels) native "texSubImage2D"; 19653 void _texSubImage2D_1(target, level, xoffset, yoffset, width, height, int form at, type, ArrayBufferView pixels) native "texSubImage2D";
19654 void _texSubImage2D_2(target, level, xoffset, yoffset, format, type, pixels) n ative "texSubImage2D"; 19654 void _texSubImage2D_2(target, level, xoffset, yoffset, format, type, pixels) n ative "texSubImage2D";
19655 void _texSubImage2D_3(target, level, xoffset, yoffset, format, type, ImageElem ent image) native "texSubImage2D"; 19655 void _texSubImage2D_3(target, level, xoffset, yoffset, format, type, ImageElem ent image) native "texSubImage2D";
19656 void _texSubImage2D_4(target, level, xoffset, yoffset, format, type, CanvasEle ment canvas) native "texSubImage2D"; 19656 void _texSubImage2D_4(target, level, xoffset, yoffset, format, type, CanvasEle ment canvas) native "texSubImage2D";
19657 void _texSubImage2D_5(target, level, xoffset, yoffset, format, type, VideoElem ent video) native "texSubImage2D"; 19657 void _texSubImage2D_5(target, level, xoffset, yoffset, format, type, VideoElem ent video) native "texSubImage2D";
19658 19658
19659 /** @domName WebGLRenderingContext.uniform1f */ 19659 /** @domName WebGLRenderingContext.uniform1f; @docsEditable true */
19660 void uniform1f(WebGLUniformLocation location, num x) native; 19660 void uniform1f(WebGLUniformLocation location, num x) native;
19661 19661
19662 /** @domName WebGLRenderingContext.uniform1fv */ 19662 /** @domName WebGLRenderingContext.uniform1fv; @docsEditable true */
19663 void uniform1fv(WebGLUniformLocation location, Float32Array v) native; 19663 void uniform1fv(WebGLUniformLocation location, Float32Array v) native;
19664 19664
19665 /** @domName WebGLRenderingContext.uniform1i */ 19665 /** @domName WebGLRenderingContext.uniform1i; @docsEditable true */
19666 void uniform1i(WebGLUniformLocation location, int x) native; 19666 void uniform1i(WebGLUniformLocation location, int x) native;
19667 19667
19668 /** @domName WebGLRenderingContext.uniform1iv */ 19668 /** @domName WebGLRenderingContext.uniform1iv; @docsEditable true */
19669 void uniform1iv(WebGLUniformLocation location, Int32Array v) native; 19669 void uniform1iv(WebGLUniformLocation location, Int32Array v) native;
19670 19670
19671 /** @domName WebGLRenderingContext.uniform2f */ 19671 /** @domName WebGLRenderingContext.uniform2f; @docsEditable true */
19672 void uniform2f(WebGLUniformLocation location, num x, num y) native; 19672 void uniform2f(WebGLUniformLocation location, num x, num y) native;
19673 19673
19674 /** @domName WebGLRenderingContext.uniform2fv */ 19674 /** @domName WebGLRenderingContext.uniform2fv; @docsEditable true */
19675 void uniform2fv(WebGLUniformLocation location, Float32Array v) native; 19675 void uniform2fv(WebGLUniformLocation location, Float32Array v) native;
19676 19676
19677 /** @domName WebGLRenderingContext.uniform2i */ 19677 /** @domName WebGLRenderingContext.uniform2i; @docsEditable true */
19678 void uniform2i(WebGLUniformLocation location, int x, int y) native; 19678 void uniform2i(WebGLUniformLocation location, int x, int y) native;
19679 19679
19680 /** @domName WebGLRenderingContext.uniform2iv */ 19680 /** @domName WebGLRenderingContext.uniform2iv; @docsEditable true */
19681 void uniform2iv(WebGLUniformLocation location, Int32Array v) native; 19681 void uniform2iv(WebGLUniformLocation location, Int32Array v) native;
19682 19682
19683 /** @domName WebGLRenderingContext.uniform3f */ 19683 /** @domName WebGLRenderingContext.uniform3f; @docsEditable true */
19684 void uniform3f(WebGLUniformLocation location, num x, num y, num z) native; 19684 void uniform3f(WebGLUniformLocation location, num x, num y, num z) native;
19685 19685
19686 /** @domName WebGLRenderingContext.uniform3fv */ 19686 /** @domName WebGLRenderingContext.uniform3fv; @docsEditable true */
19687 void uniform3fv(WebGLUniformLocation location, Float32Array v) native; 19687 void uniform3fv(WebGLUniformLocation location, Float32Array v) native;
19688 19688
19689 /** @domName WebGLRenderingContext.uniform3i */ 19689 /** @domName WebGLRenderingContext.uniform3i; @docsEditable true */
19690 void uniform3i(WebGLUniformLocation location, int x, int y, int z) native; 19690 void uniform3i(WebGLUniformLocation location, int x, int y, int z) native;
19691 19691
19692 /** @domName WebGLRenderingContext.uniform3iv */ 19692 /** @domName WebGLRenderingContext.uniform3iv; @docsEditable true */
19693 void uniform3iv(WebGLUniformLocation location, Int32Array v) native; 19693 void uniform3iv(WebGLUniformLocation location, Int32Array v) native;
19694 19694
19695 /** @domName WebGLRenderingContext.uniform4f */ 19695 /** @domName WebGLRenderingContext.uniform4f; @docsEditable true */
19696 void uniform4f(WebGLUniformLocation location, num x, num y, num z, num w) nati ve; 19696 void uniform4f(WebGLUniformLocation location, num x, num y, num z, num w) nati ve;
19697 19697
19698 /** @domName WebGLRenderingContext.uniform4fv */ 19698 /** @domName WebGLRenderingContext.uniform4fv; @docsEditable true */
19699 void uniform4fv(WebGLUniformLocation location, Float32Array v) native; 19699 void uniform4fv(WebGLUniformLocation location, Float32Array v) native;
19700 19700
19701 /** @domName WebGLRenderingContext.uniform4i */ 19701 /** @domName WebGLRenderingContext.uniform4i; @docsEditable true */
19702 void uniform4i(WebGLUniformLocation location, int x, int y, int z, int w) nati ve; 19702 void uniform4i(WebGLUniformLocation location, int x, int y, int z, int w) nati ve;
19703 19703
19704 /** @domName WebGLRenderingContext.uniform4iv */ 19704 /** @domName WebGLRenderingContext.uniform4iv; @docsEditable true */
19705 void uniform4iv(WebGLUniformLocation location, Int32Array v) native; 19705 void uniform4iv(WebGLUniformLocation location, Int32Array v) native;
19706 19706
19707 /** @domName WebGLRenderingContext.uniformMatrix2fv */ 19707 /** @domName WebGLRenderingContext.uniformMatrix2fv; @docsEditable true */
19708 void uniformMatrix2fv(WebGLUniformLocation location, bool transpose, Float32Ar ray array) native; 19708 void uniformMatrix2fv(WebGLUniformLocation location, bool transpose, Float32Ar ray array) native;
19709 19709
19710 /** @domName WebGLRenderingContext.uniformMatrix3fv */ 19710 /** @domName WebGLRenderingContext.uniformMatrix3fv; @docsEditable true */
19711 void uniformMatrix3fv(WebGLUniformLocation location, bool transpose, Float32Ar ray array) native; 19711 void uniformMatrix3fv(WebGLUniformLocation location, bool transpose, Float32Ar ray array) native;
19712 19712
19713 /** @domName WebGLRenderingContext.uniformMatrix4fv */ 19713 /** @domName WebGLRenderingContext.uniformMatrix4fv; @docsEditable true */
19714 void uniformMatrix4fv(WebGLUniformLocation location, bool transpose, Float32Ar ray array) native; 19714 void uniformMatrix4fv(WebGLUniformLocation location, bool transpose, Float32Ar ray array) native;
19715 19715
19716 /** @domName WebGLRenderingContext.useProgram */ 19716 /** @domName WebGLRenderingContext.useProgram; @docsEditable true */
19717 void useProgram(WebGLProgram program) native; 19717 void useProgram(WebGLProgram program) native;
19718 19718
19719 /** @domName WebGLRenderingContext.validateProgram */ 19719 /** @domName WebGLRenderingContext.validateProgram; @docsEditable true */
19720 void validateProgram(WebGLProgram program) native; 19720 void validateProgram(WebGLProgram program) native;
19721 19721
19722 /** @domName WebGLRenderingContext.vertexAttrib1f */ 19722 /** @domName WebGLRenderingContext.vertexAttrib1f; @docsEditable true */
19723 void vertexAttrib1f(int indx, num x) native; 19723 void vertexAttrib1f(int indx, num x) native;
19724 19724
19725 /** @domName WebGLRenderingContext.vertexAttrib1fv */ 19725 /** @domName WebGLRenderingContext.vertexAttrib1fv; @docsEditable true */
19726 void vertexAttrib1fv(int indx, Float32Array values) native; 19726 void vertexAttrib1fv(int indx, Float32Array values) native;
19727 19727
19728 /** @domName WebGLRenderingContext.vertexAttrib2f */ 19728 /** @domName WebGLRenderingContext.vertexAttrib2f; @docsEditable true */
19729 void vertexAttrib2f(int indx, num x, num y) native; 19729 void vertexAttrib2f(int indx, num x, num y) native;
19730 19730
19731 /** @domName WebGLRenderingContext.vertexAttrib2fv */ 19731 /** @domName WebGLRenderingContext.vertexAttrib2fv; @docsEditable true */
19732 void vertexAttrib2fv(int indx, Float32Array values) native; 19732 void vertexAttrib2fv(int indx, Float32Array values) native;
19733 19733
19734 /** @domName WebGLRenderingContext.vertexAttrib3f */ 19734 /** @domName WebGLRenderingContext.vertexAttrib3f; @docsEditable true */
19735 void vertexAttrib3f(int indx, num x, num y, num z) native; 19735 void vertexAttrib3f(int indx, num x, num y, num z) native;
19736 19736
19737 /** @domName WebGLRenderingContext.vertexAttrib3fv */ 19737 /** @domName WebGLRenderingContext.vertexAttrib3fv; @docsEditable true */
19738 void vertexAttrib3fv(int indx, Float32Array values) native; 19738 void vertexAttrib3fv(int indx, Float32Array values) native;
19739 19739
19740 /** @domName WebGLRenderingContext.vertexAttrib4f */ 19740 /** @domName WebGLRenderingContext.vertexAttrib4f; @docsEditable true */
19741 void vertexAttrib4f(int indx, num x, num y, num z, num w) native; 19741 void vertexAttrib4f(int indx, num x, num y, num z, num w) native;
19742 19742
19743 /** @domName WebGLRenderingContext.vertexAttrib4fv */ 19743 /** @domName WebGLRenderingContext.vertexAttrib4fv; @docsEditable true */
19744 void vertexAttrib4fv(int indx, Float32Array values) native; 19744 void vertexAttrib4fv(int indx, Float32Array values) native;
19745 19745
19746 /** @domName WebGLRenderingContext.vertexAttribPointer */ 19746 /** @domName WebGLRenderingContext.vertexAttribPointer; @docsEditable true */
19747 void vertexAttribPointer(int indx, int size, int type, bool normalized, int st ride, int offset) native; 19747 void vertexAttribPointer(int indx, int size, int type, bool normalized, int st ride, int offset) native;
19748 19748
19749 /** @domName WebGLRenderingContext.viewport */ 19749 /** @domName WebGLRenderingContext.viewport; @docsEditable true */
19750 void viewport(int x, int y, int width, int height) native; 19750 void viewport(int x, int y, int width, int height) native;
19751 } 19751 }
19752 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19752 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19753 // for details. All rights reserved. Use of this source code is governed by a 19753 // for details. All rights reserved. Use of this source code is governed by a
19754 // BSD-style license that can be found in the LICENSE file. 19754 // BSD-style license that can be found in the LICENSE file.
19755 19755
19756 19756
19757 /// @domName WebGLShader 19757 /// @domName WebGLShader; @docsEditable true
19758 class WebGLShader native "*WebGLShader" { 19758 class WebGLShader native "*WebGLShader" {
19759 } 19759 }
19760 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19760 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19761 // for details. All rights reserved. Use of this source code is governed by a 19761 // for details. All rights reserved. Use of this source code is governed by a
19762 // BSD-style license that can be found in the LICENSE file. 19762 // BSD-style license that can be found in the LICENSE file.
19763 19763
19764 19764
19765 /// @domName WebGLShaderPrecisionFormat 19765 /// @domName WebGLShaderPrecisionFormat; @docsEditable true
19766 class WebGLShaderPrecisionFormat native "*WebGLShaderPrecisionFormat" { 19766 class WebGLShaderPrecisionFormat native "*WebGLShaderPrecisionFormat" {
19767 19767
19768 /** @domName WebGLShaderPrecisionFormat.precision */ 19768 /** @domName WebGLShaderPrecisionFormat.precision; @docsEditable true */
19769 final int precision; 19769 final int precision;
19770 19770
19771 /** @domName WebGLShaderPrecisionFormat.rangeMax */ 19771 /** @domName WebGLShaderPrecisionFormat.rangeMax; @docsEditable true */
19772 final int rangeMax; 19772 final int rangeMax;
19773 19773
19774 /** @domName WebGLShaderPrecisionFormat.rangeMin */ 19774 /** @domName WebGLShaderPrecisionFormat.rangeMin; @docsEditable true */
19775 final int rangeMin; 19775 final int rangeMin;
19776 } 19776 }
19777 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19777 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19778 // for details. All rights reserved. Use of this source code is governed by a 19778 // for details. All rights reserved. Use of this source code is governed by a
19779 // BSD-style license that can be found in the LICENSE file. 19779 // BSD-style license that can be found in the LICENSE file.
19780 19780
19781 19781
19782 /// @domName WebGLTexture 19782 /// @domName WebGLTexture; @docsEditable true
19783 class WebGLTexture native "*WebGLTexture" { 19783 class WebGLTexture native "*WebGLTexture" {
19784 } 19784 }
19785 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19785 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19786 // for details. All rights reserved. Use of this source code is governed by a 19786 // for details. All rights reserved. Use of this source code is governed by a
19787 // BSD-style license that can be found in the LICENSE file. 19787 // BSD-style license that can be found in the LICENSE file.
19788 19788
19789 19789
19790 /// @domName WebGLUniformLocation 19790 /// @domName WebGLUniformLocation; @docsEditable true
19791 class WebGLUniformLocation native "*WebGLUniformLocation" { 19791 class WebGLUniformLocation native "*WebGLUniformLocation" {
19792 } 19792 }
19793 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19793 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19794 // for details. All rights reserved. Use of this source code is governed by a 19794 // for details. All rights reserved. Use of this source code is governed by a
19795 // BSD-style license that can be found in the LICENSE file. 19795 // BSD-style license that can be found in the LICENSE file.
19796 19796
19797 19797
19798 /// @domName WebGLVertexArrayObjectOES 19798 /// @domName WebGLVertexArrayObjectOES; @docsEditable true
19799 class WebGLVertexArrayObjectOES native "*WebGLVertexArrayObjectOES" { 19799 class WebGLVertexArrayObjectOES native "*WebGLVertexArrayObjectOES" {
19800 } 19800 }
19801 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19801 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19802 // for details. All rights reserved. Use of this source code is governed by a 19802 // for details. All rights reserved. Use of this source code is governed by a
19803 // BSD-style license that can be found in the LICENSE file. 19803 // BSD-style license that can be found in the LICENSE file.
19804 19804
19805 19805
19806 /// @domName WebKitCSSFilterValue 19806 /// @domName WebKitCSSFilterValue; @docsEditable true
19807 class WebKitCSSFilterValue extends _CSSValueList native "*WebKitCSSFilterValue" { 19807 class WebKitCSSFilterValue extends _CSSValueList native "*WebKitCSSFilterValue" {
19808 19808
19809 static const int CSS_FILTER_BLUR = 10; 19809 static const int CSS_FILTER_BLUR = 10;
19810 19810
19811 static const int CSS_FILTER_BRIGHTNESS = 8; 19811 static const int CSS_FILTER_BRIGHTNESS = 8;
19812 19812
19813 static const int CSS_FILTER_CONTRAST = 9; 19813 static const int CSS_FILTER_CONTRAST = 9;
19814 19814
19815 static const int CSS_FILTER_CUSTOM = 12; 19815 static const int CSS_FILTER_CUSTOM = 12;
19816 19816
19817 static const int CSS_FILTER_DROP_SHADOW = 11; 19817 static const int CSS_FILTER_DROP_SHADOW = 11;
19818 19818
19819 static const int CSS_FILTER_GRAYSCALE = 2; 19819 static const int CSS_FILTER_GRAYSCALE = 2;
19820 19820
19821 static const int CSS_FILTER_HUE_ROTATE = 5; 19821 static const int CSS_FILTER_HUE_ROTATE = 5;
19822 19822
19823 static const int CSS_FILTER_INVERT = 6; 19823 static const int CSS_FILTER_INVERT = 6;
19824 19824
19825 static const int CSS_FILTER_OPACITY = 7; 19825 static const int CSS_FILTER_OPACITY = 7;
19826 19826
19827 static const int CSS_FILTER_REFERENCE = 1; 19827 static const int CSS_FILTER_REFERENCE = 1;
19828 19828
19829 static const int CSS_FILTER_SATURATE = 4; 19829 static const int CSS_FILTER_SATURATE = 4;
19830 19830
19831 static const int CSS_FILTER_SEPIA = 3; 19831 static const int CSS_FILTER_SEPIA = 3;
19832 19832
19833 /** @domName WebKitCSSFilterValue.operationType */ 19833 /** @domName WebKitCSSFilterValue.operationType; @docsEditable true */
19834 final int operationType; 19834 final int operationType;
19835 } 19835 }
19836 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19836 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19837 // for details. All rights reserved. Use of this source code is governed by a 19837 // for details. All rights reserved. Use of this source code is governed by a
19838 // BSD-style license that can be found in the LICENSE file. 19838 // BSD-style license that can be found in the LICENSE file.
19839 19839
19840 19840
19841 /// @domName WebKitNamedFlow 19841 /// @domName WebKitNamedFlow; @docsEditable true
19842 class WebKitNamedFlow extends EventTarget native "*WebKitNamedFlow" { 19842 class WebKitNamedFlow extends EventTarget native "*WebKitNamedFlow" {
19843 19843
19844 /** @domName WebKitNamedFlow.firstEmptyRegionIndex */ 19844 /** @domName WebKitNamedFlow.firstEmptyRegionIndex; @docsEditable true */
19845 final int firstEmptyRegionIndex; 19845 final int firstEmptyRegionIndex;
19846 19846
19847 /** @domName WebKitNamedFlow.name */ 19847 /** @domName WebKitNamedFlow.name; @docsEditable true */
19848 final String name; 19848 final String name;
19849 19849
19850 /** @domName WebKitNamedFlow.overset */ 19850 /** @domName WebKitNamedFlow.overset; @docsEditable true */
19851 final bool overset; 19851 final bool overset;
19852 19852
19853 /** @domName WebKitNamedFlow.addEventListener */ 19853 /** @domName WebKitNamedFlow.addEventListener; @docsEditable true */
19854 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 19854 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
19855 19855
19856 /** @domName WebKitNamedFlow.dispatchEvent */ 19856 /** @domName WebKitNamedFlow.dispatchEvent; @docsEditable true */
19857 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; 19857 bool $dom_dispatchEvent(Event event) native "dispatchEvent";
19858 19858
19859 /** @domName WebKitNamedFlow.getContent */ 19859 /** @domName WebKitNamedFlow.getContent; @docsEditable true */
19860 List<Node> getContent() native; 19860 List<Node> getContent() native;
19861 19861
19862 /** @domName WebKitNamedFlow.getRegions */ 19862 /** @domName WebKitNamedFlow.getRegions; @docsEditable true */
19863 List<Node> getRegions() native; 19863 List<Node> getRegions() native;
19864 19864
19865 /** @domName WebKitNamedFlow.getRegionsByContent */ 19865 /** @domName WebKitNamedFlow.getRegionsByContent; @docsEditable true */
19866 List<Node> getRegionsByContent(Node contentNode) native; 19866 List<Node> getRegionsByContent(Node contentNode) native;
19867 19867
19868 /** @domName WebKitNamedFlow.removeEventListener */ 19868 /** @domName WebKitNamedFlow.removeEventListener; @docsEditable true */
19869 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 19869 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
19870 } 19870 }
19871 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19871 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19872 // for details. All rights reserved. Use of this source code is governed by a 19872 // for details. All rights reserved. Use of this source code is governed by a
19873 // BSD-style license that can be found in the LICENSE file. 19873 // BSD-style license that can be found in the LICENSE file.
19874 19874
19875 // WARNING: Do not edit - generated code. 19875 // WARNING: Do not edit - generated code.
19876 19876
19877 19877
19878 class WebSocket extends EventTarget native "*WebSocket" { 19878 class WebSocket extends EventTarget native "*WebSocket" {
19879 factory WebSocket(String url) => _WebSocketFactoryProvider.createWebSocket(url ); 19879 factory WebSocket(String url) => _WebSocketFactoryProvider.createWebSocket(url );
19880 19880
19881 /** 19881 /**
19882 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 19882 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent; @docsEditable true
19883 */ 19883 */
19884 WebSocketEvents get on => 19884 WebSocketEvents get on =>
19885 new WebSocketEvents(this); 19885 new WebSocketEvents(this);
19886 19886
19887 static const int CLOSED = 3; 19887 static const int CLOSED = 3;
19888 19888
19889 static const int CLOSING = 2; 19889 static const int CLOSING = 2;
19890 19890
19891 static const int CONNECTING = 0; 19891 static const int CONNECTING = 0;
19892 19892
19893 static const int OPEN = 1; 19893 static const int OPEN = 1;
19894 19894
19895 /** @domName WebSocket.URL */ 19895 /** @domName WebSocket.URL; @docsEditable true */
19896 final String URL; 19896 final String URL;
19897 19897
19898 /** @domName WebSocket.binaryType */ 19898 /** @domName WebSocket.binaryType; @docsEditable true */
19899 String binaryType; 19899 String binaryType;
19900 19900
19901 /** @domName WebSocket.bufferedAmount */ 19901 /** @domName WebSocket.bufferedAmount; @docsEditable true */
19902 final int bufferedAmount; 19902 final int bufferedAmount;
19903 19903
19904 /** @domName WebSocket.extensions */ 19904 /** @domName WebSocket.extensions; @docsEditable true */
19905 final String extensions; 19905 final String extensions;
19906 19906
19907 /** @domName WebSocket.protocol */ 19907 /** @domName WebSocket.protocol; @docsEditable true */
19908 final String protocol; 19908 final String protocol;
19909 19909
19910 /** @domName WebSocket.readyState */ 19910 /** @domName WebSocket.readyState; @docsEditable true */
19911 final int readyState; 19911 final int readyState;
19912 19912
19913 /** @domName WebSocket.url */ 19913 /** @domName WebSocket.url; @docsEditable true */
19914 final String url; 19914 final String url;
19915 19915
19916 /** @domName WebSocket.addEventListener */ 19916 /** @domName WebSocket.addEventListener; @docsEditable true */
19917 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 19917 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
19918 19918
19919 /** @domName WebSocket.close */ 19919 /** @domName WebSocket.close; @docsEditable true */
19920 void close([int code, String reason]) native; 19920 void close([int code, String reason]) native;
19921 19921
19922 /** @domName WebSocket.dispatchEvent */ 19922 /** @domName WebSocket.dispatchEvent; @docsEditable true */
19923 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; 19923 bool $dom_dispatchEvent(Event evt) native "dispatchEvent";
19924 19924
19925 /** @domName WebSocket.removeEventListener */ 19925 /** @domName WebSocket.removeEventListener; @docsEditable true */
19926 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 19926 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
19927 19927
19928 /** @domName WebSocket.send */ 19928 /** @domName WebSocket.send; @docsEditable true */
19929 void send(data) native; 19929 void send(data) native;
19930 19930
19931 } 19931 }
19932 19932
19933 class WebSocketEvents extends Events { 19933 class WebSocketEvents extends Events {
19934 WebSocketEvents(EventTarget _ptr) : super(_ptr); 19934 WebSocketEvents(EventTarget _ptr) : super(_ptr);
19935 19935
19936 EventListenerList get close => this['close']; 19936 EventListenerList get close => this['close'];
19937 19937
19938 EventListenerList get error => this['error']; 19938 EventListenerList get error => this['error'];
19939 19939
19940 EventListenerList get message => this['message']; 19940 EventListenerList get message => this['message'];
19941 19941
19942 EventListenerList get open => this['open']; 19942 EventListenerList get open => this['open'];
19943 } 19943 }
19944 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19944 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19945 // for details. All rights reserved. Use of this source code is governed by a 19945 // for details. All rights reserved. Use of this source code is governed by a
19946 // BSD-style license that can be found in the LICENSE file. 19946 // BSD-style license that can be found in the LICENSE file.
19947 19947
19948 19948
19949 class WheelEvent extends MouseEvent native "*WheelEvent" { 19949 class WheelEvent extends MouseEvent native "*WheelEvent" {
19950 19950
19951 /** @domName WheelEvent.webkitDirectionInvertedFromDevice */ 19951 /** @domName WheelEvent.webkitDirectionInvertedFromDevice; @docsEditable true */
19952 final bool webkitDirectionInvertedFromDevice; 19952 final bool webkitDirectionInvertedFromDevice;
19953 19953
19954 /** @domName WheelEvent.initWebKitWheelEvent */ 19954 /** @domName WheelEvent.initWebKitWheelEvent; @docsEditable true */
19955 void initWebKitWheelEvent(int wheelDeltaX, int wheelDeltaY, LocalWindow view, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, b ool shiftKey, bool metaKey) native; 19955 void initWebKitWheelEvent(int wheelDeltaX, int wheelDeltaY, LocalWindow view, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, b ool shiftKey, bool metaKey) native;
19956 19956
19957 19957
19958 /** @domName WheelEvent.deltaY */ 19958 /** @domName WheelEvent.deltaY */
19959 num get deltaY { 19959 num get deltaY {
19960 if (JS('bool', '#.deltaY !== undefined', this)) { 19960 if (JS('bool', '#.deltaY !== undefined', this)) {
19961 // W3C WheelEvent 19961 // W3C WheelEvent
19962 return this._deltaY; 19962 return this._deltaY;
19963 } else if (JS('bool', '#.wheelDelta !== undefined', this)) { 19963 } else if (JS('bool', '#.wheelDelta !== undefined', this)) {
19964 // Chrome and IE 19964 // Chrome and IE
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
20026 num get _wheelDeltaX => JS('num', '#.wheelDeltaX', this); 20026 num get _wheelDeltaX => JS('num', '#.wheelDeltaX', this);
20027 num get _detail => JS('num', '#.detail', this); 20027 num get _detail => JS('num', '#.detail', this);
20028 int get _deltaMode => JS('int', '#.deltaMode', this); 20028 int get _deltaMode => JS('int', '#.deltaMode', this);
20029 20029
20030 } 20030 }
20031 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20031 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20032 // for details. All rights reserved. Use of this source code is governed by a 20032 // for details. All rights reserved. Use of this source code is governed by a
20033 // BSD-style license that can be found in the LICENSE file. 20033 // BSD-style license that can be found in the LICENSE file.
20034 20034
20035 20035
20036 /// @domName Worker 20036 /// @domName Worker; @docsEditable true
20037 class Worker extends AbstractWorker native "*Worker" { 20037 class Worker extends AbstractWorker native "*Worker" {
20038 20038
20039 factory Worker(String scriptUrl) => _WorkerFactoryProvider.createWorker(script Url); 20039 factory Worker(String scriptUrl) => _WorkerFactoryProvider.createWorker(script Url);
20040 20040
20041 /** 20041 /**
20042 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 20042 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent; @docsEditable true
20043 */ 20043 */
20044 WorkerEvents get on => 20044 WorkerEvents get on =>
20045 new WorkerEvents(this); 20045 new WorkerEvents(this);
20046 20046
20047 /** @domName Worker.postMessage */ 20047 /** @domName Worker.postMessage; @docsEditable true */
20048 void postMessage(/*SerializedScriptValue*/ message, [List messagePorts]) { 20048 void postMessage(/*SerializedScriptValue*/ message, [List messagePorts]) {
20049 if (?messagePorts) { 20049 if (?messagePorts) {
20050 var message_1 = _convertDartToNative_SerializedScriptValue(message); 20050 var message_1 = _convertDartToNative_SerializedScriptValue(message);
20051 _postMessage_1(message_1, messagePorts); 20051 _postMessage_1(message_1, messagePorts);
20052 return; 20052 return;
20053 } 20053 }
20054 var message_2 = _convertDartToNative_SerializedScriptValue(message); 20054 var message_2 = _convertDartToNative_SerializedScriptValue(message);
20055 _postMessage_2(message_2); 20055 _postMessage_2(message_2);
20056 return; 20056 return;
20057 } 20057 }
20058 void _postMessage_1(message, List messagePorts) native "postMessage"; 20058 void _postMessage_1(message, List messagePorts) native "postMessage";
20059 void _postMessage_2(message) native "postMessage"; 20059 void _postMessage_2(message) native "postMessage";
20060 20060
20061 /** @domName Worker.terminate */ 20061 /** @domName Worker.terminate; @docsEditable true */
20062 void terminate() native; 20062 void terminate() native;
20063 } 20063 }
20064 20064
20065 class WorkerEvents extends AbstractWorkerEvents { 20065 class WorkerEvents extends AbstractWorkerEvents {
20066 WorkerEvents(EventTarget _ptr) : super(_ptr); 20066 WorkerEvents(EventTarget _ptr) : super(_ptr);
20067 20067
20068 EventListenerList get message => this['message']; 20068 EventListenerList get message => this['message'];
20069 } 20069 }
20070 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20070 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20071 // for details. All rights reserved. Use of this source code is governed by a 20071 // for details. All rights reserved. Use of this source code is governed by a
20072 // BSD-style license that can be found in the LICENSE file. 20072 // BSD-style license that can be found in the LICENSE file.
20073 20073
20074 20074
20075 /// @domName WorkerContext 20075 /// @domName WorkerContext; @docsEditable true
20076 class WorkerContext extends EventTarget native "*WorkerContext" { 20076 class WorkerContext extends EventTarget native "*WorkerContext" {
20077 20077
20078 /** 20078 /**
20079 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 20079 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent; @docsEditable true
20080 */ 20080 */
20081 WorkerContextEvents get on => 20081 WorkerContextEvents get on =>
20082 new WorkerContextEvents(this); 20082 new WorkerContextEvents(this);
20083 20083
20084 static const int PERSISTENT = 1; 20084 static const int PERSISTENT = 1;
20085 20085
20086 static const int TEMPORARY = 0; 20086 static const int TEMPORARY = 0;
20087 20087
20088 /** @domName WorkerContext.indexedDB */ 20088 /** @domName WorkerContext.indexedDB; @docsEditable true */
20089 final IDBFactory indexedDB; 20089 final IDBFactory indexedDB;
20090 20090
20091 /** @domName WorkerContext.location */ 20091 /** @domName WorkerContext.location; @docsEditable true */
20092 final WorkerLocation location; 20092 final WorkerLocation location;
20093 20093
20094 /** @domName WorkerContext.navigator */ 20094 /** @domName WorkerContext.navigator; @docsEditable true */
20095 final WorkerNavigator navigator; 20095 final WorkerNavigator navigator;
20096 20096
20097 /** @domName WorkerContext.self */ 20097 /** @domName WorkerContext.self; @docsEditable true */
20098 final WorkerContext self; 20098 final WorkerContext self;
20099 20099
20100 /** @domName WorkerContext.webkitIndexedDB */ 20100 /** @domName WorkerContext.webkitIndexedDB; @docsEditable true */
20101 final IDBFactory webkitIndexedDB; 20101 final IDBFactory webkitIndexedDB;
20102 20102
20103 /** @domName WorkerContext.webkitNotifications */ 20103 /** @domName WorkerContext.webkitNotifications; @docsEditable true */
20104 final NotificationCenter webkitNotifications; 20104 final NotificationCenter webkitNotifications;
20105 20105
20106 /** @domName WorkerContext.addEventListener */ 20106 /** @domName WorkerContext.addEventListener; @docsEditable true */
20107 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 20107 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
20108 20108
20109 /** @domName WorkerContext.clearInterval */ 20109 /** @domName WorkerContext.clearInterval; @docsEditable true */
20110 void clearInterval(int handle) native; 20110 void clearInterval(int handle) native;
20111 20111
20112 /** @domName WorkerContext.clearTimeout */ 20112 /** @domName WorkerContext.clearTimeout; @docsEditable true */
20113 void clearTimeout(int handle) native; 20113 void clearTimeout(int handle) native;
20114 20114
20115 /** @domName WorkerContext.close */ 20115 /** @domName WorkerContext.close; @docsEditable true */
20116 void close() native; 20116 void close() native;
20117 20117
20118 /** @domName WorkerContext.dispatchEvent */ 20118 /** @domName WorkerContext.dispatchEvent; @docsEditable true */
20119 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; 20119 bool $dom_dispatchEvent(Event evt) native "dispatchEvent";
20120 20120
20121 /** @domName WorkerContext.importScripts */ 20121 /** @domName WorkerContext.importScripts; @docsEditable true */
20122 void importScripts() native; 20122 void importScripts() native;
20123 20123
20124 /** @domName WorkerContext.openDatabase */ 20124 /** @domName WorkerContext.openDatabase; @docsEditable true */
20125 Database openDatabase(String name, String version, String displayName, int est imatedSize, [DatabaseCallback creationCallback]) native; 20125 Database openDatabase(String name, String version, String displayName, int est imatedSize, [DatabaseCallback creationCallback]) native;
20126 20126
20127 /** @domName WorkerContext.openDatabaseSync */ 20127 /** @domName WorkerContext.openDatabaseSync; @docsEditable true */
20128 DatabaseSync openDatabaseSync(String name, String version, String displayName, int estimatedSize, [DatabaseCallback creationCallback]) native; 20128 DatabaseSync openDatabaseSync(String name, String version, String displayName, int estimatedSize, [DatabaseCallback creationCallback]) native;
20129 20129
20130 /** @domName WorkerContext.removeEventListener */ 20130 /** @domName WorkerContext.removeEventListener; @docsEditable true */
20131 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 20131 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
20132 20132
20133 /** @domName WorkerContext.setInterval */ 20133 /** @domName WorkerContext.setInterval; @docsEditable true */
20134 int setInterval(TimeoutHandler handler, int timeout) native; 20134 int setInterval(TimeoutHandler handler, int timeout) native;
20135 20135
20136 /** @domName WorkerContext.setTimeout */ 20136 /** @domName WorkerContext.setTimeout; @docsEditable true */
20137 int setTimeout(TimeoutHandler handler, int timeout) native; 20137 int setTimeout(TimeoutHandler handler, int timeout) native;
20138 20138
20139 /** @domName WorkerContext.webkitRequestFileSystem */ 20139 /** @domName WorkerContext.webkitRequestFileSystem; @docsEditable true */
20140 void webkitRequestFileSystem(int type, int size, [FileSystemCallback successCa llback, ErrorCallback errorCallback]) native; 20140 void webkitRequestFileSystem(int type, int size, [FileSystemCallback successCa llback, ErrorCallback errorCallback]) native;
20141 20141
20142 /** @domName WorkerContext.webkitRequestFileSystemSync */ 20142 /** @domName WorkerContext.webkitRequestFileSystemSync; @docsEditable true */
20143 DOMFileSystemSync webkitRequestFileSystemSync(int type, int size) native; 20143 DOMFileSystemSync webkitRequestFileSystemSync(int type, int size) native;
20144 20144
20145 /** @domName WorkerContext.webkitResolveLocalFileSystemSyncURL */ 20145 /** @domName WorkerContext.webkitResolveLocalFileSystemSyncURL; @docsEditable true */
20146 EntrySync webkitResolveLocalFileSystemSyncURL(String url) native; 20146 EntrySync webkitResolveLocalFileSystemSyncURL(String url) native;
20147 20147
20148 /** @domName WorkerContext.webkitResolveLocalFileSystemURL */ 20148 /** @domName WorkerContext.webkitResolveLocalFileSystemURL; @docsEditable true */
20149 void webkitResolveLocalFileSystemURL(String url, EntryCallback successCallback , [ErrorCallback errorCallback]) native; 20149 void webkitResolveLocalFileSystemURL(String url, EntryCallback successCallback , [ErrorCallback errorCallback]) native;
20150 } 20150 }
20151 20151
20152 class WorkerContextEvents extends Events { 20152 class WorkerContextEvents extends Events {
20153 WorkerContextEvents(EventTarget _ptr) : super(_ptr); 20153 WorkerContextEvents(EventTarget _ptr) : super(_ptr);
20154 20154
20155 EventListenerList get error => this['error']; 20155 EventListenerList get error => this['error'];
20156 } 20156 }
20157 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20157 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20158 // for details. All rights reserved. Use of this source code is governed by a 20158 // for details. All rights reserved. Use of this source code is governed by a
20159 // BSD-style license that can be found in the LICENSE file. 20159 // BSD-style license that can be found in the LICENSE file.
20160 20160
20161 20161
20162 /// @domName WorkerLocation 20162 /// @domName WorkerLocation; @docsEditable true
20163 class WorkerLocation native "*WorkerLocation" { 20163 class WorkerLocation native "*WorkerLocation" {
20164 20164
20165 /** @domName WorkerLocation.hash */ 20165 /** @domName WorkerLocation.hash; @docsEditable true */
20166 final String hash; 20166 final String hash;
20167 20167
20168 /** @domName WorkerLocation.host */ 20168 /** @domName WorkerLocation.host; @docsEditable true */
20169 final String host; 20169 final String host;
20170 20170
20171 /** @domName WorkerLocation.hostname */ 20171 /** @domName WorkerLocation.hostname; @docsEditable true */
20172 final String hostname; 20172 final String hostname;
20173 20173
20174 /** @domName WorkerLocation.href */ 20174 /** @domName WorkerLocation.href; @docsEditable true */
20175 final String href; 20175 final String href;
20176 20176
20177 /** @domName WorkerLocation.pathname */ 20177 /** @domName WorkerLocation.pathname; @docsEditable true */
20178 final String pathname; 20178 final String pathname;
20179 20179
20180 /** @domName WorkerLocation.port */ 20180 /** @domName WorkerLocation.port; @docsEditable true */
20181 final String port; 20181 final String port;
20182 20182
20183 /** @domName WorkerLocation.protocol */ 20183 /** @domName WorkerLocation.protocol; @docsEditable true */
20184 final String protocol; 20184 final String protocol;
20185 20185
20186 /** @domName WorkerLocation.search */ 20186 /** @domName WorkerLocation.search; @docsEditable true */
20187 final String search; 20187 final String search;
20188 20188
20189 /** @domName WorkerLocation.toString */ 20189 /** @domName WorkerLocation.toString; @docsEditable true */
20190 String toString() native; 20190 String toString() native;
20191 } 20191 }
20192 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20192 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20193 // for details. All rights reserved. Use of this source code is governed by a 20193 // for details. All rights reserved. Use of this source code is governed by a
20194 // BSD-style license that can be found in the LICENSE file. 20194 // BSD-style license that can be found in the LICENSE file.
20195 20195
20196 20196
20197 /// @domName WorkerNavigator 20197 /// @domName WorkerNavigator; @docsEditable true
20198 class WorkerNavigator native "*WorkerNavigator" { 20198 class WorkerNavigator native "*WorkerNavigator" {
20199 20199
20200 /** @domName WorkerNavigator.appName */ 20200 /** @domName WorkerNavigator.appName; @docsEditable true */
20201 final String appName; 20201 final String appName;
20202 20202
20203 /** @domName WorkerNavigator.appVersion */ 20203 /** @domName WorkerNavigator.appVersion; @docsEditable true */
20204 final String appVersion; 20204 final String appVersion;
20205 20205
20206 /** @domName WorkerNavigator.onLine */ 20206 /** @domName WorkerNavigator.onLine; @docsEditable true */
20207 final bool onLine; 20207 final bool onLine;
20208 20208
20209 /** @domName WorkerNavigator.platform */ 20209 /** @domName WorkerNavigator.platform; @docsEditable true */
20210 final String platform; 20210 final String platform;
20211 20211
20212 /** @domName WorkerNavigator.userAgent */ 20212 /** @domName WorkerNavigator.userAgent; @docsEditable true */
20213 final String userAgent; 20213 final String userAgent;
20214 } 20214 }
20215 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20215 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20216 // for details. All rights reserved. Use of this source code is governed by a 20216 // for details. All rights reserved. Use of this source code is governed by a
20217 // BSD-style license that can be found in the LICENSE file. 20217 // BSD-style license that can be found in the LICENSE file.
20218 20218
20219 20219
20220 /// @domName XMLSerializer 20220 /// @domName XMLSerializer; @docsEditable true
20221 class XMLSerializer native "*XMLSerializer" { 20221 class XMLSerializer native "*XMLSerializer" {
20222 20222
20223 factory XMLSerializer() => _XMLSerializerFactoryProvider.createXMLSerializer() ; 20223 factory XMLSerializer() => _XMLSerializerFactoryProvider.createXMLSerializer() ;
20224 20224
20225 /** @domName XMLSerializer.serializeToString */ 20225 /** @domName XMLSerializer.serializeToString; @docsEditable true */
20226 String serializeToString(Node node) native; 20226 String serializeToString(Node node) native;
20227 } 20227 }
20228 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20228 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20229 // for details. All rights reserved. Use of this source code is governed by a 20229 // for details. All rights reserved. Use of this source code is governed by a
20230 // BSD-style license that can be found in the LICENSE file. 20230 // BSD-style license that can be found in the LICENSE file.
20231 20231
20232 20232
20233 /// @domName XPathEvaluator 20233 /// @domName XPathEvaluator; @docsEditable true
20234 class XPathEvaluator native "*XPathEvaluator" { 20234 class XPathEvaluator native "*XPathEvaluator" {
20235 20235
20236 factory XPathEvaluator() => _XPathEvaluatorFactoryProvider.createXPathEvaluato r(); 20236 factory XPathEvaluator() => _XPathEvaluatorFactoryProvider.createXPathEvaluato r();
20237 20237
20238 /** @domName XPathEvaluator.createExpression */ 20238 /** @domName XPathEvaluator.createExpression; @docsEditable true */
20239 XPathExpression createExpression(String expression, XPathNSResolver resolver) native; 20239 XPathExpression createExpression(String expression, XPathNSResolver resolver) native;
20240 20240
20241 /** @domName XPathEvaluator.createNSResolver */ 20241 /** @domName XPathEvaluator.createNSResolver; @docsEditable true */
20242 XPathNSResolver createNSResolver(Node nodeResolver) native; 20242 XPathNSResolver createNSResolver(Node nodeResolver) native;
20243 20243
20244 /** @domName XPathEvaluator.evaluate */ 20244 /** @domName XPathEvaluator.evaluate; @docsEditable true */
20245 XPathResult evaluate(String expression, Node contextNode, XPathNSResolver reso lver, int type, XPathResult inResult) native; 20245 XPathResult evaluate(String expression, Node contextNode, XPathNSResolver reso lver, int type, XPathResult inResult) native;
20246 } 20246 }
20247 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20247 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20248 // for details. All rights reserved. Use of this source code is governed by a 20248 // for details. All rights reserved. Use of this source code is governed by a
20249 // BSD-style license that can be found in the LICENSE file. 20249 // BSD-style license that can be found in the LICENSE file.
20250 20250
20251 20251
20252 /// @domName XPathException 20252 /// @domName XPathException; @docsEditable true
20253 class XPathException native "*XPathException" { 20253 class XPathException native "*XPathException" {
20254 20254
20255 static const int INVALID_EXPRESSION_ERR = 51; 20255 static const int INVALID_EXPRESSION_ERR = 51;
20256 20256
20257 static const int TYPE_ERR = 52; 20257 static const int TYPE_ERR = 52;
20258 20258
20259 /** @domName XPathException.code */ 20259 /** @domName XPathException.code; @docsEditable true */
20260 final int code; 20260 final int code;
20261 20261
20262 /** @domName XPathException.message */ 20262 /** @domName XPathException.message; @docsEditable true */
20263 final String message; 20263 final String message;
20264 20264
20265 /** @domName XPathException.name */ 20265 /** @domName XPathException.name; @docsEditable true */
20266 final String name; 20266 final String name;
20267 20267
20268 /** @domName XPathException.toString */ 20268 /** @domName XPathException.toString; @docsEditable true */
20269 String toString() native; 20269 String toString() native;
20270 } 20270 }
20271 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20271 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20272 // for details. All rights reserved. Use of this source code is governed by a 20272 // for details. All rights reserved. Use of this source code is governed by a
20273 // BSD-style license that can be found in the LICENSE file. 20273 // BSD-style license that can be found in the LICENSE file.
20274 20274
20275 20275
20276 /// @domName XPathExpression 20276 /// @domName XPathExpression; @docsEditable true
20277 class XPathExpression native "*XPathExpression" { 20277 class XPathExpression native "*XPathExpression" {
20278 20278
20279 /** @domName XPathExpression.evaluate */ 20279 /** @domName XPathExpression.evaluate; @docsEditable true */
20280 XPathResult evaluate(Node contextNode, int type, XPathResult inResult) native; 20280 XPathResult evaluate(Node contextNode, int type, XPathResult inResult) native;
20281 } 20281 }
20282 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20282 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20283 // for details. All rights reserved. Use of this source code is governed by a 20283 // for details. All rights reserved. Use of this source code is governed by a
20284 // BSD-style license that can be found in the LICENSE file. 20284 // BSD-style license that can be found in the LICENSE file.
20285 20285
20286 20286
20287 /// @domName XPathNSResolver 20287 /// @domName XPathNSResolver; @docsEditable true
20288 class XPathNSResolver native "*XPathNSResolver" { 20288 class XPathNSResolver native "*XPathNSResolver" {
20289 20289
20290 /** @domName XPathNSResolver.lookupNamespaceURI */ 20290 /** @domName XPathNSResolver.lookupNamespaceURI; @docsEditable true */
20291 String lookupNamespaceURI(String prefix) native; 20291 String lookupNamespaceURI(String prefix) native;
20292 } 20292 }
20293 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20293 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20294 // for details. All rights reserved. Use of this source code is governed by a 20294 // for details. All rights reserved. Use of this source code is governed by a
20295 // BSD-style license that can be found in the LICENSE file. 20295 // BSD-style license that can be found in the LICENSE file.
20296 20296
20297 20297
20298 /// @domName XPathResult 20298 /// @domName XPathResult; @docsEditable true
20299 class XPathResult native "*XPathResult" { 20299 class XPathResult native "*XPathResult" {
20300 20300
20301 static const int ANY_TYPE = 0; 20301 static const int ANY_TYPE = 0;
20302 20302
20303 static const int ANY_UNORDERED_NODE_TYPE = 8; 20303 static const int ANY_UNORDERED_NODE_TYPE = 8;
20304 20304
20305 static const int BOOLEAN_TYPE = 3; 20305 static const int BOOLEAN_TYPE = 3;
20306 20306
20307 static const int FIRST_ORDERED_NODE_TYPE = 9; 20307 static const int FIRST_ORDERED_NODE_TYPE = 9;
20308 20308
20309 static const int NUMBER_TYPE = 1; 20309 static const int NUMBER_TYPE = 1;
20310 20310
20311 static const int ORDERED_NODE_ITERATOR_TYPE = 5; 20311 static const int ORDERED_NODE_ITERATOR_TYPE = 5;
20312 20312
20313 static const int ORDERED_NODE_SNAPSHOT_TYPE = 7; 20313 static const int ORDERED_NODE_SNAPSHOT_TYPE = 7;
20314 20314
20315 static const int STRING_TYPE = 2; 20315 static const int STRING_TYPE = 2;
20316 20316
20317 static const int UNORDERED_NODE_ITERATOR_TYPE = 4; 20317 static const int UNORDERED_NODE_ITERATOR_TYPE = 4;
20318 20318
20319 static const int UNORDERED_NODE_SNAPSHOT_TYPE = 6; 20319 static const int UNORDERED_NODE_SNAPSHOT_TYPE = 6;
20320 20320
20321 /** @domName XPathResult.booleanValue */ 20321 /** @domName XPathResult.booleanValue; @docsEditable true */
20322 final bool booleanValue; 20322 final bool booleanValue;
20323 20323
20324 /** @domName XPathResult.invalidIteratorState */ 20324 /** @domName XPathResult.invalidIteratorState; @docsEditable true */
20325 final bool invalidIteratorState; 20325 final bool invalidIteratorState;
20326 20326
20327 /** @domName XPathResult.numberValue */ 20327 /** @domName XPathResult.numberValue; @docsEditable true */
20328 final num numberValue; 20328 final num numberValue;
20329 20329
20330 /** @domName XPathResult.resultType */ 20330 /** @domName XPathResult.resultType; @docsEditable true */
20331 final int resultType; 20331 final int resultType;
20332 20332
20333 /** @domName XPathResult.singleNodeValue */ 20333 /** @domName XPathResult.singleNodeValue; @docsEditable true */
20334 final Node singleNodeValue; 20334 final Node singleNodeValue;
20335 20335
20336 /** @domName XPathResult.snapshotLength */ 20336 /** @domName XPathResult.snapshotLength; @docsEditable true */
20337 final int snapshotLength; 20337 final int snapshotLength;
20338 20338
20339 /** @domName XPathResult.stringValue */ 20339 /** @domName XPathResult.stringValue; @docsEditable true */
20340 final String stringValue; 20340 final String stringValue;
20341 20341
20342 /** @domName XPathResult.iterateNext */ 20342 /** @domName XPathResult.iterateNext; @docsEditable true */
20343 Node iterateNext() native; 20343 Node iterateNext() native;
20344 20344
20345 /** @domName XPathResult.snapshotItem */ 20345 /** @domName XPathResult.snapshotItem; @docsEditable true */
20346 Node snapshotItem(int index) native; 20346 Node snapshotItem(int index) native;
20347 } 20347 }
20348 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20348 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20349 // for details. All rights reserved. Use of this source code is governed by a 20349 // for details. All rights reserved. Use of this source code is governed by a
20350 // BSD-style license that can be found in the LICENSE file. 20350 // BSD-style license that can be found in the LICENSE file.
20351 20351
20352 20352
20353 /// @domName XSLTProcessor 20353 /// @domName XSLTProcessor; @docsEditable true
20354 class XSLTProcessor native "*XSLTProcessor" { 20354 class XSLTProcessor native "*XSLTProcessor" {
20355 20355
20356 factory XSLTProcessor() => _XSLTProcessorFactoryProvider.createXSLTProcessor() ; 20356 factory XSLTProcessor() => _XSLTProcessorFactoryProvider.createXSLTProcessor() ;
20357 20357
20358 /** @domName XSLTProcessor.clearParameters */ 20358 /** @domName XSLTProcessor.clearParameters; @docsEditable true */
20359 void clearParameters() native; 20359 void clearParameters() native;
20360 20360
20361 /** @domName XSLTProcessor.getParameter */ 20361 /** @domName XSLTProcessor.getParameter; @docsEditable true */
20362 String getParameter(String namespaceURI, String localName) native; 20362 String getParameter(String namespaceURI, String localName) native;
20363 20363
20364 /** @domName XSLTProcessor.importStylesheet */ 20364 /** @domName XSLTProcessor.importStylesheet; @docsEditable true */
20365 void importStylesheet(Node stylesheet) native; 20365 void importStylesheet(Node stylesheet) native;
20366 20366
20367 /** @domName XSLTProcessor.removeParameter */ 20367 /** @domName XSLTProcessor.removeParameter; @docsEditable true */
20368 void removeParameter(String namespaceURI, String localName) native; 20368 void removeParameter(String namespaceURI, String localName) native;
20369 20369
20370 /** @domName XSLTProcessor.reset */ 20370 /** @domName XSLTProcessor.reset; @docsEditable true */
20371 void reset() native; 20371 void reset() native;
20372 20372
20373 /** @domName XSLTProcessor.setParameter */ 20373 /** @domName XSLTProcessor.setParameter; @docsEditable true */
20374 void setParameter(String namespaceURI, String localName, String value) native; 20374 void setParameter(String namespaceURI, String localName, String value) native;
20375 20375
20376 /** @domName XSLTProcessor.transformToDocument */ 20376 /** @domName XSLTProcessor.transformToDocument; @docsEditable true */
20377 Document transformToDocument(Node source) native; 20377 Document transformToDocument(Node source) native;
20378 20378
20379 /** @domName XSLTProcessor.transformToFragment */ 20379 /** @domName XSLTProcessor.transformToFragment; @docsEditable true */
20380 DocumentFragment transformToFragment(Node source, Document docVal) native; 20380 DocumentFragment transformToFragment(Node source, Document docVal) native;
20381 } 20381 }
20382 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20382 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20383 // for details. All rights reserved. Use of this source code is governed by a 20383 // for details. All rights reserved. Use of this source code is governed by a
20384 // BSD-style license that can be found in the LICENSE file. 20384 // BSD-style license that can be found in the LICENSE file.
20385 20385
20386 20386
20387 class _ArrayBufferFactoryProvider { 20387 class _ArrayBufferFactoryProvider {
20388 static ArrayBuffer createArrayBuffer(int length) => 20388 static ArrayBuffer createArrayBuffer(int length) =>
20389 JS('ArrayBuffer', 'new ArrayBuffer(#)', length); 20389 JS('ArrayBuffer', 'new ArrayBuffer(#)', length);
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
20431 20431
20432 class _CSSMatrixFactoryProvider { 20432 class _CSSMatrixFactoryProvider {
20433 static CSSMatrix createCSSMatrix([String cssValue = '']) => 20433 static CSSMatrix createCSSMatrix([String cssValue = '']) =>
20434 JS('CSSMatrix', 'new WebKitCSSMatrix(#)', cssValue); 20434 JS('CSSMatrix', 'new WebKitCSSMatrix(#)', cssValue);
20435 } 20435 }
20436 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20436 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20437 // for details. All rights reserved. Use of this source code is governed by a 20437 // for details. All rights reserved. Use of this source code is governed by a
20438 // BSD-style license that can be found in the LICENSE file. 20438 // BSD-style license that can be found in the LICENSE file.
20439 20439
20440 20440
20441 /// @domName CSSRuleList 20441 /// @domName CSSRuleList; @docsEditable true
20442 class _CSSRuleList implements JavaScriptIndexingBehavior, List<CSSRule> native " *CSSRuleList" { 20442 class _CSSRuleList implements JavaScriptIndexingBehavior, List<CSSRule> native " *CSSRuleList" {
20443 20443
20444 /** @domName CSSRuleList.length */ 20444 /** @domName CSSRuleList.length; @docsEditable true */
20445 final int length; 20445 final int length;
20446 20446
20447 CSSRule operator[](int index) => JS("CSSRule", "#[#]", this, index); 20447 CSSRule operator[](int index) => JS("CSSRule", "#[#]", this, index);
20448 20448
20449 void operator[]=(int index, CSSRule value) { 20449 void operator[]=(int index, CSSRule value) {
20450 throw new UnsupportedError("Cannot assign element of immutable List."); 20450 throw new UnsupportedError("Cannot assign element of immutable List.");
20451 } 20451 }
20452 // -- start List<CSSRule> mixins. 20452 // -- start List<CSSRule> mixins.
20453 // CSSRule is the element type. 20453 // CSSRule is the element type.
20454 20454
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
20522 20522
20523 void insertRange(int start, int rangeLength, [CSSRule initialValue]) { 20523 void insertRange(int start, int rangeLength, [CSSRule initialValue]) {
20524 throw new UnsupportedError("Cannot insertRange on immutable List."); 20524 throw new UnsupportedError("Cannot insertRange on immutable List.");
20525 } 20525 }
20526 20526
20527 List<CSSRule> getRange(int start, int rangeLength) => 20527 List<CSSRule> getRange(int start, int rangeLength) =>
20528 _Lists.getRange(this, start, rangeLength, <CSSRule>[]); 20528 _Lists.getRange(this, start, rangeLength, <CSSRule>[]);
20529 20529
20530 // -- end List<CSSRule> mixins. 20530 // -- end List<CSSRule> mixins.
20531 20531
20532 /** @domName CSSRuleList.item */ 20532 /** @domName CSSRuleList.item; @docsEditable true */
20533 CSSRule item(int index) native; 20533 CSSRule item(int index) native;
20534 } 20534 }
20535 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20535 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20536 // for details. All rights reserved. Use of this source code is governed by a 20536 // for details. All rights reserved. Use of this source code is governed by a
20537 // BSD-style license that can be found in the LICENSE file. 20537 // BSD-style license that can be found in the LICENSE file.
20538 20538
20539 20539
20540 /// @domName CSSValueList 20540 /// @domName CSSValueList; @docsEditable true
20541 class _CSSValueList extends CSSValue implements List<CSSValue>, JavaScriptIndexi ngBehavior native "*CSSValueList" { 20541 class _CSSValueList extends CSSValue implements List<CSSValue>, JavaScriptIndexi ngBehavior native "*CSSValueList" {
20542 20542
20543 /** @domName CSSValueList.length */ 20543 /** @domName CSSValueList.length; @docsEditable true */
20544 final int length; 20544 final int length;
20545 20545
20546 CSSValue operator[](int index) => JS("CSSValue", "#[#]", this, index); 20546 CSSValue operator[](int index) => JS("CSSValue", "#[#]", this, index);
20547 20547
20548 void operator[]=(int index, CSSValue value) { 20548 void operator[]=(int index, CSSValue value) {
20549 throw new UnsupportedError("Cannot assign element of immutable List."); 20549 throw new UnsupportedError("Cannot assign element of immutable List.");
20550 } 20550 }
20551 // -- start List<CSSValue> mixins. 20551 // -- start List<CSSValue> mixins.
20552 // CSSValue is the element type. 20552 // CSSValue is the element type.
20553 20553
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
20621 20621
20622 void insertRange(int start, int rangeLength, [CSSValue initialValue]) { 20622 void insertRange(int start, int rangeLength, [CSSValue initialValue]) {
20623 throw new UnsupportedError("Cannot insertRange on immutable List."); 20623 throw new UnsupportedError("Cannot insertRange on immutable List.");
20624 } 20624 }
20625 20625
20626 List<CSSValue> getRange(int start, int rangeLength) => 20626 List<CSSValue> getRange(int start, int rangeLength) =>
20627 _Lists.getRange(this, start, rangeLength, <CSSValue>[]); 20627 _Lists.getRange(this, start, rangeLength, <CSSValue>[]);
20628 20628
20629 // -- end List<CSSValue> mixins. 20629 // -- end List<CSSValue> mixins.
20630 20630
20631 /** @domName CSSValueList.item */ 20631 /** @domName CSSValueList.item; @docsEditable true */
20632 CSSValue item(int index) native; 20632 CSSValue item(int index) native;
20633 } 20633 }
20634 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20634 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20635 // for details. All rights reserved. Use of this source code is governed by a 20635 // for details. All rights reserved. Use of this source code is governed by a
20636 // BSD-style license that can be found in the LICENSE file. 20636 // BSD-style license that can be found in the LICENSE file.
20637 20637
20638 20638
20639 /// @domName ClientRectList 20639 /// @domName ClientRectList; @docsEditable true
20640 class _ClientRectList implements JavaScriptIndexingBehavior, List<ClientRect> na tive "*ClientRectList" { 20640 class _ClientRectList implements JavaScriptIndexingBehavior, List<ClientRect> na tive "*ClientRectList" {
20641 20641
20642 /** @domName ClientRectList.length */ 20642 /** @domName ClientRectList.length; @docsEditable true */
20643 final int length; 20643 final int length;
20644 20644
20645 ClientRect operator[](int index) => JS("ClientRect", "#[#]", this, index); 20645 ClientRect operator[](int index) => JS("ClientRect", "#[#]", this, index);
20646 20646
20647 void operator[]=(int index, ClientRect value) { 20647 void operator[]=(int index, ClientRect value) {
20648 throw new UnsupportedError("Cannot assign element of immutable List."); 20648 throw new UnsupportedError("Cannot assign element of immutable List.");
20649 } 20649 }
20650 // -- start List<ClientRect> mixins. 20650 // -- start List<ClientRect> mixins.
20651 // ClientRect is the element type. 20651 // ClientRect is the element type.
20652 20652
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
20720 20720
20721 void insertRange(int start, int rangeLength, [ClientRect initialValue]) { 20721 void insertRange(int start, int rangeLength, [ClientRect initialValue]) {
20722 throw new UnsupportedError("Cannot insertRange on immutable List."); 20722 throw new UnsupportedError("Cannot insertRange on immutable List.");
20723 } 20723 }
20724 20724
20725 List<ClientRect> getRange(int start, int rangeLength) => 20725 List<ClientRect> getRange(int start, int rangeLength) =>
20726 _Lists.getRange(this, start, rangeLength, <ClientRect>[]); 20726 _Lists.getRange(this, start, rangeLength, <ClientRect>[]);
20727 20727
20728 // -- end List<ClientRect> mixins. 20728 // -- end List<ClientRect> mixins.
20729 20729
20730 /** @domName ClientRectList.item */ 20730 /** @domName ClientRectList.item; @docsEditable true */
20731 ClientRect item(int index) native; 20731 ClientRect item(int index) native;
20732 } 20732 }
20733 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20733 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20734 // for details. All rights reserved. Use of this source code is governed by a 20734 // for details. All rights reserved. Use of this source code is governed by a
20735 // BSD-style license that can be found in the LICENSE file. 20735 // BSD-style license that can be found in the LICENSE file.
20736 20736
20737 20737
20738 class _DOMParserFactoryProvider { 20738 class _DOMParserFactoryProvider {
20739 static DOMParser createDOMParser() => 20739 static DOMParser createDOMParser() =>
20740 JS('DOMParser', 'new DOMParser()' ); 20740 JS('DOMParser', 'new DOMParser()' );
20741 } 20741 }
20742 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20742 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20743 // for details. All rights reserved. Use of this source code is governed by a 20743 // for details. All rights reserved. Use of this source code is governed by a
20744 // BSD-style license that can be found in the LICENSE file. 20744 // BSD-style license that can be found in the LICENSE file.
20745 20745
20746 20746
20747 /// @domName DOMStringList 20747 /// @domName DOMStringList; @docsEditable true
20748 class _DOMStringList implements JavaScriptIndexingBehavior, List<String> native "*DOMStringList" { 20748 class _DOMStringList implements JavaScriptIndexingBehavior, List<String> native "*DOMStringList" {
20749 20749
20750 /** @domName DOMStringList.length */ 20750 /** @domName DOMStringList.length; @docsEditable true */
20751 final int length; 20751 final int length;
20752 20752
20753 String operator[](int index) => JS("String", "#[#]", this, index); 20753 String operator[](int index) => JS("String", "#[#]", this, index);
20754 20754
20755 void operator[]=(int index, String value) { 20755 void operator[]=(int index, String value) {
20756 throw new UnsupportedError("Cannot assign element of immutable List."); 20756 throw new UnsupportedError("Cannot assign element of immutable List.");
20757 } 20757 }
20758 // -- start List<String> mixins. 20758 // -- start List<String> mixins.
20759 // String is the element type. 20759 // String is the element type.
20760 20760
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
20828 20828
20829 void insertRange(int start, int rangeLength, [String initialValue]) { 20829 void insertRange(int start, int rangeLength, [String initialValue]) {
20830 throw new UnsupportedError("Cannot insertRange on immutable List."); 20830 throw new UnsupportedError("Cannot insertRange on immutable List.");
20831 } 20831 }
20832 20832
20833 List<String> getRange(int start, int rangeLength) => 20833 List<String> getRange(int start, int rangeLength) =>
20834 _Lists.getRange(this, start, rangeLength, <String>[]); 20834 _Lists.getRange(this, start, rangeLength, <String>[]);
20835 20835
20836 // -- end List<String> mixins. 20836 // -- end List<String> mixins.
20837 20837
20838 /** @domName DOMStringList.contains */ 20838 /** @domName DOMStringList.contains; @docsEditable true */
20839 bool contains(String string) native; 20839 bool contains(String string) native;
20840 20840
20841 /** @domName DOMStringList.item */ 20841 /** @domName DOMStringList.item; @docsEditable true */
20842 String item(int index) native; 20842 String item(int index) native;
20843 } 20843 }
20844 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20844 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20845 // for details. All rights reserved. Use of this source code is governed by a 20845 // for details. All rights reserved. Use of this source code is governed by a
20846 // BSD-style license that can be found in the LICENSE file. 20846 // BSD-style license that can be found in the LICENSE file.
20847 20847
20848 20848
20849 class _DataViewFactoryProvider { 20849 class _DataViewFactoryProvider {
20850 static DataView createDataView( 20850 static DataView createDataView(
20851 ArrayBuffer buffer, [int byteOffset = null, int byteLength = null]) { 20851 ArrayBuffer buffer, [int byteOffset = null, int byteLength = null]) {
20852 if (byteOffset == null) { 20852 if (byteOffset == null) {
20853 return JS('DataView', 'new DataView(#)', buffer); 20853 return JS('DataView', 'new DataView(#)', buffer);
20854 } 20854 }
20855 if (byteLength == null) { 20855 if (byteLength == null) {
20856 return JS('DataView', 'new DataView(#,#)', buffer, byteOffset); 20856 return JS('DataView', 'new DataView(#,#)', buffer, byteOffset);
20857 } 20857 }
20858 return JS('DataView', 'new DataView(#,#,#)', buffer, byteOffset, byteLength) ; 20858 return JS('DataView', 'new DataView(#,#,#)', buffer, byteOffset, byteLength) ;
20859 } 20859 }
20860 } 20860 }
20861 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20861 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20862 // for details. All rights reserved. Use of this source code is governed by a 20862 // for details. All rights reserved. Use of this source code is governed by a
20863 // BSD-style license that can be found in the LICENSE file. 20863 // BSD-style license that can be found in the LICENSE file.
20864 20864
20865 20865
20866 /// @domName EntryArray 20866 /// @domName EntryArray; @docsEditable true
20867 class _EntryArray implements JavaScriptIndexingBehavior, List<Entry> native "*En tryArray" { 20867 class _EntryArray implements JavaScriptIndexingBehavior, List<Entry> native "*En tryArray" {
20868 20868
20869 /** @domName EntryArray.length */ 20869 /** @domName EntryArray.length; @docsEditable true */
20870 final int length; 20870 final int length;
20871 20871
20872 Entry operator[](int index) => JS("Entry", "#[#]", this, index); 20872 Entry operator[](int index) => JS("Entry", "#[#]", this, index);
20873 20873
20874 void operator[]=(int index, Entry value) { 20874 void operator[]=(int index, Entry value) {
20875 throw new UnsupportedError("Cannot assign element of immutable List."); 20875 throw new UnsupportedError("Cannot assign element of immutable List.");
20876 } 20876 }
20877 // -- start List<Entry> mixins. 20877 // -- start List<Entry> mixins.
20878 // Entry is the element type. 20878 // Entry is the element type.
20879 20879
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
20947 20947
20948 void insertRange(int start, int rangeLength, [Entry initialValue]) { 20948 void insertRange(int start, int rangeLength, [Entry initialValue]) {
20949 throw new UnsupportedError("Cannot insertRange on immutable List."); 20949 throw new UnsupportedError("Cannot insertRange on immutable List.");
20950 } 20950 }
20951 20951
20952 List<Entry> getRange(int start, int rangeLength) => 20952 List<Entry> getRange(int start, int rangeLength) =>
20953 _Lists.getRange(this, start, rangeLength, <Entry>[]); 20953 _Lists.getRange(this, start, rangeLength, <Entry>[]);
20954 20954
20955 // -- end List<Entry> mixins. 20955 // -- end List<Entry> mixins.
20956 20956
20957 /** @domName EntryArray.item */ 20957 /** @domName EntryArray.item; @docsEditable true */
20958 Entry item(int index) native; 20958 Entry item(int index) native;
20959 } 20959 }
20960 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20960 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20961 // for details. All rights reserved. Use of this source code is governed by a 20961 // for details. All rights reserved. Use of this source code is governed by a
20962 // BSD-style license that can be found in the LICENSE file. 20962 // BSD-style license that can be found in the LICENSE file.
20963 20963
20964 20964
20965 /// @domName EntryArraySync 20965 /// @domName EntryArraySync; @docsEditable true
20966 class _EntryArraySync implements JavaScriptIndexingBehavior, List<EntrySync> nat ive "*EntryArraySync" { 20966 class _EntryArraySync implements JavaScriptIndexingBehavior, List<EntrySync> nat ive "*EntryArraySync" {
20967 20967
20968 /** @domName EntryArraySync.length */ 20968 /** @domName EntryArraySync.length; @docsEditable true */
20969 final int length; 20969 final int length;
20970 20970
20971 EntrySync operator[](int index) => JS("EntrySync", "#[#]", this, index); 20971 EntrySync operator[](int index) => JS("EntrySync", "#[#]", this, index);
20972 20972
20973 void operator[]=(int index, EntrySync value) { 20973 void operator[]=(int index, EntrySync value) {
20974 throw new UnsupportedError("Cannot assign element of immutable List."); 20974 throw new UnsupportedError("Cannot assign element of immutable List.");
20975 } 20975 }
20976 // -- start List<EntrySync> mixins. 20976 // -- start List<EntrySync> mixins.
20977 // EntrySync is the element type. 20977 // EntrySync is the element type.
20978 20978
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
21046 21046
21047 void insertRange(int start, int rangeLength, [EntrySync initialValue]) { 21047 void insertRange(int start, int rangeLength, [EntrySync initialValue]) {
21048 throw new UnsupportedError("Cannot insertRange on immutable List."); 21048 throw new UnsupportedError("Cannot insertRange on immutable List.");
21049 } 21049 }
21050 21050
21051 List<EntrySync> getRange(int start, int rangeLength) => 21051 List<EntrySync> getRange(int start, int rangeLength) =>
21052 _Lists.getRange(this, start, rangeLength, <EntrySync>[]); 21052 _Lists.getRange(this, start, rangeLength, <EntrySync>[]);
21053 21053
21054 // -- end List<EntrySync> mixins. 21054 // -- end List<EntrySync> mixins.
21055 21055
21056 /** @domName EntryArraySync.item */ 21056 /** @domName EntryArraySync.item; @docsEditable true */
21057 EntrySync item(int index) native; 21057 EntrySync item(int index) native;
21058 } 21058 }
21059 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21059 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21060 // for details. All rights reserved. Use of this source code is governed by a 21060 // for details. All rights reserved. Use of this source code is governed by a
21061 // BSD-style license that can be found in the LICENSE file. 21061 // BSD-style license that can be found in the LICENSE file.
21062 21062
21063 21063
21064 class _EventSourceFactoryProvider { 21064 class _EventSourceFactoryProvider {
21065 static EventSource createEventSource(String scriptUrl) => 21065 static EventSource createEventSource(String scriptUrl) =>
21066 JS('EventSource', 'new EventSource(#)', scriptUrl); 21066 JS('EventSource', 'new EventSource(#)', scriptUrl);
21067 } 21067 }
21068 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21068 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21069 // for details. All rights reserved. Use of this source code is governed by a 21069 // for details. All rights reserved. Use of this source code is governed by a
21070 // BSD-style license that can be found in the LICENSE file. 21070 // BSD-style license that can be found in the LICENSE file.
21071 21071
21072 21072
21073 /// @domName FileList 21073 /// @domName FileList; @docsEditable true
21074 class _FileList implements JavaScriptIndexingBehavior, List<File> native "*FileL ist" { 21074 class _FileList implements JavaScriptIndexingBehavior, List<File> native "*FileL ist" {
21075 21075
21076 /** @domName FileList.length */ 21076 /** @domName FileList.length; @docsEditable true */
21077 final int length; 21077 final int length;
21078 21078
21079 File operator[](int index) => JS("File", "#[#]", this, index); 21079 File operator[](int index) => JS("File", "#[#]", this, index);
21080 21080
21081 void operator[]=(int index, File value) { 21081 void operator[]=(int index, File value) {
21082 throw new UnsupportedError("Cannot assign element of immutable List."); 21082 throw new UnsupportedError("Cannot assign element of immutable List.");
21083 } 21083 }
21084 // -- start List<File> mixins. 21084 // -- start List<File> mixins.
21085 // File is the element type. 21085 // File is the element type.
21086 21086
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
21154 21154
21155 void insertRange(int start, int rangeLength, [File initialValue]) { 21155 void insertRange(int start, int rangeLength, [File initialValue]) {
21156 throw new UnsupportedError("Cannot insertRange on immutable List."); 21156 throw new UnsupportedError("Cannot insertRange on immutable List.");
21157 } 21157 }
21158 21158
21159 List<File> getRange(int start, int rangeLength) => 21159 List<File> getRange(int start, int rangeLength) =>
21160 _Lists.getRange(this, start, rangeLength, <File>[]); 21160 _Lists.getRange(this, start, rangeLength, <File>[]);
21161 21161
21162 // -- end List<File> mixins. 21162 // -- end List<File> mixins.
21163 21163
21164 /** @domName FileList.item */ 21164 /** @domName FileList.item; @docsEditable true */
21165 File item(int index) native; 21165 File item(int index) native;
21166 } 21166 }
21167 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21167 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21168 // for details. All rights reserved. Use of this source code is governed by a 21168 // for details. All rights reserved. Use of this source code is governed by a
21169 // BSD-style license that can be found in the LICENSE file. 21169 // BSD-style license that can be found in the LICENSE file.
21170 21170
21171 21171
21172 class _FileReaderFactoryProvider { 21172 class _FileReaderFactoryProvider {
21173 static FileReader createFileReader() => 21173 static FileReader createFileReader() =>
21174 JS('FileReader', 'new FileReader()' ); 21174 JS('FileReader', 'new FileReader()' );
(...skipping 16 matching lines...) Expand all
21191 static FormData createFormData([FormElement form = null]) { 21191 static FormData createFormData([FormElement form = null]) {
21192 if (form == null) return JS('FormData', 'new FormData()'); 21192 if (form == null) return JS('FormData', 'new FormData()');
21193 return JS('FormData', 'new FormData(#)', form); 21193 return JS('FormData', 'new FormData(#)', form);
21194 } 21194 }
21195 } 21195 }
21196 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21196 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21197 // for details. All rights reserved. Use of this source code is governed by a 21197 // for details. All rights reserved. Use of this source code is governed by a
21198 // BSD-style license that can be found in the LICENSE file. 21198 // BSD-style license that can be found in the LICENSE file.
21199 21199
21200 21200
21201 /// @domName GamepadList 21201 /// @domName GamepadList; @docsEditable true
21202 class _GamepadList implements JavaScriptIndexingBehavior, List<Gamepad> native " *GamepadList" { 21202 class _GamepadList implements JavaScriptIndexingBehavior, List<Gamepad> native " *GamepadList" {
21203 21203
21204 /** @domName GamepadList.length */ 21204 /** @domName GamepadList.length; @docsEditable true */
21205 final int length; 21205 final int length;
21206 21206
21207 Gamepad operator[](int index) => JS("Gamepad", "#[#]", this, index); 21207 Gamepad operator[](int index) => JS("Gamepad", "#[#]", this, index);
21208 21208
21209 void operator[]=(int index, Gamepad value) { 21209 void operator[]=(int index, Gamepad value) {
21210 throw new UnsupportedError("Cannot assign element of immutable List."); 21210 throw new UnsupportedError("Cannot assign element of immutable List.");
21211 } 21211 }
21212 // -- start List<Gamepad> mixins. 21212 // -- start List<Gamepad> mixins.
21213 // Gamepad is the element type. 21213 // Gamepad is the element type.
21214 21214
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
21282 21282
21283 void insertRange(int start, int rangeLength, [Gamepad initialValue]) { 21283 void insertRange(int start, int rangeLength, [Gamepad initialValue]) {
21284 throw new UnsupportedError("Cannot insertRange on immutable List."); 21284 throw new UnsupportedError("Cannot insertRange on immutable List.");
21285 } 21285 }
21286 21286
21287 List<Gamepad> getRange(int start, int rangeLength) => 21287 List<Gamepad> getRange(int start, int rangeLength) =>
21288 _Lists.getRange(this, start, rangeLength, <Gamepad>[]); 21288 _Lists.getRange(this, start, rangeLength, <Gamepad>[]);
21289 21289
21290 // -- end List<Gamepad> mixins. 21290 // -- end List<Gamepad> mixins.
21291 21291
21292 /** @domName GamepadList.item */ 21292 /** @domName GamepadList.item; @docsEditable true */
21293 Gamepad item(int index) native; 21293 Gamepad item(int index) native;
21294 } 21294 }
21295 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21295 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21296 // for details. All rights reserved. Use of this source code is governed by a 21296 // for details. All rights reserved. Use of this source code is governed by a
21297 // BSD-style license that can be found in the LICENSE file. 21297 // BSD-style license that can be found in the LICENSE file.
21298 21298
21299 21299
21300 class _HttpRequestFactoryProvider { 21300 class _HttpRequestFactoryProvider {
21301 static HttpRequest createHttpRequest() => 21301 static HttpRequest createHttpRequest() =>
21302 JS('HttpRequest', 'new XMLHttpRequest()'); 21302 JS('HttpRequest', 'new XMLHttpRequest()');
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
21343 21343
21344 class _MediaStreamFactoryProvider { 21344 class _MediaStreamFactoryProvider {
21345 static MediaStream createMediaStream(MediaStreamTrackList audioTracks, MediaSt reamTrackList videoTracks) => 21345 static MediaStream createMediaStream(MediaStreamTrackList audioTracks, MediaSt reamTrackList videoTracks) =>
21346 JS('MediaStream', 'new MediaStream(#,#)', audioTracks, videoTracks); 21346 JS('MediaStream', 'new MediaStream(#,#)', audioTracks, videoTracks);
21347 } 21347 }
21348 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21348 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21349 // for details. All rights reserved. Use of this source code is governed by a 21349 // for details. All rights reserved. Use of this source code is governed by a
21350 // BSD-style license that can be found in the LICENSE file. 21350 // BSD-style license that can be found in the LICENSE file.
21351 21351
21352 21352
21353 /// @domName MediaStreamList 21353 /// @domName MediaStreamList; @docsEditable true
21354 class _MediaStreamList implements JavaScriptIndexingBehavior, List<MediaStream> native "*MediaStreamList" { 21354 class _MediaStreamList implements JavaScriptIndexingBehavior, List<MediaStream> native "*MediaStreamList" {
21355 21355
21356 /** @domName MediaStreamList.length */ 21356 /** @domName MediaStreamList.length; @docsEditable true */
21357 final int length; 21357 final int length;
21358 21358
21359 MediaStream operator[](int index) => JS("MediaStream", "#[#]", this, index); 21359 MediaStream operator[](int index) => JS("MediaStream", "#[#]", this, index);
21360 21360
21361 void operator[]=(int index, MediaStream value) { 21361 void operator[]=(int index, MediaStream value) {
21362 throw new UnsupportedError("Cannot assign element of immutable List."); 21362 throw new UnsupportedError("Cannot assign element of immutable List.");
21363 } 21363 }
21364 // -- start List<MediaStream> mixins. 21364 // -- start List<MediaStream> mixins.
21365 // MediaStream is the element type. 21365 // MediaStream is the element type.
21366 21366
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
21434 21434
21435 void insertRange(int start, int rangeLength, [MediaStream initialValue]) { 21435 void insertRange(int start, int rangeLength, [MediaStream initialValue]) {
21436 throw new UnsupportedError("Cannot insertRange on immutable List."); 21436 throw new UnsupportedError("Cannot insertRange on immutable List.");
21437 } 21437 }
21438 21438
21439 List<MediaStream> getRange(int start, int rangeLength) => 21439 List<MediaStream> getRange(int start, int rangeLength) =>
21440 _Lists.getRange(this, start, rangeLength, <MediaStream>[]); 21440 _Lists.getRange(this, start, rangeLength, <MediaStream>[]);
21441 21441
21442 // -- end List<MediaStream> mixins. 21442 // -- end List<MediaStream> mixins.
21443 21443
21444 /** @domName MediaStreamList.item */ 21444 /** @domName MediaStreamList.item; @docsEditable true */
21445 MediaStream item(int index) native; 21445 MediaStream item(int index) native;
21446 } 21446 }
21447 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21447 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21448 // for details. All rights reserved. Use of this source code is governed by a 21448 // for details. All rights reserved. Use of this source code is governed by a
21449 // BSD-style license that can be found in the LICENSE file. 21449 // BSD-style license that can be found in the LICENSE file.
21450 21450
21451 21451
21452 class _MessageChannelFactoryProvider { 21452 class _MessageChannelFactoryProvider {
21453 static MessageChannel createMessageChannel() => 21453 static MessageChannel createMessageChannel() =>
21454 JS('MessageChannel', 'new MessageChannel()' ); 21454 JS('MessageChannel', 'new MessageChannel()' );
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
21487 // possible to rewrite the above code to, e.g. (simplified): 21487 // possible to rewrite the above code to, e.g. (simplified):
21488 // 21488 //
21489 // static createMutationObserver(MutationCallback callback) => 21489 // static createMutationObserver(MutationCallback callback) =>
21490 // JS('var', 'new (window.MutationObserver)(#)', callback); 21490 // JS('var', 'new (window.MutationObserver)(#)', callback);
21491 } 21491 }
21492 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21492 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21493 // for details. All rights reserved. Use of this source code is governed by a 21493 // for details. All rights reserved. Use of this source code is governed by a
21494 // BSD-style license that can be found in the LICENSE file. 21494 // BSD-style license that can be found in the LICENSE file.
21495 21495
21496 21496
21497 /// @domName NodeList 21497 /// @domName NodeList; @docsEditable true
21498 class _NodeList implements JavaScriptIndexingBehavior, List<Node> native "*NodeL ist" { 21498 class _NodeList implements JavaScriptIndexingBehavior, List<Node> native "*NodeL ist" {
21499 21499
21500 /** @domName NodeList.length */ 21500 /** @domName NodeList.length; @docsEditable true */
21501 final int length; 21501 final int length;
21502 21502
21503 Node operator[](int index) => JS("Node", "#[#]", this, index); 21503 Node operator[](int index) => JS("Node", "#[#]", this, index);
21504 21504
21505 void operator[]=(int index, Node value) { 21505 void operator[]=(int index, Node value) {
21506 throw new UnsupportedError("Cannot assign element of immutable List."); 21506 throw new UnsupportedError("Cannot assign element of immutable List.");
21507 } 21507 }
21508 // -- start List<Node> mixins. 21508 // -- start List<Node> mixins.
21509 // Node is the element type. 21509 // Node is the element type.
21510 21510
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
21578 21578
21579 void insertRange(int start, int rangeLength, [Node initialValue]) { 21579 void insertRange(int start, int rangeLength, [Node initialValue]) {
21580 throw new UnsupportedError("Cannot insertRange on immutable List."); 21580 throw new UnsupportedError("Cannot insertRange on immutable List.");
21581 } 21581 }
21582 21582
21583 List<Node> getRange(int start, int rangeLength) => 21583 List<Node> getRange(int start, int rangeLength) =>
21584 _Lists.getRange(this, start, rangeLength, <Node>[]); 21584 _Lists.getRange(this, start, rangeLength, <Node>[]);
21585 21585
21586 // -- end List<Node> mixins. 21586 // -- end List<Node> mixins.
21587 21587
21588 /** @domName NodeList.item */ 21588 /** @domName NodeList.item; @docsEditable true */
21589 Node _item(int index) native "item"; 21589 Node _item(int index) native "item";
21590 } 21590 }
21591 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21591 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21592 // for details. All rights reserved. Use of this source code is governed by a 21592 // for details. All rights reserved. Use of this source code is governed by a
21593 // BSD-style license that can be found in the LICENSE file. 21593 // BSD-style license that can be found in the LICENSE file.
21594 21594
21595 21595
21596 class _NotificationFactoryProvider { 21596 class _NotificationFactoryProvider {
21597 static Notification createNotification(String title, [Map options]) => 21597 static Notification createNotification(String title, [Map options]) =>
21598 JS('Notification', 'new Notification(#,#)', title, options); 21598 JS('Notification', 'new Notification(#,#)', title, options);
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
21704 21704
21705 class _SpeechGrammarListFactoryProvider { 21705 class _SpeechGrammarListFactoryProvider {
21706 static SpeechGrammarList createSpeechGrammarList() => 21706 static SpeechGrammarList createSpeechGrammarList() =>
21707 JS('SpeechGrammarList', 'new SpeechGrammarList()' ); 21707 JS('SpeechGrammarList', 'new SpeechGrammarList()' );
21708 } 21708 }
21709 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21709 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21710 // for details. All rights reserved. Use of this source code is governed by a 21710 // for details. All rights reserved. Use of this source code is governed by a
21711 // BSD-style license that can be found in the LICENSE file. 21711 // BSD-style license that can be found in the LICENSE file.
21712 21712
21713 21713
21714 /// @domName SpeechInputResultList 21714 /// @domName SpeechInputResultList; @docsEditable true
21715 class _SpeechInputResultList implements JavaScriptIndexingBehavior, List<SpeechI nputResult> native "*SpeechInputResultList" { 21715 class _SpeechInputResultList implements JavaScriptIndexingBehavior, List<SpeechI nputResult> native "*SpeechInputResultList" {
21716 21716
21717 /** @domName SpeechInputResultList.length */ 21717 /** @domName SpeechInputResultList.length; @docsEditable true */
21718 final int length; 21718 final int length;
21719 21719
21720 SpeechInputResult operator[](int index) => JS("SpeechInputResult", "#[#]", thi s, index); 21720 SpeechInputResult operator[](int index) => JS("SpeechInputResult", "#[#]", thi s, index);
21721 21721
21722 void operator[]=(int index, SpeechInputResult value) { 21722 void operator[]=(int index, SpeechInputResult value) {
21723 throw new UnsupportedError("Cannot assign element of immutable List."); 21723 throw new UnsupportedError("Cannot assign element of immutable List.");
21724 } 21724 }
21725 // -- start List<SpeechInputResult> mixins. 21725 // -- start List<SpeechInputResult> mixins.
21726 // SpeechInputResult is the element type. 21726 // SpeechInputResult is the element type.
21727 21727
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
21795 21795
21796 void insertRange(int start, int rangeLength, [SpeechInputResult initialValue]) { 21796 void insertRange(int start, int rangeLength, [SpeechInputResult initialValue]) {
21797 throw new UnsupportedError("Cannot insertRange on immutable List."); 21797 throw new UnsupportedError("Cannot insertRange on immutable List.");
21798 } 21798 }
21799 21799
21800 List<SpeechInputResult> getRange(int start, int rangeLength) => 21800 List<SpeechInputResult> getRange(int start, int rangeLength) =>
21801 _Lists.getRange(this, start, rangeLength, <SpeechInputResult>[]); 21801 _Lists.getRange(this, start, rangeLength, <SpeechInputResult>[]);
21802 21802
21803 // -- end List<SpeechInputResult> mixins. 21803 // -- end List<SpeechInputResult> mixins.
21804 21804
21805 /** @domName SpeechInputResultList.item */ 21805 /** @domName SpeechInputResultList.item; @docsEditable true */
21806 SpeechInputResult item(int index) native; 21806 SpeechInputResult item(int index) native;
21807 } 21807 }
21808 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21808 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21809 // for details. All rights reserved. Use of this source code is governed by a 21809 // for details. All rights reserved. Use of this source code is governed by a
21810 // BSD-style license that can be found in the LICENSE file. 21810 // BSD-style license that can be found in the LICENSE file.
21811 21811
21812 21812
21813 class _SpeechRecognitionFactoryProvider { 21813 class _SpeechRecognitionFactoryProvider {
21814 static SpeechRecognition createSpeechRecognition() => 21814 static SpeechRecognition createSpeechRecognition() =>
21815 JS('SpeechRecognition', 'new SpeechRecognition()' ); 21815 JS('SpeechRecognition', 'new SpeechRecognition()' );
21816 } 21816 }
21817 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21817 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21818 // for details. All rights reserved. Use of this source code is governed by a 21818 // for details. All rights reserved. Use of this source code is governed by a
21819 // BSD-style license that can be found in the LICENSE file. 21819 // BSD-style license that can be found in the LICENSE file.
21820 21820
21821 21821
21822 /// @domName SpeechRecognitionResultList 21822 /// @domName SpeechRecognitionResultList; @docsEditable true
21823 class _SpeechRecognitionResultList implements JavaScriptIndexingBehavior, List<S peechRecognitionResult> native "*SpeechRecognitionResultList" { 21823 class _SpeechRecognitionResultList implements JavaScriptIndexingBehavior, List<S peechRecognitionResult> native "*SpeechRecognitionResultList" {
21824 21824
21825 /** @domName SpeechRecognitionResultList.length */ 21825 /** @domName SpeechRecognitionResultList.length; @docsEditable true */
21826 final int length; 21826 final int length;
21827 21827
21828 SpeechRecognitionResult operator[](int index) => JS("SpeechRecognitionResult", "#[#]", this, index); 21828 SpeechRecognitionResult operator[](int index) => JS("SpeechRecognitionResult", "#[#]", this, index);
21829 21829
21830 void operator[]=(int index, SpeechRecognitionResult value) { 21830 void operator[]=(int index, SpeechRecognitionResult value) {
21831 throw new UnsupportedError("Cannot assign element of immutable List."); 21831 throw new UnsupportedError("Cannot assign element of immutable List.");
21832 } 21832 }
21833 // -- start List<SpeechRecognitionResult> mixins. 21833 // -- start List<SpeechRecognitionResult> mixins.
21834 // SpeechRecognitionResult is the element type. 21834 // SpeechRecognitionResult is the element type.
21835 21835
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
21903 21903
21904 void insertRange(int start, int rangeLength, [SpeechRecognitionResult initialV alue]) { 21904 void insertRange(int start, int rangeLength, [SpeechRecognitionResult initialV alue]) {
21905 throw new UnsupportedError("Cannot insertRange on immutable List."); 21905 throw new UnsupportedError("Cannot insertRange on immutable List.");
21906 } 21906 }
21907 21907
21908 List<SpeechRecognitionResult> getRange(int start, int rangeLength) => 21908 List<SpeechRecognitionResult> getRange(int start, int rangeLength) =>
21909 _Lists.getRange(this, start, rangeLength, <SpeechRecognitionResult>[]); 21909 _Lists.getRange(this, start, rangeLength, <SpeechRecognitionResult>[]);
21910 21910
21911 // -- end List<SpeechRecognitionResult> mixins. 21911 // -- end List<SpeechRecognitionResult> mixins.
21912 21912
21913 /** @domName SpeechRecognitionResultList.item */ 21913 /** @domName SpeechRecognitionResultList.item; @docsEditable true */
21914 SpeechRecognitionResult item(int index) native; 21914 SpeechRecognitionResult item(int index) native;
21915 } 21915 }
21916 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21916 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21917 // for details. All rights reserved. Use of this source code is governed by a 21917 // for details. All rights reserved. Use of this source code is governed by a
21918 // BSD-style license that can be found in the LICENSE file. 21918 // BSD-style license that can be found in the LICENSE file.
21919 21919
21920 21920
21921 /// @domName StyleSheetList 21921 /// @domName StyleSheetList; @docsEditable true
21922 class _StyleSheetList implements JavaScriptIndexingBehavior, List<StyleSheet> na tive "*StyleSheetList" { 21922 class _StyleSheetList implements JavaScriptIndexingBehavior, List<StyleSheet> na tive "*StyleSheetList" {
21923 21923
21924 /** @domName StyleSheetList.length */ 21924 /** @domName StyleSheetList.length; @docsEditable true */
21925 final int length; 21925 final int length;
21926 21926
21927 StyleSheet operator[](int index) => JS("StyleSheet", "#[#]", this, index); 21927 StyleSheet operator[](int index) => JS("StyleSheet", "#[#]", this, index);
21928 21928
21929 void operator[]=(int index, StyleSheet value) { 21929 void operator[]=(int index, StyleSheet value) {
21930 throw new UnsupportedError("Cannot assign element of immutable List."); 21930 throw new UnsupportedError("Cannot assign element of immutable List.");
21931 } 21931 }
21932 // -- start List<StyleSheet> mixins. 21932 // -- start List<StyleSheet> mixins.
21933 // StyleSheet is the element type. 21933 // StyleSheet is the element type.
21934 21934
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
22002 22002
22003 void insertRange(int start, int rangeLength, [StyleSheet initialValue]) { 22003 void insertRange(int start, int rangeLength, [StyleSheet initialValue]) {
22004 throw new UnsupportedError("Cannot insertRange on immutable List."); 22004 throw new UnsupportedError("Cannot insertRange on immutable List.");
22005 } 22005 }
22006 22006
22007 List<StyleSheet> getRange(int start, int rangeLength) => 22007 List<StyleSheet> getRange(int start, int rangeLength) =>
22008 _Lists.getRange(this, start, rangeLength, <StyleSheet>[]); 22008 _Lists.getRange(this, start, rangeLength, <StyleSheet>[]);
22009 22009
22010 // -- end List<StyleSheet> mixins. 22010 // -- end List<StyleSheet> mixins.
22011 22011
22012 /** @domName StyleSheetList.item */ 22012 /** @domName StyleSheetList.item; @docsEditable true */
22013 StyleSheet item(int index) native; 22013 StyleSheet item(int index) native;
22014 } 22014 }
22015 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22015 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22016 // for details. All rights reserved. Use of this source code is governed by a 22016 // for details. All rights reserved. Use of this source code is governed by a
22017 // BSD-style license that can be found in the LICENSE file. 22017 // BSD-style license that can be found in the LICENSE file.
22018 22018
22019 22019
22020 class _TextTrackCueFactoryProvider { 22020 class _TextTrackCueFactoryProvider {
22021 static TextTrackCue createTextTrackCue( 22021 static TextTrackCue createTextTrackCue(
22022 num startTime, num endTime, String text, 22022 num startTime, num endTime, String text,
(...skipping 11 matching lines...) Expand all
22034 return JS('TextTrackCue', 22034 return JS('TextTrackCue',
22035 'new TextTrackCue(#,#,#,#,#)', 22035 'new TextTrackCue(#,#,#,#,#)',
22036 startTime, endTime, text, settings, pauseOnExit); 22036 startTime, endTime, text, settings, pauseOnExit);
22037 } 22037 }
22038 } 22038 }
22039 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22039 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22040 // for details. All rights reserved. Use of this source code is governed by a 22040 // for details. All rights reserved. Use of this source code is governed by a
22041 // BSD-style license that can be found in the LICENSE file. 22041 // BSD-style license that can be found in the LICENSE file.
22042 22042
22043 22043
22044 /// @domName WebKitAnimationList 22044 /// @domName WebKitAnimationList; @docsEditable true
22045 class _WebKitAnimationList implements JavaScriptIndexingBehavior, List<Animation > native "*WebKitAnimationList" { 22045 class _WebKitAnimationList implements JavaScriptIndexingBehavior, List<Animation > native "*WebKitAnimationList" {
22046 22046
22047 /** @domName WebKitAnimationList.length */ 22047 /** @domName WebKitAnimationList.length; @docsEditable true */
22048 final int length; 22048 final int length;
22049 22049
22050 Animation operator[](int index) => JS("Animation", "#[#]", this, index); 22050 Animation operator[](int index) => JS("Animation", "#[#]", this, index);
22051 22051
22052 void operator[]=(int index, Animation value) { 22052 void operator[]=(int index, Animation value) {
22053 throw new UnsupportedError("Cannot assign element of immutable List."); 22053 throw new UnsupportedError("Cannot assign element of immutable List.");
22054 } 22054 }
22055 // -- start List<Animation> mixins. 22055 // -- start List<Animation> mixins.
22056 // Animation is the element type. 22056 // Animation is the element type.
22057 22057
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
22125 22125
22126 void insertRange(int start, int rangeLength, [Animation initialValue]) { 22126 void insertRange(int start, int rangeLength, [Animation initialValue]) {
22127 throw new UnsupportedError("Cannot insertRange on immutable List."); 22127 throw new UnsupportedError("Cannot insertRange on immutable List.");
22128 } 22128 }
22129 22129
22130 List<Animation> getRange(int start, int rangeLength) => 22130 List<Animation> getRange(int start, int rangeLength) =>
22131 _Lists.getRange(this, start, rangeLength, <Animation>[]); 22131 _Lists.getRange(this, start, rangeLength, <Animation>[]);
22132 22132
22133 // -- end List<Animation> mixins. 22133 // -- end List<Animation> mixins.
22134 22134
22135 /** @domName WebKitAnimationList.item */ 22135 /** @domName WebKitAnimationList.item; @docsEditable true */
22136 Animation item(int index) native; 22136 Animation item(int index) native;
22137 } 22137 }
22138 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22138 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22139 // for details. All rights reserved. Use of this source code is governed by a 22139 // for details. All rights reserved. Use of this source code is governed by a
22140 // BSD-style license that can be found in the LICENSE file. 22140 // BSD-style license that can be found in the LICENSE file.
22141 22141
22142 22142
22143 class _WorkerFactoryProvider { 22143 class _WorkerFactoryProvider {
22144 static Worker createWorker(String scriptUrl) => 22144 static Worker createWorker(String scriptUrl) =>
22145 JS('Worker', 'new Worker(#)', scriptUrl); 22145 JS('Worker', 'new Worker(#)', scriptUrl);
(...skipping 2961 matching lines...) Expand 10 before | Expand all | Expand 10 after
25107 if (length < 0) throw new ArgumentError('length'); 25107 if (length < 0) throw new ArgumentError('length');
25108 if (start < 0) throw new RangeError.value(start); 25108 if (start < 0) throw new RangeError.value(start);
25109 int end = start + length; 25109 int end = start + length;
25110 if (end > a.length) throw new RangeError.value(end); 25110 if (end > a.length) throw new RangeError.value(end);
25111 for (int i = start; i < end; i++) { 25111 for (int i = start; i < end; i++) {
25112 accumulator.add(a[i]); 25112 accumulator.add(a[i]);
25113 } 25113 }
25114 return accumulator; 25114 return accumulator;
25115 } 25115 }
25116 } 25116 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | sdk/lib/html/scripts/htmldartgenerator.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698