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

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

Issue 14051007: Allow multiple tags in native clause. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /// The Dart HTML library. 1 /// The Dart HTML library.
2 library dart.dom.html; 2 library dart.dom.html;
3 3
4 import 'dart:async'; 4 import 'dart:async';
5 import 'dart:collection'; 5 import 'dart:collection';
6 import 'dart:_collection-dev'; 6 import 'dart:_collection-dev';
7 import 'dart:html_common'; 7 import 'dart:html_common';
8 import 'dart:indexed_db'; 8 import 'dart:indexed_db';
9 import 'dart:isolate'; 9 import 'dart:isolate';
10 import 'dart:json' as json; 10 import 'dart:json' as json;
(...skipping 29 matching lines...) Expand all
40 /** 40 /**
41 * The top-level Document object. 41 * The top-level Document object.
42 */ 42 */
43 HtmlDocument get document => JS('HtmlDocument', 'document'); 43 HtmlDocument get document => JS('HtmlDocument', 'document');
44 44
45 Element query(String selector) => document.query(selector); 45 Element query(String selector) => document.query(selector);
46 List<Element> queryAll(String selector) => document.queryAll(selector); 46 List<Element> queryAll(String selector) => document.queryAll(selector);
47 47
48 // Workaround for tags like <cite> that lack their own Element subclass -- 48 // Workaround for tags like <cite> that lack their own Element subclass --
49 // Dart issue 1990. 49 // Dart issue 1990.
50 class _HTMLElement extends Element native "*HTMLElement" { 50 class _HTMLElement extends Element native "HTMLElement" {
51 } 51 }
52 52
53 // Support for Send/ReceivePortSync. 53 // Support for Send/ReceivePortSync.
54 int _getNewIsolateId() { 54 int _getNewIsolateId() {
55 if (JS('bool', r'!window.$dart$isolate$counter')) { 55 if (JS('bool', r'!window.$dart$isolate$counter')) {
56 JS('void', r'window.$dart$isolate$counter = 1'); 56 JS('void', r'window.$dart$isolate$counter = 1');
57 } 57 }
58 return JS('int', r'window.$dart$isolate$counter++'); 58 return JS('int', r'window.$dart$isolate$counter++');
59 } 59 }
60 60
61 // Fast path to invoke JS send port. 61 // Fast path to invoke JS send port.
62 _callPortSync(int id, message) { 62 _callPortSync(int id, message) {
63 return JS('var', r'ReceivePortSync.dispatchCall(#, #)', id, message); 63 return JS('var', r'ReceivePortSync.dispatchCall(#, #)', id, message);
64 } 64 }
65 65
66 spawnDomFunction(f) => IsolateNatives.spawnDomFunction(f); 66 spawnDomFunction(f) => IsolateNatives.spawnDomFunction(f);
67 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 67 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
68 // for details. All rights reserved. Use of this source code is governed by a 68 // for details. All rights reserved. Use of this source code is governed by a
69 // BSD-style license that can be found in the LICENSE file. 69 // BSD-style license that can be found in the LICENSE file.
70 70
71 71
72 @DocsEditable 72 @DocsEditable
73 @DomName('AbstractWorker') 73 @DomName('AbstractWorker')
74 class AbstractWorker extends EventTarget native "*AbstractWorker" { 74 class AbstractWorker extends EventTarget native "AbstractWorker" {
75 75
76 @DomName('AbstractWorker.errorEvent') 76 @DomName('AbstractWorker.errorEvent')
77 @DocsEditable 77 @DocsEditable
78 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error'); 78 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error');
79 79
80 @JSName('addEventListener') 80 @JSName('addEventListener')
81 @DomName('AbstractWorker.addEventListener') 81 @DomName('AbstractWorker.addEventListener')
82 @DocsEditable 82 @DocsEditable
83 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; 83 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native;
84 84
(...skipping 10 matching lines...) Expand all
95 @DocsEditable 95 @DocsEditable
96 Stream<Event> get onError => errorEvent.forTarget(this); 96 Stream<Event> get onError => errorEvent.forTarget(this);
97 } 97 }
98 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 98 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
99 // for details. All rights reserved. Use of this source code is governed by a 99 // for details. All rights reserved. Use of this source code is governed by a
100 // BSD-style license that can be found in the LICENSE file. 100 // BSD-style license that can be found in the LICENSE file.
101 101
102 102
103 @DocsEditable 103 @DocsEditable
104 @DomName('HTMLAnchorElement') 104 @DomName('HTMLAnchorElement')
105 class AnchorElement extends Element native "*HTMLAnchorElement" { 105 class AnchorElement extends Element native "HTMLAnchorElement" {
106 106
107 @DomName('HTMLAnchorElement.HTMLAnchorElement') 107 @DomName('HTMLAnchorElement.HTMLAnchorElement')
108 @DocsEditable 108 @DocsEditable
109 factory AnchorElement({String href}) { 109 factory AnchorElement({String href}) {
110 var e = document.$dom_createElement("a"); 110 var e = document.$dom_createElement("a");
111 if (href != null) e.href = href; 111 if (href != null) e.href = href;
112 return e; 112 return e;
113 } 113 }
114 114
115 @DomName('HTMLAnchorElement.download') 115 @DomName('HTMLAnchorElement.download')
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 @DocsEditable 180 @DocsEditable
181 String toString() native; 181 String toString() native;
182 } 182 }
183 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 183 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
184 // for details. All rights reserved. Use of this source code is governed by a 184 // for details. All rights reserved. Use of this source code is governed by a
185 // BSD-style license that can be found in the LICENSE file. 185 // BSD-style license that can be found in the LICENSE file.
186 186
187 187
188 @DocsEditable 188 @DocsEditable
189 @DomName('WebKitAnimationEvent') 189 @DomName('WebKitAnimationEvent')
190 class AnimationEvent extends Event native "*WebKitAnimationEvent" { 190 class AnimationEvent extends Event native "WebKitAnimationEvent" {
191 191
192 @DomName('AnimationEvent.animationName') 192 @DomName('AnimationEvent.animationName')
193 @DocsEditable 193 @DocsEditable
194 final String animationName; 194 final String animationName;
195 195
196 @DomName('AnimationEvent.elapsedTime') 196 @DomName('AnimationEvent.elapsedTime')
197 @DocsEditable 197 @DocsEditable
198 final num elapsedTime; 198 final num elapsedTime;
199 } 199 }
200 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 200 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
201 // for details. All rights reserved. Use of this source code is governed by a 201 // for details. All rights reserved. Use of this source code is governed by a
202 // BSD-style license that can be found in the LICENSE file. 202 // BSD-style license that can be found in the LICENSE file.
203 203
204 204
205 @DocsEditable 205 @DocsEditable
206 @DomName('DOMApplicationCache') 206 @DomName('DOMApplicationCache')
207 @SupportedBrowser(SupportedBrowser.CHROME) 207 @SupportedBrowser(SupportedBrowser.CHROME)
208 @SupportedBrowser(SupportedBrowser.FIREFOX) 208 @SupportedBrowser(SupportedBrowser.FIREFOX)
209 @SupportedBrowser(SupportedBrowser.IE, '10') 209 @SupportedBrowser(SupportedBrowser.IE, '10')
210 @SupportedBrowser(SupportedBrowser.OPERA) 210 @SupportedBrowser(SupportedBrowser.OPERA)
211 @SupportedBrowser(SupportedBrowser.SAFARI) 211 @SupportedBrowser(SupportedBrowser.SAFARI)
212 class ApplicationCache extends EventTarget native "*DOMApplicationCache" { 212 class ApplicationCache extends EventTarget native "ApplicationCache,DOMApplicati onCache,OfflineResourceList" {
213 213
214 @DomName('DOMApplicationCache.cachedEvent') 214 @DomName('DOMApplicationCache.cachedEvent')
215 @DocsEditable 215 @DocsEditable
216 static const EventStreamProvider<Event> cachedEvent = const EventStreamProvide r<Event>('cached'); 216 static const EventStreamProvider<Event> cachedEvent = const EventStreamProvide r<Event>('cached');
217 217
218 @DomName('DOMApplicationCache.checkingEvent') 218 @DomName('DOMApplicationCache.checkingEvent')
219 @DocsEditable 219 @DocsEditable
220 static const EventStreamProvider<Event> checkingEvent = const EventStreamProvi der<Event>('checking'); 220 static const EventStreamProvider<Event> checkingEvent = const EventStreamProvi der<Event>('checking');
221 221
222 @DomName('DOMApplicationCache.downloadingEvent') 222 @DomName('DOMApplicationCache.downloadingEvent')
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 * DOM Area Element, which links regions of an image map with a hyperlink. 330 * DOM Area Element, which links regions of an image map with a hyperlink.
331 * 331 *
332 * The element can also define an uninteractive region of the map. 332 * The element can also define an uninteractive region of the map.
333 * 333 *
334 * See also: 334 * See also:
335 * 335 *
336 * * [<area>](https://developer.mozilla.org/en-US/docs/HTML/Element/area) 336 * * [<area>](https://developer.mozilla.org/en-US/docs/HTML/Element/area)
337 * on MDN. 337 * on MDN.
338 */ 338 */
339 @DomName('HTMLAreaElement') 339 @DomName('HTMLAreaElement')
340 class AreaElement extends Element native "*HTMLAreaElement" { 340 class AreaElement extends Element native "HTMLAreaElement" {
341 341
342 @DomName('HTMLAreaElement.HTMLAreaElement') 342 @DomName('HTMLAreaElement.HTMLAreaElement')
343 @DocsEditable 343 @DocsEditable
344 factory AreaElement() => document.$dom_createElement("area"); 344 factory AreaElement() => document.$dom_createElement("area");
345 345
346 @DomName('HTMLAreaElement.alt') 346 @DomName('HTMLAreaElement.alt')
347 @DocsEditable 347 @DocsEditable
348 String alt; 348 String alt;
349 349
350 @DomName('HTMLAreaElement.coords') 350 @DomName('HTMLAreaElement.coords')
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 @DocsEditable 395 @DocsEditable
396 String target; 396 String target;
397 } 397 }
398 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 398 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
399 // for details. All rights reserved. Use of this source code is governed by a 399 // for details. All rights reserved. Use of this source code is governed by a
400 // BSD-style license that can be found in the LICENSE file. 400 // BSD-style license that can be found in the LICENSE file.
401 401
402 402
403 @DocsEditable 403 @DocsEditable
404 @DomName('Attr') 404 @DomName('Attr')
405 class Attr extends Node native "*Attr" { 405 class Attr extends Node native "Attr" {
406 } 406 }
407 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 407 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
408 // for details. All rights reserved. Use of this source code is governed by a 408 // for details. All rights reserved. Use of this source code is governed by a
409 // BSD-style license that can be found in the LICENSE file. 409 // BSD-style license that can be found in the LICENSE file.
410 410
411 411
412 @DocsEditable 412 @DocsEditable
413 @DomName('HTMLAudioElement') 413 @DomName('HTMLAudioElement')
414 class AudioElement extends MediaElement native "*HTMLAudioElement" { 414 class AudioElement extends MediaElement native "HTMLAudioElement" {
415 415
416 @DomName('HTMLAudioElement.HTMLAudioElement') 416 @DomName('HTMLAudioElement.HTMLAudioElement')
417 @DocsEditable 417 @DocsEditable
418 factory AudioElement([String src]) { 418 factory AudioElement([String src]) {
419 if (?src) { 419 if (?src) {
420 return AudioElement._create_1(src); 420 return AudioElement._create_1(src);
421 } 421 }
422 return AudioElement._create_2(); 422 return AudioElement._create_2();
423 } 423 }
424 static AudioElement _create_1(src) => JS('AudioElement', 'new Audio(#)', src); 424 static AudioElement _create_1(src) => JS('AudioElement', 'new Audio(#)', src);
425 static AudioElement _create_2() => JS('AudioElement', 'new Audio()'); 425 static AudioElement _create_2() => JS('AudioElement', 'new Audio()');
426 } 426 }
427 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 427 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
428 // for details. All rights reserved. Use of this source code is governed by a 428 // for details. All rights reserved. Use of this source code is governed by a
429 // BSD-style license that can be found in the LICENSE file. 429 // BSD-style license that can be found in the LICENSE file.
430 430
431 431
432 @DocsEditable 432 @DocsEditable
433 @DomName('AutocompleteErrorEvent') 433 @DomName('AutocompleteErrorEvent')
434 class AutocompleteErrorEvent extends Event native "*AutocompleteErrorEvent" { 434 class AutocompleteErrorEvent extends Event native "AutocompleteErrorEvent" {
435 435
436 @DomName('AutocompleteErrorEvent.reason') 436 @DomName('AutocompleteErrorEvent.reason')
437 @DocsEditable 437 @DocsEditable
438 final String reason; 438 final String reason;
439 } 439 }
440 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 440 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
441 // for details. All rights reserved. Use of this source code is governed by a 441 // for details. All rights reserved. Use of this source code is governed by a
442 // BSD-style license that can be found in the LICENSE file. 442 // BSD-style license that can be found in the LICENSE file.
443 443
444 444
445 @DocsEditable 445 @DocsEditable
446 @DomName('HTMLBRElement') 446 @DomName('HTMLBRElement')
447 class BRElement extends Element native "*HTMLBRElement" { 447 class BRElement extends Element native "HTMLBRElement" {
448 448
449 @DomName('HTMLBRElement.HTMLBRElement') 449 @DomName('HTMLBRElement.HTMLBRElement')
450 @DocsEditable 450 @DocsEditable
451 factory BRElement() => document.$dom_createElement("br"); 451 factory BRElement() => document.$dom_createElement("br");
452 } 452 }
453 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 453 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
454 // for details. All rights reserved. Use of this source code is governed by a 454 // for details. All rights reserved. Use of this source code is governed by a
455 // BSD-style license that can be found in the LICENSE file. 455 // BSD-style license that can be found in the LICENSE file.
456 456
457 457
458 @DocsEditable 458 @DocsEditable
459 @DomName('BarInfo') 459 @DomName('BarInfo')
460 class BarInfo native "*BarInfo" { 460 class BarInfo native "BarInfo" {
461 461
462 @DomName('BarInfo.visible') 462 @DomName('BarInfo.visible')
463 @DocsEditable 463 @DocsEditable
464 final bool visible; 464 final bool visible;
465 } 465 }
466 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 466 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
467 // for details. All rights reserved. Use of this source code is governed by a 467 // for details. All rights reserved. Use of this source code is governed by a
468 // BSD-style license that can be found in the LICENSE file. 468 // BSD-style license that can be found in the LICENSE file.
469 469
470 470
471 @DocsEditable 471 @DocsEditable
472 @DomName('HTMLBaseElement') 472 @DomName('HTMLBaseElement')
473 class BaseElement extends Element native "*HTMLBaseElement" { 473 class BaseElement extends Element native "HTMLBaseElement" {
474 474
475 @DomName('HTMLBaseElement.HTMLBaseElement') 475 @DomName('HTMLBaseElement.HTMLBaseElement')
476 @DocsEditable 476 @DocsEditable
477 factory BaseElement() => document.$dom_createElement("base"); 477 factory BaseElement() => document.$dom_createElement("base");
478 478
479 @DomName('HTMLBaseElement.href') 479 @DomName('HTMLBaseElement.href')
480 @DocsEditable 480 @DocsEditable
481 String href; 481 String href;
482 482
483 @DomName('HTMLBaseElement.target') 483 @DomName('HTMLBaseElement.target')
484 @DocsEditable 484 @DocsEditable
485 String target; 485 String target;
486 } 486 }
487 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 487 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
488 // for details. All rights reserved. Use of this source code is governed by a 488 // for details. All rights reserved. Use of this source code is governed by a
489 // BSD-style license that can be found in the LICENSE file. 489 // BSD-style license that can be found in the LICENSE file.
490 490
491 491
492 @DocsEditable 492 @DocsEditable
493 @DomName('BeforeLoadEvent') 493 @DomName('BeforeLoadEvent')
494 class BeforeLoadEvent extends Event native "*BeforeLoadEvent" { 494 class BeforeLoadEvent extends Event native "BeforeLoadEvent" {
495 495
496 @DomName('BeforeLoadEvent.url') 496 @DomName('BeforeLoadEvent.url')
497 @DocsEditable 497 @DocsEditable
498 final String url; 498 final String url;
499 } 499 }
500 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 500 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
501 // for details. All rights reserved. Use of this source code is governed by a 501 // for details. All rights reserved. Use of this source code is governed by a
502 // BSD-style license that can be found in the LICENSE file. 502 // BSD-style license that can be found in the LICENSE file.
503 503
504 504
505 @DomName('Blob') 505 @DomName('Blob')
506 class Blob native "*Blob" { 506 class Blob native "Blob" {
507 507
508 @DomName('Blob.size') 508 @DomName('Blob.size')
509 @DocsEditable 509 @DocsEditable
510 final int size; 510 final int size;
511 511
512 @DomName('Blob.type') 512 @DomName('Blob.type')
513 @DocsEditable 513 @DocsEditable
514 final String type; 514 final String type;
515 515
516 @DomName('Blob.slice') 516 @DomName('Blob.slice')
(...skipping 20 matching lines...) Expand all
537 static _bag_set(bag, key, value) { JS('void', '#[#] = #', bag, key, value); } 537 static _bag_set(bag, key, value) { JS('void', '#[#] = #', bag, key, value); }
538 } 538 }
539 539
540 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 540 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
541 // for details. All rights reserved. Use of this source code is governed by a 541 // for details. All rights reserved. Use of this source code is governed by a
542 // BSD-style license that can be found in the LICENSE file. 542 // BSD-style license that can be found in the LICENSE file.
543 543
544 544
545 @DocsEditable 545 @DocsEditable
546 @DomName('HTMLBodyElement') 546 @DomName('HTMLBodyElement')
547 class BodyElement extends Element native "*HTMLBodyElement" { 547 class BodyElement extends Element native "HTMLBodyElement" {
548 548
549 @DomName('HTMLBodyElement.blurEvent') 549 @DomName('HTMLBodyElement.blurEvent')
550 @DocsEditable 550 @DocsEditable
551 static const EventStreamProvider<Event> blurEvent = const EventStreamProvider< Event>('blur'); 551 static const EventStreamProvider<Event> blurEvent = const EventStreamProvider< Event>('blur');
552 552
553 @DomName('HTMLBodyElement.errorEvent') 553 @DomName('HTMLBodyElement.errorEvent')
554 @DocsEditable 554 @DocsEditable
555 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error'); 555 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error');
556 556
557 @DomName('HTMLBodyElement.focusEvent') 557 @DomName('HTMLBodyElement.focusEvent')
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
646 @DocsEditable 646 @DocsEditable
647 Stream<Event> get onUnload => unloadEvent.forTarget(this); 647 Stream<Event> get onUnload => unloadEvent.forTarget(this);
648 } 648 }
649 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 649 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
650 // for details. All rights reserved. Use of this source code is governed by a 650 // for details. All rights reserved. Use of this source code is governed by a
651 // BSD-style license that can be found in the LICENSE file. 651 // BSD-style license that can be found in the LICENSE file.
652 652
653 653
654 @DocsEditable 654 @DocsEditable
655 @DomName('HTMLButtonElement') 655 @DomName('HTMLButtonElement')
656 class ButtonElement extends Element native "*HTMLButtonElement" { 656 class ButtonElement extends Element native "HTMLButtonElement" {
657 657
658 @DomName('HTMLButtonElement.HTMLButtonElement') 658 @DomName('HTMLButtonElement.HTMLButtonElement')
659 @DocsEditable 659 @DocsEditable
660 factory ButtonElement() => document.$dom_createElement("button"); 660 factory ButtonElement() => document.$dom_createElement("button");
661 661
662 @DomName('HTMLButtonElement.autofocus') 662 @DomName('HTMLButtonElement.autofocus')
663 @DocsEditable 663 @DocsEditable
664 bool autofocus; 664 bool autofocus;
665 665
666 @DomName('HTMLButtonElement.disabled') 666 @DomName('HTMLButtonElement.disabled')
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
729 @DocsEditable 729 @DocsEditable
730 void setCustomValidity(String error) native; 730 void setCustomValidity(String error) native;
731 } 731 }
732 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 732 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
733 // for details. All rights reserved. Use of this source code is governed by a 733 // for details. All rights reserved. Use of this source code is governed by a
734 // BSD-style license that can be found in the LICENSE file. 734 // BSD-style license that can be found in the LICENSE file.
735 735
736 736
737 @DocsEditable 737 @DocsEditable
738 @DomName('CDATASection') 738 @DomName('CDATASection')
739 class CDataSection extends Text native "*CDATASection" { 739 class CDataSection extends Text native "CDATASection" {
740 } 740 }
741 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 741 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
742 // for details. All rights reserved. Use of this source code is governed by a 742 // for details. All rights reserved. Use of this source code is governed by a
743 // BSD-style license that can be found in the LICENSE file. 743 // BSD-style license that can be found in the LICENSE file.
744 744
745 745
746 @DomName('HTMLCanvasElement') 746 @DomName('HTMLCanvasElement')
747 class CanvasElement extends Element implements CanvasImageSource native "*HTMLCa nvasElement" { 747 class CanvasElement extends Element implements CanvasImageSource native "HTMLCan vasElement" {
748 748
749 @DomName('HTMLCanvasElement.HTMLCanvasElement') 749 @DomName('HTMLCanvasElement.HTMLCanvasElement')
750 @DocsEditable 750 @DocsEditable
751 factory CanvasElement({int width, int height}) { 751 factory CanvasElement({int width, int height}) {
752 var e = document.$dom_createElement("canvas"); 752 var e = document.$dom_createElement("canvas");
753 if (width != null) e.width = width; 753 if (width != null) e.width = width;
754 if (height != null) e.height = height; 754 if (height != null) e.height = height;
755 return e; 755 return e;
756 } 756 }
757 757
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
885 * ctx.save(); 885 * ctx.save();
886 * document.body.children.add(canvas); 886 * document.body.children.add(canvas);
887 * 887 *
888 * See also: 888 * See also:
889 * 889 *
890 * * [CanvasGradient](https://developer.mozilla.org/en-US/docs/DOM/CanvasGradien t) from MDN. 890 * * [CanvasGradient](https://developer.mozilla.org/en-US/docs/DOM/CanvasGradien t) from MDN.
891 * * [CanvasGradient](http://www.whatwg.org/specs/web-apps/current-work/multipag e/the-canvas-element.html#canvasgradient) from whatwg. 891 * * [CanvasGradient](http://www.whatwg.org/specs/web-apps/current-work/multipag e/the-canvas-element.html#canvasgradient) from whatwg.
892 * * [CanvasGradient](http://www.w3.org/TR/2010/WD-2dcontext-20100304/#canvasgra dient) from W3C. 892 * * [CanvasGradient](http://www.w3.org/TR/2010/WD-2dcontext-20100304/#canvasgra dient) from W3C.
893 */ 893 */
894 @DomName('CanvasGradient') 894 @DomName('CanvasGradient')
895 class CanvasGradient native "*CanvasGradient" { 895 class CanvasGradient native "CanvasGradient" {
896 896
897 /** 897 /**
898 * Adds a color stop to this gradient at the offset. 898 * Adds a color stop to this gradient at the offset.
899 * 899 *
900 * The [offset] can range between 0.0 and 1.0. 900 * The [offset] can range between 0.0 and 1.0.
901 * 901 *
902 * See also: 902 * See also:
903 * 903 *
904 * * [Multiple Color Stops](https://developer.mozilla.org/en-US/docs/CSS/linea r-gradient#Gradient_with_multiple_color_stops) from MDN. 904 * * [Multiple Color Stops](https://developer.mozilla.org/en-US/docs/CSS/linea r-gradient#Gradient_with_multiple_color_stops) from MDN.
905 */ 905 */
(...skipping 28 matching lines...) Expand all
934 * }); 934 * });
935 * img.src = "images/foo.jpg"; 935 * img.src = "images/foo.jpg";
936 * document.body.children.add(canvas); 936 * document.body.children.add(canvas);
937 * 937 *
938 * See also: 938 * See also:
939 * * [CanvasPattern](https://developer.mozilla.org/en-US/docs/DOM/CanvasPattern) from MDN. 939 * * [CanvasPattern](https://developer.mozilla.org/en-US/docs/DOM/CanvasPattern) from MDN.
940 * * [CanvasPattern](http://www.whatwg.org/specs/web-apps/current-work/multipage /the-canvas-element.html#canvaspattern) from whatwg. 940 * * [CanvasPattern](http://www.whatwg.org/specs/web-apps/current-work/multipage /the-canvas-element.html#canvaspattern) from whatwg.
941 * * [CanvasPattern](http://www.w3.org/TR/2010/WD-2dcontext-20100304/#canvaspatt ern) from W3C. 941 * * [CanvasPattern](http://www.w3.org/TR/2010/WD-2dcontext-20100304/#canvaspatt ern) from W3C.
942 */ 942 */
943 @DomName('CanvasPattern') 943 @DomName('CanvasPattern')
944 class CanvasPattern native "*CanvasPattern" { 944 class CanvasPattern native "CanvasPattern" {
945 } 945 }
946 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 946 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
947 // for details. All rights reserved. Use of this source code is governed by a 947 // for details. All rights reserved. Use of this source code is governed by a
948 // BSD-style license that can be found in the LICENSE file. 948 // BSD-style license that can be found in the LICENSE file.
949 949
950 950
951 @DocsEditable 951 @DocsEditable
952 @DomName('CanvasProxy') 952 @DomName('CanvasProxy')
953 class CanvasProxy native "*CanvasProxy" { 953 class CanvasProxy native "CanvasProxy" {
954 } 954 }
955 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 955 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
956 // for details. All rights reserved. Use of this source code is governed by a 956 // for details. All rights reserved. Use of this source code is governed by a
957 // BSD-style license that can be found in the LICENSE file. 957 // BSD-style license that can be found in the LICENSE file.
958 958
959 959
960 @DocsEditable 960 @DocsEditable
961 /** 961 /**
962 * A rendering context for a canvas element. 962 * A rendering context for a canvas element.
963 * 963 *
964 * This context is extended by [CanvasRenderingContext2D] and 964 * This context is extended by [CanvasRenderingContext2D] and
965 * [WebGLRenderingContext]. 965 * [WebGLRenderingContext].
966 */ 966 */
967 @DomName('CanvasRenderingContext') 967 @DomName('CanvasRenderingContext')
968 class CanvasRenderingContext native "*CanvasRenderingContext" { 968 class CanvasRenderingContext native "CanvasRenderingContext" {
969 969
970 /// Reference to the canvas element to which this context belongs. 970 /// Reference to the canvas element to which this context belongs.
971 @DomName('CanvasRenderingContext.canvas') 971 @DomName('CanvasRenderingContext.canvas')
972 @DocsEditable 972 @DocsEditable
973 final CanvasElement canvas; 973 final CanvasElement canvas;
974 } 974 }
975 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 975 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
976 // for details. All rights reserved. Use of this source code is governed by a 976 // for details. All rights reserved. Use of this source code is governed by a
977 // BSD-style license that can be found in the LICENSE file. 977 // BSD-style license that can be found in the LICENSE file.
978 978
979 979
980 @DomName('CanvasRenderingContext2D') 980 @DomName('CanvasRenderingContext2D')
981 class CanvasRenderingContext2D extends CanvasRenderingContext native "*CanvasRen deringContext2D" { 981 class CanvasRenderingContext2D extends CanvasRenderingContext native "CanvasRend eringContext2D" {
982 982
983 @DomName('CanvasRenderingContext2D.currentPath') 983 @DomName('CanvasRenderingContext2D.currentPath')
984 @DocsEditable 984 @DocsEditable
985 DomPath currentPath; 985 DomPath currentPath;
986 986
987 @DomName('CanvasRenderingContext2D.fillStyle') 987 @DomName('CanvasRenderingContext2D.fillStyle')
988 @DocsEditable 988 @DocsEditable
989 @Creates('String|CanvasGradient|CanvasPattern') 989 @Creates('String|CanvasGradient|CanvasPattern')
990 @Returns('String|CanvasGradient|CanvasPattern') 990 @Returns('String|CanvasGradient|CanvasPattern')
991 dynamic fillStyle; 991 dynamic fillStyle;
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
1515 '#.webkitLineDashOffset = #', this, this, value, this, value); 1515 '#.webkitLineDashOffset = #', this, this, value, this, value);
1516 } 1516 }
1517 1517
1518 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1518 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1519 // for details. All rights reserved. Use of this source code is governed by a 1519 // for details. All rights reserved. Use of this source code is governed by a
1520 // BSD-style license that can be found in the LICENSE file. 1520 // BSD-style license that can be found in the LICENSE file.
1521 1521
1522 1522
1523 @DocsEditable 1523 @DocsEditable
1524 @DomName('CharacterData') 1524 @DomName('CharacterData')
1525 class CharacterData extends Node native "*CharacterData" { 1525 class CharacterData extends Node native "CharacterData" {
1526 1526
1527 @DomName('CharacterData.data') 1527 @DomName('CharacterData.data')
1528 @DocsEditable 1528 @DocsEditable
1529 String data; 1529 String data;
1530 1530
1531 @DomName('CharacterData.length') 1531 @DomName('CharacterData.length')
1532 @DocsEditable 1532 @DocsEditable
1533 final int length; 1533 final int length;
1534 1534
1535 @DomName('CharacterData.appendData') 1535 @DomName('CharacterData.appendData')
(...skipping 16 matching lines...) Expand all
1552 @DocsEditable 1552 @DocsEditable
1553 String substringData(int offset, int length) native; 1553 String substringData(int offset, int length) native;
1554 } 1554 }
1555 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1555 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1556 // for details. All rights reserved. Use of this source code is governed by a 1556 // for details. All rights reserved. Use of this source code is governed by a
1557 // BSD-style license that can be found in the LICENSE file. 1557 // BSD-style license that can be found in the LICENSE file.
1558 1558
1559 1559
1560 @DocsEditable 1560 @DocsEditable
1561 @DomName('CloseEvent') 1561 @DomName('CloseEvent')
1562 class CloseEvent extends Event native "*CloseEvent" { 1562 class CloseEvent extends Event native "CloseEvent" {
1563 1563
1564 @DomName('CloseEvent.code') 1564 @DomName('CloseEvent.code')
1565 @DocsEditable 1565 @DocsEditable
1566 final int code; 1566 final int code;
1567 1567
1568 @DomName('CloseEvent.reason') 1568 @DomName('CloseEvent.reason')
1569 @DocsEditable 1569 @DocsEditable
1570 final String reason; 1570 final String reason;
1571 1571
1572 @DomName('CloseEvent.wasClean') 1572 @DomName('CloseEvent.wasClean')
1573 @DocsEditable 1573 @DocsEditable
1574 final bool wasClean; 1574 final bool wasClean;
1575 } 1575 }
1576 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1576 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1577 // for details. All rights reserved. Use of this source code is governed by a 1577 // for details. All rights reserved. Use of this source code is governed by a
1578 // BSD-style license that can be found in the LICENSE file. 1578 // BSD-style license that can be found in the LICENSE file.
1579 1579
1580 1580
1581 @DocsEditable 1581 @DocsEditable
1582 @DomName('Comment') 1582 @DomName('Comment')
1583 class Comment extends CharacterData native "*Comment" { 1583 class Comment extends CharacterData native "Comment" {
1584 } 1584 }
1585 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1585 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
1586 // for details. All rights reserved. Use of this source code is governed by a 1586 // for details. All rights reserved. Use of this source code is governed by a
1587 // BSD-style license that can be found in the LICENSE file. 1587 // BSD-style license that can be found in the LICENSE file.
1588 1588
1589 // WARNING: Do not edit - generated code. 1589 // WARNING: Do not edit - generated code.
1590 1590
1591 1591
1592 @DomName('CompositionEvent') 1592 @DomName('CompositionEvent')
1593 class CompositionEvent extends UIEvent native "*CompositionEvent" { 1593 class CompositionEvent extends UIEvent native "CompositionEvent" {
1594 factory CompositionEvent(String type, 1594 factory CompositionEvent(String type,
1595 {bool canBubble: false, bool cancelable: false, Window view, 1595 {bool canBubble: false, bool cancelable: false, Window view,
1596 String data}) { 1596 String data}) {
1597 if (view == null) { 1597 if (view == null) {
1598 view = window; 1598 view = window;
1599 } 1599 }
1600 var e = document.$dom_createEvent("CompositionEvent"); 1600 var e = document.$dom_createEvent("CompositionEvent");
1601 e.$dom_initCompositionEvent(type, canBubble, cancelable, view, data); 1601 e.$dom_initCompositionEvent(type, canBubble, cancelable, view, data);
1602 return e; 1602 return e;
1603 } 1603 }
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
1719 } 1719 }
1720 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1720 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1721 // for details. All rights reserved. Use of this source code is governed by a 1721 // for details. All rights reserved. Use of this source code is governed by a
1722 // BSD-style license that can be found in the LICENSE file. 1722 // BSD-style license that can be found in the LICENSE file.
1723 1723
1724 1724
1725 @DocsEditable 1725 @DocsEditable
1726 @DomName('HTMLContentElement') 1726 @DomName('HTMLContentElement')
1727 @SupportedBrowser(SupportedBrowser.CHROME, '26') 1727 @SupportedBrowser(SupportedBrowser.CHROME, '26')
1728 @Experimental 1728 @Experimental
1729 class ContentElement extends Element native "*HTMLContentElement" { 1729 class ContentElement extends Element native "HTMLContentElement" {
1730 1730
1731 @DomName('HTMLContentElement.HTMLContentElement') 1731 @DomName('HTMLContentElement.HTMLContentElement')
1732 @DocsEditable 1732 @DocsEditable
1733 factory ContentElement() => document.$dom_createElement("content"); 1733 factory ContentElement() => document.$dom_createElement("content");
1734 1734
1735 /// Checks if this type is supported on the current platform. 1735 /// Checks if this type is supported on the current platform.
1736 static bool get supported => Element.isTagSupported('content'); 1736 static bool get supported => Element.isTagSupported('content');
1737 1737
1738 @DomName('HTMLContentElement.resetStyleInheritance') 1738 @DomName('HTMLContentElement.resetStyleInheritance')
1739 @DocsEditable 1739 @DocsEditable
1740 bool resetStyleInheritance; 1740 bool resetStyleInheritance;
1741 1741
1742 @DomName('HTMLContentElement.select') 1742 @DomName('HTMLContentElement.select')
1743 @DocsEditable 1743 @DocsEditable
1744 String select; 1744 String select;
1745 1745
1746 @DomName('HTMLContentElement.getDistributedNodes') 1746 @DomName('HTMLContentElement.getDistributedNodes')
1747 @DocsEditable 1747 @DocsEditable
1748 @Returns('NodeList') 1748 @Returns('NodeList')
1749 @Creates('NodeList') 1749 @Creates('NodeList')
1750 List<Node> getDistributedNodes() native; 1750 List<Node> getDistributedNodes() native;
1751 } 1751 }
1752 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1752 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1753 // for details. All rights reserved. Use of this source code is governed by a 1753 // for details. All rights reserved. Use of this source code is governed by a
1754 // BSD-style license that can be found in the LICENSE file. 1754 // BSD-style license that can be found in the LICENSE file.
1755 1755
1756 1756
1757 @DocsEditable 1757 @DocsEditable
1758 @DomName('Coordinates') 1758 @DomName('Coordinates')
1759 class Coordinates native "*Coordinates" { 1759 class Coordinates native "Coordinates" {
1760 1760
1761 @DomName('Coordinates.accuracy') 1761 @DomName('Coordinates.accuracy')
1762 @DocsEditable 1762 @DocsEditable
1763 final num accuracy; 1763 final num accuracy;
1764 1764
1765 @DomName('Coordinates.altitude') 1765 @DomName('Coordinates.altitude')
1766 @DocsEditable 1766 @DocsEditable
1767 final num altitude; 1767 final num altitude;
1768 1768
1769 @DomName('Coordinates.altitudeAccuracy') 1769 @DomName('Coordinates.altitudeAccuracy')
(...skipping 19 matching lines...) Expand all
1789 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1789 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1790 // for details. All rights reserved. Use of this source code is governed by a 1790 // for details. All rights reserved. Use of this source code is governed by a
1791 // BSD-style license that can be found in the LICENSE file. 1791 // BSD-style license that can be found in the LICENSE file.
1792 1792
1793 1793
1794 @DocsEditable 1794 @DocsEditable
1795 @DomName('Crypto') 1795 @DomName('Crypto')
1796 @SupportedBrowser(SupportedBrowser.CHROME) 1796 @SupportedBrowser(SupportedBrowser.CHROME)
1797 @SupportedBrowser(SupportedBrowser.SAFARI) 1797 @SupportedBrowser(SupportedBrowser.SAFARI)
1798 @Experimental 1798 @Experimental
1799 class Crypto native "*Crypto" { 1799 class Crypto native "Crypto" {
1800 1800
1801 /// Checks if this type is supported on the current platform. 1801 /// Checks if this type is supported on the current platform.
1802 static bool get supported => JS('bool', '!!(window.crypto && window.crypto.get RandomValues)'); 1802 static bool get supported => JS('bool', '!!(window.crypto && window.crypto.get RandomValues)');
1803 1803
1804 @DomName('Crypto.getRandomValues') 1804 @DomName('Crypto.getRandomValues')
1805 @DocsEditable 1805 @DocsEditable
1806 @Creates('TypedData') 1806 @Creates('TypedData')
1807 @Returns('TypedData|Null') 1807 @Returns('TypedData|Null')
1808 TypedData getRandomValues(TypedData array) native; 1808 TypedData getRandomValues(TypedData array) native;
1809 } 1809 }
1810 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1810 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1811 // for details. All rights reserved. Use of this source code is governed by a 1811 // for details. All rights reserved. Use of this source code is governed by a
1812 // BSD-style license that can be found in the LICENSE file. 1812 // BSD-style license that can be found in the LICENSE file.
1813 1813
1814 1814
1815 @DocsEditable 1815 @DocsEditable
1816 @DomName('CSSCharsetRule') 1816 @DomName('CSSCharsetRule')
1817 class CssCharsetRule extends CssRule native "*CSSCharsetRule" { 1817 class CssCharsetRule extends CssRule native "CSSCharsetRule" {
1818 1818
1819 @DomName('CSSCharsetRule.encoding') 1819 @DomName('CSSCharsetRule.encoding')
1820 @DocsEditable 1820 @DocsEditable
1821 String encoding; 1821 String encoding;
1822 } 1822 }
1823 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1823 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1824 // for details. All rights reserved. Use of this source code is governed by a 1824 // for details. All rights reserved. Use of this source code is governed by a
1825 // BSD-style license that can be found in the LICENSE file. 1825 // BSD-style license that can be found in the LICENSE file.
1826 1826
1827 1827
1828 @DocsEditable 1828 @DocsEditable
1829 @DomName('CSSFontFaceLoadEvent') 1829 @DomName('CSSFontFaceLoadEvent')
1830 class CssFontFaceLoadEvent extends Event native "*CSSFontFaceLoadEvent" { 1830 class CssFontFaceLoadEvent extends Event native "CSSFontFaceLoadEvent" {
1831 1831
1832 @DomName('CSSFontFaceLoadEvent.error') 1832 @DomName('CSSFontFaceLoadEvent.error')
1833 @DocsEditable 1833 @DocsEditable
1834 final DomError error; 1834 final DomError error;
1835 1835
1836 @DomName('CSSFontFaceLoadEvent.fontface') 1836 @DomName('CSSFontFaceLoadEvent.fontface')
1837 @DocsEditable 1837 @DocsEditable
1838 final CssFontFaceRule fontface; 1838 final CssFontFaceRule fontface;
1839 } 1839 }
1840 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1840 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1841 // for details. All rights reserved. Use of this source code is governed by a 1841 // for details. All rights reserved. Use of this source code is governed by a
1842 // BSD-style license that can be found in the LICENSE file. 1842 // BSD-style license that can be found in the LICENSE file.
1843 1843
1844 1844
1845 @DocsEditable 1845 @DocsEditable
1846 @DomName('CSSFontFaceRule') 1846 @DomName('CSSFontFaceRule')
1847 class CssFontFaceRule extends CssRule native "*CSSFontFaceRule" { 1847 class CssFontFaceRule extends CssRule native "CSSFontFaceRule" {
1848 1848
1849 @DomName('CSSFontFaceRule.style') 1849 @DomName('CSSFontFaceRule.style')
1850 @DocsEditable 1850 @DocsEditable
1851 final CssStyleDeclaration style; 1851 final CssStyleDeclaration style;
1852 } 1852 }
1853 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1853 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1854 // for details. All rights reserved. Use of this source code is governed by a 1854 // for details. All rights reserved. Use of this source code is governed by a
1855 // BSD-style license that can be found in the LICENSE file. 1855 // BSD-style license that can be found in the LICENSE file.
1856 1856
1857 1857
1858 @DocsEditable 1858 @DocsEditable
1859 @DomName('CSSHostRule') 1859 @DomName('CSSHostRule')
1860 @SupportedBrowser(SupportedBrowser.CHROME, '26') 1860 @SupportedBrowser(SupportedBrowser.CHROME, '26')
1861 @Experimental 1861 @Experimental
1862 class CssHostRule extends CssRule native "*CSSHostRule" { 1862 class CssHostRule extends CssRule native "CSSHostRule" {
1863 1863
1864 @DomName('CSSHostRule.cssRules') 1864 @DomName('CSSHostRule.cssRules')
1865 @DocsEditable 1865 @DocsEditable
1866 @Returns('_CssRuleList') 1866 @Returns('_CssRuleList')
1867 @Creates('_CssRuleList') 1867 @Creates('_CssRuleList')
1868 final List<CssRule> cssRules; 1868 final List<CssRule> cssRules;
1869 1869
1870 @DomName('CSSHostRule.deleteRule') 1870 @DomName('CSSHostRule.deleteRule')
1871 @DocsEditable 1871 @DocsEditable
1872 void deleteRule(int index) native; 1872 void deleteRule(int index) native;
1873 1873
1874 @DomName('CSSHostRule.insertRule') 1874 @DomName('CSSHostRule.insertRule')
1875 @DocsEditable 1875 @DocsEditable
1876 int insertRule(String rule, int index) native; 1876 int insertRule(String rule, int index) native;
1877 } 1877 }
1878 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1878 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1879 // for details. All rights reserved. Use of this source code is governed by a 1879 // for details. All rights reserved. Use of this source code is governed by a
1880 // BSD-style license that can be found in the LICENSE file. 1880 // BSD-style license that can be found in the LICENSE file.
1881 1881
1882 1882
1883 @DocsEditable 1883 @DocsEditable
1884 @DomName('CSSImportRule') 1884 @DomName('CSSImportRule')
1885 class CssImportRule extends CssRule native "*CSSImportRule" { 1885 class CssImportRule extends CssRule native "CSSImportRule" {
1886 1886
1887 @DomName('CSSImportRule.href') 1887 @DomName('CSSImportRule.href')
1888 @DocsEditable 1888 @DocsEditable
1889 final String href; 1889 final String href;
1890 1890
1891 @DomName('CSSImportRule.media') 1891 @DomName('CSSImportRule.media')
1892 @DocsEditable 1892 @DocsEditable
1893 final MediaList media; 1893 final MediaList media;
1894 1894
1895 @DomName('CSSImportRule.styleSheet') 1895 @DomName('CSSImportRule.styleSheet')
1896 @DocsEditable 1896 @DocsEditable
1897 final CssStyleSheet styleSheet; 1897 final CssStyleSheet styleSheet;
1898 } 1898 }
1899 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1899 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1900 // for details. All rights reserved. Use of this source code is governed by a 1900 // for details. All rights reserved. Use of this source code is governed by a
1901 // BSD-style license that can be found in the LICENSE file. 1901 // BSD-style license that can be found in the LICENSE file.
1902 1902
1903 1903
1904 @DocsEditable 1904 @DocsEditable
1905 @DomName('WebKitCSSKeyframeRule') 1905 @DomName('WebKitCSSKeyframeRule')
1906 class CssKeyframeRule extends CssRule native "*WebKitCSSKeyframeRule" { 1906 class CssKeyframeRule extends CssRule native "WebKitCSSKeyframeRule" {
1907 1907
1908 @DomName('WebKitCSSKeyframeRule.keyText') 1908 @DomName('WebKitCSSKeyframeRule.keyText')
1909 @DocsEditable 1909 @DocsEditable
1910 String keyText; 1910 String keyText;
1911 1911
1912 @DomName('WebKitCSSKeyframeRule.style') 1912 @DomName('WebKitCSSKeyframeRule.style')
1913 @DocsEditable 1913 @DocsEditable
1914 final CssStyleDeclaration style; 1914 final CssStyleDeclaration style;
1915 } 1915 }
1916 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1916 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1917 // for details. All rights reserved. Use of this source code is governed by a 1917 // for details. All rights reserved. Use of this source code is governed by a
1918 // BSD-style license that can be found in the LICENSE file. 1918 // BSD-style license that can be found in the LICENSE file.
1919 1919
1920 1920
1921 @DocsEditable 1921 @DocsEditable
1922 @DomName('WebKitCSSKeyframesRule') 1922 @DomName('WebKitCSSKeyframesRule')
1923 class CssKeyframesRule extends CssRule native "*WebKitCSSKeyframesRule" { 1923 class CssKeyframesRule extends CssRule native "WebKitCSSKeyframesRule" {
1924 1924
1925 @DomName('WebKitCSSKeyframesRule.cssRules') 1925 @DomName('WebKitCSSKeyframesRule.cssRules')
1926 @DocsEditable 1926 @DocsEditable
1927 @Returns('_CssRuleList') 1927 @Returns('_CssRuleList')
1928 @Creates('_CssRuleList') 1928 @Creates('_CssRuleList')
1929 final List<CssRule> cssRules; 1929 final List<CssRule> cssRules;
1930 1930
1931 @DomName('WebKitCSSKeyframesRule.name') 1931 @DomName('WebKitCSSKeyframesRule.name')
1932 @DocsEditable 1932 @DocsEditable
1933 String name; 1933 String name;
(...skipping 10 matching lines...) Expand all
1944 @DocsEditable 1944 @DocsEditable
1945 void insertRule(String rule) native; 1945 void insertRule(String rule) native;
1946 } 1946 }
1947 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1947 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1948 // for details. All rights reserved. Use of this source code is governed by a 1948 // for details. All rights reserved. Use of this source code is governed by a
1949 // BSD-style license that can be found in the LICENSE file. 1949 // BSD-style license that can be found in the LICENSE file.
1950 1950
1951 1951
1952 @DocsEditable 1952 @DocsEditable
1953 @DomName('CSSMediaRule') 1953 @DomName('CSSMediaRule')
1954 class CssMediaRule extends CssRule native "*CSSMediaRule" { 1954 class CssMediaRule extends CssRule native "CSSMediaRule" {
1955 1955
1956 @DomName('CSSMediaRule.cssRules') 1956 @DomName('CSSMediaRule.cssRules')
1957 @DocsEditable 1957 @DocsEditable
1958 @Returns('_CssRuleList') 1958 @Returns('_CssRuleList')
1959 @Creates('_CssRuleList') 1959 @Creates('_CssRuleList')
1960 final List<CssRule> cssRules; 1960 final List<CssRule> cssRules;
1961 1961
1962 @DomName('CSSMediaRule.media') 1962 @DomName('CSSMediaRule.media')
1963 @DocsEditable 1963 @DocsEditable
1964 final MediaList media; 1964 final MediaList media;
1965 1965
1966 @DomName('CSSMediaRule.deleteRule') 1966 @DomName('CSSMediaRule.deleteRule')
1967 @DocsEditable 1967 @DocsEditable
1968 void deleteRule(int index) native; 1968 void deleteRule(int index) native;
1969 1969
1970 @DomName('CSSMediaRule.insertRule') 1970 @DomName('CSSMediaRule.insertRule')
1971 @DocsEditable 1971 @DocsEditable
1972 int insertRule(String rule, int index) native; 1972 int insertRule(String rule, int index) native;
1973 } 1973 }
1974 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1974 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1975 // for details. All rights reserved. Use of this source code is governed by a 1975 // for details. All rights reserved. Use of this source code is governed by a
1976 // BSD-style license that can be found in the LICENSE file. 1976 // BSD-style license that can be found in the LICENSE file.
1977 1977
1978 1978
1979 @DocsEditable 1979 @DocsEditable
1980 @DomName('CSSPageRule') 1980 @DomName('CSSPageRule')
1981 class CssPageRule extends CssRule native "*CSSPageRule" { 1981 class CssPageRule extends CssRule native "CSSPageRule" {
1982 1982
1983 @DomName('CSSPageRule.selectorText') 1983 @DomName('CSSPageRule.selectorText')
1984 @DocsEditable 1984 @DocsEditable
1985 String selectorText; 1985 String selectorText;
1986 1986
1987 @DomName('CSSPageRule.style') 1987 @DomName('CSSPageRule.style')
1988 @DocsEditable 1988 @DocsEditable
1989 final CssStyleDeclaration style; 1989 final CssStyleDeclaration style;
1990 } 1990 }
1991 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1991 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1992 // for details. All rights reserved. Use of this source code is governed by a 1992 // for details. All rights reserved. Use of this source code is governed by a
1993 // BSD-style license that can be found in the LICENSE file. 1993 // BSD-style license that can be found in the LICENSE file.
1994 1994
1995 1995
1996 @DocsEditable 1996 @DocsEditable
1997 @DomName('CSSRule') 1997 @DomName('CSSRule')
1998 class CssRule native "*CSSRule" { 1998 class CssRule native "CSSRule" {
1999 1999
2000 static const int CHARSET_RULE = 2; 2000 static const int CHARSET_RULE = 2;
2001 2001
2002 static const int FONT_FACE_RULE = 5; 2002 static const int FONT_FACE_RULE = 5;
2003 2003
2004 static const int HOST_RULE = 1001; 2004 static const int HOST_RULE = 1001;
2005 2005
2006 static const int IMPORT_RULE = 3; 2006 static const int IMPORT_RULE = 3;
2007 2007
2008 static const int MEDIA_RULE = 4; 2008 static const int MEDIA_RULE = 4;
(...skipping 27 matching lines...) Expand all
2036 @DomName('CSSRule.type') 2036 @DomName('CSSRule.type')
2037 @DocsEditable 2037 @DocsEditable
2038 final int type; 2038 final int type;
2039 } 2039 }
2040 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2040 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2041 // for details. All rights reserved. Use of this source code is governed by a 2041 // for details. All rights reserved. Use of this source code is governed by a
2042 // BSD-style license that can be found in the LICENSE file. 2042 // BSD-style license that can be found in the LICENSE file.
2043 2043
2044 2044
2045 @DomName('CSSStyleDeclaration') 2045 @DomName('CSSStyleDeclaration')
2046 class CssStyleDeclaration native "*CSSStyleDeclaration" { 2046 class CssStyleDeclaration native "CSSStyleDeclaration" {
2047 factory CssStyleDeclaration() => _CssStyleDeclarationFactoryProvider.createCss StyleDeclaration(); 2047 factory CssStyleDeclaration() => _CssStyleDeclarationFactoryProvider.createCss StyleDeclaration();
2048 factory CssStyleDeclaration.css(String css) => 2048 factory CssStyleDeclaration.css(String css) =>
2049 _CssStyleDeclarationFactoryProvider.createCssStyleDeclaration_css(css); 2049 _CssStyleDeclarationFactoryProvider.createCssStyleDeclaration_css(css);
2050 2050
2051 2051
2052 @DomName('CSSStyleDeclaration.cssText') 2052 @DomName('CSSStyleDeclaration.cssText')
2053 @DocsEditable 2053 @DocsEditable
2054 String cssText; 2054 String cssText;
2055 2055
2056 @DomName('CSSStyleDeclaration.length') 2056 @DomName('CSSStyleDeclaration.length')
(...skipping 3216 matching lines...) Expand 10 before | Expand all | Expand 10 after
5273 setProperty('zoom', value, ''); 5273 setProperty('zoom', value, '');
5274 } 5274 }
5275 } 5275 }
5276 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5276 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5277 // for details. All rights reserved. Use of this source code is governed by a 5277 // for details. All rights reserved. Use of this source code is governed by a
5278 // BSD-style license that can be found in the LICENSE file. 5278 // BSD-style license that can be found in the LICENSE file.
5279 5279
5280 5280
5281 @DocsEditable 5281 @DocsEditable
5282 @DomName('CSSStyleRule') 5282 @DomName('CSSStyleRule')
5283 class CssStyleRule extends CssRule native "*CSSStyleRule" { 5283 class CssStyleRule extends CssRule native "CSSStyleRule" {
5284 5284
5285 @DomName('CSSStyleRule.selectorText') 5285 @DomName('CSSStyleRule.selectorText')
5286 @DocsEditable 5286 @DocsEditable
5287 String selectorText; 5287 String selectorText;
5288 5288
5289 @DomName('CSSStyleRule.style') 5289 @DomName('CSSStyleRule.style')
5290 @DocsEditable 5290 @DocsEditable
5291 final CssStyleDeclaration style; 5291 final CssStyleDeclaration style;
5292 } 5292 }
5293 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5293 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5294 // for details. All rights reserved. Use of this source code is governed by a 5294 // for details. All rights reserved. Use of this source code is governed by a
5295 // BSD-style license that can be found in the LICENSE file. 5295 // BSD-style license that can be found in the LICENSE file.
5296 5296
5297 5297
5298 @DocsEditable 5298 @DocsEditable
5299 @DomName('CSSStyleSheet') 5299 @DomName('CSSStyleSheet')
5300 class CssStyleSheet extends StyleSheet native "*CSSStyleSheet" { 5300 class CssStyleSheet extends StyleSheet native "CSSStyleSheet" {
5301 5301
5302 @DomName('CSSStyleSheet.cssRules') 5302 @DomName('CSSStyleSheet.cssRules')
5303 @DocsEditable 5303 @DocsEditable
5304 @Returns('_CssRuleList') 5304 @Returns('_CssRuleList')
5305 @Creates('_CssRuleList') 5305 @Creates('_CssRuleList')
5306 final List<CssRule> cssRules; 5306 final List<CssRule> cssRules;
5307 5307
5308 @DomName('CSSStyleSheet.ownerRule') 5308 @DomName('CSSStyleSheet.ownerRule')
5309 @DocsEditable 5309 @DocsEditable
5310 final CssRule ownerRule; 5310 final CssRule ownerRule;
(...skipping 20 matching lines...) Expand all
5331 @DocsEditable 5331 @DocsEditable
5332 void removeRule(int index) native; 5332 void removeRule(int index) native;
5333 } 5333 }
5334 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5334 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5335 // for details. All rights reserved. Use of this source code is governed by a 5335 // for details. All rights reserved. Use of this source code is governed by a
5336 // BSD-style license that can be found in the LICENSE file. 5336 // BSD-style license that can be found in the LICENSE file.
5337 5337
5338 5338
5339 @DocsEditable 5339 @DocsEditable
5340 @DomName('CSSUnknownRule') 5340 @DomName('CSSUnknownRule')
5341 class CssUnknownRule extends CssRule native "*CSSUnknownRule" { 5341 class CssUnknownRule extends CssRule native "CSSUnknownRule" {
5342 } 5342 }
5343 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5343 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5344 // for details. All rights reserved. Use of this source code is governed by a 5344 // for details. All rights reserved. Use of this source code is governed by a
5345 // BSD-style license that can be found in the LICENSE file. 5345 // BSD-style license that can be found in the LICENSE file.
5346 5346
5347 5347
5348 @DocsEditable 5348 @DocsEditable
5349 @DomName('CustomElementConstructor') 5349 @DomName('CustomElementConstructor')
5350 class CustomElementConstructor native "*CustomElementConstructor" { 5350 class CustomElementConstructor native "CustomElementConstructor" {
5351 } 5351 }
5352 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5352 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5353 // for details. All rights reserved. Use of this source code is governed by a 5353 // for details. All rights reserved. Use of this source code is governed by a
5354 // BSD-style license that can be found in the LICENSE file. 5354 // BSD-style license that can be found in the LICENSE file.
5355 5355
5356 // WARNING: Do not edit - generated code. 5356 // WARNING: Do not edit - generated code.
5357 5357
5358 5358
5359 @DomName('CustomEvent') 5359 @DomName('CustomEvent')
5360 class CustomEvent extends Event native "*CustomEvent" { 5360 class CustomEvent extends Event native "CustomEvent" {
5361 factory CustomEvent(String type, 5361 factory CustomEvent(String type,
5362 {bool canBubble: true, bool cancelable: true, Object detail}) { 5362 {bool canBubble: true, bool cancelable: true, Object detail}) {
5363 5363
5364 final CustomEvent e = document.$dom_createEvent("CustomEvent"); 5364 final CustomEvent e = document.$dom_createEvent("CustomEvent");
5365 e.$dom_initCustomEvent(type, canBubble, cancelable, detail); 5365 e.$dom_initCustomEvent(type, canBubble, cancelable, detail);
5366 5366
5367 return e; 5367 return e;
5368 } 5368 }
5369 5369
5370 @DomName('CustomEvent.detail') 5370 @DomName('CustomEvent.detail')
5371 @DocsEditable 5371 @DocsEditable
5372 final Object detail; 5372 final Object detail;
5373 5373
5374 @JSName('initCustomEvent') 5374 @JSName('initCustomEvent')
5375 @DomName('CustomEvent.initCustomEvent') 5375 @DomName('CustomEvent.initCustomEvent')
5376 @DocsEditable 5376 @DocsEditable
5377 void $dom_initCustomEvent(String typeArg, bool canBubbleArg, bool cancelableAr g, Object detailArg) native; 5377 void $dom_initCustomEvent(String typeArg, bool canBubbleArg, bool cancelableAr g, Object detailArg) native;
5378 5378
5379 } 5379 }
5380 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5380 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5381 // for details. All rights reserved. Use of this source code is governed by a 5381 // for details. All rights reserved. Use of this source code is governed by a
5382 // BSD-style license that can be found in the LICENSE file. 5382 // BSD-style license that can be found in the LICENSE file.
5383 5383
5384 5384
5385 @DocsEditable 5385 @DocsEditable
5386 @DomName('HTMLDListElement') 5386 @DomName('HTMLDListElement')
5387 class DListElement extends Element native "*HTMLDListElement" { 5387 class DListElement extends Element native "HTMLDListElement" {
5388 5388
5389 @DomName('HTMLDListElement.HTMLDListElement') 5389 @DomName('HTMLDListElement.HTMLDListElement')
5390 @DocsEditable 5390 @DocsEditable
5391 factory DListElement() => document.$dom_createElement("dl"); 5391 factory DListElement() => document.$dom_createElement("dl");
5392 } 5392 }
5393 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5393 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5394 // for details. All rights reserved. Use of this source code is governed by a 5394 // for details. All rights reserved. Use of this source code is governed by a
5395 // BSD-style license that can be found in the LICENSE file. 5395 // BSD-style license that can be found in the LICENSE file.
5396 5396
5397 5397
5398 @DocsEditable 5398 @DocsEditable
5399 @DomName('HTMLDataListElement') 5399 @DomName('HTMLDataListElement')
5400 @SupportedBrowser(SupportedBrowser.CHROME) 5400 @SupportedBrowser(SupportedBrowser.CHROME)
5401 @SupportedBrowser(SupportedBrowser.FIREFOX) 5401 @SupportedBrowser(SupportedBrowser.FIREFOX)
5402 @SupportedBrowser(SupportedBrowser.IE, '10') 5402 @SupportedBrowser(SupportedBrowser.IE, '10')
5403 @SupportedBrowser(SupportedBrowser.SAFARI) 5403 @SupportedBrowser(SupportedBrowser.SAFARI)
5404 class DataListElement extends Element native "*HTMLDataListElement" { 5404 class DataListElement extends Element native "HTMLDataListElement" {
5405 5405
5406 @DomName('HTMLDataListElement.HTMLDataListElement') 5406 @DomName('HTMLDataListElement.HTMLDataListElement')
5407 @DocsEditable 5407 @DocsEditable
5408 factory DataListElement() => document.$dom_createElement("datalist"); 5408 factory DataListElement() => document.$dom_createElement("datalist");
5409 5409
5410 /// Checks if this type is supported on the current platform. 5410 /// Checks if this type is supported on the current platform.
5411 static bool get supported => Element.isTagSupported('datalist'); 5411 static bool get supported => Element.isTagSupported('datalist');
5412 5412
5413 @DomName('HTMLDataListElement.options') 5413 @DomName('HTMLDataListElement.options')
5414 @DocsEditable 5414 @DocsEditable
5415 final HtmlCollection options; 5415 final HtmlCollection options;
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 @DocsEditable 5422 @DocsEditable
5423 @DomName('Clipboard') 5423 @DomName('Clipboard')
5424 class DataTransfer native "*Clipboard" { 5424 class DataTransfer native "Clipboard" {
5425 5425
5426 @DomName('Clipboard.dropEffect') 5426 @DomName('Clipboard.dropEffect')
5427 @DocsEditable 5427 @DocsEditable
5428 String dropEffect; 5428 String dropEffect;
5429 5429
5430 @DomName('Clipboard.effectAllowed') 5430 @DomName('Clipboard.effectAllowed')
5431 @DocsEditable 5431 @DocsEditable
5432 String effectAllowed; 5432 String effectAllowed;
5433 5433
5434 @DomName('Clipboard.files') 5434 @DomName('Clipboard.files')
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
5477 @DocsEditable 5477 @DocsEditable
5478 void setDragImage(ImageElement image, int x, int y) native; 5478 void setDragImage(ImageElement image, int x, int y) native;
5479 } 5479 }
5480 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5480 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5481 // for details. All rights reserved. Use of this source code is governed by a 5481 // for details. All rights reserved. Use of this source code is governed by a
5482 // BSD-style license that can be found in the LICENSE file. 5482 // BSD-style license that can be found in the LICENSE file.
5483 5483
5484 5484
5485 @DocsEditable 5485 @DocsEditable
5486 @DomName('DataTransferItem') 5486 @DomName('DataTransferItem')
5487 class DataTransferItem native "*DataTransferItem" { 5487 class DataTransferItem native "DataTransferItem" {
5488 5488
5489 @DomName('DataTransferItem.kind') 5489 @DomName('DataTransferItem.kind')
5490 @DocsEditable 5490 @DocsEditable
5491 final String kind; 5491 final String kind;
5492 5492
5493 @DomName('DataTransferItem.type') 5493 @DomName('DataTransferItem.type')
5494 @DocsEditable 5494 @DocsEditable
5495 final String type; 5495 final String type;
5496 5496
5497 @DomName('DataTransferItem.getAsFile') 5497 @DomName('DataTransferItem.getAsFile')
(...skipping 23 matching lines...) Expand all
5521 @Experimental 5521 @Experimental
5522 Entry getAsEntry() native; 5522 Entry getAsEntry() native;
5523 } 5523 }
5524 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5524 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5525 // for details. All rights reserved. Use of this source code is governed by a 5525 // for details. All rights reserved. Use of this source code is governed by a
5526 // BSD-style license that can be found in the LICENSE file. 5526 // BSD-style license that can be found in the LICENSE file.
5527 5527
5528 5528
5529 @DocsEditable 5529 @DocsEditable
5530 @DomName('DataTransferItemList') 5530 @DomName('DataTransferItemList')
5531 class DataTransferItemList native "*DataTransferItemList" { 5531 class DataTransferItemList native "DataTransferItemList" {
5532 5532
5533 @DomName('DataTransferItemList.length') 5533 @DomName('DataTransferItemList.length')
5534 @DocsEditable 5534 @DocsEditable
5535 final int length; 5535 final int length;
5536 5536
5537 @DomName('DataTransferItemList.add') 5537 @DomName('DataTransferItemList.add')
5538 @DocsEditable 5538 @DocsEditable
5539 void add(data_OR_file, [String type]) native; 5539 void add(data_OR_file, [String type]) native;
5540 5540
5541 @DomName('DataTransferItemList.clear') 5541 @DomName('DataTransferItemList.clear')
(...skipping 15 matching lines...) Expand all
5557 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5557 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5558 // for details. All rights reserved. Use of this source code is governed by a 5558 // for details. All rights reserved. Use of this source code is governed by a
5559 // BSD-style license that can be found in the LICENSE file. 5559 // BSD-style license that can be found in the LICENSE file.
5560 5560
5561 5561
5562 @DocsEditable 5562 @DocsEditable
5563 @DomName('HTMLDetailsElement') 5563 @DomName('HTMLDetailsElement')
5564 @SupportedBrowser(SupportedBrowser.CHROME) 5564 @SupportedBrowser(SupportedBrowser.CHROME)
5565 @SupportedBrowser(SupportedBrowser.SAFARI) 5565 @SupportedBrowser(SupportedBrowser.SAFARI)
5566 @Experimental 5566 @Experimental
5567 class DetailsElement extends Element native "*HTMLDetailsElement" { 5567 class DetailsElement extends Element native "HTMLDetailsElement" {
5568 5568
5569 @DomName('HTMLDetailsElement.HTMLDetailsElement') 5569 @DomName('HTMLDetailsElement.HTMLDetailsElement')
5570 @DocsEditable 5570 @DocsEditable
5571 factory DetailsElement() => document.$dom_createElement("details"); 5571 factory DetailsElement() => document.$dom_createElement("details");
5572 5572
5573 /// Checks if this type is supported on the current platform. 5573 /// Checks if this type is supported on the current platform.
5574 static bool get supported => Element.isTagSupported('details'); 5574 static bool get supported => Element.isTagSupported('details');
5575 5575
5576 @DomName('HTMLDetailsElement.open') 5576 @DomName('HTMLDetailsElement.open')
5577 @DocsEditable 5577 @DocsEditable
5578 bool open; 5578 bool open;
5579 } 5579 }
5580 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5580 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5581 // for details. All rights reserved. Use of this source code is governed by a 5581 // for details. All rights reserved. Use of this source code is governed by a
5582 // BSD-style license that can be found in the LICENSE file. 5582 // BSD-style license that can be found in the LICENSE file.
5583 5583
5584 5584
5585 @DocsEditable 5585 @DocsEditable
5586 @DomName('DeviceAcceleration') 5586 @DomName('DeviceAcceleration')
5587 class DeviceAcceleration native "*DeviceAcceleration" { 5587 class DeviceAcceleration native "DeviceAcceleration" {
5588 5588
5589 @DomName('DeviceAcceleration.x') 5589 @DomName('DeviceAcceleration.x')
5590 @DocsEditable 5590 @DocsEditable
5591 final num x; 5591 final num x;
5592 5592
5593 @DomName('DeviceAcceleration.y') 5593 @DomName('DeviceAcceleration.y')
5594 @DocsEditable 5594 @DocsEditable
5595 final num y; 5595 final num y;
5596 5596
5597 @DomName('DeviceAcceleration.z') 5597 @DomName('DeviceAcceleration.z')
5598 @DocsEditable 5598 @DocsEditable
5599 final num z; 5599 final num z;
5600 } 5600 }
5601 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5601 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5602 // for details. All rights reserved. Use of this source code is governed by a 5602 // for details. All rights reserved. Use of this source code is governed by a
5603 // BSD-style license that can be found in the LICENSE file. 5603 // BSD-style license that can be found in the LICENSE file.
5604 5604
5605 5605
5606 @DocsEditable 5606 @DocsEditable
5607 @DomName('DeviceMotionEvent') 5607 @DomName('DeviceMotionEvent')
5608 class DeviceMotionEvent extends Event native "*DeviceMotionEvent" { 5608 class DeviceMotionEvent extends Event native "DeviceMotionEvent" {
5609 5609
5610 @DomName('DeviceMotionEvent.acceleration') 5610 @DomName('DeviceMotionEvent.acceleration')
5611 @DocsEditable 5611 @DocsEditable
5612 final DeviceAcceleration acceleration; 5612 final DeviceAcceleration acceleration;
5613 5613
5614 @DomName('DeviceMotionEvent.accelerationIncludingGravity') 5614 @DomName('DeviceMotionEvent.accelerationIncludingGravity')
5615 @DocsEditable 5615 @DocsEditable
5616 final DeviceAcceleration accelerationIncludingGravity; 5616 final DeviceAcceleration accelerationIncludingGravity;
5617 5617
5618 @DomName('DeviceMotionEvent.interval') 5618 @DomName('DeviceMotionEvent.interval')
5619 @DocsEditable 5619 @DocsEditable
5620 final num interval; 5620 final num interval;
5621 5621
5622 @DomName('DeviceMotionEvent.rotationRate') 5622 @DomName('DeviceMotionEvent.rotationRate')
5623 @DocsEditable 5623 @DocsEditable
5624 final DeviceRotationRate rotationRate; 5624 final DeviceRotationRate rotationRate;
5625 } 5625 }
5626 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 5626 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
5627 // for details. All rights reserved. Use of this source code is governed by a 5627 // for details. All rights reserved. Use of this source code is governed by a
5628 // BSD-style license that can be found in the LICENSE file. 5628 // BSD-style license that can be found in the LICENSE file.
5629 5629
5630 // WARNING: Do not edit - generated code. 5630 // WARNING: Do not edit - generated code.
5631 5631
5632 @DomName('DeviceOrientationEvent') 5632 @DomName('DeviceOrientationEvent')
5633 5633
5634 class DeviceOrientationEvent extends Event native "*DeviceOrientationEvent" { 5634 class DeviceOrientationEvent extends Event native "DeviceOrientationEvent" {
5635 factory DeviceOrientationEvent(String type, 5635 factory DeviceOrientationEvent(String type,
5636 {bool canBubble: true, bool cancelable: true, num alpha: 0, num beta: 0, 5636 {bool canBubble: true, bool cancelable: true, num alpha: 0, num beta: 0,
5637 num gamma: 0, bool absolute: false}) { 5637 num gamma: 0, bool absolute: false}) {
5638 var e = document.$dom_createEvent("DeviceOrientationEvent"); 5638 var e = document.$dom_createEvent("DeviceOrientationEvent");
5639 e.$dom_initDeviceOrientationEvent(type, canBubble, cancelable, alpha, beta, 5639 e.$dom_initDeviceOrientationEvent(type, canBubble, cancelable, alpha, beta,
5640 gamma, absolute); 5640 gamma, absolute);
5641 return e; 5641 return e;
5642 } 5642 }
5643 5643
5644 @DomName('DeviceOrientationEvent.absolute') 5644 @DomName('DeviceOrientationEvent.absolute')
(...skipping 18 matching lines...) Expand all
5663 void $dom_initDeviceOrientationEvent(String type, bool bubbles, bool cancelabl e, num alpha, num beta, num gamma, bool absolute) native; 5663 void $dom_initDeviceOrientationEvent(String type, bool bubbles, bool cancelabl e, num alpha, num beta, num gamma, bool absolute) native;
5664 5664
5665 } 5665 }
5666 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5666 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5667 // for details. All rights reserved. Use of this source code is governed by a 5667 // for details. All rights reserved. Use of this source code is governed by a
5668 // BSD-style license that can be found in the LICENSE file. 5668 // BSD-style license that can be found in the LICENSE file.
5669 5669
5670 5670
5671 @DocsEditable 5671 @DocsEditable
5672 @DomName('DeviceRotationRate') 5672 @DomName('DeviceRotationRate')
5673 class DeviceRotationRate native "*DeviceRotationRate" { 5673 class DeviceRotationRate native "DeviceRotationRate" {
5674 5674
5675 @DomName('DeviceRotationRate.alpha') 5675 @DomName('DeviceRotationRate.alpha')
5676 @DocsEditable 5676 @DocsEditable
5677 final num alpha; 5677 final num alpha;
5678 5678
5679 @DomName('DeviceRotationRate.beta') 5679 @DomName('DeviceRotationRate.beta')
5680 @DocsEditable 5680 @DocsEditable
5681 final num beta; 5681 final num beta;
5682 5682
5683 @DomName('DeviceRotationRate.gamma') 5683 @DomName('DeviceRotationRate.gamma')
5684 @DocsEditable 5684 @DocsEditable
5685 final num gamma; 5685 final num gamma;
5686 } 5686 }
5687 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5687 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5688 // for details. All rights reserved. Use of this source code is governed by a 5688 // for details. All rights reserved. Use of this source code is governed by a
5689 // BSD-style license that can be found in the LICENSE file. 5689 // BSD-style license that can be found in the LICENSE file.
5690 5690
5691 5691
5692 @DocsEditable 5692 @DocsEditable
5693 @DomName('HTMLDialogElement') 5693 @DomName('HTMLDialogElement')
5694 class DialogElement extends Element native "*HTMLDialogElement" { 5694 class DialogElement extends Element native "HTMLDialogElement" {
5695 5695
5696 @DomName('HTMLDialogElement.open') 5696 @DomName('HTMLDialogElement.open')
5697 @DocsEditable 5697 @DocsEditable
5698 bool open; 5698 bool open;
5699 5699
5700 @DomName('HTMLDialogElement.close') 5700 @DomName('HTMLDialogElement.close')
5701 @DocsEditable 5701 @DocsEditable
5702 void close() native; 5702 void close() native;
5703 5703
5704 @DomName('HTMLDialogElement.show') 5704 @DomName('HTMLDialogElement.show')
5705 @DocsEditable 5705 @DocsEditable
5706 void show() native; 5706 void show() native;
5707 5707
5708 @DomName('HTMLDialogElement.showModal') 5708 @DomName('HTMLDialogElement.showModal')
5709 @DocsEditable 5709 @DocsEditable
5710 void showModal() native; 5710 void showModal() native;
5711 } 5711 }
5712 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 5712 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
5713 // for details. All rights reserved. Use of this source code is governed by a 5713 // for details. All rights reserved. Use of this source code is governed by a
5714 // BSD-style license that can be found in the LICENSE file. 5714 // BSD-style license that can be found in the LICENSE file.
5715 5715
5716 5716
5717 @DomName('DirectoryEntry') 5717 @DomName('DirectoryEntry')
5718 class DirectoryEntry extends Entry native "*DirectoryEntry" { 5718 class DirectoryEntry extends Entry native "DirectoryEntry" {
5719 5719
5720 /** 5720 /**
5721 * Create a new directory with the specified `path`. If `exclusive` is true, 5721 * Create a new directory with the specified `path`. If `exclusive` is true,
5722 * the returned Future will complete with an error if a directory already 5722 * the returned Future will complete with an error if a directory already
5723 * exists with the specified `path`. 5723 * exists with the specified `path`.
5724 */ 5724 */
5725 Future<Entry> createDirectory(String path, {bool exclusive: false}) { 5725 Future<Entry> createDirectory(String path, {bool exclusive: false}) {
5726 return _getDirectory(path, options: 5726 return _getDirectory(path, options:
5727 {'create': true, 'exclusive': exclusive}); 5727 {'create': true, 'exclusive': exclusive});
5728 } 5728 }
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
5874 5874
5875 } 5875 }
5876 5876
5877 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5877 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5878 // for details. All rights reserved. Use of this source code is governed by a 5878 // for details. All rights reserved. Use of this source code is governed by a
5879 // BSD-style license that can be found in the LICENSE file. 5879 // BSD-style license that can be found in the LICENSE file.
5880 5880
5881 5881
5882 @DocsEditable 5882 @DocsEditable
5883 @DomName('DirectoryReader') 5883 @DomName('DirectoryReader')
5884 class DirectoryReader native "*DirectoryReader" { 5884 class DirectoryReader native "DirectoryReader" {
5885 5885
5886 @JSName('readEntries') 5886 @JSName('readEntries')
5887 @DomName('DirectoryReader.readEntries') 5887 @DomName('DirectoryReader.readEntries')
5888 @DocsEditable 5888 @DocsEditable
5889 void _readEntries(_EntriesCallback successCallback, [_ErrorCallback errorCallb ack]) native; 5889 void _readEntries(_EntriesCallback successCallback, [_ErrorCallback errorCallb ack]) native;
5890 5890
5891 @JSName('readEntries') 5891 @JSName('readEntries')
5892 @DomName('DirectoryReader.readEntries') 5892 @DomName('DirectoryReader.readEntries')
5893 @DocsEditable 5893 @DocsEditable
5894 Future<List<Entry>> readEntries() { 5894 Future<List<Entry>> readEntries() {
(...skipping 25 matching lines...) Expand all
5920 * div.text = 'Here's my new DivElem 5920 * div.text = 'Here's my new DivElem
5921 * document.body.elements.add(elem); 5921 * document.body.elements.add(elem);
5922 * 5922 *
5923 * See also: 5923 * See also:
5924 * 5924 *
5925 * * [HTML <div> element](http://www.w3.org/TR/html-markup/div.html) from W3C. 5925 * * [HTML <div> element](http://www.w3.org/TR/html-markup/div.html) from W3C.
5926 * * [Block-level element](http://www.w3.org/TR/CSS2/visuren.html#block-boxes) f rom W3C. 5926 * * [Block-level element](http://www.w3.org/TR/CSS2/visuren.html#block-boxes) f rom W3C.
5927 * * [Inline-level element](http://www.w3.org/TR/CSS2/visuren.html#inline-boxes) from W3C. 5927 * * [Inline-level element](http://www.w3.org/TR/CSS2/visuren.html#inline-boxes) from W3C.
5928 */ 5928 */
5929 @DomName('HTMLDivElement') 5929 @DomName('HTMLDivElement')
5930 class DivElement extends Element native "*HTMLDivElement" { 5930 class DivElement extends Element native "HTMLDivElement" {
5931 5931
5932 @DomName('HTMLDivElement.HTMLDivElement') 5932 @DomName('HTMLDivElement.HTMLDivElement')
5933 @DocsEditable 5933 @DocsEditable
5934 factory DivElement() => document.$dom_createElement("div"); 5934 factory DivElement() => document.$dom_createElement("div");
5935 } 5935 }
5936 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5936 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5937 // for details. All rights reserved. Use of this source code is governed by a 5937 // for details. All rights reserved. Use of this source code is governed by a
5938 // BSD-style license that can be found in the LICENSE file. 5938 // BSD-style license that can be found in the LICENSE file.
5939 5939
5940 5940
5941 /** 5941 /**
5942 * The base class for all documents. 5942 * The base class for all documents.
5943 * 5943 *
5944 * Each web page loaded in the browser has its own [Document] object, which is 5944 * Each web page loaded in the browser has its own [Document] object, which is
5945 * typically an [HtmlDocument]. 5945 * typically an [HtmlDocument].
5946 * 5946 *
5947 * If you aren't comfortable with DOM concepts, see the Dart tutorial 5947 * If you aren't comfortable with DOM concepts, see the Dart tutorial
5948 * [Target 2: Connect Dart & HTML](http://www.dartlang.org/docs/tutorials/connec t-dart-html/). 5948 * [Target 2: Connect Dart & HTML](http://www.dartlang.org/docs/tutorials/connec t-dart-html/).
5949 */ 5949 */
5950 @DomName('Document') 5950 @DomName('Document')
5951 class Document extends Node native "*Document" 5951 class Document extends Node native "Document"
5952 { 5952 {
5953 5953
5954 5954
5955 @DomName('Document.readystatechangeEvent') 5955 @DomName('Document.readystatechangeEvent')
5956 @DocsEditable 5956 @DocsEditable
5957 static const EventStreamProvider<Event> readyStateChangeEvent = const EventStr eamProvider<Event>('readystatechange'); 5957 static const EventStreamProvider<Event> readyStateChangeEvent = const EventStr eamProvider<Event>('readystatechange');
5958 5958
5959 @DomName('Document.selectionchangeEvent') 5959 @DomName('Document.selectionchangeEvent')
5960 @DocsEditable 5960 @DocsEditable
5961 static const EventStreamProvider<Event> selectionChangeEvent = const EventStre amProvider<Event>('selectionchange'); 5961 static const EventStreamProvider<Event> selectionChangeEvent = const EventStre amProvider<Event>('selectionchange');
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after
6534 List<Element> queryAll(String selectors) { 6534 List<Element> queryAll(String selectors) {
6535 return new _FrozenElementList._wrap($dom_querySelectorAll(selectors)); 6535 return new _FrozenElementList._wrap($dom_querySelectorAll(selectors));
6536 } 6536 }
6537 } 6537 }
6538 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 6538 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
6539 // for details. All rights reserved. Use of this source code is governed by a 6539 // for details. All rights reserved. Use of this source code is governed by a
6540 // BSD-style license that can be found in the LICENSE file. 6540 // BSD-style license that can be found in the LICENSE file.
6541 6541
6542 6542
6543 @DomName('DocumentFragment') 6543 @DomName('DocumentFragment')
6544 class DocumentFragment extends Node native "*DocumentFragment" { 6544 class DocumentFragment extends Node native "DocumentFragment" {
6545 factory DocumentFragment() => _DocumentFragmentFactoryProvider.createDocumentF ragment(); 6545 factory DocumentFragment() => _DocumentFragmentFactoryProvider.createDocumentF ragment();
6546 6546
6547 factory DocumentFragment.html(String html) => 6547 factory DocumentFragment.html(String html) =>
6548 _DocumentFragmentFactoryProvider.createDocumentFragment_html(html); 6548 _DocumentFragmentFactoryProvider.createDocumentFragment_html(html);
6549 6549
6550 factory DocumentFragment.svg(String svgContent) => 6550 factory DocumentFragment.svg(String svgContent) =>
6551 _DocumentFragmentFactoryProvider.createDocumentFragment_svg(svgContent); 6551 _DocumentFragmentFactoryProvider.createDocumentFragment_svg(svgContent);
6552 6552
6553 // Native field is used only by Dart code so does not lead to instantiation 6553 // Native field is used only by Dart code so does not lead to instantiation
6554 // of native classes 6554 // of native classes
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
6625 List<Node> $dom_querySelectorAll(String selectors) native; 6625 List<Node> $dom_querySelectorAll(String selectors) native;
6626 6626
6627 } 6627 }
6628 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6628 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6629 // for details. All rights reserved. Use of this source code is governed by a 6629 // for details. All rights reserved. Use of this source code is governed by a
6630 // BSD-style license that can be found in the LICENSE file. 6630 // BSD-style license that can be found in the LICENSE file.
6631 6631
6632 6632
6633 @DocsEditable 6633 @DocsEditable
6634 @DomName('DocumentType') 6634 @DomName('DocumentType')
6635 class DocumentType extends Node native "*DocumentType" { 6635 class DocumentType extends Node native "DocumentType" {
6636 } 6636 }
6637 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6637 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6638 // for details. All rights reserved. Use of this source code is governed by a 6638 // for details. All rights reserved. Use of this source code is governed by a
6639 // BSD-style license that can be found in the LICENSE file. 6639 // BSD-style license that can be found in the LICENSE file.
6640 6640
6641 6641
6642 @DocsEditable 6642 @DocsEditable
6643 @DomName('DOMError') 6643 @DomName('DOMError')
6644 class DomError native "*DOMError" { 6644 class DomError native "DOMError" {
6645 6645
6646 @DomName('DOMError.name') 6646 @DomName('DOMError.name')
6647 @DocsEditable 6647 @DocsEditable
6648 final String name; 6648 final String name;
6649 } 6649 }
6650 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 6650 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
6651 // for details. All rights reserved. Use of this source code is governed by a 6651 // for details. All rights reserved. Use of this source code is governed by a
6652 // BSD-style license that can be found in the LICENSE file. 6652 // BSD-style license that can be found in the LICENSE file.
6653 6653
6654 6654
6655 @DomName('DOMException') 6655 @DomName('DOMException')
6656 class DomException native "*DOMException" { 6656 class DomException native "DOMException" {
6657 6657
6658 static const String INDEX_SIZE = 'IndexSizeError'; 6658 static const String INDEX_SIZE = 'IndexSizeError';
6659 static const String HIERARCHY_REQUEST = 'HierarchyRequestError'; 6659 static const String HIERARCHY_REQUEST = 'HierarchyRequestError';
6660 static const String WRONG_DOCUMENT = 'WrongDocumentError'; 6660 static const String WRONG_DOCUMENT = 'WrongDocumentError';
6661 static const String INVALID_CHARACTER = 'InvalidCharacterError'; 6661 static const String INVALID_CHARACTER = 'InvalidCharacterError';
6662 static const String NO_MODIFICATION_ALLOWED = 'NoModificationAllowedError'; 6662 static const String NO_MODIFICATION_ALLOWED = 'NoModificationAllowedError';
6663 static const String NOT_FOUND = 'NotFoundError'; 6663 static const String NOT_FOUND = 'NotFoundError';
6664 static const String NOT_SUPPORTED = 'NotSupportedError'; 6664 static const String NOT_SUPPORTED = 'NotSupportedError';
6665 static const String INVALID_STATE = 'InvalidStateError'; 6665 static const String INVALID_STATE = 'InvalidStateError';
6666 static const String SYNTAX = 'SyntaxError'; 6666 static const String SYNTAX = 'SyntaxError';
(...skipping 30 matching lines...) Expand all
6697 String toString() native; 6697 String toString() native;
6698 6698
6699 } 6699 }
6700 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6700 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6701 // for details. All rights reserved. Use of this source code is governed by a 6701 // for details. All rights reserved. Use of this source code is governed by a
6702 // BSD-style license that can be found in the LICENSE file. 6702 // BSD-style license that can be found in the LICENSE file.
6703 6703
6704 6704
6705 @DocsEditable 6705 @DocsEditable
6706 @DomName('DOMImplementation') 6706 @DomName('DOMImplementation')
6707 class DomImplementation native "*DOMImplementation" { 6707 class DomImplementation native "DOMImplementation" {
6708 6708
6709 @JSName('createCSSStyleSheet') 6709 @JSName('createCSSStyleSheet')
6710 @DomName('DOMImplementation.createCSSStyleSheet') 6710 @DomName('DOMImplementation.createCSSStyleSheet')
6711 @DocsEditable 6711 @DocsEditable
6712 CssStyleSheet createCssStyleSheet(String title, String media) native; 6712 CssStyleSheet createCssStyleSheet(String title, String media) native;
6713 6713
6714 @DomName('DOMImplementation.createDocument') 6714 @DomName('DOMImplementation.createDocument')
6715 @DocsEditable 6715 @DocsEditable
6716 Document createDocument(String namespaceURI, String qualifiedName, DocumentTyp e doctype) native; 6716 Document createDocument(String namespaceURI, String qualifiedName, DocumentTyp e doctype) native;
6717 6717
(...skipping 10 matching lines...) Expand all
6728 @DocsEditable 6728 @DocsEditable
6729 bool hasFeature(String feature, String version) native; 6729 bool hasFeature(String feature, String version) native;
6730 } 6730 }
6731 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6731 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6732 // for details. All rights reserved. Use of this source code is governed by a 6732 // for details. All rights reserved. Use of this source code is governed by a
6733 // BSD-style license that can be found in the LICENSE file. 6733 // BSD-style license that can be found in the LICENSE file.
6734 6734
6735 6735
6736 @DocsEditable 6736 @DocsEditable
6737 @DomName('MimeType') 6737 @DomName('MimeType')
6738 class DomMimeType native "*MimeType" { 6738 class DomMimeType native "MimeType" {
6739 6739
6740 @DomName('DOMMimeType.description') 6740 @DomName('DOMMimeType.description')
6741 @DocsEditable 6741 @DocsEditable
6742 final String description; 6742 final String description;
6743 6743
6744 @DomName('DOMMimeType.enabledPlugin') 6744 @DomName('DOMMimeType.enabledPlugin')
6745 @DocsEditable 6745 @DocsEditable
6746 final DomPlugin enabledPlugin; 6746 final DomPlugin enabledPlugin;
6747 6747
6748 @DomName('DOMMimeType.suffixes') 6748 @DomName('DOMMimeType.suffixes')
6749 @DocsEditable 6749 @DocsEditable
6750 final String suffixes; 6750 final String suffixes;
6751 6751
6752 @DomName('DOMMimeType.type') 6752 @DomName('DOMMimeType.type')
6753 @DocsEditable 6753 @DocsEditable
6754 final String type; 6754 final String type;
6755 } 6755 }
6756 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6756 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6757 // for details. All rights reserved. Use of this source code is governed by a 6757 // for details. All rights reserved. Use of this source code is governed by a
6758 // BSD-style license that can be found in the LICENSE file. 6758 // BSD-style license that can be found in the LICENSE file.
6759 6759
6760 6760
6761 @DocsEditable 6761 @DocsEditable
6762 @DomName('MimeTypeArray') 6762 @DomName('MimeTypeArray')
6763 class DomMimeTypeArray implements JavaScriptIndexingBehavior, List<DomMimeType> native "*MimeTypeArray" { 6763 class DomMimeTypeArray implements JavaScriptIndexingBehavior, List<DomMimeType> native "MimeTypeArray" {
6764 6764
6765 @DomName('DOMMimeTypeArray.length') 6765 @DomName('DOMMimeTypeArray.length')
6766 @DocsEditable 6766 @DocsEditable
6767 int get length => JS("int", "#.length", this); 6767 int get length => JS("int", "#.length", this);
6768 6768
6769 DomMimeType operator[](int index) => JS("DomMimeType", "#[#]", this, index); 6769 DomMimeType operator[](int index) => JS("DomMimeType", "#[#]", this, index);
6770 6770
6771 void operator[]=(int index, DomMimeType value) { 6771 void operator[]=(int index, DomMimeType value) {
6772 throw new UnsupportedError("Cannot assign element of immutable List."); 6772 throw new UnsupportedError("Cannot assign element of immutable List.");
6773 } 6773 }
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
6974 @DocsEditable 6974 @DocsEditable
6975 DomMimeType namedItem(String name) native; 6975 DomMimeType namedItem(String name) native;
6976 } 6976 }
6977 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6977 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6978 // for details. All rights reserved. Use of this source code is governed by a 6978 // for details. All rights reserved. Use of this source code is governed by a
6979 // BSD-style license that can be found in the LICENSE file. 6979 // BSD-style license that can be found in the LICENSE file.
6980 6980
6981 6981
6982 @DocsEditable 6982 @DocsEditable
6983 @DomName('WebKitNamedFlowCollection') 6983 @DomName('WebKitNamedFlowCollection')
6984 class DomNamedFlowCollection native "*WebKitNamedFlowCollection" { 6984 class DomNamedFlowCollection native "WebKitNamedFlowCollection" {
6985 6985
6986 @DomName('DOMNamedFlowCollection.length') 6986 @DomName('DOMNamedFlowCollection.length')
6987 @DocsEditable 6987 @DocsEditable
6988 final int length; 6988 final int length;
6989 6989
6990 @DomName('DOMNamedFlowCollection.item') 6990 @DomName('DOMNamedFlowCollection.item')
6991 @DocsEditable 6991 @DocsEditable
6992 NamedFlow item(int index) native; 6992 NamedFlow item(int index) native;
6993 6993
6994 @DomName('DOMNamedFlowCollection.namedItem') 6994 @DomName('DOMNamedFlowCollection.namedItem')
6995 @DocsEditable 6995 @DocsEditable
6996 NamedFlow namedItem(String name) native; 6996 NamedFlow namedItem(String name) native;
6997 } 6997 }
6998 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6998 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6999 // for details. All rights reserved. Use of this source code is governed by a 6999 // for details. All rights reserved. Use of this source code is governed by a
7000 // BSD-style license that can be found in the LICENSE file. 7000 // BSD-style license that can be found in the LICENSE file.
7001 7001
7002 7002
7003 @DocsEditable 7003 @DocsEditable
7004 @DomName('DOMParser') 7004 @DomName('DOMParser')
7005 class DomParser native "*DOMParser" { 7005 class DomParser native "DOMParser" {
7006 7006
7007 @DomName('DOMParser.DOMParser') 7007 @DomName('DOMParser.DOMParser')
7008 @DocsEditable 7008 @DocsEditable
7009 factory DomParser() { 7009 factory DomParser() {
7010 return DomParser._create_1(); 7010 return DomParser._create_1();
7011 } 7011 }
7012 static DomParser _create_1() => JS('DomParser', 'new DOMParser()'); 7012 static DomParser _create_1() => JS('DomParser', 'new DOMParser()');
7013 7013
7014 @DomName('DOMParser.parseFromString') 7014 @DomName('DOMParser.parseFromString')
7015 @DocsEditable 7015 @DocsEditable
7016 Document parseFromString(String str, String contentType) native; 7016 Document parseFromString(String str, String contentType) native;
7017 } 7017 }
7018 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7018 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7019 // for details. All rights reserved. Use of this source code is governed by a 7019 // for details. All rights reserved. Use of this source code is governed by a
7020 // BSD-style license that can be found in the LICENSE file. 7020 // BSD-style license that can be found in the LICENSE file.
7021 7021
7022 7022
7023 @DocsEditable 7023 @DocsEditable
7024 @DomName('Path') 7024 @DomName('Path')
7025 class DomPath native "*Path" { 7025 class DomPath native "Path" {
7026 7026
7027 @DomName('DOMPath.DOMPath') 7027 @DomName('DOMPath.DOMPath')
7028 @DocsEditable 7028 @DocsEditable
7029 factory DomPath([path_OR_text]) { 7029 factory DomPath([path_OR_text]) {
7030 if (!?path_OR_text) { 7030 if (!?path_OR_text) {
7031 return DomPath._create_1(); 7031 return DomPath._create_1();
7032 } 7032 }
7033 if ((path_OR_text is DomPath || path_OR_text == null)) { 7033 if ((path_OR_text is DomPath || path_OR_text == null)) {
7034 return DomPath._create_2(path_OR_text); 7034 return DomPath._create_2(path_OR_text);
7035 } 7035 }
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
7074 @DocsEditable 7074 @DocsEditable
7075 void rect(num x, num y, num width, num height) native; 7075 void rect(num x, num y, num width, num height) native;
7076 } 7076 }
7077 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7077 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7078 // for details. All rights reserved. Use of this source code is governed by a 7078 // for details. All rights reserved. Use of this source code is governed by a
7079 // BSD-style license that can be found in the LICENSE file. 7079 // BSD-style license that can be found in the LICENSE file.
7080 7080
7081 7081
7082 @DocsEditable 7082 @DocsEditable
7083 @DomName('Plugin') 7083 @DomName('Plugin')
7084 class DomPlugin native "*Plugin" { 7084 class DomPlugin native "Plugin" {
7085 7085
7086 @DomName('DOMPlugin.description') 7086 @DomName('DOMPlugin.description')
7087 @DocsEditable 7087 @DocsEditable
7088 final String description; 7088 final String description;
7089 7089
7090 @DomName('DOMPlugin.filename') 7090 @DomName('DOMPlugin.filename')
7091 @DocsEditable 7091 @DocsEditable
7092 final String filename; 7092 final String filename;
7093 7093
7094 @DomName('DOMPlugin.length') 7094 @DomName('DOMPlugin.length')
(...skipping 12 matching lines...) Expand all
7107 @DocsEditable 7107 @DocsEditable
7108 DomMimeType namedItem(String name) native; 7108 DomMimeType namedItem(String name) native;
7109 } 7109 }
7110 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7110 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7111 // for details. All rights reserved. Use of this source code is governed by a 7111 // for details. All rights reserved. Use of this source code is governed by a
7112 // BSD-style license that can be found in the LICENSE file. 7112 // BSD-style license that can be found in the LICENSE file.
7113 7113
7114 7114
7115 @DocsEditable 7115 @DocsEditable
7116 @DomName('PluginArray') 7116 @DomName('PluginArray')
7117 class DomPluginArray implements JavaScriptIndexingBehavior, List<DomPlugin> nati ve "*PluginArray" { 7117 class DomPluginArray implements JavaScriptIndexingBehavior, List<DomPlugin> nati ve "PluginArray" {
7118 7118
7119 @DomName('DOMPluginArray.length') 7119 @DomName('DOMPluginArray.length')
7120 @DocsEditable 7120 @DocsEditable
7121 int get length => JS("int", "#.length", this); 7121 int get length => JS("int", "#.length", this);
7122 7122
7123 DomPlugin operator[](int index) => JS("DomPlugin", "#[#]", this, index); 7123 DomPlugin operator[](int index) => JS("DomPlugin", "#[#]", this, index);
7124 7124
7125 void operator[]=(int index, DomPlugin value) { 7125 void operator[]=(int index, DomPlugin value) {
7126 throw new UnsupportedError("Cannot assign element of immutable List."); 7126 throw new UnsupportedError("Cannot assign element of immutable List.");
7127 } 7127 }
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
7332 @DocsEditable 7332 @DocsEditable
7333 void refresh(bool reload) native; 7333 void refresh(bool reload) native;
7334 } 7334 }
7335 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7335 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7336 // for details. All rights reserved. Use of this source code is governed by a 7336 // for details. All rights reserved. Use of this source code is governed by a
7337 // BSD-style license that can be found in the LICENSE file. 7337 // BSD-style license that can be found in the LICENSE file.
7338 7338
7339 7339
7340 @DocsEditable 7340 @DocsEditable
7341 @DomName('SecurityPolicy') 7341 @DomName('SecurityPolicy')
7342 class DomSecurityPolicy native "*SecurityPolicy" { 7342 class DomSecurityPolicy native "SecurityPolicy" {
7343 7343
7344 @DomName('DOMSecurityPolicy.allowsEval') 7344 @DomName('DOMSecurityPolicy.allowsEval')
7345 @DocsEditable 7345 @DocsEditable
7346 final bool allowsEval; 7346 final bool allowsEval;
7347 7347
7348 @DomName('DOMSecurityPolicy.allowsInlineScript') 7348 @DomName('DOMSecurityPolicy.allowsInlineScript')
7349 @DocsEditable 7349 @DocsEditable
7350 final bool allowsInlineScript; 7350 final bool allowsInlineScript;
7351 7351
7352 @DomName('DOMSecurityPolicy.allowsInlineStyle') 7352 @DomName('DOMSecurityPolicy.allowsInlineStyle')
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
7403 @DocsEditable 7403 @DocsEditable
7404 bool allowsStyleFrom(String url) native; 7404 bool allowsStyleFrom(String url) native;
7405 } 7405 }
7406 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7406 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7407 // for details. All rights reserved. Use of this source code is governed by a 7407 // for details. All rights reserved. Use of this source code is governed by a
7408 // BSD-style license that can be found in the LICENSE file. 7408 // BSD-style license that can be found in the LICENSE file.
7409 7409
7410 7410
7411 @DocsEditable 7411 @DocsEditable
7412 @DomName('Selection') 7412 @DomName('Selection')
7413 class DomSelection native "*Selection" { 7413 class DomSelection native "Selection" {
7414 7414
7415 @DomName('DOMSelection.anchorNode') 7415 @DomName('DOMSelection.anchorNode')
7416 @DocsEditable 7416 @DocsEditable
7417 final Node anchorNode; 7417 final Node anchorNode;
7418 7418
7419 @DomName('DOMSelection.anchorOffset') 7419 @DomName('DOMSelection.anchorOffset')
7420 @DocsEditable 7420 @DocsEditable
7421 final int anchorOffset; 7421 final int anchorOffset;
7422 7422
7423 @DomName('DOMSelection.baseNode') 7423 @DomName('DOMSelection.baseNode')
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
7516 @DocsEditable 7516 @DocsEditable
7517 String toString() native; 7517 String toString() native;
7518 } 7518 }
7519 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7519 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7520 // for details. All rights reserved. Use of this source code is governed by a 7520 // for details. All rights reserved. Use of this source code is governed by a
7521 // BSD-style license that can be found in the LICENSE file. 7521 // BSD-style license that can be found in the LICENSE file.
7522 7522
7523 7523
7524 @DocsEditable 7524 @DocsEditable
7525 @DomName('DOMSettableTokenList') 7525 @DomName('DOMSettableTokenList')
7526 class DomSettableTokenList extends DomTokenList native "*DOMSettableTokenList" { 7526 class DomSettableTokenList extends DomTokenList native "DOMSettableTokenList" {
7527 7527
7528 @DomName('DOMSettableTokenList.value') 7528 @DomName('DOMSettableTokenList.value')
7529 @DocsEditable 7529 @DocsEditable
7530 String value; 7530 String value;
7531 } 7531 }
7532 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7532 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7533 // for details. All rights reserved. Use of this source code is governed by a 7533 // for details. All rights reserved. Use of this source code is governed by a
7534 // BSD-style license that can be found in the LICENSE file. 7534 // BSD-style license that can be found in the LICENSE file.
7535 7535
7536 7536
7537 @DocsEditable 7537 @DocsEditable
7538 @DomName('DOMStringList') 7538 @DomName('DOMStringList')
7539 class DomStringList implements JavaScriptIndexingBehavior, List<String> native " *DOMStringList" { 7539 class DomStringList implements JavaScriptIndexingBehavior, List<String> native " DOMStringList" {
7540 7540
7541 @DomName('DOMStringList.length') 7541 @DomName('DOMStringList.length')
7542 @DocsEditable 7542 @DocsEditable
7543 int get length => JS("int", "#.length", this); 7543 int get length => JS("int", "#.length", this);
7544 7544
7545 String operator[](int index) => JS("String", "#[#]", this, index); 7545 String operator[](int index) => JS("String", "#[#]", this, index);
7546 7546
7547 void operator[]=(int index, String value) { 7547 void operator[]=(int index, String value) {
7548 throw new UnsupportedError("Cannot assign element of immutable List."); 7548 throw new UnsupportedError("Cannot assign element of immutable List.");
7549 } 7549 }
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
7758 @DomName('DOMStringMap') 7758 @DomName('DOMStringMap')
7759 abstract class DomStringMap { 7759 abstract class DomStringMap {
7760 } 7760 }
7761 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7761 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7762 // for details. All rights reserved. Use of this source code is governed by a 7762 // for details. All rights reserved. Use of this source code is governed by a
7763 // BSD-style license that can be found in the LICENSE file. 7763 // BSD-style license that can be found in the LICENSE file.
7764 7764
7765 7765
7766 @DocsEditable 7766 @DocsEditable
7767 @DomName('DOMTokenList') 7767 @DomName('DOMTokenList')
7768 class DomTokenList native "*DOMTokenList" { 7768 class DomTokenList native "DOMTokenList" {
7769 7769
7770 @DomName('DOMTokenList.length') 7770 @DomName('DOMTokenList.length')
7771 @DocsEditable 7771 @DocsEditable
7772 final int length; 7772 final int length;
7773 7773
7774 @DomName('DOMTokenList.contains') 7774 @DomName('DOMTokenList.contains')
7775 @DocsEditable 7775 @DocsEditable
7776 bool contains(String token) native; 7776 bool contains(String token) native;
7777 7777
7778 @DomName('DOMTokenList.item') 7778 @DomName('DOMTokenList.item')
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
8182 void writeClasses(Set<String> s) { 8182 void writeClasses(Set<String> s) {
8183 List list = new List.from(s); 8183 List list = new List.from(s);
8184 _element.$dom_className = s.join(' '); 8184 _element.$dom_className = s.join(' ');
8185 } 8185 }
8186 } 8186 }
8187 8187
8188 /** 8188 /**
8189 * An abstract class, which all HTML elements extend. 8189 * An abstract class, which all HTML elements extend.
8190 */ 8190 */
8191 @DomName('Element') 8191 @DomName('Element')
8192 abstract class Element extends Node implements ElementTraversal native "*Element " { 8192 abstract class Element extends Node implements ElementTraversal native "Element" {
8193 8193
8194 /** 8194 /**
8195 * Creates an HTML element from a valid fragment of HTML. 8195 * Creates an HTML element from a valid fragment of HTML.
8196 * 8196 *
8197 * The [html] fragment must represent valid HTML with a single element root, 8197 * The [html] fragment must represent valid HTML with a single element root,
8198 * which will be parsed and returned. 8198 * which will be parsed and returned.
8199 * 8199 *
8200 * Important: the contents of [html] should not contain any user-supplied 8200 * Important: the contents of [html] should not contain any user-supplied
8201 * data. Without strict data validation it is impossible to prevent script 8201 * data. Without strict data validation it is impossible to prevent script
8202 * injection exploits. 8202 * injection exploits.
(...skipping 1320 matching lines...) Expand 10 before | Expand all | Expand 10 after
9523 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9523 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9524 // for details. All rights reserved. Use of this source code is governed by a 9524 // for details. All rights reserved. Use of this source code is governed by a
9525 // BSD-style license that can be found in the LICENSE file. 9525 // BSD-style license that can be found in the LICENSE file.
9526 9526
9527 9527
9528 @DocsEditable 9528 @DocsEditable
9529 @DomName('HTMLEmbedElement') 9529 @DomName('HTMLEmbedElement')
9530 @SupportedBrowser(SupportedBrowser.CHROME) 9530 @SupportedBrowser(SupportedBrowser.CHROME)
9531 @SupportedBrowser(SupportedBrowser.IE) 9531 @SupportedBrowser(SupportedBrowser.IE)
9532 @SupportedBrowser(SupportedBrowser.SAFARI) 9532 @SupportedBrowser(SupportedBrowser.SAFARI)
9533 class EmbedElement extends Element native "*HTMLEmbedElement" { 9533 class EmbedElement extends Element native "HTMLEmbedElement" {
9534 9534
9535 @DomName('HTMLEmbedElement.HTMLEmbedElement') 9535 @DomName('HTMLEmbedElement.HTMLEmbedElement')
9536 @DocsEditable 9536 @DocsEditable
9537 factory EmbedElement() => document.$dom_createElement("embed"); 9537 factory EmbedElement() => document.$dom_createElement("embed");
9538 9538
9539 /// Checks if this type is supported on the current platform. 9539 /// Checks if this type is supported on the current platform.
9540 static bool get supported => Element.isTagSupported('embed'); 9540 static bool get supported => Element.isTagSupported('embed');
9541 9541
9542 @DomName('HTMLEmbedElement.align') 9542 @DomName('HTMLEmbedElement.align')
9543 @DocsEditable 9543 @DocsEditable
(...skipping 19 matching lines...) Expand all
9563 @DocsEditable 9563 @DocsEditable
9564 String width; 9564 String width;
9565 } 9565 }
9566 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9566 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9567 // for details. All rights reserved. Use of this source code is governed by a 9567 // for details. All rights reserved. Use of this source code is governed by a
9568 // BSD-style license that can be found in the LICENSE file. 9568 // BSD-style license that can be found in the LICENSE file.
9569 9569
9570 9570
9571 @DocsEditable 9571 @DocsEditable
9572 @DomName('EntityReference') 9572 @DomName('EntityReference')
9573 class EntityReference extends Node native "*EntityReference" { 9573 class EntityReference extends Node native "EntityReference" {
9574 } 9574 }
9575 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9575 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9576 // for details. All rights reserved. Use of this source code is governed by a 9576 // for details. All rights reserved. Use of this source code is governed by a
9577 // BSD-style license that can be found in the LICENSE file. 9577 // BSD-style license that can be found in the LICENSE file.
9578 9578
9579 // WARNING: Do not edit - generated code. 9579 // WARNING: Do not edit - generated code.
9580 9580
9581 9581
9582 typedef void _EntriesCallback(List<Entry> entries); 9582 typedef void _EntriesCallback(List<Entry> entries);
9583 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9583 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9584 // for details. All rights reserved. Use of this source code is governed by a 9584 // for details. All rights reserved. Use of this source code is governed by a
9585 // BSD-style license that can be found in the LICENSE file. 9585 // BSD-style license that can be found in the LICENSE file.
9586 9586
9587 9587
9588 @DocsEditable 9588 @DocsEditable
9589 @DomName('Entry') 9589 @DomName('Entry')
9590 class Entry native "*Entry" { 9590 class Entry native "Entry" {
9591 9591
9592 @DomName('Entry.filesystem') 9592 @DomName('Entry.filesystem')
9593 @DocsEditable 9593 @DocsEditable
9594 final FileSystem filesystem; 9594 final FileSystem filesystem;
9595 9595
9596 @DomName('Entry.fullPath') 9596 @DomName('Entry.fullPath')
9597 @DocsEditable 9597 @DocsEditable
9598 final String fullPath; 9598 final String fullPath;
9599 9599
9600 @DomName('Entry.isDirectory') 9600 @DomName('Entry.isDirectory')
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
9710 9710
9711 9711
9712 typedef void _ErrorCallback(FileError error); 9712 typedef void _ErrorCallback(FileError error);
9713 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9713 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9714 // for details. All rights reserved. Use of this source code is governed by a 9714 // for details. All rights reserved. Use of this source code is governed by a
9715 // BSD-style license that can be found in the LICENSE file. 9715 // BSD-style license that can be found in the LICENSE file.
9716 9716
9717 9717
9718 @DocsEditable 9718 @DocsEditable
9719 @DomName('ErrorEvent') 9719 @DomName('ErrorEvent')
9720 class ErrorEvent extends Event native "*ErrorEvent" { 9720 class ErrorEvent extends Event native "ErrorEvent" {
9721 9721
9722 @DomName('ErrorEvent.filename') 9722 @DomName('ErrorEvent.filename')
9723 @DocsEditable 9723 @DocsEditable
9724 final String filename; 9724 final String filename;
9725 9725
9726 @DomName('ErrorEvent.lineno') 9726 @DomName('ErrorEvent.lineno')
9727 @DocsEditable 9727 @DocsEditable
9728 final int lineno; 9728 final int lineno;
9729 9729
9730 @DomName('ErrorEvent.message') 9730 @DomName('ErrorEvent.message')
9731 @DocsEditable 9731 @DocsEditable
9732 final String message; 9732 final String message;
9733 } 9733 }
9734 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9734 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9735 // for details. All rights reserved. Use of this source code is governed by a 9735 // for details. All rights reserved. Use of this source code is governed by a
9736 // BSD-style license that can be found in the LICENSE file. 9736 // BSD-style license that can be found in the LICENSE file.
9737 9737
9738 // WARNING: Do not edit - generated code. 9738 // WARNING: Do not edit - generated code.
9739 9739
9740 9740
9741 @DomName('Event') 9741 @DomName('Event')
9742 class Event native "*Event" { 9742 class Event native "Event" {
9743 // In JS, canBubble and cancelable are technically required parameters to 9743 // In JS, canBubble and cancelable are technically required parameters to
9744 // init*Event. In practice, though, if they aren't provided they simply 9744 // init*Event. In practice, though, if they aren't provided they simply
9745 // default to false (since that's Boolean(undefined)). 9745 // default to false (since that's Boolean(undefined)).
9746 // 9746 //
9747 // Contrary to JS, we default canBubble and cancelable to true, since that's 9747 // Contrary to JS, we default canBubble and cancelable to true, since that's
9748 // what people want most of the time anyway. 9748 // what people want most of the time anyway.
9749 factory Event(String type, 9749 factory Event(String type,
9750 {bool canBubble: true, bool cancelable: true}) { 9750 {bool canBubble: true, bool cancelable: true}) {
9751 return new Event.eventType('Event', type, canBubble: canBubble, 9751 return new Event.eventType('Event', type, canBubble: canBubble,
9752 cancelable: canBubble); 9752 cancelable: canBubble);
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
9876 void stopPropagation() native; 9876 void stopPropagation() native;
9877 9877
9878 } 9878 }
9879 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9879 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9880 // for details. All rights reserved. Use of this source code is governed by a 9880 // for details. All rights reserved. Use of this source code is governed by a
9881 // BSD-style license that can be found in the LICENSE file. 9881 // BSD-style license that can be found in the LICENSE file.
9882 9882
9883 9883
9884 @DocsEditable 9884 @DocsEditable
9885 @DomName('EventException') 9885 @DomName('EventException')
9886 class EventException native "*EventException" { 9886 class EventException native "EventException" {
9887 9887
9888 static const int DISPATCH_REQUEST_ERR = 1; 9888 static const int DISPATCH_REQUEST_ERR = 1;
9889 9889
9890 static const int UNSPECIFIED_EVENT_TYPE_ERR = 0; 9890 static const int UNSPECIFIED_EVENT_TYPE_ERR = 0;
9891 9891
9892 @DomName('EventException.code') 9892 @DomName('EventException.code')
9893 @DocsEditable 9893 @DocsEditable
9894 final int code; 9894 final int code;
9895 9895
9896 @DomName('EventException.message') 9896 @DomName('EventException.message')
9897 @DocsEditable 9897 @DocsEditable
9898 final String message; 9898 final String message;
9899 9899
9900 @DomName('EventException.name') 9900 @DomName('EventException.name')
9901 @DocsEditable 9901 @DocsEditable
9902 final String name; 9902 final String name;
9903 9903
9904 @DomName('EventException.toString') 9904 @DomName('EventException.toString')
9905 @DocsEditable 9905 @DocsEditable
9906 String toString() native; 9906 String toString() native;
9907 } 9907 }
9908 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 9908 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
9909 // for details. All rights reserved. Use of this source code is governed by a 9909 // for details. All rights reserved. Use of this source code is governed by a
9910 // BSD-style license that can be found in the LICENSE file. 9910 // BSD-style license that can be found in the LICENSE file.
9911 9911
9912 9912
9913 @DomName('EventSource') 9913 @DomName('EventSource')
9914 class EventSource extends EventTarget native "*EventSource" { 9914 class EventSource extends EventTarget native "EventSource" {
9915 factory EventSource(String title, {withCredentials: false}) { 9915 factory EventSource(String title, {withCredentials: false}) {
9916 var parsedOptions = { 9916 var parsedOptions = {
9917 'withCredentials': withCredentials, 9917 'withCredentials': withCredentials,
9918 }; 9918 };
9919 return EventSource._factoryEventSource(title, parsedOptions); 9919 return EventSource._factoryEventSource(title, parsedOptions);
9920 } 9920 }
9921 9921
9922 @DomName('EventSource.errorEvent') 9922 @DomName('EventSource.errorEvent')
9923 @DocsEditable 9923 @DocsEditable
9924 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error'); 9924 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error');
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
10044 } 10044 }
10045 10045
10046 /** 10046 /**
10047 * Base class for all browser objects that support events. 10047 * Base class for all browser objects that support events.
10048 * 10048 *
10049 * Use the [on] property to add, and remove events (rather than 10049 * Use the [on] property to add, and remove events (rather than
10050 * [$dom_addEventListener] and [$dom_removeEventListener] 10050 * [$dom_addEventListener] and [$dom_removeEventListener]
10051 * for compile-time type checks and a more concise API. 10051 * for compile-time type checks and a more concise API.
10052 */ 10052 */
10053 @DomName('EventTarget') 10053 @DomName('EventTarget')
10054 class EventTarget native "*EventTarget" { 10054 class EventTarget native "EventTarget" {
10055 10055
10056 /** 10056 /**
10057 * This is an ease-of-use accessor for event streams which should only be 10057 * This is an ease-of-use accessor for event streams which should only be
10058 * used when an explicit accessor is not available. 10058 * used when an explicit accessor is not available.
10059 */ 10059 */
10060 Events get on => new Events(this); 10060 Events get on => new Events(this);
10061 10061
10062 @JSName('addEventListener') 10062 @JSName('addEventListener')
10063 @DomName('EventTarget.addEventListener') 10063 @DomName('EventTarget.addEventListener')
10064 @DocsEditable 10064 @DocsEditable
10065 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; 10065 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native;
10066 10066
10067 @DomName('EventTarget.dispatchEvent') 10067 @DomName('EventTarget.dispatchEvent')
10068 @DocsEditable 10068 @DocsEditable
10069 bool dispatchEvent(Event event) native; 10069 bool dispatchEvent(Event event) native;
10070 10070
10071 @JSName('removeEventListener') 10071 @JSName('removeEventListener')
10072 @DomName('EventTarget.removeEventListener') 10072 @DomName('EventTarget.removeEventListener')
10073 @DocsEditable 10073 @DocsEditable
10074 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native; 10074 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native;
10075 10075
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 @DocsEditable 10082 @DocsEditable
10083 @DomName('HTMLFieldSetElement') 10083 @DomName('HTMLFieldSetElement')
10084 class FieldSetElement extends Element native "*HTMLFieldSetElement" { 10084 class FieldSetElement extends Element native "HTMLFieldSetElement" {
10085 10085
10086 @DomName('HTMLFieldSetElement.HTMLFieldSetElement') 10086 @DomName('HTMLFieldSetElement.HTMLFieldSetElement')
10087 @DocsEditable 10087 @DocsEditable
10088 factory FieldSetElement() => document.$dom_createElement("fieldset"); 10088 factory FieldSetElement() => document.$dom_createElement("fieldset");
10089 10089
10090 @DomName('HTMLFieldSetElement.disabled') 10090 @DomName('HTMLFieldSetElement.disabled')
10091 @DocsEditable 10091 @DocsEditable
10092 bool disabled; 10092 bool disabled;
10093 10093
10094 @DomName('HTMLFieldSetElement.elements') 10094 @DomName('HTMLFieldSetElement.elements')
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
10127 @DocsEditable 10127 @DocsEditable
10128 void setCustomValidity(String error) native; 10128 void setCustomValidity(String error) native;
10129 } 10129 }
10130 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10130 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10131 // for details. All rights reserved. Use of this source code is governed by a 10131 // for details. All rights reserved. Use of this source code is governed by a
10132 // BSD-style license that can be found in the LICENSE file. 10132 // BSD-style license that can be found in the LICENSE file.
10133 10133
10134 10134
10135 @DocsEditable 10135 @DocsEditable
10136 @DomName('File') 10136 @DomName('File')
10137 class File extends Blob native "*File" { 10137 class File extends Blob native "File" {
10138 10138
10139 DateTime get lastModifiedDate => _convertNativeToDart_DateTime(this._get_lastM odifiedDate); 10139 DateTime get lastModifiedDate => _convertNativeToDart_DateTime(this._get_lastM odifiedDate);
10140 @JSName('lastModifiedDate') 10140 @JSName('lastModifiedDate')
10141 @DomName('File.lastModifiedDate') 10141 @DomName('File.lastModifiedDate')
10142 @DocsEditable 10142 @DocsEditable
10143 final dynamic _get_lastModifiedDate; 10143 final dynamic _get_lastModifiedDate;
10144 10144
10145 @DomName('File.name') 10145 @DomName('File.name')
10146 @DocsEditable 10146 @DocsEditable
10147 final String name; 10147 final String name;
(...skipping 14 matching lines...) Expand all
10162 10162
10163 10163
10164 typedef void _FileCallback(File file); 10164 typedef void _FileCallback(File file);
10165 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10165 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10166 // for details. All rights reserved. Use of this source code is governed by a 10166 // for details. All rights reserved. Use of this source code is governed by a
10167 // BSD-style license that can be found in the LICENSE file. 10167 // BSD-style license that can be found in the LICENSE file.
10168 10168
10169 10169
10170 @DocsEditable 10170 @DocsEditable
10171 @DomName('FileEntry') 10171 @DomName('FileEntry')
10172 class FileEntry extends Entry native "*FileEntry" { 10172 class FileEntry extends Entry native "FileEntry" {
10173 10173
10174 @JSName('createWriter') 10174 @JSName('createWriter')
10175 @DomName('FileEntry.createWriter') 10175 @DomName('FileEntry.createWriter')
10176 @DocsEditable 10176 @DocsEditable
10177 void _createWriter(_FileWriterCallback successCallback, [_ErrorCallback errorC allback]) native; 10177 void _createWriter(_FileWriterCallback successCallback, [_ErrorCallback errorC allback]) native;
10178 10178
10179 @JSName('createWriter') 10179 @JSName('createWriter')
10180 @DomName('FileEntry.createWriter') 10180 @DomName('FileEntry.createWriter')
10181 @DocsEditable 10181 @DocsEditable
10182 Future<FileWriter> createWriter() { 10182 Future<FileWriter> createWriter() {
(...skipping 20 matching lines...) Expand all
10203 return completer.future; 10203 return completer.future;
10204 } 10204 }
10205 } 10205 }
10206 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10206 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10207 // for details. All rights reserved. Use of this source code is governed by a 10207 // for details. All rights reserved. Use of this source code is governed by a
10208 // BSD-style license that can be found in the LICENSE file. 10208 // BSD-style license that can be found in the LICENSE file.
10209 10209
10210 10210
10211 @DocsEditable 10211 @DocsEditable
10212 @DomName('FileError') 10212 @DomName('FileError')
10213 class FileError native "*FileError" { 10213 class FileError native "FileError" {
10214 10214
10215 static const int ABORT_ERR = 3; 10215 static const int ABORT_ERR = 3;
10216 10216
10217 static const int ENCODING_ERR = 5; 10217 static const int ENCODING_ERR = 5;
10218 10218
10219 static const int INVALID_MODIFICATION_ERR = 9; 10219 static const int INVALID_MODIFICATION_ERR = 9;
10220 10220
10221 static const int INVALID_STATE_ERR = 7; 10221 static const int INVALID_STATE_ERR = 7;
10222 10222
10223 static const int NOT_FOUND_ERR = 1; 10223 static const int NOT_FOUND_ERR = 1;
(...skipping 16 matching lines...) Expand all
10240 @DocsEditable 10240 @DocsEditable
10241 final int code; 10241 final int code;
10242 } 10242 }
10243 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10243 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10244 // for details. All rights reserved. Use of this source code is governed by a 10244 // for details. All rights reserved. Use of this source code is governed by a
10245 // BSD-style license that can be found in the LICENSE file. 10245 // BSD-style license that can be found in the LICENSE file.
10246 10246
10247 10247
10248 @DocsEditable 10248 @DocsEditable
10249 @DomName('FileException') 10249 @DomName('FileException')
10250 class FileException native "*FileException" { 10250 class FileException native "FileException" {
10251 10251
10252 static const int ABORT_ERR = 3; 10252 static const int ABORT_ERR = 3;
10253 10253
10254 static const int ENCODING_ERR = 5; 10254 static const int ENCODING_ERR = 5;
10255 10255
10256 static const int INVALID_MODIFICATION_ERR = 9; 10256 static const int INVALID_MODIFICATION_ERR = 9;
10257 10257
10258 static const int INVALID_STATE_ERR = 7; 10258 static const int INVALID_STATE_ERR = 7;
10259 10259
10260 static const int NOT_FOUND_ERR = 1; 10260 static const int NOT_FOUND_ERR = 1;
(...skipping 28 matching lines...) Expand all
10289 @DocsEditable 10289 @DocsEditable
10290 String toString() native; 10290 String toString() native;
10291 } 10291 }
10292 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10292 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10293 // for details. All rights reserved. Use of this source code is governed by a 10293 // for details. All rights reserved. Use of this source code is governed by a
10294 // BSD-style license that can be found in the LICENSE file. 10294 // BSD-style license that can be found in the LICENSE file.
10295 10295
10296 10296
10297 @DocsEditable 10297 @DocsEditable
10298 @DomName('FileList') 10298 @DomName('FileList')
10299 class FileList implements JavaScriptIndexingBehavior, List<File> native "*FileLi st" { 10299 class FileList implements JavaScriptIndexingBehavior, List<File> native "FileLis t" {
10300 10300
10301 @DomName('FileList.length') 10301 @DomName('FileList.length')
10302 @DocsEditable 10302 @DocsEditable
10303 int get length => JS("int", "#.length", this); 10303 int get length => JS("int", "#.length", this);
10304 10304
10305 File operator[](int index) => JS("File", "#[#]", this, index); 10305 File operator[](int index) => JS("File", "#[#]", this, index);
10306 10306
10307 void operator[]=(int index, File value) { 10307 void operator[]=(int index, File value) {
10308 throw new UnsupportedError("Cannot assign element of immutable List."); 10308 throw new UnsupportedError("Cannot assign element of immutable List.");
10309 } 10309 }
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
10506 @DocsEditable 10506 @DocsEditable
10507 File item(int index) native; 10507 File item(int index) native;
10508 } 10508 }
10509 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10509 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10510 // for details. All rights reserved. Use of this source code is governed by a 10510 // for details. All rights reserved. Use of this source code is governed by a
10511 // BSD-style license that can be found in the LICENSE file. 10511 // BSD-style license that can be found in the LICENSE file.
10512 10512
10513 10513
10514 @DocsEditable 10514 @DocsEditable
10515 @DomName('FileReader') 10515 @DomName('FileReader')
10516 class FileReader extends EventTarget native "*FileReader" { 10516 class FileReader extends EventTarget native "FileReader" {
10517 10517
10518 @DomName('FileReader.abortEvent') 10518 @DomName('FileReader.abortEvent')
10519 @DocsEditable 10519 @DocsEditable
10520 static const EventStreamProvider<ProgressEvent> abortEvent = const EventStream Provider<ProgressEvent>('abort'); 10520 static const EventStreamProvider<ProgressEvent> abortEvent = const EventStream Provider<ProgressEvent>('abort');
10521 10521
10522 @DomName('FileReader.errorEvent') 10522 @DomName('FileReader.errorEvent')
10523 @DocsEditable 10523 @DocsEditable
10524 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error'); 10524 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error');
10525 10525
10526 @DomName('FileReader.loadEvent') 10526 @DomName('FileReader.loadEvent')
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
10626 } 10626 }
10627 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10627 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10628 // for details. All rights reserved. Use of this source code is governed by a 10628 // for details. All rights reserved. Use of this source code is governed by a
10629 // BSD-style license that can be found in the LICENSE file. 10629 // BSD-style license that can be found in the LICENSE file.
10630 10630
10631 10631
10632 @DocsEditable 10632 @DocsEditable
10633 @DomName('DOMFileSystem') 10633 @DomName('DOMFileSystem')
10634 @SupportedBrowser(SupportedBrowser.CHROME) 10634 @SupportedBrowser(SupportedBrowser.CHROME)
10635 @Experimental 10635 @Experimental
10636 class FileSystem native "*DOMFileSystem" { 10636 class FileSystem native "DOMFileSystem" {
10637 10637
10638 /// Checks if this type is supported on the current platform. 10638 /// Checks if this type is supported on the current platform.
10639 static bool get supported => JS('bool', '!!(window.webkitRequestFileSystem)'); 10639 static bool get supported => JS('bool', '!!(window.webkitRequestFileSystem)');
10640 10640
10641 @DomName('DOMFileSystem.name') 10641 @DomName('DOMFileSystem.name')
10642 @DocsEditable 10642 @DocsEditable
10643 final String name; 10643 final String name;
10644 10644
10645 @DomName('DOMFileSystem.root') 10645 @DomName('DOMFileSystem.root')
10646 @DocsEditable 10646 @DocsEditable
10647 final DirectoryEntry root; 10647 final DirectoryEntry root;
10648 } 10648 }
10649 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10649 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10650 // for details. All rights reserved. Use of this source code is governed by a 10650 // for details. All rights reserved. Use of this source code is governed by a
10651 // BSD-style license that can be found in the LICENSE file. 10651 // BSD-style license that can be found in the LICENSE file.
10652 10652
10653 // WARNING: Do not edit - generated code. 10653 // WARNING: Do not edit - generated code.
10654 10654
10655 10655
10656 typedef void _FileSystemCallback(FileSystem fileSystem); 10656 typedef void _FileSystemCallback(FileSystem fileSystem);
10657 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10657 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10658 // for details. All rights reserved. Use of this source code is governed by a 10658 // for details. All rights reserved. Use of this source code is governed by a
10659 // BSD-style license that can be found in the LICENSE file. 10659 // BSD-style license that can be found in the LICENSE file.
10660 10660
10661 10661
10662 @DocsEditable 10662 @DocsEditable
10663 @DomName('FileWriter') 10663 @DomName('FileWriter')
10664 class FileWriter extends EventTarget native "*FileWriter" { 10664 class FileWriter extends EventTarget native "FileWriter" {
10665 10665
10666 @DomName('FileWriter.abortEvent') 10666 @DomName('FileWriter.abortEvent')
10667 @DocsEditable 10667 @DocsEditable
10668 static const EventStreamProvider<ProgressEvent> abortEvent = const EventStream Provider<ProgressEvent>('abort'); 10668 static const EventStreamProvider<ProgressEvent> abortEvent = const EventStream Provider<ProgressEvent>('abort');
10669 10669
10670 @DomName('FileWriter.errorEvent') 10670 @DomName('FileWriter.errorEvent')
10671 @DocsEditable 10671 @DocsEditable
10672 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error'); 10672 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error');
10673 10673
10674 @DomName('FileWriter.progressEvent') 10674 @DomName('FileWriter.progressEvent')
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
10771 10771
10772 10772
10773 typedef void _FileWriterCallback(FileWriter fileWriter); 10773 typedef void _FileWriterCallback(FileWriter fileWriter);
10774 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10774 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10775 // for details. All rights reserved. Use of this source code is governed by a 10775 // for details. All rights reserved. Use of this source code is governed by a
10776 // BSD-style license that can be found in the LICENSE file. 10776 // BSD-style license that can be found in the LICENSE file.
10777 10777
10778 10778
10779 @DocsEditable 10779 @DocsEditable
10780 @DomName('FocusEvent') 10780 @DomName('FocusEvent')
10781 class FocusEvent extends UIEvent native "*FocusEvent" { 10781 class FocusEvent extends UIEvent native "FocusEvent" {
10782 10782
10783 EventTarget get relatedTarget => _convertNativeToDart_EventTarget(this._get_re latedTarget); 10783 EventTarget get relatedTarget => _convertNativeToDart_EventTarget(this._get_re latedTarget);
10784 @JSName('relatedTarget') 10784 @JSName('relatedTarget')
10785 @DomName('FocusEvent.relatedTarget') 10785 @DomName('FocusEvent.relatedTarget')
10786 @DocsEditable 10786 @DocsEditable
10787 final dynamic _get_relatedTarget; 10787 final dynamic _get_relatedTarget;
10788 } 10788 }
10789 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10789 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10790 // for details. All rights reserved. Use of this source code is governed by a 10790 // for details. All rights reserved. Use of this source code is governed by a
10791 // BSD-style license that can be found in the LICENSE file. 10791 // BSD-style license that can be found in the LICENSE file.
10792 10792
10793 10793
10794 @DocsEditable 10794 @DocsEditable
10795 @DomName('FontLoader') 10795 @DomName('FontLoader')
10796 class FontLoader extends EventTarget native "*FontLoader" { 10796 class FontLoader extends EventTarget native "FontLoader" {
10797 10797
10798 @DomName('FontLoader.errorEvent') 10798 @DomName('FontLoader.errorEvent')
10799 @DocsEditable 10799 @DocsEditable
10800 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error'); 10800 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error');
10801 10801
10802 @DomName('FontLoader.loadEvent') 10802 @DomName('FontLoader.loadEvent')
10803 @DocsEditable 10803 @DocsEditable
10804 static const EventStreamProvider<Event> loadEvent = const EventStreamProvider< Event>('load'); 10804 static const EventStreamProvider<Event> loadEvent = const EventStreamProvider< Event>('load');
10805 10805
10806 @DomName('FontLoader.loading') 10806 @DomName('FontLoader.loading')
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
10853 // for details. All rights reserved. Use of this source code is governed by a 10853 // for details. All rights reserved. Use of this source code is governed by a
10854 // BSD-style license that can be found in the LICENSE file. 10854 // BSD-style license that can be found in the LICENSE file.
10855 10855
10856 10856
10857 @DocsEditable 10857 @DocsEditable
10858 @DomName('FormData') 10858 @DomName('FormData')
10859 @SupportedBrowser(SupportedBrowser.CHROME) 10859 @SupportedBrowser(SupportedBrowser.CHROME)
10860 @SupportedBrowser(SupportedBrowser.FIREFOX) 10860 @SupportedBrowser(SupportedBrowser.FIREFOX)
10861 @SupportedBrowser(SupportedBrowser.IE, '10') 10861 @SupportedBrowser(SupportedBrowser.IE, '10')
10862 @SupportedBrowser(SupportedBrowser.SAFARI) 10862 @SupportedBrowser(SupportedBrowser.SAFARI)
10863 class FormData native "*FormData" { 10863 class FormData native "FormData" {
10864 10864
10865 @DomName('DOMFormData.DOMFormData') 10865 @DomName('DOMFormData.DOMFormData')
10866 @DocsEditable 10866 @DocsEditable
10867 factory FormData([FormElement form]) { 10867 factory FormData([FormElement form]) {
10868 if (?form) { 10868 if (?form) {
10869 return FormData._create_1(form); 10869 return FormData._create_1(form);
10870 } 10870 }
10871 return FormData._create_2(); 10871 return FormData._create_2();
10872 } 10872 }
10873 static FormData _create_1(form) => JS('FormData', 'new FormData(#)', form); 10873 static FormData _create_1(form) => JS('FormData', 'new FormData(#)', form);
10874 static FormData _create_2() => JS('FormData', 'new FormData()'); 10874 static FormData _create_2() => JS('FormData', 'new FormData()');
10875 10875
10876 /// Checks if this type is supported on the current platform. 10876 /// Checks if this type is supported on the current platform.
10877 static bool get supported => JS('bool', '!!(window.FormData)'); 10877 static bool get supported => JS('bool', '!!(window.FormData)');
10878 10878
10879 @DomName('DOMFormData.append') 10879 @DomName('DOMFormData.append')
10880 @DocsEditable 10880 @DocsEditable
10881 void append(String name, value, [String filename]) native; 10881 void append(String name, value, [String filename]) native;
10882 } 10882 }
10883 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10883 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10884 // for details. All rights reserved. Use of this source code is governed by a 10884 // for details. All rights reserved. Use of this source code is governed by a
10885 // BSD-style license that can be found in the LICENSE file. 10885 // BSD-style license that can be found in the LICENSE file.
10886 10886
10887 10887
10888 @DocsEditable 10888 @DocsEditable
10889 @DomName('HTMLFormElement') 10889 @DomName('HTMLFormElement')
10890 class FormElement extends Element native "*HTMLFormElement" { 10890 class FormElement extends Element native "HTMLFormElement" {
10891 10891
10892 @DomName('HTMLFormElement.HTMLFormElement') 10892 @DomName('HTMLFormElement.HTMLFormElement')
10893 @DocsEditable 10893 @DocsEditable
10894 factory FormElement() => document.$dom_createElement("form"); 10894 factory FormElement() => document.$dom_createElement("form");
10895 10895
10896 @DomName('HTMLFormElement.acceptCharset') 10896 @DomName('HTMLFormElement.acceptCharset')
10897 @DocsEditable 10897 @DocsEditable
10898 String acceptCharset; 10898 String acceptCharset;
10899 10899
10900 @DomName('HTMLFormElement.action') 10900 @DomName('HTMLFormElement.action')
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
10949 @DocsEditable 10949 @DocsEditable
10950 void submit() native; 10950 void submit() native;
10951 } 10951 }
10952 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10952 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10953 // for details. All rights reserved. Use of this source code is governed by a 10953 // for details. All rights reserved. Use of this source code is governed by a
10954 // BSD-style license that can be found in the LICENSE file. 10954 // BSD-style license that can be found in the LICENSE file.
10955 10955
10956 10956
10957 @DocsEditable 10957 @DocsEditable
10958 @DomName('Gamepad') 10958 @DomName('Gamepad')
10959 class Gamepad native "*Gamepad" { 10959 class Gamepad native "Gamepad" {
10960 10960
10961 @DomName('Gamepad.axes') 10961 @DomName('Gamepad.axes')
10962 @DocsEditable 10962 @DocsEditable
10963 final List<num> axes; 10963 final List<num> axes;
10964 10964
10965 @DomName('Gamepad.buttons') 10965 @DomName('Gamepad.buttons')
10966 @DocsEditable 10966 @DocsEditable
10967 final List<num> buttons; 10967 final List<num> buttons;
10968 10968
10969 @DomName('Gamepad.id') 10969 @DomName('Gamepad.id')
10970 @DocsEditable 10970 @DocsEditable
10971 final String id; 10971 final String id;
10972 10972
10973 @DomName('Gamepad.index') 10973 @DomName('Gamepad.index')
10974 @DocsEditable 10974 @DocsEditable
10975 final int index; 10975 final int index;
10976 10976
10977 @DomName('Gamepad.timestamp') 10977 @DomName('Gamepad.timestamp')
10978 @DocsEditable 10978 @DocsEditable
10979 final int timestamp; 10979 final int timestamp;
10980 } 10980 }
10981 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10981 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10982 // for details. All rights reserved. Use of this source code is governed by a 10982 // for details. All rights reserved. Use of this source code is governed by a
10983 // BSD-style license that can be found in the LICENSE file. 10983 // BSD-style license that can be found in the LICENSE file.
10984 10984
10985 10985
10986 @DocsEditable 10986 @DocsEditable
10987 @DomName('Geolocation') 10987 @DomName('Geolocation')
10988 class Geolocation native "*Geolocation" { 10988 class Geolocation native "Geolocation" {
10989 10989
10990 @DomName('Geolocation.getCurrentPosition') 10990 @DomName('Geolocation.getCurrentPosition')
10991 Future<Geoposition> getCurrentPosition({bool enableHighAccuracy, 10991 Future<Geoposition> getCurrentPosition({bool enableHighAccuracy,
10992 Duration timeout, Duration maximumAge}) { 10992 Duration timeout, Duration maximumAge}) {
10993 var options = {}; 10993 var options = {};
10994 if (enableHighAccuracy != null) { 10994 if (enableHighAccuracy != null) {
10995 options['enableHighAccuracy'] = enableHighAccuracy; 10995 options['enableHighAccuracy'] = enableHighAccuracy;
10996 } 10996 }
10997 if (timeout != null) { 10997 if (timeout != null) {
10998 options['timeout'] = timeout.inMilliseconds; 10998 options['timeout'] = timeout.inMilliseconds;
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
11094 } 11094 }
11095 11095
11096 11096
11097 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11097 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11098 // for details. All rights reserved. Use of this source code is governed by a 11098 // for details. All rights reserved. Use of this source code is governed by a
11099 // BSD-style license that can be found in the LICENSE file. 11099 // BSD-style license that can be found in the LICENSE file.
11100 11100
11101 11101
11102 @DocsEditable 11102 @DocsEditable
11103 @DomName('Geoposition') 11103 @DomName('Geoposition')
11104 class Geoposition native "*Geoposition" { 11104 class Geoposition native "Geoposition" {
11105 11105
11106 @DomName('Geoposition.coords') 11106 @DomName('Geoposition.coords')
11107 @DocsEditable 11107 @DocsEditable
11108 final Coordinates coords; 11108 final Coordinates coords;
11109 11109
11110 @DomName('Geoposition.timestamp') 11110 @DomName('Geoposition.timestamp')
11111 @DocsEditable 11111 @DocsEditable
11112 final int timestamp; 11112 final int timestamp;
11113 } 11113 }
11114 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11114 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11115 // for details. All rights reserved. Use of this source code is governed by a 11115 // for details. All rights reserved. Use of this source code is governed by a
11116 // BSD-style license that can be found in the LICENSE file. 11116 // BSD-style license that can be found in the LICENSE file.
11117 11117
11118 11118
11119 @DocsEditable 11119 @DocsEditable
11120 /** 11120 /**
11121 * An `<hr>` tag. 11121 * An `<hr>` tag.
11122 */ 11122 */
11123 @DomName('HTMLHRElement') 11123 @DomName('HTMLHRElement')
11124 class HRElement extends Element native "*HTMLHRElement" { 11124 class HRElement extends Element native "HTMLHRElement" {
11125 11125
11126 @DomName('HTMLHRElement.HTMLHRElement') 11126 @DomName('HTMLHRElement.HTMLHRElement')
11127 @DocsEditable 11127 @DocsEditable
11128 factory HRElement() => document.$dom_createElement("hr"); 11128 factory HRElement() => document.$dom_createElement("hr");
11129 } 11129 }
11130 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 11130 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
11131 // for details. All rights reserved. Use of this source code is governed by a 11131 // for details. All rights reserved. Use of this source code is governed by a
11132 // BSD-style license that can be found in the LICENSE file. 11132 // BSD-style license that can be found in the LICENSE file.
11133 11133
11134 // WARNING: Do not edit - generated code. 11134 // WARNING: Do not edit - generated code.
11135 11135
11136 @DomName('HashChangeEvent') 11136 @DomName('HashChangeEvent')
11137 @SupportedBrowser(SupportedBrowser.CHROME) 11137 @SupportedBrowser(SupportedBrowser.CHROME)
11138 @SupportedBrowser(SupportedBrowser.FIREFOX) 11138 @SupportedBrowser(SupportedBrowser.FIREFOX)
11139 @SupportedBrowser(SupportedBrowser.SAFARI) 11139 @SupportedBrowser(SupportedBrowser.SAFARI)
11140 11140
11141 class HashChangeEvent extends Event native "*HashChangeEvent" { 11141 class HashChangeEvent extends Event native "HashChangeEvent" {
11142 factory HashChangeEvent(String type, 11142 factory HashChangeEvent(String type,
11143 {bool canBubble: true, bool cancelable: true, String oldUrl, 11143 {bool canBubble: true, bool cancelable: true, String oldUrl,
11144 String newUrl}) { 11144 String newUrl}) {
11145 var event = document.$dom_createEvent("HashChangeEvent"); 11145 var event = document.$dom_createEvent("HashChangeEvent");
11146 event.$dom_initHashChangeEvent(type, canBubble, cancelable, oldUrl, newUrl); 11146 event.$dom_initHashChangeEvent(type, canBubble, cancelable, oldUrl, newUrl);
11147 return event; 11147 return event;
11148 } 11148 }
11149 11149
11150 /// Checks if this type is supported on the current platform. 11150 /// Checks if this type is supported on the current platform.
11151 static bool get supported => Device.isEventTypeSupported('HashChangeEvent'); 11151 static bool get supported => Device.isEventTypeSupported('HashChangeEvent');
(...skipping 14 matching lines...) Expand all
11166 void $dom_initHashChangeEvent(String type, bool canBubble, bool cancelable, St ring oldURL, String newURL) native; 11166 void $dom_initHashChangeEvent(String type, bool canBubble, bool cancelable, St ring oldURL, String newURL) native;
11167 11167
11168 } 11168 }
11169 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11169 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11170 // for details. All rights reserved. Use of this source code is governed by a 11170 // for details. All rights reserved. Use of this source code is governed by a
11171 // BSD-style license that can be found in the LICENSE file. 11171 // BSD-style license that can be found in the LICENSE file.
11172 11172
11173 11173
11174 @DocsEditable 11174 @DocsEditable
11175 @DomName('HTMLHeadElement') 11175 @DomName('HTMLHeadElement')
11176 class HeadElement extends Element native "*HTMLHeadElement" { 11176 class HeadElement extends Element native "HTMLHeadElement" {
11177 11177
11178 @DomName('HTMLHeadElement.HTMLHeadElement') 11178 @DomName('HTMLHeadElement.HTMLHeadElement')
11179 @DocsEditable 11179 @DocsEditable
11180 factory HeadElement() => document.$dom_createElement("head"); 11180 factory HeadElement() => document.$dom_createElement("head");
11181 } 11181 }
11182 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11182 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11183 // for details. All rights reserved. Use of this source code is governed by a 11183 // for details. All rights reserved. Use of this source code is governed by a
11184 // BSD-style license that can be found in the LICENSE file. 11184 // BSD-style license that can be found in the LICENSE file.
11185 11185
11186 11186
11187 @DocsEditable 11187 @DocsEditable
11188 @DomName('HTMLHeadingElement') 11188 @DomName('HTMLHeadingElement')
11189 class HeadingElement extends Element native "*HTMLHeadingElement" { 11189 class HeadingElement extends Element native "HTMLHeadingElement" {
11190 11190
11191 @DomName('HTMLHeadingElement.HTMLHeadingElement') 11191 @DomName('HTMLHeadingElement.HTMLHeadingElement')
11192 @DocsEditable 11192 @DocsEditable
11193 factory HeadingElement.h1() => document.$dom_createElement("h1"); 11193 factory HeadingElement.h1() => document.$dom_createElement("h1");
11194 11194
11195 @DomName('HTMLHeadingElement.HTMLHeadingElement') 11195 @DomName('HTMLHeadingElement.HTMLHeadingElement')
11196 @DocsEditable 11196 @DocsEditable
11197 factory HeadingElement.h2() => document.$dom_createElement("h2"); 11197 factory HeadingElement.h2() => document.$dom_createElement("h2");
11198 11198
11199 @DomName('HTMLHeadingElement.HTMLHeadingElement') 11199 @DomName('HTMLHeadingElement.HTMLHeadingElement')
(...skipping 11 matching lines...) Expand all
11211 @DomName('HTMLHeadingElement.HTMLHeadingElement') 11211 @DomName('HTMLHeadingElement.HTMLHeadingElement')
11212 @DocsEditable 11212 @DocsEditable
11213 factory HeadingElement.h6() => document.$dom_createElement("h6"); 11213 factory HeadingElement.h6() => document.$dom_createElement("h6");
11214 } 11214 }
11215 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11215 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11216 // for details. All rights reserved. Use of this source code is governed by a 11216 // for details. All rights reserved. Use of this source code is governed by a
11217 // BSD-style license that can be found in the LICENSE file. 11217 // BSD-style license that can be found in the LICENSE file.
11218 11218
11219 11219
11220 @DomName('History') 11220 @DomName('History')
11221 class History implements HistoryBase native "*History" { 11221 class History implements HistoryBase native "History" {
11222 11222
11223 /** 11223 /**
11224 * Checks if the State APIs are supported on the current platform. 11224 * Checks if the State APIs are supported on the current platform.
11225 * 11225 *
11226 * See also: 11226 * See also:
11227 * 11227 *
11228 * * [pushState] 11228 * * [pushState]
11229 * * [replaceState] 11229 * * [replaceState]
11230 * * [state] 11230 * * [state]
11231 */ 11231 */
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
11271 @SupportedBrowser(SupportedBrowser.SAFARI) 11271 @SupportedBrowser(SupportedBrowser.SAFARI)
11272 void replaceState(Object data, String title, [String url]) native; 11272 void replaceState(Object data, String title, [String url]) native;
11273 } 11273 }
11274 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11274 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11275 // for details. All rights reserved. Use of this source code is governed by a 11275 // for details. All rights reserved. Use of this source code is governed by a
11276 // BSD-style license that can be found in the LICENSE file. 11276 // BSD-style license that can be found in the LICENSE file.
11277 11277
11278 11278
11279 @DocsEditable 11279 @DocsEditable
11280 @DomName('HTMLAllCollection') 11280 @DomName('HTMLAllCollection')
11281 class HtmlAllCollection implements JavaScriptIndexingBehavior, List<Node> native "*HTMLAllCollection" { 11281 class HtmlAllCollection implements JavaScriptIndexingBehavior, List<Node> native "HTMLAllCollection" {
11282 11282
11283 @DomName('HTMLAllCollection.length') 11283 @DomName('HTMLAllCollection.length')
11284 @DocsEditable 11284 @DocsEditable
11285 int get length => JS("int", "#.length", this); 11285 int get length => JS("int", "#.length", this);
11286 11286
11287 Node operator[](int index) => JS("Node", "#[#]", this, index); 11287 Node operator[](int index) => JS("Node", "#[#]", this, index);
11288 11288
11289 void operator[]=(int index, Node value) { 11289 void operator[]=(int index, Node value) {
11290 throw new UnsupportedError("Cannot assign element of immutable List."); 11290 throw new UnsupportedError("Cannot assign element of immutable List.");
11291 } 11291 }
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
11498 @Creates('NodeList') 11498 @Creates('NodeList')
11499 List<Node> tags(String name) native; 11499 List<Node> tags(String name) native;
11500 } 11500 }
11501 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11501 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11502 // for details. All rights reserved. Use of this source code is governed by a 11502 // for details. All rights reserved. Use of this source code is governed by a
11503 // BSD-style license that can be found in the LICENSE file. 11503 // BSD-style license that can be found in the LICENSE file.
11504 11504
11505 11505
11506 @DocsEditable 11506 @DocsEditable
11507 @DomName('HTMLCollection') 11507 @DomName('HTMLCollection')
11508 class HtmlCollection implements JavaScriptIndexingBehavior, List<Node> native "* HTMLCollection" { 11508 class HtmlCollection implements JavaScriptIndexingBehavior, List<Node> native "H TMLCollection" {
11509 11509
11510 @DomName('HTMLCollection.length') 11510 @DomName('HTMLCollection.length')
11511 @DocsEditable 11511 @DocsEditable
11512 int get length => JS("int", "#.length", this); 11512 int get length => JS("int", "#.length", this);
11513 11513
11514 Node operator[](int index) => JS("Node", "#[#]", this, index); 11514 Node operator[](int index) => JS("Node", "#[#]", this, index);
11515 11515
11516 void operator[]=(int index, Node value) { 11516 void operator[]=(int index, Node value) {
11517 throw new UnsupportedError("Cannot assign element of immutable List."); 11517 throw new UnsupportedError("Cannot assign element of immutable List.");
11518 } 11518 }
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
11720 Node namedItem(String name) native; 11720 Node namedItem(String name) native;
11721 } 11721 }
11722 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11722 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11723 // for details. All rights reserved. Use of this source code is governed by a 11723 // for details. All rights reserved. Use of this source code is governed by a
11724 // BSD-style license that can be found in the LICENSE file. 11724 // BSD-style license that can be found in the LICENSE file.
11725 11725
11726 // WARNING: Do not edit - generated code. 11726 // WARNING: Do not edit - generated code.
11727 11727
11728 11728
11729 @DomName('HTMLDocument') 11729 @DomName('HTMLDocument')
11730 class HtmlDocument extends Document native "*HTMLDocument" { 11730 class HtmlDocument extends Document native "HTMLDocument" {
11731 11731
11732 @DomName('HTMLDocument.activeElement') 11732 @DomName('HTMLDocument.activeElement')
11733 @DocsEditable 11733 @DocsEditable
11734 final Element activeElement; 11734 final Element activeElement;
11735 11735
11736 11736
11737 @DomName('Document.body') 11737 @DomName('Document.body')
11738 BodyElement body; 11738 BodyElement body;
11739 11739
11740 @DomName('Document.caretRangeFromPoint') 11740 @DomName('Document.caretRangeFromPoint')
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
11877 @Experimental 11877 @Experimental
11878 String get visibilityState => $dom_webkitVisibilityState; 11878 String get visibilityState => $dom_webkitVisibilityState;
11879 } 11879 }
11880 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11880 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11881 // for details. All rights reserved. Use of this source code is governed by a 11881 // for details. All rights reserved. Use of this source code is governed by a
11882 // BSD-style license that can be found in the LICENSE file. 11882 // BSD-style license that can be found in the LICENSE file.
11883 11883
11884 11884
11885 @DocsEditable 11885 @DocsEditable
11886 @DomName('HTMLHtmlElement') 11886 @DomName('HTMLHtmlElement')
11887 class HtmlElement extends Element native "*HTMLHtmlElement" { 11887 class HtmlElement extends Element native "HTMLHtmlElement" {
11888 11888
11889 @DomName('HTMLHtmlElement.HTMLHtmlElement') 11889 @DomName('HTMLHtmlElement.HTMLHtmlElement')
11890 @DocsEditable 11890 @DocsEditable
11891 factory HtmlElement() => document.$dom_createElement("html"); 11891 factory HtmlElement() => document.$dom_createElement("html");
11892 } 11892 }
11893 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11893 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11894 // for details. All rights reserved. Use of this source code is governed by a 11894 // for details. All rights reserved. Use of this source code is governed by a
11895 // BSD-style license that can be found in the LICENSE file. 11895 // BSD-style license that can be found in the LICENSE file.
11896 11896
11897 11897
11898 @DocsEditable 11898 @DocsEditable
11899 @DomName('HTMLFormControlsCollection') 11899 @DomName('HTMLFormControlsCollection')
11900 class HtmlFormControlsCollection extends HtmlCollection native "*HTMLFormControl sCollection" { 11900 class HtmlFormControlsCollection extends HtmlCollection native "HTMLFormControls Collection" {
11901 11901
11902 @DomName('HTMLFormControlsCollection.namedItem') 11902 @DomName('HTMLFormControlsCollection.namedItem')
11903 @DocsEditable 11903 @DocsEditable
11904 Node namedItem(String name) native; 11904 Node namedItem(String name) native;
11905 } 11905 }
11906 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11906 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11907 // for details. All rights reserved. Use of this source code is governed by a 11907 // for details. All rights reserved. Use of this source code is governed by a
11908 // BSD-style license that can be found in the LICENSE file. 11908 // BSD-style license that can be found in the LICENSE file.
11909 11909
11910 11910
11911 @DocsEditable 11911 @DocsEditable
11912 @DomName('HTMLOptionsCollection') 11912 @DomName('HTMLOptionsCollection')
11913 class HtmlOptionsCollection extends HtmlCollection native "*HTMLOptionsCollectio n" { 11913 class HtmlOptionsCollection extends HtmlCollection native "HTMLOptionsCollection " {
11914 } 11914 }
11915 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11915 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11916 // for details. All rights reserved. Use of this source code is governed by a 11916 // for details. All rights reserved. Use of this source code is governed by a
11917 // BSD-style license that can be found in the LICENSE file. 11917 // BSD-style license that can be found in the LICENSE file.
11918 11918
11919 11919
11920 /** 11920 /**
11921 * A utility for retrieving data from a URL. 11921 * A utility for retrieving data from a URL.
11922 * 11922 *
11923 * HttpRequest can be used to obtain data from http, ftp, and file 11923 * HttpRequest can be used to obtain data from http, ftp, and file
(...skipping 13 matching lines...) Expand all
11937 * with HttpRequest. However, there are ways to 11937 * with HttpRequest. However, there are ways to
11938 * [get around this restriction](http://www.dartlang.org/articles/json-web-servi ce/#note-on-jsonp). 11938 * [get around this restriction](http://www.dartlang.org/articles/json-web-servi ce/#note-on-jsonp).
11939 * 11939 *
11940 * See also: 11940 * See also:
11941 * 11941 *
11942 * * [Dart article on using HttpRequests](http://www.dartlang.org/articles/json- web-service/#getting-data) 11942 * * [Dart article on using HttpRequests](http://www.dartlang.org/articles/json- web-service/#getting-data)
11943 * * [JS XMLHttpRequest](https://developer.mozilla.org/en-US/docs/DOM/XMLHttpReq uest) 11943 * * [JS XMLHttpRequest](https://developer.mozilla.org/en-US/docs/DOM/XMLHttpReq uest)
11944 * * [Using XMLHttpRequest](https://developer.mozilla.org/en-US/docs/DOM/XMLHttp Request/Using_XMLHttpRequest) 11944 * * [Using XMLHttpRequest](https://developer.mozilla.org/en-US/docs/DOM/XMLHttp Request/Using_XMLHttpRequest)
11945 */ 11945 */
11946 @DomName('XMLHttpRequest') 11946 @DomName('XMLHttpRequest')
11947 class HttpRequest extends EventTarget native "*XMLHttpRequest" { 11947 class HttpRequest extends EventTarget native "XMLHttpRequest" {
11948 11948
11949 /** 11949 /**
11950 * Creates a URL get request for the specified [url]. 11950 * Creates a URL get request for the specified [url].
11951 * 11951 *
11952 * The server response must be a `text/` mime type for this request to 11952 * The server response must be a `text/` mime type for this request to
11953 * succeed. 11953 * succeed.
11954 * 11954 *
11955 * This is similar to [request] but specialized for HTTP GET requests which 11955 * This is similar to [request] but specialized for HTTP GET requests which
11956 * return text content. 11956 * return text content.
11957 * 11957 *
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
12401 Stream<ProgressEvent> get onReadyStateChange => readyStateChangeEvent.forTarge t(this); 12401 Stream<ProgressEvent> get onReadyStateChange => readyStateChangeEvent.forTarge t(this);
12402 12402
12403 } 12403 }
12404 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12404 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12405 // for details. All rights reserved. Use of this source code is governed by a 12405 // for details. All rights reserved. Use of this source code is governed by a
12406 // BSD-style license that can be found in the LICENSE file. 12406 // BSD-style license that can be found in the LICENSE file.
12407 12407
12408 12408
12409 @DocsEditable 12409 @DocsEditable
12410 @DomName('XMLHttpRequestException') 12410 @DomName('XMLHttpRequestException')
12411 class HttpRequestException native "*XMLHttpRequestException" { 12411 class HttpRequestException native "XMLHttpRequestException" {
12412 12412
12413 static const int ABORT_ERR = 102; 12413 static const int ABORT_ERR = 102;
12414 12414
12415 static const int NETWORK_ERR = 101; 12415 static const int NETWORK_ERR = 101;
12416 12416
12417 @DomName('XMLHttpRequestException.code') 12417 @DomName('XMLHttpRequestException.code')
12418 @DocsEditable 12418 @DocsEditable
12419 final int code; 12419 final int code;
12420 12420
12421 @DomName('XMLHttpRequestException.message') 12421 @DomName('XMLHttpRequestException.message')
(...skipping 11 matching lines...) Expand all
12433 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12433 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12434 // for details. All rights reserved. Use of this source code is governed by a 12434 // for details. All rights reserved. Use of this source code is governed by a
12435 // BSD-style license that can be found in the LICENSE file. 12435 // BSD-style license that can be found in the LICENSE file.
12436 12436
12437 12437
12438 @DocsEditable 12438 @DocsEditable
12439 @DomName('XMLHttpRequestProgressEvent') 12439 @DomName('XMLHttpRequestProgressEvent')
12440 @SupportedBrowser(SupportedBrowser.CHROME) 12440 @SupportedBrowser(SupportedBrowser.CHROME)
12441 @SupportedBrowser(SupportedBrowser.SAFARI) 12441 @SupportedBrowser(SupportedBrowser.SAFARI)
12442 @Experimental 12442 @Experimental
12443 class HttpRequestProgressEvent extends ProgressEvent native "*XMLHttpRequestProg ressEvent" { 12443 class HttpRequestProgressEvent extends ProgressEvent native "XMLHttpRequestProgr essEvent" {
12444 12444
12445 /// Checks if this type is supported on the current platform. 12445 /// Checks if this type is supported on the current platform.
12446 static bool get supported => Device.isEventTypeSupported('XMLHttpRequestProgre ssEvent'); 12446 static bool get supported => Device.isEventTypeSupported('XMLHttpRequestProgre ssEvent');
12447 12447
12448 @DomName('XMLHttpRequestProgressEvent.position') 12448 @DomName('XMLHttpRequestProgressEvent.position')
12449 @DocsEditable 12449 @DocsEditable
12450 final int position; 12450 final int position;
12451 12451
12452 @DomName('XMLHttpRequestProgressEvent.totalSize') 12452 @DomName('XMLHttpRequestProgressEvent.totalSize')
12453 @DocsEditable 12453 @DocsEditable
12454 final int totalSize; 12454 final int totalSize;
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 @DocsEditable 12461 @DocsEditable
12462 @DomName('XMLHttpRequestUpload') 12462 @DomName('XMLHttpRequestUpload')
12463 class HttpRequestUpload extends EventTarget native "*XMLHttpRequestUpload" { 12463 class HttpRequestUpload extends EventTarget native "XMLHttpRequestUpload" {
12464 12464
12465 @DomName('XMLHttpRequestUpload.abortEvent') 12465 @DomName('XMLHttpRequestUpload.abortEvent')
12466 @DocsEditable 12466 @DocsEditable
12467 static const EventStreamProvider<ProgressEvent> abortEvent = const EventStream Provider<ProgressEvent>('abort'); 12467 static const EventStreamProvider<ProgressEvent> abortEvent = const EventStream Provider<ProgressEvent>('abort');
12468 12468
12469 @DomName('XMLHttpRequestUpload.errorEvent') 12469 @DomName('XMLHttpRequestUpload.errorEvent')
12470 @DocsEditable 12470 @DocsEditable
12471 static const EventStreamProvider<ProgressEvent> errorEvent = const EventStream Provider<ProgressEvent>('error'); 12471 static const EventStreamProvider<ProgressEvent> errorEvent = const EventStream Provider<ProgressEvent>('error');
12472 12472
12473 @DomName('XMLHttpRequestUpload.loadEvent') 12473 @DomName('XMLHttpRequestUpload.loadEvent')
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
12524 @DocsEditable 12524 @DocsEditable
12525 Stream<ProgressEvent> get onProgress => progressEvent.forTarget(this); 12525 Stream<ProgressEvent> get onProgress => progressEvent.forTarget(this);
12526 } 12526 }
12527 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12527 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12528 // for details. All rights reserved. Use of this source code is governed by a 12528 // for details. All rights reserved. Use of this source code is governed by a
12529 // BSD-style license that can be found in the LICENSE file. 12529 // BSD-style license that can be found in the LICENSE file.
12530 12530
12531 12531
12532 @DocsEditable 12532 @DocsEditable
12533 @DomName('HTMLIFrameElement') 12533 @DomName('HTMLIFrameElement')
12534 class IFrameElement extends Element native "*HTMLIFrameElement" { 12534 class IFrameElement extends Element native "HTMLIFrameElement" {
12535 12535
12536 @DomName('HTMLIFrameElement.HTMLIFrameElement') 12536 @DomName('HTMLIFrameElement.HTMLIFrameElement')
12537 @DocsEditable 12537 @DocsEditable
12538 factory IFrameElement() => document.$dom_createElement("iframe"); 12538 factory IFrameElement() => document.$dom_createElement("iframe");
12539 12539
12540 WindowBase get contentWindow => _convertNativeToDart_Window(this._get_contentW indow); 12540 WindowBase get contentWindow => _convertNativeToDart_Window(this._get_contentW indow);
12541 @JSName('contentWindow') 12541 @JSName('contentWindow')
12542 @DomName('HTMLIFrameElement.contentWindow') 12542 @DomName('HTMLIFrameElement.contentWindow')
12543 @DocsEditable 12543 @DocsEditable
12544 @Creates('Window|=Object') 12544 @Creates('Window|=Object')
(...skipping 27 matching lines...) Expand all
12572 @DomName('HTMLIFrameElement.width') 12572 @DomName('HTMLIFrameElement.width')
12573 @DocsEditable 12573 @DocsEditable
12574 String width; 12574 String width;
12575 } 12575 }
12576 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 12576 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
12577 // for details. All rights reserved. Use of this source code is governed by a 12577 // for details. All rights reserved. Use of this source code is governed by a
12578 // BSD-style license that can be found in the LICENSE file. 12578 // BSD-style license that can be found in the LICENSE file.
12579 12579
12580 @DomName('ImageData') 12580 @DomName('ImageData')
12581 12581
12582 class ImageData native "*ImageData" { 12582 class ImageData native "ImageData" {
12583 12583
12584 12584
12585 @DomName('ImageData.data') 12585 @DomName('ImageData.data')
12586 @DocsEditable 12586 @DocsEditable
12587 final List<int> data; 12587 final List<int> data;
12588 12588
12589 @DomName('ImageData.height') 12589 @DomName('ImageData.height')
12590 @DocsEditable 12590 @DocsEditable
12591 final int height; 12591 final int height;
12592 12592
12593 @DomName('ImageData.width') 12593 @DomName('ImageData.width')
12594 @DocsEditable 12594 @DocsEditable
12595 final int width; 12595 final int width;
12596 12596
12597 } 12597 }
12598 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12598 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12599 // for details. All rights reserved. Use of this source code is governed by a 12599 // for details. All rights reserved. Use of this source code is governed by a
12600 // BSD-style license that can be found in the LICENSE file. 12600 // BSD-style license that can be found in the LICENSE file.
12601 12601
12602 12602
12603 @DomName('HTMLImageElement') 12603 @DomName('HTMLImageElement')
12604 class ImageElement extends Element implements CanvasImageSource native "*HTMLIma geElement" { 12604 class ImageElement extends Element implements CanvasImageSource native "HTMLImag eElement" {
12605 12605
12606 @DomName('HTMLImageElement.HTMLImageElement') 12606 @DomName('HTMLImageElement.HTMLImageElement')
12607 @DocsEditable 12607 @DocsEditable
12608 factory ImageElement({String src, int width, int height}) { 12608 factory ImageElement({String src, int width, int height}) {
12609 var e = document.$dom_createElement("img"); 12609 var e = document.$dom_createElement("img");
12610 if (src != null) e.src = src; 12610 if (src != null) e.src = src;
12611 if (width != null) e.width = width; 12611 if (width != null) e.width = width;
12612 if (height != null) e.height = height; 12612 if (height != null) e.height = height;
12613 return e; 12613 return e;
12614 } 12614 }
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
12691 LocalDateTimeInputElement, 12691 LocalDateTimeInputElement,
12692 NumberInputElement, 12692 NumberInputElement,
12693 RangeInputElement, 12693 RangeInputElement,
12694 CheckboxInputElement, 12694 CheckboxInputElement,
12695 RadioButtonInputElement, 12695 RadioButtonInputElement,
12696 FileUploadInputElement, 12696 FileUploadInputElement,
12697 SubmitButtonInputElement, 12697 SubmitButtonInputElement,
12698 ImageButtonInputElement, 12698 ImageButtonInputElement,
12699 ResetButtonInputElement, 12699 ResetButtonInputElement,
12700 ButtonInputElement 12700 ButtonInputElement
12701 native "*HTMLInputElement" { 12701 native "HTMLInputElement" {
12702 12702
12703 factory InputElement({String type}) { 12703 factory InputElement({String type}) {
12704 var e = document.$dom_createElement("input"); 12704 var e = document.$dom_createElement("input");
12705 if (type != null) { 12705 if (type != null) {
12706 try { 12706 try {
12707 // IE throws an exception for unknown types. 12707 // IE throws an exception for unknown types.
12708 e.type = type; 12708 e.type = type;
12709 } catch(_) {} 12709 } catch(_) {}
12710 } 12710 }
12711 return e; 12711 return e;
(...skipping 821 matching lines...) Expand 10 before | Expand all | Expand 10 after
13533 abstract class ButtonInputElement implements InputElementBase { 13533 abstract class ButtonInputElement implements InputElementBase {
13534 factory ButtonInputElement() => new InputElement(type: 'button'); 13534 factory ButtonInputElement() => new InputElement(type: 'button');
13535 } 13535 }
13536 13536
13537 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13537 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13538 // for details. All rights reserved. Use of this source code is governed by a 13538 // for details. All rights reserved. Use of this source code is governed by a
13539 // BSD-style license that can be found in the LICENSE file. 13539 // BSD-style license that can be found in the LICENSE file.
13540 13540
13541 13541
13542 @DomName('KeyboardEvent') 13542 @DomName('KeyboardEvent')
13543 class KeyboardEvent extends UIEvent native "*KeyboardEvent" { 13543 class KeyboardEvent extends UIEvent native "KeyboardEvent" {
13544 13544
13545 factory KeyboardEvent(String type, 13545 factory KeyboardEvent(String type,
13546 {Window view, bool canBubble: true, bool cancelable: true, 13546 {Window view, bool canBubble: true, bool cancelable: true,
13547 String keyIdentifier: "", int keyLocation: 1, bool ctrlKey: false, 13547 String keyIdentifier: "", int keyLocation: 1, bool ctrlKey: false,
13548 bool altKey: false, bool shiftKey: false, bool metaKey: false, 13548 bool altKey: false, bool shiftKey: false, bool metaKey: false,
13549 bool altGraphKey: false}) { 13549 bool altGraphKey: false}) {
13550 if (view == null) { 13550 if (view == null) {
13551 view = window; 13551 view = window;
13552 } 13552 }
13553 final e = document.$dom_createEvent("KeyboardEvent"); 13553 final e = document.$dom_createEvent("KeyboardEvent");
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
13615 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13615 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13616 // for details. All rights reserved. Use of this source code is governed by a 13616 // for details. All rights reserved. Use of this source code is governed by a
13617 // BSD-style license that can be found in the LICENSE file. 13617 // BSD-style license that can be found in the LICENSE file.
13618 13618
13619 13619
13620 @DocsEditable 13620 @DocsEditable
13621 @DomName('HTMLKeygenElement') 13621 @DomName('HTMLKeygenElement')
13622 @SupportedBrowser(SupportedBrowser.CHROME) 13622 @SupportedBrowser(SupportedBrowser.CHROME)
13623 @SupportedBrowser(SupportedBrowser.SAFARI) 13623 @SupportedBrowser(SupportedBrowser.SAFARI)
13624 @Experimental 13624 @Experimental
13625 class KeygenElement extends Element native "*HTMLKeygenElement" { 13625 class KeygenElement extends Element native "HTMLKeygenElement" {
13626 13626
13627 @DomName('HTMLKeygenElement.HTMLKeygenElement') 13627 @DomName('HTMLKeygenElement.HTMLKeygenElement')
13628 @DocsEditable 13628 @DocsEditable
13629 factory KeygenElement() => document.$dom_createElement("keygen"); 13629 factory KeygenElement() => document.$dom_createElement("keygen");
13630 13630
13631 /// Checks if this type is supported on the current platform. 13631 /// Checks if this type is supported on the current platform.
13632 static bool get supported => Element.isTagSupported('keygen') && (new Element. tag('keygen') is KeygenElement); 13632 static bool get supported => Element.isTagSupported('keygen') && (new Element. tag('keygen') is KeygenElement);
13633 13633
13634 @DomName('HTMLKeygenElement.autofocus') 13634 @DomName('HTMLKeygenElement.autofocus')
13635 @DocsEditable 13635 @DocsEditable
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
13685 @DocsEditable 13685 @DocsEditable
13686 void setCustomValidity(String error) native; 13686 void setCustomValidity(String error) native;
13687 } 13687 }
13688 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13688 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13689 // for details. All rights reserved. Use of this source code is governed by a 13689 // for details. All rights reserved. Use of this source code is governed by a
13690 // BSD-style license that can be found in the LICENSE file. 13690 // BSD-style license that can be found in the LICENSE file.
13691 13691
13692 13692
13693 @DocsEditable 13693 @DocsEditable
13694 @DomName('HTMLLIElement') 13694 @DomName('HTMLLIElement')
13695 class LIElement extends Element native "*HTMLLIElement" { 13695 class LIElement extends Element native "HTMLLIElement" {
13696 13696
13697 @DomName('HTMLLIElement.HTMLLIElement') 13697 @DomName('HTMLLIElement.HTMLLIElement')
13698 @DocsEditable 13698 @DocsEditable
13699 factory LIElement() => document.$dom_createElement("li"); 13699 factory LIElement() => document.$dom_createElement("li");
13700 13700
13701 @DomName('HTMLLIElement.type') 13701 @DomName('HTMLLIElement.type')
13702 @DocsEditable 13702 @DocsEditable
13703 String type; 13703 String type;
13704 13704
13705 @DomName('HTMLLIElement.value') 13705 @DomName('HTMLLIElement.value')
13706 @DocsEditable 13706 @DocsEditable
13707 int value; 13707 int value;
13708 } 13708 }
13709 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13709 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13710 // for details. All rights reserved. Use of this source code is governed by a 13710 // for details. All rights reserved. Use of this source code is governed by a
13711 // BSD-style license that can be found in the LICENSE file. 13711 // BSD-style license that can be found in the LICENSE file.
13712 13712
13713 13713
13714 @DocsEditable 13714 @DocsEditable
13715 @DomName('HTMLLabelElement') 13715 @DomName('HTMLLabelElement')
13716 class LabelElement extends Element native "*HTMLLabelElement" { 13716 class LabelElement extends Element native "HTMLLabelElement" {
13717 13717
13718 @DomName('HTMLLabelElement.HTMLLabelElement') 13718 @DomName('HTMLLabelElement.HTMLLabelElement')
13719 @DocsEditable 13719 @DocsEditable
13720 factory LabelElement() => document.$dom_createElement("label"); 13720 factory LabelElement() => document.$dom_createElement("label");
13721 13721
13722 @DomName('HTMLLabelElement.control') 13722 @DomName('HTMLLabelElement.control')
13723 @DocsEditable 13723 @DocsEditable
13724 final Element control; 13724 final Element control;
13725 13725
13726 @DomName('HTMLLabelElement.form') 13726 @DomName('HTMLLabelElement.form')
13727 @DocsEditable 13727 @DocsEditable
13728 final FormElement form; 13728 final FormElement form;
13729 13729
13730 @DomName('HTMLLabelElement.htmlFor') 13730 @DomName('HTMLLabelElement.htmlFor')
13731 @DocsEditable 13731 @DocsEditable
13732 String htmlFor; 13732 String htmlFor;
13733 } 13733 }
13734 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13734 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13735 // for details. All rights reserved. Use of this source code is governed by a 13735 // for details. All rights reserved. Use of this source code is governed by a
13736 // BSD-style license that can be found in the LICENSE file. 13736 // BSD-style license that can be found in the LICENSE file.
13737 13737
13738 13738
13739 @DocsEditable 13739 @DocsEditable
13740 @DomName('HTMLLegendElement') 13740 @DomName('HTMLLegendElement')
13741 class LegendElement extends Element native "*HTMLLegendElement" { 13741 class LegendElement extends Element native "HTMLLegendElement" {
13742 13742
13743 @DomName('HTMLLegendElement.HTMLLegendElement') 13743 @DomName('HTMLLegendElement.HTMLLegendElement')
13744 @DocsEditable 13744 @DocsEditable
13745 factory LegendElement() => document.$dom_createElement("legend"); 13745 factory LegendElement() => document.$dom_createElement("legend");
13746 13746
13747 @DomName('HTMLLegendElement.form') 13747 @DomName('HTMLLegendElement.form')
13748 @DocsEditable 13748 @DocsEditable
13749 final FormElement form; 13749 final FormElement form;
13750 } 13750 }
13751 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13751 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13752 // for details. All rights reserved. Use of this source code is governed by a 13752 // for details. All rights reserved. Use of this source code is governed by a
13753 // BSD-style license that can be found in the LICENSE file. 13753 // BSD-style license that can be found in the LICENSE file.
13754 13754
13755 13755
13756 @DocsEditable 13756 @DocsEditable
13757 @DomName('HTMLLinkElement') 13757 @DomName('HTMLLinkElement')
13758 class LinkElement extends Element native "*HTMLLinkElement" { 13758 class LinkElement extends Element native "HTMLLinkElement" {
13759 13759
13760 @DomName('HTMLLinkElement.HTMLLinkElement') 13760 @DomName('HTMLLinkElement.HTMLLinkElement')
13761 @DocsEditable 13761 @DocsEditable
13762 factory LinkElement() => document.$dom_createElement("link"); 13762 factory LinkElement() => document.$dom_createElement("link");
13763 13763
13764 @DomName('HTMLLinkElement.disabled') 13764 @DomName('HTMLLinkElement.disabled')
13765 @DocsEditable 13765 @DocsEditable
13766 bool disabled; 13766 bool disabled;
13767 13767
13768 @DomName('HTMLLinkElement.href') 13768 @DomName('HTMLLinkElement.href')
(...skipping 26 matching lines...) Expand all
13795 } 13795 }
13796 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13796 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13797 // for details. All rights reserved. Use of this source code is governed by a 13797 // for details. All rights reserved. Use of this source code is governed by a
13798 // BSD-style license that can be found in the LICENSE file. 13798 // BSD-style license that can be found in the LICENSE file.
13799 13799
13800 13800
13801 @DocsEditable 13801 @DocsEditable
13802 @DomName('LocalMediaStream') 13802 @DomName('LocalMediaStream')
13803 @SupportedBrowser(SupportedBrowser.CHROME) 13803 @SupportedBrowser(SupportedBrowser.CHROME)
13804 @Experimental 13804 @Experimental
13805 class LocalMediaStream extends MediaStream implements EventTarget native "*Local MediaStream" { 13805 class LocalMediaStream extends MediaStream implements EventTarget native "LocalM ediaStream" {
13806 13806
13807 @DomName('LocalMediaStream.stop') 13807 @DomName('LocalMediaStream.stop')
13808 @DocsEditable 13808 @DocsEditable
13809 void stop() native; 13809 void stop() native;
13810 } 13810 }
13811 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13811 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13812 // for details. All rights reserved. Use of this source code is governed by a 13812 // for details. All rights reserved. Use of this source code is governed by a
13813 // BSD-style license that can be found in the LICENSE file. 13813 // BSD-style license that can be found in the LICENSE file.
13814 13814
13815 13815
13816 @DocsEditable 13816 @DocsEditable
13817 @DomName('Location') 13817 @DomName('Location')
13818 class Location implements LocationBase native "*Location" { 13818 class Location implements LocationBase native "Location" {
13819 13819
13820 @DomName('Location.ancestorOrigins') 13820 @DomName('Location.ancestorOrigins')
13821 @DocsEditable 13821 @DocsEditable
13822 @Returns('DomStringList') 13822 @Returns('DomStringList')
13823 @Creates('DomStringList') 13823 @Creates('DomStringList')
13824 final List<String> ancestorOrigins; 13824 final List<String> ancestorOrigins;
13825 13825
13826 @DomName('Location.hash') 13826 @DomName('Location.hash')
13827 @DocsEditable 13827 @DocsEditable
13828 String hash; 13828 String hash;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
13879 @DocsEditable 13879 @DocsEditable
13880 Object valueOf() native; 13880 Object valueOf() native;
13881 } 13881 }
13882 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13882 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13883 // for details. All rights reserved. Use of this source code is governed by a 13883 // for details. All rights reserved. Use of this source code is governed by a
13884 // BSD-style license that can be found in the LICENSE file. 13884 // BSD-style license that can be found in the LICENSE file.
13885 13885
13886 13886
13887 @DocsEditable 13887 @DocsEditable
13888 @DomName('HTMLMapElement') 13888 @DomName('HTMLMapElement')
13889 class MapElement extends Element native "*HTMLMapElement" { 13889 class MapElement extends Element native "HTMLMapElement" {
13890 13890
13891 @DomName('HTMLMapElement.HTMLMapElement') 13891 @DomName('HTMLMapElement.HTMLMapElement')
13892 @DocsEditable 13892 @DocsEditable
13893 factory MapElement() => document.$dom_createElement("map"); 13893 factory MapElement() => document.$dom_createElement("map");
13894 13894
13895 @DomName('HTMLMapElement.areas') 13895 @DomName('HTMLMapElement.areas')
13896 @DocsEditable 13896 @DocsEditable
13897 final HtmlCollection areas; 13897 final HtmlCollection areas;
13898 13898
13899 @DomName('HTMLMapElement.name') 13899 @DomName('HTMLMapElement.name')
13900 @DocsEditable 13900 @DocsEditable
13901 String name; 13901 String name;
13902 } 13902 }
13903 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13903 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13904 // for details. All rights reserved. Use of this source code is governed by a 13904 // for details. All rights reserved. Use of this source code is governed by a
13905 // BSD-style license that can be found in the LICENSE file. 13905 // BSD-style license that can be found in the LICENSE file.
13906 13906
13907 13907
13908 @DocsEditable 13908 @DocsEditable
13909 @DomName('MediaController') 13909 @DomName('MediaController')
13910 class MediaController extends EventTarget native "*MediaController" { 13910 class MediaController extends EventTarget native "MediaController" {
13911 13911
13912 @DomName('MediaController.MediaController') 13912 @DomName('MediaController.MediaController')
13913 @DocsEditable 13913 @DocsEditable
13914 factory MediaController() { 13914 factory MediaController() {
13915 return MediaController._create_1(); 13915 return MediaController._create_1();
13916 } 13916 }
13917 static MediaController _create_1() => JS('MediaController', 'new MediaControll er()'); 13917 static MediaController _create_1() => JS('MediaController', 'new MediaControll er()');
13918 13918
13919 @DomName('MediaController.buffered') 13919 @DomName('MediaController.buffered')
13920 @DocsEditable 13920 @DocsEditable
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
13986 @DocsEditable 13986 @DocsEditable
13987 void unpause() native; 13987 void unpause() native;
13988 } 13988 }
13989 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13989 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13990 // for details. All rights reserved. Use of this source code is governed by a 13990 // for details. All rights reserved. Use of this source code is governed by a
13991 // BSD-style license that can be found in the LICENSE file. 13991 // BSD-style license that can be found in the LICENSE file.
13992 13992
13993 13993
13994 @DocsEditable 13994 @DocsEditable
13995 @DomName('HTMLMediaElement') 13995 @DomName('HTMLMediaElement')
13996 class MediaElement extends Element native "*HTMLMediaElement" { 13996 class MediaElement extends Element native "HTMLMediaElement" {
13997 13997
13998 @DomName('HTMLMediaElement.canplayEvent') 13998 @DomName('HTMLMediaElement.canplayEvent')
13999 @DocsEditable 13999 @DocsEditable
14000 static const EventStreamProvider<Event> canPlayEvent = const EventStreamProvid er<Event>('canplay'); 14000 static const EventStreamProvider<Event> canPlayEvent = const EventStreamProvid er<Event>('canplay');
14001 14001
14002 @DomName('HTMLMediaElement.canplaythroughEvent') 14002 @DomName('HTMLMediaElement.canplaythroughEvent')
14003 @DocsEditable 14003 @DocsEditable
14004 static const EventStreamProvider<Event> canPlayThroughEvent = const EventStrea mProvider<Event>('canplaythrough'); 14004 static const EventStreamProvider<Event> canPlayThroughEvent = const EventStrea mProvider<Event>('canplaythrough');
14005 14005
14006 @DomName('HTMLMediaElement.durationchangeEvent') 14006 @DomName('HTMLMediaElement.durationchangeEvent')
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
14417 @DocsEditable 14417 @DocsEditable
14418 Stream<MediaKeyEvent> get onNeedKey => needKeyEvent.forTarget(this); 14418 Stream<MediaKeyEvent> get onNeedKey => needKeyEvent.forTarget(this);
14419 } 14419 }
14420 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14420 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14421 // for details. All rights reserved. Use of this source code is governed by a 14421 // for details. All rights reserved. Use of this source code is governed by a
14422 // BSD-style license that can be found in the LICENSE file. 14422 // BSD-style license that can be found in the LICENSE file.
14423 14423
14424 14424
14425 @DocsEditable 14425 @DocsEditable
14426 @DomName('MediaError') 14426 @DomName('MediaError')
14427 class MediaError native "*MediaError" { 14427 class MediaError native "MediaError" {
14428 14428
14429 static const int MEDIA_ERR_ABORTED = 1; 14429 static const int MEDIA_ERR_ABORTED = 1;
14430 14430
14431 static const int MEDIA_ERR_DECODE = 3; 14431 static const int MEDIA_ERR_DECODE = 3;
14432 14432
14433 static const int MEDIA_ERR_ENCRYPTED = 5; 14433 static const int MEDIA_ERR_ENCRYPTED = 5;
14434 14434
14435 static const int MEDIA_ERR_NETWORK = 2; 14435 static const int MEDIA_ERR_NETWORK = 2;
14436 14436
14437 static const int MEDIA_ERR_SRC_NOT_SUPPORTED = 4; 14437 static const int MEDIA_ERR_SRC_NOT_SUPPORTED = 4;
14438 14438
14439 @DomName('MediaError.code') 14439 @DomName('MediaError.code')
14440 @DocsEditable 14440 @DocsEditable
14441 final int code; 14441 final int code;
14442 } 14442 }
14443 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14443 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14444 // for details. All rights reserved. Use of this source code is governed by a 14444 // for details. All rights reserved. Use of this source code is governed by a
14445 // BSD-style license that can be found in the LICENSE file. 14445 // BSD-style license that can be found in the LICENSE file.
14446 14446
14447 14447
14448 @DocsEditable 14448 @DocsEditable
14449 @DomName('MediaKeyError') 14449 @DomName('MediaKeyError')
14450 class MediaKeyError native "*MediaKeyError" { 14450 class MediaKeyError native "MediaKeyError" {
14451 14451
14452 static const int MEDIA_KEYERR_CLIENT = 2; 14452 static const int MEDIA_KEYERR_CLIENT = 2;
14453 14453
14454 static const int MEDIA_KEYERR_DOMAIN = 6; 14454 static const int MEDIA_KEYERR_DOMAIN = 6;
14455 14455
14456 static const int MEDIA_KEYERR_HARDWARECHANGE = 5; 14456 static const int MEDIA_KEYERR_HARDWARECHANGE = 5;
14457 14457
14458 static const int MEDIA_KEYERR_OUTPUT = 4; 14458 static const int MEDIA_KEYERR_OUTPUT = 4;
14459 14459
14460 static const int MEDIA_KEYERR_SERVICE = 3; 14460 static const int MEDIA_KEYERR_SERVICE = 3;
14461 14461
14462 static const int MEDIA_KEYERR_UNKNOWN = 1; 14462 static const int MEDIA_KEYERR_UNKNOWN = 1;
14463 14463
14464 @DomName('MediaKeyError.code') 14464 @DomName('MediaKeyError.code')
14465 @DocsEditable 14465 @DocsEditable
14466 final int code; 14466 final int code;
14467 } 14467 }
14468 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14468 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14469 // for details. All rights reserved. Use of this source code is governed by a 14469 // for details. All rights reserved. Use of this source code is governed by a
14470 // BSD-style license that can be found in the LICENSE file. 14470 // BSD-style license that can be found in the LICENSE file.
14471 14471
14472 14472
14473 @DocsEditable 14473 @DocsEditable
14474 @DomName('MediaKeyEvent') 14474 @DomName('MediaKeyEvent')
14475 class MediaKeyEvent extends Event native "*MediaKeyEvent" { 14475 class MediaKeyEvent extends Event native "MediaKeyEvent" {
14476 14476
14477 @JSName('defaultURL') 14477 @JSName('defaultURL')
14478 @DomName('MediaKeyEvent.defaultURL') 14478 @DomName('MediaKeyEvent.defaultURL')
14479 @DocsEditable 14479 @DocsEditable
14480 final String defaultUrl; 14480 final String defaultUrl;
14481 14481
14482 @DomName('MediaKeyEvent.errorCode') 14482 @DomName('MediaKeyEvent.errorCode')
14483 @DocsEditable 14483 @DocsEditable
14484 final MediaKeyError errorCode; 14484 final MediaKeyError errorCode;
14485 14485
(...skipping 21 matching lines...) Expand all
14507 @DocsEditable 14507 @DocsEditable
14508 final int systemCode; 14508 final int systemCode;
14509 } 14509 }
14510 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14510 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14511 // for details. All rights reserved. Use of this source code is governed by a 14511 // for details. All rights reserved. Use of this source code is governed by a
14512 // BSD-style license that can be found in the LICENSE file. 14512 // BSD-style license that can be found in the LICENSE file.
14513 14513
14514 14514
14515 @DocsEditable 14515 @DocsEditable
14516 @DomName('MediaList') 14516 @DomName('MediaList')
14517 class MediaList native "*MediaList" { 14517 class MediaList native "MediaList" {
14518 14518
14519 @DomName('MediaList.length') 14519 @DomName('MediaList.length')
14520 @DocsEditable 14520 @DocsEditable
14521 final int length; 14521 final int length;
14522 14522
14523 @DomName('MediaList.mediaText') 14523 @DomName('MediaList.mediaText')
14524 @DocsEditable 14524 @DocsEditable
14525 String mediaText; 14525 String mediaText;
14526 14526
14527 @DomName('MediaList.appendMedium') 14527 @DomName('MediaList.appendMedium')
14528 @DocsEditable 14528 @DocsEditable
14529 void appendMedium(String newMedium) native; 14529 void appendMedium(String newMedium) native;
14530 14530
14531 @DomName('MediaList.deleteMedium') 14531 @DomName('MediaList.deleteMedium')
14532 @DocsEditable 14532 @DocsEditable
14533 void deleteMedium(String oldMedium) native; 14533 void deleteMedium(String oldMedium) native;
14534 14534
14535 @DomName('MediaList.item') 14535 @DomName('MediaList.item')
14536 @DocsEditable 14536 @DocsEditable
14537 String item(int index) native; 14537 String item(int index) native;
14538 } 14538 }
14539 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14539 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14540 // for details. All rights reserved. Use of this source code is governed by a 14540 // for details. All rights reserved. Use of this source code is governed by a
14541 // BSD-style license that can be found in the LICENSE file. 14541 // BSD-style license that can be found in the LICENSE file.
14542 14542
14543 14543
14544 @DocsEditable 14544 @DocsEditable
14545 @DomName('MediaQueryList') 14545 @DomName('MediaQueryList')
14546 class MediaQueryList native "*MediaQueryList" { 14546 class MediaQueryList native "MediaQueryList" {
14547 14547
14548 @DomName('MediaQueryList.matches') 14548 @DomName('MediaQueryList.matches')
14549 @DocsEditable 14549 @DocsEditable
14550 final bool matches; 14550 final bool matches;
14551 14551
14552 @DomName('MediaQueryList.media') 14552 @DomName('MediaQueryList.media')
14553 @DocsEditable 14553 @DocsEditable
14554 final String media; 14554 final String media;
14555 14555
14556 @DomName('MediaQueryList.addListener') 14556 @DomName('MediaQueryList.addListener')
(...skipping 14 matching lines...) Expand all
14571 14571
14572 void queryChanged(MediaQueryList list); 14572 void queryChanged(MediaQueryList list);
14573 } 14573 }
14574 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14574 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14575 // for details. All rights reserved. Use of this source code is governed by a 14575 // for details. All rights reserved. Use of this source code is governed by a
14576 // BSD-style license that can be found in the LICENSE file. 14576 // BSD-style license that can be found in the LICENSE file.
14577 14577
14578 14578
14579 @DocsEditable 14579 @DocsEditable
14580 @DomName('MediaSource') 14580 @DomName('MediaSource')
14581 class MediaSource extends EventTarget native "*MediaSource" { 14581 class MediaSource extends EventTarget native "MediaSource" {
14582 14582
14583 @DomName('MediaSource.MediaSource') 14583 @DomName('MediaSource.MediaSource')
14584 @DocsEditable 14584 @DocsEditable
14585 factory MediaSource() { 14585 factory MediaSource() {
14586 return MediaSource._create_1(); 14586 return MediaSource._create_1();
14587 } 14587 }
14588 static MediaSource _create_1() => JS('MediaSource', 'new MediaSource()'); 14588 static MediaSource _create_1() => JS('MediaSource', 'new MediaSource()');
14589 14589
14590 @DomName('MediaSource.activeSourceBuffers') 14590 @DomName('MediaSource.activeSourceBuffers')
14591 @DocsEditable 14591 @DocsEditable
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
14634 void removeSourceBuffer(SourceBuffer buffer) native; 14634 void removeSourceBuffer(SourceBuffer buffer) native;
14635 } 14635 }
14636 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 14636 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
14637 // for details. All rights reserved. Use of this source code is governed by a 14637 // for details. All rights reserved. Use of this source code is governed by a
14638 // BSD-style license that can be found in the LICENSE file. 14638 // BSD-style license that can be found in the LICENSE file.
14639 14639
14640 14640
14641 @DomName('MediaStream') 14641 @DomName('MediaStream')
14642 @SupportedBrowser(SupportedBrowser.CHROME) 14642 @SupportedBrowser(SupportedBrowser.CHROME)
14643 @Experimental 14643 @Experimental
14644 class MediaStream extends EventTarget native "*MediaStream" { 14644 class MediaStream extends EventTarget native "MediaStream" {
14645 14645
14646 @DomName('MediaStream.addtrackEvent') 14646 @DomName('MediaStream.addtrackEvent')
14647 @DocsEditable 14647 @DocsEditable
14648 static const EventStreamProvider<Event> addTrackEvent = const EventStreamProvi der<Event>('addtrack'); 14648 static const EventStreamProvider<Event> addTrackEvent = const EventStreamProvi der<Event>('addtrack');
14649 14649
14650 @DomName('MediaStream.endedEvent') 14650 @DomName('MediaStream.endedEvent')
14651 @DocsEditable 14651 @DocsEditable
14652 static const EventStreamProvider<Event> endedEvent = const EventStreamProvider <Event>('ended'); 14652 static const EventStreamProvider<Event> endedEvent = const EventStreamProvider <Event>('ended');
14653 14653
14654 @DomName('MediaStream.removetrackEvent') 14654 @DomName('MediaStream.removetrackEvent')
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
14749 } 14749 }
14750 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14750 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14751 // for details. All rights reserved. Use of this source code is governed by a 14751 // for details. All rights reserved. Use of this source code is governed by a
14752 // BSD-style license that can be found in the LICENSE file. 14752 // BSD-style license that can be found in the LICENSE file.
14753 14753
14754 14754
14755 @DocsEditable 14755 @DocsEditable
14756 @DomName('MediaStreamEvent') 14756 @DomName('MediaStreamEvent')
14757 @SupportedBrowser(SupportedBrowser.CHROME) 14757 @SupportedBrowser(SupportedBrowser.CHROME)
14758 @Experimental 14758 @Experimental
14759 class MediaStreamEvent extends Event native "*MediaStreamEvent" { 14759 class MediaStreamEvent extends Event native "MediaStreamEvent" {
14760 14760
14761 /// Checks if this type is supported on the current platform. 14761 /// Checks if this type is supported on the current platform.
14762 static bool get supported => Device.isEventTypeSupported('MediaStreamEvent'); 14762 static bool get supported => Device.isEventTypeSupported('MediaStreamEvent');
14763 14763
14764 @DomName('MediaStreamEvent.stream') 14764 @DomName('MediaStreamEvent.stream')
14765 @DocsEditable 14765 @DocsEditable
14766 final MediaStream stream; 14766 final MediaStream stream;
14767 } 14767 }
14768 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14768 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14769 // for details. All rights reserved. Use of this source code is governed by a 14769 // for details. All rights reserved. Use of this source code is governed by a
14770 // BSD-style license that can be found in the LICENSE file. 14770 // BSD-style license that can be found in the LICENSE file.
14771 14771
14772 14772
14773 @DocsEditable 14773 @DocsEditable
14774 @DomName('MediaStreamTrack') 14774 @DomName('MediaStreamTrack')
14775 @SupportedBrowser(SupportedBrowser.CHROME) 14775 @SupportedBrowser(SupportedBrowser.CHROME)
14776 @Experimental 14776 @Experimental
14777 class MediaStreamTrack extends EventTarget native "*MediaStreamTrack" { 14777 class MediaStreamTrack extends EventTarget native "MediaStreamTrack" {
14778 14778
14779 @DomName('MediaStreamTrack.endedEvent') 14779 @DomName('MediaStreamTrack.endedEvent')
14780 @DocsEditable 14780 @DocsEditable
14781 static const EventStreamProvider<Event> endedEvent = const EventStreamProvider <Event>('ended'); 14781 static const EventStreamProvider<Event> endedEvent = const EventStreamProvider <Event>('ended');
14782 14782
14783 @DomName('MediaStreamTrack.muteEvent') 14783 @DomName('MediaStreamTrack.muteEvent')
14784 @DocsEditable 14784 @DocsEditable
14785 static const EventStreamProvider<Event> muteEvent = const EventStreamProvider< Event>('mute'); 14785 static const EventStreamProvider<Event> muteEvent = const EventStreamProvider< Event>('mute');
14786 14786
14787 @DomName('MediaStreamTrack.unmuteEvent') 14787 @DomName('MediaStreamTrack.unmuteEvent')
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
14836 } 14836 }
14837 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14837 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14838 // for details. All rights reserved. Use of this source code is governed by a 14838 // for details. All rights reserved. Use of this source code is governed by a
14839 // BSD-style license that can be found in the LICENSE file. 14839 // BSD-style license that can be found in the LICENSE file.
14840 14840
14841 14841
14842 @DocsEditable 14842 @DocsEditable
14843 @DomName('MediaStreamTrackEvent') 14843 @DomName('MediaStreamTrackEvent')
14844 @SupportedBrowser(SupportedBrowser.CHROME) 14844 @SupportedBrowser(SupportedBrowser.CHROME)
14845 @Experimental 14845 @Experimental
14846 class MediaStreamTrackEvent extends Event native "*MediaStreamTrackEvent" { 14846 class MediaStreamTrackEvent extends Event native "MediaStreamTrackEvent" {
14847 14847
14848 /// Checks if this type is supported on the current platform. 14848 /// Checks if this type is supported on the current platform.
14849 static bool get supported => Device.isEventTypeSupported('MediaStreamTrackEven t'); 14849 static bool get supported => Device.isEventTypeSupported('MediaStreamTrackEven t');
14850 14850
14851 @DomName('MediaStreamTrackEvent.track') 14851 @DomName('MediaStreamTrackEvent.track')
14852 @DocsEditable 14852 @DocsEditable
14853 final MediaStreamTrack track; 14853 final MediaStreamTrack track;
14854 } 14854 }
14855 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14855 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14856 // for details. All rights reserved. Use of this source code is governed by a 14856 // for details. All rights reserved. Use of this source code is governed by a
14857 // BSD-style license that can be found in the LICENSE file. 14857 // BSD-style license that can be found in the LICENSE file.
14858 14858
14859 14859
14860 @DocsEditable 14860 @DocsEditable
14861 @DomName('MemoryInfo') 14861 @DomName('MemoryInfo')
14862 class MemoryInfo native "*MemoryInfo" { 14862 class MemoryInfo native "MemoryInfo" {
14863 14863
14864 @DomName('MemoryInfo.jsHeapSizeLimit') 14864 @DomName('MemoryInfo.jsHeapSizeLimit')
14865 @DocsEditable 14865 @DocsEditable
14866 final int jsHeapSizeLimit; 14866 final int jsHeapSizeLimit;
14867 14867
14868 @DomName('MemoryInfo.totalJSHeapSize') 14868 @DomName('MemoryInfo.totalJSHeapSize')
14869 @DocsEditable 14869 @DocsEditable
14870 final int totalJSHeapSize; 14870 final int totalJSHeapSize;
14871 14871
14872 @DomName('MemoryInfo.usedJSHeapSize') 14872 @DomName('MemoryInfo.usedJSHeapSize')
(...skipping 10 matching lines...) Expand all
14883 * An HTML <menu> element. 14883 * An HTML <menu> element.
14884 * 14884 *
14885 * A <menu> element represents an unordered list of menu commands. 14885 * A <menu> element represents an unordered list of menu commands.
14886 * 14886 *
14887 * See also: 14887 * See also:
14888 * 14888 *
14889 * * [Menu Element](https://developer.mozilla.org/en-US/docs/HTML/Element/menu) from MDN. 14889 * * [Menu Element](https://developer.mozilla.org/en-US/docs/HTML/Element/menu) from MDN.
14890 * * [Menu Element](http://www.w3.org/TR/html5/the-menu-element.html#the-menu-e lement) from the W3C. 14890 * * [Menu Element](http://www.w3.org/TR/html5/the-menu-element.html#the-menu-e lement) from the W3C.
14891 */ 14891 */
14892 @DomName('HTMLMenuElement') 14892 @DomName('HTMLMenuElement')
14893 class MenuElement extends Element native "*HTMLMenuElement" { 14893 class MenuElement extends Element native "HTMLMenuElement" {
14894 14894
14895 @DomName('HTMLMenuElement.HTMLMenuElement') 14895 @DomName('HTMLMenuElement.HTMLMenuElement')
14896 @DocsEditable 14896 @DocsEditable
14897 factory MenuElement() => document.$dom_createElement("menu"); 14897 factory MenuElement() => document.$dom_createElement("menu");
14898 } 14898 }
14899 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14899 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14900 // for details. All rights reserved. Use of this source code is governed by a 14900 // for details. All rights reserved. Use of this source code is governed by a
14901 // BSD-style license that can be found in the LICENSE file. 14901 // BSD-style license that can be found in the LICENSE file.
14902 14902
14903 14903
14904 @DocsEditable 14904 @DocsEditable
14905 @DomName('MessageChannel') 14905 @DomName('MessageChannel')
14906 class MessageChannel native "*MessageChannel" { 14906 class MessageChannel native "MessageChannel" {
14907 14907
14908 @DomName('MessageChannel.MessageChannel') 14908 @DomName('MessageChannel.MessageChannel')
14909 @DocsEditable 14909 @DocsEditable
14910 factory MessageChannel() { 14910 factory MessageChannel() {
14911 return MessageChannel._create_1(); 14911 return MessageChannel._create_1();
14912 } 14912 }
14913 static MessageChannel _create_1() => JS('MessageChannel', 'new MessageChannel( )'); 14913 static MessageChannel _create_1() => JS('MessageChannel', 'new MessageChannel( )');
14914 14914
14915 @DomName('MessageChannel.port1') 14915 @DomName('MessageChannel.port1')
14916 @DocsEditable 14916 @DocsEditable
14917 final MessagePort port1; 14917 final MessagePort port1;
14918 14918
14919 @DomName('MessageChannel.port2') 14919 @DomName('MessageChannel.port2')
14920 @DocsEditable 14920 @DocsEditable
14921 final MessagePort port2; 14921 final MessagePort port2;
14922 } 14922 }
14923 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 14923 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
14924 // for details. All rights reserved. Use of this source code is governed by a 14924 // for details. All rights reserved. Use of this source code is governed by a
14925 // BSD-style license that can be found in the LICENSE file. 14925 // BSD-style license that can be found in the LICENSE file.
14926 14926
14927 // WARNING: Do not edit - generated code. 14927 // WARNING: Do not edit - generated code.
14928 14928
14929 14929
14930 @DomName('MessageEvent') 14930 @DomName('MessageEvent')
14931 class MessageEvent extends Event native "*MessageEvent" { 14931 class MessageEvent extends Event native "MessageEvent" {
14932 factory MessageEvent(String type, 14932 factory MessageEvent(String type,
14933 {bool canBubble: false, bool cancelable: false, Object data, 14933 {bool canBubble: false, bool cancelable: false, Object data,
14934 String origin, String lastEventId, 14934 String origin, String lastEventId,
14935 Window source, List messagePorts}) { 14935 Window source, List messagePorts}) {
14936 if (source == null) { 14936 if (source == null) {
14937 source = window; 14937 source = window;
14938 } 14938 }
14939 var event = document.$dom_createEvent("MessageEvent"); 14939 var event = document.$dom_createEvent("MessageEvent");
14940 event.$dom_initMessageEvent(type, canBubble, cancelable, data, origin, 14940 event.$dom_initMessageEvent(type, canBubble, cancelable, data, origin,
14941 lastEventId, source, messagePorts); 14941 lastEventId, source, messagePorts);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
14977 void $dom_initMessageEvent(String typeArg, bool canBubbleArg, bool cancelableA rg, Object dataArg, String originArg, String lastEventIdArg, Window sourceArg, L ist messagePorts) native; 14977 void $dom_initMessageEvent(String typeArg, bool canBubbleArg, bool cancelableA rg, Object dataArg, String originArg, String lastEventIdArg, Window sourceArg, L ist messagePorts) native;
14978 14978
14979 } 14979 }
14980 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14980 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14981 // for details. All rights reserved. Use of this source code is governed by a 14981 // for details. All rights reserved. Use of this source code is governed by a
14982 // BSD-style license that can be found in the LICENSE file. 14982 // BSD-style license that can be found in the LICENSE file.
14983 14983
14984 14984
14985 @DocsEditable 14985 @DocsEditable
14986 @DomName('MessagePort') 14986 @DomName('MessagePort')
14987 class MessagePort extends EventTarget native "*MessagePort" { 14987 class MessagePort extends EventTarget native "MessagePort" {
14988 14988
14989 @DomName('MessagePort.messageEvent') 14989 @DomName('MessagePort.messageEvent')
14990 @DocsEditable 14990 @DocsEditable
14991 static const EventStreamProvider<MessageEvent> messageEvent = const EventStrea mProvider<MessageEvent>('message'); 14991 static const EventStreamProvider<MessageEvent> messageEvent = const EventStrea mProvider<MessageEvent>('message');
14992 14992
14993 @JSName('addEventListener') 14993 @JSName('addEventListener')
14994 @DomName('MessagePort.addEventListener') 14994 @DomName('MessagePort.addEventListener')
14995 @DocsEditable 14995 @DocsEditable
14996 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; 14996 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native;
14997 14997
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
15037 @DocsEditable 15037 @DocsEditable
15038 Stream<MessageEvent> get onMessage => messageEvent.forTarget(this); 15038 Stream<MessageEvent> get onMessage => messageEvent.forTarget(this);
15039 } 15039 }
15040 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15040 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15041 // for details. All rights reserved. Use of this source code is governed by a 15041 // for details. All rights reserved. Use of this source code is governed by a
15042 // BSD-style license that can be found in the LICENSE file. 15042 // BSD-style license that can be found in the LICENSE file.
15043 15043
15044 15044
15045 @DocsEditable 15045 @DocsEditable
15046 @DomName('HTMLMetaElement') 15046 @DomName('HTMLMetaElement')
15047 class MetaElement extends Element native "*HTMLMetaElement" { 15047 class MetaElement extends Element native "HTMLMetaElement" {
15048 15048
15049 @DomName('HTMLMetaElement.content') 15049 @DomName('HTMLMetaElement.content')
15050 @DocsEditable 15050 @DocsEditable
15051 String content; 15051 String content;
15052 15052
15053 @DomName('HTMLMetaElement.httpEquiv') 15053 @DomName('HTMLMetaElement.httpEquiv')
15054 @DocsEditable 15054 @DocsEditable
15055 String httpEquiv; 15055 String httpEquiv;
15056 15056
15057 @DomName('HTMLMetaElement.name') 15057 @DomName('HTMLMetaElement.name')
15058 @DocsEditable 15058 @DocsEditable
15059 String name; 15059 String name;
15060 } 15060 }
15061 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15061 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15062 // for details. All rights reserved. Use of this source code is governed by a 15062 // for details. All rights reserved. Use of this source code is governed by a
15063 // BSD-style license that can be found in the LICENSE file. 15063 // BSD-style license that can be found in the LICENSE file.
15064 15064
15065 15065
15066 @DocsEditable 15066 @DocsEditable
15067 @DomName('Metadata') 15067 @DomName('Metadata')
15068 class Metadata native "*Metadata" { 15068 class Metadata native "Metadata" {
15069 15069
15070 DateTime get modificationTime => _convertNativeToDart_DateTime(this._get_modif icationTime); 15070 DateTime get modificationTime => _convertNativeToDart_DateTime(this._get_modif icationTime);
15071 @JSName('modificationTime') 15071 @JSName('modificationTime')
15072 @DomName('Metadata.modificationTime') 15072 @DomName('Metadata.modificationTime')
15073 @DocsEditable 15073 @DocsEditable
15074 final dynamic _get_modificationTime; 15074 final dynamic _get_modificationTime;
15075 15075
15076 @DomName('Metadata.size') 15076 @DomName('Metadata.size')
15077 @DocsEditable 15077 @DocsEditable
15078 final int size; 15078 final int size;
15079 } 15079 }
15080 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15080 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15081 // for details. All rights reserved. Use of this source code is governed by a 15081 // for details. All rights reserved. Use of this source code is governed by a
15082 // BSD-style license that can be found in the LICENSE file. 15082 // BSD-style license that can be found in the LICENSE file.
15083 15083
15084 // WARNING: Do not edit - generated code. 15084 // WARNING: Do not edit - generated code.
15085 15085
15086 15086
15087 typedef void MetadataCallback(Metadata metadata); 15087 typedef void MetadataCallback(Metadata metadata);
15088 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15088 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15089 // for details. All rights reserved. Use of this source code is governed by a 15089 // for details. All rights reserved. Use of this source code is governed by a
15090 // BSD-style license that can be found in the LICENSE file. 15090 // BSD-style license that can be found in the LICENSE file.
15091 15091
15092 15092
15093 @DocsEditable 15093 @DocsEditable
15094 @DomName('HTMLMeterElement') 15094 @DomName('HTMLMeterElement')
15095 @SupportedBrowser(SupportedBrowser.CHROME) 15095 @SupportedBrowser(SupportedBrowser.CHROME)
15096 @SupportedBrowser(SupportedBrowser.FIREFOX) 15096 @SupportedBrowser(SupportedBrowser.FIREFOX)
15097 @SupportedBrowser(SupportedBrowser.SAFARI) 15097 @SupportedBrowser(SupportedBrowser.SAFARI)
15098 class MeterElement extends Element native "*HTMLMeterElement" { 15098 class MeterElement extends Element native "HTMLMeterElement" {
15099 15099
15100 @DomName('HTMLMeterElement.HTMLMeterElement') 15100 @DomName('HTMLMeterElement.HTMLMeterElement')
15101 @DocsEditable 15101 @DocsEditable
15102 factory MeterElement() => document.$dom_createElement("meter"); 15102 factory MeterElement() => document.$dom_createElement("meter");
15103 15103
15104 /// Checks if this type is supported on the current platform. 15104 /// Checks if this type is supported on the current platform.
15105 static bool get supported => Element.isTagSupported('meter'); 15105 static bool get supported => Element.isTagSupported('meter');
15106 15106
15107 @DomName('HTMLMeterElement.high') 15107 @DomName('HTMLMeterElement.high')
15108 @DocsEditable 15108 @DocsEditable
(...skipping 25 matching lines...) Expand all
15134 @DocsEditable 15134 @DocsEditable
15135 num value; 15135 num value;
15136 } 15136 }
15137 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15137 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15138 // for details. All rights reserved. Use of this source code is governed by a 15138 // for details. All rights reserved. Use of this source code is governed by a
15139 // BSD-style license that can be found in the LICENSE file. 15139 // BSD-style license that can be found in the LICENSE file.
15140 15140
15141 15141
15142 @DocsEditable 15142 @DocsEditable
15143 @DomName('HTMLModElement') 15143 @DomName('HTMLModElement')
15144 class ModElement extends Element native "*HTMLModElement" { 15144 class ModElement extends Element native "HTMLModElement" {
15145 15145
15146 @DomName('HTMLModElement.cite') 15146 @DomName('HTMLModElement.cite')
15147 @DocsEditable 15147 @DocsEditable
15148 String cite; 15148 String cite;
15149 15149
15150 @DomName('HTMLModElement.dateTime') 15150 @DomName('HTMLModElement.dateTime')
15151 @DocsEditable 15151 @DocsEditable
15152 String dateTime; 15152 String dateTime;
15153 } 15153 }
15154 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15154 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15155 // for details. All rights reserved. Use of this source code is governed by a 15155 // for details. All rights reserved. Use of this source code is governed by a
15156 // BSD-style license that can be found in the LICENSE file. 15156 // BSD-style license that can be found in the LICENSE file.
15157 15157
15158 15158
15159 @DomName('MouseEvent') 15159 @DomName('MouseEvent')
15160 class MouseEvent extends UIEvent native "*MouseEvent" { 15160 class MouseEvent extends UIEvent native "MouseEvent" {
15161 factory MouseEvent(String type, 15161 factory MouseEvent(String type,
15162 {Window view, int detail: 0, int screenX: 0, int screenY: 0, 15162 {Window view, int detail: 0, int screenX: 0, int screenY: 0,
15163 int clientX: 0, int clientY: 0, int button: 0, bool canBubble: true, 15163 int clientX: 0, int clientY: 0, int button: 0, bool canBubble: true,
15164 bool cancelable: true, bool ctrlKey: false, bool altKey: false, 15164 bool cancelable: true, bool ctrlKey: false, bool altKey: false,
15165 bool shiftKey: false, bool metaKey: false, EventTarget relatedTarget}) { 15165 bool shiftKey: false, bool metaKey: false, EventTarget relatedTarget}) {
15166 15166
15167 if (view == null) { 15167 if (view == null) {
15168 view = window; 15168 view = window;
15169 } 15169 }
15170 var event = document.$dom_createEvent('MouseEvent'); 15170 var event = document.$dom_createEvent('MouseEvent');
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
15326 // WARNING: Do not edit - generated code. 15326 // WARNING: Do not edit - generated code.
15327 15327
15328 15328
15329 typedef void MutationCallback(List<MutationRecord> mutations, MutationObserver o bserver); 15329 typedef void MutationCallback(List<MutationRecord> mutations, MutationObserver o bserver);
15330 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15330 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15331 // for details. All rights reserved. Use of this source code is governed by a 15331 // for details. All rights reserved. Use of this source code is governed by a
15332 // BSD-style license that can be found in the LICENSE file. 15332 // BSD-style license that can be found in the LICENSE file.
15333 15333
15334 15334
15335 @DomName('MutationEvent') 15335 @DomName('MutationEvent')
15336 class MutationEvent extends Event native "*MutationEvent" { 15336 class MutationEvent extends Event native "MutationEvent" {
15337 factory MutationEvent(String type, 15337 factory MutationEvent(String type,
15338 {bool canBubble: false, bool cancelable: false, Node relatedNode, 15338 {bool canBubble: false, bool cancelable: false, Node relatedNode,
15339 String prevValue, String newValue, String attrName, int attrChange: 0}) { 15339 String prevValue, String newValue, String attrName, int attrChange: 0}) {
15340 15340
15341 var event = document.$dom_createEvent('MutationEvent'); 15341 var event = document.$dom_createEvent('MutationEvent');
15342 event.$dom_initMutationEvent(type, canBubble, cancelable, relatedNode, 15342 event.$dom_initMutationEvent(type, canBubble, cancelable, relatedNode,
15343 prevValue, newValue, attrName, attrChange); 15343 prevValue, newValue, attrName, attrChange);
15344 return event; 15344 return event;
15345 } 15345 }
15346 15346
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
15382 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15382 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15383 // for details. All rights reserved. Use of this source code is governed by a 15383 // for details. All rights reserved. Use of this source code is governed by a
15384 // BSD-style license that can be found in the LICENSE file. 15384 // BSD-style license that can be found in the LICENSE file.
15385 15385
15386 15386
15387 @DomName('MutationObserver') 15387 @DomName('MutationObserver')
15388 @SupportedBrowser(SupportedBrowser.CHROME) 15388 @SupportedBrowser(SupportedBrowser.CHROME)
15389 @SupportedBrowser(SupportedBrowser.FIREFOX) 15389 @SupportedBrowser(SupportedBrowser.FIREFOX)
15390 @SupportedBrowser(SupportedBrowser.SAFARI) 15390 @SupportedBrowser(SupportedBrowser.SAFARI)
15391 @Experimental 15391 @Experimental
15392 class MutationObserver native "*MutationObserver" { 15392 class MutationObserver native "MutationObserver,WebkitMutationObserver" {
15393 15393
15394 @DomName('MutationObserver.observe') 15394 @DomName('MutationObserver.observe')
15395 @DocsEditable 15395 @DocsEditable
15396 void _observe(Node target, Map options) { 15396 void _observe(Node target, Map options) {
15397 var options_1 = convertDartToNative_Dictionary(options); 15397 var options_1 = convertDartToNative_Dictionary(options);
15398 __observe_1(target, options_1); 15398 __observe_1(target, options_1);
15399 return; 15399 return;
15400 } 15400 }
15401 @JSName('observe') 15401 @JSName('observe')
15402 @DomName('MutationObserver.observe') 15402 @DomName('MutationObserver.observe')
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
15478 convertDartClosureToJS(callback, 2)); 15478 convertDartClosureToJS(callback, 2));
15479 } 15479 }
15480 } 15480 }
15481 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15481 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15482 // for details. All rights reserved. Use of this source code is governed by a 15482 // for details. All rights reserved. Use of this source code is governed by a
15483 // BSD-style license that can be found in the LICENSE file. 15483 // BSD-style license that can be found in the LICENSE file.
15484 15484
15485 15485
15486 @DocsEditable 15486 @DocsEditable
15487 @DomName('MutationRecord') 15487 @DomName('MutationRecord')
15488 class MutationRecord native "*MutationRecord" { 15488 class MutationRecord native "MutationRecord" {
15489 15489
15490 @DomName('MutationRecord.addedNodes') 15490 @DomName('MutationRecord.addedNodes')
15491 @DocsEditable 15491 @DocsEditable
15492 @Returns('NodeList') 15492 @Returns('NodeList')
15493 @Creates('NodeList') 15493 @Creates('NodeList')
15494 final List<Node> addedNodes; 15494 final List<Node> addedNodes;
15495 15495
15496 @DomName('MutationRecord.attributeName') 15496 @DomName('MutationRecord.attributeName')
15497 @DocsEditable 15497 @DocsEditable
15498 final String attributeName; 15498 final String attributeName;
(...skipping 28 matching lines...) Expand all
15527 @DocsEditable 15527 @DocsEditable
15528 final String type; 15528 final String type;
15529 } 15529 }
15530 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15530 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15531 // for details. All rights reserved. Use of this source code is governed by a 15531 // for details. All rights reserved. Use of this source code is governed by a
15532 // BSD-style license that can be found in the LICENSE file. 15532 // BSD-style license that can be found in the LICENSE file.
15533 15533
15534 15534
15535 @DocsEditable 15535 @DocsEditable
15536 @DomName('WebKitNamedFlow') 15536 @DomName('WebKitNamedFlow')
15537 class NamedFlow extends EventTarget native "*WebKitNamedFlow" { 15537 class NamedFlow extends EventTarget native "WebKitNamedFlow" {
15538 15538
15539 @DomName('NamedFlow.firstEmptyRegionIndex') 15539 @DomName('NamedFlow.firstEmptyRegionIndex')
15540 @DocsEditable 15540 @DocsEditable
15541 final int firstEmptyRegionIndex; 15541 final int firstEmptyRegionIndex;
15542 15542
15543 @DomName('NamedFlow.name') 15543 @DomName('NamedFlow.name')
15544 @DocsEditable 15544 @DocsEditable
15545 final String name; 15545 final String name;
15546 15546
15547 @DomName('NamedFlow.overset') 15547 @DomName('NamedFlow.overset')
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
15579 @DomName('NamedFlow.removeEventListener') 15579 @DomName('NamedFlow.removeEventListener')
15580 @DocsEditable 15580 @DocsEditable
15581 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native; 15581 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native;
15582 } 15582 }
15583 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15583 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15584 // for details. All rights reserved. Use of this source code is governed by a 15584 // for details. All rights reserved. Use of this source code is governed by a
15585 // BSD-style license that can be found in the LICENSE file. 15585 // BSD-style license that can be found in the LICENSE file.
15586 15586
15587 15587
15588 @DomName('Navigator') 15588 @DomName('Navigator')
15589 class Navigator native "*Navigator" { 15589 class Navigator native "Navigator" {
15590 15590
15591 @DomName('Navigator.language') 15591 @DomName('Navigator.language')
15592 String get language => JS('String', '#.language || #.userLanguage', this, 15592 String get language => JS('String', '#.language || #.userLanguage', this,
15593 this); 15593 this);
15594 15594
15595 /** 15595 /**
15596 * Gets a stream (video and or audio) from the local computer. 15596 * Gets a stream (video and or audio) from the local computer.
15597 * 15597 *
15598 * Use [MediaStream.supported] to check if this is supported by the current 15598 * Use [MediaStream.supported] to check if this is supported by the current
15599 * platform. The arguments `audio` and `video` default to `false` (stream does 15599 * platform. The arguments `audio` and `video` default to `false` (stream does
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
15759 List<Gamepad> getGamepads() native; 15759 List<Gamepad> getGamepads() native;
15760 15760
15761 } 15761 }
15762 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15762 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15763 // for details. All rights reserved. Use of this source code is governed by a 15763 // for details. All rights reserved. Use of this source code is governed by a
15764 // BSD-style license that can be found in the LICENSE file. 15764 // BSD-style license that can be found in the LICENSE file.
15765 15765
15766 15766
15767 @DocsEditable 15767 @DocsEditable
15768 @DomName('NavigatorUserMediaError') 15768 @DomName('NavigatorUserMediaError')
15769 class NavigatorUserMediaError native "*NavigatorUserMediaError" { 15769 class NavigatorUserMediaError native "NavigatorUserMediaError" {
15770 15770
15771 static const int PERMISSION_DENIED = 1; 15771 static const int PERMISSION_DENIED = 1;
15772 15772
15773 @DomName('NavigatorUserMediaError.code') 15773 @DomName('NavigatorUserMediaError.code')
15774 @DocsEditable 15774 @DocsEditable
15775 final int code; 15775 final int code;
15776 } 15776 }
15777 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15777 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15778 // for details. All rights reserved. Use of this source code is governed by a 15778 // for details. All rights reserved. Use of this source code is governed by a
15779 // BSD-style license that can be found in the LICENSE file. 15779 // BSD-style license that can be found in the LICENSE file.
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
15973 15973
15974 void set length(int value) { 15974 void set length(int value) {
15975 throw new UnsupportedError( 15975 throw new UnsupportedError(
15976 "Cannot set length on immutable List."); 15976 "Cannot set length on immutable List.");
15977 } 15977 }
15978 15978
15979 Node operator[](int index) => _this.$dom_childNodes[index]; 15979 Node operator[](int index) => _this.$dom_childNodes[index];
15980 } 15980 }
15981 15981
15982 @DomName('Node') 15982 @DomName('Node')
15983 class Node extends EventTarget native "*Node" { 15983 class Node extends EventTarget native "Node" {
15984 List<Node> get nodes { 15984 List<Node> get nodes {
15985 return new _ChildNodeListLazy(this); 15985 return new _ChildNodeListLazy(this);
15986 } 15986 }
15987 15987
15988 void set nodes(Iterable<Node> value) { 15988 void set nodes(Iterable<Node> value) {
15989 // Copy list first since we don't want liveness during iteration. 15989 // Copy list first since we don't want liveness during iteration.
15990 // TODO(jacobr): there is a better way to do this. 15990 // TODO(jacobr): there is a better way to do this.
15991 List copy = new List.from(value); 15991 List copy = new List.from(value);
15992 text = ''; 15992 text = '';
15993 for (Node node in copy) { 15993 for (Node node in copy) {
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
16247 Node $dom_replaceChild(Node newChild, Node oldChild) native; 16247 Node $dom_replaceChild(Node newChild, Node oldChild) native;
16248 16248
16249 } 16249 }
16250 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16250 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16251 // for details. All rights reserved. Use of this source code is governed by a 16251 // for details. All rights reserved. Use of this source code is governed by a
16252 // BSD-style license that can be found in the LICENSE file. 16252 // BSD-style license that can be found in the LICENSE file.
16253 16253
16254 16254
16255 @DocsEditable 16255 @DocsEditable
16256 @DomName('NodeFilter') 16256 @DomName('NodeFilter')
16257 class NodeFilter native "*NodeFilter" { 16257 class NodeFilter native "NodeFilter" {
16258 16258
16259 static const int FILTER_ACCEPT = 1; 16259 static const int FILTER_ACCEPT = 1;
16260 16260
16261 static const int FILTER_REJECT = 2; 16261 static const int FILTER_REJECT = 2;
16262 16262
16263 static const int FILTER_SKIP = 3; 16263 static const int FILTER_SKIP = 3;
16264 16264
16265 static const int SHOW_ALL = 0xFFFFFFFF; 16265 static const int SHOW_ALL = 0xFFFFFFFF;
16266 16266
16267 static const int SHOW_ATTRIBUTE = 0x00000002; 16267 static const int SHOW_ATTRIBUTE = 0x00000002;
(...skipping 24 matching lines...) Expand all
16292 @DocsEditable 16292 @DocsEditable
16293 int acceptNode(Node n) native; 16293 int acceptNode(Node n) native;
16294 } 16294 }
16295 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16295 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16296 // for details. All rights reserved. Use of this source code is governed by a 16296 // for details. All rights reserved. Use of this source code is governed by a
16297 // BSD-style license that can be found in the LICENSE file. 16297 // BSD-style license that can be found in the LICENSE file.
16298 16298
16299 16299
16300 @DocsEditable 16300 @DocsEditable
16301 @DomName('NodeIterator') 16301 @DomName('NodeIterator')
16302 class NodeIterator native "*NodeIterator" { 16302 class NodeIterator native "NodeIterator" {
16303 16303
16304 @DomName('NodeIterator.expandEntityReferences') 16304 @DomName('NodeIterator.expandEntityReferences')
16305 @DocsEditable 16305 @DocsEditable
16306 final bool expandEntityReferences; 16306 final bool expandEntityReferences;
16307 16307
16308 @DomName('NodeIterator.filter') 16308 @DomName('NodeIterator.filter')
16309 @DocsEditable 16309 @DocsEditable
16310 final NodeFilter filter; 16310 final NodeFilter filter;
16311 16311
16312 @DomName('NodeIterator.pointerBeforeReferenceNode') 16312 @DomName('NodeIterator.pointerBeforeReferenceNode')
(...skipping 24 matching lines...) Expand all
16337 @DocsEditable 16337 @DocsEditable
16338 Node previousNode() native; 16338 Node previousNode() native;
16339 } 16339 }
16340 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16340 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16341 // for details. All rights reserved. Use of this source code is governed by a 16341 // for details. All rights reserved. Use of this source code is governed by a
16342 // BSD-style license that can be found in the LICENSE file. 16342 // BSD-style license that can be found in the LICENSE file.
16343 16343
16344 16344
16345 @DocsEditable 16345 @DocsEditable
16346 @DomName('NodeList') 16346 @DomName('NodeList')
16347 class NodeList implements JavaScriptIndexingBehavior, List<Node> native "*NodeLi st" { 16347 class NodeList implements JavaScriptIndexingBehavior, List<Node> native "NodeLis t" {
16348 16348
16349 @DomName('NodeList.length') 16349 @DomName('NodeList.length')
16350 @DocsEditable 16350 @DocsEditable
16351 int get length => JS("int", "#.length", this); 16351 int get length => JS("int", "#.length", this);
16352 16352
16353 Node operator[](int index) => JS("Node", "#[#]", this, index); 16353 Node operator[](int index) => JS("Node", "#[#]", this, index);
16354 16354
16355 void operator[]=(int index, Node value) { 16355 void operator[]=(int index, Node value) {
16356 throw new UnsupportedError("Cannot assign element of immutable List."); 16356 throw new UnsupportedError("Cannot assign element of immutable List.");
16357 } 16357 }
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
16555 @DocsEditable 16555 @DocsEditable
16556 Node _item(int index) native; 16556 Node _item(int index) native;
16557 } 16557 }
16558 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16558 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16559 // for details. All rights reserved. Use of this source code is governed by a 16559 // for details. All rights reserved. Use of this source code is governed by a
16560 // BSD-style license that can be found in the LICENSE file. 16560 // BSD-style license that can be found in the LICENSE file.
16561 16561
16562 16562
16563 @DocsEditable 16563 @DocsEditable
16564 @DomName('Notation') 16564 @DomName('Notation')
16565 class Notation extends Node native "*Notation" { 16565 class Notation extends Node native "Notation" {
16566 16566
16567 @DomName('Notation.publicId') 16567 @DomName('Notation.publicId')
16568 @DocsEditable 16568 @DocsEditable
16569 final String publicId; 16569 final String publicId;
16570 16570
16571 @DomName('Notation.systemId') 16571 @DomName('Notation.systemId')
16572 @DocsEditable 16572 @DocsEditable
16573 final String systemId; 16573 final String systemId;
16574 } 16574 }
16575 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 16575 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
16576 // for details. All rights reserved. Use of this source code is governed by a 16576 // for details. All rights reserved. Use of this source code is governed by a
16577 // BSD-style license that can be found in the LICENSE file. 16577 // BSD-style license that can be found in the LICENSE file.
16578 16578
16579 16579
16580 @DomName('Notification') 16580 @DomName('Notification')
16581 class Notification extends EventTarget native "*Notification" { 16581 class Notification extends EventTarget native "Notification" {
16582 16582
16583 factory Notification(String title, {String titleDir: null, String body: null, 16583 factory Notification(String title, {String titleDir: null, String body: null,
16584 String bodyDir: null, String tag: null, String iconUrl: null}) { 16584 String bodyDir: null, String tag: null, String iconUrl: null}) {
16585 16585
16586 var parsedOptions = {}; 16586 var parsedOptions = {};
16587 if (titleDir != null) parsedOptions['titleDir'] = titleDir; 16587 if (titleDir != null) parsedOptions['titleDir'] = titleDir;
16588 if (body != null) parsedOptions['body'] = body; 16588 if (body != null) parsedOptions['body'] = body;
16589 if (bodyDir != null) parsedOptions['bodyDir'] = bodyDir; 16589 if (bodyDir != null) parsedOptions['bodyDir'] = bodyDir;
16590 if (tag != null) parsedOptions['tag'] = tag; 16590 if (tag != null) parsedOptions['tag'] = tag;
16591 if (iconUrl != null) parsedOptions['iconUrl'] = iconUrl; 16591 if (iconUrl != null) parsedOptions['iconUrl'] = iconUrl;
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
16705 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16705 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16706 // for details. All rights reserved. Use of this source code is governed by a 16706 // for details. All rights reserved. Use of this source code is governed by a
16707 // BSD-style license that can be found in the LICENSE file. 16707 // BSD-style license that can be found in the LICENSE file.
16708 16708
16709 16709
16710 @DocsEditable 16710 @DocsEditable
16711 @DomName('NotificationCenter') 16711 @DomName('NotificationCenter')
16712 @SupportedBrowser(SupportedBrowser.CHROME) 16712 @SupportedBrowser(SupportedBrowser.CHROME)
16713 @SupportedBrowser(SupportedBrowser.SAFARI) 16713 @SupportedBrowser(SupportedBrowser.SAFARI)
16714 @Experimental 16714 @Experimental
16715 class NotificationCenter native "*NotificationCenter" { 16715 class NotificationCenter native "NotificationCenter" {
16716 16716
16717 /// Checks if this type is supported on the current platform. 16717 /// Checks if this type is supported on the current platform.
16718 static bool get supported => JS('bool', '!!(window.webkitNotifications)'); 16718 static bool get supported => JS('bool', '!!(window.webkitNotifications)');
16719 16719
16720 @DomName('NotificationCenter.checkPermission') 16720 @DomName('NotificationCenter.checkPermission')
16721 @DocsEditable 16721 @DocsEditable
16722 int checkPermission() native; 16722 int checkPermission() native;
16723 16723
16724 @JSName('createHTMLNotification') 16724 @JSName('createHTMLNotification')
16725 @DomName('NotificationCenter.createHTMLNotification') 16725 @DomName('NotificationCenter.createHTMLNotification')
(...skipping 27 matching lines...) Expand all
16753 16753
16754 16754
16755 typedef void _NotificationPermissionCallback(String permission); 16755 typedef void _NotificationPermissionCallback(String permission);
16756 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16756 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16757 // for details. All rights reserved. Use of this source code is governed by a 16757 // for details. All rights reserved. Use of this source code is governed by a
16758 // BSD-style license that can be found in the LICENSE file. 16758 // BSD-style license that can be found in the LICENSE file.
16759 16759
16760 16760
16761 @DocsEditable 16761 @DocsEditable
16762 @DomName('HTMLOListElement') 16762 @DomName('HTMLOListElement')
16763 class OListElement extends Element native "*HTMLOListElement" { 16763 class OListElement extends Element native "HTMLOListElement" {
16764 16764
16765 @DomName('HTMLOListElement.HTMLOListElement') 16765 @DomName('HTMLOListElement.HTMLOListElement')
16766 @DocsEditable 16766 @DocsEditable
16767 factory OListElement() => document.$dom_createElement("ol"); 16767 factory OListElement() => document.$dom_createElement("ol");
16768 16768
16769 @DomName('HTMLOListElement.reversed') 16769 @DomName('HTMLOListElement.reversed')
16770 @DocsEditable 16770 @DocsEditable
16771 bool reversed; 16771 bool reversed;
16772 16772
16773 @DomName('HTMLOListElement.start') 16773 @DomName('HTMLOListElement.start')
16774 @DocsEditable 16774 @DocsEditable
16775 int start; 16775 int start;
16776 16776
16777 @DomName('HTMLOListElement.type') 16777 @DomName('HTMLOListElement.type')
16778 @DocsEditable 16778 @DocsEditable
16779 String type; 16779 String type;
16780 } 16780 }
16781 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16781 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16782 // for details. All rights reserved. Use of this source code is governed by a 16782 // for details. All rights reserved. Use of this source code is governed by a
16783 // BSD-style license that can be found in the LICENSE file. 16783 // BSD-style license that can be found in the LICENSE file.
16784 16784
16785 16785
16786 @DocsEditable 16786 @DocsEditable
16787 @DomName('HTMLObjectElement') 16787 @DomName('HTMLObjectElement')
16788 @SupportedBrowser(SupportedBrowser.CHROME) 16788 @SupportedBrowser(SupportedBrowser.CHROME)
16789 @SupportedBrowser(SupportedBrowser.IE) 16789 @SupportedBrowser(SupportedBrowser.IE)
16790 @SupportedBrowser(SupportedBrowser.SAFARI) 16790 @SupportedBrowser(SupportedBrowser.SAFARI)
16791 class ObjectElement extends Element native "*HTMLObjectElement" { 16791 class ObjectElement extends Element native "HTMLObjectElement" {
16792 16792
16793 @DomName('HTMLObjectElement.HTMLObjectElement') 16793 @DomName('HTMLObjectElement.HTMLObjectElement')
16794 @DocsEditable 16794 @DocsEditable
16795 factory ObjectElement() => document.$dom_createElement("object"); 16795 factory ObjectElement() => document.$dom_createElement("object");
16796 16796
16797 /// Checks if this type is supported on the current platform. 16797 /// Checks if this type is supported on the current platform.
16798 static bool get supported => Element.isTagSupported('object'); 16798 static bool get supported => Element.isTagSupported('object');
16799 16799
16800 @DomName('HTMLObjectElement.code') 16800 @DomName('HTMLObjectElement.code')
16801 @DocsEditable 16801 @DocsEditable
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
16849 @DocsEditable 16849 @DocsEditable
16850 void setCustomValidity(String error) native; 16850 void setCustomValidity(String error) native;
16851 } 16851 }
16852 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16852 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16853 // for details. All rights reserved. Use of this source code is governed by a 16853 // for details. All rights reserved. Use of this source code is governed by a
16854 // BSD-style license that can be found in the LICENSE file. 16854 // BSD-style license that can be found in the LICENSE file.
16855 16855
16856 16856
16857 @DocsEditable 16857 @DocsEditable
16858 @DomName('HTMLOptGroupElement') 16858 @DomName('HTMLOptGroupElement')
16859 class OptGroupElement extends Element native "*HTMLOptGroupElement" { 16859 class OptGroupElement extends Element native "HTMLOptGroupElement" {
16860 16860
16861 @DomName('HTMLOptGroupElement.HTMLOptGroupElement') 16861 @DomName('HTMLOptGroupElement.HTMLOptGroupElement')
16862 @DocsEditable 16862 @DocsEditable
16863 factory OptGroupElement() => document.$dom_createElement("optgroup"); 16863 factory OptGroupElement() => document.$dom_createElement("optgroup");
16864 16864
16865 @DomName('HTMLOptGroupElement.disabled') 16865 @DomName('HTMLOptGroupElement.disabled')
16866 @DocsEditable 16866 @DocsEditable
16867 bool disabled; 16867 bool disabled;
16868 16868
16869 @DomName('HTMLOptGroupElement.label') 16869 @DomName('HTMLOptGroupElement.label')
16870 @DocsEditable 16870 @DocsEditable
16871 String label; 16871 String label;
16872 } 16872 }
16873 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16873 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16874 // for details. All rights reserved. Use of this source code is governed by a 16874 // for details. All rights reserved. Use of this source code is governed by a
16875 // BSD-style license that can be found in the LICENSE file. 16875 // BSD-style license that can be found in the LICENSE file.
16876 16876
16877 16877
16878 @DocsEditable 16878 @DocsEditable
16879 @DomName('HTMLOptionElement') 16879 @DomName('HTMLOptionElement')
16880 class OptionElement extends Element native "*HTMLOptionElement" { 16880 class OptionElement extends Element native "HTMLOptionElement" {
16881 16881
16882 @DomName('HTMLOptionElement.HTMLOptionElement') 16882 @DomName('HTMLOptionElement.HTMLOptionElement')
16883 @DocsEditable 16883 @DocsEditable
16884 factory OptionElement([String data, String value, bool defaultSelected, bool s elected]) { 16884 factory OptionElement([String data, String value, bool defaultSelected, bool s elected]) {
16885 if (?selected) { 16885 if (?selected) {
16886 return OptionElement._create_1(data, value, defaultSelected, selected); 16886 return OptionElement._create_1(data, value, defaultSelected, selected);
16887 } 16887 }
16888 if (?defaultSelected) { 16888 if (?defaultSelected) {
16889 return OptionElement._create_2(data, value, defaultSelected); 16889 return OptionElement._create_2(data, value, defaultSelected);
16890 } 16890 }
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
16933 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16933 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16934 // for details. All rights reserved. Use of this source code is governed by a 16934 // for details. All rights reserved. Use of this source code is governed by a
16935 // BSD-style license that can be found in the LICENSE file. 16935 // BSD-style license that can be found in the LICENSE file.
16936 16936
16937 16937
16938 @DocsEditable 16938 @DocsEditable
16939 @DomName('HTMLOutputElement') 16939 @DomName('HTMLOutputElement')
16940 @SupportedBrowser(SupportedBrowser.CHROME) 16940 @SupportedBrowser(SupportedBrowser.CHROME)
16941 @SupportedBrowser(SupportedBrowser.FIREFOX) 16941 @SupportedBrowser(SupportedBrowser.FIREFOX)
16942 @SupportedBrowser(SupportedBrowser.SAFARI) 16942 @SupportedBrowser(SupportedBrowser.SAFARI)
16943 class OutputElement extends Element native "*HTMLOutputElement" { 16943 class OutputElement extends Element native "HTMLOutputElement" {
16944 16944
16945 @DomName('HTMLOutputElement.HTMLOutputElement') 16945 @DomName('HTMLOutputElement.HTMLOutputElement')
16946 @DocsEditable 16946 @DocsEditable
16947 factory OutputElement() => document.$dom_createElement("output"); 16947 factory OutputElement() => document.$dom_createElement("output");
16948 16948
16949 /// Checks if this type is supported on the current platform. 16949 /// Checks if this type is supported on the current platform.
16950 static bool get supported => Element.isTagSupported('output'); 16950 static bool get supported => Element.isTagSupported('output');
16951 16951
16952 @DomName('HTMLOutputElement.defaultValue') 16952 @DomName('HTMLOutputElement.defaultValue')
16953 @DocsEditable 16953 @DocsEditable
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
16999 @DocsEditable 16999 @DocsEditable
17000 void setCustomValidity(String error) native; 17000 void setCustomValidity(String error) native;
17001 } 17001 }
17002 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17002 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17003 // for details. All rights reserved. Use of this source code is governed by a 17003 // for details. All rights reserved. Use of this source code is governed by a
17004 // BSD-style license that can be found in the LICENSE file. 17004 // BSD-style license that can be found in the LICENSE file.
17005 17005
17006 17006
17007 @DocsEditable 17007 @DocsEditable
17008 @DomName('OverflowEvent') 17008 @DomName('OverflowEvent')
17009 class OverflowEvent extends Event native "*OverflowEvent" { 17009 class OverflowEvent extends Event native "OverflowEvent" {
17010 17010
17011 static const int BOTH = 2; 17011 static const int BOTH = 2;
17012 17012
17013 static const int HORIZONTAL = 0; 17013 static const int HORIZONTAL = 0;
17014 17014
17015 static const int VERTICAL = 1; 17015 static const int VERTICAL = 1;
17016 17016
17017 @DomName('OverflowEvent.horizontalOverflow') 17017 @DomName('OverflowEvent.horizontalOverflow')
17018 @DocsEditable 17018 @DocsEditable
17019 final bool horizontalOverflow; 17019 final bool horizontalOverflow;
17020 17020
17021 @DomName('OverflowEvent.orient') 17021 @DomName('OverflowEvent.orient')
17022 @DocsEditable 17022 @DocsEditable
17023 final int orient; 17023 final int orient;
17024 17024
17025 @DomName('OverflowEvent.verticalOverflow') 17025 @DomName('OverflowEvent.verticalOverflow')
17026 @DocsEditable 17026 @DocsEditable
17027 final bool verticalOverflow; 17027 final bool verticalOverflow;
17028 } 17028 }
17029 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17029 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17030 // for details. All rights reserved. Use of this source code is governed by a 17030 // for details. All rights reserved. Use of this source code is governed by a
17031 // BSD-style license that can be found in the LICENSE file. 17031 // BSD-style license that can be found in the LICENSE file.
17032 17032
17033 17033
17034 @DocsEditable 17034 @DocsEditable
17035 @DomName('PagePopupController') 17035 @DomName('PagePopupController')
17036 class PagePopupController native "*PagePopupController" { 17036 class PagePopupController native "PagePopupController" {
17037 17037
17038 @DomName('PagePopupController.closePopup') 17038 @DomName('PagePopupController.closePopup')
17039 @DocsEditable 17039 @DocsEditable
17040 void closePopup() native; 17040 void closePopup() native;
17041 17041
17042 @DomName('PagePopupController.formatMonth') 17042 @DomName('PagePopupController.formatMonth')
17043 @DocsEditable 17043 @DocsEditable
17044 String formatMonth(int year, int zeroBaseMonth) native; 17044 String formatMonth(int year, int zeroBaseMonth) native;
17045 17045
17046 @DomName('PagePopupController.formatShortMonth') 17046 @DomName('PagePopupController.formatShortMonth')
(...skipping 16 matching lines...) Expand all
17063 @DocsEditable 17063 @DocsEditable
17064 void setValueAndClosePopup(int numberValue, String stringValue) native; 17064 void setValueAndClosePopup(int numberValue, String stringValue) native;
17065 } 17065 }
17066 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17066 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17067 // for details. All rights reserved. Use of this source code is governed by a 17067 // for details. All rights reserved. Use of this source code is governed by a
17068 // BSD-style license that can be found in the LICENSE file. 17068 // BSD-style license that can be found in the LICENSE file.
17069 17069
17070 17070
17071 @DocsEditable 17071 @DocsEditable
17072 @DomName('PageTransitionEvent') 17072 @DomName('PageTransitionEvent')
17073 class PageTransitionEvent extends Event native "*PageTransitionEvent" { 17073 class PageTransitionEvent extends Event native "PageTransitionEvent" {
17074 17074
17075 @DomName('PageTransitionEvent.persisted') 17075 @DomName('PageTransitionEvent.persisted')
17076 @DocsEditable 17076 @DocsEditable
17077 final bool persisted; 17077 final bool persisted;
17078 } 17078 }
17079 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17079 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17080 // for details. All rights reserved. Use of this source code is governed by a 17080 // for details. All rights reserved. Use of this source code is governed by a
17081 // BSD-style license that can be found in the LICENSE file. 17081 // BSD-style license that can be found in the LICENSE file.
17082 17082
17083 17083
17084 @DocsEditable 17084 @DocsEditable
17085 @DomName('HTMLParagraphElement') 17085 @DomName('HTMLParagraphElement')
17086 class ParagraphElement extends Element native "*HTMLParagraphElement" { 17086 class ParagraphElement extends Element native "HTMLParagraphElement" {
17087 17087
17088 @DomName('HTMLParagraphElement.HTMLParagraphElement') 17088 @DomName('HTMLParagraphElement.HTMLParagraphElement')
17089 @DocsEditable 17089 @DocsEditable
17090 factory ParagraphElement() => document.$dom_createElement("p"); 17090 factory ParagraphElement() => document.$dom_createElement("p");
17091 } 17091 }
17092 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17092 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17093 // for details. All rights reserved. Use of this source code is governed by a 17093 // for details. All rights reserved. Use of this source code is governed by a
17094 // BSD-style license that can be found in the LICENSE file. 17094 // BSD-style license that can be found in the LICENSE file.
17095 17095
17096 17096
17097 @DocsEditable 17097 @DocsEditable
17098 @DomName('HTMLParamElement') 17098 @DomName('HTMLParamElement')
17099 class ParamElement extends Element native "*HTMLParamElement" { 17099 class ParamElement extends Element native "HTMLParamElement" {
17100 17100
17101 @DomName('HTMLParamElement.HTMLParamElement') 17101 @DomName('HTMLParamElement.HTMLParamElement')
17102 @DocsEditable 17102 @DocsEditable
17103 factory ParamElement() => document.$dom_createElement("param"); 17103 factory ParamElement() => document.$dom_createElement("param");
17104 17104
17105 @DomName('HTMLParamElement.name') 17105 @DomName('HTMLParamElement.name')
17106 @DocsEditable 17106 @DocsEditable
17107 String name; 17107 String name;
17108 17108
17109 @DomName('HTMLParamElement.value') 17109 @DomName('HTMLParamElement.value')
17110 @DocsEditable 17110 @DocsEditable
17111 String value; 17111 String value;
17112 } 17112 }
17113 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17113 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17114 // for details. All rights reserved. Use of this source code is governed by a 17114 // for details. All rights reserved. Use of this source code is governed by a
17115 // BSD-style license that can be found in the LICENSE file. 17115 // BSD-style license that can be found in the LICENSE file.
17116 17116
17117 17117
17118 @DocsEditable 17118 @DocsEditable
17119 @DomName('Performance') 17119 @DomName('Performance')
17120 @SupportedBrowser(SupportedBrowser.CHROME) 17120 @SupportedBrowser(SupportedBrowser.CHROME)
17121 @SupportedBrowser(SupportedBrowser.FIREFOX) 17121 @SupportedBrowser(SupportedBrowser.FIREFOX)
17122 @SupportedBrowser(SupportedBrowser.IE) 17122 @SupportedBrowser(SupportedBrowser.IE)
17123 class Performance extends EventTarget native "*Performance" { 17123 class Performance extends EventTarget native "Performance" {
17124 17124
17125 /// Checks if this type is supported on the current platform. 17125 /// Checks if this type is supported on the current platform.
17126 static bool get supported => JS('bool', '!!(window.performance)'); 17126 static bool get supported => JS('bool', '!!(window.performance)');
17127 17127
17128 @DomName('Performance.memory') 17128 @DomName('Performance.memory')
17129 @DocsEditable 17129 @DocsEditable
17130 final MemoryInfo memory; 17130 final MemoryInfo memory;
17131 17131
17132 @DomName('Performance.navigation') 17132 @DomName('Performance.navigation')
17133 @DocsEditable 17133 @DocsEditable
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
17213 @Experimental 17213 @Experimental
17214 void setResourceTimingBufferSize(int maxSize) native; 17214 void setResourceTimingBufferSize(int maxSize) native;
17215 } 17215 }
17216 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17216 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17217 // for details. All rights reserved. Use of this source code is governed by a 17217 // for details. All rights reserved. Use of this source code is governed by a
17218 // BSD-style license that can be found in the LICENSE file. 17218 // BSD-style license that can be found in the LICENSE file.
17219 17219
17220 17220
17221 @DocsEditable 17221 @DocsEditable
17222 @DomName('PerformanceEntry') 17222 @DomName('PerformanceEntry')
17223 class PerformanceEntry native "*PerformanceEntry" { 17223 class PerformanceEntry native "PerformanceEntry" {
17224 17224
17225 @DomName('PerformanceEntry.duration') 17225 @DomName('PerformanceEntry.duration')
17226 @DocsEditable 17226 @DocsEditable
17227 final num duration; 17227 final num duration;
17228 17228
17229 @DomName('PerformanceEntry.entryType') 17229 @DomName('PerformanceEntry.entryType')
17230 @DocsEditable 17230 @DocsEditable
17231 final String entryType; 17231 final String entryType;
17232 17232
17233 @DomName('PerformanceEntry.name') 17233 @DomName('PerformanceEntry.name')
17234 @DocsEditable 17234 @DocsEditable
17235 final String name; 17235 final String name;
17236 17236
17237 @DomName('PerformanceEntry.startTime') 17237 @DomName('PerformanceEntry.startTime')
17238 @DocsEditable 17238 @DocsEditable
17239 final num startTime; 17239 final num startTime;
17240 } 17240 }
17241 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17241 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17242 // for details. All rights reserved. Use of this source code is governed by a 17242 // for details. All rights reserved. Use of this source code is governed by a
17243 // BSD-style license that can be found in the LICENSE file. 17243 // BSD-style license that can be found in the LICENSE file.
17244 17244
17245 17245
17246 @DocsEditable 17246 @DocsEditable
17247 @DomName('PerformanceEntryList') 17247 @DomName('PerformanceEntryList')
17248 class PerformanceEntryList native "*PerformanceEntryList" { 17248 class PerformanceEntryList native "PerformanceEntryList" {
17249 17249
17250 @DomName('PerformanceEntryList.length') 17250 @DomName('PerformanceEntryList.length')
17251 @DocsEditable 17251 @DocsEditable
17252 final int length; 17252 final int length;
17253 17253
17254 @DomName('PerformanceEntryList.item') 17254 @DomName('PerformanceEntryList.item')
17255 @DocsEditable 17255 @DocsEditable
17256 PerformanceEntry item(int index) native; 17256 PerformanceEntry item(int index) native;
17257 } 17257 }
17258 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17258 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17259 // for details. All rights reserved. Use of this source code is governed by a 17259 // for details. All rights reserved. Use of this source code is governed by a
17260 // BSD-style license that can be found in the LICENSE file. 17260 // BSD-style license that can be found in the LICENSE file.
17261 17261
17262 17262
17263 @DocsEditable 17263 @DocsEditable
17264 @DomName('PerformanceMark') 17264 @DomName('PerformanceMark')
17265 class PerformanceMark extends PerformanceEntry native "*PerformanceMark" { 17265 class PerformanceMark extends PerformanceEntry native "PerformanceMark" {
17266 } 17266 }
17267 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17267 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17268 // for details. All rights reserved. Use of this source code is governed by a 17268 // for details. All rights reserved. Use of this source code is governed by a
17269 // BSD-style license that can be found in the LICENSE file. 17269 // BSD-style license that can be found in the LICENSE file.
17270 17270
17271 17271
17272 @DocsEditable 17272 @DocsEditable
17273 @DomName('PerformanceMeasure') 17273 @DomName('PerformanceMeasure')
17274 class PerformanceMeasure extends PerformanceEntry native "*PerformanceMeasure" { 17274 class PerformanceMeasure extends PerformanceEntry native "PerformanceMeasure" {
17275 } 17275 }
17276 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17276 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17277 // for details. All rights reserved. Use of this source code is governed by a 17277 // for details. All rights reserved. Use of this source code is governed by a
17278 // BSD-style license that can be found in the LICENSE file. 17278 // BSD-style license that can be found in the LICENSE file.
17279 17279
17280 17280
17281 @DocsEditable 17281 @DocsEditable
17282 @DomName('PerformanceNavigation') 17282 @DomName('PerformanceNavigation')
17283 class PerformanceNavigation native "*PerformanceNavigation" { 17283 class PerformanceNavigation native "PerformanceNavigation" {
17284 17284
17285 static const int TYPE_BACK_FORWARD = 2; 17285 static const int TYPE_BACK_FORWARD = 2;
17286 17286
17287 static const int TYPE_NAVIGATE = 0; 17287 static const int TYPE_NAVIGATE = 0;
17288 17288
17289 static const int TYPE_RELOAD = 1; 17289 static const int TYPE_RELOAD = 1;
17290 17290
17291 static const int TYPE_RESERVED = 255; 17291 static const int TYPE_RESERVED = 255;
17292 17292
17293 @DomName('PerformanceNavigation.redirectCount') 17293 @DomName('PerformanceNavigation.redirectCount')
17294 @DocsEditable 17294 @DocsEditable
17295 final int redirectCount; 17295 final int redirectCount;
17296 17296
17297 @DomName('PerformanceNavigation.type') 17297 @DomName('PerformanceNavigation.type')
17298 @DocsEditable 17298 @DocsEditable
17299 final int type; 17299 final int type;
17300 } 17300 }
17301 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17301 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17302 // for details. All rights reserved. Use of this source code is governed by a 17302 // for details. All rights reserved. Use of this source code is governed by a
17303 // BSD-style license that can be found in the LICENSE file. 17303 // BSD-style license that can be found in the LICENSE file.
17304 17304
17305 17305
17306 @DocsEditable 17306 @DocsEditable
17307 @DomName('PerformanceResourceTiming') 17307 @DomName('PerformanceResourceTiming')
17308 class PerformanceResourceTiming extends PerformanceEntry native "*PerformanceRes ourceTiming" { 17308 class PerformanceResourceTiming extends PerformanceEntry native "PerformanceReso urceTiming" {
17309 17309
17310 @DomName('PerformanceResourceTiming.connectEnd') 17310 @DomName('PerformanceResourceTiming.connectEnd')
17311 @DocsEditable 17311 @DocsEditable
17312 final num connectEnd; 17312 final num connectEnd;
17313 17313
17314 @DomName('PerformanceResourceTiming.connectStart') 17314 @DomName('PerformanceResourceTiming.connectStart')
17315 @DocsEditable 17315 @DocsEditable
17316 final num connectStart; 17316 final num connectStart;
17317 17317
17318 @DomName('PerformanceResourceTiming.domainLookupEnd') 17318 @DomName('PerformanceResourceTiming.domainLookupEnd')
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
17355 @DocsEditable 17355 @DocsEditable
17356 final num secureConnectionStart; 17356 final num secureConnectionStart;
17357 } 17357 }
17358 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17358 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17359 // for details. All rights reserved. Use of this source code is governed by a 17359 // for details. All rights reserved. Use of this source code is governed by a
17360 // BSD-style license that can be found in the LICENSE file. 17360 // BSD-style license that can be found in the LICENSE file.
17361 17361
17362 17362
17363 @DocsEditable 17363 @DocsEditable
17364 @DomName('PerformanceTiming') 17364 @DomName('PerformanceTiming')
17365 class PerformanceTiming native "*PerformanceTiming" { 17365 class PerformanceTiming native "PerformanceTiming" {
17366 17366
17367 @DomName('PerformanceTiming.connectEnd') 17367 @DomName('PerformanceTiming.connectEnd')
17368 @DocsEditable 17368 @DocsEditable
17369 final int connectEnd; 17369 final int connectEnd;
17370 17370
17371 @DomName('PerformanceTiming.connectStart') 17371 @DomName('PerformanceTiming.connectStart')
17372 @DocsEditable 17372 @DocsEditable
17373 final int connectStart; 17373 final int connectStart;
17374 17374
17375 @DomName('PerformanceTiming.domComplete') 17375 @DomName('PerformanceTiming.domComplete')
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
17452 // for details. All rights reserved. Use of this source code is governed by a 17452 // for details. All rights reserved. Use of this source code is governed by a
17453 // BSD-style license that can be found in the LICENSE file. 17453 // BSD-style license that can be found in the LICENSE file.
17454 17454
17455 17455
17456 @DocsEditable 17456 @DocsEditable
17457 @DomName('PopStateEvent') 17457 @DomName('PopStateEvent')
17458 @SupportedBrowser(SupportedBrowser.CHROME) 17458 @SupportedBrowser(SupportedBrowser.CHROME)
17459 @SupportedBrowser(SupportedBrowser.FIREFOX) 17459 @SupportedBrowser(SupportedBrowser.FIREFOX)
17460 @SupportedBrowser(SupportedBrowser.IE, '10') 17460 @SupportedBrowser(SupportedBrowser.IE, '10')
17461 @SupportedBrowser(SupportedBrowser.SAFARI) 17461 @SupportedBrowser(SupportedBrowser.SAFARI)
17462 class PopStateEvent extends Event native "*PopStateEvent" { 17462 class PopStateEvent extends Event native "PopStateEvent" {
17463 17463
17464 dynamic get state => convertNativeToDart_SerializedScriptValue(this._get_state ); 17464 dynamic get state => convertNativeToDart_SerializedScriptValue(this._get_state );
17465 @JSName('state') 17465 @JSName('state')
17466 @DomName('PopStateEvent.state') 17466 @DomName('PopStateEvent.state')
17467 @DocsEditable 17467 @DocsEditable
17468 @annotation_Creates_SerializedScriptValue 17468 @annotation_Creates_SerializedScriptValue
17469 @annotation_Returns_SerializedScriptValue 17469 @annotation_Returns_SerializedScriptValue
17470 final dynamic _get_state; 17470 final dynamic _get_state;
17471 } 17471 }
17472 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17472 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17473 // for details. All rights reserved. Use of this source code is governed by a 17473 // for details. All rights reserved. Use of this source code is governed by a
17474 // BSD-style license that can be found in the LICENSE file. 17474 // BSD-style license that can be found in the LICENSE file.
17475 17475
17476 // WARNING: Do not edit - generated code. 17476 // WARNING: Do not edit - generated code.
17477 17477
17478 17478
17479 typedef void _PositionCallback(Geoposition position); 17479 typedef void _PositionCallback(Geoposition position);
17480 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17480 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17481 // for details. All rights reserved. Use of this source code is governed by a 17481 // for details. All rights reserved. Use of this source code is governed by a
17482 // BSD-style license that can be found in the LICENSE file. 17482 // BSD-style license that can be found in the LICENSE file.
17483 17483
17484 17484
17485 @DocsEditable 17485 @DocsEditable
17486 @DomName('PositionError') 17486 @DomName('PositionError')
17487 class PositionError native "*PositionError" { 17487 class PositionError native "PositionError" {
17488 17488
17489 static const int PERMISSION_DENIED = 1; 17489 static const int PERMISSION_DENIED = 1;
17490 17490
17491 static const int POSITION_UNAVAILABLE = 2; 17491 static const int POSITION_UNAVAILABLE = 2;
17492 17492
17493 static const int TIMEOUT = 3; 17493 static const int TIMEOUT = 3;
17494 17494
17495 @DomName('PositionError.code') 17495 @DomName('PositionError.code')
17496 @DocsEditable 17496 @DocsEditable
17497 final int code; 17497 final int code;
(...skipping 10 matching lines...) Expand all
17508 17508
17509 17509
17510 typedef void _PositionErrorCallback(PositionError error); 17510 typedef void _PositionErrorCallback(PositionError error);
17511 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17511 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17512 // for details. All rights reserved. Use of this source code is governed by a 17512 // for details. All rights reserved. Use of this source code is governed by a
17513 // BSD-style license that can be found in the LICENSE file. 17513 // BSD-style license that can be found in the LICENSE file.
17514 17514
17515 17515
17516 @DocsEditable 17516 @DocsEditable
17517 @DomName('HTMLPreElement') 17517 @DomName('HTMLPreElement')
17518 class PreElement extends Element native "*HTMLPreElement" { 17518 class PreElement extends Element native "HTMLPreElement" {
17519 17519
17520 @DomName('HTMLPreElement.HTMLPreElement') 17520 @DomName('HTMLPreElement.HTMLPreElement')
17521 @DocsEditable 17521 @DocsEditable
17522 factory PreElement() => document.$dom_createElement("pre"); 17522 factory PreElement() => document.$dom_createElement("pre");
17523 17523
17524 @DomName('HTMLPreElement.wrap') 17524 @DomName('HTMLPreElement.wrap')
17525 @DocsEditable 17525 @DocsEditable
17526 bool wrap; 17526 bool wrap;
17527 } 17527 }
17528 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17528 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17529 // for details. All rights reserved. Use of this source code is governed by a 17529 // for details. All rights reserved. Use of this source code is governed by a
17530 // BSD-style license that can be found in the LICENSE file. 17530 // BSD-style license that can be found in the LICENSE file.
17531 17531
17532 17532
17533 @DocsEditable 17533 @DocsEditable
17534 @DomName('ProcessingInstruction') 17534 @DomName('ProcessingInstruction')
17535 class ProcessingInstruction extends Node native "*ProcessingInstruction" { 17535 class ProcessingInstruction extends Node native "ProcessingInstruction" {
17536 17536
17537 @DomName('ProcessingInstruction.data') 17537 @DomName('ProcessingInstruction.data')
17538 @DocsEditable 17538 @DocsEditable
17539 String data; 17539 String data;
17540 17540
17541 @DomName('ProcessingInstruction.sheet') 17541 @DomName('ProcessingInstruction.sheet')
17542 @DocsEditable 17542 @DocsEditable
17543 final StyleSheet sheet; 17543 final StyleSheet sheet;
17544 17544
17545 @DomName('ProcessingInstruction.target') 17545 @DomName('ProcessingInstruction.target')
17546 @DocsEditable 17546 @DocsEditable
17547 final String target; 17547 final String target;
17548 } 17548 }
17549 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17549 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17550 // for details. All rights reserved. Use of this source code is governed by a 17550 // for details. All rights reserved. Use of this source code is governed by a
17551 // BSD-style license that can be found in the LICENSE file. 17551 // BSD-style license that can be found in the LICENSE file.
17552 17552
17553 17553
17554 @DocsEditable 17554 @DocsEditable
17555 @DomName('HTMLProgressElement') 17555 @DomName('HTMLProgressElement')
17556 @SupportedBrowser(SupportedBrowser.CHROME) 17556 @SupportedBrowser(SupportedBrowser.CHROME)
17557 @SupportedBrowser(SupportedBrowser.FIREFOX) 17557 @SupportedBrowser(SupportedBrowser.FIREFOX)
17558 @SupportedBrowser(SupportedBrowser.IE, '10') 17558 @SupportedBrowser(SupportedBrowser.IE, '10')
17559 @SupportedBrowser(SupportedBrowser.SAFARI) 17559 @SupportedBrowser(SupportedBrowser.SAFARI)
17560 class ProgressElement extends Element native "*HTMLProgressElement" { 17560 class ProgressElement extends Element native "HTMLProgressElement" {
17561 17561
17562 @DomName('HTMLProgressElement.HTMLProgressElement') 17562 @DomName('HTMLProgressElement.HTMLProgressElement')
17563 @DocsEditable 17563 @DocsEditable
17564 factory ProgressElement() => document.$dom_createElement("progress"); 17564 factory ProgressElement() => document.$dom_createElement("progress");
17565 17565
17566 /// Checks if this type is supported on the current platform. 17566 /// Checks if this type is supported on the current platform.
17567 static bool get supported => Element.isTagSupported('progress'); 17567 static bool get supported => Element.isTagSupported('progress');
17568 17568
17569 @DomName('HTMLProgressElement.labels') 17569 @DomName('HTMLProgressElement.labels')
17570 @DocsEditable 17570 @DocsEditable
(...skipping 13 matching lines...) Expand all
17584 @DocsEditable 17584 @DocsEditable
17585 num value; 17585 num value;
17586 } 17586 }
17587 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17587 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17588 // for details. All rights reserved. Use of this source code is governed by a 17588 // for details. All rights reserved. Use of this source code is governed by a
17589 // BSD-style license that can be found in the LICENSE file. 17589 // BSD-style license that can be found in the LICENSE file.
17590 17590
17591 17591
17592 @DocsEditable 17592 @DocsEditable
17593 @DomName('ProgressEvent') 17593 @DomName('ProgressEvent')
17594 class ProgressEvent extends Event native "*ProgressEvent" { 17594 class ProgressEvent extends Event native "ProgressEvent" {
17595 17595
17596 @DomName('ProgressEvent.lengthComputable') 17596 @DomName('ProgressEvent.lengthComputable')
17597 @DocsEditable 17597 @DocsEditable
17598 final bool lengthComputable; 17598 final bool lengthComputable;
17599 17599
17600 @DomName('ProgressEvent.loaded') 17600 @DomName('ProgressEvent.loaded')
17601 @DocsEditable 17601 @DocsEditable
17602 final int loaded; 17602 final int loaded;
17603 17603
17604 @DomName('ProgressEvent.total') 17604 @DomName('ProgressEvent.total')
17605 @DocsEditable 17605 @DocsEditable
17606 final int total; 17606 final int total;
17607 } 17607 }
17608 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17608 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17609 // for details. All rights reserved. Use of this source code is governed by a 17609 // for details. All rights reserved. Use of this source code is governed by a
17610 // BSD-style license that can be found in the LICENSE file. 17610 // BSD-style license that can be found in the LICENSE file.
17611 17611
17612 17612
17613 @DocsEditable 17613 @DocsEditable
17614 @DomName('HTMLQuoteElement') 17614 @DomName('HTMLQuoteElement')
17615 class QuoteElement extends Element native "*HTMLQuoteElement" { 17615 class QuoteElement extends Element native "HTMLQuoteElement" {
17616 17616
17617 @DomName('HTMLQuoteElement.cite') 17617 @DomName('HTMLQuoteElement.cite')
17618 @DocsEditable 17618 @DocsEditable
17619 String cite; 17619 String cite;
17620 } 17620 }
17621 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17621 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17622 // for details. All rights reserved. Use of this source code is governed by a 17622 // for details. All rights reserved. Use of this source code is governed by a
17623 // BSD-style license that can be found in the LICENSE file. 17623 // BSD-style license that can be found in the LICENSE file.
17624 17624
17625 // WARNING: Do not edit - generated code. 17625 // WARNING: Do not edit - generated code.
(...skipping 16 matching lines...) Expand all
17642 17642
17643 17643
17644 typedef void RtcStatsCallback(RtcStatsResponse response); 17644 typedef void RtcStatsCallback(RtcStatsResponse response);
17645 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17645 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17646 // for details. All rights reserved. Use of this source code is governed by a 17646 // for details. All rights reserved. Use of this source code is governed by a
17647 // BSD-style license that can be found in the LICENSE file. 17647 // BSD-style license that can be found in the LICENSE file.
17648 17648
17649 17649
17650 @DocsEditable 17650 @DocsEditable
17651 @DomName('RadioNodeList') 17651 @DomName('RadioNodeList')
17652 class RadioNodeList extends NodeList native "*RadioNodeList" { 17652 class RadioNodeList extends NodeList native "RadioNodeList" {
17653 17653
17654 @DomName('RadioNodeList.value') 17654 @DomName('RadioNodeList.value')
17655 @DocsEditable 17655 @DocsEditable
17656 String value; 17656 String value;
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 @DomName('Range') 17665 @DomName('Range')
17666 class Range native "*Range" { 17666 class Range native "Range" {
17667 factory Range() => document.$dom_createRange(); 17667 factory Range() => document.$dom_createRange();
17668 17668
17669 17669
17670 static const int END_TO_END = 2; 17670 static const int END_TO_END = 2;
17671 17671
17672 static const int END_TO_START = 3; 17672 static const int END_TO_START = 3;
17673 17673
17674 static const int NODE_AFTER = 1; 17674 static const int NODE_AFTER = 1;
17675 17675
17676 static const int NODE_BEFORE = 0; 17676 static const int NODE_BEFORE = 0;
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
17810 String toString() native; 17810 String toString() native;
17811 17811
17812 } 17812 }
17813 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17813 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17814 // for details. All rights reserved. Use of this source code is governed by a 17814 // for details. All rights reserved. Use of this source code is governed by a
17815 // BSD-style license that can be found in the LICENSE file. 17815 // BSD-style license that can be found in the LICENSE file.
17816 17816
17817 17817
17818 @DocsEditable 17818 @DocsEditable
17819 @DomName('RangeException') 17819 @DomName('RangeException')
17820 class RangeException native "*RangeException" { 17820 class RangeException native "RangeException" {
17821 17821
17822 static const int BAD_BOUNDARYPOINTS_ERR = 1; 17822 static const int BAD_BOUNDARYPOINTS_ERR = 1;
17823 17823
17824 static const int INVALID_NODE_TYPE_ERR = 2; 17824 static const int INVALID_NODE_TYPE_ERR = 2;
17825 17825
17826 @DomName('RangeException.code') 17826 @DomName('RangeException.code')
17827 @DocsEditable 17827 @DocsEditable
17828 final int code; 17828 final int code;
17829 17829
17830 @DomName('RangeException.message') 17830 @DomName('RangeException.message')
(...skipping 16 matching lines...) Expand all
17847 17847
17848 17848
17849 typedef void RequestAnimationFrameCallback(num highResTime); 17849 typedef void RequestAnimationFrameCallback(num highResTime);
17850 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17850 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17851 // for details. All rights reserved. Use of this source code is governed by a 17851 // for details. All rights reserved. Use of this source code is governed by a
17852 // BSD-style license that can be found in the LICENSE file. 17852 // BSD-style license that can be found in the LICENSE file.
17853 17853
17854 17854
17855 @DocsEditable 17855 @DocsEditable
17856 @DomName('RTCDataChannel') 17856 @DomName('RTCDataChannel')
17857 class RtcDataChannel extends EventTarget native "*RTCDataChannel" { 17857 class RtcDataChannel extends EventTarget native "RTCDataChannel" {
17858 17858
17859 @DomName('RTCDataChannel.closeEvent') 17859 @DomName('RTCDataChannel.closeEvent')
17860 @DocsEditable 17860 @DocsEditable
17861 static const EventStreamProvider<Event> closeEvent = const EventStreamProvider <Event>('close'); 17861 static const EventStreamProvider<Event> closeEvent = const EventStreamProvider <Event>('close');
17862 17862
17863 @DomName('RTCDataChannel.errorEvent') 17863 @DomName('RTCDataChannel.errorEvent')
17864 @DocsEditable 17864 @DocsEditable
17865 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error'); 17865 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error');
17866 17866
17867 @DomName('RTCDataChannel.messageEvent') 17867 @DomName('RTCDataChannel.messageEvent')
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
17930 @DocsEditable 17930 @DocsEditable
17931 Stream<Event> get onOpen => openEvent.forTarget(this); 17931 Stream<Event> get onOpen => openEvent.forTarget(this);
17932 } 17932 }
17933 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17933 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17934 // for details. All rights reserved. Use of this source code is governed by a 17934 // for details. All rights reserved. Use of this source code is governed by a
17935 // BSD-style license that can be found in the LICENSE file. 17935 // BSD-style license that can be found in the LICENSE file.
17936 17936
17937 17937
17938 @DocsEditable 17938 @DocsEditable
17939 @DomName('RTCDataChannelEvent') 17939 @DomName('RTCDataChannelEvent')
17940 class RtcDataChannelEvent extends Event native "*RTCDataChannelEvent" { 17940 class RtcDataChannelEvent extends Event native "RTCDataChannelEvent" {
17941 17941
17942 @DomName('RTCDataChannelEvent.channel') 17942 @DomName('RTCDataChannelEvent.channel')
17943 @DocsEditable 17943 @DocsEditable
17944 final RtcDataChannel channel; 17944 final RtcDataChannel channel;
17945 } 17945 }
17946 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17946 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17947 // for details. All rights reserved. Use of this source code is governed by a 17947 // for details. All rights reserved. Use of this source code is governed by a
17948 // BSD-style license that can be found in the LICENSE file. 17948 // BSD-style license that can be found in the LICENSE file.
17949 17949
17950 17950
17951 @DocsEditable 17951 @DocsEditable
17952 @DomName('RTCDTMFSender') 17952 @DomName('RTCDTMFSender')
17953 class RtcDtmfSender extends EventTarget native "*RTCDTMFSender" { 17953 class RtcDtmfSender extends EventTarget native "RTCDTMFSender" {
17954 17954
17955 @DomName('RTCDTMFSender.tonechangeEvent') 17955 @DomName('RTCDTMFSender.tonechangeEvent')
17956 @DocsEditable 17956 @DocsEditable
17957 static const EventStreamProvider<RtcDtmfToneChangeEvent> toneChangeEvent = con st EventStreamProvider<RtcDtmfToneChangeEvent>('tonechange'); 17957 static const EventStreamProvider<RtcDtmfToneChangeEvent> toneChangeEvent = con st EventStreamProvider<RtcDtmfToneChangeEvent>('tonechange');
17958 17958
17959 @JSName('canInsertDTMF') 17959 @JSName('canInsertDTMF')
17960 @DomName('RTCDTMFSender.canInsertDTMF') 17960 @DomName('RTCDTMFSender.canInsertDTMF')
17961 @DocsEditable 17961 @DocsEditable
17962 final bool canInsertDtmf; 17962 final bool canInsertDtmf;
17963 17963
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
18000 @DocsEditable 18000 @DocsEditable
18001 Stream<RtcDtmfToneChangeEvent> get onToneChange => toneChangeEvent.forTarget(t his); 18001 Stream<RtcDtmfToneChangeEvent> get onToneChange => toneChangeEvent.forTarget(t his);
18002 } 18002 }
18003 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18003 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18004 // for details. All rights reserved. Use of this source code is governed by a 18004 // for details. All rights reserved. Use of this source code is governed by a
18005 // BSD-style license that can be found in the LICENSE file. 18005 // BSD-style license that can be found in the LICENSE file.
18006 18006
18007 18007
18008 @DocsEditable 18008 @DocsEditable
18009 @DomName('RTCDTMFToneChangeEvent') 18009 @DomName('RTCDTMFToneChangeEvent')
18010 class RtcDtmfToneChangeEvent extends Event native "*RTCDTMFToneChangeEvent" { 18010 class RtcDtmfToneChangeEvent extends Event native "RTCDTMFToneChangeEvent" {
18011 18011
18012 @DomName('RTCDTMFToneChangeEvent.tone') 18012 @DomName('RTCDTMFToneChangeEvent.tone')
18013 @DocsEditable 18013 @DocsEditable
18014 final String tone; 18014 final String tone;
18015 } 18015 }
18016 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 18016 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
18017 // for details. All rights reserved. Use of this source code is governed by a 18017 // for details. All rights reserved. Use of this source code is governed by a
18018 // BSD-style license that can be found in the LICENSE file. 18018 // BSD-style license that can be found in the LICENSE file.
18019 18019
18020 18020
18021 @DomName('RTCIceCandidate') 18021 @DomName('RTCIceCandidate')
18022 @SupportedBrowser(SupportedBrowser.CHROME) 18022 @SupportedBrowser(SupportedBrowser.CHROME)
18023 @Experimental 18023 @Experimental
18024 class RtcIceCandidate native "*RTCIceCandidate" { 18024 class RtcIceCandidate native "RTCIceCandidate" {
18025 factory RtcIceCandidate(Map dictionary) { 18025 factory RtcIceCandidate(Map dictionary) {
18026 return JS('RtcIceCandidate', 'new RTCIceCandidate(#)', 18026 return JS('RtcIceCandidate', 'new RTCIceCandidate(#)',
18027 convertDartToNative_SerializedScriptValue(dictionary)); 18027 convertDartToNative_SerializedScriptValue(dictionary));
18028 } 18028 }
18029 18029
18030 @DomName('RTCIceCandidate.candidate') 18030 @DomName('RTCIceCandidate.candidate')
18031 @DocsEditable 18031 @DocsEditable
18032 final String candidate; 18032 final String candidate;
18033 18033
18034 @DomName('RTCIceCandidate.sdpMLineIndex') 18034 @DomName('RTCIceCandidate.sdpMLineIndex')
18035 @DocsEditable 18035 @DocsEditable
18036 final int sdpMLineIndex; 18036 final int sdpMLineIndex;
18037 18037
18038 @DomName('RTCIceCandidate.sdpMid') 18038 @DomName('RTCIceCandidate.sdpMid')
18039 @DocsEditable 18039 @DocsEditable
18040 final String sdpMid; 18040 final String sdpMid;
18041 18041
18042 } 18042 }
18043 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18043 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18044 // for details. All rights reserved. Use of this source code is governed by a 18044 // for details. All rights reserved. Use of this source code is governed by a
18045 // BSD-style license that can be found in the LICENSE file. 18045 // BSD-style license that can be found in the LICENSE file.
18046 18046
18047 18047
18048 @DocsEditable 18048 @DocsEditable
18049 @DomName('RTCIceCandidateEvent') 18049 @DomName('RTCIceCandidateEvent')
18050 class RtcIceCandidateEvent extends Event native "*RTCIceCandidateEvent" { 18050 class RtcIceCandidateEvent extends Event native "RTCIceCandidateEvent" {
18051 18051
18052 @DomName('RTCIceCandidateEvent.candidate') 18052 @DomName('RTCIceCandidateEvent.candidate')
18053 @DocsEditable 18053 @DocsEditable
18054 final RtcIceCandidate candidate; 18054 final RtcIceCandidate candidate;
18055 } 18055 }
18056 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 18056 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
18057 // for details. All rights reserved. Use of this source code is governed by a 18057 // for details. All rights reserved. Use of this source code is governed by a
18058 // BSD-style license that can be found in the LICENSE file. 18058 // BSD-style license that can be found in the LICENSE file.
18059 18059
18060 18060
18061 @DomName('RTCPeerConnection') 18061 @DomName('RTCPeerConnection')
18062 @SupportedBrowser(SupportedBrowser.CHROME) 18062 @SupportedBrowser(SupportedBrowser.CHROME)
18063 @Experimental 18063 @Experimental
18064 class RtcPeerConnection extends EventTarget native "*RTCPeerConnection" { 18064 class RtcPeerConnection extends EventTarget native "RTCPeerConnection" {
18065 factory RtcPeerConnection(Map rtcIceServers, [Map mediaConstraints]) { 18065 factory RtcPeerConnection(Map rtcIceServers, [Map mediaConstraints]) {
18066 var constructorName = JS('RtcPeerConnection', 'window[#]', 18066 var constructorName = JS('RtcPeerConnection', 'window[#]',
18067 '${Device.propertyPrefix}RTCPeerConnection'); 18067 '${Device.propertyPrefix}RTCPeerConnection');
18068 if (?mediaConstraints) { 18068 if (?mediaConstraints) {
18069 return JS('RtcPeerConnection', 'new #(#,#)', constructorName, 18069 return JS('RtcPeerConnection', 'new #(#,#)', constructorName,
18070 convertDartToNative_SerializedScriptValue(rtcIceServers), 18070 convertDartToNative_SerializedScriptValue(rtcIceServers),
18071 convertDartToNative_SerializedScriptValue(mediaConstraints)); 18071 convertDartToNative_SerializedScriptValue(mediaConstraints));
18072 } else { 18072 } else {
18073 return JS('RtcPeerConnection', 'new #(#)', constructorName, 18073 return JS('RtcPeerConnection', 'new #(#)', constructorName,
18074 convertDartToNative_SerializedScriptValue(rtcIceServers)); 18074 convertDartToNative_SerializedScriptValue(rtcIceServers));
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
18373 18373
18374 18374
18375 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 18375 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
18376 // for details. All rights reserved. Use of this source code is governed by a 18376 // for details. All rights reserved. Use of this source code is governed by a
18377 // BSD-style license that can be found in the LICENSE file. 18377 // BSD-style license that can be found in the LICENSE file.
18378 18378
18379 18379
18380 @DomName('RTCSessionDescription') 18380 @DomName('RTCSessionDescription')
18381 @SupportedBrowser(SupportedBrowser.CHROME) 18381 @SupportedBrowser(SupportedBrowser.CHROME)
18382 @Experimental 18382 @Experimental
18383 class RtcSessionDescription native "*RTCSessionDescription" { 18383 class RtcSessionDescription native "RTCSessionDescription" {
18384 factory RtcSessionDescription(Map dictionary) { 18384 factory RtcSessionDescription(Map dictionary) {
18385 return JS('RtcSessionDescription', 'new RTCSessionDescription(#)', 18385 return JS('RtcSessionDescription', 'new RTCSessionDescription(#)',
18386 convertDartToNative_SerializedScriptValue(dictionary)); 18386 convertDartToNative_SerializedScriptValue(dictionary));
18387 } 18387 }
18388 18388
18389 @DomName('RTCSessionDescription.sdp') 18389 @DomName('RTCSessionDescription.sdp')
18390 @DocsEditable 18390 @DocsEditable
18391 String sdp; 18391 String sdp;
18392 18392
18393 @DomName('RTCSessionDescription.type') 18393 @DomName('RTCSessionDescription.type')
18394 @DocsEditable 18394 @DocsEditable
18395 String type; 18395 String type;
18396 18396
18397 } 18397 }
18398 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18398 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18399 // for details. All rights reserved. Use of this source code is governed by a 18399 // for details. All rights reserved. Use of this source code is governed by a
18400 // BSD-style license that can be found in the LICENSE file. 18400 // BSD-style license that can be found in the LICENSE file.
18401 18401
18402 18402
18403 @DocsEditable 18403 @DocsEditable
18404 @DomName('RTCStatsReport') 18404 @DomName('RTCStatsReport')
18405 class RtcStatsReport native "*RTCStatsReport" { 18405 class RtcStatsReport native "RTCStatsReport" {
18406 18406
18407 @DomName('RTCStatsReport.id') 18407 @DomName('RTCStatsReport.id')
18408 @DocsEditable 18408 @DocsEditable
18409 final String id; 18409 final String id;
18410 18410
18411 @DomName('RTCStatsReport.local') 18411 @DomName('RTCStatsReport.local')
18412 @DocsEditable 18412 @DocsEditable
18413 final RtcStatsReport local; 18413 final RtcStatsReport local;
18414 18414
18415 @DomName('RTCStatsReport.remote') 18415 @DomName('RTCStatsReport.remote')
(...skipping 18 matching lines...) Expand all
18434 @DocsEditable 18434 @DocsEditable
18435 String stat(String name) native; 18435 String stat(String name) native;
18436 } 18436 }
18437 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18437 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18438 // for details. All rights reserved. Use of this source code is governed by a 18438 // for details. All rights reserved. Use of this source code is governed by a
18439 // BSD-style license that can be found in the LICENSE file. 18439 // BSD-style license that can be found in the LICENSE file.
18440 18440
18441 18441
18442 @DocsEditable 18442 @DocsEditable
18443 @DomName('RTCStatsResponse') 18443 @DomName('RTCStatsResponse')
18444 class RtcStatsResponse native "*RTCStatsResponse" { 18444 class RtcStatsResponse native "RTCStatsResponse" {
18445 18445
18446 @DomName('RTCStatsResponse.namedItem') 18446 @DomName('RTCStatsResponse.namedItem')
18447 @DocsEditable 18447 @DocsEditable
18448 RtcStatsReport namedItem(String name) native; 18448 RtcStatsReport namedItem(String name) native;
18449 18449
18450 @DomName('RTCStatsResponse.result') 18450 @DomName('RTCStatsResponse.result')
18451 @DocsEditable 18451 @DocsEditable
18452 List<RtcStatsReport> result() native; 18452 List<RtcStatsReport> result() native;
18453 } 18453 }
18454 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 18454 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
18455 // for details. All rights reserved. Use of this source code is governed by a 18455 // for details. All rights reserved. Use of this source code is governed by a
18456 // BSD-style license that can be found in the LICENSE file. 18456 // BSD-style license that can be found in the LICENSE file.
18457 18457
18458 18458
18459 @DocsEditable 18459 @DocsEditable
18460 @DomName('Screen') 18460 @DomName('Screen')
18461 class Screen native "*Screen" { 18461 class Screen native "Screen" {
18462 18462
18463 @DomName('Screen.availHeight') 18463 @DomName('Screen.availHeight')
18464 @DomName('Screen.availLeft') 18464 @DomName('Screen.availLeft')
18465 @DomName('Screen.availTop') 18465 @DomName('Screen.availTop')
18466 @DomName('Screen.availWidth') 18466 @DomName('Screen.availWidth')
18467 Rect get available => new Rect($dom_availLeft, $dom_availTop, $dom_availWidth, 18467 Rect get available => new Rect($dom_availLeft, $dom_availTop, $dom_availWidth,
18468 $dom_availHeight); 18468 $dom_availHeight);
18469 18469
18470 @JSName('availHeight') 18470 @JSName('availHeight')
18471 @DomName('Screen.availHeight') 18471 @DomName('Screen.availHeight')
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
18503 @DocsEditable 18503 @DocsEditable
18504 final int width; 18504 final int width;
18505 } 18505 }
18506 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18506 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18507 // for details. All rights reserved. Use of this source code is governed by a 18507 // for details. All rights reserved. Use of this source code is governed by a
18508 // BSD-style license that can be found in the LICENSE file. 18508 // BSD-style license that can be found in the LICENSE file.
18509 18509
18510 18510
18511 @DocsEditable 18511 @DocsEditable
18512 @DomName('HTMLScriptElement') 18512 @DomName('HTMLScriptElement')
18513 class ScriptElement extends Element native "*HTMLScriptElement" { 18513 class ScriptElement extends Element native "HTMLScriptElement" {
18514 18514
18515 @DomName('HTMLScriptElement.HTMLScriptElement') 18515 @DomName('HTMLScriptElement.HTMLScriptElement')
18516 @DocsEditable 18516 @DocsEditable
18517 factory ScriptElement() => document.$dom_createElement("script"); 18517 factory ScriptElement() => document.$dom_createElement("script");
18518 18518
18519 @DomName('HTMLScriptElement.async') 18519 @DomName('HTMLScriptElement.async')
18520 @DocsEditable 18520 @DocsEditable
18521 bool async; 18521 bool async;
18522 18522
18523 @DomName('HTMLScriptElement.charset') 18523 @DomName('HTMLScriptElement.charset')
(...skipping 28 matching lines...) Expand all
18552 @DocsEditable 18552 @DocsEditable
18553 String type; 18553 String type;
18554 } 18554 }
18555 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18555 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18556 // for details. All rights reserved. Use of this source code is governed by a 18556 // for details. All rights reserved. Use of this source code is governed by a
18557 // BSD-style license that can be found in the LICENSE file. 18557 // BSD-style license that can be found in the LICENSE file.
18558 18558
18559 18559
18560 @DocsEditable 18560 @DocsEditable
18561 @DomName('ScriptProfile') 18561 @DomName('ScriptProfile')
18562 class ScriptProfile native "*ScriptProfile" { 18562 class ScriptProfile native "ScriptProfile" {
18563 18563
18564 @DomName('ScriptProfile.head') 18564 @DomName('ScriptProfile.head')
18565 @DocsEditable 18565 @DocsEditable
18566 final ScriptProfileNode head; 18566 final ScriptProfileNode head;
18567 18567
18568 @DomName('ScriptProfile.idleTime') 18568 @DomName('ScriptProfile.idleTime')
18569 @DocsEditable 18569 @DocsEditable
18570 final num idleTime; 18570 final num idleTime;
18571 18571
18572 @DomName('ScriptProfile.title') 18572 @DomName('ScriptProfile.title')
18573 @DocsEditable 18573 @DocsEditable
18574 final String title; 18574 final String title;
18575 18575
18576 @DomName('ScriptProfile.uid') 18576 @DomName('ScriptProfile.uid')
18577 @DocsEditable 18577 @DocsEditable
18578 final int uid; 18578 final int uid;
18579 } 18579 }
18580 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18580 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18581 // for details. All rights reserved. Use of this source code is governed by a 18581 // for details. All rights reserved. Use of this source code is governed by a
18582 // BSD-style license that can be found in the LICENSE file. 18582 // BSD-style license that can be found in the LICENSE file.
18583 18583
18584 18584
18585 @DocsEditable 18585 @DocsEditable
18586 @DomName('ScriptProfileNode') 18586 @DomName('ScriptProfileNode')
18587 class ScriptProfileNode native "*ScriptProfileNode" { 18587 class ScriptProfileNode native "ScriptProfileNode" {
18588 18588
18589 @JSName('callUID') 18589 @JSName('callUID')
18590 @DomName('ScriptProfileNode.callUID') 18590 @DomName('ScriptProfileNode.callUID')
18591 @DocsEditable 18591 @DocsEditable
18592 final int callUid; 18592 final int callUid;
18593 18593
18594 @DomName('ScriptProfileNode.functionName') 18594 @DomName('ScriptProfileNode.functionName')
18595 @DocsEditable 18595 @DocsEditable
18596 final String functionName; 18596 final String functionName;
18597 18597
(...skipping 25 matching lines...) Expand all
18623 @DocsEditable 18623 @DocsEditable
18624 List<ScriptProfileNode> children() native; 18624 List<ScriptProfileNode> children() native;
18625 } 18625 }
18626 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18626 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18627 // for details. All rights reserved. Use of this source code is governed by a 18627 // for details. All rights reserved. Use of this source code is governed by a
18628 // BSD-style license that can be found in the LICENSE file. 18628 // BSD-style license that can be found in the LICENSE file.
18629 18629
18630 18630
18631 @DocsEditable 18631 @DocsEditable
18632 @DomName('SecurityPolicyViolationEvent') 18632 @DomName('SecurityPolicyViolationEvent')
18633 class SecurityPolicyViolationEvent extends Event native "*SecurityPolicyViolatio nEvent" { 18633 class SecurityPolicyViolationEvent extends Event native "SecurityPolicyViolation Event" {
18634 18634
18635 @JSName('blockedURI') 18635 @JSName('blockedURI')
18636 @DomName('SecurityPolicyViolationEvent.blockedURI') 18636 @DomName('SecurityPolicyViolationEvent.blockedURI')
18637 @DocsEditable 18637 @DocsEditable
18638 final String blockedUri; 18638 final String blockedUri;
18639 18639
18640 @JSName('documentURI') 18640 @JSName('documentURI')
18641 @DomName('SecurityPolicyViolationEvent.documentURI') 18641 @DomName('SecurityPolicyViolationEvent.documentURI')
18642 @DocsEditable 18642 @DocsEditable
18643 final String documentUri; 18643 final String documentUri;
(...skipping 21 matching lines...) Expand all
18665 @DomName('SecurityPolicyViolationEvent.violatedDirective') 18665 @DomName('SecurityPolicyViolationEvent.violatedDirective')
18666 @DocsEditable 18666 @DocsEditable
18667 final String violatedDirective; 18667 final String violatedDirective;
18668 } 18668 }
18669 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18669 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18670 // for details. All rights reserved. Use of this source code is governed by a 18670 // for details. All rights reserved. Use of this source code is governed by a
18671 // BSD-style license that can be found in the LICENSE file. 18671 // BSD-style license that can be found in the LICENSE file.
18672 18672
18673 18673
18674 @DomName('HTMLSelectElement') 18674 @DomName('HTMLSelectElement')
18675 class SelectElement extends Element native "*HTMLSelectElement" { 18675 class SelectElement extends Element native "HTMLSelectElement" {
18676 18676
18677 @DomName('HTMLSelectElement.HTMLSelectElement') 18677 @DomName('HTMLSelectElement.HTMLSelectElement')
18678 @DocsEditable 18678 @DocsEditable
18679 factory SelectElement() => document.$dom_createElement("select"); 18679 factory SelectElement() => document.$dom_createElement("select");
18680 18680
18681 @DomName('HTMLSelectElement.autofocus') 18681 @DomName('HTMLSelectElement.autofocus')
18682 @DocsEditable 18682 @DocsEditable
18683 bool autofocus; 18683 bool autofocus;
18684 18684
18685 @DomName('HTMLSelectElement.disabled') 18685 @DomName('HTMLSelectElement.disabled')
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
18776 } 18776 }
18777 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18777 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18778 // for details. All rights reserved. Use of this source code is governed by a 18778 // for details. All rights reserved. Use of this source code is governed by a
18779 // BSD-style license that can be found in the LICENSE file. 18779 // BSD-style license that can be found in the LICENSE file.
18780 18780
18781 18781
18782 @DocsEditable 18782 @DocsEditable
18783 @DomName('HTMLShadowElement') 18783 @DomName('HTMLShadowElement')
18784 @SupportedBrowser(SupportedBrowser.CHROME, '26') 18784 @SupportedBrowser(SupportedBrowser.CHROME, '26')
18785 @Experimental 18785 @Experimental
18786 class ShadowElement extends Element native "*HTMLShadowElement" { 18786 class ShadowElement extends Element native "HTMLShadowElement" {
18787 18787
18788 /// Checks if this type is supported on the current platform. 18788 /// Checks if this type is supported on the current platform.
18789 static bool get supported => Element.isTagSupported('shadow'); 18789 static bool get supported => Element.isTagSupported('shadow');
18790 18790
18791 @DomName('HTMLShadowElement.olderShadowRoot') 18791 @DomName('HTMLShadowElement.olderShadowRoot')
18792 @DocsEditable 18792 @DocsEditable
18793 final ShadowRoot olderShadowRoot; 18793 final ShadowRoot olderShadowRoot;
18794 18794
18795 @DomName('HTMLShadowElement.resetStyleInheritance') 18795 @DomName('HTMLShadowElement.resetStyleInheritance')
18796 @DocsEditable 18796 @DocsEditable
18797 bool resetStyleInheritance; 18797 bool resetStyleInheritance;
18798 } 18798 }
18799 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18799 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18800 // for details. All rights reserved. Use of this source code is governed by a 18800 // for details. All rights reserved. Use of this source code is governed by a
18801 // BSD-style license that can be found in the LICENSE file. 18801 // BSD-style license that can be found in the LICENSE file.
18802 18802
18803 // WARNING: Do not edit - generated code. 18803 // WARNING: Do not edit - generated code.
18804 18804
18805 18805
18806 @DomName('ShadowRoot') 18806 @DomName('ShadowRoot')
18807 @SupportedBrowser(SupportedBrowser.CHROME, '26') 18807 @SupportedBrowser(SupportedBrowser.CHROME, '26')
18808 @Experimental 18808 @Experimental
18809 class ShadowRoot extends DocumentFragment native "*ShadowRoot" { 18809 class ShadowRoot extends DocumentFragment native "ShadowRoot" {
18810 18810
18811 @DomName('ShadowRoot.activeElement') 18811 @DomName('ShadowRoot.activeElement')
18812 @DocsEditable 18812 @DocsEditable
18813 final Element activeElement; 18813 final Element activeElement;
18814 18814
18815 @DomName('ShadowRoot.applyAuthorStyles') 18815 @DomName('ShadowRoot.applyAuthorStyles')
18816 @DocsEditable 18816 @DocsEditable
18817 bool applyAuthorStyles; 18817 bool applyAuthorStyles;
18818 18818
18819 @JSName('innerHTML') 18819 @JSName('innerHTML')
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
18857 static bool get supported => 18857 static bool get supported =>
18858 JS('bool', '!!(Element.prototype.webkitCreateShadowRoot)'); 18858 JS('bool', '!!(Element.prototype.webkitCreateShadowRoot)');
18859 } 18859 }
18860 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18860 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18861 // for details. All rights reserved. Use of this source code is governed by a 18861 // for details. All rights reserved. Use of this source code is governed by a
18862 // BSD-style license that can be found in the LICENSE file. 18862 // BSD-style license that can be found in the LICENSE file.
18863 18863
18864 18864
18865 @DocsEditable 18865 @DocsEditable
18866 @DomName('SourceBuffer') 18866 @DomName('SourceBuffer')
18867 class SourceBuffer native "*SourceBuffer" { 18867 class SourceBuffer native "SourceBuffer" {
18868 18868
18869 @DomName('SourceBuffer.buffered') 18869 @DomName('SourceBuffer.buffered')
18870 @DocsEditable 18870 @DocsEditable
18871 final TimeRanges buffered; 18871 final TimeRanges buffered;
18872 18872
18873 @DomName('SourceBuffer.timestampOffset') 18873 @DomName('SourceBuffer.timestampOffset')
18874 @DocsEditable 18874 @DocsEditable
18875 num timestampOffset; 18875 num timestampOffset;
18876 18876
18877 @DomName('SourceBuffer.abort') 18877 @DomName('SourceBuffer.abort')
18878 @DocsEditable 18878 @DocsEditable
18879 void abort() native; 18879 void abort() native;
18880 18880
18881 @DomName('SourceBuffer.append') 18881 @DomName('SourceBuffer.append')
18882 @DocsEditable 18882 @DocsEditable
18883 void append(Uint8List data) native; 18883 void append(Uint8List data) native;
18884 } 18884 }
18885 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18885 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18886 // for details. All rights reserved. Use of this source code is governed by a 18886 // for details. All rights reserved. Use of this source code is governed by a
18887 // BSD-style license that can be found in the LICENSE file. 18887 // BSD-style license that can be found in the LICENSE file.
18888 18888
18889 18889
18890 @DocsEditable 18890 @DocsEditable
18891 @DomName('SourceBufferList') 18891 @DomName('SourceBufferList')
18892 class SourceBufferList extends EventTarget implements JavaScriptIndexingBehavior , List<SourceBuffer> native "*SourceBufferList" { 18892 class SourceBufferList extends EventTarget implements JavaScriptIndexingBehavior , List<SourceBuffer> native "SourceBufferList" {
18893 18893
18894 @DomName('SourceBufferList.length') 18894 @DomName('SourceBufferList.length')
18895 @DocsEditable 18895 @DocsEditable
18896 int get length => JS("int", "#.length", this); 18896 int get length => JS("int", "#.length", this);
18897 18897
18898 SourceBuffer operator[](int index) => JS("SourceBuffer", "#[#]", this, index); 18898 SourceBuffer operator[](int index) => JS("SourceBuffer", "#[#]", this, index);
18899 18899
18900 void operator[]=(int index, SourceBuffer value) { 18900 void operator[]=(int index, SourceBuffer value) {
18901 throw new UnsupportedError("Cannot assign element of immutable List."); 18901 throw new UnsupportedError("Cannot assign element of immutable List.");
18902 } 18902 }
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
19113 @DocsEditable 19113 @DocsEditable
19114 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native; 19114 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native;
19115 } 19115 }
19116 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19116 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19117 // for details. All rights reserved. Use of this source code is governed by a 19117 // for details. All rights reserved. Use of this source code is governed by a
19118 // BSD-style license that can be found in the LICENSE file. 19118 // BSD-style license that can be found in the LICENSE file.
19119 19119
19120 19120
19121 @DocsEditable 19121 @DocsEditable
19122 @DomName('HTMLSourceElement') 19122 @DomName('HTMLSourceElement')
19123 class SourceElement extends Element native "*HTMLSourceElement" { 19123 class SourceElement extends Element native "HTMLSourceElement" {
19124 19124
19125 @DomName('HTMLSourceElement.HTMLSourceElement') 19125 @DomName('HTMLSourceElement.HTMLSourceElement')
19126 @DocsEditable 19126 @DocsEditable
19127 factory SourceElement() => document.$dom_createElement("source"); 19127 factory SourceElement() => document.$dom_createElement("source");
19128 19128
19129 @DomName('HTMLSourceElement.media') 19129 @DomName('HTMLSourceElement.media')
19130 @DocsEditable 19130 @DocsEditable
19131 String media; 19131 String media;
19132 19132
19133 @DomName('HTMLSourceElement.src') 19133 @DomName('HTMLSourceElement.src')
19134 @DocsEditable 19134 @DocsEditable
19135 String src; 19135 String src;
19136 19136
19137 @DomName('HTMLSourceElement.type') 19137 @DomName('HTMLSourceElement.type')
19138 @DocsEditable 19138 @DocsEditable
19139 String type; 19139 String type;
19140 } 19140 }
19141 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19141 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19142 // for details. All rights reserved. Use of this source code is governed by a 19142 // for details. All rights reserved. Use of this source code is governed by a
19143 // BSD-style license that can be found in the LICENSE file. 19143 // BSD-style license that can be found in the LICENSE file.
19144 19144
19145 19145
19146 @DocsEditable 19146 @DocsEditable
19147 @DomName('HTMLSpanElement') 19147 @DomName('HTMLSpanElement')
19148 class SpanElement extends Element native "*HTMLSpanElement" { 19148 class SpanElement extends Element native "HTMLSpanElement" {
19149 19149
19150 @DomName('HTMLSpanElement.HTMLSpanElement') 19150 @DomName('HTMLSpanElement.HTMLSpanElement')
19151 @DocsEditable 19151 @DocsEditable
19152 factory SpanElement() => document.$dom_createElement("span"); 19152 factory SpanElement() => document.$dom_createElement("span");
19153 } 19153 }
19154 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19154 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19155 // for details. All rights reserved. Use of this source code is governed by a 19155 // for details. All rights reserved. Use of this source code is governed by a
19156 // BSD-style license that can be found in the LICENSE file. 19156 // BSD-style license that can be found in the LICENSE file.
19157 19157
19158 19158
19159 @DocsEditable 19159 @DocsEditable
19160 @DomName('SpeechGrammar') 19160 @DomName('SpeechGrammar')
19161 class SpeechGrammar native "*SpeechGrammar" { 19161 class SpeechGrammar native "SpeechGrammar" {
19162 19162
19163 @DomName('SpeechGrammar.SpeechGrammar') 19163 @DomName('SpeechGrammar.SpeechGrammar')
19164 @DocsEditable 19164 @DocsEditable
19165 factory SpeechGrammar() { 19165 factory SpeechGrammar() {
19166 return SpeechGrammar._create_1(); 19166 return SpeechGrammar._create_1();
19167 } 19167 }
19168 static SpeechGrammar _create_1() => JS('SpeechGrammar', 'new SpeechGrammar()') ; 19168 static SpeechGrammar _create_1() => JS('SpeechGrammar', 'new SpeechGrammar()') ;
19169 19169
19170 @DomName('SpeechGrammar.src') 19170 @DomName('SpeechGrammar.src')
19171 @DocsEditable 19171 @DocsEditable
19172 String src; 19172 String src;
19173 19173
19174 @DomName('SpeechGrammar.weight') 19174 @DomName('SpeechGrammar.weight')
19175 @DocsEditable 19175 @DocsEditable
19176 num weight; 19176 num weight;
19177 } 19177 }
19178 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19178 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19179 // for details. All rights reserved. Use of this source code is governed by a 19179 // for details. All rights reserved. Use of this source code is governed by a
19180 // BSD-style license that can be found in the LICENSE file. 19180 // BSD-style license that can be found in the LICENSE file.
19181 19181
19182 19182
19183 @DocsEditable 19183 @DocsEditable
19184 @DomName('SpeechGrammarList') 19184 @DomName('SpeechGrammarList')
19185 class SpeechGrammarList implements JavaScriptIndexingBehavior, List<SpeechGramma r> native "*SpeechGrammarList" { 19185 class SpeechGrammarList implements JavaScriptIndexingBehavior, List<SpeechGramma r> native "SpeechGrammarList" {
19186 19186
19187 @DomName('SpeechGrammarList.SpeechGrammarList') 19187 @DomName('SpeechGrammarList.SpeechGrammarList')
19188 @DocsEditable 19188 @DocsEditable
19189 factory SpeechGrammarList() { 19189 factory SpeechGrammarList() {
19190 return SpeechGrammarList._create_1(); 19190 return SpeechGrammarList._create_1();
19191 } 19191 }
19192 static SpeechGrammarList _create_1() => JS('SpeechGrammarList', 'new SpeechGra mmarList()'); 19192 static SpeechGrammarList _create_1() => JS('SpeechGrammarList', 'new SpeechGra mmarList()');
19193 19193
19194 @DomName('SpeechGrammarList.length') 19194 @DomName('SpeechGrammarList.length')
19195 @DocsEditable 19195 @DocsEditable
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
19407 @DocsEditable 19407 @DocsEditable
19408 SpeechGrammar item(int index) native; 19408 SpeechGrammar item(int index) native;
19409 } 19409 }
19410 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19410 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19411 // for details. All rights reserved. Use of this source code is governed by a 19411 // for details. All rights reserved. Use of this source code is governed by a
19412 // BSD-style license that can be found in the LICENSE file. 19412 // BSD-style license that can be found in the LICENSE file.
19413 19413
19414 19414
19415 @DocsEditable 19415 @DocsEditable
19416 @DomName('SpeechInputEvent') 19416 @DomName('SpeechInputEvent')
19417 class SpeechInputEvent extends Event native "*SpeechInputEvent" { 19417 class SpeechInputEvent extends Event native "SpeechInputEvent" {
19418 19418
19419 @DomName('SpeechInputEvent.results') 19419 @DomName('SpeechInputEvent.results')
19420 @DocsEditable 19420 @DocsEditable
19421 @Returns('_SpeechInputResultList') 19421 @Returns('_SpeechInputResultList')
19422 @Creates('_SpeechInputResultList') 19422 @Creates('_SpeechInputResultList')
19423 final List<SpeechInputResult> results; 19423 final List<SpeechInputResult> results;
19424 } 19424 }
19425 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19425 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19426 // for details. All rights reserved. Use of this source code is governed by a 19426 // for details. All rights reserved. Use of this source code is governed by a
19427 // BSD-style license that can be found in the LICENSE file. 19427 // BSD-style license that can be found in the LICENSE file.
19428 19428
19429 19429
19430 @DocsEditable 19430 @DocsEditable
19431 @DomName('SpeechInputResult') 19431 @DomName('SpeechInputResult')
19432 class SpeechInputResult native "*SpeechInputResult" { 19432 class SpeechInputResult native "SpeechInputResult" {
19433 19433
19434 @DomName('SpeechInputResult.confidence') 19434 @DomName('SpeechInputResult.confidence')
19435 @DocsEditable 19435 @DocsEditable
19436 final num confidence; 19436 final num confidence;
19437 19437
19438 @DomName('SpeechInputResult.utterance') 19438 @DomName('SpeechInputResult.utterance')
19439 @DocsEditable 19439 @DocsEditable
19440 final String utterance; 19440 final String utterance;
19441 } 19441 }
19442 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 19442 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
19443 // for details. All rights reserved. Use of this source code is governed by a 19443 // for details. All rights reserved. Use of this source code is governed by a
19444 // BSD-style license that can be found in the LICENSE file. 19444 // BSD-style license that can be found in the LICENSE file.
19445 19445
19446 19446
19447 @DomName('SpeechRecognition') 19447 @DomName('SpeechRecognition')
19448 @SupportedBrowser(SupportedBrowser.CHROME, '25') 19448 @SupportedBrowser(SupportedBrowser.CHROME, '25')
19449 @Experimental 19449 @Experimental
19450 class SpeechRecognition extends EventTarget native "*SpeechRecognition" { 19450 class SpeechRecognition extends EventTarget native "SpeechRecognition" {
19451 19451
19452 @DomName('SpeechRecognition.audioendEvent') 19452 @DomName('SpeechRecognition.audioendEvent')
19453 @DocsEditable 19453 @DocsEditable
19454 static const EventStreamProvider<Event> audioEndEvent = const EventStreamProvi der<Event>('audioend'); 19454 static const EventStreamProvider<Event> audioEndEvent = const EventStreamProvi der<Event>('audioend');
19455 19455
19456 @DomName('SpeechRecognition.audiostartEvent') 19456 @DomName('SpeechRecognition.audiostartEvent')
19457 @DocsEditable 19457 @DocsEditable
19458 static const EventStreamProvider<Event> audioStartEvent = const EventStreamPro vider<Event>('audiostart'); 19458 static const EventStreamProvider<Event> audioStartEvent = const EventStreamPro vider<Event>('audiostart');
19459 19459
19460 @DomName('SpeechRecognition.endEvent') 19460 @DomName('SpeechRecognition.endEvent')
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
19593 } 19593 }
19594 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19594 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19595 // for details. All rights reserved. Use of this source code is governed by a 19595 // for details. All rights reserved. Use of this source code is governed by a
19596 // BSD-style license that can be found in the LICENSE file. 19596 // BSD-style license that can be found in the LICENSE file.
19597 19597
19598 19598
19599 @DocsEditable 19599 @DocsEditable
19600 @DomName('SpeechRecognitionAlternative') 19600 @DomName('SpeechRecognitionAlternative')
19601 @SupportedBrowser(SupportedBrowser.CHROME, '25') 19601 @SupportedBrowser(SupportedBrowser.CHROME, '25')
19602 @Experimental 19602 @Experimental
19603 class SpeechRecognitionAlternative native "*SpeechRecognitionAlternative" { 19603 class SpeechRecognitionAlternative native "SpeechRecognitionAlternative" {
19604 19604
19605 @DomName('SpeechRecognitionAlternative.confidence') 19605 @DomName('SpeechRecognitionAlternative.confidence')
19606 @DocsEditable 19606 @DocsEditable
19607 final num confidence; 19607 final num confidence;
19608 19608
19609 @DomName('SpeechRecognitionAlternative.transcript') 19609 @DomName('SpeechRecognitionAlternative.transcript')
19610 @DocsEditable 19610 @DocsEditable
19611 final String transcript; 19611 final String transcript;
19612 } 19612 }
19613 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19613 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19614 // for details. All rights reserved. Use of this source code is governed by a 19614 // for details. All rights reserved. Use of this source code is governed by a
19615 // BSD-style license that can be found in the LICENSE file. 19615 // BSD-style license that can be found in the LICENSE file.
19616 19616
19617 19617
19618 @DocsEditable 19618 @DocsEditable
19619 @DomName('SpeechRecognitionError') 19619 @DomName('SpeechRecognitionError')
19620 @SupportedBrowser(SupportedBrowser.CHROME, '25') 19620 @SupportedBrowser(SupportedBrowser.CHROME, '25')
19621 @Experimental 19621 @Experimental
19622 class SpeechRecognitionError extends Event native "*SpeechRecognitionError" { 19622 class SpeechRecognitionError extends Event native "SpeechRecognitionError" {
19623 19623
19624 @DomName('SpeechRecognitionError.error') 19624 @DomName('SpeechRecognitionError.error')
19625 @DocsEditable 19625 @DocsEditable
19626 final String error; 19626 final String error;
19627 19627
19628 @DomName('SpeechRecognitionError.message') 19628 @DomName('SpeechRecognitionError.message')
19629 @DocsEditable 19629 @DocsEditable
19630 final String message; 19630 final String message;
19631 } 19631 }
19632 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19632 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19633 // for details. All rights reserved. Use of this source code is governed by a 19633 // for details. All rights reserved. Use of this source code is governed by a
19634 // BSD-style license that can be found in the LICENSE file. 19634 // BSD-style license that can be found in the LICENSE file.
19635 19635
19636 19636
19637 @DocsEditable 19637 @DocsEditable
19638 @DomName('SpeechRecognitionEvent') 19638 @DomName('SpeechRecognitionEvent')
19639 @SupportedBrowser(SupportedBrowser.CHROME, '25') 19639 @SupportedBrowser(SupportedBrowser.CHROME, '25')
19640 @Experimental 19640 @Experimental
19641 class SpeechRecognitionEvent extends Event native "*SpeechRecognitionEvent" { 19641 class SpeechRecognitionEvent extends Event native "SpeechRecognitionEvent" {
19642 19642
19643 @DomName('SpeechRecognitionEvent.emma') 19643 @DomName('SpeechRecognitionEvent.emma')
19644 @DocsEditable 19644 @DocsEditable
19645 final Document emma; 19645 final Document emma;
19646 19646
19647 @DomName('SpeechRecognitionEvent.interpretation') 19647 @DomName('SpeechRecognitionEvent.interpretation')
19648 @DocsEditable 19648 @DocsEditable
19649 final Document interpretation; 19649 final Document interpretation;
19650 19650
19651 @DomName('SpeechRecognitionEvent.resultIndex') 19651 @DomName('SpeechRecognitionEvent.resultIndex')
19652 @DocsEditable 19652 @DocsEditable
19653 final int resultIndex; 19653 final int resultIndex;
19654 19654
19655 @DomName('SpeechRecognitionEvent.results') 19655 @DomName('SpeechRecognitionEvent.results')
19656 @DocsEditable 19656 @DocsEditable
19657 @Returns('_SpeechRecognitionResultList') 19657 @Returns('_SpeechRecognitionResultList')
19658 @Creates('_SpeechRecognitionResultList') 19658 @Creates('_SpeechRecognitionResultList')
19659 final List<SpeechRecognitionResult> results; 19659 final List<SpeechRecognitionResult> results;
19660 } 19660 }
19661 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19661 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19662 // for details. All rights reserved. Use of this source code is governed by a 19662 // for details. All rights reserved. Use of this source code is governed by a
19663 // BSD-style license that can be found in the LICENSE file. 19663 // BSD-style license that can be found in the LICENSE file.
19664 19664
19665 19665
19666 @DocsEditable 19666 @DocsEditable
19667 @DomName('SpeechRecognitionResult') 19667 @DomName('SpeechRecognitionResult')
19668 @SupportedBrowser(SupportedBrowser.CHROME, '25') 19668 @SupportedBrowser(SupportedBrowser.CHROME, '25')
19669 @Experimental 19669 @Experimental
19670 class SpeechRecognitionResult native "*SpeechRecognitionResult" { 19670 class SpeechRecognitionResult native "SpeechRecognitionResult" {
19671 19671
19672 @DomName('SpeechRecognitionResult.isFinal') 19672 @DomName('SpeechRecognitionResult.isFinal')
19673 @DocsEditable 19673 @DocsEditable
19674 final bool isFinal; 19674 final bool isFinal;
19675 19675
19676 @DomName('SpeechRecognitionResult.length') 19676 @DomName('SpeechRecognitionResult.length')
19677 @DocsEditable 19677 @DocsEditable
19678 final int length; 19678 final int length;
19679 19679
19680 @DomName('SpeechRecognitionResult.item') 19680 @DomName('SpeechRecognitionResult.item')
(...skipping 25 matching lines...) Expand all
19706 * assert(window.localStorage.length == 0); 19706 * assert(window.localStorage.length == 0);
19707 * 19707 *
19708 * For more examples of using this API, see 19708 * For more examples of using this API, see
19709 * [localstorage_test.dart](http://code.google.com/p/dart/source/browse/branches /bleeding_edge/dart/tests/html/localstorage_test.dart). 19709 * [localstorage_test.dart](http://code.google.com/p/dart/source/browse/branches /bleeding_edge/dart/tests/html/localstorage_test.dart).
19710 * For details on using the Map API, see the 19710 * For details on using the Map API, see the
19711 * [Maps](http://www.dartlang.org/docs/library-tour/#maps-aka-dictionaries-or-ha shes) 19711 * [Maps](http://www.dartlang.org/docs/library-tour/#maps-aka-dictionaries-or-ha shes)
19712 * section of the library tour. 19712 * section of the library tour.
19713 */ 19713 */
19714 @DomName('Storage') 19714 @DomName('Storage')
19715 class Storage implements Map<String, String> 19715 class Storage implements Map<String, String>
19716 native "*Storage" { 19716 native "Storage" {
19717 19717
19718 // TODO(nweiz): update this when maps support lazy iteration 19718 // TODO(nweiz): update this when maps support lazy iteration
19719 bool containsValue(String value) => values.any((e) => e == value); 19719 bool containsValue(String value) => values.any((e) => e == value);
19720 19720
19721 bool containsKey(String key) => $dom_getItem(key) != null; 19721 bool containsKey(String key) => $dom_getItem(key) != null;
19722 19722
19723 String operator [](String key) => $dom_getItem(key); 19723 String operator [](String key) => $dom_getItem(key);
19724 19724
19725 void operator []=(String key, String value) { $dom_setItem(key, value); } 19725 void operator []=(String key, String value) { $dom_setItem(key, value); }
19726 19726
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
19802 19802
19803 typedef void StorageErrorCallback(DomException error); 19803 typedef void StorageErrorCallback(DomException error);
19804 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 19804 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
19805 // for details. All rights reserved. Use of this source code is governed by a 19805 // for details. All rights reserved. Use of this source code is governed by a
19806 // BSD-style license that can be found in the LICENSE file. 19806 // BSD-style license that can be found in the LICENSE file.
19807 19807
19808 // WARNING: Do not edit - generated code. 19808 // WARNING: Do not edit - generated code.
19809 19809
19810 19810
19811 @DomName('StorageEvent') 19811 @DomName('StorageEvent')
19812 class StorageEvent extends Event native "*StorageEvent" { 19812 class StorageEvent extends Event native "StorageEvent" {
19813 factory StorageEvent(String type, 19813 factory StorageEvent(String type,
19814 {bool canBubble: false, bool cancelable: false, String key, String oldValue, 19814 {bool canBubble: false, bool cancelable: false, String key, String oldValue,
19815 String newValue, String url, Storage storageArea}) { 19815 String newValue, String url, Storage storageArea}) {
19816 19816
19817 var e = document.$dom_createEvent("StorageEvent"); 19817 var e = document.$dom_createEvent("StorageEvent");
19818 e.$dom_initStorageEvent(type, canBubble, cancelable, key, oldValue, 19818 e.$dom_initStorageEvent(type, canBubble, cancelable, key, oldValue,
19819 newValue, url, storageArea); 19819 newValue, url, storageArea);
19820 return e; 19820 return e;
19821 } 19821 }
19822 19822
(...skipping 22 matching lines...) Expand all
19845 @DocsEditable 19845 @DocsEditable
19846 void $dom_initStorageEvent(String typeArg, bool canBubbleArg, bool cancelableA rg, String keyArg, String oldValueArg, String newValueArg, String urlArg, Storag e storageAreaArg) native; 19846 void $dom_initStorageEvent(String typeArg, bool canBubbleArg, bool cancelableA rg, String keyArg, String oldValueArg, String newValueArg, String urlArg, Storag e storageAreaArg) native;
19847 19847
19848 } 19848 }
19849 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 19849 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
19850 // for details. All rights reserved. Use of this source code is governed by a 19850 // for details. All rights reserved. Use of this source code is governed by a
19851 // BSD-style license that can be found in the LICENSE file. 19851 // BSD-style license that can be found in the LICENSE file.
19852 19852
19853 19853
19854 @DomName('StorageInfo') 19854 @DomName('StorageInfo')
19855 class StorageInfo native "*StorageInfo" { 19855 class StorageInfo native "StorageInfo" {
19856 19856
19857 static const int PERSISTENT = 1; 19857 static const int PERSISTENT = 1;
19858 19858
19859 static const int TEMPORARY = 0; 19859 static const int TEMPORARY = 0;
19860 19860
19861 @JSName('queryUsageAndQuota') 19861 @JSName('queryUsageAndQuota')
19862 @DomName('StorageInfo.queryUsageAndQuota') 19862 @DomName('StorageInfo.queryUsageAndQuota')
19863 @DocsEditable 19863 @DocsEditable
19864 void _queryUsageAndQuota(int storageType, [StorageUsageCallback usageCallback, StorageErrorCallback errorCallback]) native; 19864 void _queryUsageAndQuota(int storageType, [StorageUsageCallback usageCallback, StorageErrorCallback errorCallback]) native;
19865 19865
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
19900 final int currentQuotaInBytes; 19900 final int currentQuotaInBytes;
19901 const StorageInfoUsage(this.currentUsageInBytes, this.currentQuotaInBytes); 19901 const StorageInfoUsage(this.currentUsageInBytes, this.currentQuotaInBytes);
19902 } 19902 }
19903 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19903 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19904 // for details. All rights reserved. Use of this source code is governed by a 19904 // for details. All rights reserved. Use of this source code is governed by a
19905 // BSD-style license that can be found in the LICENSE file. 19905 // BSD-style license that can be found in the LICENSE file.
19906 19906
19907 19907
19908 @DocsEditable 19908 @DocsEditable
19909 @DomName('StorageQuota') 19909 @DomName('StorageQuota')
19910 class StorageQuota native "*StorageQuota" { 19910 class StorageQuota native "StorageQuota" {
19911 19911
19912 @DomName('StorageQuota.queryUsageAndQuota') 19912 @DomName('StorageQuota.queryUsageAndQuota')
19913 @DocsEditable 19913 @DocsEditable
19914 void queryUsageAndQuota(StorageUsageCallback usageCallback, [StorageErrorCallb ack errorCallback]) native; 19914 void queryUsageAndQuota(StorageUsageCallback usageCallback, [StorageErrorCallb ack errorCallback]) native;
19915 19915
19916 @DomName('StorageQuota.requestQuota') 19916 @DomName('StorageQuota.requestQuota')
19917 @DocsEditable 19917 @DocsEditable
19918 void requestQuota(int newQuotaInBytes, [StorageQuotaCallback quotaCallback, St orageErrorCallback errorCallback]) native; 19918 void requestQuota(int newQuotaInBytes, [StorageQuotaCallback quotaCallback, St orageErrorCallback errorCallback]) native;
19919 } 19919 }
19920 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19920 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
(...skipping 20 matching lines...) Expand all
19941 19941
19942 19942
19943 typedef void _StringCallback(String data); 19943 typedef void _StringCallback(String data);
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 @DocsEditable 19949 @DocsEditable
19950 @DomName('HTMLStyleElement') 19950 @DomName('HTMLStyleElement')
19951 class StyleElement extends Element native "*HTMLStyleElement" { 19951 class StyleElement extends Element native "HTMLStyleElement" {
19952 19952
19953 @DomName('HTMLStyleElement.HTMLStyleElement') 19953 @DomName('HTMLStyleElement.HTMLStyleElement')
19954 @DocsEditable 19954 @DocsEditable
19955 factory StyleElement() => document.$dom_createElement("style"); 19955 factory StyleElement() => document.$dom_createElement("style");
19956 19956
19957 @DomName('HTMLStyleElement.disabled') 19957 @DomName('HTMLStyleElement.disabled')
19958 @DocsEditable 19958 @DocsEditable
19959 bool disabled; 19959 bool disabled;
19960 19960
19961 @DomName('HTMLStyleElement.media') 19961 @DomName('HTMLStyleElement.media')
(...skipping 12 matching lines...) Expand all
19974 @DocsEditable 19974 @DocsEditable
19975 String type; 19975 String type;
19976 } 19976 }
19977 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19977 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19978 // for details. All rights reserved. Use of this source code is governed by a 19978 // for details. All rights reserved. Use of this source code is governed by a
19979 // BSD-style license that can be found in the LICENSE file. 19979 // BSD-style license that can be found in the LICENSE file.
19980 19980
19981 19981
19982 @DocsEditable 19982 @DocsEditable
19983 @DomName('StyleMedia') 19983 @DomName('StyleMedia')
19984 class StyleMedia native "*StyleMedia" { 19984 class StyleMedia native "StyleMedia" {
19985 19985
19986 @DomName('StyleMedia.type') 19986 @DomName('StyleMedia.type')
19987 @DocsEditable 19987 @DocsEditable
19988 final String type; 19988 final String type;
19989 19989
19990 @DomName('StyleMedia.matchMedium') 19990 @DomName('StyleMedia.matchMedium')
19991 @DocsEditable 19991 @DocsEditable
19992 bool matchMedium(String mediaquery) native; 19992 bool matchMedium(String mediaquery) native;
19993 } 19993 }
19994 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19994 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19995 // for details. All rights reserved. Use of this source code is governed by a 19995 // for details. All rights reserved. Use of this source code is governed by a
19996 // BSD-style license that can be found in the LICENSE file. 19996 // BSD-style license that can be found in the LICENSE file.
19997 19997
19998 19998
19999 @DocsEditable 19999 @DocsEditable
20000 @DomName('StyleSheet') 20000 @DomName('StyleSheet')
20001 class StyleSheet native "*StyleSheet" { 20001 class StyleSheet native "StyleSheet" {
20002 20002
20003 @DomName('StyleSheet.disabled') 20003 @DomName('StyleSheet.disabled')
20004 @DocsEditable 20004 @DocsEditable
20005 bool disabled; 20005 bool disabled;
20006 20006
20007 @DomName('StyleSheet.href') 20007 @DomName('StyleSheet.href')
20008 @DocsEditable 20008 @DocsEditable
20009 final String href; 20009 final String href;
20010 20010
20011 @DomName('StyleSheet.media') 20011 @DomName('StyleSheet.media')
(...skipping 16 matching lines...) Expand all
20028 @DocsEditable 20028 @DocsEditable
20029 final String type; 20029 final String type;
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 @DocsEditable 20036 @DocsEditable
20037 @DomName('HTMLTableCaptionElement') 20037 @DomName('HTMLTableCaptionElement')
20038 class TableCaptionElement extends Element native "*HTMLTableCaptionElement" { 20038 class TableCaptionElement extends Element native "HTMLTableCaptionElement" {
20039 20039
20040 @DomName('HTMLTableCaptionElement.HTMLTableCaptionElement') 20040 @DomName('HTMLTableCaptionElement.HTMLTableCaptionElement')
20041 @DocsEditable 20041 @DocsEditable
20042 factory TableCaptionElement() => document.$dom_createElement("caption"); 20042 factory TableCaptionElement() => document.$dom_createElement("caption");
20043 } 20043 }
20044 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20044 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20045 // for details. All rights reserved. Use of this source code is governed by a 20045 // for details. All rights reserved. Use of this source code is governed by a
20046 // BSD-style license that can be found in the LICENSE file. 20046 // BSD-style license that can be found in the LICENSE file.
20047 20047
20048 20048
20049 @DocsEditable 20049 @DocsEditable
20050 @DomName('HTMLTableCellElement') 20050 @DomName('HTMLTableCellElement')
20051 class TableCellElement extends Element native "*HTMLTableCellElement" { 20051 class TableCellElement extends Element native "HTMLTableCellElement" {
20052 20052
20053 @DomName('HTMLTableCellElement.HTMLTableCellElement') 20053 @DomName('HTMLTableCellElement.HTMLTableCellElement')
20054 @DocsEditable 20054 @DocsEditable
20055 factory TableCellElement() => document.$dom_createElement("td"); 20055 factory TableCellElement() => document.$dom_createElement("td");
20056 20056
20057 @DomName('HTMLTableCellElement.cellIndex') 20057 @DomName('HTMLTableCellElement.cellIndex')
20058 @DocsEditable 20058 @DocsEditable
20059 final int cellIndex; 20059 final int cellIndex;
20060 20060
20061 @DomName('HTMLTableCellElement.colSpan') 20061 @DomName('HTMLTableCellElement.colSpan')
20062 @DocsEditable 20062 @DocsEditable
20063 int colSpan; 20063 int colSpan;
20064 20064
20065 @DomName('HTMLTableCellElement.headers') 20065 @DomName('HTMLTableCellElement.headers')
20066 @DocsEditable 20066 @DocsEditable
20067 String headers; 20067 String headers;
20068 20068
20069 @DomName('HTMLTableCellElement.rowSpan') 20069 @DomName('HTMLTableCellElement.rowSpan')
20070 @DocsEditable 20070 @DocsEditable
20071 int rowSpan; 20071 int rowSpan;
20072 } 20072 }
20073 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20073 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20074 // for details. All rights reserved. Use of this source code is governed by a 20074 // for details. All rights reserved. Use of this source code is governed by a
20075 // BSD-style license that can be found in the LICENSE file. 20075 // BSD-style license that can be found in the LICENSE file.
20076 20076
20077 20077
20078 @DocsEditable 20078 @DocsEditable
20079 @DomName('HTMLTableColElement') 20079 @DomName('HTMLTableColElement')
20080 class TableColElement extends Element native "*HTMLTableColElement" { 20080 class TableColElement extends Element native "HTMLTableColElement" {
20081 20081
20082 @DomName('HTMLTableColElement.HTMLTableColElement') 20082 @DomName('HTMLTableColElement.HTMLTableColElement')
20083 @DocsEditable 20083 @DocsEditable
20084 factory TableColElement() => document.$dom_createElement("col"); 20084 factory TableColElement() => document.$dom_createElement("col");
20085 20085
20086 @DomName('HTMLTableColElement.span') 20086 @DomName('HTMLTableColElement.span')
20087 @DocsEditable 20087 @DocsEditable
20088 int span; 20088 int span;
20089 } 20089 }
20090 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 20090 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
20091 // for details. All rights reserved. Use of this source code is governed by a 20091 // for details. All rights reserved. Use of this source code is governed by a
20092 // BSD-style license that can be found in the LICENSE file. 20092 // BSD-style license that can be found in the LICENSE file.
20093 20093
20094 20094
20095 @DocsEditable 20095 @DocsEditable
20096 @DomName('HTMLTableElement') 20096 @DomName('HTMLTableElement')
20097 class TableElement extends Element native "*HTMLTableElement" { 20097 class TableElement extends Element native "HTMLTableElement" {
20098 20098
20099 @DomName('HTMLTableElement.tBodies') 20099 @DomName('HTMLTableElement.tBodies')
20100 List<TableSectionElement> get tBodies => 20100 List<TableSectionElement> get tBodies =>
20101 new _WrappedList<TableSectionElement>($dom_tBodies); 20101 new _WrappedList<TableSectionElement>($dom_tBodies);
20102 20102
20103 @DomName('HTMLTableElement.rows') 20103 @DomName('HTMLTableElement.rows')
20104 List<TableRowElement> get rows => 20104 List<TableRowElement> get rows =>
20105 new _WrappedList<TableRowElement>($dom_rows); 20105 new _WrappedList<TableRowElement>($dom_rows);
20106 20106
20107 TableRowElement addRow() { 20107 TableRowElement addRow() {
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
20193 @DocsEditable 20193 @DocsEditable
20194 Element $dom_insertRow(int index) native; 20194 Element $dom_insertRow(int index) native;
20195 } 20195 }
20196 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 20196 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
20197 // for details. All rights reserved. Use of this source code is governed by a 20197 // for details. All rights reserved. Use of this source code is governed by a
20198 // BSD-style license that can be found in the LICENSE file. 20198 // BSD-style license that can be found in the LICENSE file.
20199 20199
20200 20200
20201 @DocsEditable 20201 @DocsEditable
20202 @DomName('HTMLTableRowElement') 20202 @DomName('HTMLTableRowElement')
20203 class TableRowElement extends Element native "*HTMLTableRowElement" { 20203 class TableRowElement extends Element native "HTMLTableRowElement" {
20204 20204
20205 @DomName('HTMLTableRowElement.cells') 20205 @DomName('HTMLTableRowElement.cells')
20206 List<TableCellElement> get cells => 20206 List<TableCellElement> get cells =>
20207 new _WrappedList<TableCellElement>($dom_cells); 20207 new _WrappedList<TableCellElement>($dom_cells);
20208 20208
20209 TableCellElement addCell() { 20209 TableCellElement addCell() {
20210 return insertCell(-1); 20210 return insertCell(-1);
20211 } 20211 }
20212 20212
20213 TableCellElement insertCell(int index) => $dom_insertCell(index); 20213 TableCellElement insertCell(int index) => $dom_insertCell(index);
(...skipping 25 matching lines...) Expand all
20239 @DocsEditable 20239 @DocsEditable
20240 Element $dom_insertCell(int index) native; 20240 Element $dom_insertCell(int index) native;
20241 } 20241 }
20242 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 20242 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
20243 // for details. All rights reserved. Use of this source code is governed by a 20243 // for details. All rights reserved. Use of this source code is governed by a
20244 // BSD-style license that can be found in the LICENSE file. 20244 // BSD-style license that can be found in the LICENSE file.
20245 20245
20246 20246
20247 @DocsEditable 20247 @DocsEditable
20248 @DomName('HTMLTableSectionElement') 20248 @DomName('HTMLTableSectionElement')
20249 class TableSectionElement extends Element native "*HTMLTableSectionElement" { 20249 class TableSectionElement extends Element native "HTMLTableSectionElement" {
20250 20250
20251 @DomName('HTMLTableSectionElement.rows') 20251 @DomName('HTMLTableSectionElement.rows')
20252 List<TableRowElement> get rows => 20252 List<TableRowElement> get rows =>
20253 new _WrappedList<TableRowElement>($dom_rows); 20253 new _WrappedList<TableRowElement>($dom_rows);
20254 20254
20255 TableRowElement addRow() { 20255 TableRowElement addRow() {
20256 return insertRow(-1); 20256 return insertRow(-1);
20257 } 20257 }
20258 20258
20259 TableRowElement insertRow(int index) => $dom_insertRow(index); 20259 TableRowElement insertRow(int index) => $dom_insertRow(index);
(...skipping 13 matching lines...) Expand all
20273 @DocsEditable 20273 @DocsEditable
20274 Element $dom_insertRow(int index) native; 20274 Element $dom_insertRow(int index) native;
20275 } 20275 }
20276 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20276 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20277 // for details. All rights reserved. Use of this source code is governed by a 20277 // for details. All rights reserved. Use of this source code is governed by a
20278 // BSD-style license that can be found in the LICENSE file. 20278 // BSD-style license that can be found in the LICENSE file.
20279 20279
20280 20280
20281 @DocsEditable 20281 @DocsEditable
20282 @DomName('HTMLTemplateElement') 20282 @DomName('HTMLTemplateElement')
20283 class TemplateElement extends Element native "*HTMLTemplateElement" { 20283 class TemplateElement extends Element native "HTMLTemplateElement" {
20284 20284
20285 @DomName('HTMLTemplateElement.content') 20285 @DomName('HTMLTemplateElement.content')
20286 @DocsEditable 20286 @DocsEditable
20287 final DocumentFragment content; 20287 final DocumentFragment content;
20288 } 20288 }
20289 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20289 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20290 // for details. All rights reserved. Use of this source code is governed by a 20290 // for details. All rights reserved. Use of this source code is governed by a
20291 // BSD-style license that can be found in the LICENSE file. 20291 // BSD-style license that can be found in the LICENSE file.
20292 20292
20293 // WARNING: Do not edit - generated code. 20293 // WARNING: Do not edit - generated code.
20294 20294
20295 20295
20296 @DomName('Text') 20296 @DomName('Text')
20297 class Text extends CharacterData native "*Text" { 20297 class Text extends CharacterData native "Text" {
20298 factory Text(String data) => _TextFactoryProvider.createText(data); 20298 factory Text(String data) => _TextFactoryProvider.createText(data);
20299 20299
20300 @JSName('webkitInsertionParent') 20300 @JSName('webkitInsertionParent')
20301 @DomName('Text.webkitInsertionParent') 20301 @DomName('Text.webkitInsertionParent')
20302 @DocsEditable 20302 @DocsEditable
20303 @SupportedBrowser(SupportedBrowser.CHROME) 20303 @SupportedBrowser(SupportedBrowser.CHROME)
20304 @SupportedBrowser(SupportedBrowser.SAFARI) 20304 @SupportedBrowser(SupportedBrowser.SAFARI)
20305 @Experimental 20305 @Experimental
20306 final Node insertionParent; 20306 final Node insertionParent;
20307 20307
(...skipping 10 matching lines...) Expand all
20318 Text splitText(int offset) native; 20318 Text splitText(int offset) native;
20319 20319
20320 } 20320 }
20321 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20321 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20322 // for details. All rights reserved. Use of this source code is governed by a 20322 // for details. All rights reserved. Use of this source code is governed by a
20323 // BSD-style license that can be found in the LICENSE file. 20323 // BSD-style license that can be found in the LICENSE file.
20324 20324
20325 20325
20326 @DocsEditable 20326 @DocsEditable
20327 @DomName('HTMLTextAreaElement') 20327 @DomName('HTMLTextAreaElement')
20328 class TextAreaElement extends Element native "*HTMLTextAreaElement" { 20328 class TextAreaElement extends Element native "HTMLTextAreaElement" {
20329 20329
20330 @DomName('HTMLTextAreaElement.HTMLTextAreaElement') 20330 @DomName('HTMLTextAreaElement.HTMLTextAreaElement')
20331 @DocsEditable 20331 @DocsEditable
20332 factory TextAreaElement() => document.$dom_createElement("textarea"); 20332 factory TextAreaElement() => document.$dom_createElement("textarea");
20333 20333
20334 @DomName('HTMLTextAreaElement.autofocus') 20334 @DomName('HTMLTextAreaElement.autofocus')
20335 @DocsEditable 20335 @DocsEditable
20336 bool autofocus; 20336 bool autofocus;
20337 20337
20338 @DomName('HTMLTextAreaElement.cols') 20338 @DomName('HTMLTextAreaElement.cols')
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
20446 void setSelectionRange(int start, int end, [String direction]) native; 20446 void setSelectionRange(int start, int end, [String direction]) native;
20447 } 20447 }
20448 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 20448 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
20449 // for details. All rights reserved. Use of this source code is governed by a 20449 // for details. All rights reserved. Use of this source code is governed by a
20450 // BSD-style license that can be found in the LICENSE file. 20450 // BSD-style license that can be found in the LICENSE file.
20451 20451
20452 // WARNING: Do not edit - generated code. 20452 // WARNING: Do not edit - generated code.
20453 20453
20454 20454
20455 @DomName('TextEvent') 20455 @DomName('TextEvent')
20456 class TextEvent extends UIEvent native "*TextEvent" { 20456 class TextEvent extends UIEvent native "TextEvent" {
20457 factory TextEvent(String type, 20457 factory TextEvent(String type,
20458 {bool canBubble: false, bool cancelable: false, Window view, String data}) { 20458 {bool canBubble: false, bool cancelable: false, Window view, String data}) {
20459 if (view == null) { 20459 if (view == null) {
20460 view = window; 20460 view = window;
20461 } 20461 }
20462 var e = document.$dom_createEvent("TextEvent"); 20462 var e = document.$dom_createEvent("TextEvent");
20463 e.$dom_initTextEvent(type, canBubble, cancelable, view, data); 20463 e.$dom_initTextEvent(type, canBubble, cancelable, view, data);
20464 return e; 20464 return e;
20465 } 20465 }
20466 20466
20467 @DomName('TextEvent.data') 20467 @DomName('TextEvent.data')
20468 @DocsEditable 20468 @DocsEditable
20469 final String data; 20469 final String data;
20470 20470
20471 @JSName('initTextEvent') 20471 @JSName('initTextEvent')
20472 @DomName('TextEvent.initTextEvent') 20472 @DomName('TextEvent.initTextEvent')
20473 @DocsEditable 20473 @DocsEditable
20474 void $dom_initTextEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Window viewArg, String dataArg) native; 20474 void $dom_initTextEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Window viewArg, String dataArg) native;
20475 20475
20476 } 20476 }
20477 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20477 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20478 // for details. All rights reserved. Use of this source code is governed by a 20478 // for details. All rights reserved. Use of this source code is governed by a
20479 // BSD-style license that can be found in the LICENSE file. 20479 // BSD-style license that can be found in the LICENSE file.
20480 20480
20481 20481
20482 @DocsEditable 20482 @DocsEditable
20483 @DomName('TextMetrics') 20483 @DomName('TextMetrics')
20484 class TextMetrics native "*TextMetrics" { 20484 class TextMetrics native "TextMetrics" {
20485 20485
20486 @DomName('TextMetrics.width') 20486 @DomName('TextMetrics.width')
20487 @DocsEditable 20487 @DocsEditable
20488 final num width; 20488 final num width;
20489 } 20489 }
20490 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20490 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20491 // for details. All rights reserved. Use of this source code is governed by a 20491 // for details. All rights reserved. Use of this source code is governed by a
20492 // BSD-style license that can be found in the LICENSE file. 20492 // BSD-style license that can be found in the LICENSE file.
20493 20493
20494 20494
20495 @DocsEditable 20495 @DocsEditable
20496 @DomName('TextTrack') 20496 @DomName('TextTrack')
20497 class TextTrack extends EventTarget native "*TextTrack" { 20497 class TextTrack extends EventTarget native "TextTrack" {
20498 20498
20499 @DomName('TextTrack.cuechangeEvent') 20499 @DomName('TextTrack.cuechangeEvent')
20500 @DocsEditable 20500 @DocsEditable
20501 static const EventStreamProvider<Event> cueChangeEvent = const EventStreamProv ider<Event>('cuechange'); 20501 static const EventStreamProvider<Event> cueChangeEvent = const EventStreamProv ider<Event>('cuechange');
20502 20502
20503 @DomName('TextTrack.activeCues') 20503 @DomName('TextTrack.activeCues')
20504 @DocsEditable 20504 @DocsEditable
20505 final TextTrackCueList activeCues; 20505 final TextTrackCueList activeCues;
20506 20506
20507 @DomName('TextTrack.cues') 20507 @DomName('TextTrack.cues')
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
20550 @DocsEditable 20550 @DocsEditable
20551 Stream<Event> get onCueChange => cueChangeEvent.forTarget(this); 20551 Stream<Event> get onCueChange => cueChangeEvent.forTarget(this);
20552 } 20552 }
20553 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20553 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20554 // for details. All rights reserved. Use of this source code is governed by a 20554 // for details. All rights reserved. Use of this source code is governed by a
20555 // BSD-style license that can be found in the LICENSE file. 20555 // BSD-style license that can be found in the LICENSE file.
20556 20556
20557 20557
20558 @DocsEditable 20558 @DocsEditable
20559 @DomName('TextTrackCue') 20559 @DomName('TextTrackCue')
20560 class TextTrackCue extends EventTarget native "*TextTrackCue" { 20560 class TextTrackCue extends EventTarget native "TextTrackCue" {
20561 20561
20562 @DomName('TextTrackCue.enterEvent') 20562 @DomName('TextTrackCue.enterEvent')
20563 @DocsEditable 20563 @DocsEditable
20564 static const EventStreamProvider<Event> enterEvent = const EventStreamProvider <Event>('enter'); 20564 static const EventStreamProvider<Event> enterEvent = const EventStreamProvider <Event>('enter');
20565 20565
20566 @DomName('TextTrackCue.exitEvent') 20566 @DomName('TextTrackCue.exitEvent')
20567 @DocsEditable 20567 @DocsEditable
20568 static const EventStreamProvider<Event> exitEvent = const EventStreamProvider< Event>('exit'); 20568 static const EventStreamProvider<Event> exitEvent = const EventStreamProvider< Event>('exit');
20569 20569
20570 @DomName('TextTrackCue.TextTrackCue') 20570 @DomName('TextTrackCue.TextTrackCue')
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
20649 @DocsEditable 20649 @DocsEditable
20650 Stream<Event> get onExit => exitEvent.forTarget(this); 20650 Stream<Event> get onExit => exitEvent.forTarget(this);
20651 } 20651 }
20652 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20652 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20653 // for details. All rights reserved. Use of this source code is governed by a 20653 // for details. All rights reserved. Use of this source code is governed by a
20654 // BSD-style license that can be found in the LICENSE file. 20654 // BSD-style license that can be found in the LICENSE file.
20655 20655
20656 20656
20657 @DocsEditable 20657 @DocsEditable
20658 @DomName('TextTrackCueList') 20658 @DomName('TextTrackCueList')
20659 class TextTrackCueList implements List<TextTrackCue>, JavaScriptIndexingBehavior native "*TextTrackCueList" { 20659 class TextTrackCueList implements List<TextTrackCue>, JavaScriptIndexingBehavior native "TextTrackCueList" {
20660 20660
20661 @DomName('TextTrackCueList.length') 20661 @DomName('TextTrackCueList.length')
20662 @DocsEditable 20662 @DocsEditable
20663 int get length => JS("int", "#.length", this); 20663 int get length => JS("int", "#.length", this);
20664 20664
20665 TextTrackCue operator[](int index) => JS("TextTrackCue", "#[#]", this, index); 20665 TextTrackCue operator[](int index) => JS("TextTrackCue", "#[#]", this, index);
20666 20666
20667 void operator[]=(int index, TextTrackCue value) { 20667 void operator[]=(int index, TextTrackCue value) {
20668 throw new UnsupportedError("Cannot assign element of immutable List."); 20668 throw new UnsupportedError("Cannot assign element of immutable List.");
20669 } 20669 }
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
20870 @DocsEditable 20870 @DocsEditable
20871 TextTrackCue item(int index) native; 20871 TextTrackCue item(int index) native;
20872 } 20872 }
20873 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20873 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20874 // for details. All rights reserved. Use of this source code is governed by a 20874 // for details. All rights reserved. Use of this source code is governed by a
20875 // BSD-style license that can be found in the LICENSE file. 20875 // BSD-style license that can be found in the LICENSE file.
20876 20876
20877 20877
20878 @DocsEditable 20878 @DocsEditable
20879 @DomName('TextTrackList') 20879 @DomName('TextTrackList')
20880 class TextTrackList extends EventTarget implements JavaScriptIndexingBehavior, L ist<TextTrack> native "*TextTrackList" { 20880 class TextTrackList extends EventTarget implements JavaScriptIndexingBehavior, L ist<TextTrack> native "TextTrackList" {
20881 20881
20882 @DomName('TextTrackList.addtrackEvent') 20882 @DomName('TextTrackList.addtrackEvent')
20883 @DocsEditable 20883 @DocsEditable
20884 static const EventStreamProvider<TrackEvent> addTrackEvent = const EventStream Provider<TrackEvent>('addtrack'); 20884 static const EventStreamProvider<TrackEvent> addTrackEvent = const EventStream Provider<TrackEvent>('addtrack');
20885 20885
20886 @DomName('TextTrackList.length') 20886 @DomName('TextTrackList.length')
20887 @DocsEditable 20887 @DocsEditable
20888 int get length => JS("int", "#.length", this); 20888 int get length => JS("int", "#.length", this);
20889 20889
20890 TextTrack operator[](int index) => JS("TextTrack", "#[#]", this, index); 20890 TextTrack operator[](int index) => JS("TextTrack", "#[#]", this, index);
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
21109 @DocsEditable 21109 @DocsEditable
21110 Stream<TrackEvent> get onAddTrack => addTrackEvent.forTarget(this); 21110 Stream<TrackEvent> get onAddTrack => addTrackEvent.forTarget(this);
21111 } 21111 }
21112 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21112 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21113 // for details. All rights reserved. Use of this source code is governed by a 21113 // for details. All rights reserved. Use of this source code is governed by a
21114 // BSD-style license that can be found in the LICENSE file. 21114 // BSD-style license that can be found in the LICENSE file.
21115 21115
21116 21116
21117 @DocsEditable 21117 @DocsEditable
21118 @DomName('TimeRanges') 21118 @DomName('TimeRanges')
21119 class TimeRanges native "*TimeRanges" { 21119 class TimeRanges native "TimeRanges" {
21120 21120
21121 @DomName('TimeRanges.length') 21121 @DomName('TimeRanges.length')
21122 @DocsEditable 21122 @DocsEditable
21123 final int length; 21123 final int length;
21124 21124
21125 @DomName('TimeRanges.end') 21125 @DomName('TimeRanges.end')
21126 @DocsEditable 21126 @DocsEditable
21127 num end(int index) native; 21127 num end(int index) native;
21128 21128
21129 @DomName('TimeRanges.start') 21129 @DomName('TimeRanges.start')
21130 @DocsEditable 21130 @DocsEditable
21131 num start(int index) native; 21131 num start(int index) native;
21132 } 21132 }
21133 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21133 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21134 // for details. All rights reserved. Use of this source code is governed by a 21134 // for details. All rights reserved. Use of this source code is governed by a
21135 // BSD-style license that can be found in the LICENSE file. 21135 // BSD-style license that can be found in the LICENSE file.
21136 21136
21137 // WARNING: Do not edit - generated code. 21137 // WARNING: Do not edit - generated code.
21138 21138
21139 21139
21140 typedef void TimeoutHandler(); 21140 typedef void TimeoutHandler();
21141 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21141 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21142 // for details. All rights reserved. Use of this source code is governed by a 21142 // for details. All rights reserved. Use of this source code is governed by a
21143 // BSD-style license that can be found in the LICENSE file. 21143 // BSD-style license that can be found in the LICENSE file.
21144 21144
21145 21145
21146 @DocsEditable 21146 @DocsEditable
21147 @DomName('HTMLTitleElement') 21147 @DomName('HTMLTitleElement')
21148 class TitleElement extends Element native "*HTMLTitleElement" { 21148 class TitleElement extends Element native "HTMLTitleElement" {
21149 21149
21150 @DomName('HTMLTitleElement.HTMLTitleElement') 21150 @DomName('HTMLTitleElement.HTMLTitleElement')
21151 @DocsEditable 21151 @DocsEditable
21152 factory TitleElement() => document.$dom_createElement("title"); 21152 factory TitleElement() => document.$dom_createElement("title");
21153 } 21153 }
21154 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21154 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21155 // for details. All rights reserved. Use of this source code is governed by a 21155 // for details. All rights reserved. Use of this source code is governed by a
21156 // BSD-style license that can be found in the LICENSE file. 21156 // BSD-style license that can be found in the LICENSE file.
21157 21157
21158 21158
21159 @DocsEditable 21159 @DocsEditable
21160 @DomName('Touch') 21160 @DomName('Touch')
21161 class Touch native "*Touch" { 21161 class Touch native "Touch" {
21162 21162
21163 @JSName('clientX') 21163 @JSName('clientX')
21164 @DomName('Touch.clientX') 21164 @DomName('Touch.clientX')
21165 @DocsEditable 21165 @DocsEditable
21166 final int $dom_clientX; 21166 final int $dom_clientX;
21167 21167
21168 @JSName('clientY') 21168 @JSName('clientY')
21169 @DomName('Touch.clientY') 21169 @DomName('Touch.clientY')
21170 @DocsEditable 21170 @DocsEditable
21171 final int $dom_clientY; 21171 final int $dom_clientY;
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
21248 Point get screen => new Point($dom_screenX, $dom_screenY); 21248 Point get screen => new Point($dom_screenX, $dom_screenY);
21249 } 21249 }
21250 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 21250 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
21251 // for details. All rights reserved. Use of this source code is governed by a 21251 // for details. All rights reserved. Use of this source code is governed by a
21252 // BSD-style license that can be found in the LICENSE file. 21252 // BSD-style license that can be found in the LICENSE file.
21253 21253
21254 // WARNING: Do not edit - generated code. 21254 // WARNING: Do not edit - generated code.
21255 21255
21256 21256
21257 @DomName('TouchEvent') 21257 @DomName('TouchEvent')
21258 class TouchEvent extends UIEvent native "*TouchEvent" { 21258 class TouchEvent extends UIEvent native "TouchEvent" {
21259 factory TouchEvent(TouchList touches, TouchList targetTouches, 21259 factory TouchEvent(TouchList touches, TouchList targetTouches,
21260 TouchList changedTouches, String type, 21260 TouchList changedTouches, String type,
21261 {Window view, int screenX: 0, int screenY: 0, int clientX: 0, 21261 {Window view, int screenX: 0, int screenY: 0, int clientX: 0,
21262 int clientY: 0, bool ctrlKey: false, bool altKey: false, 21262 int clientY: 0, bool ctrlKey: false, bool altKey: false,
21263 bool shiftKey: false, bool metaKey: false}) { 21263 bool shiftKey: false, bool metaKey: false}) {
21264 if (view == null) { 21264 if (view == null) {
21265 view = window; 21265 view = window;
21266 } 21266 }
21267 var e = document.$dom_createEvent("TouchEvent"); 21267 var e = document.$dom_createEvent("TouchEvent");
21268 e.$dom_initTouchEvent(touches, targetTouches, changedTouches, type, view, 21268 e.$dom_initTouchEvent(touches, targetTouches, changedTouches, type, view,
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
21318 } 21318 }
21319 } 21319 }
21320 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 21320 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
21321 // for details. All rights reserved. Use of this source code is governed by a 21321 // for details. All rights reserved. Use of this source code is governed by a
21322 // BSD-style license that can be found in the LICENSE file. 21322 // BSD-style license that can be found in the LICENSE file.
21323 21323
21324 // WARNING: Do not edit - generated code. 21324 // WARNING: Do not edit - generated code.
21325 21325
21326 21326
21327 @DomName('TouchList') 21327 @DomName('TouchList')
21328 class TouchList implements JavaScriptIndexingBehavior, List<Touch> native "*Touc hList" { 21328 class TouchList implements JavaScriptIndexingBehavior, List<Touch> native "Touch List" {
21329 /// NB: This constructor likely does not work as you might expect it to! This 21329 /// NB: This constructor likely does not work as you might expect it to! This
21330 /// constructor will simply fail (returning null) if you are not on a device 21330 /// constructor will simply fail (returning null) if you are not on a device
21331 /// with touch enabled. See dartbug.com/8314. 21331 /// with touch enabled. See dartbug.com/8314.
21332 factory TouchList() => document.$dom_createTouchList(); 21332 factory TouchList() => document.$dom_createTouchList();
21333 21333
21334 /// Checks if this type is supported on the current platform. 21334 /// Checks if this type is supported on the current platform.
21335 static bool get supported => JS('bool', '!!document.createTouchList'); 21335 static bool get supported => JS('bool', '!!document.createTouchList');
21336 21336
21337 @DomName('TouchList.length') 21337 @DomName('TouchList.length')
21338 @DocsEditable 21338 @DocsEditable
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
21546 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21546 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21547 // for details. All rights reserved. Use of this source code is governed by a 21547 // for details. All rights reserved. Use of this source code is governed by a
21548 // BSD-style license that can be found in the LICENSE file. 21548 // BSD-style license that can be found in the LICENSE file.
21549 21549
21550 21550
21551 @DocsEditable 21551 @DocsEditable
21552 @DomName('HTMLTrackElement') 21552 @DomName('HTMLTrackElement')
21553 @SupportedBrowser(SupportedBrowser.CHROME) 21553 @SupportedBrowser(SupportedBrowser.CHROME)
21554 @SupportedBrowser(SupportedBrowser.IE, '10') 21554 @SupportedBrowser(SupportedBrowser.IE, '10')
21555 @SupportedBrowser(SupportedBrowser.SAFARI) 21555 @SupportedBrowser(SupportedBrowser.SAFARI)
21556 class TrackElement extends Element native "*HTMLTrackElement" { 21556 class TrackElement extends Element native "HTMLTrackElement" {
21557 21557
21558 @DomName('HTMLTrackElement.HTMLTrackElement') 21558 @DomName('HTMLTrackElement.HTMLTrackElement')
21559 @DocsEditable 21559 @DocsEditable
21560 factory TrackElement() => document.$dom_createElement("track"); 21560 factory TrackElement() => document.$dom_createElement("track");
21561 21561
21562 /// Checks if this type is supported on the current platform. 21562 /// Checks if this type is supported on the current platform.
21563 static bool get supported => Element.isTagSupported('track'); 21563 static bool get supported => Element.isTagSupported('track');
21564 21564
21565 static const int ERROR = 3; 21565 static const int ERROR = 3;
21566 21566
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
21599 @DocsEditable 21599 @DocsEditable
21600 final TextTrack track; 21600 final TextTrack track;
21601 } 21601 }
21602 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21602 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21603 // for details. All rights reserved. Use of this source code is governed by a 21603 // for details. All rights reserved. Use of this source code is governed by a
21604 // BSD-style license that can be found in the LICENSE file. 21604 // BSD-style license that can be found in the LICENSE file.
21605 21605
21606 21606
21607 @DocsEditable 21607 @DocsEditable
21608 @DomName('TrackEvent') 21608 @DomName('TrackEvent')
21609 class TrackEvent extends Event native "*TrackEvent" { 21609 class TrackEvent extends Event native "TrackEvent" {
21610 21610
21611 @DomName('TrackEvent.track') 21611 @DomName('TrackEvent.track')
21612 @DocsEditable 21612 @DocsEditable
21613 final Object track; 21613 final Object track;
21614 } 21614 }
21615 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21615 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21616 // for details. All rights reserved. Use of this source code is governed by a 21616 // for details. All rights reserved. Use of this source code is governed by a
21617 // BSD-style license that can be found in the LICENSE file. 21617 // BSD-style license that can be found in the LICENSE file.
21618 21618
21619 21619
21620 @DocsEditable 21620 @DocsEditable
21621 @DomName('TransitionEvent') 21621 @DomName('TransitionEvent')
21622 class TransitionEvent extends Event native "*TransitionEvent" { 21622 class TransitionEvent extends Event native "TransitionEvent,WebkitTransitionEven t" {
21623 21623
21624 @DomName('TransitionEvent.elapsedTime') 21624 @DomName('TransitionEvent.elapsedTime')
21625 @DocsEditable 21625 @DocsEditable
21626 final num elapsedTime; 21626 final num elapsedTime;
21627 21627
21628 @DomName('TransitionEvent.propertyName') 21628 @DomName('TransitionEvent.propertyName')
21629 @DocsEditable 21629 @DocsEditable
21630 final String propertyName; 21630 final String propertyName;
21631 21631
21632 @DomName('TransitionEvent.pseudoElement') 21632 @DomName('TransitionEvent.pseudoElement')
21633 @DocsEditable 21633 @DocsEditable
21634 final String pseudoElement; 21634 final String pseudoElement;
21635 } 21635 }
21636 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21636 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21637 // for details. All rights reserved. Use of this source code is governed by a 21637 // for details. All rights reserved. Use of this source code is governed by a
21638 // BSD-style license that can be found in the LICENSE file. 21638 // BSD-style license that can be found in the LICENSE file.
21639 21639
21640 21640
21641 @DocsEditable 21641 @DocsEditable
21642 @DomName('TreeWalker') 21642 @DomName('TreeWalker')
21643 class TreeWalker native "*TreeWalker" { 21643 class TreeWalker native "TreeWalker" {
21644 21644
21645 @DomName('TreeWalker.currentNode') 21645 @DomName('TreeWalker.currentNode')
21646 @DocsEditable 21646 @DocsEditable
21647 Node currentNode; 21647 Node currentNode;
21648 21648
21649 @DomName('TreeWalker.expandEntityReferences') 21649 @DomName('TreeWalker.expandEntityReferences')
21650 @DocsEditable 21650 @DocsEditable
21651 final bool expandEntityReferences; 21651 final bool expandEntityReferences;
21652 21652
21653 @DomName('TreeWalker.filter') 21653 @DomName('TreeWalker.filter')
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
21691 Node previousSibling() native; 21691 Node previousSibling() native;
21692 } 21692 }
21693 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21693 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21694 // for details. All rights reserved. Use of this source code is governed by a 21694 // for details. All rights reserved. Use of this source code is governed by a
21695 // BSD-style license that can be found in the LICENSE file. 21695 // BSD-style license that can be found in the LICENSE file.
21696 21696
21697 // WARNING: Do not edit - generated code. 21697 // WARNING: Do not edit - generated code.
21698 21698
21699 21699
21700 @DomName('UIEvent') 21700 @DomName('UIEvent')
21701 class UIEvent extends Event native "*UIEvent" { 21701 class UIEvent extends Event native "UIEvent" {
21702 // In JS, canBubble and cancelable are technically required parameters to 21702 // In JS, canBubble and cancelable are technically required parameters to
21703 // init*Event. In practice, though, if they aren't provided they simply 21703 // init*Event. In practice, though, if they aren't provided they simply
21704 // default to false (since that's Boolean(undefined)). 21704 // default to false (since that's Boolean(undefined)).
21705 // 21705 //
21706 // Contrary to JS, we default canBubble and cancelable to true, since that's 21706 // Contrary to JS, we default canBubble and cancelable to true, since that's
21707 // what people want most of the time anyway. 21707 // what people want most of the time anyway.
21708 factory UIEvent(String type, 21708 factory UIEvent(String type,
21709 {Window view, int detail: 0, bool canBubble: true, 21709 {Window view, int detail: 0, bool canBubble: true,
21710 bool cancelable: true}) { 21710 bool cancelable: true}) {
21711 if (view == null) { 21711 if (view == null) {
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
21786 @DomName('UIEvent.pageY') 21786 @DomName('UIEvent.pageY')
21787 Point get page => new Point($dom_pageX, $dom_pageY); 21787 Point get page => new Point($dom_pageX, $dom_pageY);
21788 } 21788 }
21789 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21789 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21790 // for details. All rights reserved. Use of this source code is governed by a 21790 // for details. All rights reserved. Use of this source code is governed by a
21791 // BSD-style license that can be found in the LICENSE file. 21791 // BSD-style license that can be found in the LICENSE file.
21792 21792
21793 21793
21794 @DocsEditable 21794 @DocsEditable
21795 @DomName('HTMLUListElement') 21795 @DomName('HTMLUListElement')
21796 class UListElement extends Element native "*HTMLUListElement" { 21796 class UListElement extends Element native "HTMLUListElement" {
21797 21797
21798 @DomName('HTMLUListElement.HTMLUListElement') 21798 @DomName('HTMLUListElement.HTMLUListElement')
21799 @DocsEditable 21799 @DocsEditable
21800 factory UListElement() => document.$dom_createElement("ul"); 21800 factory UListElement() => document.$dom_createElement("ul");
21801 } 21801 }
21802 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21802 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21803 // for details. All rights reserved. Use of this source code is governed by a 21803 // for details. All rights reserved. Use of this source code is governed by a
21804 // BSD-style license that can be found in the LICENSE file. 21804 // BSD-style license that can be found in the LICENSE file.
21805 21805
21806 21806
21807 @DocsEditable 21807 @DocsEditable
21808 @DomName('HTMLUnknownElement') 21808 @DomName('HTMLUnknownElement')
21809 class UnknownElement extends Element native "*HTMLUnknownElement" { 21809 class UnknownElement extends Element native "HTMLUnknownElement" {
21810 } 21810 }
21811 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21811 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21812 // for details. All rights reserved. Use of this source code is governed by a 21812 // for details. All rights reserved. Use of this source code is governed by a
21813 // BSD-style license that can be found in the LICENSE file. 21813 // BSD-style license that can be found in the LICENSE file.
21814 21814
21815 21815
21816 @DomName('URL') 21816 @DomName('URL')
21817 class Url native "*URL" { 21817 class Url native "URL" {
21818 21818
21819 static String createObjectUrl(blob_OR_source_OR_stream) => 21819 static String createObjectUrl(blob_OR_source_OR_stream) =>
21820 JS('String', 21820 JS('String',
21821 '(window.URL || window.webkitURL).createObjectURL(#)', 21821 '(window.URL || window.webkitURL).createObjectURL(#)',
21822 blob_OR_source_OR_stream); 21822 blob_OR_source_OR_stream);
21823 21823
21824 static void revokeObjectUrl(String objectUrl) => 21824 static void revokeObjectUrl(String objectUrl) =>
21825 JS('void', 21825 JS('void',
21826 '(window.URL || window.webkitURL).revokeObjectURL(#)', objectUrl); 21826 '(window.URL || window.webkitURL).revokeObjectURL(#)', objectUrl);
21827 21827
21828 } 21828 }
21829 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21829 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21830 // for details. All rights reserved. Use of this source code is governed by a 21830 // for details. All rights reserved. Use of this source code is governed by a
21831 // BSD-style license that can be found in the LICENSE file. 21831 // BSD-style license that can be found in the LICENSE file.
21832 21832
21833 21833
21834 @DocsEditable 21834 @DocsEditable
21835 @DomName('ValidityState') 21835 @DomName('ValidityState')
21836 class ValidityState native "*ValidityState" { 21836 class ValidityState native "ValidityState" {
21837 21837
21838 @DomName('ValidityState.badInput') 21838 @DomName('ValidityState.badInput')
21839 @DocsEditable 21839 @DocsEditable
21840 final bool badInput; 21840 final bool badInput;
21841 21841
21842 @DomName('ValidityState.customError') 21842 @DomName('ValidityState.customError')
21843 @DocsEditable 21843 @DocsEditable
21844 final bool customError; 21844 final bool customError;
21845 21845
21846 @DomName('ValidityState.patternMismatch') 21846 @DomName('ValidityState.patternMismatch')
(...skipping 27 matching lines...) Expand all
21874 @DomName('ValidityState.valueMissing') 21874 @DomName('ValidityState.valueMissing')
21875 @DocsEditable 21875 @DocsEditable
21876 final bool valueMissing; 21876 final bool valueMissing;
21877 } 21877 }
21878 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21878 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21879 // for details. All rights reserved. Use of this source code is governed by a 21879 // for details. All rights reserved. Use of this source code is governed by a
21880 // BSD-style license that can be found in the LICENSE file. 21880 // BSD-style license that can be found in the LICENSE file.
21881 21881
21882 21882
21883 @DomName('HTMLVideoElement') 21883 @DomName('HTMLVideoElement')
21884 class VideoElement extends MediaElement implements CanvasImageSource native "*HT MLVideoElement" { 21884 class VideoElement extends MediaElement implements CanvasImageSource native "HTM LVideoElement" {
21885 21885
21886 @DomName('HTMLVideoElement.HTMLVideoElement') 21886 @DomName('HTMLVideoElement.HTMLVideoElement')
21887 @DocsEditable 21887 @DocsEditable
21888 factory VideoElement() => document.$dom_createElement("video"); 21888 factory VideoElement() => document.$dom_createElement("video");
21889 21889
21890 @DomName('HTMLVideoElement.height') 21890 @DomName('HTMLVideoElement.height')
21891 @DocsEditable 21891 @DocsEditable
21892 int height; 21892 int height;
21893 21893
21894 @DomName('HTMLVideoElement.poster') 21894 @DomName('HTMLVideoElement.poster')
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
21980 21980
21981 21981
21982 typedef void VoidCallback(); 21982 typedef void VoidCallback();
21983 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21983 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21984 // for details. All rights reserved. Use of this source code is governed by a 21984 // for details. All rights reserved. Use of this source code is governed by a
21985 // BSD-style license that can be found in the LICENSE file. 21985 // BSD-style license that can be found in the LICENSE file.
21986 21986
21987 21987
21988 @DocsEditable 21988 @DocsEditable
21989 @DomName('WebKitCSSFilterRule') 21989 @DomName('WebKitCSSFilterRule')
21990 class WebKitCssFilterRule extends CssRule native "*WebKitCSSFilterRule" { 21990 class WebKitCssFilterRule extends CssRule native "WebKitCSSFilterRule" {
21991 21991
21992 @DomName('WebKitCSSFilterRule.style') 21992 @DomName('WebKitCSSFilterRule.style')
21993 @DocsEditable 21993 @DocsEditable
21994 final CssStyleDeclaration style; 21994 final CssStyleDeclaration style;
21995 } 21995 }
21996 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21996 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21997 // for details. All rights reserved. Use of this source code is governed by a 21997 // for details. All rights reserved. Use of this source code is governed by a
21998 // BSD-style license that can be found in the LICENSE file. 21998 // BSD-style license that can be found in the LICENSE file.
21999 21999
22000 22000
22001 @DocsEditable 22001 @DocsEditable
22002 @DomName('WebKitCSSRegionRule') 22002 @DomName('WebKitCSSRegionRule')
22003 class WebKitCssRegionRule extends CssRule native "*WebKitCSSRegionRule" { 22003 class WebKitCssRegionRule extends CssRule native "WebKitCSSRegionRule" {
22004 22004
22005 @DomName('WebKitCSSRegionRule.cssRules') 22005 @DomName('WebKitCSSRegionRule.cssRules')
22006 @DocsEditable 22006 @DocsEditable
22007 @Returns('_CssRuleList') 22007 @Returns('_CssRuleList')
22008 @Creates('_CssRuleList') 22008 @Creates('_CssRuleList')
22009 final List<CssRule> cssRules; 22009 final List<CssRule> cssRules;
22010 } 22010 }
22011 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22011 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22012 // for details. All rights reserved. Use of this source code is governed by a 22012 // for details. All rights reserved. Use of this source code is governed by a
22013 // BSD-style license that can be found in the LICENSE file. 22013 // BSD-style license that can be found in the LICENSE file.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
22046 * [WebSockets](http://www.dartlang.org/docs/library-tour/#html-websockets) 22046 * [WebSockets](http://www.dartlang.org/docs/library-tour/#html-websockets)
22047 * section of the library tour and 22047 * section of the library tour and
22048 * [Introducing WebSockets](http://www.html5rocks.com/en/tutorials/websockets/ba sics/), 22048 * [Introducing WebSockets](http://www.html5rocks.com/en/tutorials/websockets/ba sics/),
22049 * an HTML5Rocks.com tutorial. 22049 * an HTML5Rocks.com tutorial.
22050 */ 22050 */
22051 @DomName('WebSocket') 22051 @DomName('WebSocket')
22052 @SupportedBrowser(SupportedBrowser.CHROME) 22052 @SupportedBrowser(SupportedBrowser.CHROME)
22053 @SupportedBrowser(SupportedBrowser.FIREFOX) 22053 @SupportedBrowser(SupportedBrowser.FIREFOX)
22054 @SupportedBrowser(SupportedBrowser.IE, '10') 22054 @SupportedBrowser(SupportedBrowser.IE, '10')
22055 @SupportedBrowser(SupportedBrowser.SAFARI) 22055 @SupportedBrowser(SupportedBrowser.SAFARI)
22056 class WebSocket extends EventTarget native "*WebSocket" { 22056 class WebSocket extends EventTarget native "WebSocket" {
22057 22057
22058 @DomName('WebSocket.closeEvent') 22058 @DomName('WebSocket.closeEvent')
22059 @DocsEditable 22059 @DocsEditable
22060 static const EventStreamProvider<CloseEvent> closeEvent = const EventStreamPro vider<CloseEvent>('close'); 22060 static const EventStreamProvider<CloseEvent> closeEvent = const EventStreamPro vider<CloseEvent>('close');
22061 22061
22062 @DomName('WebSocket.errorEvent') 22062 @DomName('WebSocket.errorEvent')
22063 @DocsEditable 22063 @DocsEditable
22064 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error'); 22064 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error');
22065 22065
22066 @DomName('WebSocket.messageEvent') 22066 @DomName('WebSocket.messageEvent')
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
22166 @DomName('WebSocket.onopen') 22166 @DomName('WebSocket.onopen')
22167 @DocsEditable 22167 @DocsEditable
22168 Stream<Event> get onOpen => openEvent.forTarget(this); 22168 Stream<Event> get onOpen => openEvent.forTarget(this);
22169 } 22169 }
22170 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22170 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22171 // for details. All rights reserved. Use of this source code is governed by a 22171 // for details. All rights reserved. Use of this source code is governed by a
22172 // BSD-style license that can be found in the LICENSE file. 22172 // BSD-style license that can be found in the LICENSE file.
22173 22173
22174 22174
22175 @DomName('WheelEvent') 22175 @DomName('WheelEvent')
22176 class WheelEvent extends MouseEvent native "*WheelEvent" { 22176 class WheelEvent extends MouseEvent native "WheelEvent,MouseWheelEvent,MouseScro llEvent" {
22177 22177
22178 factory WheelEvent(String type, 22178 factory WheelEvent(String type,
22179 {Window view, int deltaX: 0, int deltaY: 0, 22179 {Window view, int deltaX: 0, int deltaY: 0,
22180 int detail: 0, int screenX: 0, int screenY: 0, int clientX: 0, 22180 int detail: 0, int screenX: 0, int screenY: 0, int clientX: 0,
22181 int clientY: 0, int button: 0, bool canBubble: true, 22181 int clientY: 0, int button: 0, bool canBubble: true,
22182 bool cancelable: true, bool ctrlKey: false, bool altKey: false, 22182 bool cancelable: true, bool ctrlKey: false, bool altKey: false,
22183 bool shiftKey: false, bool metaKey: false, EventTarget relatedTarget}) { 22183 bool shiftKey: false, bool metaKey: false, EventTarget relatedTarget}) {
22184 22184
22185 if (view == null) { 22185 if (view == null) {
22186 view = window; 22186 view = window;
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
22398 int deltaZ, 22398 int deltaZ,
22399 int deltaMode) native; 22399 int deltaMode) native;
22400 22400
22401 } 22401 }
22402 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22402 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22403 // for details. All rights reserved. Use of this source code is governed by a 22403 // for details. All rights reserved. Use of this source code is governed by a
22404 // BSD-style license that can be found in the LICENSE file. 22404 // BSD-style license that can be found in the LICENSE file.
22405 22405
22406 22406
22407 @DomName('Window') 22407 @DomName('Window')
22408 class Window extends EventTarget implements WindowBase native "@*DOMWindow" { 22408 class Window extends EventTarget implements WindowBase native "Window,DOMWindow" {
22409 22409
22410 /** 22410 /**
22411 * Executes a [callback] after the immediate execution stack has completed. 22411 * Executes a [callback] after the immediate execution stack has completed.
22412 * 22412 *
22413 * This differs from using Timer.run(callback) 22413 * This differs from using Timer.run(callback)
22414 * because Timer will run in about 4-15 milliseconds, depending on browser, 22414 * because Timer will run in about 4-15 milliseconds, depending on browser,
22415 * depending on load. [setImmediate], in contrast, makes browser-specific 22415 * depending on load. [setImmediate], in contrast, makes browser-specific
22416 * changes in behavior to attempt to run immediately after the current 22416 * changes in behavior to attempt to run immediately after the current
22417 * frame unwinds, causing the future to complete after all processing has 22417 * frame unwinds, causing the future to complete after all processing has
22418 * completed for the current event, but before any subsequent events. 22418 * completed for the current event, but before any subsequent events.
(...skipping 1007 matching lines...) Expand 10 before | Expand all | Expand 10 after
23426 // for details. All rights reserved. Use of this source code is governed by a 23426 // for details. All rights reserved. Use of this source code is governed by a
23427 // BSD-style license that can be found in the LICENSE file. 23427 // BSD-style license that can be found in the LICENSE file.
23428 23428
23429 23429
23430 @DocsEditable 23430 @DocsEditable
23431 @DomName('Worker') 23431 @DomName('Worker')
23432 @SupportedBrowser(SupportedBrowser.CHROME) 23432 @SupportedBrowser(SupportedBrowser.CHROME)
23433 @SupportedBrowser(SupportedBrowser.FIREFOX) 23433 @SupportedBrowser(SupportedBrowser.FIREFOX)
23434 @SupportedBrowser(SupportedBrowser.IE, '10') 23434 @SupportedBrowser(SupportedBrowser.IE, '10')
23435 @SupportedBrowser(SupportedBrowser.SAFARI) 23435 @SupportedBrowser(SupportedBrowser.SAFARI)
23436 class Worker extends AbstractWorker native "*Worker" { 23436 class Worker extends AbstractWorker native "Worker" {
23437 23437
23438 @DomName('Worker.messageEvent') 23438 @DomName('Worker.messageEvent')
23439 @DocsEditable 23439 @DocsEditable
23440 static const EventStreamProvider<MessageEvent> messageEvent = const EventStrea mProvider<MessageEvent>('message'); 23440 static const EventStreamProvider<MessageEvent> messageEvent = const EventStrea mProvider<MessageEvent>('message');
23441 23441
23442 @DomName('Worker.Worker') 23442 @DomName('Worker.Worker')
23443 @DocsEditable 23443 @DocsEditable
23444 factory Worker(String scriptUrl) { 23444 factory Worker(String scriptUrl) {
23445 return Worker._create_1(scriptUrl); 23445 return Worker._create_1(scriptUrl);
23446 } 23446 }
(...skipping 14 matching lines...) Expand all
23461 @DocsEditable 23461 @DocsEditable
23462 Stream<MessageEvent> get onMessage => messageEvent.forTarget(this); 23462 Stream<MessageEvent> get onMessage => messageEvent.forTarget(this);
23463 } 23463 }
23464 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23464 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23465 // for details. All rights reserved. Use of this source code is governed by a 23465 // for details. All rights reserved. Use of this source code is governed by a
23466 // BSD-style license that can be found in the LICENSE file. 23466 // BSD-style license that can be found in the LICENSE file.
23467 23467
23468 23468
23469 @DocsEditable 23469 @DocsEditable
23470 @DomName('XPathEvaluator') 23470 @DomName('XPathEvaluator')
23471 class XPathEvaluator native "*XPathEvaluator" { 23471 class XPathEvaluator native "XPathEvaluator" {
23472 23472
23473 @DomName('XPathEvaluator.XPathEvaluator') 23473 @DomName('XPathEvaluator.XPathEvaluator')
23474 @DocsEditable 23474 @DocsEditable
23475 factory XPathEvaluator() { 23475 factory XPathEvaluator() {
23476 return XPathEvaluator._create_1(); 23476 return XPathEvaluator._create_1();
23477 } 23477 }
23478 static XPathEvaluator _create_1() => JS('XPathEvaluator', 'new XPathEvaluator( )'); 23478 static XPathEvaluator _create_1() => JS('XPathEvaluator', 'new XPathEvaluator( )');
23479 23479
23480 @DomName('XPathEvaluator.createExpression') 23480 @DomName('XPathEvaluator.createExpression')
23481 @DocsEditable 23481 @DocsEditable
23482 XPathExpression createExpression(String expression, XPathNSResolver resolver) native; 23482 XPathExpression createExpression(String expression, XPathNSResolver resolver) native;
23483 23483
23484 @DomName('XPathEvaluator.createNSResolver') 23484 @DomName('XPathEvaluator.createNSResolver')
23485 @DocsEditable 23485 @DocsEditable
23486 XPathNSResolver createNSResolver(Node nodeResolver) native; 23486 XPathNSResolver createNSResolver(Node nodeResolver) native;
23487 23487
23488 @DomName('XPathEvaluator.evaluate') 23488 @DomName('XPathEvaluator.evaluate')
23489 @DocsEditable 23489 @DocsEditable
23490 XPathResult evaluate(String expression, Node contextNode, XPathNSResolver reso lver, int type, XPathResult inResult) native; 23490 XPathResult evaluate(String expression, Node contextNode, XPathNSResolver reso lver, int type, XPathResult inResult) native;
23491 } 23491 }
23492 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23492 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23493 // for details. All rights reserved. Use of this source code is governed by a 23493 // for details. All rights reserved. Use of this source code is governed by a
23494 // BSD-style license that can be found in the LICENSE file. 23494 // BSD-style license that can be found in the LICENSE file.
23495 23495
23496 23496
23497 @DocsEditable 23497 @DocsEditable
23498 @DomName('XPathException') 23498 @DomName('XPathException')
23499 class XPathException native "*XPathException" { 23499 class XPathException native "XPathException" {
23500 23500
23501 static const int INVALID_EXPRESSION_ERR = 51; 23501 static const int INVALID_EXPRESSION_ERR = 51;
23502 23502
23503 static const int TYPE_ERR = 52; 23503 static const int TYPE_ERR = 52;
23504 23504
23505 @DomName('XPathException.code') 23505 @DomName('XPathException.code')
23506 @DocsEditable 23506 @DocsEditable
23507 final int code; 23507 final int code;
23508 23508
23509 @DomName('XPathException.message') 23509 @DomName('XPathException.message')
23510 @DocsEditable 23510 @DocsEditable
23511 final String message; 23511 final String message;
23512 23512
23513 @DomName('XPathException.name') 23513 @DomName('XPathException.name')
23514 @DocsEditable 23514 @DocsEditable
23515 final String name; 23515 final String name;
23516 23516
23517 @DomName('XPathException.toString') 23517 @DomName('XPathException.toString')
23518 @DocsEditable 23518 @DocsEditable
23519 String toString() native; 23519 String toString() native;
23520 } 23520 }
23521 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23521 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23522 // for details. All rights reserved. Use of this source code is governed by a 23522 // for details. All rights reserved. Use of this source code is governed by a
23523 // BSD-style license that can be found in the LICENSE file. 23523 // BSD-style license that can be found in the LICENSE file.
23524 23524
23525 23525
23526 @DocsEditable 23526 @DocsEditable
23527 @DomName('XPathExpression') 23527 @DomName('XPathExpression')
23528 class XPathExpression native "*XPathExpression" { 23528 class XPathExpression native "XPathExpression" {
23529 23529
23530 @DomName('XPathExpression.evaluate') 23530 @DomName('XPathExpression.evaluate')
23531 @DocsEditable 23531 @DocsEditable
23532 XPathResult evaluate(Node contextNode, int type, XPathResult inResult) native; 23532 XPathResult evaluate(Node contextNode, int type, XPathResult inResult) native;
23533 } 23533 }
23534 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23534 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23535 // for details. All rights reserved. Use of this source code is governed by a 23535 // for details. All rights reserved. Use of this source code is governed by a
23536 // BSD-style license that can be found in the LICENSE file. 23536 // BSD-style license that can be found in the LICENSE file.
23537 23537
23538 23538
23539 @DocsEditable 23539 @DocsEditable
23540 @DomName('XPathNSResolver') 23540 @DomName('XPathNSResolver')
23541 class XPathNSResolver native "*XPathNSResolver" { 23541 class XPathNSResolver native "XPathNSResolver" {
23542 23542
23543 @JSName('lookupNamespaceURI') 23543 @JSName('lookupNamespaceURI')
23544 @DomName('XPathNSResolver.lookupNamespaceURI') 23544 @DomName('XPathNSResolver.lookupNamespaceURI')
23545 @DocsEditable 23545 @DocsEditable
23546 String lookupNamespaceUri(String prefix) native; 23546 String lookupNamespaceUri(String prefix) native;
23547 } 23547 }
23548 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23548 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23549 // for details. All rights reserved. Use of this source code is governed by a 23549 // for details. All rights reserved. Use of this source code is governed by a
23550 // BSD-style license that can be found in the LICENSE file. 23550 // BSD-style license that can be found in the LICENSE file.
23551 23551
23552 23552
23553 @DocsEditable 23553 @DocsEditable
23554 @DomName('XPathResult') 23554 @DomName('XPathResult')
23555 class XPathResult native "*XPathResult" { 23555 class XPathResult native "XPathResult" {
23556 23556
23557 static const int ANY_TYPE = 0; 23557 static const int ANY_TYPE = 0;
23558 23558
23559 static const int ANY_UNORDERED_NODE_TYPE = 8; 23559 static const int ANY_UNORDERED_NODE_TYPE = 8;
23560 23560
23561 static const int BOOLEAN_TYPE = 3; 23561 static const int BOOLEAN_TYPE = 3;
23562 23562
23563 static const int FIRST_ORDERED_NODE_TYPE = 9; 23563 static const int FIRST_ORDERED_NODE_TYPE = 9;
23564 23564
23565 static const int NUMBER_TYPE = 1; 23565 static const int NUMBER_TYPE = 1;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
23610 @DocsEditable 23610 @DocsEditable
23611 Node snapshotItem(int index) native; 23611 Node snapshotItem(int index) native;
23612 } 23612 }
23613 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23613 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23614 // for details. All rights reserved. Use of this source code is governed by a 23614 // for details. All rights reserved. Use of this source code is governed by a
23615 // BSD-style license that can be found in the LICENSE file. 23615 // BSD-style license that can be found in the LICENSE file.
23616 23616
23617 23617
23618 @DocsEditable 23618 @DocsEditable
23619 @DomName('XMLSerializer') 23619 @DomName('XMLSerializer')
23620 class XmlSerializer native "*XMLSerializer" { 23620 class XmlSerializer native "XMLSerializer" {
23621 23621
23622 @DomName('XMLSerializer.XMLSerializer') 23622 @DomName('XMLSerializer.XMLSerializer')
23623 @DocsEditable 23623 @DocsEditable
23624 factory XmlSerializer() { 23624 factory XmlSerializer() {
23625 return XmlSerializer._create_1(); 23625 return XmlSerializer._create_1();
23626 } 23626 }
23627 static XmlSerializer _create_1() => JS('XmlSerializer', 'new XMLSerializer()') ; 23627 static XmlSerializer _create_1() => JS('XmlSerializer', 'new XMLSerializer()') ;
23628 23628
23629 @DomName('XMLSerializer.serializeToString') 23629 @DomName('XMLSerializer.serializeToString')
23630 @DocsEditable 23630 @DocsEditable
23631 String serializeToString(Node node) native; 23631 String serializeToString(Node node) native;
23632 } 23632 }
23633 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23633 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23634 // for details. All rights reserved. Use of this source code is governed by a 23634 // for details. All rights reserved. Use of this source code is governed by a
23635 // BSD-style license that can be found in the LICENSE file. 23635 // BSD-style license that can be found in the LICENSE file.
23636 23636
23637 23637
23638 @DocsEditable 23638 @DocsEditable
23639 @DomName('XSLTProcessor') 23639 @DomName('XSLTProcessor')
23640 @SupportedBrowser(SupportedBrowser.CHROME) 23640 @SupportedBrowser(SupportedBrowser.CHROME)
23641 @SupportedBrowser(SupportedBrowser.FIREFOX) 23641 @SupportedBrowser(SupportedBrowser.FIREFOX)
23642 @SupportedBrowser(SupportedBrowser.SAFARI) 23642 @SupportedBrowser(SupportedBrowser.SAFARI)
23643 class XsltProcessor native "*XSLTProcessor" { 23643 class XsltProcessor native "XSLTProcessor" {
23644 23644
23645 @DomName('XSLTProcessor.XSLTProcessor') 23645 @DomName('XSLTProcessor.XSLTProcessor')
23646 @DocsEditable 23646 @DocsEditable
23647 factory XsltProcessor() { 23647 factory XsltProcessor() {
23648 return XsltProcessor._create_1(); 23648 return XsltProcessor._create_1();
23649 } 23649 }
23650 static XsltProcessor _create_1() => JS('XsltProcessor', 'new XSLTProcessor()') ; 23650 static XsltProcessor _create_1() => JS('XsltProcessor', 'new XSLTProcessor()') ;
23651 23651
23652 /// Checks if this type is supported on the current platform. 23652 /// Checks if this type is supported on the current platform.
23653 static bool get supported => JS('bool', '!!(window.XSLTProcessor)'); 23653 static bool get supported => JS('bool', '!!(window.XSLTProcessor)');
(...skipping 30 matching lines...) Expand all
23684 @DocsEditable 23684 @DocsEditable
23685 DocumentFragment transformToFragment(Node source, Document docVal) native; 23685 DocumentFragment transformToFragment(Node source, Document docVal) native;
23686 } 23686 }
23687 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23687 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23688 // for details. All rights reserved. Use of this source code is governed by a 23688 // for details. All rights reserved. Use of this source code is governed by a
23689 // BSD-style license that can be found in the LICENSE file. 23689 // BSD-style license that can be found in the LICENSE file.
23690 23690
23691 23691
23692 @DocsEditable 23692 @DocsEditable
23693 @DomName('CSSPrimitiveValue') 23693 @DomName('CSSPrimitiveValue')
23694 abstract class _CSSPrimitiveValue extends _CSSValue native "*CSSPrimitiveValue" { 23694 abstract class _CSSPrimitiveValue extends _CSSValue native "CSSPrimitiveValue" {
23695 } 23695 }
23696 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23696 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23697 // for details. All rights reserved. Use of this source code is governed by a 23697 // for details. All rights reserved. Use of this source code is governed by a
23698 // BSD-style license that can be found in the LICENSE file. 23698 // BSD-style license that can be found in the LICENSE file.
23699 23699
23700 23700
23701 @DocsEditable 23701 @DocsEditable
23702 @DomName('CSSValue') 23702 @DomName('CSSValue')
23703 abstract class _CSSValue native "*CSSValue" { 23703 abstract class _CSSValue native "CSSValue" {
23704 } 23704 }
23705 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 23705 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
23706 // for details. All rights reserved. Use of this source code is governed by a 23706 // for details. All rights reserved. Use of this source code is governed by a
23707 // BSD-style license that can be found in the LICENSE file. 23707 // BSD-style license that can be found in the LICENSE file.
23708 23708
23709 23709
23710 @DocsEditable 23710 @DocsEditable
23711 @DomName('ClientRect') 23711 @DomName('ClientRect')
23712 class _ClientRect implements Rect native "*ClientRect" { 23712 class _ClientRect implements Rect native "ClientRect" {
23713 23713
23714 // NOTE! All code below should be common with Rect. 23714 // NOTE! All code below should be common with Rect.
23715 // TODO(blois): implement with mixins when available. 23715 // TODO(blois): implement with mixins when available.
23716 23716
23717 String toString() { 23717 String toString() {
23718 return '($left, $top, $width, $height)'; 23718 return '($left, $top, $width, $height)';
23719 } 23719 }
23720 23720
23721 bool operator ==(other) { 23721 bool operator ==(other) {
23722 if (other is !Rect) return false; 23722 if (other is !Rect) return false;
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
23827 @DocsEditable 23827 @DocsEditable
23828 final num width; 23828 final num width;
23829 } 23829 }
23830 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23830 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23831 // for details. All rights reserved. Use of this source code is governed by a 23831 // for details. All rights reserved. Use of this source code is governed by a
23832 // BSD-style license that can be found in the LICENSE file. 23832 // BSD-style license that can be found in the LICENSE file.
23833 23833
23834 23834
23835 @DocsEditable 23835 @DocsEditable
23836 @DomName('ClientRectList') 23836 @DomName('ClientRectList')
23837 class _ClientRectList implements JavaScriptIndexingBehavior, List<Rect> native " *ClientRectList" { 23837 class _ClientRectList implements JavaScriptIndexingBehavior, List<Rect> native " ClientRectList" {
23838 23838
23839 @DomName('ClientRectList.length') 23839 @DomName('ClientRectList.length')
23840 @DocsEditable 23840 @DocsEditable
23841 int get length => JS("int", "#.length", this); 23841 int get length => JS("int", "#.length", this);
23842 23842
23843 Rect operator[](int index) => JS("Rect", "#[#]", this, index); 23843 Rect operator[](int index) => JS("Rect", "#[#]", this, index);
23844 23844
23845 void operator[]=(int index, Rect value) { 23845 void operator[]=(int index, Rect value) {
23846 throw new UnsupportedError("Cannot assign element of immutable List."); 23846 throw new UnsupportedError("Cannot assign element of immutable List.");
23847 } 23847 }
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
24044 @DocsEditable 24044 @DocsEditable
24045 Rect item(int index) native; 24045 Rect item(int index) native;
24046 } 24046 }
24047 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 24047 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24048 // for details. All rights reserved. Use of this source code is governed by a 24048 // for details. All rights reserved. Use of this source code is governed by a
24049 // BSD-style license that can be found in the LICENSE file. 24049 // BSD-style license that can be found in the LICENSE file.
24050 24050
24051 24051
24052 @DocsEditable 24052 @DocsEditable
24053 @DomName('Counter') 24053 @DomName('Counter')
24054 abstract class _Counter native "*Counter" { 24054 abstract class _Counter native "Counter" {
24055 } 24055 }
24056 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 24056 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24057 // for details. All rights reserved. Use of this source code is governed by a 24057 // for details. All rights reserved. Use of this source code is governed by a
24058 // BSD-style license that can be found in the LICENSE file. 24058 // BSD-style license that can be found in the LICENSE file.
24059 24059
24060 24060
24061 @DocsEditable 24061 @DocsEditable
24062 @DomName('CSSRuleList') 24062 @DomName('CSSRuleList')
24063 class _CssRuleList implements JavaScriptIndexingBehavior, List<CssRule> native " *CSSRuleList" { 24063 class _CssRuleList implements JavaScriptIndexingBehavior, List<CssRule> native " CSSRuleList" {
24064 24064
24065 @DomName('CSSRuleList.length') 24065 @DomName('CSSRuleList.length')
24066 @DocsEditable 24066 @DocsEditable
24067 int get length => JS("int", "#.length", this); 24067 int get length => JS("int", "#.length", this);
24068 24068
24069 CssRule operator[](int index) => JS("CssRule", "#[#]", this, index); 24069 CssRule operator[](int index) => JS("CssRule", "#[#]", this, index);
24070 24070
24071 void operator[]=(int index, CssRule value) { 24071 void operator[]=(int index, CssRule value) {
24072 throw new UnsupportedError("Cannot assign element of immutable List."); 24072 throw new UnsupportedError("Cannot assign element of immutable List.");
24073 } 24073 }
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
24270 @DocsEditable 24270 @DocsEditable
24271 CssRule item(int index) native; 24271 CssRule item(int index) native;
24272 } 24272 }
24273 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 24273 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24274 // for details. All rights reserved. Use of this source code is governed by a 24274 // for details. All rights reserved. Use of this source code is governed by a
24275 // BSD-style license that can be found in the LICENSE file. 24275 // BSD-style license that can be found in the LICENSE file.
24276 24276
24277 24277
24278 @DocsEditable 24278 @DocsEditable
24279 @DomName('CSSValueList') 24279 @DomName('CSSValueList')
24280 class _CssValueList extends _CSSValue implements JavaScriptIndexingBehavior, Lis t<_CSSValue> native "*CSSValueList" { 24280 class _CssValueList extends _CSSValue implements JavaScriptIndexingBehavior, Lis t<_CSSValue> native "CSSValueList" {
24281 24281
24282 @DomName('CSSValueList.length') 24282 @DomName('CSSValueList.length')
24283 @DocsEditable 24283 @DocsEditable
24284 int get length => JS("int", "#.length", this); 24284 int get length => JS("int", "#.length", this);
24285 24285
24286 _CSSValue operator[](int index) => JS("_CSSValue", "#[#]", this, index); 24286 _CSSValue operator[](int index) => JS("_CSSValue", "#[#]", this, index);
24287 24287
24288 void operator[]=(int index, _CSSValue value) { 24288 void operator[]=(int index, _CSSValue value) {
24289 throw new UnsupportedError("Cannot assign element of immutable List."); 24289 throw new UnsupportedError("Cannot assign element of immutable List.");
24290 } 24290 }
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
24489 } 24489 }
24490 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 24490 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24491 // for details. All rights reserved. Use of this source code is governed by a 24491 // for details. All rights reserved. Use of this source code is governed by a
24492 // BSD-style license that can be found in the LICENSE file. 24492 // BSD-style license that can be found in the LICENSE file.
24493 24493
24494 24494
24495 @DocsEditable 24495 @DocsEditable
24496 @DomName('DOMFileSystemSync') 24496 @DomName('DOMFileSystemSync')
24497 @SupportedBrowser(SupportedBrowser.CHROME) 24497 @SupportedBrowser(SupportedBrowser.CHROME)
24498 @Experimental 24498 @Experimental
24499 abstract class _DOMFileSystemSync native "*DOMFileSystemSync" { 24499 abstract class _DOMFileSystemSync native "DOMFileSystemSync" {
24500 } 24500 }
24501 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 24501 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24502 // for details. All rights reserved. Use of this source code is governed by a 24502 // for details. All rights reserved. Use of this source code is governed by a
24503 // BSD-style license that can be found in the LICENSE file. 24503 // BSD-style license that can be found in the LICENSE file.
24504 24504
24505 24505
24506 @DocsEditable 24506 @DocsEditable
24507 @DomName('DatabaseSync') 24507 @DomName('DatabaseSync')
24508 @SupportedBrowser(SupportedBrowser.CHROME) 24508 @SupportedBrowser(SupportedBrowser.CHROME)
24509 @SupportedBrowser(SupportedBrowser.SAFARI) 24509 @SupportedBrowser(SupportedBrowser.SAFARI)
24510 @Experimental 24510 @Experimental
24511 abstract class _DatabaseSync native "*DatabaseSync" { 24511 abstract class _DatabaseSync native "DatabaseSync" {
24512 } 24512 }
24513 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 24513 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24514 // for details. All rights reserved. Use of this source code is governed by a 24514 // for details. All rights reserved. Use of this source code is governed by a
24515 // BSD-style license that can be found in the LICENSE file. 24515 // BSD-style license that can be found in the LICENSE file.
24516 24516
24517 24517
24518 @DocsEditable 24518 @DocsEditable
24519 @DomName('DedicatedWorkerContext') 24519 @DomName('DedicatedWorkerContext')
24520 abstract class _DedicatedWorkerContext extends _WorkerContext native "*Dedicated WorkerContext" { 24520 abstract class _DedicatedWorkerContext extends _WorkerContext native "DedicatedW orkerContext" {
24521 } 24521 }
24522 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 24522 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24523 // for details. All rights reserved. Use of this source code is governed by a 24523 // for details. All rights reserved. Use of this source code is governed by a
24524 // BSD-style license that can be found in the LICENSE file. 24524 // BSD-style license that can be found in the LICENSE file.
24525 24525
24526 24526
24527 @DocsEditable 24527 @DocsEditable
24528 @DomName('DirectoryEntrySync') 24528 @DomName('DirectoryEntrySync')
24529 abstract class _DirectoryEntrySync extends _EntrySync native "*DirectoryEntrySyn c" { 24529 abstract class _DirectoryEntrySync extends _EntrySync native "DirectoryEntrySync " {
24530 } 24530 }
24531 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 24531 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24532 // for details. All rights reserved. Use of this source code is governed by a 24532 // for details. All rights reserved. Use of this source code is governed by a
24533 // BSD-style license that can be found in the LICENSE file. 24533 // BSD-style license that can be found in the LICENSE file.
24534 24534
24535 24535
24536 @DocsEditable 24536 @DocsEditable
24537 @DomName('DirectoryReaderSync') 24537 @DomName('DirectoryReaderSync')
24538 abstract class _DirectoryReaderSync native "*DirectoryReaderSync" { 24538 abstract class _DirectoryReaderSync native "DirectoryReaderSync" {
24539 } 24539 }
24540 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 24540 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24541 // for details. All rights reserved. Use of this source code is governed by a 24541 // for details. All rights reserved. Use of this source code is governed by a
24542 // BSD-style license that can be found in the LICENSE file. 24542 // BSD-style license that can be found in the LICENSE file.
24543 24543
24544 24544
24545 @DocsEditable 24545 @DocsEditable
24546 @DomName('WebKitPoint') 24546 @DomName('WebKitPoint')
24547 @SupportedBrowser(SupportedBrowser.CHROME) 24547 @SupportedBrowser(SupportedBrowser.CHROME)
24548 @SupportedBrowser(SupportedBrowser.SAFARI) 24548 @SupportedBrowser(SupportedBrowser.SAFARI)
24549 @Experimental 24549 @Experimental
24550 class _DomPoint native "*WebKitPoint" { 24550 class _DomPoint native "WebKitPoint" {
24551 24551
24552 @DomName('DOMPoint.DOMPoint') 24552 @DomName('DOMPoint.DOMPoint')
24553 @DocsEditable 24553 @DocsEditable
24554 factory _DomPoint(num x, num y) { 24554 factory _DomPoint(num x, num y) {
24555 return _DomPoint._create_1(x, y); 24555 return _DomPoint._create_1(x, y);
24556 } 24556 }
24557 static _DomPoint _create_1(x, y) => JS('_DomPoint', 'new WebKitPoint(#,#)', x, y); 24557 static _DomPoint _create_1(x, y) => JS('_DomPoint', 'new WebKitPoint(#,#)', x, y);
24558 24558
24559 /// Checks if this type is supported on the current platform. 24559 /// Checks if this type is supported on the current platform.
24560 static bool get supported => JS('bool', '!!(window.WebKitPoint)'); 24560 static bool get supported => JS('bool', '!!(window.WebKitPoint)');
24561 24561
24562 @DomName('DOMPoint.x') 24562 @DomName('DOMPoint.x')
24563 @DocsEditable 24563 @DocsEditable
24564 num x; 24564 num x;
24565 24565
24566 @DomName('DOMPoint.y') 24566 @DomName('DOMPoint.y')
24567 @DocsEditable 24567 @DocsEditable
24568 num y; 24568 num y;
24569 } 24569 }
24570 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 24570 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24571 // for details. All rights reserved. Use of this source code is governed by a 24571 // for details. All rights reserved. Use of this source code is governed by a
24572 // BSD-style license that can be found in the LICENSE file. 24572 // BSD-style license that can be found in the LICENSE file.
24573 24573
24574 24574
24575 @DocsEditable 24575 @DocsEditable
24576 @DomName('EntryArray') 24576 @DomName('EntryArray')
24577 class _EntryArray implements JavaScriptIndexingBehavior, List<Entry> native "*En tryArray" { 24577 class _EntryArray implements JavaScriptIndexingBehavior, List<Entry> native "Ent ryArray" {
24578 24578
24579 @DomName('EntryArray.length') 24579 @DomName('EntryArray.length')
24580 @DocsEditable 24580 @DocsEditable
24581 int get length => JS("int", "#.length", this); 24581 int get length => JS("int", "#.length", this);
24582 24582
24583 Entry operator[](int index) => JS("Entry", "#[#]", this, index); 24583 Entry operator[](int index) => JS("Entry", "#[#]", this, index);
24584 24584
24585 void operator[]=(int index, Entry value) { 24585 void operator[]=(int index, Entry value) {
24586 throw new UnsupportedError("Cannot assign element of immutable List."); 24586 throw new UnsupportedError("Cannot assign element of immutable List.");
24587 } 24587 }
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
24784 @DocsEditable 24784 @DocsEditable
24785 Entry item(int index) native; 24785 Entry item(int index) native;
24786 } 24786 }
24787 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 24787 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24788 // for details. All rights reserved. Use of this source code is governed by a 24788 // for details. All rights reserved. Use of this source code is governed by a
24789 // BSD-style license that can be found in the LICENSE file. 24789 // BSD-style license that can be found in the LICENSE file.
24790 24790
24791 24791
24792 @DocsEditable 24792 @DocsEditable
24793 @DomName('EntryArraySync') 24793 @DomName('EntryArraySync')
24794 class _EntryArraySync implements JavaScriptIndexingBehavior, List<_EntrySync> na tive "*EntryArraySync" { 24794 class _EntryArraySync implements JavaScriptIndexingBehavior, List<_EntrySync> na tive "EntryArraySync" {
24795 24795
24796 @DomName('EntryArraySync.length') 24796 @DomName('EntryArraySync.length')
24797 @DocsEditable 24797 @DocsEditable
24798 int get length => JS("int", "#.length", this); 24798 int get length => JS("int", "#.length", this);
24799 24799
24800 _EntrySync operator[](int index) => JS("_EntrySync", "#[#]", this, index); 24800 _EntrySync operator[](int index) => JS("_EntrySync", "#[#]", this, index);
24801 24801
24802 void operator[]=(int index, _EntrySync value) { 24802 void operator[]=(int index, _EntrySync value) {
24803 throw new UnsupportedError("Cannot assign element of immutable List."); 24803 throw new UnsupportedError("Cannot assign element of immutable List.");
24804 } 24804 }
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
25001 @DocsEditable 25001 @DocsEditable
25002 _EntrySync item(int index) native; 25002 _EntrySync item(int index) native;
25003 } 25003 }
25004 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25004 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25005 // for details. All rights reserved. Use of this source code is governed by a 25005 // for details. All rights reserved. Use of this source code is governed by a
25006 // BSD-style license that can be found in the LICENSE file. 25006 // BSD-style license that can be found in the LICENSE file.
25007 25007
25008 25008
25009 @DocsEditable 25009 @DocsEditable
25010 @DomName('EntrySync') 25010 @DomName('EntrySync')
25011 abstract class _EntrySync native "*EntrySync" { 25011 abstract class _EntrySync native "EntrySync" {
25012 } 25012 }
25013 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25013 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25014 // for details. All rights reserved. Use of this source code is governed by a 25014 // for details. All rights reserved. Use of this source code is governed by a
25015 // BSD-style license that can be found in the LICENSE file. 25015 // BSD-style license that can be found in the LICENSE file.
25016 25016
25017 25017
25018 @DocsEditable 25018 @DocsEditable
25019 @DomName('FileEntrySync') 25019 @DomName('FileEntrySync')
25020 abstract class _FileEntrySync extends _EntrySync native "*FileEntrySync" { 25020 abstract class _FileEntrySync extends _EntrySync native "FileEntrySync" {
25021 } 25021 }
25022 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25022 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25023 // for details. All rights reserved. Use of this source code is governed by a 25023 // for details. All rights reserved. Use of this source code is governed by a
25024 // BSD-style license that can be found in the LICENSE file. 25024 // BSD-style license that can be found in the LICENSE file.
25025 25025
25026 25026
25027 @DocsEditable 25027 @DocsEditable
25028 @DomName('FileReaderSync') 25028 @DomName('FileReaderSync')
25029 abstract class _FileReaderSync native "*FileReaderSync" { 25029 abstract class _FileReaderSync native "FileReaderSync" {
25030 25030
25031 @DomName('FileReaderSync.FileReaderSync') 25031 @DomName('FileReaderSync.FileReaderSync')
25032 @DocsEditable 25032 @DocsEditable
25033 factory _FileReaderSync() { 25033 factory _FileReaderSync() {
25034 return _FileReaderSync._create_1(); 25034 return _FileReaderSync._create_1();
25035 } 25035 }
25036 static _FileReaderSync _create_1() => JS('_FileReaderSync', 'new FileReaderSyn c()'); 25036 static _FileReaderSync _create_1() => JS('_FileReaderSync', 'new FileReaderSyn c()');
25037 } 25037 }
25038 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25038 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25039 // for details. All rights reserved. Use of this source code is governed by a 25039 // for details. All rights reserved. Use of this source code is governed by a
25040 // BSD-style license that can be found in the LICENSE file. 25040 // BSD-style license that can be found in the LICENSE file.
25041 25041
25042 25042
25043 @DocsEditable 25043 @DocsEditable
25044 @DomName('FileWriterSync') 25044 @DomName('FileWriterSync')
25045 abstract class _FileWriterSync native "*FileWriterSync" { 25045 abstract class _FileWriterSync native "FileWriterSync" {
25046 } 25046 }
25047 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25047 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25048 // for details. All rights reserved. Use of this source code is governed by a 25048 // for details. All rights reserved. Use of this source code is governed by a
25049 // BSD-style license that can be found in the LICENSE file. 25049 // BSD-style license that can be found in the LICENSE file.
25050 25050
25051 25051
25052 @DocsEditable 25052 @DocsEditable
25053 @DomName('GamepadList') 25053 @DomName('GamepadList')
25054 class _GamepadList implements JavaScriptIndexingBehavior, List<Gamepad> native " *GamepadList" { 25054 class _GamepadList implements JavaScriptIndexingBehavior, List<Gamepad> native " GamepadList" {
25055 25055
25056 @DomName('GamepadList.length') 25056 @DomName('GamepadList.length')
25057 @DocsEditable 25057 @DocsEditable
25058 int get length => JS("int", "#.length", this); 25058 int get length => JS("int", "#.length", this);
25059 25059
25060 Gamepad operator[](int index) => JS("Gamepad", "#[#]", this, index); 25060 Gamepad operator[](int index) => JS("Gamepad", "#[#]", this, index);
25061 25061
25062 void operator[]=(int index, Gamepad value) { 25062 void operator[]=(int index, Gamepad value) {
25063 throw new UnsupportedError("Cannot assign element of immutable List."); 25063 throw new UnsupportedError("Cannot assign element of immutable List.");
25064 } 25064 }
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
25261 @DocsEditable 25261 @DocsEditable
25262 Gamepad item(int index) native; 25262 Gamepad item(int index) native;
25263 } 25263 }
25264 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25264 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25265 // for details. All rights reserved. Use of this source code is governed by a 25265 // for details. All rights reserved. Use of this source code is governed by a
25266 // BSD-style license that can be found in the LICENSE file. 25266 // BSD-style license that can be found in the LICENSE file.
25267 25267
25268 25268
25269 @DocsEditable 25269 @DocsEditable
25270 @DomName('HTMLAppletElement') 25270 @DomName('HTMLAppletElement')
25271 abstract class _HTMLAppletElement extends Element native "*HTMLAppletElement" { 25271 abstract class _HTMLAppletElement extends Element native "HTMLAppletElement" {
25272 } 25272 }
25273 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25273 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25274 // for details. All rights reserved. Use of this source code is governed by a 25274 // for details. All rights reserved. Use of this source code is governed by a
25275 // BSD-style license that can be found in the LICENSE file. 25275 // BSD-style license that can be found in the LICENSE file.
25276 25276
25277 25277
25278 @DocsEditable 25278 @DocsEditable
25279 @DomName('HTMLBaseFontElement') 25279 @DomName('HTMLBaseFontElement')
25280 abstract class _HTMLBaseFontElement extends Element native "*HTMLBaseFontElement " { 25280 abstract class _HTMLBaseFontElement extends Element native "HTMLBaseFontElement" {
25281 } 25281 }
25282 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25282 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25283 // for details. All rights reserved. Use of this source code is governed by a 25283 // for details. All rights reserved. Use of this source code is governed by a
25284 // BSD-style license that can be found in the LICENSE file. 25284 // BSD-style license that can be found in the LICENSE file.
25285 25285
25286 25286
25287 @DocsEditable 25287 @DocsEditable
25288 @DomName('HTMLDirectoryElement') 25288 @DomName('HTMLDirectoryElement')
25289 abstract class _HTMLDirectoryElement extends Element native "*HTMLDirectoryEleme nt" { 25289 abstract class _HTMLDirectoryElement extends Element native "HTMLDirectoryElemen t" {
25290 } 25290 }
25291 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25291 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25292 // for details. All rights reserved. Use of this source code is governed by a 25292 // for details. All rights reserved. Use of this source code is governed by a
25293 // BSD-style license that can be found in the LICENSE file. 25293 // BSD-style license that can be found in the LICENSE file.
25294 25294
25295 25295
25296 @DocsEditable 25296 @DocsEditable
25297 @DomName('HTMLFontElement') 25297 @DomName('HTMLFontElement')
25298 abstract class _HTMLFontElement extends Element native "*HTMLFontElement" { 25298 abstract class _HTMLFontElement extends Element native "HTMLFontElement" {
25299 } 25299 }
25300 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25300 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25301 // for details. All rights reserved. Use of this source code is governed by a 25301 // for details. All rights reserved. Use of this source code is governed by a
25302 // BSD-style license that can be found in the LICENSE file. 25302 // BSD-style license that can be found in the LICENSE file.
25303 25303
25304 25304
25305 @DocsEditable 25305 @DocsEditable
25306 @DomName('HTMLFrameElement') 25306 @DomName('HTMLFrameElement')
25307 abstract class _HTMLFrameElement extends Element native "*HTMLFrameElement" { 25307 abstract class _HTMLFrameElement extends Element native "HTMLFrameElement" {
25308 } 25308 }
25309 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25309 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25310 // for details. All rights reserved. Use of this source code is governed by a 25310 // for details. All rights reserved. Use of this source code is governed by a
25311 // BSD-style license that can be found in the LICENSE file. 25311 // BSD-style license that can be found in the LICENSE file.
25312 25312
25313 25313
25314 @DocsEditable 25314 @DocsEditable
25315 @DomName('HTMLFrameSetElement') 25315 @DomName('HTMLFrameSetElement')
25316 abstract class _HTMLFrameSetElement extends Element native "*HTMLFrameSetElement " { 25316 abstract class _HTMLFrameSetElement extends Element native "HTMLFrameSetElement" {
25317 } 25317 }
25318 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25318 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25319 // for details. All rights reserved. Use of this source code is governed by a 25319 // for details. All rights reserved. Use of this source code is governed by a
25320 // BSD-style license that can be found in the LICENSE file. 25320 // BSD-style license that can be found in the LICENSE file.
25321 25321
25322 25322
25323 @DocsEditable 25323 @DocsEditable
25324 @DomName('HTMLMarqueeElement') 25324 @DomName('HTMLMarqueeElement')
25325 abstract class _HTMLMarqueeElement extends Element native "*HTMLMarqueeElement" { 25325 abstract class _HTMLMarqueeElement extends Element native "HTMLMarqueeElement" {
25326 } 25326 }
25327 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25327 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25328 // for details. All rights reserved. Use of this source code is governed by a 25328 // for details. All rights reserved. Use of this source code is governed by a
25329 // BSD-style license that can be found in the LICENSE file. 25329 // BSD-style license that can be found in the LICENSE file.
25330 25330
25331 25331
25332 @DocsEditable 25332 @DocsEditable
25333 @DomName('NamedNodeMap') 25333 @DomName('NamedNodeMap')
25334 class _NamedNodeMap implements JavaScriptIndexingBehavior, List<Node> native "*N amedNodeMap" { 25334 class _NamedNodeMap implements JavaScriptIndexingBehavior, List<Node> native "Na medNodeMap" {
25335 25335
25336 @DomName('NamedNodeMap.length') 25336 @DomName('NamedNodeMap.length')
25337 @DocsEditable 25337 @DocsEditable
25338 int get length => JS("int", "#.length", this); 25338 int get length => JS("int", "#.length", this);
25339 25339
25340 Node operator[](int index) => JS("Node", "#[#]", this, index); 25340 Node operator[](int index) => JS("Node", "#[#]", this, index);
25341 25341
25342 void operator[]=(int index, Node value) { 25342 void operator[]=(int index, Node value) {
25343 throw new UnsupportedError("Cannot assign element of immutable List."); 25343 throw new UnsupportedError("Cannot assign element of immutable List.");
25344 } 25344 }
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
25565 @DocsEditable 25565 @DocsEditable
25566 Node setNamedItemNS(Node node) native; 25566 Node setNamedItemNS(Node node) native;
25567 } 25567 }
25568 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25568 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25569 // for details. All rights reserved. Use of this source code is governed by a 25569 // for details. All rights reserved. Use of this source code is governed by a
25570 // BSD-style license that can be found in the LICENSE file. 25570 // BSD-style license that can be found in the LICENSE file.
25571 25571
25572 25572
25573 @DocsEditable 25573 @DocsEditable
25574 @DomName('RGBColor') 25574 @DomName('RGBColor')
25575 abstract class _RGBColor native "*RGBColor" { 25575 abstract class _RGBColor native "RGBColor" {
25576 } 25576 }
25577 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25577 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25578 // for details. All rights reserved. Use of this source code is governed by a 25578 // for details. All rights reserved. Use of this source code is governed by a
25579 // BSD-style license that can be found in the LICENSE file. 25579 // BSD-style license that can be found in the LICENSE file.
25580 25580
25581 25581
25582 @DocsEditable 25582 @DocsEditable
25583 @DomName('Rect') 25583 @DomName('Rect')
25584 abstract class _Rect native "*Rect" { 25584 abstract class _Rect native "Rect" {
25585 } 25585 }
25586 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25586 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25587 // for details. All rights reserved. Use of this source code is governed by a 25587 // for details. All rights reserved. Use of this source code is governed by a
25588 // BSD-style license that can be found in the LICENSE file. 25588 // BSD-style license that can be found in the LICENSE file.
25589 25589
25590 25590
25591 @DocsEditable 25591 @DocsEditable
25592 @DomName('SharedWorker') 25592 @DomName('SharedWorker')
25593 abstract class _SharedWorker extends AbstractWorker native "*SharedWorker" { 25593 abstract class _SharedWorker extends AbstractWorker native "SharedWorker" {
25594 25594
25595 @DomName('SharedWorker.SharedWorker') 25595 @DomName('SharedWorker.SharedWorker')
25596 @DocsEditable 25596 @DocsEditable
25597 factory _SharedWorker(String scriptURL, [String name]) { 25597 factory _SharedWorker(String scriptURL, [String name]) {
25598 if (?name) { 25598 if (?name) {
25599 return _SharedWorker._create_1(scriptURL, name); 25599 return _SharedWorker._create_1(scriptURL, name);
25600 } 25600 }
25601 return _SharedWorker._create_2(scriptURL); 25601 return _SharedWorker._create_2(scriptURL);
25602 } 25602 }
25603 static _SharedWorker _create_1(scriptURL, name) => JS('_SharedWorker', 'new Sh aredWorker(#,#)', scriptURL, name); 25603 static _SharedWorker _create_1(scriptURL, name) => JS('_SharedWorker', 'new Sh aredWorker(#,#)', scriptURL, name);
25604 static _SharedWorker _create_2(scriptURL) => JS('_SharedWorker', 'new SharedWo rker(#)', scriptURL); 25604 static _SharedWorker _create_2(scriptURL) => JS('_SharedWorker', 'new SharedWo rker(#)', scriptURL);
25605 } 25605 }
25606 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25606 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25607 // for details. All rights reserved. Use of this source code is governed by a 25607 // for details. All rights reserved. Use of this source code is governed by a
25608 // BSD-style license that can be found in the LICENSE file. 25608 // BSD-style license that can be found in the LICENSE file.
25609 25609
25610 25610
25611 @DocsEditable 25611 @DocsEditable
25612 @DomName('SharedWorkerContext') 25612 @DomName('SharedWorkerContext')
25613 abstract class _SharedWorkerContext extends _WorkerContext native "*SharedWorker Context" { 25613 abstract class _SharedWorkerContext extends _WorkerContext native "SharedWorkerC ontext" {
25614 } 25614 }
25615 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25615 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25616 // for details. All rights reserved. Use of this source code is governed by a 25616 // for details. All rights reserved. Use of this source code is governed by a
25617 // BSD-style license that can be found in the LICENSE file. 25617 // BSD-style license that can be found in the LICENSE file.
25618 25618
25619 25619
25620 @DocsEditable 25620 @DocsEditable
25621 @DomName('SpeechInputResultList') 25621 @DomName('SpeechInputResultList')
25622 class _SpeechInputResultList implements JavaScriptIndexingBehavior, List<SpeechI nputResult> native "*SpeechInputResultList" { 25622 class _SpeechInputResultList implements JavaScriptIndexingBehavior, List<SpeechI nputResult> native "SpeechInputResultList" {
25623 25623
25624 @DomName('SpeechInputResultList.length') 25624 @DomName('SpeechInputResultList.length')
25625 @DocsEditable 25625 @DocsEditable
25626 int get length => JS("int", "#.length", this); 25626 int get length => JS("int", "#.length", this);
25627 25627
25628 SpeechInputResult operator[](int index) => JS("SpeechInputResult", "#[#]", thi s, index); 25628 SpeechInputResult operator[](int index) => JS("SpeechInputResult", "#[#]", thi s, index);
25629 25629
25630 void operator[]=(int index, SpeechInputResult value) { 25630 void operator[]=(int index, SpeechInputResult value) {
25631 throw new UnsupportedError("Cannot assign element of immutable List."); 25631 throw new UnsupportedError("Cannot assign element of immutable List.");
25632 } 25632 }
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
25829 @DocsEditable 25829 @DocsEditable
25830 SpeechInputResult item(int index) native; 25830 SpeechInputResult item(int index) native;
25831 } 25831 }
25832 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25832 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25833 // for details. All rights reserved. Use of this source code is governed by a 25833 // for details. All rights reserved. Use of this source code is governed by a
25834 // BSD-style license that can be found in the LICENSE file. 25834 // BSD-style license that can be found in the LICENSE file.
25835 25835
25836 25836
25837 @DocsEditable 25837 @DocsEditable
25838 @DomName('SpeechRecognitionResultList') 25838 @DomName('SpeechRecognitionResultList')
25839 class _SpeechRecognitionResultList implements JavaScriptIndexingBehavior, List<S peechRecognitionResult> native "*SpeechRecognitionResultList" { 25839 class _SpeechRecognitionResultList implements JavaScriptIndexingBehavior, List<S peechRecognitionResult> native "SpeechRecognitionResultList" {
25840 25840
25841 @DomName('SpeechRecognitionResultList.length') 25841 @DomName('SpeechRecognitionResultList.length')
25842 @DocsEditable 25842 @DocsEditable
25843 int get length => JS("int", "#.length", this); 25843 int get length => JS("int", "#.length", this);
25844 25844
25845 SpeechRecognitionResult operator[](int index) => JS("SpeechRecognitionResult", "#[#]", this, index); 25845 SpeechRecognitionResult operator[](int index) => JS("SpeechRecognitionResult", "#[#]", this, index);
25846 25846
25847 void operator[]=(int index, SpeechRecognitionResult value) { 25847 void operator[]=(int index, SpeechRecognitionResult value) {
25848 throw new UnsupportedError("Cannot assign element of immutable List."); 25848 throw new UnsupportedError("Cannot assign element of immutable List.");
25849 } 25849 }
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
26046 @DocsEditable 26046 @DocsEditable
26047 SpeechRecognitionResult item(int index) native; 26047 SpeechRecognitionResult item(int index) native;
26048 } 26048 }
26049 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 26049 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26050 // for details. All rights reserved. Use of this source code is governed by a 26050 // for details. All rights reserved. Use of this source code is governed by a
26051 // BSD-style license that can be found in the LICENSE file. 26051 // BSD-style license that can be found in the LICENSE file.
26052 26052
26053 26053
26054 @DocsEditable 26054 @DocsEditable
26055 @DomName('StyleSheetList') 26055 @DomName('StyleSheetList')
26056 class _StyleSheetList implements JavaScriptIndexingBehavior, List<StyleSheet> na tive "*StyleSheetList" { 26056 class _StyleSheetList implements JavaScriptIndexingBehavior, List<StyleSheet> na tive "StyleSheetList" {
26057 26057
26058 @DomName('StyleSheetList.length') 26058 @DomName('StyleSheetList.length')
26059 @DocsEditable 26059 @DocsEditable
26060 int get length => JS("int", "#.length", this); 26060 int get length => JS("int", "#.length", this);
26061 26061
26062 StyleSheet operator[](int index) => JS("StyleSheet", "#[#]", this, index); 26062 StyleSheet operator[](int index) => JS("StyleSheet", "#[#]", this, index);
26063 26063
26064 void operator[]=(int index, StyleSheet value) { 26064 void operator[]=(int index, StyleSheet value) {
26065 throw new UnsupportedError("Cannot assign element of immutable List."); 26065 throw new UnsupportedError("Cannot assign element of immutable List.");
26066 } 26066 }
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
26263 @DocsEditable 26263 @DocsEditable
26264 StyleSheet item(int index) native; 26264 StyleSheet item(int index) native;
26265 } 26265 }
26266 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 26266 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26267 // for details. All rights reserved. Use of this source code is governed by a 26267 // for details. All rights reserved. Use of this source code is governed by a
26268 // BSD-style license that can be found in the LICENSE file. 26268 // BSD-style license that can be found in the LICENSE file.
26269 26269
26270 26270
26271 @DocsEditable 26271 @DocsEditable
26272 @DomName('WebKitCSSFilterValue') 26272 @DomName('WebKitCSSFilterValue')
26273 abstract class _WebKitCSSFilterValue extends _CssValueList native "*WebKitCSSFil terValue" { 26273 abstract class _WebKitCSSFilterValue extends _CssValueList native "WebKitCSSFilt erValue" {
26274 } 26274 }
26275 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 26275 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26276 // for details. All rights reserved. Use of this source code is governed by a 26276 // for details. All rights reserved. Use of this source code is governed by a
26277 // BSD-style license that can be found in the LICENSE file. 26277 // BSD-style license that can be found in the LICENSE file.
26278 26278
26279 26279
26280 @DocsEditable 26280 @DocsEditable
26281 @DomName('WebKitCSSMatrix') 26281 @DomName('WebKitCSSMatrix')
26282 @SupportedBrowser(SupportedBrowser.CHROME) 26282 @SupportedBrowser(SupportedBrowser.CHROME)
26283 @SupportedBrowser(SupportedBrowser.SAFARI) 26283 @SupportedBrowser(SupportedBrowser.SAFARI)
26284 @Experimental 26284 @Experimental
26285 abstract class _WebKitCSSMatrix native "*WebKitCSSMatrix" { 26285 abstract class _WebKitCSSMatrix native "WebKitCSSMatrix" {
26286 26286
26287 @DomName('WebKitCSSMatrix.WebKitCSSMatrix') 26287 @DomName('WebKitCSSMatrix.WebKitCSSMatrix')
26288 @DocsEditable 26288 @DocsEditable
26289 factory _WebKitCSSMatrix([String cssValue]) { 26289 factory _WebKitCSSMatrix([String cssValue]) {
26290 if (?cssValue) { 26290 if (?cssValue) {
26291 return _WebKitCSSMatrix._create_1(cssValue); 26291 return _WebKitCSSMatrix._create_1(cssValue);
26292 } 26292 }
26293 return _WebKitCSSMatrix._create_2(); 26293 return _WebKitCSSMatrix._create_2();
26294 } 26294 }
26295 static _WebKitCSSMatrix _create_1(cssValue) => JS('_WebKitCSSMatrix', 'new Web KitCSSMatrix(#)', cssValue); 26295 static _WebKitCSSMatrix _create_1(cssValue) => JS('_WebKitCSSMatrix', 'new Web KitCSSMatrix(#)', cssValue);
26296 static _WebKitCSSMatrix _create_2() => JS('_WebKitCSSMatrix', 'new WebKitCSSMa trix()'); 26296 static _WebKitCSSMatrix _create_2() => JS('_WebKitCSSMatrix', 'new WebKitCSSMa trix()');
26297 } 26297 }
26298 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 26298 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26299 // for details. All rights reserved. Use of this source code is governed by a 26299 // for details. All rights reserved. Use of this source code is governed by a
26300 // BSD-style license that can be found in the LICENSE file. 26300 // BSD-style license that can be found in the LICENSE file.
26301 26301
26302 26302
26303 @DocsEditable 26303 @DocsEditable
26304 @DomName('WebKitCSSMixFunctionValue') 26304 @DomName('WebKitCSSMixFunctionValue')
26305 abstract class _WebKitCSSMixFunctionValue extends _CssValueList native "*WebKitC SSMixFunctionValue" { 26305 abstract class _WebKitCSSMixFunctionValue extends _CssValueList native "WebKitCS SMixFunctionValue" {
26306 } 26306 }
26307 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 26307 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26308 // for details. All rights reserved. Use of this source code is governed by a 26308 // for details. All rights reserved. Use of this source code is governed by a
26309 // BSD-style license that can be found in the LICENSE file. 26309 // BSD-style license that can be found in the LICENSE file.
26310 26310
26311 26311
26312 @DocsEditable 26312 @DocsEditable
26313 @DomName('WebKitCSSTransformValue') 26313 @DomName('WebKitCSSTransformValue')
26314 abstract class _WebKitCSSTransformValue extends _CssValueList native "*WebKitCSS TransformValue" { 26314 abstract class _WebKitCSSTransformValue extends _CssValueList native "WebKitCSST ransformValue" {
26315 } 26315 }
26316 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 26316 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26317 // for details. All rights reserved. Use of this source code is governed by a 26317 // for details. All rights reserved. Use of this source code is governed by a
26318 // BSD-style license that can be found in the LICENSE file. 26318 // BSD-style license that can be found in the LICENSE file.
26319 26319
26320 26320
26321 @DocsEditable 26321 @DocsEditable
26322 @DomName('WorkerContext') 26322 @DomName('WorkerContext')
26323 abstract class _WorkerContext extends EventTarget native "*WorkerContext" { 26323 abstract class _WorkerContext extends EventTarget native "WorkerContext" {
26324 } 26324 }
26325 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 26325 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26326 // for details. All rights reserved. Use of this source code is governed by a 26326 // for details. All rights reserved. Use of this source code is governed by a
26327 // BSD-style license that can be found in the LICENSE file. 26327 // BSD-style license that can be found in the LICENSE file.
26328 26328
26329 26329
26330 @DocsEditable 26330 @DocsEditable
26331 @DomName('WorkerLocation') 26331 @DomName('WorkerLocation')
26332 abstract class _WorkerLocation native "*WorkerLocation" { 26332 abstract class _WorkerLocation native "WorkerLocation" {
26333 } 26333 }
26334 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 26334 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26335 // for details. All rights reserved. Use of this source code is governed by a 26335 // for details. All rights reserved. Use of this source code is governed by a
26336 // BSD-style license that can be found in the LICENSE file. 26336 // BSD-style license that can be found in the LICENSE file.
26337 26337
26338 26338
26339 @DocsEditable 26339 @DocsEditable
26340 @DomName('WorkerNavigator') 26340 @DomName('WorkerNavigator')
26341 abstract class _WorkerNavigator native "*WorkerNavigator" { 26341 abstract class _WorkerNavigator native "WorkerNavigator" {
26342 } 26342 }
26343 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 26343 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26344 // for details. All rights reserved. Use of this source code is governed by a 26344 // for details. All rights reserved. Use of this source code is governed by a
26345 // BSD-style license that can be found in the LICENSE file. 26345 // BSD-style license that can be found in the LICENSE file.
26346 26346
26347 26347
26348 abstract class _AttributeMap implements Map<String, String> { 26348 abstract class _AttributeMap implements Map<String, String> {
26349 final Element _element; 26349 final Element _element;
26350 26350
26351 _AttributeMap(this._element); 26351 _AttributeMap(this._element);
(...skipping 3533 matching lines...) Expand 10 before | Expand all | Expand 10 after
29885 _position = nextPosition; 29885 _position = nextPosition;
29886 return true; 29886 return true;
29887 } 29887 }
29888 _current = null; 29888 _current = null;
29889 _position = _array.length; 29889 _position = _array.length;
29890 return false; 29890 return false;
29891 } 29891 }
29892 29892
29893 T get current => _current; 29893 T get current => _current;
29894 } 29894 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/lib/native_helper.dart ('k') | sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698