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

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

Issue 18054021: Fixing up DOM constructors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /// The Dart HTML library. 1 /// The Dart HTML library.
2 /// 2 ///
3 /// For examples, see 3 /// For examples, see
4 /// [Dart HTML5 Samples](https://github.com/dart-lang/dart-html5-samples) 4 /// [Dart HTML5 Samples](https://github.com/dart-lang/dart-html5-samples)
5 /// on Github. 5 /// on Github.
6 library dart.dom.html; 6 library dart.dom.html;
7 7
8 import 'dart:async'; 8 import 'dart:async';
9 import 'dart:collection'; 9 import 'dart:collection';
10 import 'dart:_collection-dev' hide Symbol; 10 import 'dart:_collection-dev' hide Symbol;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 Future<SendPort> spawnDomFunction(Function f) => 71 Future<SendPort> spawnDomFunction(Function f) =>
72 new Future.value(IsolateNatives.spawnDomFunction(f)); 72 new Future.value(IsolateNatives.spawnDomFunction(f));
73 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 73 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
74 // for details. All rights reserved. Use of this source code is governed by a 74 // for details. All rights reserved. Use of this source code is governed by a
75 // BSD-style license that can be found in the LICENSE file. 75 // BSD-style license that can be found in the LICENSE file.
76 76
77 77
78 @DocsEditable 78 @DocsEditable
79 @DomName('AbstractWorker') 79 @DomName('AbstractWorker')
80 class AbstractWorker extends EventTarget native "AbstractWorker" { 80 class AbstractWorker extends EventTarget native "AbstractWorker" {
81 // To suppress missing implicit constructor warnings.
82 factory AbstractWorker._() { throw new UnsupportedError("Not supported"); }
81 83
82 @DomName('AbstractWorker.errorEvent') 84 @DomName('AbstractWorker.errorEvent')
83 @DocsEditable 85 @DocsEditable
84 static const EventStreamProvider<ErrorEvent> errorEvent = const EventStreamPro vider<ErrorEvent>('error'); 86 static const EventStreamProvider<ErrorEvent> errorEvent = const EventStreamPro vider<ErrorEvent>('error');
85 87
86 @JSName('addEventListener') 88 @JSName('addEventListener')
87 @DomName('AbstractWorker.addEventListener') 89 @DomName('AbstractWorker.addEventListener')
88 @DocsEditable 90 @DocsEditable
89 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; 91 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native;
90 92
(...skipping 11 matching lines...) Expand all
102 Stream<ErrorEvent> get onError => errorEvent.forTarget(this); 104 Stream<ErrorEvent> get onError => errorEvent.forTarget(this);
103 } 105 }
104 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 106 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
105 // for details. All rights reserved. Use of this source code is governed by a 107 // for details. All rights reserved. Use of this source code is governed by a
106 // BSD-style license that can be found in the LICENSE file. 108 // BSD-style license that can be found in the LICENSE file.
107 109
108 110
109 @DocsEditable 111 @DocsEditable
110 @DomName('HTMLAnchorElement') 112 @DomName('HTMLAnchorElement')
111 class AnchorElement extends _HTMLElement native "HTMLAnchorElement" { 113 class AnchorElement extends _HTMLElement native "HTMLAnchorElement" {
114 // To suppress missing implicit constructor warnings.
115 factory AnchorElement._() { throw new UnsupportedError("Not supported"); }
112 116
113 @DomName('HTMLAnchorElement.HTMLAnchorElement') 117 @DomName('HTMLAnchorElement.HTMLAnchorElement')
114 @DocsEditable 118 @DocsEditable
115 factory AnchorElement({String href}) { 119 factory AnchorElement({String href}) {
116 var e = document.$dom_createElement("a"); 120 var e = document.$dom_createElement("a");
117 if (href != null) e.href = href; 121 if (href != null) e.href = href;
118 return e; 122 return e;
119 } 123 }
120 124
121 @DomName('HTMLAnchorElement.download') 125 @DomName('HTMLAnchorElement.download')
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 // for details. All rights reserved. Use of this source code is governed by a 200 // for details. All rights reserved. Use of this source code is governed by a
197 // BSD-style license that can be found in the LICENSE file. 201 // BSD-style license that can be found in the LICENSE file.
198 202
199 203
200 @DocsEditable 204 @DocsEditable
201 @DomName('WebKitAnimationEvent') 205 @DomName('WebKitAnimationEvent')
202 @SupportedBrowser(SupportedBrowser.CHROME) 206 @SupportedBrowser(SupportedBrowser.CHROME)
203 @SupportedBrowser(SupportedBrowser.SAFARI) 207 @SupportedBrowser(SupportedBrowser.SAFARI)
204 @Experimental 208 @Experimental
205 class AnimationEvent extends Event native "WebKitAnimationEvent" { 209 class AnimationEvent extends Event native "WebKitAnimationEvent" {
210 // To suppress missing implicit constructor warnings.
211 factory AnimationEvent._() { throw new UnsupportedError("Not supported"); }
206 212
207 @DomName('WebKitAnimationEvent.animationName') 213 @DomName('WebKitAnimationEvent.animationName')
208 @DocsEditable 214 @DocsEditable
209 final String animationName; 215 final String animationName;
210 216
211 @DomName('WebKitAnimationEvent.elapsedTime') 217 @DomName('WebKitAnimationEvent.elapsedTime')
212 @DocsEditable 218 @DocsEditable
213 final num elapsedTime; 219 final num elapsedTime;
214 } 220 }
215 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 221 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
216 // for details. All rights reserved. Use of this source code is governed by a 222 // for details. All rights reserved. Use of this source code is governed by a
217 // BSD-style license that can be found in the LICENSE file. 223 // BSD-style license that can be found in the LICENSE file.
218 224
219 225
220 @DocsEditable 226 @DocsEditable
221 @DomName('DOMApplicationCache') 227 @DomName('DOMApplicationCache')
222 @SupportedBrowser(SupportedBrowser.CHROME) 228 @SupportedBrowser(SupportedBrowser.CHROME)
223 @SupportedBrowser(SupportedBrowser.FIREFOX) 229 @SupportedBrowser(SupportedBrowser.FIREFOX)
224 @SupportedBrowser(SupportedBrowser.IE, '10') 230 @SupportedBrowser(SupportedBrowser.IE, '10')
225 @SupportedBrowser(SupportedBrowser.OPERA) 231 @SupportedBrowser(SupportedBrowser.OPERA)
226 @SupportedBrowser(SupportedBrowser.SAFARI) 232 @SupportedBrowser(SupportedBrowser.SAFARI)
227 @Unstable 233 @Unstable
228 class ApplicationCache extends EventTarget native "ApplicationCache,DOMApplicati onCache,OfflineResourceList" { 234 class ApplicationCache extends EventTarget native "ApplicationCache,DOMApplicati onCache,OfflineResourceList" {
235 // To suppress missing implicit constructor warnings.
236 factory ApplicationCache._() { throw new UnsupportedError("Not supported"); }
229 237
230 @DomName('DOMApplicationCache.cachedEvent') 238 @DomName('DOMApplicationCache.cachedEvent')
231 @DocsEditable 239 @DocsEditable
232 static const EventStreamProvider<Event> cachedEvent = const EventStreamProvide r<Event>('cached'); 240 static const EventStreamProvider<Event> cachedEvent = const EventStreamProvide r<Event>('cached');
233 241
234 @DomName('DOMApplicationCache.checkingEvent') 242 @DomName('DOMApplicationCache.checkingEvent')
235 @DocsEditable 243 @DocsEditable
236 static const EventStreamProvider<Event> checkingEvent = const EventStreamProvi der<Event>('checking'); 244 static const EventStreamProvider<Event> checkingEvent = const EventStreamProvi der<Event>('checking');
237 245
238 @DomName('DOMApplicationCache.downloadingEvent') 246 @DomName('DOMApplicationCache.downloadingEvent')
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 * 367 *
360 * The element can also define an uninteractive region of the map. 368 * The element can also define an uninteractive region of the map.
361 * 369 *
362 * See also: 370 * See also:
363 * 371 *
364 * * [<area>](https://developer.mozilla.org/en-US/docs/HTML/Element/area) 372 * * [<area>](https://developer.mozilla.org/en-US/docs/HTML/Element/area)
365 * on MDN. 373 * on MDN.
366 */ 374 */
367 @DomName('HTMLAreaElement') 375 @DomName('HTMLAreaElement')
368 class AreaElement extends _HTMLElement native "HTMLAreaElement" { 376 class AreaElement extends _HTMLElement native "HTMLAreaElement" {
377 // To suppress missing implicit constructor warnings.
378 factory AreaElement._() { throw new UnsupportedError("Not supported"); }
369 379
370 @DomName('HTMLAreaElement.HTMLAreaElement') 380 @DomName('HTMLAreaElement.HTMLAreaElement')
371 @DocsEditable 381 @DocsEditable
372 factory AreaElement() => document.$dom_createElement("area"); 382 factory AreaElement() => document.$dom_createElement("area");
373 383
374 @DomName('HTMLAreaElement.alt') 384 @DomName('HTMLAreaElement.alt')
375 @DocsEditable 385 @DocsEditable
376 String alt; 386 String alt;
377 387
378 @DomName('HTMLAreaElement.coords') 388 @DomName('HTMLAreaElement.coords')
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 String target; 436 String target;
427 } 437 }
428 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 438 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
429 // for details. All rights reserved. Use of this source code is governed by a 439 // for details. All rights reserved. Use of this source code is governed by a
430 // BSD-style license that can be found in the LICENSE file. 440 // BSD-style license that can be found in the LICENSE file.
431 441
432 442
433 @DocsEditable 443 @DocsEditable
434 @DomName('HTMLAudioElement') 444 @DomName('HTMLAudioElement')
435 class AudioElement extends MediaElement native "HTMLAudioElement" { 445 class AudioElement extends MediaElement native "HTMLAudioElement" {
446 // To suppress missing implicit constructor warnings.
447 factory AudioElement._() { throw new UnsupportedError("Not supported"); }
436 448
437 @DomName('HTMLAudioElement.HTMLAudioElement') 449 @DomName('HTMLAudioElement.HTMLAudioElement')
438 @DocsEditable 450 @DocsEditable
439 factory AudioElement([String src]) { 451 factory AudioElement([String src]) {
440 if (src != null) { 452 if (src != null) {
441 return AudioElement._create_1(src); 453 return AudioElement._create_1(src);
442 } 454 }
443 return AudioElement._create_2(); 455 return AudioElement._create_2();
444 } 456 }
445 static AudioElement _create_1(src) => JS('AudioElement', 'new Audio(#)', src); 457 static AudioElement _create_1(src) => JS('AudioElement', 'new Audio(#)', src);
446 static AudioElement _create_2() => JS('AudioElement', 'new Audio()'); 458 static AudioElement _create_2() => JS('AudioElement', 'new Audio()');
447 } 459 }
448 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 460 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
449 // for details. All rights reserved. Use of this source code is governed by a 461 // for details. All rights reserved. Use of this source code is governed by a
450 // BSD-style license that can be found in the LICENSE file. 462 // BSD-style license that can be found in the LICENSE file.
451 463
452 464
453 @DocsEditable 465 @DocsEditable
454 @DomName('AutocompleteErrorEvent') 466 @DomName('AutocompleteErrorEvent')
455 // http://wiki.whatwg.org/wiki/RequestAutocomplete 467 // http://wiki.whatwg.org/wiki/RequestAutocomplete
456 @Experimental 468 @Experimental
457 class AutocompleteErrorEvent extends Event native "AutocompleteErrorEvent" { 469 class AutocompleteErrorEvent extends Event native "AutocompleteErrorEvent" {
470 // To suppress missing implicit constructor warnings.
471 factory AutocompleteErrorEvent._() { throw new UnsupportedError("Not supported "); }
458 472
459 @DomName('AutocompleteErrorEvent.reason') 473 @DomName('AutocompleteErrorEvent.reason')
460 @DocsEditable 474 @DocsEditable
461 final String reason; 475 final String reason;
462 } 476 }
463 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 477 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
464 // for details. All rights reserved. Use of this source code is governed by a 478 // for details. All rights reserved. Use of this source code is governed by a
465 // BSD-style license that can be found in the LICENSE file. 479 // BSD-style license that can be found in the LICENSE file.
466 480
467 481
468 @DocsEditable 482 @DocsEditable
469 @DomName('HTMLBRElement') 483 @DomName('HTMLBRElement')
470 class BRElement extends _HTMLElement native "HTMLBRElement" { 484 class BRElement extends _HTMLElement native "HTMLBRElement" {
485 // To suppress missing implicit constructor warnings.
486 factory BRElement._() { throw new UnsupportedError("Not supported"); }
471 487
472 @DomName('HTMLBRElement.HTMLBRElement') 488 @DomName('HTMLBRElement.HTMLBRElement')
473 @DocsEditable 489 @DocsEditable
474 factory BRElement() => document.$dom_createElement("br"); 490 factory BRElement() => document.$dom_createElement("br");
475 } 491 }
476 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 492 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
477 // for details. All rights reserved. Use of this source code is governed by a 493 // for details. All rights reserved. Use of this source code is governed by a
478 // BSD-style license that can be found in the LICENSE file. 494 // BSD-style license that can be found in the LICENSE file.
479 495
480 496
481 @DocsEditable 497 @DocsEditable
482 @DomName('BarProp') 498 @DomName('BarProp')
483 // http://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html#bar prop 499 // http://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html#bar prop
484 @deprecated // standard 500 @deprecated // standard
485 class BarProp native "BarProp" { 501 class BarProp extends Interceptor native "BarProp" {
486 502
487 @DomName('BarProp.visible') 503 @DomName('BarProp.visible')
488 @DocsEditable 504 @DocsEditable
489 final bool visible; 505 final bool visible;
490 } 506 }
491 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 507 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
492 // for details. All rights reserved. Use of this source code is governed by a 508 // for details. All rights reserved. Use of this source code is governed by a
493 // BSD-style license that can be found in the LICENSE file. 509 // BSD-style license that can be found in the LICENSE file.
494 510
495 511
496 @DocsEditable 512 @DocsEditable
497 @DomName('HTMLBaseElement') 513 @DomName('HTMLBaseElement')
498 class BaseElement extends _HTMLElement native "HTMLBaseElement" { 514 class BaseElement extends _HTMLElement native "HTMLBaseElement" {
515 // To suppress missing implicit constructor warnings.
516 factory BaseElement._() { throw new UnsupportedError("Not supported"); }
499 517
500 @DomName('HTMLBaseElement.HTMLBaseElement') 518 @DomName('HTMLBaseElement.HTMLBaseElement')
501 @DocsEditable 519 @DocsEditable
502 factory BaseElement() => document.$dom_createElement("base"); 520 factory BaseElement() => document.$dom_createElement("base");
503 521
504 @DomName('HTMLBaseElement.href') 522 @DomName('HTMLBaseElement.href')
505 @DocsEditable 523 @DocsEditable
506 String href; 524 String href;
507 525
508 @DomName('HTMLBaseElement.target') 526 @DomName('HTMLBaseElement.target')
509 @DocsEditable 527 @DocsEditable
510 String target; 528 String target;
511 } 529 }
512 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 530 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
513 // for details. All rights reserved. Use of this source code is governed by a 531 // for details. All rights reserved. Use of this source code is governed by a
514 // BSD-style license that can be found in the LICENSE file. 532 // BSD-style license that can be found in the LICENSE file.
515 533
516 534
517 @DocsEditable 535 @DocsEditable
518 @DomName('BeforeLoadEvent') 536 @DomName('BeforeLoadEvent')
519 @Experimental 537 @Experimental
520 class BeforeLoadEvent extends Event native "BeforeLoadEvent" { 538 class BeforeLoadEvent extends Event native "BeforeLoadEvent" {
539 // To suppress missing implicit constructor warnings.
540 factory BeforeLoadEvent._() { throw new UnsupportedError("Not supported"); }
521 541
522 @DomName('BeforeLoadEvent.url') 542 @DomName('BeforeLoadEvent.url')
523 @DocsEditable 543 @DocsEditable
524 final String url; 544 final String url;
525 } 545 }
526 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 546 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
527 // for details. All rights reserved. Use of this source code is governed by a 547 // for details. All rights reserved. Use of this source code is governed by a
528 // BSD-style license that can be found in the LICENSE file. 548 // BSD-style license that can be found in the LICENSE file.
529 549
530 550
531 @DomName('Blob') 551 @DomName('Blob')
532 class Blob native "Blob" { 552 class Blob extends Interceptor native "Blob" {
533 553
534 @DomName('Blob.size') 554 @DomName('Blob.size')
535 @DocsEditable 555 @DocsEditable
536 final int size; 556 final int size;
537 557
538 @DomName('Blob.type') 558 @DomName('Blob.type')
539 @DocsEditable 559 @DocsEditable
540 final String type; 560 final String type;
541 561
542 @DomName('Blob.slice') 562 @DomName('Blob.slice')
(...skipping 21 matching lines...) Expand all
564 } 584 }
565 585
566 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 586 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
567 // for details. All rights reserved. Use of this source code is governed by a 587 // for details. All rights reserved. Use of this source code is governed by a
568 // BSD-style license that can be found in the LICENSE file. 588 // BSD-style license that can be found in the LICENSE file.
569 589
570 590
571 @DocsEditable 591 @DocsEditable
572 @DomName('HTMLBodyElement') 592 @DomName('HTMLBodyElement')
573 class BodyElement extends _HTMLElement native "HTMLBodyElement" { 593 class BodyElement extends _HTMLElement native "HTMLBodyElement" {
594 // To suppress missing implicit constructor warnings.
595 factory BodyElement._() { throw new UnsupportedError("Not supported"); }
574 596
575 @DomName('HTMLBodyElement.blurEvent') 597 @DomName('HTMLBodyElement.blurEvent')
576 @DocsEditable 598 @DocsEditable
577 static const EventStreamProvider<Event> blurEvent = const EventStreamProvider< Event>('blur'); 599 static const EventStreamProvider<Event> blurEvent = const EventStreamProvider< Event>('blur');
578 600
579 @DomName('HTMLBodyElement.errorEvent') 601 @DomName('HTMLBodyElement.errorEvent')
580 @DocsEditable 602 @DocsEditable
581 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error'); 603 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error');
582 604
583 @DomName('HTMLBodyElement.focusEvent') 605 @DomName('HTMLBodyElement.focusEvent')
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 Stream<Event> get onUnload => unloadEvent.forTarget(this); 695 Stream<Event> get onUnload => unloadEvent.forTarget(this);
674 } 696 }
675 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 697 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
676 // for details. All rights reserved. Use of this source code is governed by a 698 // for details. All rights reserved. Use of this source code is governed by a
677 // BSD-style license that can be found in the LICENSE file. 699 // BSD-style license that can be found in the LICENSE file.
678 700
679 701
680 @DocsEditable 702 @DocsEditable
681 @DomName('HTMLButtonElement') 703 @DomName('HTMLButtonElement')
682 class ButtonElement extends _HTMLElement native "HTMLButtonElement" { 704 class ButtonElement extends _HTMLElement native "HTMLButtonElement" {
705 // To suppress missing implicit constructor warnings.
706 factory ButtonElement._() { throw new UnsupportedError("Not supported"); }
683 707
684 @DomName('HTMLButtonElement.HTMLButtonElement') 708 @DomName('HTMLButtonElement.HTMLButtonElement')
685 @DocsEditable 709 @DocsEditable
686 factory ButtonElement() => document.$dom_createElement("button"); 710 factory ButtonElement() => document.$dom_createElement("button");
687 711
688 @DomName('HTMLButtonElement.autofocus') 712 @DomName('HTMLButtonElement.autofocus')
689 @DocsEditable 713 @DocsEditable
690 bool autofocus; 714 bool autofocus;
691 715
692 @DomName('HTMLButtonElement.disabled') 716 @DomName('HTMLButtonElement.disabled')
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
759 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 783 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
760 // for details. All rights reserved. Use of this source code is governed by a 784 // for details. All rights reserved. Use of this source code is governed by a
761 // BSD-style license that can be found in the LICENSE file. 785 // BSD-style license that can be found in the LICENSE file.
762 786
763 787
764 @DocsEditable 788 @DocsEditable
765 @DomName('CDATASection') 789 @DomName('CDATASection')
766 // http://dom.spec.whatwg.org/#cdatasection 790 // http://dom.spec.whatwg.org/#cdatasection
767 @deprecated // deprecated 791 @deprecated // deprecated
768 class CDataSection extends Text native "CDATASection" { 792 class CDataSection extends Text native "CDATASection" {
793 // To suppress missing implicit constructor warnings.
794 factory CDataSection._() { throw new UnsupportedError("Not supported"); }
769 } 795 }
770 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 796 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
771 // for details. All rights reserved. Use of this source code is governed by a 797 // for details. All rights reserved. Use of this source code is governed by a
772 // BSD-style license that can be found in the LICENSE file. 798 // BSD-style license that can be found in the LICENSE file.
773 799
774 800
775 @DocsEditable 801 @DocsEditable
776 @DomName('Canvas2DContextAttributes') 802 @DomName('Canvas2DContextAttributes')
777 // http://wiki.whatwg.org/wiki/CanvasOpaque#Suggested_IDL 803 // http://wiki.whatwg.org/wiki/CanvasOpaque#Suggested_IDL
778 @Experimental 804 @Experimental
779 class Canvas2DContextAttributes native "Canvas2DContextAttributes" { 805 class Canvas2DContextAttributes extends Interceptor native "Canvas2DContextAttri butes" {
780 806
781 @DomName('Canvas2DContextAttributes.alpha') 807 @DomName('Canvas2DContextAttributes.alpha')
782 @DocsEditable 808 @DocsEditable
783 bool alpha; 809 bool alpha;
784 } 810 }
785 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 811 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
786 // for details. All rights reserved. Use of this source code is governed by a 812 // for details. All rights reserved. Use of this source code is governed by a
787 // BSD-style license that can be found in the LICENSE file. 813 // BSD-style license that can be found in the LICENSE file.
788 814
789 815
790 @DomName('HTMLCanvasElement') 816 @DomName('HTMLCanvasElement')
791 class CanvasElement extends _HTMLElement implements CanvasImageSource native "HT MLCanvasElement" { 817 class CanvasElement extends _HTMLElement implements CanvasImageSource native "HT MLCanvasElement" {
818 // To suppress missing implicit constructor warnings.
819 factory CanvasElement._() { throw new UnsupportedError("Not supported"); }
792 820
793 @DomName('HTMLCanvasElement.webglcontextlostEvent') 821 @DomName('HTMLCanvasElement.webglcontextlostEvent')
794 @DocsEditable 822 @DocsEditable
795 static const EventStreamProvider<gl.ContextEvent> webGlContextLostEvent = cons t EventStreamProvider<gl.ContextEvent>('webglcontextlost'); 823 static const EventStreamProvider<gl.ContextEvent> webGlContextLostEvent = cons t EventStreamProvider<gl.ContextEvent>('webglcontextlost');
796 824
797 @DomName('HTMLCanvasElement.webglcontextrestoredEvent') 825 @DomName('HTMLCanvasElement.webglcontextrestoredEvent')
798 @DocsEditable 826 @DocsEditable
799 static const EventStreamProvider<gl.ContextEvent> webGlContextRestoredEvent = const EventStreamProvider<gl.ContextEvent>('webglcontextrestored'); 827 static const EventStreamProvider<gl.ContextEvent> webGlContextRestoredEvent = const EventStreamProvider<gl.ContextEvent>('webglcontextrestored');
800 828
801 @DomName('HTMLCanvasElement.HTMLCanvasElement') 829 @DomName('HTMLCanvasElement.HTMLCanvasElement')
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
945 * ctx.save(); 973 * ctx.save();
946 * document.body.children.add(canvas); 974 * document.body.children.add(canvas);
947 * 975 *
948 * See also: 976 * See also:
949 * 977 *
950 * * [CanvasGradient](https://developer.mozilla.org/en-US/docs/DOM/CanvasGradien t) from MDN. 978 * * [CanvasGradient](https://developer.mozilla.org/en-US/docs/DOM/CanvasGradien t) from MDN.
951 * * [CanvasGradient](http://www.whatwg.org/specs/web-apps/current-work/multipag e/the-canvas-element.html#canvasgradient) from whatwg. 979 * * [CanvasGradient](http://www.whatwg.org/specs/web-apps/current-work/multipag e/the-canvas-element.html#canvasgradient) from whatwg.
952 * * [CanvasGradient](http://www.w3.org/TR/2010/WD-2dcontext-20100304/#canvasgra dient) from W3C. 980 * * [CanvasGradient](http://www.w3.org/TR/2010/WD-2dcontext-20100304/#canvasgra dient) from W3C.
953 */ 981 */
954 @DomName('CanvasGradient') 982 @DomName('CanvasGradient')
955 class CanvasGradient native "CanvasGradient" { 983 class CanvasGradient extends Interceptor native "CanvasGradient" {
956 984
957 /** 985 /**
958 * Adds a color stop to this gradient at the offset. 986 * Adds a color stop to this gradient at the offset.
959 * 987 *
960 * The [offset] can range between 0.0 and 1.0. 988 * The [offset] can range between 0.0 and 1.0.
961 * 989 *
962 * See also: 990 * See also:
963 * 991 *
964 * * [Multiple Color Stops](https://developer.mozilla.org/en-US/docs/CSS/linea r-gradient#Gradient_with_multiple_color_stops) from MDN. 992 * * [Multiple Color Stops](https://developer.mozilla.org/en-US/docs/CSS/linea r-gradient#Gradient_with_multiple_color_stops) from MDN.
965 */ 993 */
(...skipping 28 matching lines...) Expand all
994 * }); 1022 * });
995 * img.src = "images/foo.jpg"; 1023 * img.src = "images/foo.jpg";
996 * document.body.children.add(canvas); 1024 * document.body.children.add(canvas);
997 * 1025 *
998 * See also: 1026 * See also:
999 * * [CanvasPattern](https://developer.mozilla.org/en-US/docs/DOM/CanvasPattern) from MDN. 1027 * * [CanvasPattern](https://developer.mozilla.org/en-US/docs/DOM/CanvasPattern) from MDN.
1000 * * [CanvasPattern](http://www.whatwg.org/specs/web-apps/current-work/multipage /the-canvas-element.html#canvaspattern) from whatwg. 1028 * * [CanvasPattern](http://www.whatwg.org/specs/web-apps/current-work/multipage /the-canvas-element.html#canvaspattern) from whatwg.
1001 * * [CanvasPattern](http://www.w3.org/TR/2010/WD-2dcontext-20100304/#canvaspatt ern) from W3C. 1029 * * [CanvasPattern](http://www.w3.org/TR/2010/WD-2dcontext-20100304/#canvaspatt ern) from W3C.
1002 */ 1030 */
1003 @DomName('CanvasPattern') 1031 @DomName('CanvasPattern')
1004 class CanvasPattern native "CanvasPattern" { 1032 class CanvasPattern extends Interceptor native "CanvasPattern" {
1005 } 1033 }
1006 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1034 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1007 // for details. All rights reserved. Use of this source code is governed by a 1035 // for details. All rights reserved. Use of this source code is governed by a
1008 // BSD-style license that can be found in the LICENSE file. 1036 // BSD-style license that can be found in the LICENSE file.
1009 1037
1010 1038
1011 @DocsEditable 1039 @DocsEditable
1012 /** 1040 /**
1013 * A rendering context for a canvas element. 1041 * A rendering context for a canvas element.
1014 * 1042 *
1015 * This context is extended by [CanvasRenderingContext2D] and 1043 * This context is extended by [CanvasRenderingContext2D] and
1016 * [WebGLRenderingContext]. 1044 * [WebGLRenderingContext].
1017 */ 1045 */
1018 @DomName('CanvasRenderingContext') 1046 @DomName('CanvasRenderingContext')
1019 class CanvasRenderingContext native "CanvasRenderingContext" { 1047 class CanvasRenderingContext extends Interceptor native "CanvasRenderingContext" {
1020 1048
1021 /// Reference to the canvas element to which this context belongs. 1049 /// Reference to the canvas element to which this context belongs.
1022 @DomName('CanvasRenderingContext.canvas') 1050 @DomName('CanvasRenderingContext.canvas')
1023 @DocsEditable 1051 @DocsEditable
1024 final CanvasElement canvas; 1052 final CanvasElement canvas;
1025 } 1053 }
1026 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1054 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1027 // for details. All rights reserved. Use of this source code is governed by a 1055 // for details. All rights reserved. Use of this source code is governed by a
1028 // BSD-style license that can be found in the LICENSE file. 1056 // BSD-style license that can be found in the LICENSE file.
1029 1057
1030 1058
1031 @DomName('CanvasRenderingContext2D') 1059 @DomName('CanvasRenderingContext2D')
1032 class CanvasRenderingContext2D extends CanvasRenderingContext native "CanvasRend eringContext2D" { 1060 class CanvasRenderingContext2D extends CanvasRenderingContext native "CanvasRend eringContext2D" {
1061 // To suppress missing implicit constructor warnings.
1062 factory CanvasRenderingContext2D._() { throw new UnsupportedError("Not support ed"); }
1033 1063
1034 @DomName('CanvasRenderingContext2D.currentPath') 1064 @DomName('CanvasRenderingContext2D.currentPath')
1035 @DocsEditable 1065 @DocsEditable
1036 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-elem ent.html#path-objects 1066 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-elem ent.html#path-objects
1037 @Experimental 1067 @Experimental
1038 Path currentPath; 1068 Path currentPath;
1039 1069
1040 @DomName('CanvasRenderingContext2D.fillStyle') 1070 @DomName('CanvasRenderingContext2D.fillStyle')
1041 @DocsEditable 1071 @DocsEditable
1042 @Creates('String|CanvasGradient|CanvasPattern') 1072 @Creates('String|CanvasGradient|CanvasPattern')
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
1579 } 1609 }
1580 1610
1581 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1611 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1582 // for details. All rights reserved. Use of this source code is governed by a 1612 // for details. All rights reserved. Use of this source code is governed by a
1583 // BSD-style license that can be found in the LICENSE file. 1613 // BSD-style license that can be found in the LICENSE file.
1584 1614
1585 1615
1586 @DocsEditable 1616 @DocsEditable
1587 @DomName('CharacterData') 1617 @DomName('CharacterData')
1588 class CharacterData extends Node native "CharacterData" { 1618 class CharacterData extends Node native "CharacterData" {
1619 // To suppress missing implicit constructor warnings.
1620 factory CharacterData._() { throw new UnsupportedError("Not supported"); }
1589 1621
1590 @DomName('CharacterData.data') 1622 @DomName('CharacterData.data')
1591 @DocsEditable 1623 @DocsEditable
1592 String data; 1624 String data;
1593 1625
1594 @DomName('CharacterData.length') 1626 @DomName('CharacterData.length')
1595 @DocsEditable 1627 @DocsEditable
1596 final int length; 1628 final int length;
1597 1629
1598 @DomName('CharacterData.nextElementSibling') 1630 @DomName('CharacterData.nextElementSibling')
(...skipping 25 matching lines...) Expand all
1624 String substringData(int offset, int length) native; 1656 String substringData(int offset, int length) native;
1625 } 1657 }
1626 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1658 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1627 // for details. All rights reserved. Use of this source code is governed by a 1659 // for details. All rights reserved. Use of this source code is governed by a
1628 // BSD-style license that can be found in the LICENSE file. 1660 // BSD-style license that can be found in the LICENSE file.
1629 1661
1630 1662
1631 @DocsEditable 1663 @DocsEditable
1632 @DomName('CloseEvent') 1664 @DomName('CloseEvent')
1633 class CloseEvent extends Event native "CloseEvent" { 1665 class CloseEvent extends Event native "CloseEvent" {
1666 // To suppress missing implicit constructor warnings.
1667 factory CloseEvent._() { throw new UnsupportedError("Not supported"); }
1634 1668
1635 @DomName('CloseEvent.code') 1669 @DomName('CloseEvent.code')
1636 @DocsEditable 1670 @DocsEditable
1637 final int code; 1671 final int code;
1638 1672
1639 @DomName('CloseEvent.reason') 1673 @DomName('CloseEvent.reason')
1640 @DocsEditable 1674 @DocsEditable
1641 final String reason; 1675 final String reason;
1642 1676
1643 @DomName('CloseEvent.wasClean') 1677 @DomName('CloseEvent.wasClean')
1644 @DocsEditable 1678 @DocsEditable
1645 final bool wasClean; 1679 final bool wasClean;
1646 } 1680 }
1647 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1681 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1648 // for details. All rights reserved. Use of this source code is governed by a 1682 // for details. All rights reserved. Use of this source code is governed by a
1649 // BSD-style license that can be found in the LICENSE file. 1683 // BSD-style license that can be found in the LICENSE file.
1650 1684
1651 1685
1652 @DocsEditable 1686 @DocsEditable
1653 @DomName('Comment') 1687 @DomName('Comment')
1654 class Comment extends CharacterData native "Comment" { 1688 class Comment extends CharacterData native "Comment" {
1689 // To suppress missing implicit constructor warnings.
1690 factory Comment._() { throw new UnsupportedError("Not supported"); }
1655 1691
1656 @DomName('Comment.Comment') 1692 @DomName('Comment.Comment')
1657 @DocsEditable 1693 @DocsEditable
1658 factory Comment([String data]) { 1694 factory Comment([String data]) {
1659 if (data != null) { 1695 if (data != null) {
1660 return Comment._create_1(data); 1696 return Comment._create_1(data);
1661 } 1697 }
1662 return Comment._create_2(); 1698 return Comment._create_2();
1663 } 1699 }
1664 static Comment _create_1(data) => JS('Comment', 'new Comment(#)', data); 1700 static Comment _create_1(data) => JS('Comment', 'new Comment(#)', data);
1665 static Comment _create_2() => JS('Comment', 'new Comment()'); 1701 static Comment _create_2() => JS('Comment', 'new Comment()');
1666 } 1702 }
1667 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1703 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1668 // for details. All rights reserved. Use of this source code is governed by a 1704 // for details. All rights reserved. Use of this source code is governed by a
1669 // BSD-style license that can be found in the LICENSE file. 1705 // BSD-style license that can be found in the LICENSE file.
1670 1706
1671 1707
1672 @DocsEditable 1708 @DocsEditable
1673 @DomName('Composition') 1709 @DomName('Composition')
1674 // http://www.w3.org/TR/ime-api/#idl-def-Composition 1710 // http://www.w3.org/TR/ime-api/#idl-def-Composition
1675 @Experimental 1711 @Experimental
1676 class Composition native "Composition" { 1712 class Composition extends Interceptor native "Composition" {
1677 1713
1678 @DomName('Composition.caret') 1714 @DomName('Composition.caret')
1679 @DocsEditable 1715 @DocsEditable
1680 final Range caret; 1716 final Range caret;
1681 1717
1682 @DomName('Composition.text') 1718 @DomName('Composition.text')
1683 @DocsEditable 1719 @DocsEditable
1684 final Node text; 1720 final Node text;
1685 } 1721 }
1686 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1722 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
1687 // for details. All rights reserved. Use of this source code is governed by a 1723 // for details. All rights reserved. Use of this source code is governed by a
1688 // BSD-style license that can be found in the LICENSE file. 1724 // BSD-style license that can be found in the LICENSE file.
1689 1725
1690 // WARNING: Do not edit - generated code. 1726 // WARNING: Do not edit - generated code.
1691 1727
1692 1728
1693 @DomName('CompositionEvent') 1729 @DomName('CompositionEvent')
1694 class CompositionEvent extends UIEvent native "CompositionEvent" { 1730 class CompositionEvent extends UIEvent native "CompositionEvent" {
1695 factory CompositionEvent(String type, 1731 factory CompositionEvent(String type,
1696 {bool canBubble: false, bool cancelable: false, Window view, 1732 {bool canBubble: false, bool cancelable: false, Window view,
1697 String data}) { 1733 String data}) {
1698 if (view == null) { 1734 if (view == null) {
1699 view = window; 1735 view = window;
1700 } 1736 }
1701 var e = document.$dom_createEvent("CompositionEvent"); 1737 var e = document.$dom_createEvent("CompositionEvent");
1702 e.$dom_initCompositionEvent(type, canBubble, cancelable, view, data); 1738 e.$dom_initCompositionEvent(type, canBubble, cancelable, view, data);
1703 return e; 1739 return e;
1704 } 1740 }
1741 // To suppress missing implicit constructor warnings.
1742 factory CompositionEvent._() { throw new UnsupportedError("Not supported"); }
1705 1743
1706 @DomName('CompositionEvent.data') 1744 @DomName('CompositionEvent.data')
1707 @DocsEditable 1745 @DocsEditable
1708 final String data; 1746 final String data;
1709 1747
1710 @JSName('initCompositionEvent') 1748 @JSName('initCompositionEvent')
1711 @DomName('CompositionEvent.initCompositionEvent') 1749 @DomName('CompositionEvent.initCompositionEvent')
1712 @DocsEditable 1750 @DocsEditable
1713 void $dom_initCompositionEvent(String typeArg, bool canBubbleArg, bool cancela bleArg, Window viewArg, String dataArg) native; 1751 void $dom_initCompositionEvent(String typeArg, bool canBubbleArg, bool cancela bleArg, Window viewArg, String dataArg) native;
1714 1752
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
1820 // for details. All rights reserved. Use of this source code is governed by a 1858 // for details. All rights reserved. Use of this source code is governed by a
1821 // BSD-style license that can be found in the LICENSE file. 1859 // BSD-style license that can be found in the LICENSE file.
1822 1860
1823 1861
1824 @DocsEditable 1862 @DocsEditable
1825 @DomName('HTMLContentElement') 1863 @DomName('HTMLContentElement')
1826 @SupportedBrowser(SupportedBrowser.CHROME, '26') 1864 @SupportedBrowser(SupportedBrowser.CHROME, '26')
1827 @Experimental 1865 @Experimental
1828 // https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#cont ent-element 1866 // https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#cont ent-element
1829 class ContentElement extends _HTMLElement native "HTMLContentElement" { 1867 class ContentElement extends _HTMLElement native "HTMLContentElement" {
1868 // To suppress missing implicit constructor warnings.
1869 factory ContentElement._() { throw new UnsupportedError("Not supported"); }
1830 1870
1831 @DomName('HTMLContentElement.HTMLContentElement') 1871 @DomName('HTMLContentElement.HTMLContentElement')
1832 @DocsEditable 1872 @DocsEditable
1833 factory ContentElement() => document.$dom_createElement("content"); 1873 factory ContentElement() => document.$dom_createElement("content");
1834 1874
1835 /// Checks if this type is supported on the current platform. 1875 /// Checks if this type is supported on the current platform.
1836 static bool get supported => Element.isTagSupported('content'); 1876 static bool get supported => Element.isTagSupported('content');
1837 1877
1838 @DomName('HTMLContentElement.resetStyleInheritance') 1878 @DomName('HTMLContentElement.resetStyleInheritance')
1839 @DocsEditable 1879 @DocsEditable
1840 bool resetStyleInheritance; 1880 bool resetStyleInheritance;
1841 1881
1842 @DomName('HTMLContentElement.select') 1882 @DomName('HTMLContentElement.select')
1843 @DocsEditable 1883 @DocsEditable
1844 String select; 1884 String select;
1845 1885
1846 @DomName('HTMLContentElement.getDistributedNodes') 1886 @DomName('HTMLContentElement.getDistributedNodes')
1847 @DocsEditable 1887 @DocsEditable
1848 @Returns('NodeList') 1888 @Returns('NodeList')
1849 @Creates('NodeList') 1889 @Creates('NodeList')
1850 List<Node> getDistributedNodes() native; 1890 List<Node> getDistributedNodes() native;
1851 } 1891 }
1852 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1892 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1853 // for details. All rights reserved. Use of this source code is governed by a 1893 // for details. All rights reserved. Use of this source code is governed by a
1854 // BSD-style license that can be found in the LICENSE file. 1894 // BSD-style license that can be found in the LICENSE file.
1855 1895
1856 1896
1857 @DocsEditable 1897 @DocsEditable
1858 @DomName('Coordinates') 1898 @DomName('Coordinates')
1859 class Coordinates native "Coordinates" { 1899 class Coordinates extends Interceptor native "Coordinates" {
1860 1900
1861 @DomName('Coordinates.accuracy') 1901 @DomName('Coordinates.accuracy')
1862 @DocsEditable 1902 @DocsEditable
1863 final num accuracy; 1903 final num accuracy;
1864 1904
1865 @DomName('Coordinates.altitude') 1905 @DomName('Coordinates.altitude')
1866 @DocsEditable 1906 @DocsEditable
1867 final num altitude; 1907 final num altitude;
1868 1908
1869 @DomName('Coordinates.altitudeAccuracy') 1909 @DomName('Coordinates.altitudeAccuracy')
(...skipping 20 matching lines...) Expand all
1890 // for details. All rights reserved. Use of this source code is governed by a 1930 // for details. All rights reserved. Use of this source code is governed by a
1891 // BSD-style license that can be found in the LICENSE file. 1931 // BSD-style license that can be found in the LICENSE file.
1892 1932
1893 1933
1894 @DocsEditable 1934 @DocsEditable
1895 @DomName('Crypto') 1935 @DomName('Crypto')
1896 @SupportedBrowser(SupportedBrowser.CHROME) 1936 @SupportedBrowser(SupportedBrowser.CHROME)
1897 @SupportedBrowser(SupportedBrowser.SAFARI) 1937 @SupportedBrowser(SupportedBrowser.SAFARI)
1898 @Experimental 1938 @Experimental
1899 // http://www.w3.org/TR/WebCryptoAPI/ 1939 // http://www.w3.org/TR/WebCryptoAPI/
1900 class Crypto native "Crypto" { 1940 class Crypto extends Interceptor native "Crypto" {
1901 1941
1902 /// Checks if this type is supported on the current platform. 1942 /// Checks if this type is supported on the current platform.
1903 static bool get supported => JS('bool', '!!(window.crypto && window.crypto.get RandomValues)'); 1943 static bool get supported => JS('bool', '!!(window.crypto && window.crypto.get RandomValues)');
1904 1944
1905 @DomName('Crypto.getRandomValues') 1945 @DomName('Crypto.getRandomValues')
1906 @DocsEditable 1946 @DocsEditable
1907 @Creates('TypedData') 1947 @Creates('TypedData')
1908 @Returns('TypedData|Null') 1948 @Returns('TypedData|Null')
1909 TypedData getRandomValues(TypedData array) native; 1949 TypedData getRandomValues(TypedData array) native;
1910 } 1950 }
1911 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1951 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1912 // for details. All rights reserved. Use of this source code is governed by a 1952 // for details. All rights reserved. Use of this source code is governed by a
1913 // BSD-style license that can be found in the LICENSE file. 1953 // BSD-style license that can be found in the LICENSE file.
1914 1954
1915 1955
1916 @DocsEditable 1956 @DocsEditable
1917 @DomName('CSS') 1957 @DomName('CSS')
1918 // http://www.w3.org/TR/css3-conditional/#the-css-interface 1958 // http://www.w3.org/TR/css3-conditional/#the-css-interface
1919 @Experimental // None 1959 @Experimental // None
1920 class Css native "CSS" { 1960 class Css extends Interceptor native "CSS" {
1921 1961
1922 @DomName('CSS.supports') 1962 @DomName('CSS.supports')
1923 @DocsEditable 1963 @DocsEditable
1924 bool supports(String conditionText_OR_property, [String value]) native; 1964 bool supports(String conditionText_OR_property, [String value]) native;
1925 } 1965 }
1926 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1966 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1927 // for details. All rights reserved. Use of this source code is governed by a 1967 // for details. All rights reserved. Use of this source code is governed by a
1928 // BSD-style license that can be found in the LICENSE file. 1968 // BSD-style license that can be found in the LICENSE file.
1929 1969
1930 1970
1931 @DocsEditable 1971 @DocsEditable
1932 @DomName('CSSCharsetRule') 1972 @DomName('CSSCharsetRule')
1933 // http://dev.w3.org/csswg/cssom/#the-csscharsetrule-interface 1973 // http://dev.w3.org/csswg/cssom/#the-csscharsetrule-interface
1934 @Experimental 1974 @Experimental
1935 class CssCharsetRule extends CssRule native "CSSCharsetRule" { 1975 class CssCharsetRule extends CssRule native "CSSCharsetRule" {
1976 // To suppress missing implicit constructor warnings.
1977 factory CssCharsetRule._() { throw new UnsupportedError("Not supported"); }
1936 1978
1937 @DomName('CSSCharsetRule.encoding') 1979 @DomName('CSSCharsetRule.encoding')
1938 @DocsEditable 1980 @DocsEditable
1939 String encoding; 1981 String encoding;
1940 } 1982 }
1941 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1983 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1942 // for details. All rights reserved. Use of this source code is governed by a 1984 // for details. All rights reserved. Use of this source code is governed by a
1943 // BSD-style license that can be found in the LICENSE file. 1985 // BSD-style license that can be found in the LICENSE file.
1944 1986
1945 1987
1946 @DocsEditable 1988 @DocsEditable
1947 @DomName('WebKitCSSFilterRule') 1989 @DomName('WebKitCSSFilterRule')
1948 @SupportedBrowser(SupportedBrowser.CHROME) 1990 @SupportedBrowser(SupportedBrowser.CHROME)
1949 @SupportedBrowser(SupportedBrowser.SAFARI) 1991 @SupportedBrowser(SupportedBrowser.SAFARI)
1950 @Experimental 1992 @Experimental
1951 // http://www.w3.org/TR/filter-effects/ 1993 // http://www.w3.org/TR/filter-effects/
1952 class CssFilterRule extends CssRule native "WebKitCSSFilterRule" { 1994 class CssFilterRule extends CssRule native "WebKitCSSFilterRule" {
1995 // To suppress missing implicit constructor warnings.
1996 factory CssFilterRule._() { throw new UnsupportedError("Not supported"); }
1953 1997
1954 @DomName('WebKitCSSFilterRule.style') 1998 @DomName('WebKitCSSFilterRule.style')
1955 @DocsEditable 1999 @DocsEditable
1956 final CssStyleDeclaration style; 2000 final CssStyleDeclaration style;
1957 } 2001 }
1958 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2002 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1959 // for details. All rights reserved. Use of this source code is governed by a 2003 // for details. All rights reserved. Use of this source code is governed by a
1960 // BSD-style license that can be found in the LICENSE file. 2004 // BSD-style license that can be found in the LICENSE file.
1961 2005
1962 2006
1963 @DocsEditable 2007 @DocsEditable
1964 @DomName('WebKitCSSFilterValue') 2008 @DomName('WebKitCSSFilterValue')
1965 @SupportedBrowser(SupportedBrowser.CHROME) 2009 @SupportedBrowser(SupportedBrowser.CHROME)
1966 @SupportedBrowser(SupportedBrowser.SAFARI) 2010 @SupportedBrowser(SupportedBrowser.SAFARI)
1967 @Experimental 2011 @Experimental
1968 // http://dev.w3.org/csswg/cssom/ 2012 // http://dev.w3.org/csswg/cssom/
1969 @deprecated // deprecated 2013 @deprecated // deprecated
1970 class CssFilterValue extends _CssValueList native "WebKitCSSFilterValue" { 2014 class CssFilterValue extends _CssValueList native "WebKitCSSFilterValue" {
2015 // To suppress missing implicit constructor warnings.
2016 factory CssFilterValue._() { throw new UnsupportedError("Not supported"); }
1971 2017
1972 @DomName('WebKitCSSFilterValue.CSS_FILTER_BLUR') 2018 @DomName('WebKitCSSFilterValue.CSS_FILTER_BLUR')
1973 @DocsEditable 2019 @DocsEditable
1974 static const int CSS_FILTER_BLUR = 10; 2020 static const int CSS_FILTER_BLUR = 10;
1975 2021
1976 @DomName('WebKitCSSFilterValue.CSS_FILTER_BRIGHTNESS') 2022 @DomName('WebKitCSSFilterValue.CSS_FILTER_BRIGHTNESS')
1977 @DocsEditable 2023 @DocsEditable
1978 static const int CSS_FILTER_BRIGHTNESS = 8; 2024 static const int CSS_FILTER_BRIGHTNESS = 8;
1979 2025
1980 @DomName('WebKitCSSFilterValue.CSS_FILTER_CONTRAST') 2026 @DomName('WebKitCSSFilterValue.CSS_FILTER_CONTRAST')
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
2028 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2074 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2029 // for details. All rights reserved. Use of this source code is governed by a 2075 // for details. All rights reserved. Use of this source code is governed by a
2030 // BSD-style license that can be found in the LICENSE file. 2076 // BSD-style license that can be found in the LICENSE file.
2031 2077
2032 2078
2033 @DocsEditable 2079 @DocsEditable
2034 @DomName('CSSFontFaceLoadEvent') 2080 @DomName('CSSFontFaceLoadEvent')
2035 // http://www.w3.org/TR/css3-fonts/ 2081 // http://www.w3.org/TR/css3-fonts/
2036 @Experimental 2082 @Experimental
2037 class CssFontFaceLoadEvent extends Event native "CSSFontFaceLoadEvent" { 2083 class CssFontFaceLoadEvent extends Event native "CSSFontFaceLoadEvent" {
2084 // To suppress missing implicit constructor warnings.
2085 factory CssFontFaceLoadEvent._() { throw new UnsupportedError("Not supported") ; }
2038 2086
2039 @DomName('CSSFontFaceLoadEvent.error') 2087 @DomName('CSSFontFaceLoadEvent.error')
2040 @DocsEditable 2088 @DocsEditable
2041 final DomError error; 2089 final DomError error;
2042 2090
2043 @DomName('CSSFontFaceLoadEvent.fontface') 2091 @DomName('CSSFontFaceLoadEvent.fontface')
2044 @DocsEditable 2092 @DocsEditable
2045 final CssFontFaceRule fontface; 2093 final CssFontFaceRule fontface;
2046 } 2094 }
2047 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2095 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2048 // for details. All rights reserved. Use of this source code is governed by a 2096 // for details. All rights reserved. Use of this source code is governed by a
2049 // BSD-style license that can be found in the LICENSE file. 2097 // BSD-style license that can be found in the LICENSE file.
2050 2098
2051 2099
2052 @DocsEditable 2100 @DocsEditable
2053 @DomName('CSSFontFaceRule') 2101 @DomName('CSSFontFaceRule')
2054 class CssFontFaceRule extends CssRule native "CSSFontFaceRule" { 2102 class CssFontFaceRule extends CssRule native "CSSFontFaceRule" {
2103 // To suppress missing implicit constructor warnings.
2104 factory CssFontFaceRule._() { throw new UnsupportedError("Not supported"); }
2055 2105
2056 @DomName('CSSFontFaceRule.style') 2106 @DomName('CSSFontFaceRule.style')
2057 @DocsEditable 2107 @DocsEditable
2058 final CssStyleDeclaration style; 2108 final CssStyleDeclaration style;
2059 } 2109 }
2060 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2110 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2061 // for details. All rights reserved. Use of this source code is governed by a 2111 // for details. All rights reserved. Use of this source code is governed by a
2062 // BSD-style license that can be found in the LICENSE file. 2112 // BSD-style license that can be found in the LICENSE file.
2063 2113
2064 2114
2065 @DocsEditable 2115 @DocsEditable
2066 @DomName('CSSHostRule') 2116 @DomName('CSSHostRule')
2067 @SupportedBrowser(SupportedBrowser.CHROME, '26') 2117 @SupportedBrowser(SupportedBrowser.CHROME, '26')
2068 @Experimental 2118 @Experimental
2069 // https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#css- host-rule-interface 2119 // https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#css- host-rule-interface
2070 class CssHostRule extends CssRule native "CSSHostRule" { 2120 class CssHostRule extends CssRule native "CSSHostRule" {
2121 // To suppress missing implicit constructor warnings.
2122 factory CssHostRule._() { throw new UnsupportedError("Not supported"); }
2071 2123
2072 @DomName('CSSHostRule.cssRules') 2124 @DomName('CSSHostRule.cssRules')
2073 @DocsEditable 2125 @DocsEditable
2074 @Returns('_CssRuleList') 2126 @Returns('_CssRuleList')
2075 @Creates('_CssRuleList') 2127 @Creates('_CssRuleList')
2076 final List<CssRule> cssRules; 2128 final List<CssRule> cssRules;
2077 2129
2078 @DomName('CSSHostRule.deleteRule') 2130 @DomName('CSSHostRule.deleteRule')
2079 @DocsEditable 2131 @DocsEditable
2080 void deleteRule(int index) native; 2132 void deleteRule(int index) native;
2081 2133
2082 @DomName('CSSHostRule.insertRule') 2134 @DomName('CSSHostRule.insertRule')
2083 @DocsEditable 2135 @DocsEditable
2084 int insertRule(String rule, int index) native; 2136 int insertRule(String rule, int index) native;
2085 } 2137 }
2086 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2138 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2087 // for details. All rights reserved. Use of this source code is governed by a 2139 // for details. All rights reserved. Use of this source code is governed by a
2088 // BSD-style license that can be found in the LICENSE file. 2140 // BSD-style license that can be found in the LICENSE file.
2089 2141
2090 2142
2091 @DocsEditable 2143 @DocsEditable
2092 @DomName('CSSImportRule') 2144 @DomName('CSSImportRule')
2093 class CssImportRule extends CssRule native "CSSImportRule" { 2145 class CssImportRule extends CssRule native "CSSImportRule" {
2146 // To suppress missing implicit constructor warnings.
2147 factory CssImportRule._() { throw new UnsupportedError("Not supported"); }
2094 2148
2095 @DomName('CSSImportRule.href') 2149 @DomName('CSSImportRule.href')
2096 @DocsEditable 2150 @DocsEditable
2097 final String href; 2151 final String href;
2098 2152
2099 @DomName('CSSImportRule.media') 2153 @DomName('CSSImportRule.media')
2100 @DocsEditable 2154 @DocsEditable
2101 final MediaList media; 2155 final MediaList media;
2102 2156
2103 @DomName('CSSImportRule.styleSheet') 2157 @DomName('CSSImportRule.styleSheet')
2104 @DocsEditable 2158 @DocsEditable
2105 final CssStyleSheet styleSheet; 2159 final CssStyleSheet styleSheet;
2106 } 2160 }
2107 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2161 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2108 // for details. All rights reserved. Use of this source code is governed by a 2162 // for details. All rights reserved. Use of this source code is governed by a
2109 // BSD-style license that can be found in the LICENSE file. 2163 // BSD-style license that can be found in the LICENSE file.
2110 2164
2111 2165
2112 @DocsEditable 2166 @DocsEditable
2113 @DomName('WebKitCSSKeyframeRule') 2167 @DomName('WebKitCSSKeyframeRule')
2114 @SupportedBrowser(SupportedBrowser.CHROME) 2168 @SupportedBrowser(SupportedBrowser.CHROME)
2115 @SupportedBrowser(SupportedBrowser.SAFARI) 2169 @SupportedBrowser(SupportedBrowser.SAFARI)
2116 @Experimental 2170 @Experimental
2117 // http://www.w3.org/TR/css3-animations/#CSSKeyframeRule-interface 2171 // http://www.w3.org/TR/css3-animations/#CSSKeyframeRule-interface
2118 class CssKeyframeRule extends CssRule native "CSSKeyframeRule,MozCSSKeyframeRule ,WebKitCSSKeyframeRule" { 2172 class CssKeyframeRule extends CssRule native "CSSKeyframeRule,MozCSSKeyframeRule ,WebKitCSSKeyframeRule" {
2173 // To suppress missing implicit constructor warnings.
2174 factory CssKeyframeRule._() { throw new UnsupportedError("Not supported"); }
2119 2175
2120 @DomName('WebKitCSSKeyframeRule.keyText') 2176 @DomName('WebKitCSSKeyframeRule.keyText')
2121 @DocsEditable 2177 @DocsEditable
2122 String keyText; 2178 String keyText;
2123 2179
2124 @DomName('WebKitCSSKeyframeRule.style') 2180 @DomName('WebKitCSSKeyframeRule.style')
2125 @DocsEditable 2181 @DocsEditable
2126 final CssStyleDeclaration style; 2182 final CssStyleDeclaration style;
2127 } 2183 }
2128 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2184 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2129 // for details. All rights reserved. Use of this source code is governed by a 2185 // for details. All rights reserved. Use of this source code is governed by a
2130 // BSD-style license that can be found in the LICENSE file. 2186 // BSD-style license that can be found in the LICENSE file.
2131 2187
2132 2188
2133 @DocsEditable 2189 @DocsEditable
2134 @DomName('WebKitCSSKeyframesRule') 2190 @DomName('WebKitCSSKeyframesRule')
2135 @SupportedBrowser(SupportedBrowser.CHROME) 2191 @SupportedBrowser(SupportedBrowser.CHROME)
2136 @SupportedBrowser(SupportedBrowser.SAFARI) 2192 @SupportedBrowser(SupportedBrowser.SAFARI)
2137 @Experimental 2193 @Experimental
2138 // http://www.w3.org/TR/css3-animations/#csskeyframesrule 2194 // http://www.w3.org/TR/css3-animations/#csskeyframesrule
2139 class CssKeyframesRule extends CssRule native "CSSKeyframesRule,MozCSSKeyframesR ule,WebKitCSSKeyframesRule" { 2195 class CssKeyframesRule extends CssRule native "CSSKeyframesRule,MozCSSKeyframesR ule,WebKitCSSKeyframesRule" {
2196 // To suppress missing implicit constructor warnings.
2197 factory CssKeyframesRule._() { throw new UnsupportedError("Not supported"); }
2140 2198
2141 @DomName('WebKitCSSKeyframesRule.cssRules') 2199 @DomName('WebKitCSSKeyframesRule.cssRules')
2142 @DocsEditable 2200 @DocsEditable
2143 @Returns('_CssRuleList') 2201 @Returns('_CssRuleList')
2144 @Creates('_CssRuleList') 2202 @Creates('_CssRuleList')
2145 final List<CssRule> cssRules; 2203 final List<CssRule> cssRules;
2146 2204
2147 @DomName('WebKitCSSKeyframesRule.name') 2205 @DomName('WebKitCSSKeyframesRule.name')
2148 @DocsEditable 2206 @DocsEditable
2149 String name; 2207 String name;
(...skipping 27 matching lines...) Expand all
2177 @DocsEditable 2235 @DocsEditable
2178 @DomName('WebKitCSSMatrix') 2236 @DomName('WebKitCSSMatrix')
2179 @SupportedBrowser(SupportedBrowser.CHROME) 2237 @SupportedBrowser(SupportedBrowser.CHROME)
2180 @SupportedBrowser(SupportedBrowser.SAFARI) 2238 @SupportedBrowser(SupportedBrowser.SAFARI)
2181 @Experimental 2239 @Experimental
2182 @SupportedBrowser(SupportedBrowser.CHROME) 2240 @SupportedBrowser(SupportedBrowser.CHROME)
2183 @SupportedBrowser(SupportedBrowser.SAFARI) 2241 @SupportedBrowser(SupportedBrowser.SAFARI)
2184 @Experimental 2242 @Experimental
2185 // http://dev.w3.org/csswg/cssom/ 2243 // http://dev.w3.org/csswg/cssom/
2186 @deprecated // deprecated 2244 @deprecated // deprecated
2187 class CssMatrix native "WebKitCSSMatrix" { 2245 class CssMatrix extends Interceptor native "WebKitCSSMatrix" {
2188 2246
2189 @DomName('WebKitCSSMatrix.CSSMatrix') 2247 @DomName('WebKitCSSMatrix.CSSMatrix')
2190 @DocsEditable 2248 @DocsEditable
2191 factory CssMatrix([String cssValue]) { 2249 factory CssMatrix([String cssValue]) {
2192 if (cssValue != null) { 2250 if (cssValue != null) {
2193 return CssMatrix._create_1(cssValue); 2251 return CssMatrix._create_1(cssValue);
2194 } 2252 }
2195 return CssMatrix._create_2(); 2253 return CssMatrix._create_2();
2196 } 2254 }
2197 static CssMatrix _create_1(cssValue) => JS('CssMatrix', 'new WebKitCSSMatrix(# )', cssValue); 2255 static CssMatrix _create_1(cssValue) => JS('CssMatrix', 'new WebKitCSSMatrix(# )', cssValue);
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
2326 CssMatrix translate(num x, num y, num z) native; 2384 CssMatrix translate(num x, num y, num z) native;
2327 } 2385 }
2328 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2386 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2329 // for details. All rights reserved. Use of this source code is governed by a 2387 // for details. All rights reserved. Use of this source code is governed by a
2330 // BSD-style license that can be found in the LICENSE file. 2388 // BSD-style license that can be found in the LICENSE file.
2331 2389
2332 2390
2333 @DocsEditable 2391 @DocsEditable
2334 @DomName('CSSMediaRule') 2392 @DomName('CSSMediaRule')
2335 class CssMediaRule extends CssRule native "CSSMediaRule" { 2393 class CssMediaRule extends CssRule native "CSSMediaRule" {
2394 // To suppress missing implicit constructor warnings.
2395 factory CssMediaRule._() { throw new UnsupportedError("Not supported"); }
2336 2396
2337 @DomName('CSSMediaRule.cssRules') 2397 @DomName('CSSMediaRule.cssRules')
2338 @DocsEditable 2398 @DocsEditable
2339 @Returns('_CssRuleList') 2399 @Returns('_CssRuleList')
2340 @Creates('_CssRuleList') 2400 @Creates('_CssRuleList')
2341 final List<CssRule> cssRules; 2401 final List<CssRule> cssRules;
2342 2402
2343 @DomName('CSSMediaRule.media') 2403 @DomName('CSSMediaRule.media')
2344 @DocsEditable 2404 @DocsEditable
2345 final MediaList media; 2405 final MediaList media;
(...skipping 12 matching lines...) Expand all
2358 2418
2359 2419
2360 @DocsEditable 2420 @DocsEditable
2361 @DomName('WebKitCSSMixFunctionValue') 2421 @DomName('WebKitCSSMixFunctionValue')
2362 @SupportedBrowser(SupportedBrowser.CHROME) 2422 @SupportedBrowser(SupportedBrowser.CHROME)
2363 @SupportedBrowser(SupportedBrowser.SAFARI) 2423 @SupportedBrowser(SupportedBrowser.SAFARI)
2364 @Experimental 2424 @Experimental
2365 // http://dev.w3.org/csswg/cssom/ 2425 // http://dev.w3.org/csswg/cssom/
2366 @deprecated // deprecated 2426 @deprecated // deprecated
2367 class CssMixFunctionValue extends _CssValueList native "WebKitCSSMixFunctionValu e" { 2427 class CssMixFunctionValue extends _CssValueList native "WebKitCSSMixFunctionValu e" {
2428 // To suppress missing implicit constructor warnings.
2429 factory CssMixFunctionValue._() { throw new UnsupportedError("Not supported"); }
2368 } 2430 }
2369 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2431 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2370 // for details. All rights reserved. Use of this source code is governed by a 2432 // for details. All rights reserved. Use of this source code is governed by a
2371 // BSD-style license that can be found in the LICENSE file. 2433 // BSD-style license that can be found in the LICENSE file.
2372 2434
2373 2435
2374 @DocsEditable 2436 @DocsEditable
2375 @DomName('CSSPageRule') 2437 @DomName('CSSPageRule')
2376 class CssPageRule extends CssRule native "CSSPageRule" { 2438 class CssPageRule extends CssRule native "CSSPageRule" {
2439 // To suppress missing implicit constructor warnings.
2440 factory CssPageRule._() { throw new UnsupportedError("Not supported"); }
2377 2441
2378 @DomName('CSSPageRule.selectorText') 2442 @DomName('CSSPageRule.selectorText')
2379 @DocsEditable 2443 @DocsEditable
2380 String selectorText; 2444 String selectorText;
2381 2445
2382 @DomName('CSSPageRule.style') 2446 @DomName('CSSPageRule.style')
2383 @DocsEditable 2447 @DocsEditable
2384 final CssStyleDeclaration style; 2448 final CssStyleDeclaration style;
2385 } 2449 }
2386 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2450 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2387 // for details. All rights reserved. Use of this source code is governed by a 2451 // for details. All rights reserved. Use of this source code is governed by a
2388 // BSD-style license that can be found in the LICENSE file. 2452 // BSD-style license that can be found in the LICENSE file.
2389 2453
2390 2454
2391 @DocsEditable 2455 @DocsEditable
2392 @DomName('WebKitCSSRegionRule') 2456 @DomName('WebKitCSSRegionRule')
2393 @SupportedBrowser(SupportedBrowser.CHROME) 2457 @SupportedBrowser(SupportedBrowser.CHROME)
2394 @SupportedBrowser(SupportedBrowser.SAFARI) 2458 @SupportedBrowser(SupportedBrowser.SAFARI)
2395 @Experimental 2459 @Experimental
2396 // http://dev.w3.org/csswg/css-regions/#region-style-rule-interface 2460 // http://dev.w3.org/csswg/css-regions/#region-style-rule-interface
2397 class CssRegionRule extends CssRule native "WebKitCSSRegionRule" { 2461 class CssRegionRule extends CssRule native "WebKitCSSRegionRule" {
2462 // To suppress missing implicit constructor warnings.
2463 factory CssRegionRule._() { throw new UnsupportedError("Not supported"); }
2398 2464
2399 @DomName('WebKitCSSRegionRule.cssRules') 2465 @DomName('WebKitCSSRegionRule.cssRules')
2400 @DocsEditable 2466 @DocsEditable
2401 @Returns('_CssRuleList') 2467 @Returns('_CssRuleList')
2402 @Creates('_CssRuleList') 2468 @Creates('_CssRuleList')
2403 final List<CssRule> cssRules; 2469 final List<CssRule> cssRules;
2404 } 2470 }
2405 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2471 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2406 // for details. All rights reserved. Use of this source code is governed by a 2472 // for details. All rights reserved. Use of this source code is governed by a
2407 // BSD-style license that can be found in the LICENSE file. 2473 // BSD-style license that can be found in the LICENSE file.
2408 2474
2409 2475
2410 @DocsEditable 2476 @DocsEditable
2411 @DomName('CSSRule') 2477 @DomName('CSSRule')
2412 class CssRule native "CSSRule" { 2478 class CssRule extends Interceptor native "CSSRule" {
2413 2479
2414 @DomName('CSSRule.CHARSET_RULE') 2480 @DomName('CSSRule.CHARSET_RULE')
2415 @DocsEditable 2481 @DocsEditable
2416 static const int CHARSET_RULE = 2; 2482 static const int CHARSET_RULE = 2;
2417 2483
2418 @DomName('CSSRule.FONT_FACE_RULE') 2484 @DomName('CSSRule.FONT_FACE_RULE')
2419 @DocsEditable 2485 @DocsEditable
2420 static const int FONT_FACE_RULE = 5; 2486 static const int FONT_FACE_RULE = 5;
2421 2487
2422 @DomName('CSSRule.HOST_RULE') 2488 @DomName('CSSRule.HOST_RULE')
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
2490 @DomName('CSSRule.type') 2556 @DomName('CSSRule.type')
2491 @DocsEditable 2557 @DocsEditable
2492 final int type; 2558 final int type;
2493 } 2559 }
2494 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2560 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2495 // for details. All rights reserved. Use of this source code is governed by a 2561 // for details. All rights reserved. Use of this source code is governed by a
2496 // BSD-style license that can be found in the LICENSE file. 2562 // BSD-style license that can be found in the LICENSE file.
2497 2563
2498 2564
2499 @DomName('CSSStyleDeclaration') 2565 @DomName('CSSStyleDeclaration')
2500 class CssStyleDeclaration native "CSSStyleDeclaration,MSStyleCSSProperties,CSS2P roperties" { 2566 class CssStyleDeclaration extends Interceptor native "CSSStyleDeclaration,MSStyl eCSSProperties,CSS2Properties" {
2501 factory CssStyleDeclaration() => new CssStyleDeclaration.css(''); 2567 factory CssStyleDeclaration() => new CssStyleDeclaration.css('');
2502 2568
2503 factory CssStyleDeclaration.css(String css) { 2569 factory CssStyleDeclaration.css(String css) {
2504 final style = new Element.tag('div').style; 2570 final style = new Element.tag('div').style;
2505 style.cssText = css; 2571 style.cssText = css;
2506 return style; 2572 return style;
2507 } 2573 }
2508 2574
2509 2575
2510 @DomName('CSSStyleDeclaration.cssText') 2576 @DomName('CSSStyleDeclaration.cssText')
(...skipping 3221 matching lines...) Expand 10 before | Expand all | Expand 10 after
5732 } 5798 }
5733 } 5799 }
5734 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5800 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5735 // for details. All rights reserved. Use of this source code is governed by a 5801 // for details. All rights reserved. Use of this source code is governed by a
5736 // BSD-style license that can be found in the LICENSE file. 5802 // BSD-style license that can be found in the LICENSE file.
5737 5803
5738 5804
5739 @DocsEditable 5805 @DocsEditable
5740 @DomName('CSSStyleRule') 5806 @DomName('CSSStyleRule')
5741 class CssStyleRule extends CssRule native "CSSStyleRule" { 5807 class CssStyleRule extends CssRule native "CSSStyleRule" {
5808 // To suppress missing implicit constructor warnings.
5809 factory CssStyleRule._() { throw new UnsupportedError("Not supported"); }
5742 5810
5743 @DomName('CSSStyleRule.selectorText') 5811 @DomName('CSSStyleRule.selectorText')
5744 @DocsEditable 5812 @DocsEditable
5745 String selectorText; 5813 String selectorText;
5746 5814
5747 @DomName('CSSStyleRule.style') 5815 @DomName('CSSStyleRule.style')
5748 @DocsEditable 5816 @DocsEditable
5749 final CssStyleDeclaration style; 5817 final CssStyleDeclaration style;
5750 } 5818 }
5751 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5819 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5752 // for details. All rights reserved. Use of this source code is governed by a 5820 // for details. All rights reserved. Use of this source code is governed by a
5753 // BSD-style license that can be found in the LICENSE file. 5821 // BSD-style license that can be found in the LICENSE file.
5754 5822
5755 5823
5756 @DocsEditable 5824 @DocsEditable
5757 @DomName('CSSStyleSheet') 5825 @DomName('CSSStyleSheet')
5758 class CssStyleSheet extends StyleSheet native "CSSStyleSheet" { 5826 class CssStyleSheet extends StyleSheet native "CSSStyleSheet" {
5827 // To suppress missing implicit constructor warnings.
5828 factory CssStyleSheet._() { throw new UnsupportedError("Not supported"); }
5759 5829
5760 @DomName('CSSStyleSheet.cssRules') 5830 @DomName('CSSStyleSheet.cssRules')
5761 @DocsEditable 5831 @DocsEditable
5762 @Returns('_CssRuleList') 5832 @Returns('_CssRuleList')
5763 @Creates('_CssRuleList') 5833 @Creates('_CssRuleList')
5764 final List<CssRule> cssRules; 5834 final List<CssRule> cssRules;
5765 5835
5766 @DomName('CSSStyleSheet.ownerRule') 5836 @DomName('CSSStyleSheet.ownerRule')
5767 @DocsEditable 5837 @DocsEditable
5768 final CssRule ownerRule; 5838 final CssRule ownerRule;
(...skipping 24 matching lines...) Expand all
5793 void removeRule(int index) native; 5863 void removeRule(int index) native;
5794 } 5864 }
5795 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5865 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5796 // for details. All rights reserved. Use of this source code is governed by a 5866 // for details. All rights reserved. Use of this source code is governed by a
5797 // BSD-style license that can be found in the LICENSE file. 5867 // BSD-style license that can be found in the LICENSE file.
5798 5868
5799 5869
5800 @DocsEditable 5870 @DocsEditable
5801 @DomName('CSSSupportsRule') 5871 @DomName('CSSSupportsRule')
5802 class CssSupportsRule extends CssRule native "CSSSupportsRule" { 5872 class CssSupportsRule extends CssRule native "CSSSupportsRule" {
5873 // To suppress missing implicit constructor warnings.
5874 factory CssSupportsRule._() { throw new UnsupportedError("Not supported"); }
5803 5875
5804 @DomName('CSSSupportsRule.conditionText') 5876 @DomName('CSSSupportsRule.conditionText')
5805 @DocsEditable 5877 @DocsEditable
5806 final String conditionText; 5878 final String conditionText;
5807 5879
5808 @DomName('CSSSupportsRule.cssRules') 5880 @DomName('CSSSupportsRule.cssRules')
5809 @DocsEditable 5881 @DocsEditable
5810 @Returns('_CssRuleList') 5882 @Returns('_CssRuleList')
5811 @Creates('_CssRuleList') 5883 @Creates('_CssRuleList')
5812 final List<CssRule> cssRules; 5884 final List<CssRule> cssRules;
(...skipping 12 matching lines...) Expand all
5825 5897
5826 5898
5827 @DocsEditable 5899 @DocsEditable
5828 @DomName('WebKitCSSTransformValue') 5900 @DomName('WebKitCSSTransformValue')
5829 @SupportedBrowser(SupportedBrowser.CHROME) 5901 @SupportedBrowser(SupportedBrowser.CHROME)
5830 @SupportedBrowser(SupportedBrowser.SAFARI) 5902 @SupportedBrowser(SupportedBrowser.SAFARI)
5831 @Experimental 5903 @Experimental
5832 // http://dev.w3.org/csswg/cssom/ 5904 // http://dev.w3.org/csswg/cssom/
5833 @deprecated // deprecated 5905 @deprecated // deprecated
5834 class CssTransformValue extends _CssValueList native "WebKitCSSTransformValue" { 5906 class CssTransformValue extends _CssValueList native "WebKitCSSTransformValue" {
5907 // To suppress missing implicit constructor warnings.
5908 factory CssTransformValue._() { throw new UnsupportedError("Not supported"); }
5835 5909
5836 @DomName('WebKitCSSTransformValue.CSS_MATRIX') 5910 @DomName('WebKitCSSTransformValue.CSS_MATRIX')
5837 @DocsEditable 5911 @DocsEditable
5838 static const int CSS_MATRIX = 11; 5912 static const int CSS_MATRIX = 11;
5839 5913
5840 @DomName('WebKitCSSTransformValue.CSS_MATRIX3D') 5914 @DomName('WebKitCSSTransformValue.CSS_MATRIX3D')
5841 @DocsEditable 5915 @DocsEditable
5842 static const int CSS_MATRIX3D = 21; 5916 static const int CSS_MATRIX3D = 21;
5843 5917
5844 @DomName('WebKitCSSTransformValue.CSS_PERSPECTIVE') 5918 @DomName('WebKitCSSTransformValue.CSS_PERSPECTIVE')
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
5928 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6002 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5929 // for details. All rights reserved. Use of this source code is governed by a 6003 // for details. All rights reserved. Use of this source code is governed by a
5930 // BSD-style license that can be found in the LICENSE file. 6004 // BSD-style license that can be found in the LICENSE file.
5931 6005
5932 6006
5933 @DocsEditable 6007 @DocsEditable
5934 @DomName('CSSUnknownRule') 6008 @DomName('CSSUnknownRule')
5935 // http://dev.w3.org/csswg/cssom/#the-cssstylesheet-interface 6009 // http://dev.w3.org/csswg/cssom/#the-cssstylesheet-interface
5936 @deprecated // deprecated 6010 @deprecated // deprecated
5937 class CssUnknownRule extends CssRule native "CSSUnknownRule" { 6011 class CssUnknownRule extends CssRule native "CSSUnknownRule" {
6012 // To suppress missing implicit constructor warnings.
6013 factory CssUnknownRule._() { throw new UnsupportedError("Not supported"); }
5938 } 6014 }
5939 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6015 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5940 // for details. All rights reserved. Use of this source code is governed by a 6016 // for details. All rights reserved. Use of this source code is governed by a
5941 // BSD-style license that can be found in the LICENSE file. 6017 // BSD-style license that can be found in the LICENSE file.
5942 6018
5943 6019
5944 @DocsEditable 6020 @DocsEditable
5945 @DomName('CustomElementConstructor') 6021 @DomName('CustomElementConstructor')
5946 // https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/custom/index.html#dfn- custom-element-constructor-generation 6022 // https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/custom/index.html#dfn- custom-element-constructor-generation
5947 @deprecated // experimental 6023 @deprecated // experimental
5948 class CustomElementConstructor native "CustomElementConstructor" { 6024 class CustomElementConstructor extends Interceptor native "CustomElementConstruc tor" {
5949 } 6025 }
5950 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6026 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5951 // for details. All rights reserved. Use of this source code is governed by a 6027 // for details. All rights reserved. Use of this source code is governed by a
5952 // BSD-style license that can be found in the LICENSE file. 6028 // BSD-style license that can be found in the LICENSE file.
5953 6029
5954 // WARNING: Do not edit - generated code. 6030 // WARNING: Do not edit - generated code.
5955 6031
5956 6032
5957 @DomName('CustomEvent') 6033 @DomName('CustomEvent')
5958 class CustomEvent extends Event native "CustomEvent" { 6034 class CustomEvent extends Event native "CustomEvent" {
5959 factory CustomEvent(String type, 6035 factory CustomEvent(String type,
5960 {bool canBubble: true, bool cancelable: true, Object detail}) { 6036 {bool canBubble: true, bool cancelable: true, Object detail}) {
5961 6037
5962 final CustomEvent e = document.$dom_createEvent("CustomEvent"); 6038 final CustomEvent e = document.$dom_createEvent("CustomEvent");
5963 e.$dom_initCustomEvent(type, canBubble, cancelable, detail); 6039 e.$dom_initCustomEvent(type, canBubble, cancelable, detail);
5964 6040
5965 return e; 6041 return e;
5966 } 6042 }
6043 // To suppress missing implicit constructor warnings.
6044 factory CustomEvent._() { throw new UnsupportedError("Not supported"); }
5967 6045
5968 @DomName('CustomEvent.detail') 6046 @DomName('CustomEvent.detail')
5969 @DocsEditable 6047 @DocsEditable
5970 @Creates('Null') 6048 @Creates('Null')
5971 final Object detail; 6049 final Object detail;
5972 6050
5973 @JSName('initCustomEvent') 6051 @JSName('initCustomEvent')
5974 @DomName('CustomEvent.initCustomEvent') 6052 @DomName('CustomEvent.initCustomEvent')
5975 @DocsEditable 6053 @DocsEditable
5976 void $dom_initCustomEvent(String typeArg, bool canBubbleArg, bool cancelableAr g, Object detailArg) native; 6054 void $dom_initCustomEvent(String typeArg, bool canBubbleArg, bool cancelableAr g, Object detailArg) native;
5977 6055
5978 } 6056 }
5979 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6057 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5980 // for details. All rights reserved. Use of this source code is governed by a 6058 // for details. All rights reserved. Use of this source code is governed by a
5981 // BSD-style license that can be found in the LICENSE file. 6059 // BSD-style license that can be found in the LICENSE file.
5982 6060
5983 6061
5984 @DocsEditable 6062 @DocsEditable
5985 @DomName('HTMLDListElement') 6063 @DomName('HTMLDListElement')
5986 class DListElement extends _HTMLElement native "HTMLDListElement" { 6064 class DListElement extends _HTMLElement native "HTMLDListElement" {
6065 // To suppress missing implicit constructor warnings.
6066 factory DListElement._() { throw new UnsupportedError("Not supported"); }
5987 6067
5988 @DomName('HTMLDListElement.HTMLDListElement') 6068 @DomName('HTMLDListElement.HTMLDListElement')
5989 @DocsEditable 6069 @DocsEditable
5990 factory DListElement() => document.$dom_createElement("dl"); 6070 factory DListElement() => document.$dom_createElement("dl");
5991 } 6071 }
5992 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6072 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5993 // for details. All rights reserved. Use of this source code is governed by a 6073 // for details. All rights reserved. Use of this source code is governed by a
5994 // BSD-style license that can be found in the LICENSE file. 6074 // BSD-style license that can be found in the LICENSE file.
5995 6075
5996 6076
5997 @DocsEditable 6077 @DocsEditable
5998 @DomName('HTMLDataListElement') 6078 @DomName('HTMLDataListElement')
5999 @SupportedBrowser(SupportedBrowser.CHROME) 6079 @SupportedBrowser(SupportedBrowser.CHROME)
6000 @SupportedBrowser(SupportedBrowser.FIREFOX) 6080 @SupportedBrowser(SupportedBrowser.FIREFOX)
6001 @SupportedBrowser(SupportedBrowser.IE, '10') 6081 @SupportedBrowser(SupportedBrowser.IE, '10')
6002 @SupportedBrowser(SupportedBrowser.SAFARI) 6082 @SupportedBrowser(SupportedBrowser.SAFARI)
6003 class DataListElement extends _HTMLElement native "HTMLDataListElement" { 6083 class DataListElement extends _HTMLElement native "HTMLDataListElement" {
6084 // To suppress missing implicit constructor warnings.
6085 factory DataListElement._() { throw new UnsupportedError("Not supported"); }
6004 6086
6005 @DomName('HTMLDataListElement.HTMLDataListElement') 6087 @DomName('HTMLDataListElement.HTMLDataListElement')
6006 @DocsEditable 6088 @DocsEditable
6007 factory DataListElement() => document.$dom_createElement("datalist"); 6089 factory DataListElement() => document.$dom_createElement("datalist");
6008 6090
6009 /// Checks if this type is supported on the current platform. 6091 /// Checks if this type is supported on the current platform.
6010 static bool get supported => Element.isTagSupported('datalist'); 6092 static bool get supported => Element.isTagSupported('datalist');
6011 6093
6012 @DomName('HTMLDataListElement.options') 6094 @DomName('HTMLDataListElement.options')
6013 @DocsEditable 6095 @DocsEditable
6014 final HtmlCollection options; 6096 final HtmlCollection options;
6015 } 6097 }
6016 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6098 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6017 // for details. All rights reserved. Use of this source code is governed by a 6099 // for details. All rights reserved. Use of this source code is governed by a
6018 // BSD-style license that can be found in the LICENSE file. 6100 // BSD-style license that can be found in the LICENSE file.
6019 6101
6020 6102
6021 @DocsEditable 6103 @DocsEditable
6022 @DomName('Clipboard') 6104 @DomName('Clipboard')
6023 class DataTransfer native "Clipboard" { 6105 class DataTransfer extends Interceptor native "Clipboard" {
6024 6106
6025 @DomName('Clipboard.dropEffect') 6107 @DomName('Clipboard.dropEffect')
6026 @DocsEditable 6108 @DocsEditable
6027 String dropEffect; 6109 String dropEffect;
6028 6110
6029 @DomName('Clipboard.effectAllowed') 6111 @DomName('Clipboard.effectAllowed')
6030 @DocsEditable 6112 @DocsEditable
6031 String effectAllowed; 6113 String effectAllowed;
6032 6114
6033 @DomName('Clipboard.files') 6115 @DomName('Clipboard.files')
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
6078 } 6160 }
6079 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6161 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6080 // for details. All rights reserved. Use of this source code is governed by a 6162 // for details. All rights reserved. Use of this source code is governed by a
6081 // BSD-style license that can be found in the LICENSE file. 6163 // BSD-style license that can be found in the LICENSE file.
6082 6164
6083 6165
6084 @DocsEditable 6166 @DocsEditable
6085 @DomName('DataTransferItem') 6167 @DomName('DataTransferItem')
6086 // http://www.w3.org/TR/2011/WD-html5-20110113/dnd.html#the-datatransferitem-int erface 6168 // http://www.w3.org/TR/2011/WD-html5-20110113/dnd.html#the-datatransferitem-int erface
6087 @Experimental 6169 @Experimental
6088 class DataTransferItem native "DataTransferItem" { 6170 class DataTransferItem extends Interceptor native "DataTransferItem" {
6089 6171
6090 @DomName('DataTransferItem.kind') 6172 @DomName('DataTransferItem.kind')
6091 @DocsEditable 6173 @DocsEditable
6092 final String kind; 6174 final String kind;
6093 6175
6094 @DomName('DataTransferItem.type') 6176 @DomName('DataTransferItem.type')
6095 @DocsEditable 6177 @DocsEditable
6096 final String type; 6178 final String type;
6097 6179
6098 @DomName('DataTransferItem.getAsFile') 6180 @DomName('DataTransferItem.getAsFile')
(...skipping 25 matching lines...) Expand all
6124 } 6206 }
6125 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6207 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6126 // for details. All rights reserved. Use of this source code is governed by a 6208 // for details. All rights reserved. Use of this source code is governed by a
6127 // BSD-style license that can be found in the LICENSE file. 6209 // BSD-style license that can be found in the LICENSE file.
6128 6210
6129 6211
6130 @DocsEditable 6212 @DocsEditable
6131 @DomName('DataTransferItemList') 6213 @DomName('DataTransferItemList')
6132 // http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#the-data transferitemlist-interface 6214 // http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#the-data transferitemlist-interface
6133 @Experimental 6215 @Experimental
6134 class DataTransferItemList native "DataTransferItemList" { 6216 class DataTransferItemList extends Interceptor native "DataTransferItemList" {
6135 6217
6136 @DomName('DataTransferItemList.length') 6218 @DomName('DataTransferItemList.length')
6137 @DocsEditable 6219 @DocsEditable
6138 final int length; 6220 final int length;
6139 6221
6140 @DomName('DataTransferItemList.add') 6222 @DomName('DataTransferItemList.add')
6141 @DocsEditable 6223 @DocsEditable
6142 void add(data_OR_file, [String type]) native; 6224 void add(data_OR_file, [String type]) native;
6143 6225
6144 @DomName('DataTransferItemList.clear') 6226 @DomName('DataTransferItemList.clear')
(...skipping 19 matching lines...) Expand all
6164 // for details. All rights reserved. Use of this source code is governed by a 6246 // for details. All rights reserved. Use of this source code is governed by a
6165 // BSD-style license that can be found in the LICENSE file. 6247 // BSD-style license that can be found in the LICENSE file.
6166 6248
6167 6249
6168 @DocsEditable 6250 @DocsEditable
6169 @DomName('HTMLDetailsElement') 6251 @DomName('HTMLDetailsElement')
6170 @SupportedBrowser(SupportedBrowser.CHROME) 6252 @SupportedBrowser(SupportedBrowser.CHROME)
6171 @SupportedBrowser(SupportedBrowser.SAFARI) 6253 @SupportedBrowser(SupportedBrowser.SAFARI)
6172 @Experimental 6254 @Experimental
6173 class DetailsElement extends _HTMLElement native "HTMLDetailsElement" { 6255 class DetailsElement extends _HTMLElement native "HTMLDetailsElement" {
6256 // To suppress missing implicit constructor warnings.
6257 factory DetailsElement._() { throw new UnsupportedError("Not supported"); }
6174 6258
6175 @DomName('HTMLDetailsElement.HTMLDetailsElement') 6259 @DomName('HTMLDetailsElement.HTMLDetailsElement')
6176 @DocsEditable 6260 @DocsEditable
6177 factory DetailsElement() => document.$dom_createElement("details"); 6261 factory DetailsElement() => document.$dom_createElement("details");
6178 6262
6179 /// Checks if this type is supported on the current platform. 6263 /// Checks if this type is supported on the current platform.
6180 static bool get supported => Element.isTagSupported('details'); 6264 static bool get supported => Element.isTagSupported('details');
6181 6265
6182 @DomName('HTMLDetailsElement.open') 6266 @DomName('HTMLDetailsElement.open')
6183 @DocsEditable 6267 @DocsEditable
6184 bool open; 6268 bool open;
6185 } 6269 }
6186 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6270 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6187 // for details. All rights reserved. Use of this source code is governed by a 6271 // for details. All rights reserved. Use of this source code is governed by a
6188 // BSD-style license that can be found in the LICENSE file. 6272 // BSD-style license that can be found in the LICENSE file.
6189 6273
6190 6274
6191 @DocsEditable 6275 @DocsEditable
6192 @DomName('DeviceAcceleration') 6276 @DomName('DeviceAcceleration')
6193 // http://dev.w3.org/geo/api/spec-source-orientation.html#devicemotion 6277 // http://dev.w3.org/geo/api/spec-source-orientation.html#devicemotion
6194 @Experimental 6278 @Experimental
6195 class DeviceAcceleration native "DeviceAcceleration" { 6279 class DeviceAcceleration extends Interceptor native "DeviceAcceleration" {
6196 6280
6197 @DomName('DeviceAcceleration.x') 6281 @DomName('DeviceAcceleration.x')
6198 @DocsEditable 6282 @DocsEditable
6199 final num x; 6283 final num x;
6200 6284
6201 @DomName('DeviceAcceleration.y') 6285 @DomName('DeviceAcceleration.y')
6202 @DocsEditable 6286 @DocsEditable
6203 final num y; 6287 final num y;
6204 6288
6205 @DomName('DeviceAcceleration.z') 6289 @DomName('DeviceAcceleration.z')
6206 @DocsEditable 6290 @DocsEditable
6207 final num z; 6291 final num z;
6208 } 6292 }
6209 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6293 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6210 // for details. All rights reserved. Use of this source code is governed by a 6294 // for details. All rights reserved. Use of this source code is governed by a
6211 // BSD-style license that can be found in the LICENSE file. 6295 // BSD-style license that can be found in the LICENSE file.
6212 6296
6213 6297
6214 @DocsEditable 6298 @DocsEditable
6215 @DomName('DeviceMotionEvent') 6299 @DomName('DeviceMotionEvent')
6216 // http://dev.w3.org/geo/api/spec-source-orientation.html#devicemotion 6300 // http://dev.w3.org/geo/api/spec-source-orientation.html#devicemotion
6217 @Experimental 6301 @Experimental
6218 class DeviceMotionEvent extends Event native "DeviceMotionEvent" { 6302 class DeviceMotionEvent extends Event native "DeviceMotionEvent" {
6303 // To suppress missing implicit constructor warnings.
6304 factory DeviceMotionEvent._() { throw new UnsupportedError("Not supported"); }
6219 6305
6220 @DomName('DeviceMotionEvent.acceleration') 6306 @DomName('DeviceMotionEvent.acceleration')
6221 @DocsEditable 6307 @DocsEditable
6222 final DeviceAcceleration acceleration; 6308 final DeviceAcceleration acceleration;
6223 6309
6224 @DomName('DeviceMotionEvent.accelerationIncludingGravity') 6310 @DomName('DeviceMotionEvent.accelerationIncludingGravity')
6225 @DocsEditable 6311 @DocsEditable
6226 final DeviceAcceleration accelerationIncludingGravity; 6312 final DeviceAcceleration accelerationIncludingGravity;
6227 6313
6228 @DomName('DeviceMotionEvent.interval') 6314 @DomName('DeviceMotionEvent.interval')
6229 @DocsEditable 6315 @DocsEditable
6230 final num interval; 6316 final num interval;
6231 6317
6232 @DomName('DeviceMotionEvent.rotationRate') 6318 @DomName('DeviceMotionEvent.rotationRate')
6233 @DocsEditable 6319 @DocsEditable
6234 final DeviceRotationRate rotationRate; 6320 final DeviceRotationRate rotationRate;
6235 } 6321 }
6236 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 6322 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
6237 // for details. All rights reserved. Use of this source code is governed by a 6323 // for details. All rights reserved. Use of this source code is governed by a
6238 // BSD-style license that can be found in the LICENSE file. 6324 // BSD-style license that can be found in the LICENSE file.
6239 6325
6240 // WARNING: Do not edit - generated code. 6326 // WARNING: Do not edit - generated code.
6241 6327
6242 @DomName('DeviceOrientationEvent') 6328 @DomName('DeviceOrientationEvent')
6243 // http://dev.w3.org/geo/api/spec-source-orientation.html#devicemotion 6329 // http://dev.w3.org/geo/api/spec-source-orientation.html#devicemotion
6244 @Experimental 6330 @Experimental
6245
6246 class DeviceOrientationEvent extends Event native "DeviceOrientationEvent" { 6331 class DeviceOrientationEvent extends Event native "DeviceOrientationEvent" {
6247 factory DeviceOrientationEvent(String type, 6332 factory DeviceOrientationEvent(String type,
6248 {bool canBubble: true, bool cancelable: true, num alpha: 0, num beta: 0, 6333 {bool canBubble: true, bool cancelable: true, num alpha: 0, num beta: 0,
6249 num gamma: 0, bool absolute: false}) { 6334 num gamma: 0, bool absolute: false}) {
6250 var e = document.$dom_createEvent("DeviceOrientationEvent"); 6335 var e = document.$dom_createEvent("DeviceOrientationEvent");
6251 e.$dom_initDeviceOrientationEvent(type, canBubble, cancelable, alpha, beta, 6336 e.$dom_initDeviceOrientationEvent(type, canBubble, cancelable, alpha, beta,
6252 gamma, absolute); 6337 gamma, absolute);
6253 return e; 6338 return e;
6254 } 6339 }
6340 // To suppress missing implicit constructor warnings.
6341 factory DeviceOrientationEvent._() { throw new UnsupportedError("Not supported "); }
6255 6342
6256 @DomName('DeviceOrientationEvent.absolute') 6343 @DomName('DeviceOrientationEvent.absolute')
6257 @DocsEditable 6344 @DocsEditable
6258 final bool absolute; 6345 final bool absolute;
6259 6346
6260 @DomName('DeviceOrientationEvent.alpha') 6347 @DomName('DeviceOrientationEvent.alpha')
6261 @DocsEditable 6348 @DocsEditable
6262 final num alpha; 6349 final num alpha;
6263 6350
6264 @DomName('DeviceOrientationEvent.beta') 6351 @DomName('DeviceOrientationEvent.beta')
(...skipping 12 matching lines...) Expand all
6277 } 6364 }
6278 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6365 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6279 // for details. All rights reserved. Use of this source code is governed by a 6366 // for details. All rights reserved. Use of this source code is governed by a
6280 // BSD-style license that can be found in the LICENSE file. 6367 // BSD-style license that can be found in the LICENSE file.
6281 6368
6282 6369
6283 @DocsEditable 6370 @DocsEditable
6284 @DomName('DeviceRotationRate') 6371 @DomName('DeviceRotationRate')
6285 // http://dev.w3.org/geo/api/spec-source-orientation.html#devicemotion 6372 // http://dev.w3.org/geo/api/spec-source-orientation.html#devicemotion
6286 @Experimental 6373 @Experimental
6287 class DeviceRotationRate native "DeviceRotationRate" { 6374 class DeviceRotationRate extends Interceptor native "DeviceRotationRate" {
6288 6375
6289 @DomName('DeviceRotationRate.alpha') 6376 @DomName('DeviceRotationRate.alpha')
6290 @DocsEditable 6377 @DocsEditable
6291 final num alpha; 6378 final num alpha;
6292 6379
6293 @DomName('DeviceRotationRate.beta') 6380 @DomName('DeviceRotationRate.beta')
6294 @DocsEditable 6381 @DocsEditable
6295 final num beta; 6382 final num beta;
6296 6383
6297 @DomName('DeviceRotationRate.gamma') 6384 @DomName('DeviceRotationRate.gamma')
6298 @DocsEditable 6385 @DocsEditable
6299 final num gamma; 6386 final num gamma;
6300 } 6387 }
6301 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6388 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6302 // for details. All rights reserved. Use of this source code is governed by a 6389 // for details. All rights reserved. Use of this source code is governed by a
6303 // BSD-style license that can be found in the LICENSE file. 6390 // BSD-style license that can be found in the LICENSE file.
6304 6391
6305 6392
6306 @DocsEditable 6393 @DocsEditable
6307 @DomName('HTMLDialogElement') 6394 @DomName('HTMLDialogElement')
6308 @Unstable 6395 @Unstable
6309 class DialogElement extends _HTMLElement native "HTMLDialogElement" { 6396 class DialogElement extends _HTMLElement native "HTMLDialogElement" {
6397 // To suppress missing implicit constructor warnings.
6398 factory DialogElement._() { throw new UnsupportedError("Not supported"); }
6310 6399
6311 @DomName('HTMLDialogElement.open') 6400 @DomName('HTMLDialogElement.open')
6312 @DocsEditable 6401 @DocsEditable
6313 bool open; 6402 bool open;
6314 6403
6315 @DomName('HTMLDialogElement.close') 6404 @DomName('HTMLDialogElement.close')
6316 @DocsEditable 6405 @DocsEditable
6317 void close() native; 6406 void close() native;
6318 6407
6319 @DomName('HTMLDialogElement.show') 6408 @DomName('HTMLDialogElement.show')
6320 @DocsEditable 6409 @DocsEditable
6321 void show() native; 6410 void show() native;
6322 6411
6323 @DomName('HTMLDialogElement.showModal') 6412 @DomName('HTMLDialogElement.showModal')
6324 @DocsEditable 6413 @DocsEditable
6325 void showModal() native; 6414 void showModal() native;
6326 } 6415 }
6327 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 6416 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
6328 // for details. All rights reserved. Use of this source code is governed by a 6417 // for details. All rights reserved. Use of this source code is governed by a
6329 // BSD-style license that can be found in the LICENSE file. 6418 // BSD-style license that can be found in the LICENSE file.
6330 6419
6331 6420
6332 @DomName('DirectoryEntry') 6421 @DomName('DirectoryEntry')
6333 // http://www.w3.org/TR/file-system-api/#the-directoryentry-interface 6422 // http://www.w3.org/TR/file-system-api/#the-directoryentry-interface
6334 @Experimental 6423 @Experimental
6335 class DirectoryEntry extends Entry native "DirectoryEntry" { 6424 class DirectoryEntry extends Entry native "DirectoryEntry" {
6336 6425
6337 /** 6426 /**
6338 * Create a new directory with the specified `path`. If `exclusive` is true, 6427 * Create a new directory with the specified `path`. If `exclusive` is true,
6339 * the returned Future will complete with an error if a directory already 6428 * the returned Future will complete with an error if a directory already
6340 * exists with the specified `path`. 6429 * exists with the specified `path`.
6341 */ 6430 */
6342 Future<Entry> createDirectory(String path, {bool exclusive: false}) { 6431 Future<Entry> createDirectory(String path, {bool exclusive: false}) {
6343 return _getDirectory(path, options: 6432 return _getDirectory(path, options:
6344 {'create': true, 'exclusive': exclusive}); 6433 {'create': true, 'exclusive': exclusive});
6345 } 6434 }
6346 6435
6347 /** 6436 /**
6348 * Retrieve an already existing directory entry. The returned future will 6437 * Retrieve an already existing directory entry. The returned future will
6349 * result in an error if a directory at `path` does not exist or if the item 6438 * result in an error if a directory at `path` does not exist or if the item
6350 * at `path` is not a directory. 6439 * at `path` is not a directory.
6351 */ 6440 */
6352 Future<Entry> getDirectory(String path) { 6441 Future<Entry> getDirectory(String path) {
6353 return _getDirectory(path); 6442 return _getDirectory(path);
6354 } 6443 }
6355 6444
6356 /** 6445 /**
6357 * Create a new file with the specified `path`. If `exclusive` is true, 6446 * Create a new file with the specified `path`. If `exclusive` is true,
6358 * the returned Future will complete with an error if a file already 6447 * the returned Future will complete with an error if a file already
6359 * exists at the specified `path`. 6448 * exists at the specified `path`.
6360 */ 6449 */
6361 Future<Entry> createFile(String path, {bool exclusive: false}) { 6450 Future<Entry> createFile(String path, {bool exclusive: false}) {
6362 return _getFile(path, options: {'create': true, 'exclusive': exclusive}); 6451 return _getFile(path, options: {'create': true, 'exclusive': exclusive});
6363 } 6452 }
6364 6453
6365 /** 6454 /**
6366 * Retrieve an already existing file entry. The returned future will 6455 * Retrieve an already existing file entry. The returned future will
6367 * result in an error if a file at `path` does not exist or if the item at 6456 * result in an error if a file at `path` does not exist or if the item at
6368 * `path` is not a file. 6457 * `path` is not a file.
6369 */ 6458 */
6370 Future<Entry> getFile(String path) { 6459 Future<Entry> getFile(String path) {
6371 return _getFile(path); 6460 return _getFile(path);
6372 } 6461 }
6462 // To suppress missing implicit constructor warnings.
6463 factory DirectoryEntry._() { throw new UnsupportedError("Not supported"); }
6373 6464
6374 @DomName('DirectoryEntry.createReader') 6465 @DomName('DirectoryEntry.createReader')
6375 @DocsEditable 6466 @DocsEditable
6376 DirectoryReader createReader() native; 6467 DirectoryReader createReader() native;
6377 6468
6378 @DomName('DirectoryEntry.getDirectory') 6469 @DomName('DirectoryEntry.getDirectory')
6379 @DocsEditable 6470 @DocsEditable
6380 void __getDirectory(String path, {Map options, _EntryCallback successCallback, _ErrorCallback errorCallback}) { 6471 void __getDirectory(String path, {Map options, _EntryCallback successCallback, _ErrorCallback errorCallback}) {
6381 if (errorCallback != null) { 6472 if (errorCallback != null) {
6382 var options_1 = convertDartToNative_Dictionary(options); 6473 var options_1 = convertDartToNative_Dictionary(options);
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
6493 6584
6494 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6585 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6495 // for details. All rights reserved. Use of this source code is governed by a 6586 // for details. All rights reserved. Use of this source code is governed by a
6496 // BSD-style license that can be found in the LICENSE file. 6587 // BSD-style license that can be found in the LICENSE file.
6497 6588
6498 6589
6499 @DocsEditable 6590 @DocsEditable
6500 @DomName('DirectoryReader') 6591 @DomName('DirectoryReader')
6501 // http://www.w3.org/TR/file-system-api/#the-directoryreader-interface 6592 // http://www.w3.org/TR/file-system-api/#the-directoryreader-interface
6502 @Experimental 6593 @Experimental
6503 class DirectoryReader native "DirectoryReader" { 6594 class DirectoryReader extends Interceptor native "DirectoryReader" {
6504 6595
6505 @JSName('readEntries') 6596 @JSName('readEntries')
6506 @DomName('DirectoryReader.readEntries') 6597 @DomName('DirectoryReader.readEntries')
6507 @DocsEditable 6598 @DocsEditable
6508 void _readEntries(_EntriesCallback successCallback, [_ErrorCallback errorCallb ack]) native; 6599 void _readEntries(_EntriesCallback successCallback, [_ErrorCallback errorCallb ack]) native;
6509 6600
6510 @JSName('readEntries') 6601 @JSName('readEntries')
6511 @DomName('DirectoryReader.readEntries') 6602 @DomName('DirectoryReader.readEntries')
6512 @DocsEditable 6603 @DocsEditable
6513 Future<List<Entry>> readEntries() { 6604 Future<List<Entry>> readEntries() {
(...skipping 26 matching lines...) Expand all
6540 * document.body.elements.add(elem); 6631 * document.body.elements.add(elem);
6541 * 6632 *
6542 * See also: 6633 * See also:
6543 * 6634 *
6544 * * [HTML <div> element](http://www.w3.org/TR/html-markup/div.html) from W3C. 6635 * * [HTML <div> element](http://www.w3.org/TR/html-markup/div.html) from W3C.
6545 * * [Block-level element](http://www.w3.org/TR/CSS2/visuren.html#block-boxes) f rom W3C. 6636 * * [Block-level element](http://www.w3.org/TR/CSS2/visuren.html#block-boxes) f rom W3C.
6546 * * [Inline-level element](http://www.w3.org/TR/CSS2/visuren.html#inline-boxes) from W3C. 6637 * * [Inline-level element](http://www.w3.org/TR/CSS2/visuren.html#inline-boxes) from W3C.
6547 */ 6638 */
6548 @DomName('HTMLDivElement') 6639 @DomName('HTMLDivElement')
6549 class DivElement extends _HTMLElement native "HTMLDivElement" { 6640 class DivElement extends _HTMLElement native "HTMLDivElement" {
6641 // To suppress missing implicit constructor warnings.
6642 factory DivElement._() { throw new UnsupportedError("Not supported"); }
6550 6643
6551 @DomName('HTMLDivElement.HTMLDivElement') 6644 @DomName('HTMLDivElement.HTMLDivElement')
6552 @DocsEditable 6645 @DocsEditable
6553 factory DivElement() => document.$dom_createElement("div"); 6646 factory DivElement() => document.$dom_createElement("div");
6554 } 6647 }
6555 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6648 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6556 // for details. All rights reserved. Use of this source code is governed by a 6649 // for details. All rights reserved. Use of this source code is governed by a
6557 // BSD-style license that can be found in the LICENSE file. 6650 // BSD-style license that can be found in the LICENSE file.
6558 6651
6559 6652
6560 /** 6653 /**
6561 * The base class for all documents. 6654 * The base class for all documents.
6562 * 6655 *
6563 * Each web page loaded in the browser has its own [Document] object, which is 6656 * Each web page loaded in the browser has its own [Document] object, which is
6564 * typically an [HtmlDocument]. 6657 * typically an [HtmlDocument].
6565 * 6658 *
6566 * If you aren't comfortable with DOM concepts, see the Dart tutorial 6659 * If you aren't comfortable with DOM concepts, see the Dart tutorial
6567 * [Target 2: Connect Dart & HTML](http://www.dartlang.org/docs/tutorials/connec t-dart-html/). 6660 * [Target 2: Connect Dart & HTML](http://www.dartlang.org/docs/tutorials/connec t-dart-html/).
6568 */ 6661 */
6569 @DomName('Document') 6662 @DomName('Document')
6570 class Document extends Node native "Document" 6663 class Document extends Node native "Document"
6571 { 6664 {
6572 6665
6666 // To suppress missing implicit constructor warnings.
6667 factory Document._() { throw new UnsupportedError("Not supported"); }
6573 6668
6574 @DomName('Document.readystatechangeEvent') 6669 @DomName('Document.readystatechangeEvent')
6575 @DocsEditable 6670 @DocsEditable
6576 static const EventStreamProvider<Event> readyStateChangeEvent = const EventStr eamProvider<Event>('readystatechange'); 6671 static const EventStreamProvider<Event> readyStateChangeEvent = const EventStr eamProvider<Event>('readystatechange');
6577 6672
6578 @DomName('Document.securitypolicyviolationEvent') 6673 @DomName('Document.securitypolicyviolationEvent')
6579 @DocsEditable 6674 @DocsEditable
6580 // https://dvcs.w3.org/hg/content-security-policy/raw-file/tip/csp-specificati on.dev.html#widl-Document-onsecuritypolicyviolation 6675 // https://dvcs.w3.org/hg/content-security-policy/raw-file/tip/csp-specificati on.dev.html#widl-Document-onsecuritypolicyviolation
6581 @Experimental 6676 @Experimental
6582 static const EventStreamProvider<SecurityPolicyViolationEvent> securityPolicyV iolationEvent = const EventStreamProvider<SecurityPolicyViolationEvent>('securit ypolicyviolation'); 6677 static const EventStreamProvider<SecurityPolicyViolationEvent> securityPolicyV iolationEvent = const EventStreamProvider<SecurityPolicyViolationEvent>('securit ypolicyviolation');
(...skipping 753 matching lines...) Expand 10 before | Expand all | Expand 10 after
7336 7431
7337 7432
7338 /** 7433 /**
7339 * Parses the specified text as HTML and adds the resulting node after the 7434 * Parses the specified text as HTML and adds the resulting node after the
7340 * last child of this document fragment. 7435 * last child of this document fragment.
7341 */ 7436 */
7342 void appendHtml(String text) { 7437 void appendHtml(String text) {
7343 this.append(new DocumentFragment.html(text)); 7438 this.append(new DocumentFragment.html(text));
7344 } 7439 }
7345 7440
7441 // To suppress missing implicit constructor warnings.
7442 factory DocumentFragment._() { throw new UnsupportedError("Not supported"); }
7346 7443
7347 @DomName('DocumentFragment.childElementCount') 7444 @DomName('DocumentFragment.childElementCount')
7348 @DocsEditable 7445 @DocsEditable
7349 final int childElementCount; 7446 final int childElementCount;
7350 7447
7351 @DomName('DocumentFragment.firstElementChild') 7448 @DomName('DocumentFragment.firstElementChild')
7352 @DocsEditable 7449 @DocsEditable
7353 final Element firstElementChild; 7450 final Element firstElementChild;
7354 7451
7355 @DomName('DocumentFragment.lastElementChild') 7452 @DomName('DocumentFragment.lastElementChild')
(...skipping 16 matching lines...) Expand all
7372 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7469 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7373 // for details. All rights reserved. Use of this source code is governed by a 7470 // for details. All rights reserved. Use of this source code is governed by a
7374 // BSD-style license that can be found in the LICENSE file. 7471 // BSD-style license that can be found in the LICENSE file.
7375 7472
7376 7473
7377 @DocsEditable 7474 @DocsEditable
7378 @DomName('DocumentType') 7475 @DomName('DocumentType')
7379 // http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-412266927 7476 // http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-412266927
7380 @deprecated // stable 7477 @deprecated // stable
7381 class DocumentType extends Node native "DocumentType" { 7478 class DocumentType extends Node native "DocumentType" {
7479 // To suppress missing implicit constructor warnings.
7480 factory DocumentType._() { throw new UnsupportedError("Not supported"); }
7382 } 7481 }
7383 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7482 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7384 // for details. All rights reserved. Use of this source code is governed by a 7483 // for details. All rights reserved. Use of this source code is governed by a
7385 // BSD-style license that can be found in the LICENSE file. 7484 // BSD-style license that can be found in the LICENSE file.
7386 7485
7387 7486
7388 @DocsEditable 7487 @DocsEditable
7389 @DomName('DOMError') 7488 @DomName('DOMError')
7390 class DomError native "DOMError" { 7489 class DomError extends Interceptor native "DOMError" {
7391 7490
7392 @DomName('DOMError.name') 7491 @DomName('DOMError.name')
7393 @DocsEditable 7492 @DocsEditable
7394 final String name; 7493 final String name;
7395 } 7494 }
7396 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 7495 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
7397 // for details. All rights reserved. Use of this source code is governed by a 7496 // for details. All rights reserved. Use of this source code is governed by a
7398 // BSD-style license that can be found in the LICENSE file. 7497 // BSD-style license that can be found in the LICENSE file.
7399 7498
7400 7499
7401 @DomName('DOMException') 7500 @DomName('DOMException')
7402 @Unstable 7501 @Unstable
7403 class DomException native "DOMException" { 7502 class DomException extends Interceptor native "DOMException" {
7404 7503
7405 static const String INDEX_SIZE = 'IndexSizeError'; 7504 static const String INDEX_SIZE = 'IndexSizeError';
7406 static const String HIERARCHY_REQUEST = 'HierarchyRequestError'; 7505 static const String HIERARCHY_REQUEST = 'HierarchyRequestError';
7407 static const String WRONG_DOCUMENT = 'WrongDocumentError'; 7506 static const String WRONG_DOCUMENT = 'WrongDocumentError';
7408 static const String INVALID_CHARACTER = 'InvalidCharacterError'; 7507 static const String INVALID_CHARACTER = 'InvalidCharacterError';
7409 static const String NO_MODIFICATION_ALLOWED = 'NoModificationAllowedError'; 7508 static const String NO_MODIFICATION_ALLOWED = 'NoModificationAllowedError';
7410 static const String NOT_FOUND = 'NotFoundError'; 7509 static const String NOT_FOUND = 'NotFoundError';
7411 static const String NOT_SUPPORTED = 'NotSupportedError'; 7510 static const String NOT_SUPPORTED = 'NotSupportedError';
7412 static const String INVALID_STATE = 'InvalidStateError'; 7511 static const String INVALID_STATE = 'InvalidStateError';
7413 static const String SYNTAX = 'SyntaxError'; 7512 static const String SYNTAX = 'SyntaxError';
(...skipping 30 matching lines...) Expand all
7444 String toString() native; 7543 String toString() native;
7445 7544
7446 } 7545 }
7447 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7546 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7448 // for details. All rights reserved. Use of this source code is governed by a 7547 // for details. All rights reserved. Use of this source code is governed by a
7449 // BSD-style license that can be found in the LICENSE file. 7548 // BSD-style license that can be found in the LICENSE file.
7450 7549
7451 7550
7452 @DocsEditable 7551 @DocsEditable
7453 @DomName('DOMImplementation') 7552 @DomName('DOMImplementation')
7454 class DomImplementation native "DOMImplementation" { 7553 class DomImplementation extends Interceptor native "DOMImplementation" {
7455 7554
7456 @JSName('createCSSStyleSheet') 7555 @JSName('createCSSStyleSheet')
7457 @DomName('DOMImplementation.createCSSStyleSheet') 7556 @DomName('DOMImplementation.createCSSStyleSheet')
7458 @DocsEditable 7557 @DocsEditable
7459 @Experimental // non-standard 7558 @Experimental // non-standard
7460 CssStyleSheet createCssStyleSheet(String title, String media) native; 7559 CssStyleSheet createCssStyleSheet(String title, String media) native;
7461 7560
7462 @DomName('DOMImplementation.createDocument') 7561 @DomName('DOMImplementation.createDocument')
7463 @DocsEditable 7562 @DocsEditable
7464 Document createDocument(String namespaceURI, String qualifiedName, DocumentTyp e doctype) native; 7563 Document createDocument(String namespaceURI, String qualifiedName, DocumentTyp e doctype) native;
(...skipping 11 matching lines...) Expand all
7476 @DocsEditable 7575 @DocsEditable
7477 bool hasFeature(String feature, String version) native; 7576 bool hasFeature(String feature, String version) native;
7478 } 7577 }
7479 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7578 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7480 // for details. All rights reserved. Use of this source code is governed by a 7579 // for details. All rights reserved. Use of this source code is governed by a
7481 // BSD-style license that can be found in the LICENSE file. 7580 // BSD-style license that can be found in the LICENSE file.
7482 7581
7483 7582
7484 @DocsEditable 7583 @DocsEditable
7485 @DomName('DOMParser') 7584 @DomName('DOMParser')
7486 class DomParser native "DOMParser" { 7585 class DomParser extends Interceptor native "DOMParser" {
7487 7586
7488 @DomName('DOMParser.DOMParser') 7587 @DomName('DOMParser.DOMParser')
7489 @DocsEditable 7588 @DocsEditable
7490 factory DomParser() { 7589 factory DomParser() {
7491 return DomParser._create_1(); 7590 return DomParser._create_1();
7492 } 7591 }
7493 static DomParser _create_1() => JS('DomParser', 'new DOMParser()'); 7592 static DomParser _create_1() => JS('DomParser', 'new DOMParser()');
7494 7593
7495 @DomName('DOMParser.parseFromString') 7594 @DomName('DOMParser.parseFromString')
7496 @DocsEditable 7595 @DocsEditable
7497 Document parseFromString(String str, String contentType) native; 7596 Document parseFromString(String str, String contentType) native;
7498 } 7597 }
7499 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7598 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7500 // for details. All rights reserved. Use of this source code is governed by a 7599 // for details. All rights reserved. Use of this source code is governed by a
7501 // BSD-style license that can be found in the LICENSE file. 7600 // BSD-style license that can be found in the LICENSE file.
7502 7601
7503 7602
7504 @DocsEditable 7603 @DocsEditable
7505 @DomName('DOMSettableTokenList') 7604 @DomName('DOMSettableTokenList')
7506 class DomSettableTokenList extends DomTokenList native "DOMSettableTokenList" { 7605 class DomSettableTokenList extends DomTokenList native "DOMSettableTokenList" {
7606 // To suppress missing implicit constructor warnings.
7607 factory DomSettableTokenList._() { throw new UnsupportedError("Not supported") ; }
7507 7608
7508 @DomName('DOMSettableTokenList.value') 7609 @DomName('DOMSettableTokenList.value')
7509 @DocsEditable 7610 @DocsEditable
7510 String value; 7611 String value;
7511 7612
7512 @DomName('DOMSettableTokenList.__getter__') 7613 @DomName('DOMSettableTokenList.__getter__')
7513 @DocsEditable 7614 @DocsEditable
7514 String __getter__(int index) native; 7615 String __getter__(int index) native;
7515 } 7616 }
7516 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7617 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
7576 7677
7577 @DomName('DOMStringList.item') 7678 @DomName('DOMStringList.item')
7578 @DocsEditable 7679 @DocsEditable
7579 String item(int index) native; 7680 String item(int index) native;
7580 } 7681 }
7581 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7682 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7582 // for details. All rights reserved. Use of this source code is governed by a 7683 // for details. All rights reserved. Use of this source code is governed by a
7583 // BSD-style license that can be found in the LICENSE file. 7684 // BSD-style license that can be found in the LICENSE file.
7584 7685
7585 7686
7687 @DocsEditable
7586 @DomName('DOMStringMap') 7688 @DomName('DOMStringMap')
7587 abstract class DomStringMap { 7689 abstract class DomStringMap extends Interceptor {
7588 7690
7589 bool __delete__(String name); 7691 bool __delete__(String name);
7590 7692
7591 String __getter__(String name); 7693 String __getter__(String name);
7592 7694
7593 void __setter__(String name, String value); 7695 void __setter__(String name, String value);
7594 } 7696 }
7595 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7697 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7596 // for details. All rights reserved. Use of this source code is governed by a 7698 // for details. All rights reserved. Use of this source code is governed by a
7597 // BSD-style license that can be found in the LICENSE file. 7699 // BSD-style license that can be found in the LICENSE file.
7598 7700
7599 7701
7600 @DocsEditable 7702 @DocsEditable
7601 @DomName('DOMTokenList') 7703 @DomName('DOMTokenList')
7602 class DomTokenList native "DOMTokenList" { 7704 class DomTokenList extends Interceptor native "DOMTokenList" {
7603 7705
7604 @DomName('DOMTokenList.length') 7706 @DomName('DOMTokenList.length')
7605 @DocsEditable 7707 @DocsEditable
7606 final int length; 7708 final int length;
7607 7709
7608 @DomName('DOMTokenList.contains') 7710 @DomName('DOMTokenList.contains')
7609 @DocsEditable 7711 @DocsEditable
7610 bool contains(String token) native; 7712 bool contains(String token) native;
7611 7713
7612 @DomName('DOMTokenList.item') 7714 @DomName('DOMTokenList.item')
(...skipping 771 matching lines...) Expand 10 before | Expand all | Expand 10 after
8384 @Experimental 8486 @Experimental
8385 bool get isTemplate => tagName == 'TEMPLATE' || _isAttributeTemplate; 8487 bool get isTemplate => tagName == 'TEMPLATE' || _isAttributeTemplate;
8386 8488
8387 void _ensureTemplate() { 8489 void _ensureTemplate() {
8388 if (!isTemplate) { 8490 if (!isTemplate) {
8389 throw new UnsupportedError('$this is not a template.'); 8491 throw new UnsupportedError('$this is not a template.');
8390 } 8492 }
8391 TemplateElement.decorate(this); 8493 TemplateElement.decorate(this);
8392 } 8494 }
8393 8495
8496 // To suppress missing implicit constructor warnings.
8497 factory Element._() { throw new UnsupportedError("Not supported"); }
8394 8498
8395 @DomName('Element.abortEvent') 8499 @DomName('Element.abortEvent')
8396 @DocsEditable 8500 @DocsEditable
8397 static const EventStreamProvider<Event> abortEvent = const EventStreamProvider <Event>('abort'); 8501 static const EventStreamProvider<Event> abortEvent = const EventStreamProvider <Event>('abort');
8398 8502
8399 @DomName('Element.beforecopyEvent') 8503 @DomName('Element.beforecopyEvent')
8400 @DocsEditable 8504 @DocsEditable
8401 static const EventStreamProvider<Event> beforeCopyEvent = const EventStreamPro vider<Event>('beforecopy'); 8505 static const EventStreamProvider<Event> beforeCopyEvent = const EventStreamPro vider<Event>('beforecopy');
8402 8506
8403 @DomName('Element.beforecutEvent') 8507 @DomName('Element.beforecutEvent')
(...skipping 924 matching lines...) Expand 10 before | Expand all | Expand 10 after
9328 /// Attempt to center the element in the scrollable area. 9432 /// Attempt to center the element in the scrollable area.
9329 static const CENTER = const ScrollAlignment._internal('CENTER'); 9433 static const CENTER = const ScrollAlignment._internal('CENTER');
9330 /// Attempt to align the element to the bottom of the scrollable area. 9434 /// Attempt to align the element to the bottom of the scrollable area.
9331 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); 9435 static const BOTTOM = const ScrollAlignment._internal('BOTTOM');
9332 } 9436 }
9333 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9437 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9334 // for details. All rights reserved. Use of this source code is governed by a 9438 // for details. All rights reserved. Use of this source code is governed by a
9335 // BSD-style license that can be found in the LICENSE file. 9439 // BSD-style license that can be found in the LICENSE file.
9336 9440
9337 9441
9442 @DocsEditable
9338 @DomName('ElementTimeControl') 9443 @DomName('ElementTimeControl')
9339 @Unstable 9444 @Unstable
9340 abstract class ElementTimeControl { 9445 abstract class ElementTimeControl extends Interceptor {
9341 9446
9342 void beginElement(); 9447 void beginElement();
9343 9448
9344 void beginElementAt(num offset); 9449 void beginElementAt(num offset);
9345 9450
9346 void endElement(); 9451 void endElement();
9347 9452
9348 void endElementAt(num offset); 9453 void endElementAt(num offset);
9349 } 9454 }
9350 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9455 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9351 // for details. All rights reserved. Use of this source code is governed by a 9456 // for details. All rights reserved. Use of this source code is governed by a
9352 // BSD-style license that can be found in the LICENSE file. 9457 // BSD-style license that can be found in the LICENSE file.
9353 9458
9354 9459
9460 @DocsEditable
9355 @DomName('ElementTraversal') 9461 @DomName('ElementTraversal')
9356 @Unstable 9462 @Unstable
9357 abstract class ElementTraversal { 9463 abstract class ElementTraversal extends Interceptor {
9358 9464
9359 int $dom_childElementCount; 9465 int $dom_childElementCount;
9360 9466
9361 Element $dom_firstElementChild; 9467 Element $dom_firstElementChild;
9362 9468
9363 Element $dom_lastElementChild; 9469 Element $dom_lastElementChild;
9364 9470
9365 Element nextElementSibling; 9471 Element nextElementSibling;
9366 9472
9367 Element previousElementSibling; 9473 Element previousElementSibling;
9368 } 9474 }
9369 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9475 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9370 // for details. All rights reserved. Use of this source code is governed by a 9476 // for details. All rights reserved. Use of this source code is governed by a
9371 // BSD-style license that can be found in the LICENSE file. 9477 // BSD-style license that can be found in the LICENSE file.
9372 9478
9373 9479
9374 @DocsEditable 9480 @DocsEditable
9375 @DomName('HTMLEmbedElement') 9481 @DomName('HTMLEmbedElement')
9376 @SupportedBrowser(SupportedBrowser.CHROME) 9482 @SupportedBrowser(SupportedBrowser.CHROME)
9377 @SupportedBrowser(SupportedBrowser.IE) 9483 @SupportedBrowser(SupportedBrowser.IE)
9378 @SupportedBrowser(SupportedBrowser.SAFARI) 9484 @SupportedBrowser(SupportedBrowser.SAFARI)
9379 @Unstable 9485 @Unstable
9380 class EmbedElement extends _HTMLElement native "HTMLEmbedElement" { 9486 class EmbedElement extends _HTMLElement native "HTMLEmbedElement" {
9487 // To suppress missing implicit constructor warnings.
9488 factory EmbedElement._() { throw new UnsupportedError("Not supported"); }
9381 9489
9382 @DomName('HTMLEmbedElement.HTMLEmbedElement') 9490 @DomName('HTMLEmbedElement.HTMLEmbedElement')
9383 @DocsEditable 9491 @DocsEditable
9384 factory EmbedElement() => document.$dom_createElement("embed"); 9492 factory EmbedElement() => document.$dom_createElement("embed");
9385 9493
9386 /// Checks if this type is supported on the current platform. 9494 /// Checks if this type is supported on the current platform.
9387 static bool get supported => Element.isTagSupported('embed'); 9495 static bool get supported => Element.isTagSupported('embed');
9388 9496
9389 @DomName('HTMLEmbedElement.align') 9497 @DomName('HTMLEmbedElement.align')
9390 @DocsEditable 9498 @DocsEditable
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
9433 typedef void _EntriesCallback(List<Entry> entries); 9541 typedef void _EntriesCallback(List<Entry> entries);
9434 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9542 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9435 // for details. All rights reserved. Use of this source code is governed by a 9543 // for details. All rights reserved. Use of this source code is governed by a
9436 // BSD-style license that can be found in the LICENSE file. 9544 // BSD-style license that can be found in the LICENSE file.
9437 9545
9438 9546
9439 @DocsEditable 9547 @DocsEditable
9440 @DomName('Entry') 9548 @DomName('Entry')
9441 // http://www.w3.org/TR/file-system-api/#the-entry-interface 9549 // http://www.w3.org/TR/file-system-api/#the-entry-interface
9442 @Experimental 9550 @Experimental
9443 class Entry native "Entry" { 9551 class Entry extends Interceptor native "Entry" {
9444 9552
9445 @DomName('Entry.filesystem') 9553 @DomName('Entry.filesystem')
9446 @DocsEditable 9554 @DocsEditable
9447 final FileSystem filesystem; 9555 final FileSystem filesystem;
9448 9556
9449 @DomName('Entry.fullPath') 9557 @DomName('Entry.fullPath')
9450 @DocsEditable 9558 @DocsEditable
9451 final String fullPath; 9559 final String fullPath;
9452 9560
9453 @DomName('Entry.isDirectory') 9561 @DomName('Entry.isDirectory')
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
9571 typedef void _ErrorCallback(FileError error); 9679 typedef void _ErrorCallback(FileError error);
9572 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9680 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9573 // for details. All rights reserved. Use of this source code is governed by a 9681 // for details. All rights reserved. Use of this source code is governed by a
9574 // BSD-style license that can be found in the LICENSE file. 9682 // BSD-style license that can be found in the LICENSE file.
9575 9683
9576 9684
9577 @DocsEditable 9685 @DocsEditable
9578 @DomName('ErrorEvent') 9686 @DomName('ErrorEvent')
9579 @Unstable 9687 @Unstable
9580 class ErrorEvent extends Event native "ErrorEvent" { 9688 class ErrorEvent extends Event native "ErrorEvent" {
9689 // To suppress missing implicit constructor warnings.
9690 factory ErrorEvent._() { throw new UnsupportedError("Not supported"); }
9581 9691
9582 @DomName('ErrorEvent.filename') 9692 @DomName('ErrorEvent.filename')
9583 @DocsEditable 9693 @DocsEditable
9584 final String filename; 9694 final String filename;
9585 9695
9586 @DomName('ErrorEvent.lineno') 9696 @DomName('ErrorEvent.lineno')
9587 @DocsEditable 9697 @DocsEditable
9588 final int lineno; 9698 final int lineno;
9589 9699
9590 @DomName('ErrorEvent.message') 9700 @DomName('ErrorEvent.message')
9591 @DocsEditable 9701 @DocsEditable
9592 final String message; 9702 final String message;
9593 } 9703 }
9594 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9704 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9595 // for details. All rights reserved. Use of this source code is governed by a 9705 // for details. All rights reserved. Use of this source code is governed by a
9596 // BSD-style license that can be found in the LICENSE file. 9706 // BSD-style license that can be found in the LICENSE file.
9597 9707
9598 // WARNING: Do not edit - generated code. 9708 // WARNING: Do not edit - generated code.
9599 9709
9600 9710
9601 @DomName('Event') 9711 @DomName('Event')
9602 class Event native "Event" { 9712 class Event extends Interceptor native "Event" {
9603 // In JS, canBubble and cancelable are technically required parameters to 9713 // In JS, canBubble and cancelable are technically required parameters to
9604 // init*Event. In practice, though, if they aren't provided they simply 9714 // init*Event. In practice, though, if they aren't provided they simply
9605 // default to false (since that's Boolean(undefined)). 9715 // default to false (since that's Boolean(undefined)).
9606 // 9716 //
9607 // Contrary to JS, we default canBubble and cancelable to true, since that's 9717 // Contrary to JS, we default canBubble and cancelable to true, since that's
9608 // what people want most of the time anyway. 9718 // what people want most of the time anyway.
9609 factory Event(String type, 9719 factory Event(String type,
9610 {bool canBubble: true, bool cancelable: true}) { 9720 {bool canBubble: true, bool cancelable: true}) {
9611 return new Event.eventType('Event', type, canBubble: canBubble, 9721 return new Event.eventType('Event', type, canBubble: canBubble,
9612 cancelable: cancelable); 9722 cancelable: cancelable);
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
9823 9933
9824 } 9934 }
9825 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9935 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9826 // for details. All rights reserved. Use of this source code is governed by a 9936 // for details. All rights reserved. Use of this source code is governed by a
9827 // BSD-style license that can be found in the LICENSE file. 9937 // BSD-style license that can be found in the LICENSE file.
9828 9938
9829 9939
9830 @DocsEditable 9940 @DocsEditable
9831 @DomName('EventException') 9941 @DomName('EventException')
9832 @Unstable 9942 @Unstable
9833 class EventException native "EventException" { 9943 class EventException extends Interceptor native "EventException" {
9834 9944
9835 @DomName('EventException.DISPATCH_REQUEST_ERR') 9945 @DomName('EventException.DISPATCH_REQUEST_ERR')
9836 @DocsEditable 9946 @DocsEditable
9837 static const int DISPATCH_REQUEST_ERR = 1; 9947 static const int DISPATCH_REQUEST_ERR = 1;
9838 9948
9839 @DomName('EventException.UNSPECIFIED_EVENT_TYPE_ERR') 9949 @DomName('EventException.UNSPECIFIED_EVENT_TYPE_ERR')
9840 @DocsEditable 9950 @DocsEditable
9841 static const int UNSPECIFIED_EVENT_TYPE_ERR = 0; 9951 static const int UNSPECIFIED_EVENT_TYPE_ERR = 0;
9842 9952
9843 @DomName('EventException.code') 9953 @DomName('EventException.code')
(...skipping 22 matching lines...) Expand all
9866 @DomName('EventSource') 9976 @DomName('EventSource')
9867 // http://www.w3.org/TR/eventsource/#the-eventsource-interface 9977 // http://www.w3.org/TR/eventsource/#the-eventsource-interface
9868 @Experimental // stable 9978 @Experimental // stable
9869 class EventSource extends EventTarget native "EventSource" { 9979 class EventSource extends EventTarget native "EventSource" {
9870 factory EventSource(String title, {withCredentials: false}) { 9980 factory EventSource(String title, {withCredentials: false}) {
9871 var parsedOptions = { 9981 var parsedOptions = {
9872 'withCredentials': withCredentials, 9982 'withCredentials': withCredentials,
9873 }; 9983 };
9874 return EventSource._factoryEventSource(title, parsedOptions); 9984 return EventSource._factoryEventSource(title, parsedOptions);
9875 } 9985 }
9986 // To suppress missing implicit constructor warnings.
9987 factory EventSource._() { throw new UnsupportedError("Not supported"); }
9876 9988
9877 @DomName('EventSource.errorEvent') 9989 @DomName('EventSource.errorEvent')
9878 @DocsEditable 9990 @DocsEditable
9879 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error'); 9991 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error');
9880 9992
9881 @DomName('EventSource.messageEvent') 9993 @DomName('EventSource.messageEvent')
9882 @DocsEditable 9994 @DocsEditable
9883 static const EventStreamProvider<MessageEvent> messageEvent = const EventStrea mProvider<MessageEvent>('message'); 9995 static const EventStreamProvider<MessageEvent> messageEvent = const EventStrea mProvider<MessageEvent>('message');
9884 9996
9885 @DomName('EventSource.openEvent') 9997 @DomName('EventSource.openEvent')
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
10005 } 10117 }
10006 10118
10007 /** 10119 /**
10008 * Base class for all browser objects that support events. 10120 * Base class for all browser objects that support events.
10009 * 10121 *
10010 * Use the [on] property to add, and remove events (rather than 10122 * Use the [on] property to add, and remove events (rather than
10011 * [$dom_addEventListener] and [$dom_removeEventListener] 10123 * [$dom_addEventListener] and [$dom_removeEventListener]
10012 * for compile-time type checks and a more concise API. 10124 * for compile-time type checks and a more concise API.
10013 */ 10125 */
10014 @DomName('EventTarget') 10126 @DomName('EventTarget')
10015 class EventTarget native "EventTarget" { 10127 class EventTarget extends Interceptor native "EventTarget" {
10016 10128
10017 /** 10129 /**
10018 * This is an ease-of-use accessor for event streams which should only be 10130 * This is an ease-of-use accessor for event streams which should only be
10019 * used when an explicit accessor is not available. 10131 * used when an explicit accessor is not available.
10020 */ 10132 */
10021 Events get on => new Events(this); 10133 Events get on => new Events(this);
10022 10134
10023 @JSName('addEventListener') 10135 @JSName('addEventListener')
10024 @DomName('EventTarget.addEventListener') 10136 @DomName('EventTarget.addEventListener')
10025 @DocsEditable 10137 @DocsEditable
(...skipping 11 matching lines...) Expand all
10037 } 10149 }
10038 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10150 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10039 // for details. All rights reserved. Use of this source code is governed by a 10151 // for details. All rights reserved. Use of this source code is governed by a
10040 // BSD-style license that can be found in the LICENSE file. 10152 // BSD-style license that can be found in the LICENSE file.
10041 10153
10042 10154
10043 @DocsEditable 10155 @DocsEditable
10044 @DomName('HTMLFieldSetElement') 10156 @DomName('HTMLFieldSetElement')
10045 @Unstable 10157 @Unstable
10046 class FieldSetElement extends _HTMLElement native "HTMLFieldSetElement" { 10158 class FieldSetElement extends _HTMLElement native "HTMLFieldSetElement" {
10159 // To suppress missing implicit constructor warnings.
10160 factory FieldSetElement._() { throw new UnsupportedError("Not supported"); }
10047 10161
10048 @DomName('HTMLFieldSetElement.HTMLFieldSetElement') 10162 @DomName('HTMLFieldSetElement.HTMLFieldSetElement')
10049 @DocsEditable 10163 @DocsEditable
10050 factory FieldSetElement() => document.$dom_createElement("fieldset"); 10164 factory FieldSetElement() => document.$dom_createElement("fieldset");
10051 10165
10052 @DomName('HTMLFieldSetElement.disabled') 10166 @DomName('HTMLFieldSetElement.disabled')
10053 @DocsEditable 10167 @DocsEditable
10054 bool disabled; 10168 bool disabled;
10055 10169
10056 @DomName('HTMLFieldSetElement.elements') 10170 @DomName('HTMLFieldSetElement.elements')
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
10090 void setCustomValidity(String error) native; 10204 void setCustomValidity(String error) native;
10091 } 10205 }
10092 // 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
10093 // 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
10094 // BSD-style license that can be found in the LICENSE file. 10208 // BSD-style license that can be found in the LICENSE file.
10095 10209
10096 10210
10097 @DocsEditable 10211 @DocsEditable
10098 @DomName('File') 10212 @DomName('File')
10099 class File extends Blob native "File" { 10213 class File extends Blob native "File" {
10214 // To suppress missing implicit constructor warnings.
10215 factory File._() { throw new UnsupportedError("Not supported"); }
10100 10216
10101 DateTime get lastModifiedDate => _convertNativeToDart_DateTime(this._get_lastM odifiedDate); 10217 DateTime get lastModifiedDate => _convertNativeToDart_DateTime(this._get_lastM odifiedDate);
10102 @JSName('lastModifiedDate') 10218 @JSName('lastModifiedDate')
10103 @DomName('File.lastModifiedDate') 10219 @DomName('File.lastModifiedDate')
10104 @DocsEditable 10220 @DocsEditable
10105 @Creates('Null') 10221 @Creates('Null')
10106 final dynamic _get_lastModifiedDate; 10222 final dynamic _get_lastModifiedDate;
10107 10223
10108 @DomName('File.name') 10224 @DomName('File.name')
10109 @DocsEditable 10225 @DocsEditable
(...skipping 22 matching lines...) Expand all
10132 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10248 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10133 // for details. All rights reserved. Use of this source code is governed by a 10249 // for details. All rights reserved. Use of this source code is governed by a
10134 // BSD-style license that can be found in the LICENSE file. 10250 // BSD-style license that can be found in the LICENSE file.
10135 10251
10136 10252
10137 @DocsEditable 10253 @DocsEditable
10138 @DomName('FileEntry') 10254 @DomName('FileEntry')
10139 // http://www.w3.org/TR/file-system-api/#the-fileentry-interface 10255 // http://www.w3.org/TR/file-system-api/#the-fileentry-interface
10140 @Experimental 10256 @Experimental
10141 class FileEntry extends Entry native "FileEntry" { 10257 class FileEntry extends Entry native "FileEntry" {
10258 // To suppress missing implicit constructor warnings.
10259 factory FileEntry._() { throw new UnsupportedError("Not supported"); }
10142 10260
10143 @JSName('createWriter') 10261 @JSName('createWriter')
10144 @DomName('FileEntry.createWriter') 10262 @DomName('FileEntry.createWriter')
10145 @DocsEditable 10263 @DocsEditable
10146 void _createWriter(_FileWriterCallback successCallback, [_ErrorCallback errorC allback]) native; 10264 void _createWriter(_FileWriterCallback successCallback, [_ErrorCallback errorC allback]) native;
10147 10265
10148 @JSName('createWriter') 10266 @JSName('createWriter')
10149 @DomName('FileEntry.createWriter') 10267 @DomName('FileEntry.createWriter')
10150 @DocsEditable 10268 @DocsEditable
10151 Future<FileWriter> createWriter() { 10269 Future<FileWriter> createWriter() {
(...skipping 22 matching lines...) Expand all
10174 } 10292 }
10175 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10293 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10176 // for details. All rights reserved. Use of this source code is governed by a 10294 // for details. All rights reserved. Use of this source code is governed by a
10177 // BSD-style license that can be found in the LICENSE file. 10295 // BSD-style license that can be found in the LICENSE file.
10178 10296
10179 10297
10180 @DocsEditable 10298 @DocsEditable
10181 @DomName('FileError') 10299 @DomName('FileError')
10182 // http://dev.w3.org/2009/dap/file-system/pub/FileSystem/ 10300 // http://dev.w3.org/2009/dap/file-system/pub/FileSystem/
10183 @Experimental 10301 @Experimental
10184 class FileError native "FileError" { 10302 class FileError extends Interceptor native "FileError" {
10185 10303
10186 @DomName('FileError.ABORT_ERR') 10304 @DomName('FileError.ABORT_ERR')
10187 @DocsEditable 10305 @DocsEditable
10188 static const int ABORT_ERR = 3; 10306 static const int ABORT_ERR = 3;
10189 10307
10190 @DomName('FileError.ENCODING_ERR') 10308 @DomName('FileError.ENCODING_ERR')
10191 @DocsEditable 10309 @DocsEditable
10192 static const int ENCODING_ERR = 5; 10310 static const int ENCODING_ERR = 5;
10193 10311
10194 @DomName('FileError.INVALID_MODIFICATION_ERR') 10312 @DomName('FileError.INVALID_MODIFICATION_ERR')
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
10237 } 10355 }
10238 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10356 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10239 // for details. All rights reserved. Use of this source code is governed by a 10357 // for details. All rights reserved. Use of this source code is governed by a
10240 // BSD-style license that can be found in the LICENSE file. 10358 // BSD-style license that can be found in the LICENSE file.
10241 10359
10242 10360
10243 @DocsEditable 10361 @DocsEditable
10244 @DomName('FileException') 10362 @DomName('FileException')
10245 // http://dev.w3.org/2009/dap/file-system/pub/FileSystem/ 10363 // http://dev.w3.org/2009/dap/file-system/pub/FileSystem/
10246 @Experimental 10364 @Experimental
10247 class FileException native "FileException" { 10365 class FileException extends Interceptor native "FileException" {
10248 10366
10249 @DomName('FileException.ABORT_ERR') 10367 @DomName('FileException.ABORT_ERR')
10250 @DocsEditable 10368 @DocsEditable
10251 static const int ABORT_ERR = 3; 10369 static const int ABORT_ERR = 3;
10252 10370
10253 @DomName('FileException.ENCODING_ERR') 10371 @DomName('FileException.ENCODING_ERR')
10254 @DocsEditable 10372 @DocsEditable
10255 static const int ENCODING_ERR = 5; 10373 static const int ENCODING_ERR = 5;
10256 10374
10257 @DomName('FileException.INVALID_MODIFICATION_ERR') 10375 @DomName('FileException.INVALID_MODIFICATION_ERR')
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
10372 File item(int index) native; 10490 File item(int index) native;
10373 } 10491 }
10374 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10492 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10375 // for details. All rights reserved. Use of this source code is governed by a 10493 // for details. All rights reserved. Use of this source code is governed by a
10376 // BSD-style license that can be found in the LICENSE file. 10494 // BSD-style license that can be found in the LICENSE file.
10377 10495
10378 10496
10379 @DocsEditable 10497 @DocsEditable
10380 @DomName('FileReader') 10498 @DomName('FileReader')
10381 class FileReader extends EventTarget native "FileReader" { 10499 class FileReader extends EventTarget native "FileReader" {
10500 // To suppress missing implicit constructor warnings.
10501 factory FileReader._() { throw new UnsupportedError("Not supported"); }
10382 10502
10383 @DomName('FileReader.abortEvent') 10503 @DomName('FileReader.abortEvent')
10384 @DocsEditable 10504 @DocsEditable
10385 static const EventStreamProvider<ProgressEvent> abortEvent = const EventStream Provider<ProgressEvent>('abort'); 10505 static const EventStreamProvider<ProgressEvent> abortEvent = const EventStream Provider<ProgressEvent>('abort');
10386 10506
10387 @DomName('FileReader.errorEvent') 10507 @DomName('FileReader.errorEvent')
10388 @DocsEditable 10508 @DocsEditable
10389 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error'); 10509 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error');
10390 10510
10391 @DomName('FileReader.loadEvent') 10511 @DomName('FileReader.loadEvent')
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
10500 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10620 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10501 // for details. All rights reserved. Use of this source code is governed by a 10621 // for details. All rights reserved. Use of this source code is governed by a
10502 // BSD-style license that can be found in the LICENSE file. 10622 // BSD-style license that can be found in the LICENSE file.
10503 10623
10504 10624
10505 @DocsEditable 10625 @DocsEditable
10506 @DomName('DOMFileSystem') 10626 @DomName('DOMFileSystem')
10507 @SupportedBrowser(SupportedBrowser.CHROME) 10627 @SupportedBrowser(SupportedBrowser.CHROME)
10508 @Experimental 10628 @Experimental
10509 // http://www.w3.org/TR/file-system-api/ 10629 // http://www.w3.org/TR/file-system-api/
10510 class FileSystem native "DOMFileSystem" { 10630 class FileSystem extends Interceptor native "DOMFileSystem" {
10511 10631
10512 /// Checks if this type is supported on the current platform. 10632 /// Checks if this type is supported on the current platform.
10513 static bool get supported => JS('bool', '!!(window.webkitRequestFileSystem)'); 10633 static bool get supported => JS('bool', '!!(window.webkitRequestFileSystem)');
10514 10634
10515 @DomName('DOMFileSystem.name') 10635 @DomName('DOMFileSystem.name')
10516 @DocsEditable 10636 @DocsEditable
10517 final String name; 10637 final String name;
10518 10638
10519 @DomName('DOMFileSystem.root') 10639 @DomName('DOMFileSystem.root')
10520 @DocsEditable 10640 @DocsEditable
(...skipping 13 matching lines...) Expand all
10534 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10654 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10535 // for details. All rights reserved. Use of this source code is governed by a 10655 // for details. All rights reserved. Use of this source code is governed by a
10536 // BSD-style license that can be found in the LICENSE file. 10656 // BSD-style license that can be found in the LICENSE file.
10537 10657
10538 10658
10539 @DocsEditable 10659 @DocsEditable
10540 @DomName('FileWriter') 10660 @DomName('FileWriter')
10541 // http://www.w3.org/TR/file-writer-api/#the-filewriter-interface 10661 // http://www.w3.org/TR/file-writer-api/#the-filewriter-interface
10542 @Experimental 10662 @Experimental
10543 class FileWriter extends EventTarget native "FileWriter" { 10663 class FileWriter extends EventTarget native "FileWriter" {
10664 // To suppress missing implicit constructor warnings.
10665 factory FileWriter._() { throw new UnsupportedError("Not supported"); }
10544 10666
10545 @DomName('FileWriter.abortEvent') 10667 @DomName('FileWriter.abortEvent')
10546 @DocsEditable 10668 @DocsEditable
10547 static const EventStreamProvider<ProgressEvent> abortEvent = const EventStream Provider<ProgressEvent>('abort'); 10669 static const EventStreamProvider<ProgressEvent> abortEvent = const EventStream Provider<ProgressEvent>('abort');
10548 10670
10549 @DomName('FileWriter.errorEvent') 10671 @DomName('FileWriter.errorEvent')
10550 @DocsEditable 10672 @DocsEditable
10551 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error'); 10673 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error');
10552 10674
10553 @DomName('FileWriter.progressEvent') 10675 @DomName('FileWriter.progressEvent')
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
10660 @Experimental 10782 @Experimental
10661 typedef void _FileWriterCallback(FileWriter fileWriter); 10783 typedef void _FileWriterCallback(FileWriter fileWriter);
10662 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10784 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10663 // for details. All rights reserved. Use of this source code is governed by a 10785 // for details. All rights reserved. Use of this source code is governed by a
10664 // BSD-style license that can be found in the LICENSE file. 10786 // BSD-style license that can be found in the LICENSE file.
10665 10787
10666 10788
10667 @DocsEditable 10789 @DocsEditable
10668 @DomName('FocusEvent') 10790 @DomName('FocusEvent')
10669 class FocusEvent extends UIEvent native "FocusEvent" { 10791 class FocusEvent extends UIEvent native "FocusEvent" {
10792 // To suppress missing implicit constructor warnings.
10793 factory FocusEvent._() { throw new UnsupportedError("Not supported"); }
10670 10794
10671 EventTarget get relatedTarget => _convertNativeToDart_EventTarget(this._get_re latedTarget); 10795 EventTarget get relatedTarget => _convertNativeToDart_EventTarget(this._get_re latedTarget);
10672 @JSName('relatedTarget') 10796 @JSName('relatedTarget')
10673 @DomName('FocusEvent.relatedTarget') 10797 @DomName('FocusEvent.relatedTarget')
10674 @DocsEditable 10798 @DocsEditable
10675 @Creates('Null') 10799 @Creates('Null')
10676 final dynamic _get_relatedTarget; 10800 final dynamic _get_relatedTarget;
10677 } 10801 }
10678 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10802 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10679 // for details. All rights reserved. Use of this source code is governed by a 10803 // for details. All rights reserved. Use of this source code is governed by a
10680 // BSD-style license that can be found in the LICENSE file. 10804 // BSD-style license that can be found in the LICENSE file.
10681 10805
10682 10806
10683 @DocsEditable 10807 @DocsEditable
10684 @DomName('FontLoader') 10808 @DomName('FontLoader')
10685 // http://www.w3.org/TR/css3-fonts/#document-fontloader 10809 // http://www.w3.org/TR/css3-fonts/#document-fontloader
10686 @Experimental 10810 @Experimental
10687 class FontLoader extends EventTarget native "FontLoader" { 10811 class FontLoader extends EventTarget native "FontLoader" {
10812 // To suppress missing implicit constructor warnings.
10813 factory FontLoader._() { throw new UnsupportedError("Not supported"); }
10688 10814
10689 @DomName('FontLoader.errorEvent') 10815 @DomName('FontLoader.errorEvent')
10690 @DocsEditable 10816 @DocsEditable
10691 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error'); 10817 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error');
10692 10818
10693 @DomName('FontLoader.loadEvent') 10819 @DomName('FontLoader.loadEvent')
10694 @DocsEditable 10820 @DocsEditable
10695 static const EventStreamProvider<CssFontFaceLoadEvent> loadEvent = const Event StreamProvider<CssFontFaceLoadEvent>('load'); 10821 static const EventStreamProvider<CssFontFaceLoadEvent> loadEvent = const Event StreamProvider<CssFontFaceLoadEvent>('load');
10696 10822
10697 @DomName('FontLoader.loadingEvent') 10823 @DomName('FontLoader.loadingEvent')
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
10768 // for details. All rights reserved. Use of this source code is governed by a 10894 // for details. All rights reserved. Use of this source code is governed by a
10769 // BSD-style license that can be found in the LICENSE file. 10895 // BSD-style license that can be found in the LICENSE file.
10770 10896
10771 10897
10772 @DocsEditable 10898 @DocsEditable
10773 @DomName('FormData') 10899 @DomName('FormData')
10774 @SupportedBrowser(SupportedBrowser.CHROME) 10900 @SupportedBrowser(SupportedBrowser.CHROME)
10775 @SupportedBrowser(SupportedBrowser.FIREFOX) 10901 @SupportedBrowser(SupportedBrowser.FIREFOX)
10776 @SupportedBrowser(SupportedBrowser.IE, '10') 10902 @SupportedBrowser(SupportedBrowser.IE, '10')
10777 @SupportedBrowser(SupportedBrowser.SAFARI) 10903 @SupportedBrowser(SupportedBrowser.SAFARI)
10778 class FormData native "FormData" { 10904 class FormData extends Interceptor native "FormData" {
10779 10905
10780 @DomName('FormData.FormData') 10906 @DomName('FormData.FormData')
10781 @DocsEditable 10907 @DocsEditable
10782 factory FormData([FormElement form]) { 10908 factory FormData([FormElement form]) {
10783 if (form != null) { 10909 if (form != null) {
10784 return FormData._create_1(form); 10910 return FormData._create_1(form);
10785 } 10911 }
10786 return FormData._create_2(); 10912 return FormData._create_2();
10787 } 10913 }
10788 static FormData _create_1(form) => JS('FormData', 'new FormData(#)', form); 10914 static FormData _create_1(form) => JS('FormData', 'new FormData(#)', form);
10789 static FormData _create_2() => JS('FormData', 'new FormData()'); 10915 static FormData _create_2() => JS('FormData', 'new FormData()');
10790 10916
10791 /// Checks if this type is supported on the current platform. 10917 /// Checks if this type is supported on the current platform.
10792 static bool get supported => JS('bool', '!!(window.FormData)'); 10918 static bool get supported => JS('bool', '!!(window.FormData)');
10793 10919
10794 @DomName('FormData.append') 10920 @DomName('FormData.append')
10795 @DocsEditable 10921 @DocsEditable
10796 void append(String name, value, [String filename]) native; 10922 void append(String name, value, [String filename]) native;
10797 } 10923 }
10798 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10924 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10799 // for details. All rights reserved. Use of this source code is governed by a 10925 // for details. All rights reserved. Use of this source code is governed by a
10800 // BSD-style license that can be found in the LICENSE file. 10926 // BSD-style license that can be found in the LICENSE file.
10801 10927
10802 10928
10803 @DocsEditable 10929 @DocsEditable
10804 @DomName('HTMLFormElement') 10930 @DomName('HTMLFormElement')
10805 class FormElement extends _HTMLElement native "HTMLFormElement" { 10931 class FormElement extends _HTMLElement native "HTMLFormElement" {
10932 // To suppress missing implicit constructor warnings.
10933 factory FormElement._() { throw new UnsupportedError("Not supported"); }
10806 10934
10807 @DomName('HTMLFormElement.autocompleteEvent') 10935 @DomName('HTMLFormElement.autocompleteEvent')
10808 @DocsEditable 10936 @DocsEditable
10809 // http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of- controls-and-forms.html#autofilling-form-controls:-the-autocomplete-attribute 10937 // http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of- controls-and-forms.html#autofilling-form-controls:-the-autocomplete-attribute
10810 @Experimental 10938 @Experimental
10811 static const EventStreamProvider<Event> autocompleteEvent = const EventStreamP rovider<Event>('autocomplete'); 10939 static const EventStreamProvider<Event> autocompleteEvent = const EventStreamP rovider<Event>('autocomplete');
10812 10940
10813 @DomName('HTMLFormElement.autocompleteerrorEvent') 10941 @DomName('HTMLFormElement.autocompleteerrorEvent')
10814 @DocsEditable 10942 @DocsEditable
10815 // http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of- controls-and-forms.html#autofilling-form-controls:-the-autocomplete-attribute 10943 // http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of- controls-and-forms.html#autofilling-form-controls:-the-autocomplete-attribute
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
10898 } 11026 }
10899 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11027 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10900 // for details. All rights reserved. Use of this source code is governed by a 11028 // for details. All rights reserved. Use of this source code is governed by a
10901 // BSD-style license that can be found in the LICENSE file. 11029 // BSD-style license that can be found in the LICENSE file.
10902 11030
10903 11031
10904 @DocsEditable 11032 @DocsEditable
10905 @DomName('Gamepad') 11033 @DomName('Gamepad')
10906 // https://dvcs.w3.org/hg/gamepad/raw-file/default/gamepad.html#gamepad-interfac e 11034 // https://dvcs.w3.org/hg/gamepad/raw-file/default/gamepad.html#gamepad-interfac e
10907 @Experimental 11035 @Experimental
10908 class Gamepad native "Gamepad" { 11036 class Gamepad extends Interceptor native "Gamepad" {
10909 11037
10910 @DomName('Gamepad.axes') 11038 @DomName('Gamepad.axes')
10911 @DocsEditable 11039 @DocsEditable
10912 final List<num> axes; 11040 final List<num> axes;
10913 11041
10914 @DomName('Gamepad.buttons') 11042 @DomName('Gamepad.buttons')
10915 @DocsEditable 11043 @DocsEditable
10916 final List<num> buttons; 11044 final List<num> buttons;
10917 11045
10918 @DomName('Gamepad.id') 11046 @DomName('Gamepad.id')
10919 @DocsEditable 11047 @DocsEditable
10920 final String id; 11048 final String id;
10921 11049
10922 @DomName('Gamepad.index') 11050 @DomName('Gamepad.index')
10923 @DocsEditable 11051 @DocsEditable
10924 final int index; 11052 final int index;
10925 11053
10926 @DomName('Gamepad.timestamp') 11054 @DomName('Gamepad.timestamp')
10927 @DocsEditable 11055 @DocsEditable
10928 final int timestamp; 11056 final int timestamp;
10929 } 11057 }
10930 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11058 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10931 // for details. All rights reserved. Use of this source code is governed by a 11059 // for details. All rights reserved. Use of this source code is governed by a
10932 // BSD-style license that can be found in the LICENSE file. 11060 // BSD-style license that can be found in the LICENSE file.
10933 11061
10934 11062
10935 @DocsEditable 11063 @DocsEditable
10936 @DomName('Geolocation') 11064 @DomName('Geolocation')
10937 @Unstable 11065 @Unstable
10938 class Geolocation native "Geolocation" { 11066 class Geolocation extends Interceptor native "Geolocation" {
10939 11067
10940 @DomName('Geolocation.getCurrentPosition') 11068 @DomName('Geolocation.getCurrentPosition')
10941 Future<Geoposition> getCurrentPosition({bool enableHighAccuracy, 11069 Future<Geoposition> getCurrentPosition({bool enableHighAccuracy,
10942 Duration timeout, Duration maximumAge}) { 11070 Duration timeout, Duration maximumAge}) {
10943 var options = {}; 11071 var options = {};
10944 if (enableHighAccuracy != null) { 11072 if (enableHighAccuracy != null) {
10945 options['enableHighAccuracy'] = enableHighAccuracy; 11073 options['enableHighAccuracy'] = enableHighAccuracy;
10946 } 11074 }
10947 if (timeout != null) { 11075 if (timeout != null) {
10948 options['timeout'] = timeout.inMilliseconds; 11076 options['timeout'] = timeout.inMilliseconds;
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
11045 11173
11046 11174
11047 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11175 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11048 // for details. All rights reserved. Use of this source code is governed by a 11176 // for details. All rights reserved. Use of this source code is governed by a
11049 // BSD-style license that can be found in the LICENSE file. 11177 // BSD-style license that can be found in the LICENSE file.
11050 11178
11051 11179
11052 @DocsEditable 11180 @DocsEditable
11053 @DomName('Geoposition') 11181 @DomName('Geoposition')
11054 @Unstable 11182 @Unstable
11055 class Geoposition native "Geoposition" { 11183 class Geoposition extends Interceptor native "Geoposition" {
11056 11184
11057 @DomName('Geoposition.coords') 11185 @DomName('Geoposition.coords')
11058 @DocsEditable 11186 @DocsEditable
11059 final Coordinates coords; 11187 final Coordinates coords;
11060 11188
11061 @DomName('Geoposition.timestamp') 11189 @DomName('Geoposition.timestamp')
11062 @DocsEditable 11190 @DocsEditable
11063 final int timestamp; 11191 final int timestamp;
11064 } 11192 }
11065 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11193 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11066 // for details. All rights reserved. Use of this source code is governed by a 11194 // for details. All rights reserved. Use of this source code is governed by a
11067 // BSD-style license that can be found in the LICENSE file. 11195 // BSD-style license that can be found in the LICENSE file.
11068 11196
11069 11197
11070 @DocsEditable 11198 @DocsEditable
11071 /** 11199 /**
11072 * An `<hr>` tag. 11200 * An `<hr>` tag.
11073 */ 11201 */
11074 @DomName('HTMLHRElement') 11202 @DomName('HTMLHRElement')
11075 class HRElement extends _HTMLElement native "HTMLHRElement" { 11203 class HRElement extends _HTMLElement native "HTMLHRElement" {
11204 // To suppress missing implicit constructor warnings.
11205 factory HRElement._() { throw new UnsupportedError("Not supported"); }
11076 11206
11077 @DomName('HTMLHRElement.HTMLHRElement') 11207 @DomName('HTMLHRElement.HTMLHRElement')
11078 @DocsEditable 11208 @DocsEditable
11079 factory HRElement() => document.$dom_createElement("hr"); 11209 factory HRElement() => document.$dom_createElement("hr");
11080 } 11210 }
11081 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 11211 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
11082 // for details. All rights reserved. Use of this source code is governed by a 11212 // for details. All rights reserved. Use of this source code is governed by a
11083 // BSD-style license that can be found in the LICENSE file. 11213 // BSD-style license that can be found in the LICENSE file.
11084 11214
11085 // WARNING: Do not edit - generated code. 11215 // WARNING: Do not edit - generated code.
11086 11216
11087 @DomName('HashChangeEvent') 11217 @DomName('HashChangeEvent')
11088 @SupportedBrowser(SupportedBrowser.CHROME) 11218 @SupportedBrowser(SupportedBrowser.CHROME)
11089 @SupportedBrowser(SupportedBrowser.FIREFOX) 11219 @SupportedBrowser(SupportedBrowser.FIREFOX)
11090 @SupportedBrowser(SupportedBrowser.SAFARI) 11220 @SupportedBrowser(SupportedBrowser.SAFARI)
11091 @Unstable 11221 @Unstable
11092
11093 class HashChangeEvent extends Event native "HashChangeEvent" { 11222 class HashChangeEvent extends Event native "HashChangeEvent" {
11094 factory HashChangeEvent(String type, 11223 factory HashChangeEvent(String type,
11095 {bool canBubble: true, bool cancelable: true, String oldUrl, 11224 {bool canBubble: true, bool cancelable: true, String oldUrl,
11096 String newUrl}) { 11225 String newUrl}) {
11097 var event = document.$dom_createEvent("HashChangeEvent"); 11226 var event = document.$dom_createEvent("HashChangeEvent");
11098 event.$dom_initHashChangeEvent(type, canBubble, cancelable, oldUrl, newUrl); 11227 event.$dom_initHashChangeEvent(type, canBubble, cancelable, oldUrl, newUrl);
11099 return event; 11228 return event;
11100 } 11229 }
11230 // To suppress missing implicit constructor warnings.
11231 factory HashChangeEvent._() { throw new UnsupportedError("Not supported"); }
11101 11232
11102 /// Checks if this type is supported on the current platform. 11233 /// Checks if this type is supported on the current platform.
11103 static bool get supported => Device.isEventTypeSupported('HashChangeEvent'); 11234 static bool get supported => Device.isEventTypeSupported('HashChangeEvent');
11104 11235
11105 @JSName('newURL') 11236 @JSName('newURL')
11106 @DomName('HashChangeEvent.newURL') 11237 @DomName('HashChangeEvent.newURL')
11107 @DocsEditable 11238 @DocsEditable
11108 final String newUrl; 11239 final String newUrl;
11109 11240
11110 @JSName('oldURL') 11241 @JSName('oldURL')
11111 @DomName('HashChangeEvent.oldURL') 11242 @DomName('HashChangeEvent.oldURL')
11112 @DocsEditable 11243 @DocsEditable
11113 final String oldUrl; 11244 final String oldUrl;
11114 11245
11115 @JSName('initHashChangeEvent') 11246 @JSName('initHashChangeEvent')
11116 @DomName('HashChangeEvent.initHashChangeEvent') 11247 @DomName('HashChangeEvent.initHashChangeEvent')
11117 @DocsEditable 11248 @DocsEditable
11118 void $dom_initHashChangeEvent(String type, bool canBubble, bool cancelable, St ring oldURL, String newURL) native; 11249 void $dom_initHashChangeEvent(String type, bool canBubble, bool cancelable, St ring oldURL, String newURL) native;
11119 11250
11120 } 11251 }
11121 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11252 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11122 // for details. All rights reserved. Use of this source code is governed by a 11253 // for details. All rights reserved. Use of this source code is governed by a
11123 // BSD-style license that can be found in the LICENSE file. 11254 // BSD-style license that can be found in the LICENSE file.
11124 11255
11125 11256
11126 @DocsEditable 11257 @DocsEditable
11127 @DomName('HTMLHeadElement') 11258 @DomName('HTMLHeadElement')
11128 class HeadElement extends _HTMLElement native "HTMLHeadElement" { 11259 class HeadElement extends _HTMLElement native "HTMLHeadElement" {
11260 // To suppress missing implicit constructor warnings.
11261 factory HeadElement._() { throw new UnsupportedError("Not supported"); }
11129 11262
11130 @DomName('HTMLHeadElement.HTMLHeadElement') 11263 @DomName('HTMLHeadElement.HTMLHeadElement')
11131 @DocsEditable 11264 @DocsEditable
11132 factory HeadElement() => document.$dom_createElement("head"); 11265 factory HeadElement() => document.$dom_createElement("head");
11133 } 11266 }
11134 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11267 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11135 // for details. All rights reserved. Use of this source code is governed by a 11268 // for details. All rights reserved. Use of this source code is governed by a
11136 // BSD-style license that can be found in the LICENSE file. 11269 // BSD-style license that can be found in the LICENSE file.
11137 11270
11138 11271
11139 @DocsEditable 11272 @DocsEditable
11140 @DomName('HTMLHeadingElement') 11273 @DomName('HTMLHeadingElement')
11141 class HeadingElement extends _HTMLElement native "HTMLHeadingElement" { 11274 class HeadingElement extends _HTMLElement native "HTMLHeadingElement" {
11275 // To suppress missing implicit constructor warnings.
11276 factory HeadingElement._() { throw new UnsupportedError("Not supported"); }
11142 11277
11143 @DomName('HTMLHeadingElement.HTMLHeadingElement') 11278 @DomName('HTMLHeadingElement.HTMLHeadingElement')
11144 @DocsEditable 11279 @DocsEditable
11145 factory HeadingElement.h1() => document.$dom_createElement("h1"); 11280 factory HeadingElement.h1() => document.$dom_createElement("h1");
11146 11281
11147 @DomName('HTMLHeadingElement.HTMLHeadingElement') 11282 @DomName('HTMLHeadingElement.HTMLHeadingElement')
11148 @DocsEditable 11283 @DocsEditable
11149 factory HeadingElement.h2() => document.$dom_createElement("h2"); 11284 factory HeadingElement.h2() => document.$dom_createElement("h2");
11150 11285
11151 @DomName('HTMLHeadingElement.HTMLHeadingElement') 11286 @DomName('HTMLHeadingElement.HTMLHeadingElement')
(...skipping 11 matching lines...) Expand all
11163 @DomName('HTMLHeadingElement.HTMLHeadingElement') 11298 @DomName('HTMLHeadingElement.HTMLHeadingElement')
11164 @DocsEditable 11299 @DocsEditable
11165 factory HeadingElement.h6() => document.$dom_createElement("h6"); 11300 factory HeadingElement.h6() => document.$dom_createElement("h6");
11166 } 11301 }
11167 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11302 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11168 // for details. All rights reserved. Use of this source code is governed by a 11303 // for details. All rights reserved. Use of this source code is governed by a
11169 // BSD-style license that can be found in the LICENSE file. 11304 // BSD-style license that can be found in the LICENSE file.
11170 11305
11171 11306
11172 @DomName('History') 11307 @DomName('History')
11173 class History implements HistoryBase native "History" { 11308 class History extends Interceptor implements HistoryBase native "History" {
11174 11309
11175 /** 11310 /**
11176 * Checks if the State APIs are supported on the current platform. 11311 * Checks if the State APIs are supported on the current platform.
11177 * 11312 *
11178 * See also: 11313 * See also:
11179 * 11314 *
11180 * * [pushState] 11315 * * [pushState]
11181 * * [replaceState] 11316 * * [replaceState]
11182 * * [state] 11317 * * [state]
11183 */ 11318 */
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
11371 } 11506 }
11372 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11507 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11373 // for details. All rights reserved. Use of this source code is governed by a 11508 // for details. All rights reserved. Use of this source code is governed by a
11374 // BSD-style license that can be found in the LICENSE file. 11509 // BSD-style license that can be found in the LICENSE file.
11375 11510
11376 // WARNING: Do not edit - generated code. 11511 // WARNING: Do not edit - generated code.
11377 11512
11378 11513
11379 @DomName('HTMLDocument') 11514 @DomName('HTMLDocument')
11380 class HtmlDocument extends Document native "HTMLDocument" { 11515 class HtmlDocument extends Document native "HTMLDocument" {
11516 // To suppress missing implicit constructor warnings.
11517 factory HtmlDocument._() { throw new UnsupportedError("Not supported"); }
11381 11518
11382 @DomName('HTMLDocument.activeElement') 11519 @DomName('HTMLDocument.activeElement')
11383 @DocsEditable 11520 @DocsEditable
11384 final Element activeElement; 11521 final Element activeElement;
11385 11522
11386 11523
11387 @DomName('Document.body') 11524 @DomName('Document.body')
11388 BodyElement body; 11525 BodyElement body;
11389 11526
11390 @DomName('Document.caretRangeFromPoint') 11527 @DomName('Document.caretRangeFromPoint')
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
11533 Document _templateContentsOwner; 11670 Document _templateContentsOwner;
11534 } 11671 }
11535 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11672 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11536 // for details. All rights reserved. Use of this source code is governed by a 11673 // for details. All rights reserved. Use of this source code is governed by a
11537 // BSD-style license that can be found in the LICENSE file. 11674 // BSD-style license that can be found in the LICENSE file.
11538 11675
11539 11676
11540 @DocsEditable 11677 @DocsEditable
11541 @DomName('HTMLHtmlElement') 11678 @DomName('HTMLHtmlElement')
11542 class HtmlElement extends _HTMLElement native "HTMLHtmlElement" { 11679 class HtmlElement extends _HTMLElement native "HTMLHtmlElement" {
11680 // To suppress missing implicit constructor warnings.
11681 factory HtmlElement._() { throw new UnsupportedError("Not supported"); }
11543 11682
11544 @DomName('HTMLHtmlElement.HTMLHtmlElement') 11683 @DomName('HTMLHtmlElement.HTMLHtmlElement')
11545 @DocsEditable 11684 @DocsEditable
11546 factory HtmlElement() => document.$dom_createElement("html"); 11685 factory HtmlElement() => document.$dom_createElement("html");
11547 } 11686 }
11548 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11687 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11549 // for details. All rights reserved. Use of this source code is governed by a 11688 // for details. All rights reserved. Use of this source code is governed by a
11550 // BSD-style license that can be found in the LICENSE file. 11689 // BSD-style license that can be found in the LICENSE file.
11551 11690
11552 11691
11553 @DocsEditable 11692 @DocsEditable
11554 @DomName('HTMLFormControlsCollection') 11693 @DomName('HTMLFormControlsCollection')
11555 class HtmlFormControlsCollection extends HtmlCollection native "HTMLFormControls Collection" { 11694 class HtmlFormControlsCollection extends HtmlCollection native "HTMLFormControls Collection" {
11695 // To suppress missing implicit constructor warnings.
11696 factory HtmlFormControlsCollection._() { throw new UnsupportedError("Not suppo rted"); }
11556 11697
11557 @DomName('HTMLFormControlsCollection.__getter__') 11698 @DomName('HTMLFormControlsCollection.__getter__')
11558 @DocsEditable 11699 @DocsEditable
11559 Node __getter__(int index) native; 11700 Node __getter__(int index) native;
11560 11701
11561 @DomName('HTMLFormControlsCollection.namedItem') 11702 @DomName('HTMLFormControlsCollection.namedItem')
11562 @DocsEditable 11703 @DocsEditable
11563 Node namedItem(String name) native; 11704 Node namedItem(String name) native;
11564 } 11705 }
11565 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11706 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11566 // for details. All rights reserved. Use of this source code is governed by a 11707 // for details. All rights reserved. Use of this source code is governed by a
11567 // BSD-style license that can be found in the LICENSE file. 11708 // BSD-style license that can be found in the LICENSE file.
11568 11709
11569 11710
11570 @DocsEditable 11711 @DocsEditable
11571 @DomName('HTMLOptionsCollection') 11712 @DomName('HTMLOptionsCollection')
11572 class HtmlOptionsCollection extends HtmlCollection native "HTMLOptionsCollection " { 11713 class HtmlOptionsCollection extends HtmlCollection native "HTMLOptionsCollection " {
11714 // To suppress missing implicit constructor warnings.
11715 factory HtmlOptionsCollection._() { throw new UnsupportedError("Not supported" ); }
11573 } 11716 }
11574 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11717 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11575 // for details. All rights reserved. Use of this source code is governed by a 11718 // for details. All rights reserved. Use of this source code is governed by a
11576 // BSD-style license that can be found in the LICENSE file. 11719 // BSD-style license that can be found in the LICENSE file.
11577 11720
11578 11721
11579 /** 11722 /**
11580 * A utility for retrieving data from a URL. 11723 * A utility for retrieving data from a URL.
11581 * 11724 *
11582 * HttpRequest can be used to obtain data from http, ftp, and file 11725 * HttpRequest can be used to obtain data from http, ftp, and file
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
11737 11880
11738 /** 11881 /**
11739 * Checks to see if the overrideMimeType method is supported on the current 11882 * Checks to see if the overrideMimeType method is supported on the current
11740 * platform. 11883 * platform.
11741 */ 11884 */
11742 static bool get supportsOverrideMimeType { 11885 static bool get supportsOverrideMimeType {
11743 var xhr = new HttpRequest(); 11886 var xhr = new HttpRequest();
11744 return JS('bool', '("overrideMimeType" in #)', xhr); 11887 return JS('bool', '("overrideMimeType" in #)', xhr);
11745 } 11888 }
11746 11889
11890 // To suppress missing implicit constructor warnings.
11891 factory HttpRequest._() { throw new UnsupportedError("Not supported"); }
11747 11892
11748 @DomName('XMLHttpRequest.abortEvent') 11893 @DomName('XMLHttpRequest.abortEvent')
11749 @DocsEditable 11894 @DocsEditable
11750 static const EventStreamProvider<ProgressEvent> abortEvent = const EventStream Provider<ProgressEvent>('abort'); 11895 static const EventStreamProvider<ProgressEvent> abortEvent = const EventStream Provider<ProgressEvent>('abort');
11751 11896
11752 @DomName('XMLHttpRequest.errorEvent') 11897 @DomName('XMLHttpRequest.errorEvent')
11753 @DocsEditable 11898 @DocsEditable
11754 static const EventStreamProvider<ProgressEvent> errorEvent = const EventStream Provider<ProgressEvent>('error'); 11899 static const EventStreamProvider<ProgressEvent> errorEvent = const EventStream Provider<ProgressEvent>('error');
11755 11900
11756 @DomName('XMLHttpRequest.loadEvent') 11901 @DomName('XMLHttpRequest.loadEvent')
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
12102 // BSD-style license that can be found in the LICENSE file. 12247 // BSD-style license that can be found in the LICENSE file.
12103 12248
12104 12249
12105 @DocsEditable 12250 @DocsEditable
12106 @DomName('XMLHttpRequestProgressEvent') 12251 @DomName('XMLHttpRequestProgressEvent')
12107 @SupportedBrowser(SupportedBrowser.CHROME) 12252 @SupportedBrowser(SupportedBrowser.CHROME)
12108 @SupportedBrowser(SupportedBrowser.SAFARI) 12253 @SupportedBrowser(SupportedBrowser.SAFARI)
12109 @Experimental 12254 @Experimental
12110 @Experimental // nonstandard 12255 @Experimental // nonstandard
12111 class HttpRequestProgressEvent extends ProgressEvent native "XMLHttpRequestProgr essEvent" { 12256 class HttpRequestProgressEvent extends ProgressEvent native "XMLHttpRequestProgr essEvent" {
12257 // To suppress missing implicit constructor warnings.
12258 factory HttpRequestProgressEvent._() { throw new UnsupportedError("Not support ed"); }
12112 12259
12113 /// Checks if this type is supported on the current platform. 12260 /// Checks if this type is supported on the current platform.
12114 static bool get supported => Device.isEventTypeSupported('XMLHttpRequestProgre ssEvent'); 12261 static bool get supported => Device.isEventTypeSupported('XMLHttpRequestProgre ssEvent');
12115 12262
12116 @DomName('XMLHttpRequestProgressEvent.position') 12263 @DomName('XMLHttpRequestProgressEvent.position')
12117 @DocsEditable 12264 @DocsEditable
12118 final int position; 12265 final int position;
12119 12266
12120 @DomName('XMLHttpRequestProgressEvent.totalSize') 12267 @DomName('XMLHttpRequestProgressEvent.totalSize')
12121 @DocsEditable 12268 @DocsEditable
12122 final int totalSize; 12269 final int totalSize;
12123 } 12270 }
12124 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12271 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12125 // for details. All rights reserved. Use of this source code is governed by a 12272 // for details. All rights reserved. Use of this source code is governed by a
12126 // BSD-style license that can be found in the LICENSE file. 12273 // BSD-style license that can be found in the LICENSE file.
12127 12274
12128 12275
12129 @DocsEditable 12276 @DocsEditable
12130 @DomName('XMLHttpRequestUpload') 12277 @DomName('XMLHttpRequestUpload')
12131 // http://xhr.spec.whatwg.org/#xmlhttprequestupload 12278 // http://xhr.spec.whatwg.org/#xmlhttprequestupload
12132 @Experimental 12279 @Experimental
12133 class HttpRequestUpload extends EventTarget native "XMLHttpRequestUpload,XMLHttp RequestEventTarget" { 12280 class HttpRequestUpload extends EventTarget native "XMLHttpRequestUpload,XMLHttp RequestEventTarget" {
12281 // To suppress missing implicit constructor warnings.
12282 factory HttpRequestUpload._() { throw new UnsupportedError("Not supported"); }
12134 12283
12135 @DomName('XMLHttpRequestUpload.abortEvent') 12284 @DomName('XMLHttpRequestUpload.abortEvent')
12136 @DocsEditable 12285 @DocsEditable
12137 static const EventStreamProvider<ProgressEvent> abortEvent = const EventStream Provider<ProgressEvent>('abort'); 12286 static const EventStreamProvider<ProgressEvent> abortEvent = const EventStream Provider<ProgressEvent>('abort');
12138 12287
12139 @DomName('XMLHttpRequestUpload.errorEvent') 12288 @DomName('XMLHttpRequestUpload.errorEvent')
12140 @DocsEditable 12289 @DocsEditable
12141 static const EventStreamProvider<ProgressEvent> errorEvent = const EventStream Provider<ProgressEvent>('error'); 12290 static const EventStreamProvider<ProgressEvent> errorEvent = const EventStream Provider<ProgressEvent>('error');
12142 12291
12143 @DomName('XMLHttpRequestUpload.loadEvent') 12292 @DomName('XMLHttpRequestUpload.loadEvent')
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
12195 Stream<ProgressEvent> get onProgress => progressEvent.forTarget(this); 12344 Stream<ProgressEvent> get onProgress => progressEvent.forTarget(this);
12196 } 12345 }
12197 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12346 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12198 // for details. All rights reserved. Use of this source code is governed by a 12347 // for details. All rights reserved. Use of this source code is governed by a
12199 // BSD-style license that can be found in the LICENSE file. 12348 // BSD-style license that can be found in the LICENSE file.
12200 12349
12201 12350
12202 @DocsEditable 12351 @DocsEditable
12203 @DomName('HTMLIFrameElement') 12352 @DomName('HTMLIFrameElement')
12204 class IFrameElement extends _HTMLElement native "HTMLIFrameElement" { 12353 class IFrameElement extends _HTMLElement native "HTMLIFrameElement" {
12354 // To suppress missing implicit constructor warnings.
12355 factory IFrameElement._() { throw new UnsupportedError("Not supported"); }
12205 12356
12206 @DomName('HTMLIFrameElement.HTMLIFrameElement') 12357 @DomName('HTMLIFrameElement.HTMLIFrameElement')
12207 @DocsEditable 12358 @DocsEditable
12208 factory IFrameElement() => document.$dom_createElement("iframe"); 12359 factory IFrameElement() => document.$dom_createElement("iframe");
12209 12360
12210 WindowBase get contentWindow => _convertNativeToDart_Window(this._get_contentW indow); 12361 WindowBase get contentWindow => _convertNativeToDart_Window(this._get_contentW indow);
12211 @JSName('contentWindow') 12362 @JSName('contentWindow')
12212 @DomName('HTMLIFrameElement.contentWindow') 12363 @DomName('HTMLIFrameElement.contentWindow')
12213 @DocsEditable 12364 @DocsEditable
12214 @Creates('Window|=Object') 12365 @Creates('Window|=Object')
(...skipping 26 matching lines...) Expand all
12241 12392
12242 @DomName('HTMLIFrameElement.width') 12393 @DomName('HTMLIFrameElement.width')
12243 @DocsEditable 12394 @DocsEditable
12244 String width; 12395 String width;
12245 } 12396 }
12246 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 12397 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
12247 // for details. All rights reserved. Use of this source code is governed by a 12398 // for details. All rights reserved. Use of this source code is governed by a
12248 // BSD-style license that can be found in the LICENSE file. 12399 // BSD-style license that can be found in the LICENSE file.
12249 12400
12250 @DomName('ImageData') 12401 @DomName('ImageData')
12251 12402 class ImageData extends Interceptor native "ImageData" {
12252 class ImageData native "ImageData" {
12253 12403
12254 12404
12255 @DomName('ImageData.data') 12405 @DomName('ImageData.data')
12256 @DocsEditable 12406 @DocsEditable
12257 final List<int> data; 12407 final List<int> data;
12258 12408
12259 @DomName('ImageData.height') 12409 @DomName('ImageData.height')
12260 @DocsEditable 12410 @DocsEditable
12261 final int height; 12411 final int height;
12262 12412
12263 @DomName('ImageData.width') 12413 @DomName('ImageData.width')
12264 @DocsEditable 12414 @DocsEditable
12265 final int width; 12415 final int width;
12266 12416
12267 } 12417 }
12268 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12418 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12269 // for details. All rights reserved. Use of this source code is governed by a 12419 // for details. All rights reserved. Use of this source code is governed by a
12270 // BSD-style license that can be found in the LICENSE file. 12420 // BSD-style license that can be found in the LICENSE file.
12271 12421
12272 12422
12273 @DomName('HTMLImageElement') 12423 @DomName('HTMLImageElement')
12274 class ImageElement extends _HTMLElement implements CanvasImageSource native "HTM LImageElement" { 12424 class ImageElement extends _HTMLElement implements CanvasImageSource native "HTM LImageElement" {
12425 // To suppress missing implicit constructor warnings.
12426 factory ImageElement._() { throw new UnsupportedError("Not supported"); }
12275 12427
12276 @DomName('HTMLImageElement.HTMLImageElement') 12428 @DomName('HTMLImageElement.HTMLImageElement')
12277 @DocsEditable 12429 @DocsEditable
12278 factory ImageElement({String src, int width, int height}) { 12430 factory ImageElement({String src, int width, int height}) {
12279 var e = document.$dom_createElement("img"); 12431 var e = document.$dom_createElement("img");
12280 if (src != null) e.src = src; 12432 if (src != null) e.src = src;
12281 if (width != null) e.width = width; 12433 if (width != null) e.width = width;
12282 if (height != null) e.height = height; 12434 if (height != null) e.height = height;
12283 return e; 12435 return e;
12284 } 12436 }
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
12378 var e = document.$dom_createElement("input"); 12530 var e = document.$dom_createElement("input");
12379 if (type != null) { 12531 if (type != null) {
12380 try { 12532 try {
12381 // IE throws an exception for unknown types. 12533 // IE throws an exception for unknown types.
12382 e.type = type; 12534 e.type = type;
12383 } catch(_) {} 12535 } catch(_) {}
12384 } 12536 }
12385 return e; 12537 return e;
12386 } 12538 }
12387 12539
12540 // To suppress missing implicit constructor warnings.
12541 factory InputElement._() { throw new UnsupportedError("Not supported"); }
12388 12542
12389 @DomName('HTMLInputElement.webkitSpeechChangeEvent') 12543 @DomName('HTMLInputElement.webkitSpeechChangeEvent')
12390 @DocsEditable 12544 @DocsEditable
12391 @SupportedBrowser(SupportedBrowser.CHROME) 12545 @SupportedBrowser(SupportedBrowser.CHROME)
12392 @SupportedBrowser(SupportedBrowser.SAFARI) 12546 @SupportedBrowser(SupportedBrowser.SAFARI)
12393 @Experimental 12547 @Experimental
12394 // http://lists.w3.org/Archives/Public/public-xg-htmlspeech/2011Feb/att-0020/a pi-draft.html#extending_html_elements 12548 // http://lists.w3.org/Archives/Public/public-xg-htmlspeech/2011Feb/att-0020/a pi-draft.html#extending_html_elements
12395 static const EventStreamProvider<Event> speechChangeEvent = const EventStreamP rovider<Event>('webkitSpeechChange'); 12549 static const EventStreamProvider<Event> speechChangeEvent = const EventStreamP rovider<Event>('webkitSpeechChange');
12396 12550
12397 @DomName('HTMLInputElement.accept') 12551 @DomName('HTMLInputElement.accept')
(...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after
13225 13379
13226 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13380 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13227 // for details. All rights reserved. Use of this source code is governed by a 13381 // for details. All rights reserved. Use of this source code is governed by a
13228 // BSD-style license that can be found in the LICENSE file. 13382 // BSD-style license that can be found in the LICENSE file.
13229 13383
13230 13384
13231 @DocsEditable 13385 @DocsEditable
13232 @DomName('InputMethodContext') 13386 @DomName('InputMethodContext')
13233 // http://www.w3.org/TR/ime-api/#idl-def-InputMethodContext 13387 // http://www.w3.org/TR/ime-api/#idl-def-InputMethodContext
13234 @Experimental 13388 @Experimental
13235 class InputMethodContext native "InputMethodContext" { 13389 class InputMethodContext extends Interceptor native "InputMethodContext" {
13236 13390
13237 @DomName('InputMethodContext.composition') 13391 @DomName('InputMethodContext.composition')
13238 @DocsEditable 13392 @DocsEditable
13239 final Composition composition; 13393 final Composition composition;
13240 13394
13241 @DomName('InputMethodContext.enabled') 13395 @DomName('InputMethodContext.enabled')
13242 @DocsEditable 13396 @DocsEditable
13243 bool enabled; 13397 bool enabled;
13244 13398
13245 @DomName('InputMethodContext.locale') 13399 @DomName('InputMethodContext.locale')
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
13311 type, canBubble, cancelable, view, keyIdentifier, keyLocation, 13465 type, canBubble, cancelable, view, keyIdentifier, keyLocation,
13312 ctrlKey, altKey, shiftKey, metaKey, altGraphKey); 13466 ctrlKey, altKey, shiftKey, metaKey, altGraphKey);
13313 } 13467 }
13314 } 13468 }
13315 13469
13316 @DomName('KeyboardEvent.keyCode') 13470 @DomName('KeyboardEvent.keyCode')
13317 int get keyCode => $dom_keyCode; 13471 int get keyCode => $dom_keyCode;
13318 13472
13319 @DomName('KeyboardEvent.charCode') 13473 @DomName('KeyboardEvent.charCode')
13320 int get charCode => $dom_charCode; 13474 int get charCode => $dom_charCode;
13475 // To suppress missing implicit constructor warnings.
13476 factory KeyboardEvent._() { throw new UnsupportedError("Not supported"); }
13321 13477
13322 @DomName('KeyboardEvent.altGraphKey') 13478 @DomName('KeyboardEvent.altGraphKey')
13323 @DocsEditable 13479 @DocsEditable
13324 @Experimental // nonstandard 13480 @Experimental // nonstandard
13325 final bool altGraphKey; 13481 final bool altGraphKey;
13326 13482
13327 @DomName('KeyboardEvent.altKey') 13483 @DomName('KeyboardEvent.altKey')
13328 @DocsEditable 13484 @DocsEditable
13329 final bool altKey; 13485 final bool altKey;
13330 13486
(...skipping 26 matching lines...) Expand all
13357 // BSD-style license that can be found in the LICENSE file. 13513 // BSD-style license that can be found in the LICENSE file.
13358 13514
13359 13515
13360 @DocsEditable 13516 @DocsEditable
13361 @DomName('HTMLKeygenElement') 13517 @DomName('HTMLKeygenElement')
13362 @SupportedBrowser(SupportedBrowser.CHROME) 13518 @SupportedBrowser(SupportedBrowser.CHROME)
13363 @SupportedBrowser(SupportedBrowser.SAFARI) 13519 @SupportedBrowser(SupportedBrowser.SAFARI)
13364 @Experimental 13520 @Experimental
13365 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-button-elemen t.html#the-keygen-element 13521 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-button-elemen t.html#the-keygen-element
13366 class KeygenElement extends _HTMLElement native "HTMLKeygenElement" { 13522 class KeygenElement extends _HTMLElement native "HTMLKeygenElement" {
13523 // To suppress missing implicit constructor warnings.
13524 factory KeygenElement._() { throw new UnsupportedError("Not supported"); }
13367 13525
13368 @DomName('HTMLKeygenElement.HTMLKeygenElement') 13526 @DomName('HTMLKeygenElement.HTMLKeygenElement')
13369 @DocsEditable 13527 @DocsEditable
13370 factory KeygenElement() => document.$dom_createElement("keygen"); 13528 factory KeygenElement() => document.$dom_createElement("keygen");
13371 13529
13372 /// Checks if this type is supported on the current platform. 13530 /// Checks if this type is supported on the current platform.
13373 static bool get supported => Element.isTagSupported('keygen') && (new Element. tag('keygen') is KeygenElement); 13531 static bool get supported => Element.isTagSupported('keygen') && (new Element. tag('keygen') is KeygenElement);
13374 13532
13375 @DomName('HTMLKeygenElement.autofocus') 13533 @DomName('HTMLKeygenElement.autofocus')
13376 @DocsEditable 13534 @DocsEditable
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
13428 void setCustomValidity(String error) native; 13586 void setCustomValidity(String error) native;
13429 } 13587 }
13430 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13588 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13431 // for details. All rights reserved. Use of this source code is governed by a 13589 // for details. All rights reserved. Use of this source code is governed by a
13432 // BSD-style license that can be found in the LICENSE file. 13590 // BSD-style license that can be found in the LICENSE file.
13433 13591
13434 13592
13435 @DocsEditable 13593 @DocsEditable
13436 @DomName('HTMLLIElement') 13594 @DomName('HTMLLIElement')
13437 class LIElement extends _HTMLElement native "HTMLLIElement" { 13595 class LIElement extends _HTMLElement native "HTMLLIElement" {
13596 // To suppress missing implicit constructor warnings.
13597 factory LIElement._() { throw new UnsupportedError("Not supported"); }
13438 13598
13439 @DomName('HTMLLIElement.HTMLLIElement') 13599 @DomName('HTMLLIElement.HTMLLIElement')
13440 @DocsEditable 13600 @DocsEditable
13441 factory LIElement() => document.$dom_createElement("li"); 13601 factory LIElement() => document.$dom_createElement("li");
13442 13602
13443 @DomName('HTMLLIElement.type') 13603 @DomName('HTMLLIElement.type')
13444 @DocsEditable 13604 @DocsEditable
13445 // http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#H TMLLIElement-partial 13605 // http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#H TMLLIElement-partial
13446 @deprecated // deprecated 13606 @deprecated // deprecated
13447 String type; 13607 String type;
13448 13608
13449 @DomName('HTMLLIElement.value') 13609 @DomName('HTMLLIElement.value')
13450 @DocsEditable 13610 @DocsEditable
13451 int value; 13611 int value;
13452 } 13612 }
13453 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13613 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13454 // for details. All rights reserved. Use of this source code is governed by a 13614 // for details. All rights reserved. Use of this source code is governed by a
13455 // BSD-style license that can be found in the LICENSE file. 13615 // BSD-style license that can be found in the LICENSE file.
13456 13616
13457 13617
13458 @DocsEditable 13618 @DocsEditable
13459 @DomName('HTMLLabelElement') 13619 @DomName('HTMLLabelElement')
13460 class LabelElement extends _HTMLElement native "HTMLLabelElement" { 13620 class LabelElement extends _HTMLElement native "HTMLLabelElement" {
13621 // To suppress missing implicit constructor warnings.
13622 factory LabelElement._() { throw new UnsupportedError("Not supported"); }
13461 13623
13462 @DomName('HTMLLabelElement.HTMLLabelElement') 13624 @DomName('HTMLLabelElement.HTMLLabelElement')
13463 @DocsEditable 13625 @DocsEditable
13464 factory LabelElement() => document.$dom_createElement("label"); 13626 factory LabelElement() => document.$dom_createElement("label");
13465 13627
13466 @DomName('HTMLLabelElement.control') 13628 @DomName('HTMLLabelElement.control')
13467 @DocsEditable 13629 @DocsEditable
13468 final Element control; 13630 final Element control;
13469 13631
13470 @DomName('HTMLLabelElement.form') 13632 @DomName('HTMLLabelElement.form')
13471 @DocsEditable 13633 @DocsEditable
13472 final FormElement form; 13634 final FormElement form;
13473 13635
13474 @DomName('HTMLLabelElement.htmlFor') 13636 @DomName('HTMLLabelElement.htmlFor')
13475 @DocsEditable 13637 @DocsEditable
13476 String htmlFor; 13638 String htmlFor;
13477 } 13639 }
13478 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13640 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13479 // for details. All rights reserved. Use of this source code is governed by a 13641 // for details. All rights reserved. Use of this source code is governed by a
13480 // BSD-style license that can be found in the LICENSE file. 13642 // BSD-style license that can be found in the LICENSE file.
13481 13643
13482 13644
13483 @DocsEditable 13645 @DocsEditable
13484 @DomName('HTMLLegendElement') 13646 @DomName('HTMLLegendElement')
13485 class LegendElement extends _HTMLElement native "HTMLLegendElement" { 13647 class LegendElement extends _HTMLElement native "HTMLLegendElement" {
13648 // To suppress missing implicit constructor warnings.
13649 factory LegendElement._() { throw new UnsupportedError("Not supported"); }
13486 13650
13487 @DomName('HTMLLegendElement.HTMLLegendElement') 13651 @DomName('HTMLLegendElement.HTMLLegendElement')
13488 @DocsEditable 13652 @DocsEditable
13489 factory LegendElement() => document.$dom_createElement("legend"); 13653 factory LegendElement() => document.$dom_createElement("legend");
13490 13654
13491 @DomName('HTMLLegendElement.form') 13655 @DomName('HTMLLegendElement.form')
13492 @DocsEditable 13656 @DocsEditable
13493 final FormElement form; 13657 final FormElement form;
13494 } 13658 }
13495 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13659 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13496 // for details. All rights reserved. Use of this source code is governed by a 13660 // for details. All rights reserved. Use of this source code is governed by a
13497 // BSD-style license that can be found in the LICENSE file. 13661 // BSD-style license that can be found in the LICENSE file.
13498 13662
13499 13663
13500 @DocsEditable 13664 @DocsEditable
13501 @DomName('HTMLLinkElement') 13665 @DomName('HTMLLinkElement')
13502 class LinkElement extends _HTMLElement native "HTMLLinkElement" { 13666 class LinkElement extends _HTMLElement native "HTMLLinkElement" {
13667 // To suppress missing implicit constructor warnings.
13668 factory LinkElement._() { throw new UnsupportedError("Not supported"); }
13503 13669
13504 @DomName('HTMLLinkElement.HTMLLinkElement') 13670 @DomName('HTMLLinkElement.HTMLLinkElement')
13505 @DocsEditable 13671 @DocsEditable
13506 factory LinkElement() => document.$dom_createElement("link"); 13672 factory LinkElement() => document.$dom_createElement("link");
13507 13673
13508 @DomName('HTMLLinkElement.disabled') 13674 @DomName('HTMLLinkElement.disabled')
13509 @DocsEditable 13675 @DocsEditable
13510 bool disabled; 13676 bool disabled;
13511 13677
13512 @DomName('HTMLLinkElement.href') 13678 @DomName('HTMLLinkElement.href')
(...skipping 30 matching lines...) Expand all
13543 @DocsEditable 13709 @DocsEditable
13544 String type; 13710 String type;
13545 } 13711 }
13546 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 13712 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
13547 // for details. All rights reserved. Use of this source code is governed by a 13713 // for details. All rights reserved. Use of this source code is governed by a
13548 // BSD-style license that can be found in the LICENSE file. 13714 // BSD-style license that can be found in the LICENSE file.
13549 13715
13550 13716
13551 @DocsEditable 13717 @DocsEditable
13552 @DomName('Location') 13718 @DomName('Location')
13553 class Location implements LocationBase native "Location" { 13719 class Location extends Interceptor implements LocationBase native "Location" {
13554 13720
13555 @DomName('Location.ancestorOrigins') 13721 @DomName('Location.ancestorOrigins')
13556 @DocsEditable 13722 @DocsEditable
13557 @Experimental // nonstandard 13723 @Experimental // nonstandard
13558 @Returns('DomStringList') 13724 @Returns('DomStringList')
13559 @Creates('DomStringList') 13725 @Creates('DomStringList')
13560 final List<String> ancestorOrigins; 13726 final List<String> ancestorOrigins;
13561 13727
13562 @DomName('Location.hash') 13728 @DomName('Location.hash')
13563 @DocsEditable 13729 @DocsEditable
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
13628 @Experimental 13794 @Experimental
13629 typedef void MidiErrorCallback(DomError error); 13795 typedef void MidiErrorCallback(DomError error);
13630 // 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
13631 // 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
13632 // BSD-style license that can be found in the LICENSE file. 13798 // BSD-style license that can be found in the LICENSE file.
13633 13799
13634 13800
13635 @DocsEditable 13801 @DocsEditable
13636 @DomName('HTMLMapElement') 13802 @DomName('HTMLMapElement')
13637 class MapElement extends _HTMLElement native "HTMLMapElement" { 13803 class MapElement extends _HTMLElement native "HTMLMapElement" {
13804 // To suppress missing implicit constructor warnings.
13805 factory MapElement._() { throw new UnsupportedError("Not supported"); }
13638 13806
13639 @DomName('HTMLMapElement.HTMLMapElement') 13807 @DomName('HTMLMapElement.HTMLMapElement')
13640 @DocsEditable 13808 @DocsEditable
13641 factory MapElement() => document.$dom_createElement("map"); 13809 factory MapElement() => document.$dom_createElement("map");
13642 13810
13643 @DomName('HTMLMapElement.areas') 13811 @DomName('HTMLMapElement.areas')
13644 @DocsEditable 13812 @DocsEditable
13645 final HtmlCollection areas; 13813 final HtmlCollection areas;
13646 13814
13647 @DomName('HTMLMapElement.name') 13815 @DomName('HTMLMapElement.name')
13648 @DocsEditable 13816 @DocsEditable
13649 String name; 13817 String name;
13650 } 13818 }
13651 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13819 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13652 // for details. All rights reserved. Use of this source code is governed by a 13820 // for details. All rights reserved. Use of this source code is governed by a
13653 // BSD-style license that can be found in the LICENSE file. 13821 // BSD-style license that can be found in the LICENSE file.
13654 13822
13655 13823
13656 @DocsEditable 13824 @DocsEditable
13657 @DomName('MediaController') 13825 @DomName('MediaController')
13658 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element .html#mediacontroller 13826 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element .html#mediacontroller
13659 @Experimental 13827 @Experimental
13660 class MediaController extends EventTarget native "MediaController" { 13828 class MediaController extends EventTarget native "MediaController" {
13829 // To suppress missing implicit constructor warnings.
13830 factory MediaController._() { throw new UnsupportedError("Not supported"); }
13661 13831
13662 @DomName('MediaController.MediaController') 13832 @DomName('MediaController.MediaController')
13663 @DocsEditable 13833 @DocsEditable
13664 factory MediaController() { 13834 factory MediaController() {
13665 return MediaController._create_1(); 13835 return MediaController._create_1();
13666 } 13836 }
13667 static MediaController _create_1() => JS('MediaController', 'new MediaControll er()'); 13837 static MediaController _create_1() => JS('MediaController', 'new MediaControll er()');
13668 13838
13669 @DomName('MediaController.buffered') 13839 @DomName('MediaController.buffered')
13670 @DocsEditable 13840 @DocsEditable
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
13738 } 13908 }
13739 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13909 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13740 // for details. All rights reserved. Use of this source code is governed by a 13910 // for details. All rights reserved. Use of this source code is governed by a
13741 // BSD-style license that can be found in the LICENSE file. 13911 // BSD-style license that can be found in the LICENSE file.
13742 13912
13743 13913
13744 @DocsEditable 13914 @DocsEditable
13745 @DomName('HTMLMediaElement') 13915 @DomName('HTMLMediaElement')
13746 @Unstable 13916 @Unstable
13747 class MediaElement extends _HTMLElement native "HTMLMediaElement" { 13917 class MediaElement extends _HTMLElement native "HTMLMediaElement" {
13918 // To suppress missing implicit constructor warnings.
13919 factory MediaElement._() { throw new UnsupportedError("Not supported"); }
13748 13920
13749 @DomName('HTMLMediaElement.canplayEvent') 13921 @DomName('HTMLMediaElement.canplayEvent')
13750 @DocsEditable 13922 @DocsEditable
13751 static const EventStreamProvider<Event> canPlayEvent = const EventStreamProvid er<Event>('canplay'); 13923 static const EventStreamProvider<Event> canPlayEvent = const EventStreamProvid er<Event>('canplay');
13752 13924
13753 @DomName('HTMLMediaElement.canplaythroughEvent') 13925 @DomName('HTMLMediaElement.canplaythroughEvent')
13754 @DocsEditable 13926 @DocsEditable
13755 static const EventStreamProvider<Event> canPlayThroughEvent = const EventStrea mProvider<Event>('canplaythrough'); 13927 static const EventStreamProvider<Event> canPlayThroughEvent = const EventStrea mProvider<Event>('canplaythrough');
13756 13928
13757 @DomName('HTMLMediaElement.durationchangeEvent') 13929 @DomName('HTMLMediaElement.durationchangeEvent')
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
14225 Stream<MediaKeyEvent> get onNeedKey => needKeyEvent.forTarget(this); 14397 Stream<MediaKeyEvent> get onNeedKey => needKeyEvent.forTarget(this);
14226 } 14398 }
14227 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14399 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14228 // for details. All rights reserved. Use of this source code is governed by a 14400 // for details. All rights reserved. Use of this source code is governed by a
14229 // BSD-style license that can be found in the LICENSE file. 14401 // BSD-style license that can be found in the LICENSE file.
14230 14402
14231 14403
14232 @DocsEditable 14404 @DocsEditable
14233 @DomName('MediaError') 14405 @DomName('MediaError')
14234 @Unstable 14406 @Unstable
14235 class MediaError native "MediaError" { 14407 class MediaError extends Interceptor native "MediaError" {
14236 14408
14237 @DomName('MediaError.MEDIA_ERR_ABORTED') 14409 @DomName('MediaError.MEDIA_ERR_ABORTED')
14238 @DocsEditable 14410 @DocsEditable
14239 static const int MEDIA_ERR_ABORTED = 1; 14411 static const int MEDIA_ERR_ABORTED = 1;
14240 14412
14241 @DomName('MediaError.MEDIA_ERR_DECODE') 14413 @DomName('MediaError.MEDIA_ERR_DECODE')
14242 @DocsEditable 14414 @DocsEditable
14243 static const int MEDIA_ERR_DECODE = 3; 14415 static const int MEDIA_ERR_DECODE = 3;
14244 14416
14245 @DomName('MediaError.MEDIA_ERR_ENCRYPTED') 14417 @DomName('MediaError.MEDIA_ERR_ENCRYPTED')
(...skipping 16 matching lines...) Expand all
14262 } 14434 }
14263 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14435 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14264 // for details. All rights reserved. Use of this source code is governed by a 14436 // for details. All rights reserved. Use of this source code is governed by a
14265 // BSD-style license that can be found in the LICENSE file. 14437 // BSD-style license that can be found in the LICENSE file.
14266 14438
14267 14439
14268 @DocsEditable 14440 @DocsEditable
14269 @DomName('MediaKeyError') 14441 @DomName('MediaKeyError')
14270 // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypted -media.html#error-codes 14442 // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypted -media.html#error-codes
14271 @Experimental 14443 @Experimental
14272 class MediaKeyError native "MediaKeyError" { 14444 class MediaKeyError extends Interceptor native "MediaKeyError" {
14273 14445
14274 @DomName('MediaKeyError.MEDIA_KEYERR_CLIENT') 14446 @DomName('MediaKeyError.MEDIA_KEYERR_CLIENT')
14275 @DocsEditable 14447 @DocsEditable
14276 static const int MEDIA_KEYERR_CLIENT = 2; 14448 static const int MEDIA_KEYERR_CLIENT = 2;
14277 14449
14278 @DomName('MediaKeyError.MEDIA_KEYERR_DOMAIN') 14450 @DomName('MediaKeyError.MEDIA_KEYERR_DOMAIN')
14279 @DocsEditable 14451 @DocsEditable
14280 static const int MEDIA_KEYERR_DOMAIN = 6; 14452 static const int MEDIA_KEYERR_DOMAIN = 6;
14281 14453
14282 @DomName('MediaKeyError.MEDIA_KEYERR_HARDWARECHANGE') 14454 @DomName('MediaKeyError.MEDIA_KEYERR_HARDWARECHANGE')
(...skipping 24 matching lines...) Expand all
14307 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14479 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14308 // for details. All rights reserved. Use of this source code is governed by a 14480 // for details. All rights reserved. Use of this source code is governed by a
14309 // BSD-style license that can be found in the LICENSE file. 14481 // BSD-style license that can be found in the LICENSE file.
14310 14482
14311 14483
14312 @DocsEditable 14484 @DocsEditable
14313 @DomName('MediaKeyEvent') 14485 @DomName('MediaKeyEvent')
14314 // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypted -media.html#event-definitions 14486 // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypted -media.html#event-definitions
14315 @Experimental 14487 @Experimental
14316 class MediaKeyEvent extends Event native "MediaKeyEvent" { 14488 class MediaKeyEvent extends Event native "MediaKeyEvent" {
14489 // To suppress missing implicit constructor warnings.
14490 factory MediaKeyEvent._() { throw new UnsupportedError("Not supported"); }
14317 14491
14318 @JSName('defaultURL') 14492 @JSName('defaultURL')
14319 @DomName('MediaKeyEvent.defaultURL') 14493 @DomName('MediaKeyEvent.defaultURL')
14320 @DocsEditable 14494 @DocsEditable
14321 final String defaultUrl; 14495 final String defaultUrl;
14322 14496
14323 @DomName('MediaKeyEvent.errorCode') 14497 @DomName('MediaKeyEvent.errorCode')
14324 @DocsEditable 14498 @DocsEditable
14325 final MediaKeyError errorCode; 14499 final MediaKeyError errorCode;
14326 14500
(...skipping 20 matching lines...) Expand all
14347 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14521 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14348 // for details. All rights reserved. Use of this source code is governed by a 14522 // for details. All rights reserved. Use of this source code is governed by a
14349 // BSD-style license that can be found in the LICENSE file. 14523 // BSD-style license that can be found in the LICENSE file.
14350 14524
14351 14525
14352 @DocsEditable 14526 @DocsEditable
14353 @DomName('MediaKeyMessageEvent') 14527 @DomName('MediaKeyMessageEvent')
14354 // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypted -media.html#dom-mediakeymessageevent 14528 // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypted -media.html#dom-mediakeymessageevent
14355 @Experimental 14529 @Experimental
14356 class MediaKeyMessageEvent extends Event native "MediaKeyMessageEvent" { 14530 class MediaKeyMessageEvent extends Event native "MediaKeyMessageEvent" {
14531 // To suppress missing implicit constructor warnings.
14532 factory MediaKeyMessageEvent._() { throw new UnsupportedError("Not supported") ; }
14357 14533
14358 @JSName('destinationURL') 14534 @JSName('destinationURL')
14359 @DomName('MediaKeyMessageEvent.destinationURL') 14535 @DomName('MediaKeyMessageEvent.destinationURL')
14360 @DocsEditable 14536 @DocsEditable
14361 final String destinationUrl; 14537 final String destinationUrl;
14362 14538
14363 @DomName('MediaKeyMessageEvent.message') 14539 @DomName('MediaKeyMessageEvent.message')
14364 @DocsEditable 14540 @DocsEditable
14365 final Uint8List message; 14541 final Uint8List message;
14366 } 14542 }
14367 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14543 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14368 // for details. All rights reserved. Use of this source code is governed by a 14544 // for details. All rights reserved. Use of this source code is governed by a
14369 // BSD-style license that can be found in the LICENSE file. 14545 // BSD-style license that can be found in the LICENSE file.
14370 14546
14371 14547
14372 @DocsEditable 14548 @DocsEditable
14373 @DomName('MediaKeyNeededEvent') 14549 @DomName('MediaKeyNeededEvent')
14374 // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypted -media.html#dom-mediakeyneededevent 14550 // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypted -media.html#dom-mediakeyneededevent
14375 @Experimental 14551 @Experimental
14376 class MediaKeyNeededEvent extends Event native "MediaKeyNeededEvent" { 14552 class MediaKeyNeededEvent extends Event native "MediaKeyNeededEvent" {
14553 // To suppress missing implicit constructor warnings.
14554 factory MediaKeyNeededEvent._() { throw new UnsupportedError("Not supported"); }
14377 14555
14378 @DomName('MediaKeyNeededEvent.initData') 14556 @DomName('MediaKeyNeededEvent.initData')
14379 @DocsEditable 14557 @DocsEditable
14380 final Uint8List initData; 14558 final Uint8List initData;
14381 } 14559 }
14382 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14560 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14383 // for details. All rights reserved. Use of this source code is governed by a 14561 // for details. All rights reserved. Use of this source code is governed by a
14384 // BSD-style license that can be found in the LICENSE file. 14562 // BSD-style license that can be found in the LICENSE file.
14385 14563
14386 14564
14387 @DocsEditable 14565 @DocsEditable
14388 @DomName('MediaKeySession') 14566 @DomName('MediaKeySession')
14389 // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypted -media.html#dom-mediakeysession 14567 // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypted -media.html#dom-mediakeysession
14390 @Experimental 14568 @Experimental
14391 class MediaKeySession extends EventTarget native "MediaKeySession" { 14569 class MediaKeySession extends EventTarget native "MediaKeySession" {
14570 // To suppress missing implicit constructor warnings.
14571 factory MediaKeySession._() { throw new UnsupportedError("Not supported"); }
14392 14572
14393 @DomName('MediaKeySession.webkitkeyaddedEvent') 14573 @DomName('MediaKeySession.webkitkeyaddedEvent')
14394 @DocsEditable 14574 @DocsEditable
14395 @SupportedBrowser(SupportedBrowser.CHROME) 14575 @SupportedBrowser(SupportedBrowser.CHROME)
14396 @SupportedBrowser(SupportedBrowser.SAFARI) 14576 @SupportedBrowser(SupportedBrowser.SAFARI)
14397 @Experimental 14577 @Experimental
14398 static const EventStreamProvider<MediaKeyEvent> keyAddedEvent = const EventStr eamProvider<MediaKeyEvent>('webkitkeyadded'); 14578 static const EventStreamProvider<MediaKeyEvent> keyAddedEvent = const EventStr eamProvider<MediaKeyEvent>('webkitkeyadded');
14399 14579
14400 @DomName('MediaKeySession.webkitkeyerrorEvent') 14580 @DomName('MediaKeySession.webkitkeyerrorEvent')
14401 @DocsEditable 14581 @DocsEditable
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
14459 } 14639 }
14460 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14640 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14461 // for details. All rights reserved. Use of this source code is governed by a 14641 // for details. All rights reserved. Use of this source code is governed by a
14462 // BSD-style license that can be found in the LICENSE file. 14642 // BSD-style license that can be found in the LICENSE file.
14463 14643
14464 14644
14465 @DocsEditable 14645 @DocsEditable
14466 @DomName('MediaKeys') 14646 @DomName('MediaKeys')
14467 // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypted -media.html 14647 // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypted -media.html
14468 @Experimental 14648 @Experimental
14469 class MediaKeys native "MediaKeys" { 14649 class MediaKeys extends Interceptor native "MediaKeys" {
14470 14650
14471 @DomName('MediaKeys.MediaKeys') 14651 @DomName('MediaKeys.MediaKeys')
14472 @DocsEditable 14652 @DocsEditable
14473 factory MediaKeys(String keySystem) { 14653 factory MediaKeys(String keySystem) {
14474 return MediaKeys._create_1(keySystem); 14654 return MediaKeys._create_1(keySystem);
14475 } 14655 }
14476 static MediaKeys _create_1(keySystem) => JS('MediaKeys', 'new MediaKeys(#)', k eySystem); 14656 static MediaKeys _create_1(keySystem) => JS('MediaKeys', 'new MediaKeys(#)', k eySystem);
14477 14657
14478 @DomName('MediaKeys.keySystem') 14658 @DomName('MediaKeys.keySystem')
14479 @DocsEditable 14659 @DocsEditable
14480 final String keySystem; 14660 final String keySystem;
14481 14661
14482 @DomName('MediaKeys.createSession') 14662 @DomName('MediaKeys.createSession')
14483 @DocsEditable 14663 @DocsEditable
14484 MediaKeySession createSession(String type, Uint8List initData) native; 14664 MediaKeySession createSession(String type, Uint8List initData) native;
14485 } 14665 }
14486 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14666 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14487 // for details. All rights reserved. Use of this source code is governed by a 14667 // for details. All rights reserved. Use of this source code is governed by a
14488 // BSD-style license that can be found in the LICENSE file. 14668 // BSD-style license that can be found in the LICENSE file.
14489 14669
14490 14670
14491 @DocsEditable 14671 @DocsEditable
14492 @DomName('MediaList') 14672 @DomName('MediaList')
14493 @Unstable 14673 @Unstable
14494 class MediaList native "MediaList" { 14674 class MediaList extends Interceptor native "MediaList" {
14495 14675
14496 @DomName('MediaList.length') 14676 @DomName('MediaList.length')
14497 @DocsEditable 14677 @DocsEditable
14498 final int length; 14678 final int length;
14499 14679
14500 @DomName('MediaList.mediaText') 14680 @DomName('MediaList.mediaText')
14501 @DocsEditable 14681 @DocsEditable
14502 String mediaText; 14682 String mediaText;
14503 14683
14504 @DomName('MediaList.appendMedium') 14684 @DomName('MediaList.appendMedium')
14505 @DocsEditable 14685 @DocsEditable
14506 void appendMedium(String newMedium) native; 14686 void appendMedium(String newMedium) native;
14507 14687
14508 @DomName('MediaList.deleteMedium') 14688 @DomName('MediaList.deleteMedium')
14509 @DocsEditable 14689 @DocsEditable
14510 void deleteMedium(String oldMedium) native; 14690 void deleteMedium(String oldMedium) native;
14511 14691
14512 @DomName('MediaList.item') 14692 @DomName('MediaList.item')
14513 @DocsEditable 14693 @DocsEditable
14514 String item(int index) native; 14694 String item(int index) native;
14515 } 14695 }
14516 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14696 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14517 // for details. All rights reserved. Use of this source code is governed by a 14697 // for details. All rights reserved. Use of this source code is governed by a
14518 // BSD-style license that can be found in the LICENSE file. 14698 // BSD-style license that can be found in the LICENSE file.
14519 14699
14520 14700
14521 @DocsEditable 14701 @DocsEditable
14522 @DomName('MediaQueryList') 14702 @DomName('MediaQueryList')
14523 @Unstable 14703 @Unstable
14524 class MediaQueryList native "MediaQueryList" { 14704 class MediaQueryList extends Interceptor native "MediaQueryList" {
14525 14705
14526 @DomName('MediaQueryList.matches') 14706 @DomName('MediaQueryList.matches')
14527 @DocsEditable 14707 @DocsEditable
14528 final bool matches; 14708 final bool matches;
14529 14709
14530 @DomName('MediaQueryList.media') 14710 @DomName('MediaQueryList.media')
14531 @DocsEditable 14711 @DocsEditable
14532 final String media; 14712 final String media;
14533 14713
14534 @DomName('MediaQueryList.addListener') 14714 @DomName('MediaQueryList.addListener')
14535 @DocsEditable 14715 @DocsEditable
14536 void addListener(MediaQueryListListener listener) native; 14716 void addListener(MediaQueryListListener listener) native;
14537 14717
14538 @DomName('MediaQueryList.removeListener') 14718 @DomName('MediaQueryList.removeListener')
14539 @DocsEditable 14719 @DocsEditable
14540 void removeListener(MediaQueryListListener listener) native; 14720 void removeListener(MediaQueryListListener listener) native;
14541 } 14721 }
14542 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14722 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14543 // for details. All rights reserved. Use of this source code is governed by a 14723 // for details. All rights reserved. Use of this source code is governed by a
14544 // BSD-style license that can be found in the LICENSE file. 14724 // BSD-style license that can be found in the LICENSE file.
14545 14725
14546 14726
14727 @DocsEditable
14547 @DomName('MediaQueryListListener') 14728 @DomName('MediaQueryListListener')
14548 @Unstable 14729 @Unstable
14549 abstract class MediaQueryListListener { 14730 abstract class MediaQueryListListener extends Interceptor {
14550 14731
14551 void queryChanged(MediaQueryList list); 14732 void queryChanged(MediaQueryList list);
14552 } 14733 }
14553 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14734 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14554 // for details. All rights reserved. Use of this source code is governed by a 14735 // for details. All rights reserved. Use of this source code is governed by a
14555 // BSD-style license that can be found in the LICENSE file. 14736 // BSD-style license that can be found in the LICENSE file.
14556 14737
14557 14738
14558 @DocsEditable 14739 @DocsEditable
14559 @DomName('WebKitMediaSource') 14740 @DomName('WebKitMediaSource')
14560 @SupportedBrowser(SupportedBrowser.CHROME) 14741 @SupportedBrowser(SupportedBrowser.CHROME)
14561 @SupportedBrowser(SupportedBrowser.SAFARI) 14742 @SupportedBrowser(SupportedBrowser.SAFARI)
14562 @Experimental 14743 @Experimental
14563 // https://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html #mediasource 14744 // https://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html #mediasource
14564 class MediaSource extends EventTarget native "WebKitMediaSource" { 14745 class MediaSource extends EventTarget native "WebKitMediaSource" {
14746 // To suppress missing implicit constructor warnings.
14747 factory MediaSource._() { throw new UnsupportedError("Not supported"); }
14565 14748
14566 @DomName('WebKitMediaSource.WebKitMediaSource') 14749 @DomName('WebKitMediaSource.WebKitMediaSource')
14567 @DocsEditable 14750 @DocsEditable
14568 factory MediaSource() { 14751 factory MediaSource() {
14569 return MediaSource._create_1(); 14752 return MediaSource._create_1();
14570 } 14753 }
14571 static MediaSource _create_1() => JS('MediaSource', 'new WebKitMediaSource()') ; 14754 static MediaSource _create_1() => JS('MediaSource', 'new WebKitMediaSource()') ;
14572 14755
14573 @DomName('WebKitMediaSource.activeSourceBuffers') 14756 @DomName('WebKitMediaSource.activeSourceBuffers')
14574 @DocsEditable 14757 @DocsEditable
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
14619 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 14802 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
14620 // for details. All rights reserved. Use of this source code is governed by a 14803 // for details. All rights reserved. Use of this source code is governed by a
14621 // BSD-style license that can be found in the LICENSE file. 14804 // BSD-style license that can be found in the LICENSE file.
14622 14805
14623 14806
14624 @DomName('MediaStream') 14807 @DomName('MediaStream')
14625 @SupportedBrowser(SupportedBrowser.CHROME) 14808 @SupportedBrowser(SupportedBrowser.CHROME)
14626 @Experimental 14809 @Experimental
14627 // http://dev.w3.org/2011/webrtc/editor/getusermedia.html#mediastream 14810 // http://dev.w3.org/2011/webrtc/editor/getusermedia.html#mediastream
14628 class MediaStream extends EventTarget native "MediaStream" { 14811 class MediaStream extends EventTarget native "MediaStream" {
14812 // To suppress missing implicit constructor warnings.
14813 factory MediaStream._() { throw new UnsupportedError("Not supported"); }
14629 14814
14630 @DomName('MediaStream.addtrackEvent') 14815 @DomName('MediaStream.addtrackEvent')
14631 @DocsEditable 14816 @DocsEditable
14632 static const EventStreamProvider<Event> addTrackEvent = const EventStreamProvi der<Event>('addtrack'); 14817 static const EventStreamProvider<Event> addTrackEvent = const EventStreamProvi der<Event>('addtrack');
14633 14818
14634 @DomName('MediaStream.endedEvent') 14819 @DomName('MediaStream.endedEvent')
14635 @DocsEditable 14820 @DocsEditable
14636 static const EventStreamProvider<Event> endedEvent = const EventStreamProvider <Event>('ended'); 14821 static const EventStreamProvider<Event> endedEvent = const EventStreamProvider <Event>('ended');
14637 14822
14638 @DomName('MediaStream.removetrackEvent') 14823 @DomName('MediaStream.removetrackEvent')
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
14740 // for details. All rights reserved. Use of this source code is governed by a 14925 // for details. All rights reserved. Use of this source code is governed by a
14741 // BSD-style license that can be found in the LICENSE file. 14926 // BSD-style license that can be found in the LICENSE file.
14742 14927
14743 14928
14744 @DocsEditable 14929 @DocsEditable
14745 @DomName('MediaStreamEvent') 14930 @DomName('MediaStreamEvent')
14746 @SupportedBrowser(SupportedBrowser.CHROME) 14931 @SupportedBrowser(SupportedBrowser.CHROME)
14747 @Experimental 14932 @Experimental
14748 // http://dev.w3.org/2011/webrtc/editor/getusermedia.html 14933 // http://dev.w3.org/2011/webrtc/editor/getusermedia.html
14749 class MediaStreamEvent extends Event native "MediaStreamEvent" { 14934 class MediaStreamEvent extends Event native "MediaStreamEvent" {
14935 // To suppress missing implicit constructor warnings.
14936 factory MediaStreamEvent._() { throw new UnsupportedError("Not supported"); }
14750 14937
14751 /// Checks if this type is supported on the current platform. 14938 /// Checks if this type is supported on the current platform.
14752 static bool get supported => Device.isEventTypeSupported('MediaStreamEvent'); 14939 static bool get supported => Device.isEventTypeSupported('MediaStreamEvent');
14753 14940
14754 @DomName('MediaStreamEvent.stream') 14941 @DomName('MediaStreamEvent.stream')
14755 @DocsEditable 14942 @DocsEditable
14756 final MediaStream stream; 14943 final MediaStream stream;
14757 } 14944 }
14758 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14945 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14759 // for details. All rights reserved. Use of this source code is governed by a 14946 // for details. All rights reserved. Use of this source code is governed by a
14760 // BSD-style license that can be found in the LICENSE file. 14947 // BSD-style license that can be found in the LICENSE file.
14761 14948
14762 14949
14763 @DocsEditable 14950 @DocsEditable
14764 @DomName('MediaStreamTrack') 14951 @DomName('MediaStreamTrack')
14765 @SupportedBrowser(SupportedBrowser.CHROME) 14952 @SupportedBrowser(SupportedBrowser.CHROME)
14766 @Experimental 14953 @Experimental
14767 // http://dev.w3.org/2011/webrtc/editor/getusermedia.html#mediastreamtrack 14954 // http://dev.w3.org/2011/webrtc/editor/getusermedia.html#mediastreamtrack
14768 class MediaStreamTrack extends EventTarget native "MediaStreamTrack" { 14955 class MediaStreamTrack extends EventTarget native "MediaStreamTrack" {
14956 // To suppress missing implicit constructor warnings.
14957 factory MediaStreamTrack._() { throw new UnsupportedError("Not supported"); }
14769 14958
14770 @DomName('MediaStreamTrack.endedEvent') 14959 @DomName('MediaStreamTrack.endedEvent')
14771 @DocsEditable 14960 @DocsEditable
14772 static const EventStreamProvider<Event> endedEvent = const EventStreamProvider <Event>('ended'); 14961 static const EventStreamProvider<Event> endedEvent = const EventStreamProvider <Event>('ended');
14773 14962
14774 @DomName('MediaStreamTrack.muteEvent') 14963 @DomName('MediaStreamTrack.muteEvent')
14775 @DocsEditable 14964 @DocsEditable
14776 static const EventStreamProvider<Event> muteEvent = const EventStreamProvider< Event>('mute'); 14965 static const EventStreamProvider<Event> muteEvent = const EventStreamProvider< Event>('mute');
14777 14966
14778 @DomName('MediaStreamTrack.unmuteEvent') 14967 @DomName('MediaStreamTrack.unmuteEvent')
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
14829 // for details. All rights reserved. Use of this source code is governed by a 15018 // for details. All rights reserved. Use of this source code is governed by a
14830 // BSD-style license that can be found in the LICENSE file. 15019 // BSD-style license that can be found in the LICENSE file.
14831 15020
14832 15021
14833 @DocsEditable 15022 @DocsEditable
14834 @DomName('MediaStreamTrackEvent') 15023 @DomName('MediaStreamTrackEvent')
14835 @SupportedBrowser(SupportedBrowser.CHROME) 15024 @SupportedBrowser(SupportedBrowser.CHROME)
14836 @Experimental 15025 @Experimental
14837 // http://dev.w3.org/2011/webrtc/editor/getusermedia.html 15026 // http://dev.w3.org/2011/webrtc/editor/getusermedia.html
14838 class MediaStreamTrackEvent extends Event native "MediaStreamTrackEvent" { 15027 class MediaStreamTrackEvent extends Event native "MediaStreamTrackEvent" {
15028 // To suppress missing implicit constructor warnings.
15029 factory MediaStreamTrackEvent._() { throw new UnsupportedError("Not supported" ); }
14839 15030
14840 /// Checks if this type is supported on the current platform. 15031 /// Checks if this type is supported on the current platform.
14841 static bool get supported => Device.isEventTypeSupported('MediaStreamTrackEven t'); 15032 static bool get supported => Device.isEventTypeSupported('MediaStreamTrackEven t');
14842 15033
14843 @DomName('MediaStreamTrackEvent.track') 15034 @DomName('MediaStreamTrackEvent.track')
14844 @DocsEditable 15035 @DocsEditable
14845 final MediaStreamTrack track; 15036 final MediaStreamTrack track;
14846 } 15037 }
14847 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15038 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14848 // for details. All rights reserved. Use of this source code is governed by a 15039 // for details. All rights reserved. Use of this source code is governed by a
14849 // BSD-style license that can be found in the LICENSE file. 15040 // BSD-style license that can be found in the LICENSE file.
14850 15041
14851 15042
14852 @DocsEditable 15043 @DocsEditable
14853 @DomName('MemoryInfo') 15044 @DomName('MemoryInfo')
14854 @Experimental // nonstandard 15045 @Experimental // nonstandard
14855 class MemoryInfo native "MemoryInfo" { 15046 class MemoryInfo extends Interceptor native "MemoryInfo" {
14856 15047
14857 @DomName('MemoryInfo.jsHeapSizeLimit') 15048 @DomName('MemoryInfo.jsHeapSizeLimit')
14858 @DocsEditable 15049 @DocsEditable
14859 final int jsHeapSizeLimit; 15050 final int jsHeapSizeLimit;
14860 15051
14861 @DomName('MemoryInfo.totalJSHeapSize') 15052 @DomName('MemoryInfo.totalJSHeapSize')
14862 @DocsEditable 15053 @DocsEditable
14863 final int totalJSHeapSize; 15054 final int totalJSHeapSize;
14864 15055
14865 @DomName('MemoryInfo.usedJSHeapSize') 15056 @DomName('MemoryInfo.usedJSHeapSize')
(...skipping 11 matching lines...) Expand all
14877 * 15068 *
14878 * A <menu> element represents an unordered list of menu commands. 15069 * A <menu> element represents an unordered list of menu commands.
14879 * 15070 *
14880 * See also: 15071 * See also:
14881 * 15072 *
14882 * * [Menu Element](https://developer.mozilla.org/en-US/docs/HTML/Element/menu) from MDN. 15073 * * [Menu Element](https://developer.mozilla.org/en-US/docs/HTML/Element/menu) from MDN.
14883 * * [Menu Element](http://www.w3.org/TR/html5/the-menu-element.html#the-menu-e lement) from the W3C. 15074 * * [Menu Element](http://www.w3.org/TR/html5/the-menu-element.html#the-menu-e lement) from the W3C.
14884 */ 15075 */
14885 @DomName('HTMLMenuElement') 15076 @DomName('HTMLMenuElement')
14886 class MenuElement extends _HTMLElement native "HTMLMenuElement" { 15077 class MenuElement extends _HTMLElement native "HTMLMenuElement" {
15078 // To suppress missing implicit constructor warnings.
15079 factory MenuElement._() { throw new UnsupportedError("Not supported"); }
14887 15080
14888 @DomName('HTMLMenuElement.HTMLMenuElement') 15081 @DomName('HTMLMenuElement.HTMLMenuElement')
14889 @DocsEditable 15082 @DocsEditable
14890 factory MenuElement() => document.$dom_createElement("menu"); 15083 factory MenuElement() => document.$dom_createElement("menu");
14891 } 15084 }
14892 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15085 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14893 // for details. All rights reserved. Use of this source code is governed by a 15086 // for details. All rights reserved. Use of this source code is governed by a
14894 // BSD-style license that can be found in the LICENSE file. 15087 // BSD-style license that can be found in the LICENSE file.
14895 15088
14896 15089
14897 @DocsEditable 15090 @DocsEditable
14898 @DomName('MessageChannel') 15091 @DomName('MessageChannel')
14899 @Unstable 15092 @Unstable
14900 class MessageChannel native "MessageChannel" { 15093 class MessageChannel extends Interceptor native "MessageChannel" {
14901 15094
14902 @DomName('MessageChannel.MessageChannel') 15095 @DomName('MessageChannel.MessageChannel')
14903 @DocsEditable 15096 @DocsEditable
14904 factory MessageChannel() { 15097 factory MessageChannel() {
14905 return MessageChannel._create_1(); 15098 return MessageChannel._create_1();
14906 } 15099 }
14907 static MessageChannel _create_1() => JS('MessageChannel', 'new MessageChannel( )'); 15100 static MessageChannel _create_1() => JS('MessageChannel', 'new MessageChannel( )');
14908 15101
14909 @DomName('MessageChannel.port1') 15102 @DomName('MessageChannel.port1')
14910 @DocsEditable 15103 @DocsEditable
(...skipping 17 matching lines...) Expand all
14928 String origin, String lastEventId, 15121 String origin, String lastEventId,
14929 Window source, List messagePorts}) { 15122 Window source, List messagePorts}) {
14930 if (source == null) { 15123 if (source == null) {
14931 source = window; 15124 source = window;
14932 } 15125 }
14933 var event = document.$dom_createEvent("MessageEvent"); 15126 var event = document.$dom_createEvent("MessageEvent");
14934 event.$dom_initMessageEvent(type, canBubble, cancelable, data, origin, 15127 event.$dom_initMessageEvent(type, canBubble, cancelable, data, origin,
14935 lastEventId, source, messagePorts); 15128 lastEventId, source, messagePorts);
14936 return event; 15129 return event;
14937 } 15130 }
15131 // To suppress missing implicit constructor warnings.
15132 factory MessageEvent._() { throw new UnsupportedError("Not supported"); }
14938 15133
14939 dynamic get data => convertNativeToDart_SerializedScriptValue(this._get_data); 15134 dynamic get data => convertNativeToDart_SerializedScriptValue(this._get_data);
14940 @JSName('data') 15135 @JSName('data')
14941 @DomName('MessageEvent.data') 15136 @DomName('MessageEvent.data')
14942 @DocsEditable 15137 @DocsEditable
14943 @annotation_Creates_SerializedScriptValue 15138 @annotation_Creates_SerializedScriptValue
14944 @annotation_Returns_SerializedScriptValue 15139 @annotation_Returns_SerializedScriptValue
14945 final dynamic _get_data; 15140 final dynamic _get_data;
14946 15141
14947 @DomName('MessageEvent.lastEventId') 15142 @DomName('MessageEvent.lastEventId')
(...skipping 27 matching lines...) Expand all
14975 } 15170 }
14976 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15171 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14977 // for details. All rights reserved. Use of this source code is governed by a 15172 // for details. All rights reserved. Use of this source code is governed by a
14978 // BSD-style license that can be found in the LICENSE file. 15173 // BSD-style license that can be found in the LICENSE file.
14979 15174
14980 15175
14981 @DocsEditable 15176 @DocsEditable
14982 @DomName('MessagePort') 15177 @DomName('MessagePort')
14983 @Unstable 15178 @Unstable
14984 class MessagePort extends EventTarget native "MessagePort" { 15179 class MessagePort extends EventTarget native "MessagePort" {
15180 // To suppress missing implicit constructor warnings.
15181 factory MessagePort._() { throw new UnsupportedError("Not supported"); }
14985 15182
14986 @DomName('MessagePort.messageEvent') 15183 @DomName('MessagePort.messageEvent')
14987 @DocsEditable 15184 @DocsEditable
14988 static const EventStreamProvider<MessageEvent> messageEvent = const EventStrea mProvider<MessageEvent>('message'); 15185 static const EventStreamProvider<MessageEvent> messageEvent = const EventStrea mProvider<MessageEvent>('message');
14989 15186
14990 @JSName('addEventListener') 15187 @JSName('addEventListener')
14991 @DomName('MessagePort.addEventListener') 15188 @DomName('MessagePort.addEventListener')
14992 @DocsEditable 15189 @DocsEditable
14993 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; 15190 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native;
14994 15191
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
15035 Stream<MessageEvent> get onMessage => messageEvent.forTarget(this); 15232 Stream<MessageEvent> get onMessage => messageEvent.forTarget(this);
15036 } 15233 }
15037 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15234 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15038 // for details. All rights reserved. Use of this source code is governed by a 15235 // for details. All rights reserved. Use of this source code is governed by a
15039 // BSD-style license that can be found in the LICENSE file. 15236 // BSD-style license that can be found in the LICENSE file.
15040 15237
15041 15238
15042 @DocsEditable 15239 @DocsEditable
15043 @DomName('HTMLMetaElement') 15240 @DomName('HTMLMetaElement')
15044 class MetaElement extends _HTMLElement native "HTMLMetaElement" { 15241 class MetaElement extends _HTMLElement native "HTMLMetaElement" {
15242 // To suppress missing implicit constructor warnings.
15243 factory MetaElement._() { throw new UnsupportedError("Not supported"); }
15045 15244
15046 @DomName('HTMLMetaElement.HTMLMetaElement') 15245 @DomName('HTMLMetaElement.HTMLMetaElement')
15047 @DocsEditable 15246 @DocsEditable
15048 factory MetaElement() => document.$dom_createElement("meta"); 15247 factory MetaElement() => document.$dom_createElement("meta");
15049 15248
15050 @DomName('HTMLMetaElement.content') 15249 @DomName('HTMLMetaElement.content')
15051 @DocsEditable 15250 @DocsEditable
15052 String content; 15251 String content;
15053 15252
15054 @DomName('HTMLMetaElement.httpEquiv') 15253 @DomName('HTMLMetaElement.httpEquiv')
15055 @DocsEditable 15254 @DocsEditable
15056 String httpEquiv; 15255 String httpEquiv;
15057 15256
15058 @DomName('HTMLMetaElement.name') 15257 @DomName('HTMLMetaElement.name')
15059 @DocsEditable 15258 @DocsEditable
15060 String name; 15259 String name;
15061 } 15260 }
15062 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15261 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15063 // for details. All rights reserved. Use of this source code is governed by a 15262 // for details. All rights reserved. Use of this source code is governed by a
15064 // BSD-style license that can be found in the LICENSE file. 15263 // BSD-style license that can be found in the LICENSE file.
15065 15264
15066 15265
15067 @DocsEditable 15266 @DocsEditable
15068 @DomName('Metadata') 15267 @DomName('Metadata')
15069 // http://www.w3.org/TR/file-system-api/#the-metadata-interface 15268 // http://www.w3.org/TR/file-system-api/#the-metadata-interface
15070 @Experimental 15269 @Experimental
15071 class Metadata native "Metadata" { 15270 class Metadata extends Interceptor native "Metadata" {
15072 15271
15073 DateTime get modificationTime => _convertNativeToDart_DateTime(this._get_modif icationTime); 15272 DateTime get modificationTime => _convertNativeToDart_DateTime(this._get_modif icationTime);
15074 @JSName('modificationTime') 15273 @JSName('modificationTime')
15075 @DomName('Metadata.modificationTime') 15274 @DomName('Metadata.modificationTime')
15076 @DocsEditable 15275 @DocsEditable
15077 @Creates('Null') 15276 @Creates('Null')
15078 final dynamic _get_modificationTime; 15277 final dynamic _get_modificationTime;
15079 15278
15080 @DomName('Metadata.size') 15279 @DomName('Metadata.size')
15081 @DocsEditable 15280 @DocsEditable
(...skipping 15 matching lines...) Expand all
15097 // BSD-style license that can be found in the LICENSE file. 15296 // BSD-style license that can be found in the LICENSE file.
15098 15297
15099 15298
15100 @DocsEditable 15299 @DocsEditable
15101 @DomName('HTMLMeterElement') 15300 @DomName('HTMLMeterElement')
15102 @SupportedBrowser(SupportedBrowser.CHROME) 15301 @SupportedBrowser(SupportedBrowser.CHROME)
15103 @SupportedBrowser(SupportedBrowser.FIREFOX) 15302 @SupportedBrowser(SupportedBrowser.FIREFOX)
15104 @SupportedBrowser(SupportedBrowser.SAFARI) 15303 @SupportedBrowser(SupportedBrowser.SAFARI)
15105 @Unstable 15304 @Unstable
15106 class MeterElement extends _HTMLElement native "HTMLMeterElement" { 15305 class MeterElement extends _HTMLElement native "HTMLMeterElement" {
15306 // To suppress missing implicit constructor warnings.
15307 factory MeterElement._() { throw new UnsupportedError("Not supported"); }
15107 15308
15108 @DomName('HTMLMeterElement.HTMLMeterElement') 15309 @DomName('HTMLMeterElement.HTMLMeterElement')
15109 @DocsEditable 15310 @DocsEditable
15110 factory MeterElement() => document.$dom_createElement("meter"); 15311 factory MeterElement() => document.$dom_createElement("meter");
15111 15312
15112 /// Checks if this type is supported on the current platform. 15313 /// Checks if this type is supported on the current platform.
15113 static bool get supported => Element.isTagSupported('meter'); 15314 static bool get supported => Element.isTagSupported('meter');
15114 15315
15115 @DomName('HTMLMeterElement.high') 15316 @DomName('HTMLMeterElement.high')
15116 @DocsEditable 15317 @DocsEditable
(...skipping 29 matching lines...) Expand all
15146 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15347 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15147 // for details. All rights reserved. Use of this source code is governed by a 15348 // for details. All rights reserved. Use of this source code is governed by a
15148 // BSD-style license that can be found in the LICENSE file. 15349 // BSD-style license that can be found in the LICENSE file.
15149 15350
15150 15351
15151 @DocsEditable 15352 @DocsEditable
15152 @DomName('MIDIAccess') 15353 @DomName('MIDIAccess')
15153 // http://webaudio.github.io/web-midi-api/#midiaccess-interface 15354 // http://webaudio.github.io/web-midi-api/#midiaccess-interface
15154 @Experimental 15355 @Experimental
15155 class MidiAccess extends EventTarget native "MIDIAccess" { 15356 class MidiAccess extends EventTarget native "MIDIAccess" {
15357 // To suppress missing implicit constructor warnings.
15358 factory MidiAccess._() { throw new UnsupportedError("Not supported"); }
15156 15359
15157 @DomName('MIDIAccess.connectEvent') 15360 @DomName('MIDIAccess.connectEvent')
15158 @DocsEditable 15361 @DocsEditable
15159 static const EventStreamProvider<MidiConnectionEvent> connectEvent = const Eve ntStreamProvider<MidiConnectionEvent>('connect'); 15362 static const EventStreamProvider<MidiConnectionEvent> connectEvent = const Eve ntStreamProvider<MidiConnectionEvent>('connect');
15160 15363
15161 @DomName('MIDIAccess.disconnectEvent') 15364 @DomName('MIDIAccess.disconnectEvent')
15162 @DocsEditable 15365 @DocsEditable
15163 static const EventStreamProvider<MidiConnectionEvent> disconnectEvent = const EventStreamProvider<MidiConnectionEvent>('disconnect'); 15366 static const EventStreamProvider<MidiConnectionEvent> disconnectEvent = const EventStreamProvider<MidiConnectionEvent>('disconnect');
15164 15367
15165 @JSName('addEventListener') 15368 @JSName('addEventListener')
(...skipping 29 matching lines...) Expand all
15195 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15398 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15196 // for details. All rights reserved. Use of this source code is governed by a 15399 // for details. All rights reserved. Use of this source code is governed by a
15197 // BSD-style license that can be found in the LICENSE file. 15400 // BSD-style license that can be found in the LICENSE file.
15198 15401
15199 15402
15200 @DocsEditable 15403 @DocsEditable
15201 @DomName('MIDIConnectionEvent') 15404 @DomName('MIDIConnectionEvent')
15202 // http://webaudio.github.io/web-midi-api/#midiconnectionevent-interface 15405 // http://webaudio.github.io/web-midi-api/#midiconnectionevent-interface
15203 @Experimental 15406 @Experimental
15204 class MidiConnectionEvent extends Event native "MIDIConnectionEvent" { 15407 class MidiConnectionEvent extends Event native "MIDIConnectionEvent" {
15408 // To suppress missing implicit constructor warnings.
15409 factory MidiConnectionEvent._() { throw new UnsupportedError("Not supported"); }
15205 15410
15206 @DomName('MIDIConnectionEvent.port') 15411 @DomName('MIDIConnectionEvent.port')
15207 @DocsEditable 15412 @DocsEditable
15208 final MidiPort port; 15413 final MidiPort port;
15209 } 15414 }
15210 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15415 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15211 // for details. All rights reserved. Use of this source code is governed by a 15416 // for details. All rights reserved. Use of this source code is governed by a
15212 // BSD-style license that can be found in the LICENSE file. 15417 // BSD-style license that can be found in the LICENSE file.
15213 15418
15214 15419
15215 @DocsEditable 15420 @DocsEditable
15216 @DomName('MIDIInput') 15421 @DomName('MIDIInput')
15217 // http://webaudio.github.io/web-midi-api/#idl-def-MIDIInput 15422 // http://webaudio.github.io/web-midi-api/#idl-def-MIDIInput
15218 @Experimental 15423 @Experimental
15219 class MidiInput extends MidiPort implements EventTarget native "MIDIInput" { 15424 class MidiInput extends MidiPort implements EventTarget native "MIDIInput" {
15425 // To suppress missing implicit constructor warnings.
15426 factory MidiInput._() { throw new UnsupportedError("Not supported"); }
15220 15427
15221 @DomName('MIDIInput.midimessageEvent') 15428 @DomName('MIDIInput.midimessageEvent')
15222 @DocsEditable 15429 @DocsEditable
15223 static const EventStreamProvider<MidiMessageEvent> midiMessageEvent = const Ev entStreamProvider<MidiMessageEvent>('midimessage'); 15430 static const EventStreamProvider<MidiMessageEvent> midiMessageEvent = const Ev entStreamProvider<MidiMessageEvent>('midimessage');
15224 15431
15225 @DomName('MIDIInput.onmidimessage') 15432 @DomName('MIDIInput.onmidimessage')
15226 @DocsEditable 15433 @DocsEditable
15227 Stream<MidiMessageEvent> get onMidiMessage => midiMessageEvent.forTarget(this) ; 15434 Stream<MidiMessageEvent> get onMidiMessage => midiMessageEvent.forTarget(this) ;
15228 } 15435 }
15229 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15436 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15230 // for details. All rights reserved. Use of this source code is governed by a 15437 // for details. All rights reserved. Use of this source code is governed by a
15231 // BSD-style license that can be found in the LICENSE file. 15438 // BSD-style license that can be found in the LICENSE file.
15232 15439
15233 15440
15234 @DocsEditable 15441 @DocsEditable
15235 @DomName('MIDIMessageEvent') 15442 @DomName('MIDIMessageEvent')
15236 // http://webaudio.github.io/web-midi-api/#midimessageevent-interface 15443 // http://webaudio.github.io/web-midi-api/#midimessageevent-interface
15237 @Experimental 15444 @Experimental
15238 class MidiMessageEvent extends Event native "MIDIMessageEvent" { 15445 class MidiMessageEvent extends Event native "MIDIMessageEvent" {
15446 // To suppress missing implicit constructor warnings.
15447 factory MidiMessageEvent._() { throw new UnsupportedError("Not supported"); }
15239 15448
15240 @DomName('MIDIMessageEvent.data') 15449 @DomName('MIDIMessageEvent.data')
15241 @DocsEditable 15450 @DocsEditable
15242 final Uint8List data; 15451 final Uint8List data;
15243 15452
15244 @DomName('MIDIMessageEvent.receivedTime') 15453 @DomName('MIDIMessageEvent.receivedTime')
15245 @DocsEditable 15454 @DocsEditable
15246 final num receivedTime; 15455 final num receivedTime;
15247 } 15456 }
15248 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15457 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15249 // for details. All rights reserved. Use of this source code is governed by a 15458 // for details. All rights reserved. Use of this source code is governed by a
15250 // BSD-style license that can be found in the LICENSE file. 15459 // BSD-style license that can be found in the LICENSE file.
15251 15460
15252 15461
15253 @DocsEditable 15462 @DocsEditable
15254 @DomName('MIDIOutput') 15463 @DomName('MIDIOutput')
15255 // http://webaudio.github.io/web-midi-api/#midioutput-interface 15464 // http://webaudio.github.io/web-midi-api/#midioutput-interface
15256 @Experimental 15465 @Experimental
15257 class MidiOutput extends MidiPort native "MIDIOutput" { 15466 class MidiOutput extends MidiPort native "MIDIOutput" {
15467 // To suppress missing implicit constructor warnings.
15468 factory MidiOutput._() { throw new UnsupportedError("Not supported"); }
15258 15469
15259 @DomName('MIDIOutput.send') 15470 @DomName('MIDIOutput.send')
15260 @DocsEditable 15471 @DocsEditable
15261 void send(Uint8List data, [num timestamp]) native; 15472 void send(Uint8List data, [num timestamp]) native;
15262 } 15473 }
15263 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15474 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15264 // for details. All rights reserved. Use of this source code is governed by a 15475 // for details. All rights reserved. Use of this source code is governed by a
15265 // BSD-style license that can be found in the LICENSE file. 15476 // BSD-style license that can be found in the LICENSE file.
15266 15477
15267 15478
15268 @DocsEditable 15479 @DocsEditable
15269 @DomName('MIDIPort') 15480 @DomName('MIDIPort')
15270 // http://webaudio.github.io/web-midi-api/#idl-def-MIDIPort 15481 // http://webaudio.github.io/web-midi-api/#idl-def-MIDIPort
15271 @Experimental 15482 @Experimental
15272 class MidiPort extends EventTarget native "MIDIPort" { 15483 class MidiPort extends EventTarget native "MIDIPort" {
15484 // To suppress missing implicit constructor warnings.
15485 factory MidiPort._() { throw new UnsupportedError("Not supported"); }
15273 15486
15274 @DomName('MIDIPort.disconnectEvent') 15487 @DomName('MIDIPort.disconnectEvent')
15275 @DocsEditable 15488 @DocsEditable
15276 static const EventStreamProvider<MidiConnectionEvent> disconnectEvent = const EventStreamProvider<MidiConnectionEvent>('disconnect'); 15489 static const EventStreamProvider<MidiConnectionEvent> disconnectEvent = const EventStreamProvider<MidiConnectionEvent>('disconnect');
15277 15490
15278 @DomName('MIDIPort.id') 15491 @DomName('MIDIPort.id')
15279 @DocsEditable 15492 @DocsEditable
15280 final String id; 15493 final String id;
15281 15494
15282 @DomName('MIDIPort.manufacturer') 15495 @DomName('MIDIPort.manufacturer')
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
15314 Stream<MidiConnectionEvent> get onDisconnect => disconnectEvent.forTarget(this ); 15527 Stream<MidiConnectionEvent> get onDisconnect => disconnectEvent.forTarget(this );
15315 } 15528 }
15316 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15529 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15317 // for details. All rights reserved. Use of this source code is governed by a 15530 // for details. All rights reserved. Use of this source code is governed by a
15318 // BSD-style license that can be found in the LICENSE file. 15531 // BSD-style license that can be found in the LICENSE file.
15319 15532
15320 15533
15321 @DocsEditable 15534 @DocsEditable
15322 @DomName('MimeType') 15535 @DomName('MimeType')
15323 @Experimental // non-standard 15536 @Experimental // non-standard
15324 class MimeType native "MimeType" { 15537 class MimeType extends Interceptor native "MimeType" {
15325 15538
15326 @DomName('MimeType.description') 15539 @DomName('MimeType.description')
15327 @DocsEditable 15540 @DocsEditable
15328 final String description; 15541 final String description;
15329 15542
15330 @DomName('MimeType.enabledPlugin') 15543 @DomName('MimeType.enabledPlugin')
15331 @DocsEditable 15544 @DocsEditable
15332 final Plugin enabledPlugin; 15545 final Plugin enabledPlugin;
15333 15546
15334 @DomName('MimeType.suffixes') 15547 @DomName('MimeType.suffixes')
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
15411 } 15624 }
15412 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15625 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15413 // for details. All rights reserved. Use of this source code is governed by a 15626 // for details. All rights reserved. Use of this source code is governed by a
15414 // BSD-style license that can be found in the LICENSE file. 15627 // BSD-style license that can be found in the LICENSE file.
15415 15628
15416 15629
15417 @DocsEditable 15630 @DocsEditable
15418 @DomName('HTMLModElement') 15631 @DomName('HTMLModElement')
15419 @Unstable 15632 @Unstable
15420 class ModElement extends _HTMLElement native "HTMLModElement" { 15633 class ModElement extends _HTMLElement native "HTMLModElement" {
15634 // To suppress missing implicit constructor warnings.
15635 factory ModElement._() { throw new UnsupportedError("Not supported"); }
15421 15636
15422 @DomName('HTMLModElement.cite') 15637 @DomName('HTMLModElement.cite')
15423 @DocsEditable 15638 @DocsEditable
15424 String cite; 15639 String cite;
15425 15640
15426 @DomName('HTMLModElement.dateTime') 15641 @DomName('HTMLModElement.dateTime')
15427 @DocsEditable 15642 @DocsEditable
15428 String dateTime; 15643 String dateTime;
15429 } 15644 }
15430 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15645 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
(...skipping 11 matching lines...) Expand all
15442 15657
15443 if (view == null) { 15658 if (view == null) {
15444 view = window; 15659 view = window;
15445 } 15660 }
15446 var event = document.$dom_createEvent('MouseEvent'); 15661 var event = document.$dom_createEvent('MouseEvent');
15447 event.$dom_initMouseEvent(type, canBubble, cancelable, view, detail, 15662 event.$dom_initMouseEvent(type, canBubble, cancelable, view, detail,
15448 screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, 15663 screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey,
15449 button, relatedTarget); 15664 button, relatedTarget);
15450 return event; 15665 return event;
15451 } 15666 }
15667 // To suppress missing implicit constructor warnings.
15668 factory MouseEvent._() { throw new UnsupportedError("Not supported"); }
15452 15669
15453 @DomName('MouseEvent.altKey') 15670 @DomName('MouseEvent.altKey')
15454 @DocsEditable 15671 @DocsEditable
15455 final bool altKey; 15672 final bool altKey;
15456 15673
15457 @DomName('MouseEvent.button') 15674 @DomName('MouseEvent.button')
15458 @DocsEditable 15675 @DocsEditable
15459 final int button; 15676 final int button;
15460 15677
15461 @JSName('clientX') 15678 @JSName('clientX')
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
15617 class MutationEvent extends Event native "MutationEvent" { 15834 class MutationEvent extends Event native "MutationEvent" {
15618 factory MutationEvent(String type, 15835 factory MutationEvent(String type,
15619 {bool canBubble: false, bool cancelable: false, Node relatedNode, 15836 {bool canBubble: false, bool cancelable: false, Node relatedNode,
15620 String prevValue, String newValue, String attrName, int attrChange: 0}) { 15837 String prevValue, String newValue, String attrName, int attrChange: 0}) {
15621 15838
15622 var event = document.$dom_createEvent('MutationEvent'); 15839 var event = document.$dom_createEvent('MutationEvent');
15623 event.$dom_initMutationEvent(type, canBubble, cancelable, relatedNode, 15840 event.$dom_initMutationEvent(type, canBubble, cancelable, relatedNode,
15624 prevValue, newValue, attrName, attrChange); 15841 prevValue, newValue, attrName, attrChange);
15625 return event; 15842 return event;
15626 } 15843 }
15844 // To suppress missing implicit constructor warnings.
15845 factory MutationEvent._() { throw new UnsupportedError("Not supported"); }
15627 15846
15628 @DomName('MutationEvent.ADDITION') 15847 @DomName('MutationEvent.ADDITION')
15629 @DocsEditable 15848 @DocsEditable
15630 static const int ADDITION = 2; 15849 static const int ADDITION = 2;
15631 15850
15632 @DomName('MutationEvent.MODIFICATION') 15851 @DomName('MutationEvent.MODIFICATION')
15633 @DocsEditable 15852 @DocsEditable
15634 static const int MODIFICATION = 1; 15853 static const int MODIFICATION = 1;
15635 15854
15636 @DomName('MutationEvent.REMOVAL') 15855 @DomName('MutationEvent.REMOVAL')
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
15669 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15888 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15670 // for details. All rights reserved. Use of this source code is governed by a 15889 // for details. All rights reserved. Use of this source code is governed by a
15671 // BSD-style license that can be found in the LICENSE file. 15890 // BSD-style license that can be found in the LICENSE file.
15672 15891
15673 15892
15674 @DomName('MutationObserver') 15893 @DomName('MutationObserver')
15675 @SupportedBrowser(SupportedBrowser.CHROME) 15894 @SupportedBrowser(SupportedBrowser.CHROME)
15676 @SupportedBrowser(SupportedBrowser.FIREFOX) 15895 @SupportedBrowser(SupportedBrowser.FIREFOX)
15677 @SupportedBrowser(SupportedBrowser.SAFARI) 15896 @SupportedBrowser(SupportedBrowser.SAFARI)
15678 @Experimental 15897 @Experimental
15679 class MutationObserver native "MutationObserver,WebKitMutationObserver" { 15898 class MutationObserver extends Interceptor native "MutationObserver,WebKitMutati onObserver" {
15680 15899
15681 @DomName('MutationObserver.disconnect') 15900 @DomName('MutationObserver.disconnect')
15682 @DocsEditable 15901 @DocsEditable
15683 void disconnect() native; 15902 void disconnect() native;
15684 15903
15685 @DomName('MutationObserver.observe') 15904 @DomName('MutationObserver.observe')
15686 @DocsEditable 15905 @DocsEditable
15687 void _observe(Node target, Map options) { 15906 void _observe(Node target, Map options) {
15688 var options_1 = convertDartToNative_Dictionary(options); 15907 var options_1 = convertDartToNative_Dictionary(options);
15689 __observe_1(target, options_1); 15908 __observe_1(target, options_1);
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
15765 convertDartClosureToJS(callback, 2)); 15984 convertDartClosureToJS(callback, 2));
15766 } 15985 }
15767 } 15986 }
15768 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15987 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15769 // for details. All rights reserved. Use of this source code is governed by a 15988 // for details. All rights reserved. Use of this source code is governed by a
15770 // BSD-style license that can be found in the LICENSE file. 15989 // BSD-style license that can be found in the LICENSE file.
15771 15990
15772 15991
15773 @DocsEditable 15992 @DocsEditable
15774 @DomName('MutationRecord') 15993 @DomName('MutationRecord')
15775 class MutationRecord native "MutationRecord" { 15994 class MutationRecord extends Interceptor native "MutationRecord" {
15776 15995
15777 @DomName('MutationRecord.addedNodes') 15996 @DomName('MutationRecord.addedNodes')
15778 @DocsEditable 15997 @DocsEditable
15779 @Returns('NodeList') 15998 @Returns('NodeList')
15780 @Creates('NodeList') 15999 @Creates('NodeList')
15781 final List<Node> addedNodes; 16000 final List<Node> addedNodes;
15782 16001
15783 @DomName('MutationRecord.attributeName') 16002 @DomName('MutationRecord.attributeName')
15784 @DocsEditable 16003 @DocsEditable
15785 final String attributeName; 16004 final String attributeName;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
15819 // BSD-style license that can be found in the LICENSE file. 16038 // BSD-style license that can be found in the LICENSE file.
15820 16039
15821 16040
15822 @DocsEditable 16041 @DocsEditable
15823 @DomName('WebKitNamedFlow') 16042 @DomName('WebKitNamedFlow')
15824 @SupportedBrowser(SupportedBrowser.CHROME) 16043 @SupportedBrowser(SupportedBrowser.CHROME)
15825 @SupportedBrowser(SupportedBrowser.SAFARI) 16044 @SupportedBrowser(SupportedBrowser.SAFARI)
15826 @Experimental 16045 @Experimental
15827 // http://www.w3.org/TR/css3-regions/#dom-named-flow-collection 16046 // http://www.w3.org/TR/css3-regions/#dom-named-flow-collection
15828 class NamedFlow extends EventTarget native "WebKitNamedFlow" { 16047 class NamedFlow extends EventTarget native "WebKitNamedFlow" {
16048 // To suppress missing implicit constructor warnings.
16049 factory NamedFlow._() { throw new UnsupportedError("Not supported"); }
15829 16050
15830 @DomName('WebKitNamedFlow.firstEmptyRegionIndex') 16051 @DomName('WebKitNamedFlow.firstEmptyRegionIndex')
15831 @DocsEditable 16052 @DocsEditable
15832 final int firstEmptyRegionIndex; 16053 final int firstEmptyRegionIndex;
15833 16054
15834 @DomName('WebKitNamedFlow.name') 16055 @DomName('WebKitNamedFlow.name')
15835 @DocsEditable 16056 @DocsEditable
15836 final String name; 16057 final String name;
15837 16058
15838 @DomName('WebKitNamedFlow.overset') 16059 @DomName('WebKitNamedFlow.overset')
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
15875 // for details. All rights reserved. Use of this source code is governed by a 16096 // for details. All rights reserved. Use of this source code is governed by a
15876 // BSD-style license that can be found in the LICENSE file. 16097 // BSD-style license that can be found in the LICENSE file.
15877 16098
15878 16099
15879 @DocsEditable 16100 @DocsEditable
15880 @DomName('WebKitNamedFlowCollection') 16101 @DomName('WebKitNamedFlowCollection')
15881 @SupportedBrowser(SupportedBrowser.CHROME) 16102 @SupportedBrowser(SupportedBrowser.CHROME)
15882 @SupportedBrowser(SupportedBrowser.SAFARI) 16103 @SupportedBrowser(SupportedBrowser.SAFARI)
15883 @Experimental 16104 @Experimental
15884 // http://dev.w3.org/csswg/css-regions/#dom-named-flow-collection 16105 // http://dev.w3.org/csswg/css-regions/#dom-named-flow-collection
15885 class NamedFlowCollection native "WebKitNamedFlowCollection" { 16106 class NamedFlowCollection extends Interceptor native "WebKitNamedFlowCollection" {
15886 16107
15887 @DomName('WebKitNamedFlowCollection.length') 16108 @DomName('WebKitNamedFlowCollection.length')
15888 @DocsEditable 16109 @DocsEditable
15889 final int length; 16110 final int length;
15890 16111
15891 @DomName('WebKitNamedFlowCollection.__getter__') 16112 @DomName('WebKitNamedFlowCollection.__getter__')
15892 @DocsEditable 16113 @DocsEditable
15893 NamedFlow __getter__(String name) native; 16114 NamedFlow __getter__(String name) native;
15894 16115
15895 @DomName('WebKitNamedFlowCollection.item') 16116 @DomName('WebKitNamedFlowCollection.item')
15896 @DocsEditable 16117 @DocsEditable
15897 NamedFlow item(int index) native; 16118 NamedFlow item(int index) native;
15898 16119
15899 @DomName('WebKitNamedFlowCollection.namedItem') 16120 @DomName('WebKitNamedFlowCollection.namedItem')
15900 @DocsEditable 16121 @DocsEditable
15901 NamedFlow namedItem(String name) native; 16122 NamedFlow namedItem(String name) native;
15902 } 16123 }
15903 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16124 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15904 // for details. All rights reserved. Use of this source code is governed by a 16125 // for details. All rights reserved. Use of this source code is governed by a
15905 // BSD-style license that can be found in the LICENSE file. 16126 // BSD-style license that can be found in the LICENSE file.
15906 16127
15907 16128
15908 @DomName('Navigator') 16129 @DomName('Navigator')
15909 class Navigator native "Navigator" { 16130 class Navigator extends Interceptor native "Navigator" {
15910 16131
15911 @DomName('Navigator.language') 16132 @DomName('Navigator.language')
15912 String get language => JS('String', '#.language || #.userLanguage', this, 16133 String get language => JS('String', '#.language || #.userLanguage', this,
15913 this); 16134 this);
15914 16135
15915 /** 16136 /**
15916 * Gets a stream (video and or audio) from the local computer. 16137 * Gets a stream (video and or audio) from the local computer.
15917 * 16138 *
15918 * Use [MediaStream.supported] to check if this is supported by the current 16139 * Use [MediaStream.supported] to check if this is supported by the current
15919 * platform. The arguments `audio` and `video` default to `false` (stream does 16140 * platform. The arguments `audio` and `video` default to `false` (stream does
15920 * not use audio or video, respectively). 16141 * not use audio or video, respectively).
15921 * 16142 *
15922 * Simple example usage: 16143 * Simple example usage:
15923 * 16144 *
15924 * window.navigator.getUserMedia(audio: true, video: true).then((stream) { 16145 * window.navigator.getUserMedia(audio: true, video: true).then((stream) {
15925 * var video = new VideoElement() 16146 * var video = new VideoElement()
15926 * ..autoplay = true 16147 * ..autoplay = true
15927 * ..src = Url.createObjectUrl(stream); 16148 * ..src = Url.createObjectUrl(stream);
15928 * document.body.append(video); 16149 * document.body.append(video);
15929 * }); 16150 * });
15930 * 16151 *
15931 * The user can also pass in Maps to the audio or video parameters to specify 16152 * The user can also pass in Maps to the audio or video parameters to specify
15932 * mandatory and optional constraints for the media stream. Not passing in a 16153 * mandatory and optional constraints for the media stream. Not passing in a
15933 * map, but passing in `true` will provide a MediaStream with audio or 16154 * map, but passing in `true` will provide a MediaStream with audio or
15934 * video capabilities, but without any additional constraints. The particular 16155 * video capabilities, but without any additional constraints. The particular
15935 * constraint names for audio and video are still in flux, but as of this 16156 * constraint names for audio and video are still in flux, but as of this
15936 * writing, here is an example providing more constraints. 16157 * writing, here is an example providing more constraints.
15937 * 16158 *
15938 * window.navigator.getUserMedia( 16159 * window.navigator.getUserMedia(
15939 * audio: true, 16160 * audio: true,
15940 * video: {'mandatory': 16161 * video: {'mandatory':
15941 * { 'minAspectRatio': 1.333, 'maxAspectRatio': 1.334 }, 16162 * { 'minAspectRatio': 1.333, 'maxAspectRatio': 1.334 },
15942 * 'optional': 16163 * 'optional':
15943 * [{ 'minFrameRate': 60 }, 16164 * [{ 'minFrameRate': 60 },
15944 * { 'maxWidth': 640 }] 16165 * { 'maxWidth': 640 }]
15945 * }); 16166 * });
15946 * 16167 *
15947 * See also: 16168 * See also:
15948 * * [MediaStream.supported] 16169 * * [MediaStream.supported]
15949 */ 16170 */
15950 @DomName('Navigator.webkitGetUserMedia') 16171 @DomName('Navigator.webkitGetUserMedia')
15951 @SupportedBrowser(SupportedBrowser.CHROME) 16172 @SupportedBrowser(SupportedBrowser.CHROME)
15952 @Experimental 16173 @Experimental
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
16100 } 16321 }
16101 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16322 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16102 // for details. All rights reserved. Use of this source code is governed by a 16323 // for details. All rights reserved. Use of this source code is governed by a
16103 // BSD-style license that can be found in the LICENSE file. 16324 // BSD-style license that can be found in the LICENSE file.
16104 16325
16105 16326
16106 @DocsEditable 16327 @DocsEditable
16107 @DomName('NavigatorUserMediaError') 16328 @DomName('NavigatorUserMediaError')
16108 // http://dev.w3.org/2011/webrtc/editor/getusermedia.html#idl-def-NavigatorUserM ediaError 16329 // http://dev.w3.org/2011/webrtc/editor/getusermedia.html#idl-def-NavigatorUserM ediaError
16109 @Experimental 16330 @Experimental
16110 class NavigatorUserMediaError native "NavigatorUserMediaError" { 16331 class NavigatorUserMediaError extends Interceptor native "NavigatorUserMediaErro r" {
16111 16332
16112 @DomName('NavigatorUserMediaError.constraintName') 16333 @DomName('NavigatorUserMediaError.constraintName')
16113 @DocsEditable 16334 @DocsEditable
16114 final String constraintName; 16335 final String constraintName;
16115 16336
16116 @DomName('NavigatorUserMediaError.message') 16337 @DomName('NavigatorUserMediaError.message')
16117 @DocsEditable 16338 @DocsEditable
16118 final String message; 16339 final String message;
16119 16340
16120 @DomName('NavigatorUserMediaError.name') 16341 @DomName('NavigatorUserMediaError.name')
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
16416 @Experimental 16637 @Experimental
16417 void unbindAll() { 16638 void unbindAll() {
16418 TemplateElement.mdvPackage(this).unbindAll(); 16639 TemplateElement.mdvPackage(this).unbindAll();
16419 } 16640 }
16420 16641
16421 /** Gets the template instance that instantiated this node, if any. */ 16642 /** Gets the template instance that instantiated this node, if any. */
16422 @Experimental 16643 @Experimental
16423 TemplateInstance get templateInstance => 16644 TemplateInstance get templateInstance =>
16424 TemplateElement.mdvPackage(this).templateInstance; 16645 TemplateElement.mdvPackage(this).templateInstance;
16425 16646
16647 // To suppress missing implicit constructor warnings.
16648 factory Node._() { throw new UnsupportedError("Not supported"); }
16426 16649
16427 @DomName('Node.ATTRIBUTE_NODE') 16650 @DomName('Node.ATTRIBUTE_NODE')
16428 @DocsEditable 16651 @DocsEditable
16429 static const int ATTRIBUTE_NODE = 2; 16652 static const int ATTRIBUTE_NODE = 2;
16430 16653
16431 @DomName('Node.CDATA_SECTION_NODE') 16654 @DomName('Node.CDATA_SECTION_NODE')
16432 @DocsEditable 16655 @DocsEditable
16433 static const int CDATA_SECTION_NODE = 4; 16656 static const int CDATA_SECTION_NODE = 4;
16434 16657
16435 @DomName('Node.COMMENT_NODE') 16658 @DomName('Node.COMMENT_NODE')
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
16595 16818
16596 } 16819 }
16597 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16820 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16598 // for details. All rights reserved. Use of this source code is governed by a 16821 // for details. All rights reserved. Use of this source code is governed by a
16599 // BSD-style license that can be found in the LICENSE file. 16822 // BSD-style license that can be found in the LICENSE file.
16600 16823
16601 16824
16602 @DocsEditable 16825 @DocsEditable
16603 @DomName('NodeFilter') 16826 @DomName('NodeFilter')
16604 @Unstable 16827 @Unstable
16605 class NodeFilter native "NodeFilter" { 16828 class NodeFilter extends Interceptor native "NodeFilter" {
16606 16829
16607 @DomName('NodeFilter.FILTER_ACCEPT') 16830 @DomName('NodeFilter.FILTER_ACCEPT')
16608 @DocsEditable 16831 @DocsEditable
16609 static const int FILTER_ACCEPT = 1; 16832 static const int FILTER_ACCEPT = 1;
16610 16833
16611 @DomName('NodeFilter.FILTER_REJECT') 16834 @DomName('NodeFilter.FILTER_REJECT')
16612 @DocsEditable 16835 @DocsEditable
16613 static const int FILTER_REJECT = 2; 16836 static const int FILTER_REJECT = 2;
16614 16837
16615 @DomName('NodeFilter.FILTER_SKIP') 16838 @DomName('NodeFilter.FILTER_SKIP')
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
16673 @DocsEditable 16896 @DocsEditable
16674 static const int SHOW_TEXT = 0x00000004; 16897 static const int SHOW_TEXT = 0x00000004;
16675 } 16898 }
16676 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 16899 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
16677 // for details. All rights reserved. Use of this source code is governed by a 16900 // for details. All rights reserved. Use of this source code is governed by a
16678 // BSD-style license that can be found in the LICENSE file. 16901 // BSD-style license that can be found in the LICENSE file.
16679 16902
16680 16903
16681 @DomName('NodeIterator') 16904 @DomName('NodeIterator')
16682 @Unstable 16905 @Unstable
16683 class NodeIterator native "NodeIterator" { 16906 class NodeIterator extends Interceptor native "NodeIterator" {
16684 factory NodeIterator(Node root, int whatToShow) { 16907 factory NodeIterator(Node root, int whatToShow) {
16685 return document.$dom_createNodeIterator(root, whatToShow, null, false); 16908 return document.$dom_createNodeIterator(root, whatToShow, null, false);
16686 } 16909 }
16687 16910
16688 @DomName('NodeIterator.pointerBeforeReferenceNode') 16911 @DomName('NodeIterator.pointerBeforeReferenceNode')
16689 @DocsEditable 16912 @DocsEditable
16690 final bool pointerBeforeReferenceNode; 16913 final bool pointerBeforeReferenceNode;
16691 16914
16692 @DomName('NodeIterator.referenceNode') 16915 @DomName('NodeIterator.referenceNode')
16693 @DocsEditable 16916 @DocsEditable
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
16779 // 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
16780 // 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
16781 // BSD-style license that can be found in the LICENSE file. 17004 // BSD-style license that can be found in the LICENSE file.
16782 17005
16783 17006
16784 @DocsEditable 17007 @DocsEditable
16785 @DomName('Notation') 17008 @DomName('Notation')
16786 // http://dom.spec.whatwg.org/#notation 17009 // http://dom.spec.whatwg.org/#notation
16787 @deprecated // deprecated 17010 @deprecated // deprecated
16788 class Notation extends Node native "Notation" { 17011 class Notation extends Node native "Notation" {
17012 // To suppress missing implicit constructor warnings.
17013 factory Notation._() { throw new UnsupportedError("Not supported"); }
16789 17014
16790 @DomName('Notation.publicId') 17015 @DomName('Notation.publicId')
16791 @DocsEditable 17016 @DocsEditable
16792 final String publicId; 17017 final String publicId;
16793 17018
16794 @DomName('Notation.systemId') 17019 @DomName('Notation.systemId')
16795 @DocsEditable 17020 @DocsEditable
16796 final String systemId; 17021 final String systemId;
16797 } 17022 }
16798 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 17023 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
16799 // for details. All rights reserved. Use of this source code is governed by a 17024 // for details. All rights reserved. Use of this source code is governed by a
16800 // BSD-style license that can be found in the LICENSE file. 17025 // BSD-style license that can be found in the LICENSE file.
16801 17026
16802 17027
16803 @DomName('Notification') 17028 @DomName('Notification')
16804 // http://www.w3.org/TR/notifications/#notification 17029 // http://www.w3.org/TR/notifications/#notification
16805 @Experimental // experimental 17030 @Experimental // experimental
16806 class Notification extends EventTarget native "Notification" { 17031 class Notification extends EventTarget native "Notification" {
16807 17032
16808 factory Notification(String title, {String titleDir: null, String body: null, 17033 factory Notification(String title, {String titleDir: null, String body: null,
16809 String bodyDir: null, String tag: null, String iconUrl: null}) { 17034 String bodyDir: null, String tag: null, String iconUrl: null}) {
16810 17035
16811 var parsedOptions = {}; 17036 var parsedOptions = {};
16812 if (titleDir != null) parsedOptions['titleDir'] = titleDir; 17037 if (titleDir != null) parsedOptions['titleDir'] = titleDir;
16813 if (body != null) parsedOptions['body'] = body; 17038 if (body != null) parsedOptions['body'] = body;
16814 if (bodyDir != null) parsedOptions['bodyDir'] = bodyDir; 17039 if (bodyDir != null) parsedOptions['bodyDir'] = bodyDir;
16815 if (tag != null) parsedOptions['tag'] = tag; 17040 if (tag != null) parsedOptions['tag'] = tag;
16816 if (iconUrl != null) parsedOptions['iconUrl'] = iconUrl; 17041 if (iconUrl != null) parsedOptions['iconUrl'] = iconUrl;
16817 17042
16818 return Notification._factoryNotification(title, parsedOptions); 17043 return Notification._factoryNotification(title, parsedOptions);
16819 } 17044 }
17045 // To suppress missing implicit constructor warnings.
17046 factory Notification._() { throw new UnsupportedError("Not supported"); }
16820 17047
16821 @DomName('Notification.clickEvent') 17048 @DomName('Notification.clickEvent')
16822 @DocsEditable 17049 @DocsEditable
16823 static const EventStreamProvider<Event> clickEvent = const EventStreamProvider <Event>('click'); 17050 static const EventStreamProvider<Event> clickEvent = const EventStreamProvider <Event>('click');
16824 17051
16825 @DomName('Notification.closeEvent') 17052 @DomName('Notification.closeEvent')
16826 @DocsEditable 17053 @DocsEditable
16827 static const EventStreamProvider<Event> closeEvent = const EventStreamProvider <Event>('close'); 17054 static const EventStreamProvider<Event> closeEvent = const EventStreamProvider <Event>('close');
16828 17055
16829 @DomName('Notification.displayEvent') 17056 @DomName('Notification.displayEvent')
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
16939 // BSD-style license that can be found in the LICENSE file. 17166 // BSD-style license that can be found in the LICENSE file.
16940 17167
16941 17168
16942 @DocsEditable 17169 @DocsEditable
16943 @DomName('NotificationCenter') 17170 @DomName('NotificationCenter')
16944 @SupportedBrowser(SupportedBrowser.CHROME) 17171 @SupportedBrowser(SupportedBrowser.CHROME)
16945 @SupportedBrowser(SupportedBrowser.SAFARI) 17172 @SupportedBrowser(SupportedBrowser.SAFARI)
16946 @Experimental 17173 @Experimental
16947 // http://www.w3.org/TR/notifications/#showing-a-notification 17174 // http://www.w3.org/TR/notifications/#showing-a-notification
16948 @deprecated // deprecated 17175 @deprecated // deprecated
16949 class NotificationCenter native "NotificationCenter" { 17176 class NotificationCenter extends Interceptor native "NotificationCenter" {
16950 17177
16951 /// Checks if this type is supported on the current platform. 17178 /// Checks if this type is supported on the current platform.
16952 static bool get supported => JS('bool', '!!(window.webkitNotifications)'); 17179 static bool get supported => JS('bool', '!!(window.webkitNotifications)');
16953 17180
16954 @DomName('NotificationCenter.checkPermission') 17181 @DomName('NotificationCenter.checkPermission')
16955 @DocsEditable 17182 @DocsEditable
16956 int checkPermission() native; 17183 int checkPermission() native;
16957 17184
16958 @JSName('createHTMLNotification') 17185 @JSName('createHTMLNotification')
16959 @DomName('NotificationCenter.createHTMLNotification') 17186 @DomName('NotificationCenter.createHTMLNotification')
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
16991 @Experimental 17218 @Experimental
16992 typedef void _NotificationPermissionCallback(String permission); 17219 typedef void _NotificationPermissionCallback(String permission);
16993 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17220 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16994 // for details. All rights reserved. Use of this source code is governed by a 17221 // for details. All rights reserved. Use of this source code is governed by a
16995 // BSD-style license that can be found in the LICENSE file. 17222 // BSD-style license that can be found in the LICENSE file.
16996 17223
16997 17224
16998 @DocsEditable 17225 @DocsEditable
16999 @DomName('HTMLOListElement') 17226 @DomName('HTMLOListElement')
17000 class OListElement extends _HTMLElement native "HTMLOListElement" { 17227 class OListElement extends _HTMLElement native "HTMLOListElement" {
17228 // To suppress missing implicit constructor warnings.
17229 factory OListElement._() { throw new UnsupportedError("Not supported"); }
17001 17230
17002 @DomName('HTMLOListElement.HTMLOListElement') 17231 @DomName('HTMLOListElement.HTMLOListElement')
17003 @DocsEditable 17232 @DocsEditable
17004 factory OListElement() => document.$dom_createElement("ol"); 17233 factory OListElement() => document.$dom_createElement("ol");
17005 17234
17006 @DomName('HTMLOListElement.reversed') 17235 @DomName('HTMLOListElement.reversed')
17007 @DocsEditable 17236 @DocsEditable
17008 bool reversed; 17237 bool reversed;
17009 17238
17010 @DomName('HTMLOListElement.start') 17239 @DomName('HTMLOListElement.start')
17011 @DocsEditable 17240 @DocsEditable
17012 int start; 17241 int start;
17013 17242
17014 @DomName('HTMLOListElement.type') 17243 @DomName('HTMLOListElement.type')
17015 @DocsEditable 17244 @DocsEditable
17016 String type; 17245 String type;
17017 } 17246 }
17018 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17247 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17019 // for details. All rights reserved. Use of this source code is governed by a 17248 // for details. All rights reserved. Use of this source code is governed by a
17020 // BSD-style license that can be found in the LICENSE file. 17249 // BSD-style license that can be found in the LICENSE file.
17021 17250
17022 17251
17023 @DocsEditable 17252 @DocsEditable
17024 @DomName('HTMLObjectElement') 17253 @DomName('HTMLObjectElement')
17025 @SupportedBrowser(SupportedBrowser.CHROME) 17254 @SupportedBrowser(SupportedBrowser.CHROME)
17026 @SupportedBrowser(SupportedBrowser.IE) 17255 @SupportedBrowser(SupportedBrowser.IE)
17027 @SupportedBrowser(SupportedBrowser.SAFARI) 17256 @SupportedBrowser(SupportedBrowser.SAFARI)
17028 @Unstable 17257 @Unstable
17029 class ObjectElement extends _HTMLElement native "HTMLObjectElement" { 17258 class ObjectElement extends _HTMLElement native "HTMLObjectElement" {
17259 // To suppress missing implicit constructor warnings.
17260 factory ObjectElement._() { throw new UnsupportedError("Not supported"); }
17030 17261
17031 @DomName('HTMLObjectElement.HTMLObjectElement') 17262 @DomName('HTMLObjectElement.HTMLObjectElement')
17032 @DocsEditable 17263 @DocsEditable
17033 factory ObjectElement() => document.$dom_createElement("object"); 17264 factory ObjectElement() => document.$dom_createElement("object");
17034 17265
17035 /// Checks if this type is supported on the current platform. 17266 /// Checks if this type is supported on the current platform.
17036 static bool get supported => Element.isTagSupported('object'); 17267 static bool get supported => Element.isTagSupported('object');
17037 17268
17038 @DomName('HTMLObjectElement.code') 17269 @DomName('HTMLObjectElement.code')
17039 @DocsEditable 17270 @DocsEditable
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
17098 void setCustomValidity(String error) native; 17329 void setCustomValidity(String error) native;
17099 } 17330 }
17100 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17331 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17101 // for details. All rights reserved. Use of this source code is governed by a 17332 // for details. All rights reserved. Use of this source code is governed by a
17102 // BSD-style license that can be found in the LICENSE file. 17333 // BSD-style license that can be found in the LICENSE file.
17103 17334
17104 17335
17105 @DocsEditable 17336 @DocsEditable
17106 @DomName('HTMLOptGroupElement') 17337 @DomName('HTMLOptGroupElement')
17107 class OptGroupElement extends _HTMLElement native "HTMLOptGroupElement" { 17338 class OptGroupElement extends _HTMLElement native "HTMLOptGroupElement" {
17339 // To suppress missing implicit constructor warnings.
17340 factory OptGroupElement._() { throw new UnsupportedError("Not supported"); }
17108 17341
17109 @DomName('HTMLOptGroupElement.HTMLOptGroupElement') 17342 @DomName('HTMLOptGroupElement.HTMLOptGroupElement')
17110 @DocsEditable 17343 @DocsEditable
17111 factory OptGroupElement() => document.$dom_createElement("optgroup"); 17344 factory OptGroupElement() => document.$dom_createElement("optgroup");
17112 17345
17113 @DomName('HTMLOptGroupElement.disabled') 17346 @DomName('HTMLOptGroupElement.disabled')
17114 @DocsEditable 17347 @DocsEditable
17115 bool disabled; 17348 bool disabled;
17116 17349
17117 @DomName('HTMLOptGroupElement.label') 17350 @DomName('HTMLOptGroupElement.label')
17118 @DocsEditable 17351 @DocsEditable
17119 String label; 17352 String label;
17120 } 17353 }
17121 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17354 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17122 // for details. All rights reserved. Use of this source code is governed by a 17355 // for details. All rights reserved. Use of this source code is governed by a
17123 // BSD-style license that can be found in the LICENSE file. 17356 // BSD-style license that can be found in the LICENSE file.
17124 17357
17125 17358
17126 @DocsEditable 17359 @DocsEditable
17127 @DomName('HTMLOptionElement') 17360 @DomName('HTMLOptionElement')
17128 class OptionElement extends _HTMLElement native "HTMLOptionElement" { 17361 class OptionElement extends _HTMLElement native "HTMLOptionElement" {
17362 // To suppress missing implicit constructor warnings.
17363 factory OptionElement._() { throw new UnsupportedError("Not supported"); }
17129 17364
17130 @DomName('HTMLOptionElement.HTMLOptionElement') 17365 @DomName('HTMLOptionElement.HTMLOptionElement')
17131 @DocsEditable 17366 @DocsEditable
17132 factory OptionElement([String data, String value, bool defaultSelected, bool s elected]) { 17367 factory OptionElement([String data, String value, bool defaultSelected, bool s elected]) {
17133 if (selected != null) { 17368 if (selected != null) {
17134 return OptionElement._create_1(data, value, defaultSelected, selected); 17369 return OptionElement._create_1(data, value, defaultSelected, selected);
17135 } 17370 }
17136 if (defaultSelected != null) { 17371 if (defaultSelected != null) {
17137 return OptionElement._create_2(data, value, defaultSelected); 17372 return OptionElement._create_2(data, value, defaultSelected);
17138 } 17373 }
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
17182 // for details. All rights reserved. Use of this source code is governed by a 17417 // for details. All rights reserved. Use of this source code is governed by a
17183 // BSD-style license that can be found in the LICENSE file. 17418 // BSD-style license that can be found in the LICENSE file.
17184 17419
17185 17420
17186 @DocsEditable 17421 @DocsEditable
17187 @DomName('HTMLOutputElement') 17422 @DomName('HTMLOutputElement')
17188 @SupportedBrowser(SupportedBrowser.CHROME) 17423 @SupportedBrowser(SupportedBrowser.CHROME)
17189 @SupportedBrowser(SupportedBrowser.FIREFOX) 17424 @SupportedBrowser(SupportedBrowser.FIREFOX)
17190 @SupportedBrowser(SupportedBrowser.SAFARI) 17425 @SupportedBrowser(SupportedBrowser.SAFARI)
17191 class OutputElement extends _HTMLElement native "HTMLOutputElement" { 17426 class OutputElement extends _HTMLElement native "HTMLOutputElement" {
17427 // To suppress missing implicit constructor warnings.
17428 factory OutputElement._() { throw new UnsupportedError("Not supported"); }
17192 17429
17193 @DomName('HTMLOutputElement.HTMLOutputElement') 17430 @DomName('HTMLOutputElement.HTMLOutputElement')
17194 @DocsEditable 17431 @DocsEditable
17195 factory OutputElement() => document.$dom_createElement("output"); 17432 factory OutputElement() => document.$dom_createElement("output");
17196 17433
17197 /// Checks if this type is supported on the current platform. 17434 /// Checks if this type is supported on the current platform.
17198 static bool get supported => Element.isTagSupported('output'); 17435 static bool get supported => Element.isTagSupported('output');
17199 17436
17200 @DomName('HTMLOutputElement.defaultValue') 17437 @DomName('HTMLOutputElement.defaultValue')
17201 @DocsEditable 17438 @DocsEditable
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
17250 } 17487 }
17251 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17488 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17252 // for details. All rights reserved. Use of this source code is governed by a 17489 // for details. All rights reserved. Use of this source code is governed by a
17253 // BSD-style license that can be found in the LICENSE file. 17490 // BSD-style license that can be found in the LICENSE file.
17254 17491
17255 17492
17256 @DocsEditable 17493 @DocsEditable
17257 @DomName('OverflowEvent') 17494 @DomName('OverflowEvent')
17258 @Experimental // nonstandard 17495 @Experimental // nonstandard
17259 class OverflowEvent extends Event native "OverflowEvent" { 17496 class OverflowEvent extends Event native "OverflowEvent" {
17497 // To suppress missing implicit constructor warnings.
17498 factory OverflowEvent._() { throw new UnsupportedError("Not supported"); }
17260 17499
17261 @DomName('OverflowEvent.BOTH') 17500 @DomName('OverflowEvent.BOTH')
17262 @DocsEditable 17501 @DocsEditable
17263 static const int BOTH = 2; 17502 static const int BOTH = 2;
17264 17503
17265 @DomName('OverflowEvent.HORIZONTAL') 17504 @DomName('OverflowEvent.HORIZONTAL')
17266 @DocsEditable 17505 @DocsEditable
17267 static const int HORIZONTAL = 0; 17506 static const int HORIZONTAL = 0;
17268 17507
17269 @DomName('OverflowEvent.VERTICAL') 17508 @DomName('OverflowEvent.VERTICAL')
(...skipping 15 matching lines...) Expand all
17285 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17524 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17286 // for details. All rights reserved. Use of this source code is governed by a 17525 // for details. All rights reserved. Use of this source code is governed by a
17287 // BSD-style license that can be found in the LICENSE file. 17526 // BSD-style license that can be found in the LICENSE file.
17288 17527
17289 17528
17290 @DocsEditable 17529 @DocsEditable
17291 @DomName('PageTransitionEvent') 17530 @DomName('PageTransitionEvent')
17292 // http://www.whatwg.org/specs/web-apps/current-work/multipage/history.html#page transitionevent 17531 // http://www.whatwg.org/specs/web-apps/current-work/multipage/history.html#page transitionevent
17293 @Experimental 17532 @Experimental
17294 class PageTransitionEvent extends Event native "PageTransitionEvent" { 17533 class PageTransitionEvent extends Event native "PageTransitionEvent" {
17534 // To suppress missing implicit constructor warnings.
17535 factory PageTransitionEvent._() { throw new UnsupportedError("Not supported"); }
17295 17536
17296 @DomName('PageTransitionEvent.persisted') 17537 @DomName('PageTransitionEvent.persisted')
17297 @DocsEditable 17538 @DocsEditable
17298 final bool persisted; 17539 final bool persisted;
17299 } 17540 }
17300 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17541 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17301 // for details. All rights reserved. Use of this source code is governed by a 17542 // for details. All rights reserved. Use of this source code is governed by a
17302 // BSD-style license that can be found in the LICENSE file. 17543 // BSD-style license that can be found in the LICENSE file.
17303 17544
17304 17545
17305 @DocsEditable 17546 @DocsEditable
17306 @DomName('HTMLParagraphElement') 17547 @DomName('HTMLParagraphElement')
17307 class ParagraphElement extends _HTMLElement native "HTMLParagraphElement" { 17548 class ParagraphElement extends _HTMLElement native "HTMLParagraphElement" {
17549 // To suppress missing implicit constructor warnings.
17550 factory ParagraphElement._() { throw new UnsupportedError("Not supported"); }
17308 17551
17309 @DomName('HTMLParagraphElement.HTMLParagraphElement') 17552 @DomName('HTMLParagraphElement.HTMLParagraphElement')
17310 @DocsEditable 17553 @DocsEditable
17311 factory ParagraphElement() => document.$dom_createElement("p"); 17554 factory ParagraphElement() => document.$dom_createElement("p");
17312 } 17555 }
17313 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17556 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17314 // for details. All rights reserved. Use of this source code is governed by a 17557 // for details. All rights reserved. Use of this source code is governed by a
17315 // BSD-style license that can be found in the LICENSE file. 17558 // BSD-style license that can be found in the LICENSE file.
17316 17559
17317 17560
17318 @DocsEditable 17561 @DocsEditable
17319 @DomName('HTMLParamElement') 17562 @DomName('HTMLParamElement')
17320 @Unstable 17563 @Unstable
17321 class ParamElement extends _HTMLElement native "HTMLParamElement" { 17564 class ParamElement extends _HTMLElement native "HTMLParamElement" {
17565 // To suppress missing implicit constructor warnings.
17566 factory ParamElement._() { throw new UnsupportedError("Not supported"); }
17322 17567
17323 @DomName('HTMLParamElement.HTMLParamElement') 17568 @DomName('HTMLParamElement.HTMLParamElement')
17324 @DocsEditable 17569 @DocsEditable
17325 factory ParamElement() => document.$dom_createElement("param"); 17570 factory ParamElement() => document.$dom_createElement("param");
17326 17571
17327 @DomName('HTMLParamElement.name') 17572 @DomName('HTMLParamElement.name')
17328 @DocsEditable 17573 @DocsEditable
17329 String name; 17574 String name;
17330 17575
17331 @DomName('HTMLParamElement.value') 17576 @DomName('HTMLParamElement.value')
17332 @DocsEditable 17577 @DocsEditable
17333 String value; 17578 String value;
17334 } 17579 }
17335 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17580 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17336 // for details. All rights reserved. Use of this source code is governed by a 17581 // for details. All rights reserved. Use of this source code is governed by a
17337 // BSD-style license that can be found in the LICENSE file. 17582 // BSD-style license that can be found in the LICENSE file.
17338 17583
17339 17584
17340 @DocsEditable 17585 @DocsEditable
17341 @DomName('Path') 17586 @DomName('Path')
17342 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-elemen t.html#path-objects 17587 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-elemen t.html#path-objects
17343 @Experimental 17588 @Experimental
17344 class Path native "Path" { 17589 class Path extends Interceptor native "Path" {
17345 17590
17346 @DomName('Path.Path') 17591 @DomName('Path.Path')
17347 @DocsEditable 17592 @DocsEditable
17348 factory Path([path_OR_text]) { 17593 factory Path([path_OR_text]) {
17349 if (path_OR_text == null) { 17594 if (path_OR_text == null) {
17350 return Path._create_1(); 17595 return Path._create_1();
17351 } 17596 }
17352 if ((path_OR_text is Path || path_OR_text == null)) { 17597 if ((path_OR_text is Path || path_OR_text == null)) {
17353 return Path._create_2(path_OR_text); 17598 return Path._create_2(path_OR_text);
17354 } 17599 }
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
17397 // for details. All rights reserved. Use of this source code is governed by a 17642 // for details. All rights reserved. Use of this source code is governed by a
17398 // BSD-style license that can be found in the LICENSE file. 17643 // BSD-style license that can be found in the LICENSE file.
17399 17644
17400 17645
17401 @DocsEditable 17646 @DocsEditable
17402 @DomName('Performance') 17647 @DomName('Performance')
17403 @SupportedBrowser(SupportedBrowser.CHROME) 17648 @SupportedBrowser(SupportedBrowser.CHROME)
17404 @SupportedBrowser(SupportedBrowser.FIREFOX) 17649 @SupportedBrowser(SupportedBrowser.FIREFOX)
17405 @SupportedBrowser(SupportedBrowser.IE) 17650 @SupportedBrowser(SupportedBrowser.IE)
17406 class Performance extends EventTarget native "Performance" { 17651 class Performance extends EventTarget native "Performance" {
17652 // To suppress missing implicit constructor warnings.
17653 factory Performance._() { throw new UnsupportedError("Not supported"); }
17407 17654
17408 @DomName('Performance.webkitresourcetimingbufferfullEvent') 17655 @DomName('Performance.webkitresourcetimingbufferfullEvent')
17409 @DocsEditable 17656 @DocsEditable
17410 @SupportedBrowser(SupportedBrowser.CHROME) 17657 @SupportedBrowser(SupportedBrowser.CHROME)
17411 @SupportedBrowser(SupportedBrowser.SAFARI) 17658 @SupportedBrowser(SupportedBrowser.SAFARI)
17412 @Experimental 17659 @Experimental
17413 // http://www.w3c-test.org/webperf/specs/ResourceTiming/#performanceresourceti ming-methods 17660 // http://www.w3c-test.org/webperf/specs/ResourceTiming/#performanceresourceti ming-methods
17414 static const EventStreamProvider<Event> resourceTimingBufferFullEvent = const EventStreamProvider<Event>('webkitresourcetimingbufferfull'); 17661 static const EventStreamProvider<Event> resourceTimingBufferFullEvent = const EventStreamProvider<Event>('webkitresourcetimingbufferfull');
17415 17662
17416 /// Checks if this type is supported on the current platform. 17663 /// Checks if this type is supported on the current platform.
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
17501 } 17748 }
17502 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17749 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17503 // for details. All rights reserved. Use of this source code is governed by a 17750 // for details. All rights reserved. Use of this source code is governed by a
17504 // BSD-style license that can be found in the LICENSE file. 17751 // BSD-style license that can be found in the LICENSE file.
17505 17752
17506 17753
17507 @DocsEditable 17754 @DocsEditable
17508 @DomName('PerformanceEntry') 17755 @DomName('PerformanceEntry')
17509 // http://www.w3.org/TR/performance-timeline/#sec-PerformanceEntry-interface 17756 // http://www.w3.org/TR/performance-timeline/#sec-PerformanceEntry-interface
17510 @Experimental 17757 @Experimental
17511 class PerformanceEntry native "PerformanceEntry" { 17758 class PerformanceEntry extends Interceptor native "PerformanceEntry" {
17512 17759
17513 @DomName('PerformanceEntry.duration') 17760 @DomName('PerformanceEntry.duration')
17514 @DocsEditable 17761 @DocsEditable
17515 final num duration; 17762 final num duration;
17516 17763
17517 @DomName('PerformanceEntry.entryType') 17764 @DomName('PerformanceEntry.entryType')
17518 @DocsEditable 17765 @DocsEditable
17519 final String entryType; 17766 final String entryType;
17520 17767
17521 @DomName('PerformanceEntry.name') 17768 @DomName('PerformanceEntry.name')
17522 @DocsEditable 17769 @DocsEditable
17523 final String name; 17770 final String name;
17524 17771
17525 @DomName('PerformanceEntry.startTime') 17772 @DomName('PerformanceEntry.startTime')
17526 @DocsEditable 17773 @DocsEditable
17527 final num startTime; 17774 final num startTime;
17528 } 17775 }
17529 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17776 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17530 // for details. All rights reserved. Use of this source code is governed by a 17777 // for details. All rights reserved. Use of this source code is governed by a
17531 // BSD-style license that can be found in the LICENSE file. 17778 // BSD-style license that can be found in the LICENSE file.
17532 17779
17533 17780
17534 @DocsEditable 17781 @DocsEditable
17535 @DomName('PerformanceMark') 17782 @DomName('PerformanceMark')
17536 // http://www.w3.org/TR/user-timing/#performancemark 17783 // http://www.w3.org/TR/user-timing/#performancemark
17537 @Experimental 17784 @Experimental
17538 class PerformanceMark extends PerformanceEntry native "PerformanceMark" { 17785 class PerformanceMark extends PerformanceEntry native "PerformanceMark" {
17786 // To suppress missing implicit constructor warnings.
17787 factory PerformanceMark._() { throw new UnsupportedError("Not supported"); }
17539 } 17788 }
17540 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17789 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17541 // for details. All rights reserved. Use of this source code is governed by a 17790 // for details. All rights reserved. Use of this source code is governed by a
17542 // BSD-style license that can be found in the LICENSE file. 17791 // BSD-style license that can be found in the LICENSE file.
17543 17792
17544 17793
17545 @DocsEditable 17794 @DocsEditable
17546 @DomName('PerformanceMeasure') 17795 @DomName('PerformanceMeasure')
17547 // http://www.w3.org/TR/user-timing/#performancemeasure 17796 // http://www.w3.org/TR/user-timing/#performancemeasure
17548 @Experimental 17797 @Experimental
17549 class PerformanceMeasure extends PerformanceEntry native "PerformanceMeasure" { 17798 class PerformanceMeasure extends PerformanceEntry native "PerformanceMeasure" {
17799 // To suppress missing implicit constructor warnings.
17800 factory PerformanceMeasure._() { throw new UnsupportedError("Not supported"); }
17550 } 17801 }
17551 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17802 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17552 // for details. All rights reserved. Use of this source code is governed by a 17803 // for details. All rights reserved. Use of this source code is governed by a
17553 // BSD-style license that can be found in the LICENSE file. 17804 // BSD-style license that can be found in the LICENSE file.
17554 17805
17555 17806
17556 @DocsEditable 17807 @DocsEditable
17557 @DomName('PerformanceNavigation') 17808 @DomName('PerformanceNavigation')
17558 @Unstable 17809 @Unstable
17559 class PerformanceNavigation native "PerformanceNavigation" { 17810 class PerformanceNavigation extends Interceptor native "PerformanceNavigation" {
17560 17811
17561 @DomName('PerformanceNavigation.TYPE_BACK_FORWARD') 17812 @DomName('PerformanceNavigation.TYPE_BACK_FORWARD')
17562 @DocsEditable 17813 @DocsEditable
17563 static const int TYPE_BACK_FORWARD = 2; 17814 static const int TYPE_BACK_FORWARD = 2;
17564 17815
17565 @DomName('PerformanceNavigation.TYPE_NAVIGATE') 17816 @DomName('PerformanceNavigation.TYPE_NAVIGATE')
17566 @DocsEditable 17817 @DocsEditable
17567 static const int TYPE_NAVIGATE = 0; 17818 static const int TYPE_NAVIGATE = 0;
17568 17819
17569 @DomName('PerformanceNavigation.TYPE_RELOAD') 17820 @DomName('PerformanceNavigation.TYPE_RELOAD')
(...skipping 15 matching lines...) Expand all
17585 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17836 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17586 // for details. All rights reserved. Use of this source code is governed by a 17837 // for details. All rights reserved. Use of this source code is governed by a
17587 // BSD-style license that can be found in the LICENSE file. 17838 // BSD-style license that can be found in the LICENSE file.
17588 17839
17589 17840
17590 @DocsEditable 17841 @DocsEditable
17591 @DomName('PerformanceResourceTiming') 17842 @DomName('PerformanceResourceTiming')
17592 // http://www.w3c-test.org/webperf/specs/ResourceTiming/#performanceresourcetimi ng 17843 // http://www.w3c-test.org/webperf/specs/ResourceTiming/#performanceresourcetimi ng
17593 @Experimental 17844 @Experimental
17594 class PerformanceResourceTiming extends PerformanceEntry native "PerformanceReso urceTiming" { 17845 class PerformanceResourceTiming extends PerformanceEntry native "PerformanceReso urceTiming" {
17846 // To suppress missing implicit constructor warnings.
17847 factory PerformanceResourceTiming._() { throw new UnsupportedError("Not suppor ted"); }
17595 17848
17596 @DomName('PerformanceResourceTiming.connectEnd') 17849 @DomName('PerformanceResourceTiming.connectEnd')
17597 @DocsEditable 17850 @DocsEditable
17598 final num connectEnd; 17851 final num connectEnd;
17599 17852
17600 @DomName('PerformanceResourceTiming.connectStart') 17853 @DomName('PerformanceResourceTiming.connectStart')
17601 @DocsEditable 17854 @DocsEditable
17602 final num connectStart; 17855 final num connectStart;
17603 17856
17604 @DomName('PerformanceResourceTiming.domainLookupEnd') 17857 @DomName('PerformanceResourceTiming.domainLookupEnd')
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
17645 final num secureConnectionStart; 17898 final num secureConnectionStart;
17646 } 17899 }
17647 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17900 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17648 // for details. All rights reserved. Use of this source code is governed by a 17901 // for details. All rights reserved. Use of this source code is governed by a
17649 // BSD-style license that can be found in the LICENSE file. 17902 // BSD-style license that can be found in the LICENSE file.
17650 17903
17651 17904
17652 @DocsEditable 17905 @DocsEditable
17653 @DomName('PerformanceTiming') 17906 @DomName('PerformanceTiming')
17654 @Unstable 17907 @Unstable
17655 class PerformanceTiming native "PerformanceTiming" { 17908 class PerformanceTiming extends Interceptor native "PerformanceTiming" {
17656 17909
17657 @DomName('PerformanceTiming.connectEnd') 17910 @DomName('PerformanceTiming.connectEnd')
17658 @DocsEditable 17911 @DocsEditable
17659 final int connectEnd; 17912 final int connectEnd;
17660 17913
17661 @DomName('PerformanceTiming.connectStart') 17914 @DomName('PerformanceTiming.connectStart')
17662 @DocsEditable 17915 @DocsEditable
17663 final int connectStart; 17916 final int connectStart;
17664 17917
17665 @DomName('PerformanceTiming.domComplete') 17918 @DomName('PerformanceTiming.domComplete')
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
17739 final int unloadEventStart; 17992 final int unloadEventStart;
17740 } 17993 }
17741 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17994 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17742 // for details. All rights reserved. Use of this source code is governed by a 17995 // for details. All rights reserved. Use of this source code is governed by a
17743 // BSD-style license that can be found in the LICENSE file. 17996 // BSD-style license that can be found in the LICENSE file.
17744 17997
17745 17998
17746 @DocsEditable 17999 @DocsEditable
17747 @DomName('Plugin') 18000 @DomName('Plugin')
17748 @Experimental // non-standard 18001 @Experimental // non-standard
17749 class Plugin native "Plugin" { 18002 class Plugin extends Interceptor native "Plugin" {
17750 18003
17751 @DomName('Plugin.description') 18004 @DomName('Plugin.description')
17752 @DocsEditable 18005 @DocsEditable
17753 final String description; 18006 final String description;
17754 18007
17755 @DomName('Plugin.filename') 18008 @DomName('Plugin.filename')
17756 @DocsEditable 18009 @DocsEditable
17757 final String filename; 18010 final String filename;
17758 18011
17759 @DomName('Plugin.length') 18012 @DomName('Plugin.length')
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
17855 // BSD-style license that can be found in the LICENSE file. 18108 // BSD-style license that can be found in the LICENSE file.
17856 18109
17857 18110
17858 @DocsEditable 18111 @DocsEditable
17859 @DomName('PopStateEvent') 18112 @DomName('PopStateEvent')
17860 @SupportedBrowser(SupportedBrowser.CHROME) 18113 @SupportedBrowser(SupportedBrowser.CHROME)
17861 @SupportedBrowser(SupportedBrowser.FIREFOX) 18114 @SupportedBrowser(SupportedBrowser.FIREFOX)
17862 @SupportedBrowser(SupportedBrowser.IE, '10') 18115 @SupportedBrowser(SupportedBrowser.IE, '10')
17863 @SupportedBrowser(SupportedBrowser.SAFARI) 18116 @SupportedBrowser(SupportedBrowser.SAFARI)
17864 class PopStateEvent extends Event native "PopStateEvent" { 18117 class PopStateEvent extends Event native "PopStateEvent" {
18118 // To suppress missing implicit constructor warnings.
18119 factory PopStateEvent._() { throw new UnsupportedError("Not supported"); }
17865 18120
17866 dynamic get state => convertNativeToDart_SerializedScriptValue(this._get_state ); 18121 dynamic get state => convertNativeToDart_SerializedScriptValue(this._get_state );
17867 @JSName('state') 18122 @JSName('state')
17868 @DomName('PopStateEvent.state') 18123 @DomName('PopStateEvent.state')
17869 @DocsEditable 18124 @DocsEditable
17870 @annotation_Creates_SerializedScriptValue 18125 @annotation_Creates_SerializedScriptValue
17871 @annotation_Returns_SerializedScriptValue 18126 @annotation_Returns_SerializedScriptValue
17872 final dynamic _get_state; 18127 final dynamic _get_state;
17873 } 18128 }
17874 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18129 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17875 // for details. All rights reserved. Use of this source code is governed by a 18130 // for details. All rights reserved. Use of this source code is governed by a
17876 // BSD-style license that can be found in the LICENSE file. 18131 // BSD-style license that can be found in the LICENSE file.
17877 18132
17878 // WARNING: Do not edit - generated code. 18133 // WARNING: Do not edit - generated code.
17879 18134
17880 18135
17881 @DomName('PositionCallback') 18136 @DomName('PositionCallback')
17882 @Unstable 18137 @Unstable
17883 typedef void _PositionCallback(Geoposition position); 18138 typedef void _PositionCallback(Geoposition position);
17884 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18139 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17885 // for details. All rights reserved. Use of this source code is governed by a 18140 // for details. All rights reserved. Use of this source code is governed by a
17886 // BSD-style license that can be found in the LICENSE file. 18141 // BSD-style license that can be found in the LICENSE file.
17887 18142
17888 18143
17889 @DocsEditable 18144 @DocsEditable
17890 @DomName('PositionError') 18145 @DomName('PositionError')
17891 @Unstable 18146 @Unstable
17892 class PositionError native "PositionError" { 18147 class PositionError extends Interceptor native "PositionError" {
17893 18148
17894 @DomName('PositionError.PERMISSION_DENIED') 18149 @DomName('PositionError.PERMISSION_DENIED')
17895 @DocsEditable 18150 @DocsEditable
17896 static const int PERMISSION_DENIED = 1; 18151 static const int PERMISSION_DENIED = 1;
17897 18152
17898 @DomName('PositionError.POSITION_UNAVAILABLE') 18153 @DomName('PositionError.POSITION_UNAVAILABLE')
17899 @DocsEditable 18154 @DocsEditable
17900 static const int POSITION_UNAVAILABLE = 2; 18155 static const int POSITION_UNAVAILABLE = 2;
17901 18156
17902 @DomName('PositionError.TIMEOUT') 18157 @DomName('PositionError.TIMEOUT')
(...skipping 19 matching lines...) Expand all
17922 @Unstable 18177 @Unstable
17923 typedef void _PositionErrorCallback(PositionError error); 18178 typedef void _PositionErrorCallback(PositionError error);
17924 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18179 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17925 // for details. All rights reserved. Use of this source code is governed by a 18180 // for details. All rights reserved. Use of this source code is governed by a
17926 // BSD-style license that can be found in the LICENSE file. 18181 // BSD-style license that can be found in the LICENSE file.
17927 18182
17928 18183
17929 @DocsEditable 18184 @DocsEditable
17930 @DomName('HTMLPreElement') 18185 @DomName('HTMLPreElement')
17931 class PreElement extends _HTMLElement native "HTMLPreElement" { 18186 class PreElement extends _HTMLElement native "HTMLPreElement" {
18187 // To suppress missing implicit constructor warnings.
18188 factory PreElement._() { throw new UnsupportedError("Not supported"); }
17932 18189
17933 @DomName('HTMLPreElement.HTMLPreElement') 18190 @DomName('HTMLPreElement.HTMLPreElement')
17934 @DocsEditable 18191 @DocsEditable
17935 factory PreElement() => document.$dom_createElement("pre"); 18192 factory PreElement() => document.$dom_createElement("pre");
17936 18193
17937 @DomName('HTMLPreElement.wrap') 18194 @DomName('HTMLPreElement.wrap')
17938 @DocsEditable 18195 @DocsEditable
17939 @deprecated // deprecated 18196 @deprecated // deprecated
17940 bool wrap; 18197 bool wrap;
17941 } 18198 }
17942 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18199 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17943 // for details. All rights reserved. Use of this source code is governed by a 18200 // for details. All rights reserved. Use of this source code is governed by a
17944 // BSD-style license that can be found in the LICENSE file. 18201 // BSD-style license that can be found in the LICENSE file.
17945 18202
17946 18203
17947 @DocsEditable 18204 @DocsEditable
17948 @DomName('ProcessingInstruction') 18205 @DomName('ProcessingInstruction')
17949 @Unstable 18206 @Unstable
17950 class ProcessingInstruction extends Node native "ProcessingInstruction" { 18207 class ProcessingInstruction extends Node native "ProcessingInstruction" {
18208 // To suppress missing implicit constructor warnings.
18209 factory ProcessingInstruction._() { throw new UnsupportedError("Not supported" ); }
17951 18210
17952 @DomName('ProcessingInstruction.data') 18211 @DomName('ProcessingInstruction.data')
17953 @DocsEditable 18212 @DocsEditable
17954 @Experimental // non-standard 18213 @Experimental // non-standard
17955 String data; 18214 String data;
17956 18215
17957 @DomName('ProcessingInstruction.sheet') 18216 @DomName('ProcessingInstruction.sheet')
17958 @DocsEditable 18217 @DocsEditable
17959 @Experimental // non-standard 18218 @Experimental // non-standard
17960 final StyleSheet sheet; 18219 final StyleSheet sheet;
17961 18220
17962 @DomName('ProcessingInstruction.target') 18221 @DomName('ProcessingInstruction.target')
17963 @DocsEditable 18222 @DocsEditable
17964 final String target; 18223 final String target;
17965 } 18224 }
17966 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18225 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17967 // for details. All rights reserved. Use of this source code is governed by a 18226 // for details. All rights reserved. Use of this source code is governed by a
17968 // BSD-style license that can be found in the LICENSE file. 18227 // BSD-style license that can be found in the LICENSE file.
17969 18228
17970 18229
17971 @DocsEditable 18230 @DocsEditable
17972 @DomName('HTMLProgressElement') 18231 @DomName('HTMLProgressElement')
17973 @SupportedBrowser(SupportedBrowser.CHROME) 18232 @SupportedBrowser(SupportedBrowser.CHROME)
17974 @SupportedBrowser(SupportedBrowser.FIREFOX) 18233 @SupportedBrowser(SupportedBrowser.FIREFOX)
17975 @SupportedBrowser(SupportedBrowser.IE, '10') 18234 @SupportedBrowser(SupportedBrowser.IE, '10')
17976 @SupportedBrowser(SupportedBrowser.SAFARI) 18235 @SupportedBrowser(SupportedBrowser.SAFARI)
17977 class ProgressElement extends _HTMLElement native "HTMLProgressElement" { 18236 class ProgressElement extends _HTMLElement native "HTMLProgressElement" {
18237 // To suppress missing implicit constructor warnings.
18238 factory ProgressElement._() { throw new UnsupportedError("Not supported"); }
17978 18239
17979 @DomName('HTMLProgressElement.HTMLProgressElement') 18240 @DomName('HTMLProgressElement.HTMLProgressElement')
17980 @DocsEditable 18241 @DocsEditable
17981 factory ProgressElement() => document.$dom_createElement("progress"); 18242 factory ProgressElement() => document.$dom_createElement("progress");
17982 18243
17983 /// Checks if this type is supported on the current platform. 18244 /// Checks if this type is supported on the current platform.
17984 static bool get supported => Element.isTagSupported('progress'); 18245 static bool get supported => Element.isTagSupported('progress');
17985 18246
17986 @DomName('HTMLProgressElement.labels') 18247 @DomName('HTMLProgressElement.labels')
17987 @DocsEditable 18248 @DocsEditable
(...skipping 15 matching lines...) Expand all
18003 num value; 18264 num value;
18004 } 18265 }
18005 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18266 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18006 // for details. All rights reserved. Use of this source code is governed by a 18267 // for details. All rights reserved. Use of this source code is governed by a
18007 // BSD-style license that can be found in the LICENSE file. 18268 // BSD-style license that can be found in the LICENSE file.
18008 18269
18009 18270
18010 @DocsEditable 18271 @DocsEditable
18011 @DomName('ProgressEvent') 18272 @DomName('ProgressEvent')
18012 class ProgressEvent extends Event native "ProgressEvent" { 18273 class ProgressEvent extends Event native "ProgressEvent" {
18274 // To suppress missing implicit constructor warnings.
18275 factory ProgressEvent._() { throw new UnsupportedError("Not supported"); }
18013 18276
18014 @DomName('ProgressEvent.lengthComputable') 18277 @DomName('ProgressEvent.lengthComputable')
18015 @DocsEditable 18278 @DocsEditable
18016 final bool lengthComputable; 18279 final bool lengthComputable;
18017 18280
18018 @DomName('ProgressEvent.loaded') 18281 @DomName('ProgressEvent.loaded')
18019 @DocsEditable 18282 @DocsEditable
18020 final int loaded; 18283 final int loaded;
18021 18284
18022 @DomName('ProgressEvent.total') 18285 @DomName('ProgressEvent.total')
18023 @DocsEditable 18286 @DocsEditable
18024 final int total; 18287 final int total;
18025 } 18288 }
18026 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18289 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18027 // for details. All rights reserved. Use of this source code is governed by a 18290 // for details. All rights reserved. Use of this source code is governed by a
18028 // BSD-style license that can be found in the LICENSE file. 18291 // BSD-style license that can be found in the LICENSE file.
18029 18292
18030 18293
18031 @DocsEditable 18294 @DocsEditable
18032 @DomName('HTMLQuoteElement') 18295 @DomName('HTMLQuoteElement')
18033 class QuoteElement extends _HTMLElement native "HTMLQuoteElement" { 18296 class QuoteElement extends _HTMLElement native "HTMLQuoteElement" {
18297 // To suppress missing implicit constructor warnings.
18298 factory QuoteElement._() { throw new UnsupportedError("Not supported"); }
18034 18299
18035 @DomName('HTMLQuoteElement.HTMLQuoteElement') 18300 @DomName('HTMLQuoteElement.HTMLQuoteElement')
18036 @DocsEditable 18301 @DocsEditable
18037 factory QuoteElement() => document.$dom_createElement("q"); 18302 factory QuoteElement() => document.$dom_createElement("q");
18038 18303
18039 @DomName('HTMLQuoteElement.cite') 18304 @DomName('HTMLQuoteElement.cite')
18040 @DocsEditable 18305 @DocsEditable
18041 String cite; 18306 String cite;
18042 } 18307 }
18043 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18308 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
18075 typedef void RtcStatsCallback(RtcStatsResponse response); 18340 typedef void RtcStatsCallback(RtcStatsResponse response);
18076 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18341 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18077 // for details. All rights reserved. Use of this source code is governed by a 18342 // for details. All rights reserved. Use of this source code is governed by a
18078 // BSD-style license that can be found in the LICENSE file. 18343 // BSD-style license that can be found in the LICENSE file.
18079 18344
18080 // WARNING: Do not edit - generated code. 18345 // WARNING: Do not edit - generated code.
18081 18346
18082 18347
18083 @DomName('Range') 18348 @DomName('Range')
18084 @Unstable 18349 @Unstable
18085 class Range native "Range" { 18350 class Range extends Interceptor native "Range" {
18086 factory Range() => document.$dom_createRange(); 18351 factory Range() => document.$dom_createRange();
18087 18352
18088 factory Range.fromPoint(Point point) => 18353 factory Range.fromPoint(Point point) =>
18089 document.$dom_caretRangeFromPoint(point.x, point.y); 18354 document.$dom_caretRangeFromPoint(point.x, point.y);
18090 18355
18091 @DomName('Range.END_TO_END') 18356 @DomName('Range.END_TO_END')
18092 @DocsEditable 18357 @DocsEditable
18093 static const int END_TO_END = 2; 18358 static const int END_TO_END = 2;
18094 18359
18095 @DomName('Range.END_TO_START') 18360 @DomName('Range.END_TO_START')
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
18276 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18541 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18277 // for details. All rights reserved. Use of this source code is governed by a 18542 // for details. All rights reserved. Use of this source code is governed by a
18278 // BSD-style license that can be found in the LICENSE file. 18543 // BSD-style license that can be found in the LICENSE file.
18279 18544
18280 18545
18281 @DocsEditable 18546 @DocsEditable
18282 @DomName('ResourceProgressEvent') 18547 @DomName('ResourceProgressEvent')
18283 // https://chromiumcodereview.appspot.com/14773025/ 18548 // https://chromiumcodereview.appspot.com/14773025/
18284 @deprecated // experimental 18549 @deprecated // experimental
18285 class ResourceProgressEvent extends ProgressEvent native "ResourceProgressEvent" { 18550 class ResourceProgressEvent extends ProgressEvent native "ResourceProgressEvent" {
18551 // To suppress missing implicit constructor warnings.
18552 factory ResourceProgressEvent._() { throw new UnsupportedError("Not supported" ); }
18286 18553
18287 @DomName('ResourceProgressEvent.url') 18554 @DomName('ResourceProgressEvent.url')
18288 @DocsEditable 18555 @DocsEditable
18289 final String url; 18556 final String url;
18290 } 18557 }
18291 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18558 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18292 // for details. All rights reserved. Use of this source code is governed by a 18559 // for details. All rights reserved. Use of this source code is governed by a
18293 // BSD-style license that can be found in the LICENSE file. 18560 // BSD-style license that can be found in the LICENSE file.
18294 18561
18295 18562
18296 @DocsEditable 18563 @DocsEditable
18297 @DomName('RTCDataChannel') 18564 @DomName('RTCDataChannel')
18298 // http://dev.w3.org/2011/webrtc/editor/webrtc.html#idl-def-RTCDataChannel 18565 // http://dev.w3.org/2011/webrtc/editor/webrtc.html#idl-def-RTCDataChannel
18299 @Experimental 18566 @Experimental
18300 class RtcDataChannel extends EventTarget native "RTCDataChannel,DataChannel" { 18567 class RtcDataChannel extends EventTarget native "RTCDataChannel,DataChannel" {
18568 // To suppress missing implicit constructor warnings.
18569 factory RtcDataChannel._() { throw new UnsupportedError("Not supported"); }
18301 18570
18302 @DomName('RTCDataChannel.closeEvent') 18571 @DomName('RTCDataChannel.closeEvent')
18303 @DocsEditable 18572 @DocsEditable
18304 static const EventStreamProvider<Event> closeEvent = const EventStreamProvider <Event>('close'); 18573 static const EventStreamProvider<Event> closeEvent = const EventStreamProvider <Event>('close');
18305 18574
18306 @DomName('RTCDataChannel.errorEvent') 18575 @DomName('RTCDataChannel.errorEvent')
18307 @DocsEditable 18576 @DocsEditable
18308 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error'); 18577 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error');
18309 18578
18310 @DomName('RTCDataChannel.messageEvent') 18579 @DomName('RTCDataChannel.messageEvent')
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
18376 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18645 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18377 // for details. All rights reserved. Use of this source code is governed by a 18646 // for details. All rights reserved. Use of this source code is governed by a
18378 // BSD-style license that can be found in the LICENSE file. 18647 // BSD-style license that can be found in the LICENSE file.
18379 18648
18380 18649
18381 @DocsEditable 18650 @DocsEditable
18382 @DomName('RTCDataChannelEvent') 18651 @DomName('RTCDataChannelEvent')
18383 // http://dev.w3.org/2011/webrtc/editor/webrtc.html#rtcdatachannelevent 18652 // http://dev.w3.org/2011/webrtc/editor/webrtc.html#rtcdatachannelevent
18384 @Experimental 18653 @Experimental
18385 class RtcDataChannelEvent extends Event native "RTCDataChannelEvent" { 18654 class RtcDataChannelEvent extends Event native "RTCDataChannelEvent" {
18655 // To suppress missing implicit constructor warnings.
18656 factory RtcDataChannelEvent._() { throw new UnsupportedError("Not supported"); }
18386 18657
18387 @DomName('RTCDataChannelEvent.channel') 18658 @DomName('RTCDataChannelEvent.channel')
18388 @DocsEditable 18659 @DocsEditable
18389 final RtcDataChannel channel; 18660 final RtcDataChannel channel;
18390 } 18661 }
18391 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18662 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18392 // for details. All rights reserved. Use of this source code is governed by a 18663 // for details. All rights reserved. Use of this source code is governed by a
18393 // BSD-style license that can be found in the LICENSE file. 18664 // BSD-style license that can be found in the LICENSE file.
18394 18665
18395 18666
18396 @DocsEditable 18667 @DocsEditable
18397 @DomName('RTCDTMFSender') 18668 @DomName('RTCDTMFSender')
18398 // http://dev.w3.org/2011/webrtc/editor/webrtc.html#idl-def-RTCDTMFSender 18669 // http://dev.w3.org/2011/webrtc/editor/webrtc.html#idl-def-RTCDTMFSender
18399 @Experimental 18670 @Experimental
18400 class RtcDtmfSender extends EventTarget native "RTCDTMFSender" { 18671 class RtcDtmfSender extends EventTarget native "RTCDTMFSender" {
18672 // To suppress missing implicit constructor warnings.
18673 factory RtcDtmfSender._() { throw new UnsupportedError("Not supported"); }
18401 18674
18402 @DomName('RTCDTMFSender.tonechangeEvent') 18675 @DomName('RTCDTMFSender.tonechangeEvent')
18403 @DocsEditable 18676 @DocsEditable
18404 static const EventStreamProvider<RtcDtmfToneChangeEvent> toneChangeEvent = con st EventStreamProvider<RtcDtmfToneChangeEvent>('tonechange'); 18677 static const EventStreamProvider<RtcDtmfToneChangeEvent> toneChangeEvent = con st EventStreamProvider<RtcDtmfToneChangeEvent>('tonechange');
18405 18678
18406 @JSName('canInsertDTMF') 18679 @JSName('canInsertDTMF')
18407 @DomName('RTCDTMFSender.canInsertDTMF') 18680 @DomName('RTCDTMFSender.canInsertDTMF')
18408 @DocsEditable 18681 @DocsEditable
18409 final bool canInsertDtmf; 18682 final bool canInsertDtmf;
18410 18683
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
18450 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18723 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18451 // for details. All rights reserved. Use of this source code is governed by a 18724 // for details. All rights reserved. Use of this source code is governed by a
18452 // BSD-style license that can be found in the LICENSE file. 18725 // BSD-style license that can be found in the LICENSE file.
18453 18726
18454 18727
18455 @DocsEditable 18728 @DocsEditable
18456 @DomName('RTCDTMFToneChangeEvent') 18729 @DomName('RTCDTMFToneChangeEvent')
18457 // http://dev.w3.org/2011/webrtc/editor/webrtc.html#idl-def-RTCDTMFToneChangeEve nt 18730 // http://dev.w3.org/2011/webrtc/editor/webrtc.html#idl-def-RTCDTMFToneChangeEve nt
18458 @Experimental 18731 @Experimental
18459 class RtcDtmfToneChangeEvent extends Event native "RTCDTMFToneChangeEvent" { 18732 class RtcDtmfToneChangeEvent extends Event native "RTCDTMFToneChangeEvent" {
18733 // To suppress missing implicit constructor warnings.
18734 factory RtcDtmfToneChangeEvent._() { throw new UnsupportedError("Not supported "); }
18460 18735
18461 @DomName('RTCDTMFToneChangeEvent.tone') 18736 @DomName('RTCDTMFToneChangeEvent.tone')
18462 @DocsEditable 18737 @DocsEditable
18463 final String tone; 18738 final String tone;
18464 } 18739 }
18465 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 18740 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
18466 // for details. All rights reserved. Use of this source code is governed by a 18741 // for details. All rights reserved. Use of this source code is governed by a
18467 // BSD-style license that can be found in the LICENSE file. 18742 // BSD-style license that can be found in the LICENSE file.
18468 18743
18469 18744
18470 @DomName('RTCIceCandidate') 18745 @DomName('RTCIceCandidate')
18471 @SupportedBrowser(SupportedBrowser.CHROME) 18746 @SupportedBrowser(SupportedBrowser.CHROME)
18472 @Experimental 18747 @Experimental
18473 // http://dev.w3.org/2011/webrtc/editor/webrtc.html#idl-def-RTCIceCandidate 18748 // http://dev.w3.org/2011/webrtc/editor/webrtc.html#idl-def-RTCIceCandidate
18474 class RtcIceCandidate native "RTCIceCandidate,mozRTCIceCandidate" { 18749 class RtcIceCandidate extends Interceptor native "RTCIceCandidate,mozRTCIceCandi date" {
18475 factory RtcIceCandidate(Map dictionary) { 18750 factory RtcIceCandidate(Map dictionary) {
18476 // TODO(efortuna): Remove this check if when you can actually construct with 18751 // TODO(efortuna): Remove this check if when you can actually construct with
18477 // the unprefixed RTCIceCandidate in Firefox (currently both are defined, 18752 // the unprefixed RTCIceCandidate in Firefox (currently both are defined,
18478 // but one can't be used as a constructor). 18753 // but one can't be used as a constructor).
18479 var constructorName = JS('', 'window[#]', 18754 var constructorName = JS('', 'window[#]',
18480 Device.isFirefox ? '${Device.propertyPrefix}RTCIceCandidate' : 18755 Device.isFirefox ? '${Device.propertyPrefix}RTCIceCandidate' :
18481 'RTCIceCandidate'); 18756 'RTCIceCandidate');
18482 return JS('RtcIceCandidate', 'new #(#)', constructorName, 18757 return JS('RtcIceCandidate', 'new #(#)', constructorName,
18483 convertDartToNative_SerializedScriptValue(dictionary)); 18758 convertDartToNative_SerializedScriptValue(dictionary));
18484 } 18759 }
18485 18760
18486 @DomName('RTCIceCandidate.candidate') 18761 @DomName('RTCIceCandidate.candidate')
18487 @DocsEditable 18762 @DocsEditable
18488 final String candidate; 18763 final String candidate;
18489 18764
18490 @DomName('RTCIceCandidate.sdpMLineIndex') 18765 @DomName('RTCIceCandidate.sdpMLineIndex')
18491 @DocsEditable 18766 @DocsEditable
18492 final int sdpMLineIndex; 18767 final int sdpMLineIndex;
18493 18768
18494 @DomName('RTCIceCandidate.sdpMid') 18769 @DomName('RTCIceCandidate.sdpMid')
18495 @DocsEditable 18770 @DocsEditable
18496 final String sdpMid; 18771 final String sdpMid;
18497 18772
18498 } 18773 }
18499 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18774 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18500 // for details. All rights reserved. Use of this source code is governed by a 18775 // for details. All rights reserved. Use of this source code is governed by a
18501 // BSD-style license that can be found in the LICENSE file. 18776 // BSD-style license that can be found in the LICENSE file.
18502 18777
18503 18778
18504 @DocsEditable 18779 @DocsEditable
18505 @DomName('RTCIceCandidateEvent') 18780 @DomName('RTCIceCandidateEvent')
18506 // http://dev.w3.org/2011/webrtc/editor/webrtc.html#rtcicecandidate-type 18781 // http://dev.w3.org/2011/webrtc/editor/webrtc.html#rtcicecandidate-type
18507 @Experimental 18782 @Experimental
18508 class RtcIceCandidateEvent extends Event native "RTCIceCandidateEvent" { 18783 class RtcIceCandidateEvent extends Event native "RTCIceCandidateEvent" {
18784 // To suppress missing implicit constructor warnings.
18785 factory RtcIceCandidateEvent._() { throw new UnsupportedError("Not supported") ; }
18509 18786
18510 @DomName('RTCIceCandidateEvent.candidate') 18787 @DomName('RTCIceCandidateEvent.candidate')
18511 @DocsEditable 18788 @DocsEditable
18512 final RtcIceCandidate candidate; 18789 final RtcIceCandidate candidate;
18513 } 18790 }
18514 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 18791 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
18515 // for details. All rights reserved. Use of this source code is governed by a 18792 // for details. All rights reserved. Use of this source code is governed by a
18516 // BSD-style license that can be found in the LICENSE file. 18793 // BSD-style license that can be found in the LICENSE file.
18517 18794
18518 18795
(...skipping 16 matching lines...) Expand all
18535 } 18812 }
18536 18813
18537 /** 18814 /**
18538 * Checks if Real Time Communication (RTC) APIs are supported and enabled on 18815 * Checks if Real Time Communication (RTC) APIs are supported and enabled on
18539 * the current platform. 18816 * the current platform.
18540 */ 18817 */
18541 static bool get supported { 18818 static bool get supported {
18542 // Currently in Firefox some of the RTC elements are defined but throw an 18819 // Currently in Firefox some of the RTC elements are defined but throw an
18543 // error unless the user has specifically enabled them in their 18820 // error unless the user has specifically enabled them in their
18544 // about:config. So we have to construct an element to actually test if RTC 18821 // about:config. So we have to construct an element to actually test if RTC
18545 // is supported at the given time. 18822 // is supported at the given time.
18546 try { 18823 try {
18547 new RtcPeerConnection( 18824 new RtcPeerConnection(
18548 {"iceServers": [ {"url":"stun:localhost"}]}); 18825 {"iceServers": [ {"url":"stun:localhost"}]});
18549 return true; 18826 return true;
18550 } catch (_) { return false;} 18827 } catch (_) { return false;}
18551 return false; 18828 return false;
18552 } 18829 }
18553 Future<RtcSessionDescription> createOffer([Map mediaConstraints]) { 18830 Future<RtcSessionDescription> createOffer([Map mediaConstraints]) {
18554 var completer = new Completer<RtcSessionDescription>(); 18831 var completer = new Completer<RtcSessionDescription>();
18555 _createOffer( 18832 _createOffer(
18556 (value) { completer.complete(value); }, 18833 (value) { completer.complete(value); },
18557 (error) { completer.completeError(error); }, mediaConstraints); 18834 (error) { completer.completeError(error); }, mediaConstraints);
18558 return completer.future; 18835 return completer.future;
18559 } 18836 }
18560 18837
18561 Future<RtcSessionDescription> createAnswer([Map mediaConstraints]) { 18838 Future<RtcSessionDescription> createAnswer([Map mediaConstraints]) {
18562 var completer = new Completer<RtcSessionDescription>(); 18839 var completer = new Completer<RtcSessionDescription>();
18563 _createAnswer( 18840 _createAnswer(
18564 (value) { completer.complete(value); }, 18841 (value) { completer.complete(value); },
18565 (error) { completer.completeError(error); }, mediaConstraints); 18842 (error) { completer.completeError(error); }, mediaConstraints);
18566 return completer.future; 18843 return completer.future;
18567 } 18844 }
18845 // To suppress missing implicit constructor warnings.
18846 factory RtcPeerConnection._() { throw new UnsupportedError("Not supported"); }
18568 18847
18569 @DomName('RTCPeerConnection.addstreamEvent') 18848 @DomName('RTCPeerConnection.addstreamEvent')
18570 @DocsEditable 18849 @DocsEditable
18571 static const EventStreamProvider<MediaStreamEvent> addStreamEvent = const Even tStreamProvider<MediaStreamEvent>('addstream'); 18850 static const EventStreamProvider<MediaStreamEvent> addStreamEvent = const Even tStreamProvider<MediaStreamEvent>('addstream');
18572 18851
18573 @DomName('RTCPeerConnection.datachannelEvent') 18852 @DomName('RTCPeerConnection.datachannelEvent')
18574 @DocsEditable 18853 @DocsEditable
18575 static const EventStreamProvider<RtcDataChannelEvent> dataChannelEvent = const EventStreamProvider<RtcDataChannelEvent>('datachannel'); 18854 static const EventStreamProvider<RtcDataChannelEvent> dataChannelEvent = const EventStreamProvider<RtcDataChannelEvent>('datachannel');
18576 18855
18577 @DomName('RTCPeerConnection.icecandidateEvent') 18856 @DomName('RTCPeerConnection.icecandidateEvent')
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
18832 } 19111 }
18833 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 19112 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
18834 // for details. All rights reserved. Use of this source code is governed by a 19113 // for details. All rights reserved. Use of this source code is governed by a
18835 // BSD-style license that can be found in the LICENSE file. 19114 // BSD-style license that can be found in the LICENSE file.
18836 19115
18837 19116
18838 @DomName('RTCSessionDescription') 19117 @DomName('RTCSessionDescription')
18839 @SupportedBrowser(SupportedBrowser.CHROME) 19118 @SupportedBrowser(SupportedBrowser.CHROME)
18840 @Experimental 19119 @Experimental
18841 // http://dev.w3.org/2011/webrtc/editor/webrtc.html#idl-def-RTCSessionDescriptio n 19120 // http://dev.w3.org/2011/webrtc/editor/webrtc.html#idl-def-RTCSessionDescriptio n
18842 class RtcSessionDescription native "RTCSessionDescription,mozRTCSessionDescripti on" { 19121 class RtcSessionDescription extends Interceptor native "RTCSessionDescription,mo zRTCSessionDescription" {
18843 factory RtcSessionDescription(Map dictionary) { 19122 factory RtcSessionDescription(Map dictionary) {
18844 // TODO(efortuna): Remove this check if when you can actually construct with 19123 // TODO(efortuna): Remove this check if when you can actually construct with
18845 // the unprefixed RTCIceCandidate in Firefox (currently both are defined, 19124 // the unprefixed RTCIceCandidate in Firefox (currently both are defined,
18846 // but one can't be used as a constructor). 19125 // but one can't be used as a constructor).
18847 var constructorName = JS('', 'window[#]', 19126 var constructorName = JS('', 'window[#]',
18848 Device.isFirefox ? '${Device.propertyPrefix}RTCSessionDescription' : 19127 Device.isFirefox ? '${Device.propertyPrefix}RTCSessionDescription' :
18849 'RTCSessionDescription'); 19128 'RTCSessionDescription');
18850 return JS('RtcSessionDescription', 19129 return JS('RtcSessionDescription',
18851 'new #(#)', constructorName, 19130 'new #(#)', constructorName,
18852 convertDartToNative_SerializedScriptValue(dictionary)); 19131 convertDartToNative_SerializedScriptValue(dictionary));
18853 } 19132 }
18854 19133
18855 @DomName('RTCSessionDescription.sdp') 19134 @DomName('RTCSessionDescription.sdp')
18856 @DocsEditable 19135 @DocsEditable
18857 String sdp; 19136 String sdp;
18858 19137
18859 @DomName('RTCSessionDescription.type') 19138 @DomName('RTCSessionDescription.type')
18860 @DocsEditable 19139 @DocsEditable
18861 String type; 19140 String type;
18862 19141
18863 } 19142 }
18864 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19143 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18865 // for details. All rights reserved. Use of this source code is governed by a 19144 // for details. All rights reserved. Use of this source code is governed by a
18866 // BSD-style license that can be found in the LICENSE file. 19145 // BSD-style license that can be found in the LICENSE file.
18867 19146
18868 19147
18869 @DocsEditable 19148 @DocsEditable
18870 @DomName('RTCStatsReport') 19149 @DomName('RTCStatsReport')
18871 // http://dev.w3.org/2011/webrtc/editor/webrtc.html#idl-def-RTCStatsReport 19150 // http://dev.w3.org/2011/webrtc/editor/webrtc.html#idl-def-RTCStatsReport
18872 @Experimental 19151 @Experimental
18873 class RtcStatsReport native "RTCStatsReport" { 19152 class RtcStatsReport extends Interceptor native "RTCStatsReport" {
18874 19153
18875 @DomName('RTCStatsReport.id') 19154 @DomName('RTCStatsReport.id')
18876 @DocsEditable 19155 @DocsEditable
18877 final String id; 19156 final String id;
18878 19157
18879 @DomName('RTCStatsReport.local') 19158 @DomName('RTCStatsReport.local')
18880 @DocsEditable 19159 @DocsEditable
18881 final RtcStatsReport local; 19160 final RtcStatsReport local;
18882 19161
18883 @DomName('RTCStatsReport.remote') 19162 @DomName('RTCStatsReport.remote')
(...skipping 21 matching lines...) Expand all
18905 } 19184 }
18906 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19185 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18907 // for details. All rights reserved. Use of this source code is governed by a 19186 // for details. All rights reserved. Use of this source code is governed by a
18908 // BSD-style license that can be found in the LICENSE file. 19187 // BSD-style license that can be found in the LICENSE file.
18909 19188
18910 19189
18911 @DocsEditable 19190 @DocsEditable
18912 @DomName('RTCStatsResponse') 19191 @DomName('RTCStatsResponse')
18913 // http://dev.w3.org/2011/webrtc/editor/webrtc.html#widl-RTCStatsReport-RTCStats -getter-DOMString-id 19192 // http://dev.w3.org/2011/webrtc/editor/webrtc.html#widl-RTCStatsReport-RTCStats -getter-DOMString-id
18914 @Experimental 19193 @Experimental
18915 class RtcStatsResponse native "RTCStatsResponse" { 19194 class RtcStatsResponse extends Interceptor native "RTCStatsResponse" {
18916 19195
18917 @DomName('RTCStatsResponse.__getter__') 19196 @DomName('RTCStatsResponse.__getter__')
18918 @DocsEditable 19197 @DocsEditable
18919 RtcStatsReport __getter__(String name) native; 19198 RtcStatsReport __getter__(String name) native;
18920 19199
18921 @DomName('RTCStatsResponse.namedItem') 19200 @DomName('RTCStatsResponse.namedItem')
18922 @DocsEditable 19201 @DocsEditable
18923 RtcStatsReport namedItem(String name) native; 19202 RtcStatsReport namedItem(String name) native;
18924 19203
18925 @DomName('RTCStatsResponse.result') 19204 @DomName('RTCStatsResponse.result')
18926 @DocsEditable 19205 @DocsEditable
18927 List<RtcStatsReport> result() native; 19206 List<RtcStatsReport> result() native;
18928 } 19207 }
18929 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 19208 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
18930 // for details. All rights reserved. Use of this source code is governed by a 19209 // for details. All rights reserved. Use of this source code is governed by a
18931 // BSD-style license that can be found in the LICENSE file. 19210 // BSD-style license that can be found in the LICENSE file.
18932 19211
18933 19212
18934 @DocsEditable 19213 @DocsEditable
18935 @DomName('Screen') 19214 @DomName('Screen')
18936 class Screen native "Screen" { 19215 class Screen extends Interceptor native "Screen" {
18937 19216
18938 @DomName('Screen.availHeight') 19217 @DomName('Screen.availHeight')
18939 @DomName('Screen.availLeft') 19218 @DomName('Screen.availLeft')
18940 @DomName('Screen.availTop') 19219 @DomName('Screen.availTop')
18941 @DomName('Screen.availWidth') 19220 @DomName('Screen.availWidth')
18942 Rect get available => new Rect($dom_availLeft, $dom_availTop, $dom_availWidth, 19221 Rect get available => new Rect($dom_availLeft, $dom_availTop, $dom_availWidth,
18943 $dom_availHeight); 19222 $dom_availHeight);
18944 19223
18945 @JSName('availHeight') 19224 @JSName('availHeight')
18946 @DomName('Screen.availHeight') 19225 @DomName('Screen.availHeight')
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
18981 final int width; 19260 final int width;
18982 } 19261 }
18983 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19262 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18984 // for details. All rights reserved. Use of this source code is governed by a 19263 // for details. All rights reserved. Use of this source code is governed by a
18985 // BSD-style license that can be found in the LICENSE file. 19264 // BSD-style license that can be found in the LICENSE file.
18986 19265
18987 19266
18988 @DocsEditable 19267 @DocsEditable
18989 @DomName('HTMLScriptElement') 19268 @DomName('HTMLScriptElement')
18990 class ScriptElement extends _HTMLElement native "HTMLScriptElement" { 19269 class ScriptElement extends _HTMLElement native "HTMLScriptElement" {
19270 // To suppress missing implicit constructor warnings.
19271 factory ScriptElement._() { throw new UnsupportedError("Not supported"); }
18991 19272
18992 @DomName('HTMLScriptElement.HTMLScriptElement') 19273 @DomName('HTMLScriptElement.HTMLScriptElement')
18993 @DocsEditable 19274 @DocsEditable
18994 factory ScriptElement() => document.$dom_createElement("script"); 19275 factory ScriptElement() => document.$dom_createElement("script");
18995 19276
18996 @DomName('HTMLScriptElement.async') 19277 @DomName('HTMLScriptElement.async')
18997 @DocsEditable 19278 @DocsEditable
18998 bool async; 19279 bool async;
18999 19280
19000 @DomName('HTMLScriptElement.charset') 19281 @DomName('HTMLScriptElement.charset')
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
19039 } 19320 }
19040 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19321 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19041 // for details. All rights reserved. Use of this source code is governed by a 19322 // for details. All rights reserved. Use of this source code is governed by a
19042 // BSD-style license that can be found in the LICENSE file. 19323 // BSD-style license that can be found in the LICENSE file.
19043 19324
19044 19325
19045 @DocsEditable 19326 @DocsEditable
19046 @DomName('SecurityPolicy') 19327 @DomName('SecurityPolicy')
19047 // https://dvcs.w3.org/hg/content-security-policy/raw-file/tip/csp-specification .dev.html#securitypolicy 19328 // https://dvcs.w3.org/hg/content-security-policy/raw-file/tip/csp-specification .dev.html#securitypolicy
19048 @Experimental 19329 @Experimental
19049 class SecurityPolicy native "SecurityPolicy" { 19330 class SecurityPolicy extends Interceptor native "SecurityPolicy" {
19050 19331
19051 @DomName('SecurityPolicy.allowsEval') 19332 @DomName('SecurityPolicy.allowsEval')
19052 @DocsEditable 19333 @DocsEditable
19053 final bool allowsEval; 19334 final bool allowsEval;
19054 19335
19055 @DomName('SecurityPolicy.allowsInlineScript') 19336 @DomName('SecurityPolicy.allowsInlineScript')
19056 @DocsEditable 19337 @DocsEditable
19057 final bool allowsInlineScript; 19338 final bool allowsInlineScript;
19058 19339
19059 @DomName('SecurityPolicy.allowsInlineStyle') 19340 @DomName('SecurityPolicy.allowsInlineStyle')
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
19113 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19394 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19114 // for details. All rights reserved. Use of this source code is governed by a 19395 // for details. All rights reserved. Use of this source code is governed by a
19115 // BSD-style license that can be found in the LICENSE file. 19396 // BSD-style license that can be found in the LICENSE file.
19116 19397
19117 19398
19118 @DocsEditable 19399 @DocsEditable
19119 @DomName('SecurityPolicyViolationEvent') 19400 @DomName('SecurityPolicyViolationEvent')
19120 // https://dvcs.w3.org/hg/content-security-policy/raw-file/tip/csp-specification .dev.html#securitypolicyviolationevent-events 19401 // https://dvcs.w3.org/hg/content-security-policy/raw-file/tip/csp-specification .dev.html#securitypolicyviolationevent-events
19121 @Experimental 19402 @Experimental
19122 class SecurityPolicyViolationEvent extends Event native "SecurityPolicyViolation Event" { 19403 class SecurityPolicyViolationEvent extends Event native "SecurityPolicyViolation Event" {
19404 // To suppress missing implicit constructor warnings.
19405 factory SecurityPolicyViolationEvent._() { throw new UnsupportedError("Not sup ported"); }
19123 19406
19124 @JSName('blockedURI') 19407 @JSName('blockedURI')
19125 @DomName('SecurityPolicyViolationEvent.blockedURI') 19408 @DomName('SecurityPolicyViolationEvent.blockedURI')
19126 @DocsEditable 19409 @DocsEditable
19127 final String blockedUri; 19410 final String blockedUri;
19128 19411
19129 @DomName('SecurityPolicyViolationEvent.columnNumber') 19412 @DomName('SecurityPolicyViolationEvent.columnNumber')
19130 @DocsEditable 19413 @DocsEditable
19131 final int columnNumber; 19414 final int columnNumber;
19132 19415
(...skipping 26 matching lines...) Expand all
19159 @DocsEditable 19442 @DocsEditable
19160 final String violatedDirective; 19443 final String violatedDirective;
19161 } 19444 }
19162 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19445 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19163 // for details. All rights reserved. Use of this source code is governed by a 19446 // for details. All rights reserved. Use of this source code is governed by a
19164 // BSD-style license that can be found in the LICENSE file. 19447 // BSD-style license that can be found in the LICENSE file.
19165 19448
19166 19449
19167 @DomName('HTMLSelectElement') 19450 @DomName('HTMLSelectElement')
19168 class SelectElement extends _HTMLElement native "HTMLSelectElement" { 19451 class SelectElement extends _HTMLElement native "HTMLSelectElement" {
19452 // To suppress missing implicit constructor warnings.
19453 factory SelectElement._() { throw new UnsupportedError("Not supported"); }
19169 19454
19170 @DomName('HTMLSelectElement.HTMLSelectElement') 19455 @DomName('HTMLSelectElement.HTMLSelectElement')
19171 @DocsEditable 19456 @DocsEditable
19172 factory SelectElement() => document.$dom_createElement("select"); 19457 factory SelectElement() => document.$dom_createElement("select");
19173 19458
19174 @DomName('HTMLSelectElement.autofocus') 19459 @DomName('HTMLSelectElement.autofocus')
19175 @DocsEditable 19460 @DocsEditable
19176 bool autofocus; 19461 bool autofocus;
19177 19462
19178 @DomName('HTMLSelectElement.disabled') 19463 @DomName('HTMLSelectElement.disabled')
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
19273 } 19558 }
19274 } 19559 }
19275 } 19560 }
19276 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19561 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19277 // for details. All rights reserved. Use of this source code is governed by a 19562 // for details. All rights reserved. Use of this source code is governed by a
19278 // BSD-style license that can be found in the LICENSE file. 19563 // BSD-style license that can be found in the LICENSE file.
19279 19564
19280 19565
19281 @DocsEditable 19566 @DocsEditable
19282 @DomName('Selection') 19567 @DomName('Selection')
19283 class Selection native "Selection" { 19568 class Selection extends Interceptor native "Selection" {
19284 19569
19285 @DomName('Selection.anchorNode') 19570 @DomName('Selection.anchorNode')
19286 @DocsEditable 19571 @DocsEditable
19287 final Node anchorNode; 19572 final Node anchorNode;
19288 19573
19289 @DomName('Selection.anchorOffset') 19574 @DomName('Selection.anchorOffset')
19290 @DocsEditable 19575 @DocsEditable
19291 final int anchorOffset; 19576 final int anchorOffset;
19292 19577
19293 @DomName('Selection.baseNode') 19578 @DomName('Selection.baseNode')
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
19400 // for details. All rights reserved. Use of this source code is governed by a 19685 // for details. All rights reserved. Use of this source code is governed by a
19401 // BSD-style license that can be found in the LICENSE file. 19686 // BSD-style license that can be found in the LICENSE file.
19402 19687
19403 19688
19404 @DocsEditable 19689 @DocsEditable
19405 @DomName('HTMLShadowElement') 19690 @DomName('HTMLShadowElement')
19406 @SupportedBrowser(SupportedBrowser.CHROME, '26') 19691 @SupportedBrowser(SupportedBrowser.CHROME, '26')
19407 @Experimental 19692 @Experimental
19408 // https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#shad ow-element 19693 // https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#shad ow-element
19409 class ShadowElement extends _HTMLElement native "HTMLShadowElement" { 19694 class ShadowElement extends _HTMLElement native "HTMLShadowElement" {
19695 // To suppress missing implicit constructor warnings.
19696 factory ShadowElement._() { throw new UnsupportedError("Not supported"); }
19410 19697
19411 @DomName('HTMLShadowElement.HTMLShadowElement') 19698 @DomName('HTMLShadowElement.HTMLShadowElement')
19412 @DocsEditable 19699 @DocsEditable
19413 factory ShadowElement() => document.$dom_createElement("shadow"); 19700 factory ShadowElement() => document.$dom_createElement("shadow");
19414 19701
19415 /// Checks if this type is supported on the current platform. 19702 /// Checks if this type is supported on the current platform.
19416 static bool get supported => Element.isTagSupported('shadow'); 19703 static bool get supported => Element.isTagSupported('shadow');
19417 19704
19418 @DomName('HTMLShadowElement.olderShadowRoot') 19705 @DomName('HTMLShadowElement.olderShadowRoot')
19419 @DocsEditable 19706 @DocsEditable
19420 final ShadowRoot olderShadowRoot; 19707 final ShadowRoot olderShadowRoot;
19421 19708
19422 @DomName('HTMLShadowElement.resetStyleInheritance') 19709 @DomName('HTMLShadowElement.resetStyleInheritance')
19423 @DocsEditable 19710 @DocsEditable
19424 bool resetStyleInheritance; 19711 bool resetStyleInheritance;
19425 } 19712 }
19426 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19713 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19427 // for details. All rights reserved. Use of this source code is governed by a 19714 // for details. All rights reserved. Use of this source code is governed by a
19428 // BSD-style license that can be found in the LICENSE file. 19715 // BSD-style license that can be found in the LICENSE file.
19429 19716
19430 // WARNING: Do not edit - generated code. 19717 // WARNING: Do not edit - generated code.
19431 19718
19432 19719
19433 @DomName('ShadowRoot') 19720 @DomName('ShadowRoot')
19434 @SupportedBrowser(SupportedBrowser.CHROME, '26') 19721 @SupportedBrowser(SupportedBrowser.CHROME, '26')
19435 @Experimental 19722 @Experimental
19436 // https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#api- shadow-root 19723 // https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#api- shadow-root
19437 class ShadowRoot extends DocumentFragment native "ShadowRoot" { 19724 class ShadowRoot extends DocumentFragment native "ShadowRoot" {
19725 // To suppress missing implicit constructor warnings.
19726 factory ShadowRoot._() { throw new UnsupportedError("Not supported"); }
19438 19727
19439 @DomName('ShadowRoot.activeElement') 19728 @DomName('ShadowRoot.activeElement')
19440 @DocsEditable 19729 @DocsEditable
19441 final Element activeElement; 19730 final Element activeElement;
19442 19731
19443 @DomName('ShadowRoot.applyAuthorStyles') 19732 @DomName('ShadowRoot.applyAuthorStyles')
19444 @DocsEditable 19733 @DocsEditable
19445 bool applyAuthorStyles; 19734 bool applyAuthorStyles;
19446 19735
19447 @JSName('innerHTML') 19736 @JSName('innerHTML')
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
19489 // for details. All rights reserved. Use of this source code is governed by a 19778 // for details. All rights reserved. Use of this source code is governed by a
19490 // BSD-style license that can be found in the LICENSE file. 19779 // BSD-style license that can be found in the LICENSE file.
19491 19780
19492 19781
19493 @DocsEditable 19782 @DocsEditable
19494 @DomName('WebKitSourceBuffer') 19783 @DomName('WebKitSourceBuffer')
19495 @SupportedBrowser(SupportedBrowser.CHROME) 19784 @SupportedBrowser(SupportedBrowser.CHROME)
19496 @SupportedBrowser(SupportedBrowser.SAFARI) 19785 @SupportedBrowser(SupportedBrowser.SAFARI)
19497 @Experimental 19786 @Experimental
19498 // https://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html #sourcebuffer 19787 // https://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html #sourcebuffer
19499 class SourceBuffer native "WebKitSourceBuffer" { 19788 class SourceBuffer extends Interceptor native "WebKitSourceBuffer" {
19500 19789
19501 @DomName('WebKitSourceBuffer.buffered') 19790 @DomName('WebKitSourceBuffer.buffered')
19502 @DocsEditable 19791 @DocsEditable
19503 final TimeRanges buffered; 19792 final TimeRanges buffered;
19504 19793
19505 @DomName('WebKitSourceBuffer.timestampOffset') 19794 @DomName('WebKitSourceBuffer.timestampOffset')
19506 @DocsEditable 19795 @DocsEditable
19507 num timestampOffset; 19796 num timestampOffset;
19508 19797
19509 @DomName('WebKitSourceBuffer.abort') 19798 @DomName('WebKitSourceBuffer.abort')
(...skipping 10 matching lines...) Expand all
19520 // BSD-style license that can be found in the LICENSE file. 19809 // BSD-style license that can be found in the LICENSE file.
19521 19810
19522 19811
19523 @DocsEditable 19812 @DocsEditable
19524 @DomName('WebKitSourceBufferList') 19813 @DomName('WebKitSourceBufferList')
19525 @SupportedBrowser(SupportedBrowser.CHROME) 19814 @SupportedBrowser(SupportedBrowser.CHROME)
19526 @SupportedBrowser(SupportedBrowser.SAFARI) 19815 @SupportedBrowser(SupportedBrowser.SAFARI)
19527 @Experimental 19816 @Experimental
19528 // https://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html #sourcebufferlist 19817 // https://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html #sourcebufferlist
19529 class SourceBufferList extends EventTarget with ListMixin<SourceBuffer>, Immutab leListMixin<SourceBuffer> implements JavaScriptIndexingBehavior, List<SourceBuff er> native "WebKitSourceBufferList" { 19818 class SourceBufferList extends EventTarget with ListMixin<SourceBuffer>, Immutab leListMixin<SourceBuffer> implements JavaScriptIndexingBehavior, List<SourceBuff er> native "WebKitSourceBufferList" {
19819 // To suppress missing implicit constructor warnings.
19820 factory SourceBufferList._() { throw new UnsupportedError("Not supported"); }
19530 19821
19531 @DomName('WebKitSourceBufferList.length') 19822 @DomName('WebKitSourceBufferList.length')
19532 @DocsEditable 19823 @DocsEditable
19533 int get length => JS("int", "#.length", this); 19824 int get length => JS("int", "#.length", this);
19534 19825
19535 SourceBuffer operator[](int index) { 19826 SourceBuffer operator[](int index) {
19536 if (JS("bool", "# >>> 0 !== # || # >= #", index, 19827 if (JS("bool", "# >>> 0 !== # || # >= #", index,
19537 index, index, length)) 19828 index, index, length))
19538 throw new RangeError.range(index, 0, length); 19829 throw new RangeError.range(index, 0, length);
19539 return JS("SourceBuffer", "#[#]", this, index); 19830 return JS("SourceBuffer", "#[#]", this, index);
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
19595 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native; 19886 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native;
19596 } 19887 }
19597 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19888 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19598 // for details. All rights reserved. Use of this source code is governed by a 19889 // for details. All rights reserved. Use of this source code is governed by a
19599 // BSD-style license that can be found in the LICENSE file. 19890 // BSD-style license that can be found in the LICENSE file.
19600 19891
19601 19892
19602 @DocsEditable 19893 @DocsEditable
19603 @DomName('HTMLSourceElement') 19894 @DomName('HTMLSourceElement')
19604 class SourceElement extends _HTMLElement native "HTMLSourceElement" { 19895 class SourceElement extends _HTMLElement native "HTMLSourceElement" {
19896 // To suppress missing implicit constructor warnings.
19897 factory SourceElement._() { throw new UnsupportedError("Not supported"); }
19605 19898
19606 @DomName('HTMLSourceElement.HTMLSourceElement') 19899 @DomName('HTMLSourceElement.HTMLSourceElement')
19607 @DocsEditable 19900 @DocsEditable
19608 factory SourceElement() => document.$dom_createElement("source"); 19901 factory SourceElement() => document.$dom_createElement("source");
19609 19902
19610 @DomName('HTMLSourceElement.media') 19903 @DomName('HTMLSourceElement.media')
19611 @DocsEditable 19904 @DocsEditable
19612 String media; 19905 String media;
19613 19906
19614 @DomName('HTMLSourceElement.src') 19907 @DomName('HTMLSourceElement.src')
19615 @DocsEditable 19908 @DocsEditable
19616 String src; 19909 String src;
19617 19910
19618 @DomName('HTMLSourceElement.type') 19911 @DomName('HTMLSourceElement.type')
19619 @DocsEditable 19912 @DocsEditable
19620 String type; 19913 String type;
19621 } 19914 }
19622 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19915 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19623 // for details. All rights reserved. Use of this source code is governed by a 19916 // for details. All rights reserved. Use of this source code is governed by a
19624 // BSD-style license that can be found in the LICENSE file. 19917 // BSD-style license that can be found in the LICENSE file.
19625 19918
19626 19919
19627 @DocsEditable 19920 @DocsEditable
19628 @DomName('HTMLSpanElement') 19921 @DomName('HTMLSpanElement')
19629 class SpanElement extends _HTMLElement native "HTMLSpanElement" { 19922 class SpanElement extends _HTMLElement native "HTMLSpanElement" {
19923 // To suppress missing implicit constructor warnings.
19924 factory SpanElement._() { throw new UnsupportedError("Not supported"); }
19630 19925
19631 @DomName('HTMLSpanElement.HTMLSpanElement') 19926 @DomName('HTMLSpanElement.HTMLSpanElement')
19632 @DocsEditable 19927 @DocsEditable
19633 factory SpanElement() => document.$dom_createElement("span"); 19928 factory SpanElement() => document.$dom_createElement("span");
19634 } 19929 }
19635 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19930 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19636 // for details. All rights reserved. Use of this source code is governed by a 19931 // for details. All rights reserved. Use of this source code is governed by a
19637 // BSD-style license that can be found in the LICENSE file. 19932 // BSD-style license that can be found in the LICENSE file.
19638 19933
19639 19934
19640 @DocsEditable 19935 @DocsEditable
19641 @DomName('SpeechGrammar') 19936 @DomName('SpeechGrammar')
19642 // https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#dfn-speechgramm ar 19937 // https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#dfn-speechgramm ar
19643 @Experimental 19938 @Experimental
19644 class SpeechGrammar native "SpeechGrammar" { 19939 class SpeechGrammar extends Interceptor native "SpeechGrammar" {
19645 19940
19646 @DomName('SpeechGrammar.SpeechGrammar') 19941 @DomName('SpeechGrammar.SpeechGrammar')
19647 @DocsEditable 19942 @DocsEditable
19648 factory SpeechGrammar() { 19943 factory SpeechGrammar() {
19649 return SpeechGrammar._create_1(); 19944 return SpeechGrammar._create_1();
19650 } 19945 }
19651 static SpeechGrammar _create_1() => JS('SpeechGrammar', 'new SpeechGrammar()') ; 19946 static SpeechGrammar _create_1() => JS('SpeechGrammar', 'new SpeechGrammar()') ;
19652 19947
19653 @DomName('SpeechGrammar.src') 19948 @DomName('SpeechGrammar.src')
19654 @DocsEditable 19949 @DocsEditable
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
19739 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20034 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19740 // for details. All rights reserved. Use of this source code is governed by a 20035 // for details. All rights reserved. Use of this source code is governed by a
19741 // BSD-style license that can be found in the LICENSE file. 20036 // BSD-style license that can be found in the LICENSE file.
19742 20037
19743 20038
19744 @DocsEditable 20039 @DocsEditable
19745 @DomName('SpeechInputEvent') 20040 @DomName('SpeechInputEvent')
19746 // http://lists.w3.org/Archives/Public/public-xg-htmlspeech/2011Feb/att-0020/api -draft.html#speech_input_event_interface 20041 // http://lists.w3.org/Archives/Public/public-xg-htmlspeech/2011Feb/att-0020/api -draft.html#speech_input_event_interface
19747 @Experimental 20042 @Experimental
19748 class SpeechInputEvent extends Event native "SpeechInputEvent" { 20043 class SpeechInputEvent extends Event native "SpeechInputEvent" {
20044 // To suppress missing implicit constructor warnings.
20045 factory SpeechInputEvent._() { throw new UnsupportedError("Not supported"); }
19749 20046
19750 @DomName('SpeechInputEvent.results') 20047 @DomName('SpeechInputEvent.results')
19751 @DocsEditable 20048 @DocsEditable
19752 @Returns('_SpeechInputResultList') 20049 @Returns('_SpeechInputResultList')
19753 @Creates('_SpeechInputResultList') 20050 @Creates('_SpeechInputResultList')
19754 final List<SpeechInputResult> results; 20051 final List<SpeechInputResult> results;
19755 } 20052 }
19756 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20053 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19757 // for details. All rights reserved. Use of this source code is governed by a 20054 // for details. All rights reserved. Use of this source code is governed by a
19758 // BSD-style license that can be found in the LICENSE file. 20055 // BSD-style license that can be found in the LICENSE file.
19759 20056
19760 20057
19761 @DocsEditable 20058 @DocsEditable
19762 @DomName('SpeechInputResult') 20059 @DomName('SpeechInputResult')
19763 // http://lists.w3.org/Archives/Public/public-xg-htmlspeech/2011Feb/att-0020/api -draft.html#speech_input_result_interface 20060 // http://lists.w3.org/Archives/Public/public-xg-htmlspeech/2011Feb/att-0020/api -draft.html#speech_input_result_interface
19764 @Experimental 20061 @Experimental
19765 class SpeechInputResult native "SpeechInputResult" { 20062 class SpeechInputResult extends Interceptor native "SpeechInputResult" {
19766 20063
19767 @DomName('SpeechInputResult.confidence') 20064 @DomName('SpeechInputResult.confidence')
19768 @DocsEditable 20065 @DocsEditable
19769 final num confidence; 20066 final num confidence;
19770 20067
19771 @DomName('SpeechInputResult.utterance') 20068 @DomName('SpeechInputResult.utterance')
19772 @DocsEditable 20069 @DocsEditable
19773 final String utterance; 20070 final String utterance;
19774 } 20071 }
19775 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 20072 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
19776 // for details. All rights reserved. Use of this source code is governed by a 20073 // for details. All rights reserved. Use of this source code is governed by a
19777 // BSD-style license that can be found in the LICENSE file. 20074 // BSD-style license that can be found in the LICENSE file.
19778 20075
19779 20076
19780 @DomName('SpeechRecognition') 20077 @DomName('SpeechRecognition')
19781 @SupportedBrowser(SupportedBrowser.CHROME, '25') 20078 @SupportedBrowser(SupportedBrowser.CHROME, '25')
19782 @Experimental 20079 @Experimental
19783 // https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#speechreco-sect ion 20080 // https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#speechreco-sect ion
19784 class SpeechRecognition extends EventTarget native "SpeechRecognition" { 20081 class SpeechRecognition extends EventTarget native "SpeechRecognition" {
20082 // To suppress missing implicit constructor warnings.
20083 factory SpeechRecognition._() { throw new UnsupportedError("Not supported"); }
19785 20084
19786 @DomName('SpeechRecognition.audioendEvent') 20085 @DomName('SpeechRecognition.audioendEvent')
19787 @DocsEditable 20086 @DocsEditable
19788 static const EventStreamProvider<Event> audioEndEvent = const EventStreamProvi der<Event>('audioend'); 20087 static const EventStreamProvider<Event> audioEndEvent = const EventStreamProvi der<Event>('audioend');
19789 20088
19790 @DomName('SpeechRecognition.audiostartEvent') 20089 @DomName('SpeechRecognition.audiostartEvent')
19791 @DocsEditable 20090 @DocsEditable
19792 static const EventStreamProvider<Event> audioStartEvent = const EventStreamPro vider<Event>('audiostart'); 20091 static const EventStreamProvider<Event> audioStartEvent = const EventStreamPro vider<Event>('audiostart');
19793 20092
19794 @DomName('SpeechRecognition.endEvent') 20093 @DomName('SpeechRecognition.endEvent')
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
19928 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20227 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19929 // for details. All rights reserved. Use of this source code is governed by a 20228 // for details. All rights reserved. Use of this source code is governed by a
19930 // BSD-style license that can be found in the LICENSE file. 20229 // BSD-style license that can be found in the LICENSE file.
19931 20230
19932 20231
19933 @DocsEditable 20232 @DocsEditable
19934 @DomName('SpeechRecognitionAlternative') 20233 @DomName('SpeechRecognitionAlternative')
19935 @SupportedBrowser(SupportedBrowser.CHROME, '25') 20234 @SupportedBrowser(SupportedBrowser.CHROME, '25')
19936 @Experimental 20235 @Experimental
19937 // https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#speechrecogniti onalternative 20236 // https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#speechrecogniti onalternative
19938 class SpeechRecognitionAlternative native "SpeechRecognitionAlternative" { 20237 class SpeechRecognitionAlternative extends Interceptor native "SpeechRecognition Alternative" {
19939 20238
19940 @DomName('SpeechRecognitionAlternative.confidence') 20239 @DomName('SpeechRecognitionAlternative.confidence')
19941 @DocsEditable 20240 @DocsEditable
19942 final num confidence; 20241 final num confidence;
19943 20242
19944 @DomName('SpeechRecognitionAlternative.transcript') 20243 @DomName('SpeechRecognitionAlternative.transcript')
19945 @DocsEditable 20244 @DocsEditable
19946 final String transcript; 20245 final String transcript;
19947 } 20246 }
19948 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20247 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19949 // for details. All rights reserved. Use of this source code is governed by a 20248 // for details. All rights reserved. Use of this source code is governed by a
19950 // BSD-style license that can be found in the LICENSE file. 20249 // BSD-style license that can be found in the LICENSE file.
19951 20250
19952 20251
19953 @DocsEditable 20252 @DocsEditable
19954 @DomName('SpeechRecognitionError') 20253 @DomName('SpeechRecognitionError')
19955 @SupportedBrowser(SupportedBrowser.CHROME, '25') 20254 @SupportedBrowser(SupportedBrowser.CHROME, '25')
19956 @Experimental 20255 @Experimental
19957 // https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#speechreco-erro r 20256 // https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#speechreco-erro r
19958 class SpeechRecognitionError extends Event native "SpeechRecognitionError" { 20257 class SpeechRecognitionError extends Event native "SpeechRecognitionError" {
20258 // To suppress missing implicit constructor warnings.
20259 factory SpeechRecognitionError._() { throw new UnsupportedError("Not supported "); }
19959 20260
19960 @DomName('SpeechRecognitionError.error') 20261 @DomName('SpeechRecognitionError.error')
19961 @DocsEditable 20262 @DocsEditable
19962 final String error; 20263 final String error;
19963 20264
19964 @DomName('SpeechRecognitionError.message') 20265 @DomName('SpeechRecognitionError.message')
19965 @DocsEditable 20266 @DocsEditable
19966 final String message; 20267 final String message;
19967 } 20268 }
19968 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20269 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19969 // for details. All rights reserved. Use of this source code is governed by a 20270 // for details. All rights reserved. Use of this source code is governed by a
19970 // BSD-style license that can be found in the LICENSE file. 20271 // BSD-style license that can be found in the LICENSE file.
19971 20272
19972 20273
19973 @DocsEditable 20274 @DocsEditable
19974 @DomName('SpeechRecognitionEvent') 20275 @DomName('SpeechRecognitionEvent')
19975 @SupportedBrowser(SupportedBrowser.CHROME, '25') 20276 @SupportedBrowser(SupportedBrowser.CHROME, '25')
19976 @Experimental 20277 @Experimental
19977 // https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#speechreco-even t 20278 // https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#speechreco-even t
19978 class SpeechRecognitionEvent extends Event native "SpeechRecognitionEvent" { 20279 class SpeechRecognitionEvent extends Event native "SpeechRecognitionEvent" {
20280 // To suppress missing implicit constructor warnings.
20281 factory SpeechRecognitionEvent._() { throw new UnsupportedError("Not supported "); }
19979 20282
19980 @DomName('SpeechRecognitionEvent.emma') 20283 @DomName('SpeechRecognitionEvent.emma')
19981 @DocsEditable 20284 @DocsEditable
19982 final Document emma; 20285 final Document emma;
19983 20286
19984 @DomName('SpeechRecognitionEvent.interpretation') 20287 @DomName('SpeechRecognitionEvent.interpretation')
19985 @DocsEditable 20288 @DocsEditable
19986 final Document interpretation; 20289 final Document interpretation;
19987 20290
19988 @DomName('SpeechRecognitionEvent.resultIndex') 20291 @DomName('SpeechRecognitionEvent.resultIndex')
19989 @DocsEditable 20292 @DocsEditable
19990 final int resultIndex; 20293 final int resultIndex;
19991 20294
19992 @DomName('SpeechRecognitionEvent.results') 20295 @DomName('SpeechRecognitionEvent.results')
19993 @DocsEditable 20296 @DocsEditable
19994 @Returns('_SpeechRecognitionResultList') 20297 @Returns('_SpeechRecognitionResultList')
19995 @Creates('_SpeechRecognitionResultList') 20298 @Creates('_SpeechRecognitionResultList')
19996 final List<SpeechRecognitionResult> results; 20299 final List<SpeechRecognitionResult> results;
19997 } 20300 }
19998 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20301 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19999 // for details. All rights reserved. Use of this source code is governed by a 20302 // for details. All rights reserved. Use of this source code is governed by a
20000 // BSD-style license that can be found in the LICENSE file. 20303 // BSD-style license that can be found in the LICENSE file.
20001 20304
20002 20305
20003 @DocsEditable 20306 @DocsEditable
20004 @DomName('SpeechRecognitionResult') 20307 @DomName('SpeechRecognitionResult')
20005 @SupportedBrowser(SupportedBrowser.CHROME, '25') 20308 @SupportedBrowser(SupportedBrowser.CHROME, '25')
20006 @Experimental 20309 @Experimental
20007 // https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#speechrecogniti onresult 20310 // https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#speechrecogniti onresult
20008 class SpeechRecognitionResult native "SpeechRecognitionResult" { 20311 class SpeechRecognitionResult extends Interceptor native "SpeechRecognitionResul t" {
20009 20312
20010 @DomName('SpeechRecognitionResult.isFinal') 20313 @DomName('SpeechRecognitionResult.isFinal')
20011 @DocsEditable 20314 @DocsEditable
20012 final bool isFinal; 20315 final bool isFinal;
20013 20316
20014 @DomName('SpeechRecognitionResult.length') 20317 @DomName('SpeechRecognitionResult.length')
20015 @DocsEditable 20318 @DocsEditable
20016 final int length; 20319 final int length;
20017 20320
20018 @DomName('SpeechRecognitionResult.item') 20321 @DomName('SpeechRecognitionResult.item')
20019 @DocsEditable 20322 @DocsEditable
20020 SpeechRecognitionAlternative item(int index) native; 20323 SpeechRecognitionAlternative item(int index) native;
20021 } 20324 }
20022 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20325 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20023 // for details. All rights reserved. Use of this source code is governed by a 20326 // for details. All rights reserved. Use of this source code is governed by a
20024 // BSD-style license that can be found in the LICENSE file. 20327 // BSD-style license that can be found in the LICENSE file.
20025 20328
20026 20329
20027 @DocsEditable 20330 @DocsEditable
20028 @DomName('SpeechSynthesis') 20331 @DomName('SpeechSynthesis')
20029 // https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#tts-section 20332 // https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#tts-section
20030 @Experimental 20333 @Experimental
20031 class SpeechSynthesis native "SpeechSynthesis" { 20334 class SpeechSynthesis extends Interceptor native "SpeechSynthesis" {
20032 20335
20033 @DomName('SpeechSynthesis.paused') 20336 @DomName('SpeechSynthesis.paused')
20034 @DocsEditable 20337 @DocsEditable
20035 final bool paused; 20338 final bool paused;
20036 20339
20037 @DomName('SpeechSynthesis.pending') 20340 @DomName('SpeechSynthesis.pending')
20038 @DocsEditable 20341 @DocsEditable
20039 final bool pending; 20342 final bool pending;
20040 20343
20041 @DomName('SpeechSynthesis.speaking') 20344 @DomName('SpeechSynthesis.speaking')
(...skipping 23 matching lines...) Expand all
20065 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20368 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20066 // for details. All rights reserved. Use of this source code is governed by a 20369 // for details. All rights reserved. Use of this source code is governed by a
20067 // BSD-style license that can be found in the LICENSE file. 20370 // BSD-style license that can be found in the LICENSE file.
20068 20371
20069 20372
20070 @DocsEditable 20373 @DocsEditable
20071 @DomName('SpeechSynthesisEvent') 20374 @DomName('SpeechSynthesisEvent')
20072 // https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#tts-section 20375 // https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#tts-section
20073 @Experimental 20376 @Experimental
20074 class SpeechSynthesisEvent extends Event native "SpeechSynthesisEvent" { 20377 class SpeechSynthesisEvent extends Event native "SpeechSynthesisEvent" {
20378 // To suppress missing implicit constructor warnings.
20379 factory SpeechSynthesisEvent._() { throw new UnsupportedError("Not supported") ; }
20075 20380
20076 @DomName('SpeechSynthesisEvent.charIndex') 20381 @DomName('SpeechSynthesisEvent.charIndex')
20077 @DocsEditable 20382 @DocsEditable
20078 final int charIndex; 20383 final int charIndex;
20079 20384
20080 @DomName('SpeechSynthesisEvent.elapsedTime') 20385 @DomName('SpeechSynthesisEvent.elapsedTime')
20081 @DocsEditable 20386 @DocsEditable
20082 final num elapsedTime; 20387 final num elapsedTime;
20083 20388
20084 @DomName('SpeechSynthesisEvent.name') 20389 @DomName('SpeechSynthesisEvent.name')
20085 @DocsEditable 20390 @DocsEditable
20086 final String name; 20391 final String name;
20087 } 20392 }
20088 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20393 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20089 // for details. All rights reserved. Use of this source code is governed by a 20394 // for details. All rights reserved. Use of this source code is governed by a
20090 // BSD-style license that can be found in the LICENSE file. 20395 // BSD-style license that can be found in the LICENSE file.
20091 20396
20092 20397
20093 @DocsEditable 20398 @DocsEditable
20094 @DomName('SpeechSynthesisUtterance') 20399 @DomName('SpeechSynthesisUtterance')
20095 // https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#tts-section 20400 // https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#tts-section
20096 @Experimental 20401 @Experimental
20097 class SpeechSynthesisUtterance extends EventTarget native "SpeechSynthesisUttera nce" { 20402 class SpeechSynthesisUtterance extends EventTarget native "SpeechSynthesisUttera nce" {
20403 // To suppress missing implicit constructor warnings.
20404 factory SpeechSynthesisUtterance._() { throw new UnsupportedError("Not support ed"); }
20098 20405
20099 @DomName('SpeechSynthesisUtterance.boundaryEvent') 20406 @DomName('SpeechSynthesisUtterance.boundaryEvent')
20100 @DocsEditable 20407 @DocsEditable
20101 static const EventStreamProvider<SpeechSynthesisEvent> boundaryEvent = const E ventStreamProvider<SpeechSynthesisEvent>('boundary'); 20408 static const EventStreamProvider<SpeechSynthesisEvent> boundaryEvent = const E ventStreamProvider<SpeechSynthesisEvent>('boundary');
20102 20409
20103 @DomName('SpeechSynthesisUtterance.endEvent') 20410 @DomName('SpeechSynthesisUtterance.endEvent')
20104 @DocsEditable 20411 @DocsEditable
20105 static const EventStreamProvider<SpeechSynthesisEvent> endEvent = const EventS treamProvider<SpeechSynthesisEvent>('end'); 20412 static const EventStreamProvider<SpeechSynthesisEvent> endEvent = const EventS treamProvider<SpeechSynthesisEvent>('end');
20106 20413
20107 @DomName('SpeechSynthesisUtterance.errorEvent') 20414 @DomName('SpeechSynthesisUtterance.errorEvent')
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
20189 } 20496 }
20190 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20497 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20191 // for details. All rights reserved. Use of this source code is governed by a 20498 // for details. All rights reserved. Use of this source code is governed by a
20192 // BSD-style license that can be found in the LICENSE file. 20499 // BSD-style license that can be found in the LICENSE file.
20193 20500
20194 20501
20195 @DocsEditable 20502 @DocsEditable
20196 @DomName('SpeechSynthesisVoice') 20503 @DomName('SpeechSynthesisVoice')
20197 // https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#tts-section 20504 // https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#tts-section
20198 @Experimental 20505 @Experimental
20199 class SpeechSynthesisVoice native "SpeechSynthesisVoice" { 20506 class SpeechSynthesisVoice extends Interceptor native "SpeechSynthesisVoice" {
20200 20507
20201 @JSName('default') 20508 @JSName('default')
20202 @DomName('SpeechSynthesisVoice.default') 20509 @DomName('SpeechSynthesisVoice.default')
20203 @DocsEditable 20510 @DocsEditable
20204 final bool defaultValue; 20511 final bool defaultValue;
20205 20512
20206 @DomName('SpeechSynthesisVoice.lang') 20513 @DomName('SpeechSynthesisVoice.lang')
20207 @DocsEditable 20514 @DocsEditable
20208 final String lang; 20515 final String lang;
20209 20516
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
20245 * assert(window.localStorage.length == 0); 20552 * assert(window.localStorage.length == 0);
20246 * 20553 *
20247 * For more examples of using this API, see 20554 * For more examples of using this API, see
20248 * [localstorage_test.dart](http://code.google.com/p/dart/source/browse/branches /bleeding_edge/dart/tests/html/localstorage_test.dart). 20555 * [localstorage_test.dart](http://code.google.com/p/dart/source/browse/branches /bleeding_edge/dart/tests/html/localstorage_test.dart).
20249 * For details on using the Map API, see the 20556 * For details on using the Map API, see the
20250 * [Maps](http://www.dartlang.org/docs/library-tour/#maps-aka-dictionaries-or-ha shes) 20557 * [Maps](http://www.dartlang.org/docs/library-tour/#maps-aka-dictionaries-or-ha shes)
20251 * section of the library tour. 20558 * section of the library tour.
20252 */ 20559 */
20253 @DomName('Storage') 20560 @DomName('Storage')
20254 @Unstable 20561 @Unstable
20255 class Storage implements Map<String, String> 20562 class Storage extends Interceptor
20256 native "Storage" { 20563 implements Map<String, String> native "Storage" {
20257 20564
20258 // TODO(nweiz): update this when maps support lazy iteration 20565 // TODO(nweiz): update this when maps support lazy iteration
20259 bool containsValue(String value) => values.any((e) => e == value); 20566 bool containsValue(String value) => values.any((e) => e == value);
20260 20567
20261 bool containsKey(String key) => $dom_getItem(key) != null; 20568 bool containsKey(String key) => $dom_getItem(key) != null;
20262 20569
20263 String operator [](String key) => $dom_getItem(key); 20570 String operator [](String key) => $dom_getItem(key);
20264 20571
20265 void operator []=(String key, String value) { $dom_setItem(key, value); } 20572 void operator []=(String key, String value) { $dom_setItem(key, value); }
20266 20573
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
20370 class StorageEvent extends Event native "StorageEvent" { 20677 class StorageEvent extends Event native "StorageEvent" {
20371 factory StorageEvent(String type, 20678 factory StorageEvent(String type,
20372 {bool canBubble: false, bool cancelable: false, String key, String oldValue, 20679 {bool canBubble: false, bool cancelable: false, String key, String oldValue,
20373 String newValue, String url, Storage storageArea}) { 20680 String newValue, String url, Storage storageArea}) {
20374 20681
20375 var e = document.$dom_createEvent("StorageEvent"); 20682 var e = document.$dom_createEvent("StorageEvent");
20376 e.$dom_initStorageEvent(type, canBubble, cancelable, key, oldValue, 20683 e.$dom_initStorageEvent(type, canBubble, cancelable, key, oldValue,
20377 newValue, url, storageArea); 20684 newValue, url, storageArea);
20378 return e; 20685 return e;
20379 } 20686 }
20687 // To suppress missing implicit constructor warnings.
20688 factory StorageEvent._() { throw new UnsupportedError("Not supported"); }
20380 20689
20381 @DomName('StorageEvent.key') 20690 @DomName('StorageEvent.key')
20382 @DocsEditable 20691 @DocsEditable
20383 final String key; 20692 final String key;
20384 20693
20385 @DomName('StorageEvent.newValue') 20694 @DomName('StorageEvent.newValue')
20386 @DocsEditable 20695 @DocsEditable
20387 final String newValue; 20696 final String newValue;
20388 20697
20389 @DomName('StorageEvent.oldValue') 20698 @DomName('StorageEvent.oldValue')
(...skipping 15 matching lines...) Expand all
20405 20714
20406 } 20715 }
20407 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 20716 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
20408 // for details. All rights reserved. Use of this source code is governed by a 20717 // for details. All rights reserved. Use of this source code is governed by a
20409 // BSD-style license that can be found in the LICENSE file. 20718 // BSD-style license that can be found in the LICENSE file.
20410 20719
20411 20720
20412 @DomName('StorageInfo') 20721 @DomName('StorageInfo')
20413 // http://www.w3.org/TR/file-system-api/ 20722 // http://www.w3.org/TR/file-system-api/
20414 @Experimental 20723 @Experimental
20415 class StorageInfo native "StorageInfo" { 20724 class StorageInfo extends Interceptor native "StorageInfo" {
20416 20725
20417 @DomName('StorageInfo.PERSISTENT') 20726 @DomName('StorageInfo.PERSISTENT')
20418 @DocsEditable 20727 @DocsEditable
20419 static const int PERSISTENT = 1; 20728 static const int PERSISTENT = 1;
20420 20729
20421 @DomName('StorageInfo.TEMPORARY') 20730 @DomName('StorageInfo.TEMPORARY')
20422 @DocsEditable 20731 @DocsEditable
20423 static const int TEMPORARY = 0; 20732 static const int TEMPORARY = 0;
20424 20733
20425 @JSName('queryUsageAndQuota') 20734 @JSName('queryUsageAndQuota')
(...skipping 13 matching lines...) Expand all
20439 var completer = new Completer<int>(); 20748 var completer = new Completer<int>();
20440 _requestQuota(storageType, newQuotaInBytes, 20749 _requestQuota(storageType, newQuotaInBytes,
20441 (value) { completer.complete(value); }, 20750 (value) { completer.complete(value); },
20442 (error) { completer.completeError(error); }); 20751 (error) { completer.completeError(error); });
20443 return completer.future; 20752 return completer.future;
20444 } 20753 }
20445 20754
20446 Future<StorageInfoUsage> queryUsageAndQuota(int storageType) { 20755 Future<StorageInfoUsage> queryUsageAndQuota(int storageType) {
20447 var completer = new Completer<StorageInfoUsage>(); 20756 var completer = new Completer<StorageInfoUsage>();
20448 _queryUsageAndQuota(storageType, 20757 _queryUsageAndQuota(storageType,
20449 (currentUsageInBytes, currentQuotaInBytes) { 20758 (currentUsageInBytes, currentQuotaInBytes) {
20450 completer.complete(new StorageInfoUsage(currentUsageInBytes, 20759 completer.complete(new StorageInfoUsage(currentUsageInBytes,
20451 currentQuotaInBytes)); 20760 currentQuotaInBytes));
20452 }, 20761 },
20453 (error) { completer.completeError(error); }); 20762 (error) { completer.completeError(error); });
20454 return completer.future; 20763 return completer.future;
20455 } 20764 }
20456 } 20765 }
20457 20766
20458 /** 20767 /**
20459 * A simple container class for the two values that are returned from the 20768 * A simple container class for the two values that are returned from the
20460 * futures in requestQuota and queryUsageAndQuota. 20769 * futures in requestQuota and queryUsageAndQuota.
20461 */ 20770 */
20462 class StorageInfoUsage { 20771 class StorageInfoUsage {
20463 final int currentUsageInBytes; 20772 final int currentUsageInBytes;
20464 final int currentQuotaInBytes; 20773 final int currentQuotaInBytes;
20465 const StorageInfoUsage(this.currentUsageInBytes, this.currentQuotaInBytes); 20774 const StorageInfoUsage(this.currentUsageInBytes, this.currentQuotaInBytes);
20466 } 20775 }
20467 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20776 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20468 // for details. All rights reserved. Use of this source code is governed by a 20777 // for details. All rights reserved. Use of this source code is governed by a
20469 // BSD-style license that can be found in the LICENSE file. 20778 // BSD-style license that can be found in the LICENSE file.
20470 20779
20471 20780
20472 @DocsEditable 20781 @DocsEditable
20473 @DomName('StorageQuota') 20782 @DomName('StorageQuota')
20474 // http://www.w3.org/TR/quota-api/#idl-def-StorageQuota 20783 // http://www.w3.org/TR/quota-api/#idl-def-StorageQuota
20475 @Experimental 20784 @Experimental
20476 class StorageQuota native "StorageQuota" { 20785 class StorageQuota extends Interceptor native "StorageQuota" {
20477 20786
20478 @DomName('StorageQuota.queryUsageAndQuota') 20787 @DomName('StorageQuota.queryUsageAndQuota')
20479 @DocsEditable 20788 @DocsEditable
20480 void queryUsageAndQuota(StorageUsageCallback usageCallback, [StorageErrorCallb ack errorCallback]) native; 20789 void queryUsageAndQuota(StorageUsageCallback usageCallback, [StorageErrorCallb ack errorCallback]) native;
20481 20790
20482 @DomName('StorageQuota.requestQuota') 20791 @DomName('StorageQuota.requestQuota')
20483 @DocsEditable 20792 @DocsEditable
20484 void requestQuota(int newQuotaInBytes, [StorageQuotaCallback quotaCallback, St orageErrorCallback errorCallback]) native; 20793 void requestQuota(int newQuotaInBytes, [StorageQuotaCallback quotaCallback, St orageErrorCallback errorCallback]) native;
20485 } 20794 }
20486 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20795 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
(...skipping 30 matching lines...) Expand all
20517 @Experimental 20826 @Experimental
20518 typedef void _StringCallback(String data); 20827 typedef void _StringCallback(String data);
20519 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20828 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20520 // for details. All rights reserved. Use of this source code is governed by a 20829 // for details. All rights reserved. Use of this source code is governed by a
20521 // BSD-style license that can be found in the LICENSE file. 20830 // BSD-style license that can be found in the LICENSE file.
20522 20831
20523 20832
20524 @DocsEditable 20833 @DocsEditable
20525 @DomName('HTMLStyleElement') 20834 @DomName('HTMLStyleElement')
20526 class StyleElement extends _HTMLElement native "HTMLStyleElement" { 20835 class StyleElement extends _HTMLElement native "HTMLStyleElement" {
20836 // To suppress missing implicit constructor warnings.
20837 factory StyleElement._() { throw new UnsupportedError("Not supported"); }
20527 20838
20528 @DomName('HTMLStyleElement.HTMLStyleElement') 20839 @DomName('HTMLStyleElement.HTMLStyleElement')
20529 @DocsEditable 20840 @DocsEditable
20530 factory StyleElement() => document.$dom_createElement("style"); 20841 factory StyleElement() => document.$dom_createElement("style");
20531 20842
20532 @DomName('HTMLStyleElement.disabled') 20843 @DomName('HTMLStyleElement.disabled')
20533 @DocsEditable 20844 @DocsEditable
20534 bool disabled; 20845 bool disabled;
20535 20846
20536 @DomName('HTMLStyleElement.media') 20847 @DomName('HTMLStyleElement.media')
(...skipping 14 matching lines...) Expand all
20551 } 20862 }
20552 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20863 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20553 // for details. All rights reserved. Use of this source code is governed by a 20864 // for details. All rights reserved. Use of this source code is governed by a
20554 // BSD-style license that can be found in the LICENSE file. 20865 // BSD-style license that can be found in the LICENSE file.
20555 20866
20556 20867
20557 @DocsEditable 20868 @DocsEditable
20558 @DomName('StyleMedia') 20869 @DomName('StyleMedia')
20559 // http://developer.apple.com/library/safari/#documentation/SafariDOMAdditions/R eference/StyleMedia/StyleMedia/StyleMedia.html 20870 // http://developer.apple.com/library/safari/#documentation/SafariDOMAdditions/R eference/StyleMedia/StyleMedia/StyleMedia.html
20560 @Experimental // nonstandard 20871 @Experimental // nonstandard
20561 class StyleMedia native "StyleMedia" { 20872 class StyleMedia extends Interceptor native "StyleMedia" {
20562 20873
20563 @DomName('StyleMedia.type') 20874 @DomName('StyleMedia.type')
20564 @DocsEditable 20875 @DocsEditable
20565 final String type; 20876 final String type;
20566 20877
20567 @DomName('StyleMedia.matchMedium') 20878 @DomName('StyleMedia.matchMedium')
20568 @DocsEditable 20879 @DocsEditable
20569 bool matchMedium(String mediaquery) native; 20880 bool matchMedium(String mediaquery) native;
20570 } 20881 }
20571 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20882 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20572 // for details. All rights reserved. Use of this source code is governed by a 20883 // for details. All rights reserved. Use of this source code is governed by a
20573 // BSD-style license that can be found in the LICENSE file. 20884 // BSD-style license that can be found in the LICENSE file.
20574 20885
20575 20886
20576 @DocsEditable 20887 @DocsEditable
20577 @DomName('StyleSheet') 20888 @DomName('StyleSheet')
20578 class StyleSheet native "StyleSheet" { 20889 class StyleSheet extends Interceptor native "StyleSheet" {
20579 20890
20580 @DomName('StyleSheet.disabled') 20891 @DomName('StyleSheet.disabled')
20581 @DocsEditable 20892 @DocsEditable
20582 bool disabled; 20893 bool disabled;
20583 20894
20584 @DomName('StyleSheet.href') 20895 @DomName('StyleSheet.href')
20585 @DocsEditable 20896 @DocsEditable
20586 final String href; 20897 final String href;
20587 20898
20588 @DomName('StyleSheet.media') 20899 @DomName('StyleSheet.media')
(...skipping 17 matching lines...) Expand all
20606 final String type; 20917 final String type;
20607 } 20918 }
20608 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20919 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20609 // for details. All rights reserved. Use of this source code is governed by a 20920 // for details. All rights reserved. Use of this source code is governed by a
20610 // BSD-style license that can be found in the LICENSE file. 20921 // BSD-style license that can be found in the LICENSE file.
20611 20922
20612 20923
20613 @DocsEditable 20924 @DocsEditable
20614 @DomName('HTMLTableCaptionElement') 20925 @DomName('HTMLTableCaptionElement')
20615 class TableCaptionElement extends _HTMLElement native "HTMLTableCaptionElement" { 20926 class TableCaptionElement extends _HTMLElement native "HTMLTableCaptionElement" {
20927 // To suppress missing implicit constructor warnings.
20928 factory TableCaptionElement._() { throw new UnsupportedError("Not supported"); }
20616 20929
20617 @DomName('HTMLTableCaptionElement.HTMLTableCaptionElement') 20930 @DomName('HTMLTableCaptionElement.HTMLTableCaptionElement')
20618 @DocsEditable 20931 @DocsEditable
20619 factory TableCaptionElement() => document.$dom_createElement("caption"); 20932 factory TableCaptionElement() => document.$dom_createElement("caption");
20620 } 20933 }
20621 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20934 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20622 // for details. All rights reserved. Use of this source code is governed by a 20935 // for details. All rights reserved. Use of this source code is governed by a
20623 // BSD-style license that can be found in the LICENSE file. 20936 // BSD-style license that can be found in the LICENSE file.
20624 20937
20625 20938
20626 @DocsEditable 20939 @DocsEditable
20627 @DomName('HTMLTableCellElement') 20940 @DomName('HTMLTableCellElement')
20628 class TableCellElement extends _HTMLElement native "HTMLTableCellElement,HTMLTab leDataCellElement,HTMLTableHeaderCellElement" { 20941 class TableCellElement extends _HTMLElement native "HTMLTableCellElement,HTMLTab leDataCellElement,HTMLTableHeaderCellElement" {
20942 // To suppress missing implicit constructor warnings.
20943 factory TableCellElement._() { throw new UnsupportedError("Not supported"); }
20629 20944
20630 @DomName('HTMLTableCellElement.HTMLTableCellElement') 20945 @DomName('HTMLTableCellElement.HTMLTableCellElement')
20631 @DocsEditable 20946 @DocsEditable
20632 factory TableCellElement() => document.$dom_createElement("td"); 20947 factory TableCellElement() => document.$dom_createElement("td");
20633 20948
20634 @DomName('HTMLTableCellElement.cellIndex') 20949 @DomName('HTMLTableCellElement.cellIndex')
20635 @DocsEditable 20950 @DocsEditable
20636 final int cellIndex; 20951 final int cellIndex;
20637 20952
20638 @DomName('HTMLTableCellElement.colSpan') 20953 @DomName('HTMLTableCellElement.colSpan')
20639 @DocsEditable 20954 @DocsEditable
20640 int colSpan; 20955 int colSpan;
20641 20956
20642 @DomName('HTMLTableCellElement.headers') 20957 @DomName('HTMLTableCellElement.headers')
20643 @DocsEditable 20958 @DocsEditable
20644 String headers; 20959 String headers;
20645 20960
20646 @DomName('HTMLTableCellElement.rowSpan') 20961 @DomName('HTMLTableCellElement.rowSpan')
20647 @DocsEditable 20962 @DocsEditable
20648 int rowSpan; 20963 int rowSpan;
20649 } 20964 }
20650 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20965 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20651 // for details. All rights reserved. Use of this source code is governed by a 20966 // for details. All rights reserved. Use of this source code is governed by a
20652 // BSD-style license that can be found in the LICENSE file. 20967 // BSD-style license that can be found in the LICENSE file.
20653 20968
20654 20969
20655 @DocsEditable 20970 @DocsEditable
20656 @DomName('HTMLTableColElement') 20971 @DomName('HTMLTableColElement')
20657 class TableColElement extends _HTMLElement native "HTMLTableColElement" { 20972 class TableColElement extends _HTMLElement native "HTMLTableColElement" {
20973 // To suppress missing implicit constructor warnings.
20974 factory TableColElement._() { throw new UnsupportedError("Not supported"); }
20658 20975
20659 @DomName('HTMLTableColElement.HTMLTableColElement') 20976 @DomName('HTMLTableColElement.HTMLTableColElement')
20660 @DocsEditable 20977 @DocsEditable
20661 factory TableColElement() => document.$dom_createElement("col"); 20978 factory TableColElement() => document.$dom_createElement("col");
20662 20979
20663 @DomName('HTMLTableColElement.span') 20980 @DomName('HTMLTableColElement.span')
20664 @DocsEditable 20981 @DocsEditable
20665 int span; 20982 int span;
20666 } 20983 }
20667 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 20984 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
(...skipping 28 matching lines...) Expand all
20696 return this._createTBody(); 21013 return this._createTBody();
20697 } 21014 }
20698 var tbody = new Element.tag('tbody'); 21015 var tbody = new Element.tag('tbody');
20699 this.children.add(tbody); 21016 this.children.add(tbody);
20700 return tbody; 21017 return tbody;
20701 } 21018 }
20702 21019
20703 @JSName('createTBody') 21020 @JSName('createTBody')
20704 TableSectionElement _createTBody() native; 21021 TableSectionElement _createTBody() native;
20705 21022
21023 // To suppress missing implicit constructor warnings.
21024 factory TableElement._() { throw new UnsupportedError("Not supported"); }
20706 21025
20707 @DomName('HTMLTableElement.HTMLTableElement') 21026 @DomName('HTMLTableElement.HTMLTableElement')
20708 @DocsEditable 21027 @DocsEditable
20709 factory TableElement() => document.$dom_createElement("table"); 21028 factory TableElement() => document.$dom_createElement("table");
20710 21029
20711 @DomName('HTMLTableElement.border') 21030 @DomName('HTMLTableElement.border')
20712 @DocsEditable 21031 @DocsEditable
20713 // http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#H TMLTableElement-partial 21032 // http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#H TMLTableElement-partial
20714 @deprecated // deprecated 21033 @deprecated // deprecated
20715 String border; 21034 String border;
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
20784 @DomName('HTMLTableRowElement.cells') 21103 @DomName('HTMLTableRowElement.cells')
20785 List<TableCellElement> get cells => 21104 List<TableCellElement> get cells =>
20786 new _WrappedList<TableCellElement>($dom_cells); 21105 new _WrappedList<TableCellElement>($dom_cells);
20787 21106
20788 TableCellElement addCell() { 21107 TableCellElement addCell() {
20789 return insertCell(-1); 21108 return insertCell(-1);
20790 } 21109 }
20791 21110
20792 TableCellElement insertCell(int index) => $dom_insertCell(index); 21111 TableCellElement insertCell(int index) => $dom_insertCell(index);
20793 21112
21113 // To suppress missing implicit constructor warnings.
21114 factory TableRowElement._() { throw new UnsupportedError("Not supported"); }
20794 21115
20795 @DomName('HTMLTableRowElement.HTMLTableRowElement') 21116 @DomName('HTMLTableRowElement.HTMLTableRowElement')
20796 @DocsEditable 21117 @DocsEditable
20797 factory TableRowElement() => document.$dom_createElement("tr"); 21118 factory TableRowElement() => document.$dom_createElement("tr");
20798 21119
20799 @JSName('cells') 21120 @JSName('cells')
20800 @DomName('HTMLTableRowElement.cells') 21121 @DomName('HTMLTableRowElement.cells')
20801 @DocsEditable 21122 @DocsEditable
20802 final HtmlCollection $dom_cells; 21123 final HtmlCollection $dom_cells;
20803 21124
(...skipping 26 matching lines...) Expand all
20830 @DomName('HTMLTableSectionElement.rows') 21151 @DomName('HTMLTableSectionElement.rows')
20831 List<TableRowElement> get rows => 21152 List<TableRowElement> get rows =>
20832 new _WrappedList<TableRowElement>($dom_rows); 21153 new _WrappedList<TableRowElement>($dom_rows);
20833 21154
20834 TableRowElement addRow() { 21155 TableRowElement addRow() {
20835 return insertRow(-1); 21156 return insertRow(-1);
20836 } 21157 }
20837 21158
20838 TableRowElement insertRow(int index) => $dom_insertRow(index); 21159 TableRowElement insertRow(int index) => $dom_insertRow(index);
20839 21160
21161 // To suppress missing implicit constructor warnings.
21162 factory TableSectionElement._() { throw new UnsupportedError("Not supported"); }
20840 21163
20841 @JSName('rows') 21164 @JSName('rows')
20842 @DomName('HTMLTableSectionElement.rows') 21165 @DomName('HTMLTableSectionElement.rows')
20843 @DocsEditable 21166 @DocsEditable
20844 final HtmlCollection $dom_rows; 21167 final HtmlCollection $dom_rows;
20845 21168
20846 @DomName('HTMLTableSectionElement.deleteRow') 21169 @DomName('HTMLTableSectionElement.deleteRow')
20847 @DocsEditable 21170 @DocsEditable
20848 void deleteRow(int index) native; 21171 void deleteRow(int index) native;
20849 21172
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
20951 getInstanceFragment(Element template) => template.createInstance(); 21274 getInstanceFragment(Element template) => template.createInstance();
20952 } 21275 }
20953 21276
20954 21277
20955 @Experimental 21278 @Experimental
20956 @DomName('HTMLTemplateElement') 21279 @DomName('HTMLTemplateElement')
20957 @SupportedBrowser(SupportedBrowser.CHROME) 21280 @SupportedBrowser(SupportedBrowser.CHROME)
20958 @Experimental 21281 @Experimental
20959 // https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/templates/index.html#t emplate-element 21282 // https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/templates/index.html#t emplate-element
20960 class TemplateElement extends _HTMLElement native "HTMLTemplateElement" { 21283 class TemplateElement extends _HTMLElement native "HTMLTemplateElement" {
21284 // To suppress missing implicit constructor warnings.
21285 factory TemplateElement._() { throw new UnsupportedError("Not supported"); }
20961 21286
20962 @DomName('HTMLTemplateElement.HTMLTemplateElement') 21287 @DomName('HTMLTemplateElement.HTMLTemplateElement')
20963 @DocsEditable 21288 @DocsEditable
20964 factory TemplateElement() => document.$dom_createElement("template"); 21289 factory TemplateElement() => document.$dom_createElement("template");
20965 21290
20966 /// Checks if this type is supported on the current platform. 21291 /// Checks if this type is supported on the current platform.
20967 static bool get supported => Element.isTagSupported('template'); 21292 static bool get supported => Element.isTagSupported('template');
20968 21293
20969 @JSName('content') 21294 @JSName('content')
20970 @DomName('HTMLTemplateElement.content') 21295 @DomName('HTMLTemplateElement.content')
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
21180 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21505 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21181 // for details. All rights reserved. Use of this source code is governed by a 21506 // for details. All rights reserved. Use of this source code is governed by a
21182 // BSD-style license that can be found in the LICENSE file. 21507 // BSD-style license that can be found in the LICENSE file.
21183 21508
21184 // WARNING: Do not edit - generated code. 21509 // WARNING: Do not edit - generated code.
21185 21510
21186 21511
21187 @DomName('Text') 21512 @DomName('Text')
21188 class Text extends CharacterData native "Text" { 21513 class Text extends CharacterData native "Text" {
21189 factory Text(String data) => document.$dom_createTextNode(data); 21514 factory Text(String data) => document.$dom_createTextNode(data);
21515 // To suppress missing implicit constructor warnings.
21516 factory Text._() { throw new UnsupportedError("Not supported"); }
21190 21517
21191 @DomName('Text.wholeText') 21518 @DomName('Text.wholeText')
21192 @DocsEditable 21519 @DocsEditable
21193 final String wholeText; 21520 final String wholeText;
21194 21521
21195 @DomName('Text.replaceWholeText') 21522 @DomName('Text.replaceWholeText')
21196 @DocsEditable 21523 @DocsEditable
21197 // http://dom.spec.whatwg.org/#dom-text-replacewholetext 21524 // http://dom.spec.whatwg.org/#dom-text-replacewholetext
21198 @deprecated // deprecated 21525 @deprecated // deprecated
21199 Text replaceWholeText(String content) native; 21526 Text replaceWholeText(String content) native;
21200 21527
21201 @DomName('Text.splitText') 21528 @DomName('Text.splitText')
21202 @DocsEditable 21529 @DocsEditable
21203 Text splitText(int offset) native; 21530 Text splitText(int offset) native;
21204 21531
21205 } 21532 }
21206 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21533 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21207 // for details. All rights reserved. Use of this source code is governed by a 21534 // for details. All rights reserved. Use of this source code is governed by a
21208 // BSD-style license that can be found in the LICENSE file. 21535 // BSD-style license that can be found in the LICENSE file.
21209 21536
21210 21537
21211 @DocsEditable 21538 @DocsEditable
21212 @DomName('HTMLTextAreaElement') 21539 @DomName('HTMLTextAreaElement')
21213 class TextAreaElement extends _HTMLElement native "HTMLTextAreaElement" { 21540 class TextAreaElement extends _HTMLElement native "HTMLTextAreaElement" {
21541 // To suppress missing implicit constructor warnings.
21542 factory TextAreaElement._() { throw new UnsupportedError("Not supported"); }
21214 21543
21215 @DomName('HTMLTextAreaElement.HTMLTextAreaElement') 21544 @DomName('HTMLTextAreaElement.HTMLTextAreaElement')
21216 @DocsEditable 21545 @DocsEditable
21217 factory TextAreaElement() => document.$dom_createElement("textarea"); 21546 factory TextAreaElement() => document.$dom_createElement("textarea");
21218 21547
21219 @DomName('HTMLTextAreaElement.autofocus') 21548 @DomName('HTMLTextAreaElement.autofocus')
21220 @DocsEditable 21549 @DocsEditable
21221 bool autofocus; 21550 bool autofocus;
21222 21551
21223 @DomName('HTMLTextAreaElement.cols') 21552 @DomName('HTMLTextAreaElement.cols')
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
21347 class TextEvent extends UIEvent native "TextEvent" { 21676 class TextEvent extends UIEvent native "TextEvent" {
21348 factory TextEvent(String type, 21677 factory TextEvent(String type,
21349 {bool canBubble: false, bool cancelable: false, Window view, String data}) { 21678 {bool canBubble: false, bool cancelable: false, Window view, String data}) {
21350 if (view == null) { 21679 if (view == null) {
21351 view = window; 21680 view = window;
21352 } 21681 }
21353 var e = document.$dom_createEvent("TextEvent"); 21682 var e = document.$dom_createEvent("TextEvent");
21354 e.$dom_initTextEvent(type, canBubble, cancelable, view, data); 21683 e.$dom_initTextEvent(type, canBubble, cancelable, view, data);
21355 return e; 21684 return e;
21356 } 21685 }
21686 // To suppress missing implicit constructor warnings.
21687 factory TextEvent._() { throw new UnsupportedError("Not supported"); }
21357 21688
21358 @DomName('TextEvent.data') 21689 @DomName('TextEvent.data')
21359 @DocsEditable 21690 @DocsEditable
21360 final String data; 21691 final String data;
21361 21692
21362 @JSName('initTextEvent') 21693 @JSName('initTextEvent')
21363 @DomName('TextEvent.initTextEvent') 21694 @DomName('TextEvent.initTextEvent')
21364 @DocsEditable 21695 @DocsEditable
21365 void $dom_initTextEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Window viewArg, String dataArg) native; 21696 void $dom_initTextEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Window viewArg, String dataArg) native;
21366 21697
21367 } 21698 }
21368 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21699 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21369 // for details. All rights reserved. Use of this source code is governed by a 21700 // for details. All rights reserved. Use of this source code is governed by a
21370 // BSD-style license that can be found in the LICENSE file. 21701 // BSD-style license that can be found in the LICENSE file.
21371 21702
21372 21703
21373 @DocsEditable 21704 @DocsEditable
21374 @DomName('TextMetrics') 21705 @DomName('TextMetrics')
21375 class TextMetrics native "TextMetrics" { 21706 class TextMetrics extends Interceptor native "TextMetrics" {
21376 21707
21377 @DomName('TextMetrics.width') 21708 @DomName('TextMetrics.width')
21378 @DocsEditable 21709 @DocsEditable
21379 final num width; 21710 final num width;
21380 } 21711 }
21381 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21712 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21382 // for details. All rights reserved. Use of this source code is governed by a 21713 // for details. All rights reserved. Use of this source code is governed by a
21383 // BSD-style license that can be found in the LICENSE file. 21714 // BSD-style license that can be found in the LICENSE file.
21384 21715
21385 21716
21386 @DocsEditable 21717 @DocsEditable
21387 @DomName('TextTrack') 21718 @DomName('TextTrack')
21388 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element .html#texttrack 21719 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element .html#texttrack
21389 @Experimental 21720 @Experimental
21390 class TextTrack extends EventTarget native "TextTrack" { 21721 class TextTrack extends EventTarget native "TextTrack" {
21722 // To suppress missing implicit constructor warnings.
21723 factory TextTrack._() { throw new UnsupportedError("Not supported"); }
21391 21724
21392 @DomName('TextTrack.cuechangeEvent') 21725 @DomName('TextTrack.cuechangeEvent')
21393 @DocsEditable 21726 @DocsEditable
21394 static const EventStreamProvider<Event> cueChangeEvent = const EventStreamProv ider<Event>('cuechange'); 21727 static const EventStreamProvider<Event> cueChangeEvent = const EventStreamProv ider<Event>('cuechange');
21395 21728
21396 @DomName('TextTrack.activeCues') 21729 @DomName('TextTrack.activeCues')
21397 @DocsEditable 21730 @DocsEditable
21398 final TextTrackCueList activeCues; 21731 final TextTrackCueList activeCues;
21399 21732
21400 @DomName('TextTrack.cues') 21733 @DomName('TextTrack.cues')
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
21446 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21779 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21447 // for details. All rights reserved. Use of this source code is governed by a 21780 // for details. All rights reserved. Use of this source code is governed by a
21448 // BSD-style license that can be found in the LICENSE file. 21781 // BSD-style license that can be found in the LICENSE file.
21449 21782
21450 21783
21451 @DocsEditable 21784 @DocsEditable
21452 @DomName('TextTrackCue') 21785 @DomName('TextTrackCue')
21453 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element .html#texttrackcue 21786 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element .html#texttrackcue
21454 @Experimental 21787 @Experimental
21455 class TextTrackCue extends EventTarget native "TextTrackCue" { 21788 class TextTrackCue extends EventTarget native "TextTrackCue" {
21789 // To suppress missing implicit constructor warnings.
21790 factory TextTrackCue._() { throw new UnsupportedError("Not supported"); }
21456 21791
21457 @DomName('TextTrackCue.enterEvent') 21792 @DomName('TextTrackCue.enterEvent')
21458 @DocsEditable 21793 @DocsEditable
21459 static const EventStreamProvider<Event> enterEvent = const EventStreamProvider <Event>('enter'); 21794 static const EventStreamProvider<Event> enterEvent = const EventStreamProvider <Event>('enter');
21460 21795
21461 @DomName('TextTrackCue.exitEvent') 21796 @DomName('TextTrackCue.exitEvent')
21462 @DocsEditable 21797 @DocsEditable
21463 static const EventStreamProvider<Event> exitEvent = const EventStreamProvider< Event>('exit'); 21798 static const EventStreamProvider<Event> exitEvent = const EventStreamProvider< Event>('exit');
21464 21799
21465 @DomName('TextTrackCue.TextTrackCue') 21800 @DomName('TextTrackCue.TextTrackCue')
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
21622 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21957 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21623 // for details. All rights reserved. Use of this source code is governed by a 21958 // for details. All rights reserved. Use of this source code is governed by a
21624 // BSD-style license that can be found in the LICENSE file. 21959 // BSD-style license that can be found in the LICENSE file.
21625 21960
21626 21961
21627 @DocsEditable 21962 @DocsEditable
21628 @DomName('TextTrackList') 21963 @DomName('TextTrackList')
21629 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element .html#texttracklist 21964 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element .html#texttracklist
21630 @Experimental 21965 @Experimental
21631 class TextTrackList extends EventTarget with ListMixin<TextTrack>, ImmutableList Mixin<TextTrack> implements JavaScriptIndexingBehavior, List<TextTrack> native " TextTrackList" { 21966 class TextTrackList extends EventTarget with ListMixin<TextTrack>, ImmutableList Mixin<TextTrack> implements JavaScriptIndexingBehavior, List<TextTrack> native " TextTrackList" {
21967 // To suppress missing implicit constructor warnings.
21968 factory TextTrackList._() { throw new UnsupportedError("Not supported"); }
21632 21969
21633 @DomName('TextTrackList.addtrackEvent') 21970 @DomName('TextTrackList.addtrackEvent')
21634 @DocsEditable 21971 @DocsEditable
21635 static const EventStreamProvider<TrackEvent> addTrackEvent = const EventStream Provider<TrackEvent>('addtrack'); 21972 static const EventStreamProvider<TrackEvent> addTrackEvent = const EventStream Provider<TrackEvent>('addtrack');
21636 21973
21637 @DomName('TextTrackList.length') 21974 @DomName('TextTrackList.length')
21638 @DocsEditable 21975 @DocsEditable
21639 int get length => JS("int", "#.length", this); 21976 int get length => JS("int", "#.length", this);
21640 21977
21641 TextTrack operator[](int index) { 21978 TextTrack operator[](int index) {
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
21705 Stream<TrackEvent> get onAddTrack => addTrackEvent.forTarget(this); 22042 Stream<TrackEvent> get onAddTrack => addTrackEvent.forTarget(this);
21706 } 22043 }
21707 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22044 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21708 // for details. All rights reserved. Use of this source code is governed by a 22045 // for details. All rights reserved. Use of this source code is governed by a
21709 // BSD-style license that can be found in the LICENSE file. 22046 // BSD-style license that can be found in the LICENSE file.
21710 22047
21711 22048
21712 @DocsEditable 22049 @DocsEditable
21713 @DomName('TimeRanges') 22050 @DomName('TimeRanges')
21714 @Unstable 22051 @Unstable
21715 class TimeRanges native "TimeRanges" { 22052 class TimeRanges extends Interceptor native "TimeRanges" {
21716 22053
21717 @DomName('TimeRanges.length') 22054 @DomName('TimeRanges.length')
21718 @DocsEditable 22055 @DocsEditable
21719 final int length; 22056 final int length;
21720 22057
21721 @DomName('TimeRanges.end') 22058 @DomName('TimeRanges.end')
21722 @DocsEditable 22059 @DocsEditable
21723 num end(int index) native; 22060 num end(int index) native;
21724 22061
21725 @DomName('TimeRanges.start') 22062 @DomName('TimeRanges.start')
(...skipping 10 matching lines...) Expand all
21736 @DomName('TimeoutHandler') 22073 @DomName('TimeoutHandler')
21737 typedef void TimeoutHandler(); 22074 typedef void TimeoutHandler();
21738 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22075 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21739 // for details. All rights reserved. Use of this source code is governed by a 22076 // for details. All rights reserved. Use of this source code is governed by a
21740 // BSD-style license that can be found in the LICENSE file. 22077 // BSD-style license that can be found in the LICENSE file.
21741 22078
21742 22079
21743 @DocsEditable 22080 @DocsEditable
21744 @DomName('HTMLTitleElement') 22081 @DomName('HTMLTitleElement')
21745 class TitleElement extends _HTMLElement native "HTMLTitleElement" { 22082 class TitleElement extends _HTMLElement native "HTMLTitleElement" {
22083 // To suppress missing implicit constructor warnings.
22084 factory TitleElement._() { throw new UnsupportedError("Not supported"); }
21746 22085
21747 @DomName('HTMLTitleElement.HTMLTitleElement') 22086 @DomName('HTMLTitleElement.HTMLTitleElement')
21748 @DocsEditable 22087 @DocsEditable
21749 factory TitleElement() => document.$dom_createElement("title"); 22088 factory TitleElement() => document.$dom_createElement("title");
21750 } 22089 }
21751 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22090 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21752 // for details. All rights reserved. Use of this source code is governed by a 22091 // for details. All rights reserved. Use of this source code is governed by a
21753 // BSD-style license that can be found in the LICENSE file. 22092 // BSD-style license that can be found in the LICENSE file.
21754 22093
21755 22094
21756 @DocsEditable 22095 @DocsEditable
21757 @DomName('Touch') 22096 @DomName('Touch')
21758 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features 22097 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features
21759 @Experimental 22098 @Experimental
21760 class Touch native "Touch" { 22099 class Touch extends Interceptor native "Touch" {
21761 22100
21762 @JSName('clientX') 22101 @JSName('clientX')
21763 @DomName('Touch.clientX') 22102 @DomName('Touch.clientX')
21764 @DocsEditable 22103 @DocsEditable
21765 final int $dom_clientX; 22104 final int $dom_clientX;
21766 22105
21767 @JSName('clientY') 22106 @JSName('clientY')
21768 @DomName('Touch.clientY') 22107 @DomName('Touch.clientY')
21769 @DocsEditable 22108 @DocsEditable
21770 final int $dom_clientY; 22109 final int $dom_clientY;
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
21863 int clientY: 0, bool ctrlKey: false, bool altKey: false, 22202 int clientY: 0, bool ctrlKey: false, bool altKey: false,
21864 bool shiftKey: false, bool metaKey: false}) { 22203 bool shiftKey: false, bool metaKey: false}) {
21865 if (view == null) { 22204 if (view == null) {
21866 view = window; 22205 view = window;
21867 } 22206 }
21868 var e = document.$dom_createEvent("TouchEvent"); 22207 var e = document.$dom_createEvent("TouchEvent");
21869 e.$dom_initTouchEvent(touches, targetTouches, changedTouches, type, view, 22208 e.$dom_initTouchEvent(touches, targetTouches, changedTouches, type, view,
21870 screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey); 22209 screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey);
21871 return e; 22210 return e;
21872 } 22211 }
22212 // To suppress missing implicit constructor warnings.
22213 factory TouchEvent._() { throw new UnsupportedError("Not supported"); }
21873 22214
21874 @DomName('TouchEvent.altKey') 22215 @DomName('TouchEvent.altKey')
21875 @DocsEditable 22216 @DocsEditable
21876 final bool altKey; 22217 final bool altKey;
21877 22218
21878 @DomName('TouchEvent.changedTouches') 22219 @DomName('TouchEvent.changedTouches')
21879 @DocsEditable 22220 @DocsEditable
21880 final TouchList changedTouches; 22221 final TouchList changedTouches;
21881 22222
21882 @DomName('TouchEvent.ctrlKey') 22223 @DomName('TouchEvent.ctrlKey')
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
21996 22337
21997 22338
21998 @DocsEditable 22339 @DocsEditable
21999 @DomName('HTMLTrackElement') 22340 @DomName('HTMLTrackElement')
22000 @SupportedBrowser(SupportedBrowser.CHROME) 22341 @SupportedBrowser(SupportedBrowser.CHROME)
22001 @SupportedBrowser(SupportedBrowser.IE, '10') 22342 @SupportedBrowser(SupportedBrowser.IE, '10')
22002 @SupportedBrowser(SupportedBrowser.SAFARI) 22343 @SupportedBrowser(SupportedBrowser.SAFARI)
22003 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element .html#the-track-element 22344 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element .html#the-track-element
22004 @Experimental 22345 @Experimental
22005 class TrackElement extends _HTMLElement native "HTMLTrackElement" { 22346 class TrackElement extends _HTMLElement native "HTMLTrackElement" {
22347 // To suppress missing implicit constructor warnings.
22348 factory TrackElement._() { throw new UnsupportedError("Not supported"); }
22006 22349
22007 @DomName('HTMLTrackElement.HTMLTrackElement') 22350 @DomName('HTMLTrackElement.HTMLTrackElement')
22008 @DocsEditable 22351 @DocsEditable
22009 factory TrackElement() => document.$dom_createElement("track"); 22352 factory TrackElement() => document.$dom_createElement("track");
22010 22353
22011 /// Checks if this type is supported on the current platform. 22354 /// Checks if this type is supported on the current platform.
22012 static bool get supported => Element.isTagSupported('track'); 22355 static bool get supported => Element.isTagSupported('track');
22013 22356
22014 @DomName('HTMLTrackElement.ERROR') 22357 @DomName('HTMLTrackElement.ERROR')
22015 @DocsEditable 22358 @DocsEditable
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
22058 } 22401 }
22059 // 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
22060 // 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
22061 // BSD-style license that can be found in the LICENSE file. 22404 // BSD-style license that can be found in the LICENSE file.
22062 22405
22063 22406
22064 @DocsEditable 22407 @DocsEditable
22065 @DomName('TrackEvent') 22408 @DomName('TrackEvent')
22066 @Unstable 22409 @Unstable
22067 class TrackEvent extends Event native "TrackEvent" { 22410 class TrackEvent extends Event native "TrackEvent" {
22411 // To suppress missing implicit constructor warnings.
22412 factory TrackEvent._() { throw new UnsupportedError("Not supported"); }
22068 22413
22069 @DomName('TrackEvent.track') 22414 @DomName('TrackEvent.track')
22070 @DocsEditable 22415 @DocsEditable
22071 @Creates('Null') 22416 @Creates('Null')
22072 final Object track; 22417 final Object track;
22073 } 22418 }
22074 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22419 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22075 // for details. All rights reserved. Use of this source code is governed by a 22420 // for details. All rights reserved. Use of this source code is governed by a
22076 // BSD-style license that can be found in the LICENSE file. 22421 // BSD-style license that can be found in the LICENSE file.
22077 22422
22078 22423
22079 @DocsEditable 22424 @DocsEditable
22080 @DomName('TransitionEvent') 22425 @DomName('TransitionEvent')
22081 class TransitionEvent extends Event native "TransitionEvent,WebKitTransitionEven t" { 22426 class TransitionEvent extends Event native "TransitionEvent,WebKitTransitionEven t" {
22427 // To suppress missing implicit constructor warnings.
22428 factory TransitionEvent._() { throw new UnsupportedError("Not supported"); }
22082 22429
22083 @DomName('TransitionEvent.elapsedTime') 22430 @DomName('TransitionEvent.elapsedTime')
22084 @DocsEditable 22431 @DocsEditable
22085 final num elapsedTime; 22432 final num elapsedTime;
22086 22433
22087 @DomName('TransitionEvent.propertyName') 22434 @DomName('TransitionEvent.propertyName')
22088 @DocsEditable 22435 @DocsEditable
22089 final String propertyName; 22436 final String propertyName;
22090 22437
22091 @DomName('TransitionEvent.pseudoElement') 22438 @DomName('TransitionEvent.pseudoElement')
22092 @DocsEditable 22439 @DocsEditable
22093 final String pseudoElement; 22440 final String pseudoElement;
22094 } 22441 }
22095 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 22442 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
22096 // for details. All rights reserved. Use of this source code is governed by a 22443 // for details. All rights reserved. Use of this source code is governed by a
22097 // BSD-style license that can be found in the LICENSE file. 22444 // BSD-style license that can be found in the LICENSE file.
22098 22445
22099 22446
22100 @DomName('TreeWalker') 22447 @DomName('TreeWalker')
22101 @Unstable 22448 @Unstable
22102 class TreeWalker native "TreeWalker" { 22449 class TreeWalker extends Interceptor native "TreeWalker" {
22103 factory TreeWalker(Node root, int whatToShow) { 22450 factory TreeWalker(Node root, int whatToShow) {
22104 return document.$dom_createTreeWalker(root, whatToShow, null, false); 22451 return document.$dom_createTreeWalker(root, whatToShow, null, false);
22105 } 22452 }
22106 22453
22107 @DomName('TreeWalker.currentNode') 22454 @DomName('TreeWalker.currentNode')
22108 @DocsEditable 22455 @DocsEditable
22109 Node currentNode; 22456 Node currentNode;
22110 22457
22111 @DomName('TreeWalker.expandEntityReferences') 22458 @DomName('TreeWalker.expandEntityReferences')
22112 @DocsEditable 22459 @DocsEditable
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
22173 factory UIEvent(String type, 22520 factory UIEvent(String type,
22174 {Window view, int detail: 0, bool canBubble: true, 22521 {Window view, int detail: 0, bool canBubble: true,
22175 bool cancelable: true}) { 22522 bool cancelable: true}) {
22176 if (view == null) { 22523 if (view == null) {
22177 view = window; 22524 view = window;
22178 } 22525 }
22179 final e = document.$dom_createEvent("UIEvent"); 22526 final e = document.$dom_createEvent("UIEvent");
22180 e.$dom_initUIEvent(type, canBubble, cancelable, view, detail); 22527 e.$dom_initUIEvent(type, canBubble, cancelable, view, detail);
22181 return e; 22528 return e;
22182 } 22529 }
22530 // To suppress missing implicit constructor warnings.
22531 factory UIEvent._() { throw new UnsupportedError("Not supported"); }
22183 22532
22184 @JSName('charCode') 22533 @JSName('charCode')
22185 @DomName('UIEvent.charCode') 22534 @DomName('UIEvent.charCode')
22186 @DocsEditable 22535 @DocsEditable
22187 @Unstable 22536 @Unstable
22188 final int $dom_charCode; 22537 final int $dom_charCode;
22189 22538
22190 @DomName('UIEvent.detail') 22539 @DomName('UIEvent.detail')
22191 @DocsEditable 22540 @DocsEditable
22192 final int detail; 22541 final int detail;
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
22263 Point get page => new Point($dom_pageX, $dom_pageY); 22612 Point get page => new Point($dom_pageX, $dom_pageY);
22264 } 22613 }
22265 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22614 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22266 // for details. All rights reserved. Use of this source code is governed by a 22615 // for details. All rights reserved. Use of this source code is governed by a
22267 // BSD-style license that can be found in the LICENSE file. 22616 // BSD-style license that can be found in the LICENSE file.
22268 22617
22269 22618
22270 @DocsEditable 22619 @DocsEditable
22271 @DomName('HTMLUListElement') 22620 @DomName('HTMLUListElement')
22272 class UListElement extends _HTMLElement native "HTMLUListElement" { 22621 class UListElement extends _HTMLElement native "HTMLUListElement" {
22622 // To suppress missing implicit constructor warnings.
22623 factory UListElement._() { throw new UnsupportedError("Not supported"); }
22273 22624
22274 @DomName('HTMLUListElement.HTMLUListElement') 22625 @DomName('HTMLUListElement.HTMLUListElement')
22275 @DocsEditable 22626 @DocsEditable
22276 factory UListElement() => document.$dom_createElement("ul"); 22627 factory UListElement() => document.$dom_createElement("ul");
22277 } 22628 }
22278 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22629 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22279 // for details. All rights reserved. Use of this source code is governed by a 22630 // for details. All rights reserved. Use of this source code is governed by a
22280 // BSD-style license that can be found in the LICENSE file. 22631 // BSD-style license that can be found in the LICENSE file.
22281 22632
22282 22633
22283 @DocsEditable 22634 @DocsEditable
22284 @DomName('HTMLUnknownElement') 22635 @DomName('HTMLUnknownElement')
22285 class UnknownElement extends _HTMLElement native "HTMLUnknownElement" { 22636 class UnknownElement extends _HTMLElement native "HTMLUnknownElement" {
22637 // To suppress missing implicit constructor warnings.
22638 factory UnknownElement._() { throw new UnsupportedError("Not supported"); }
22286 } 22639 }
22287 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22640 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22288 // for details. All rights reserved. Use of this source code is governed by a 22641 // for details. All rights reserved. Use of this source code is governed by a
22289 // BSD-style license that can be found in the LICENSE file. 22642 // BSD-style license that can be found in the LICENSE file.
22290 22643
22291 22644
22292 @DomName('URL') 22645 @DomName('URL')
22293 class Url native "URL" { 22646 class Url extends Interceptor native "URL" {
22294 22647
22295 static String createObjectUrl(blob_OR_source_OR_stream) => 22648 static String createObjectUrl(blob_OR_source_OR_stream) =>
22296 JS('String', 22649 JS('String',
22297 '(self.URL || self.webkitURL).createObjectURL(#)', 22650 '(self.URL || self.webkitURL).createObjectURL(#)',
22298 blob_OR_source_OR_stream); 22651 blob_OR_source_OR_stream);
22299 22652
22300 static void revokeObjectUrl(String url) => 22653 static void revokeObjectUrl(String url) =>
22301 JS('void', 22654 JS('void',
22302 '(self.URL || self.webkitURL).revokeObjectURL(#)', url); 22655 '(self.URL || self.webkitURL).revokeObjectURL(#)', url);
22303 22656
22304 } 22657 }
22305 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22658 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22306 // for details. All rights reserved. Use of this source code is governed by a 22659 // for details. All rights reserved. Use of this source code is governed by a
22307 // BSD-style license that can be found in the LICENSE file. 22660 // BSD-style license that can be found in the LICENSE file.
22308 22661
22309 22662
22310 @DocsEditable 22663 @DocsEditable
22311 @DomName('ValidityState') 22664 @DomName('ValidityState')
22312 class ValidityState native "ValidityState" { 22665 class ValidityState extends Interceptor native "ValidityState" {
22313 22666
22314 @DomName('ValidityState.badInput') 22667 @DomName('ValidityState.badInput')
22315 @DocsEditable 22668 @DocsEditable
22316 final bool badInput; 22669 final bool badInput;
22317 22670
22318 @DomName('ValidityState.customError') 22671 @DomName('ValidityState.customError')
22319 @DocsEditable 22672 @DocsEditable
22320 final bool customError; 22673 final bool customError;
22321 22674
22322 @DomName('ValidityState.patternMismatch') 22675 @DomName('ValidityState.patternMismatch')
(...skipping 28 matching lines...) Expand all
22351 @DocsEditable 22704 @DocsEditable
22352 final bool valueMissing; 22705 final bool valueMissing;
22353 } 22706 }
22354 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22707 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22355 // for details. All rights reserved. Use of this source code is governed by a 22708 // for details. All rights reserved. Use of this source code is governed by a
22356 // BSD-style license that can be found in the LICENSE file. 22709 // BSD-style license that can be found in the LICENSE file.
22357 22710
22358 22711
22359 @DomName('HTMLVideoElement') 22712 @DomName('HTMLVideoElement')
22360 class VideoElement extends MediaElement implements CanvasImageSource native "HTM LVideoElement" { 22713 class VideoElement extends MediaElement implements CanvasImageSource native "HTM LVideoElement" {
22714 // To suppress missing implicit constructor warnings.
22715 factory VideoElement._() { throw new UnsupportedError("Not supported"); }
22361 22716
22362 @DomName('HTMLVideoElement.HTMLVideoElement') 22717 @DomName('HTMLVideoElement.HTMLVideoElement')
22363 @DocsEditable 22718 @DocsEditable
22364 factory VideoElement() => document.$dom_createElement("video"); 22719 factory VideoElement() => document.$dom_createElement("video");
22365 22720
22366 @DomName('HTMLVideoElement.height') 22721 @DomName('HTMLVideoElement.height')
22367 @DocsEditable 22722 @DocsEditable
22368 int height; 22723 int height;
22369 22724
22370 @DomName('HTMLVideoElement.poster') 22725 @DomName('HTMLVideoElement.poster')
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
22509 * [Introducing WebSockets](http://www.html5rocks.com/en/tutorials/websockets/ba sics/), 22864 * [Introducing WebSockets](http://www.html5rocks.com/en/tutorials/websockets/ba sics/),
22510 * an HTML5Rocks.com tutorial. 22865 * an HTML5Rocks.com tutorial.
22511 */ 22866 */
22512 @DomName('WebSocket') 22867 @DomName('WebSocket')
22513 @SupportedBrowser(SupportedBrowser.CHROME) 22868 @SupportedBrowser(SupportedBrowser.CHROME)
22514 @SupportedBrowser(SupportedBrowser.FIREFOX) 22869 @SupportedBrowser(SupportedBrowser.FIREFOX)
22515 @SupportedBrowser(SupportedBrowser.IE, '10') 22870 @SupportedBrowser(SupportedBrowser.IE, '10')
22516 @SupportedBrowser(SupportedBrowser.SAFARI) 22871 @SupportedBrowser(SupportedBrowser.SAFARI)
22517 @Unstable 22872 @Unstable
22518 class WebSocket extends EventTarget native "WebSocket" { 22873 class WebSocket extends EventTarget native "WebSocket" {
22874 // To suppress missing implicit constructor warnings.
22875 factory WebSocket._() { throw new UnsupportedError("Not supported"); }
22519 22876
22520 @DomName('WebSocket.closeEvent') 22877 @DomName('WebSocket.closeEvent')
22521 @DocsEditable 22878 @DocsEditable
22522 static const EventStreamProvider<CloseEvent> closeEvent = const EventStreamPro vider<CloseEvent>('close'); 22879 static const EventStreamProvider<CloseEvent> closeEvent = const EventStreamPro vider<CloseEvent>('close');
22523 22880
22524 @DomName('WebSocket.errorEvent') 22881 @DomName('WebSocket.errorEvent')
22525 @DocsEditable 22882 @DocsEditable
22526 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error'); 22883 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error');
22527 22884
22528 @DomName('WebSocket.messageEvent') 22885 @DomName('WebSocket.messageEvent')
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
22709 metaKey, button, relatedTarget); 23066 metaKey, button, relatedTarget);
22710 event.$dom_initWebKitWheelEvent(deltaX, 23067 event.$dom_initWebKitWheelEvent(deltaX,
22711 deltaY ~/ 120, // Chrome does an auto-convert to pixels. 23068 deltaY ~/ 120, // Chrome does an auto-convert to pixels.
22712 view, screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, 23069 view, screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey,
22713 metaKey); 23070 metaKey);
22714 } 23071 }
22715 23072
22716 return event; 23073 return event;
22717 } 23074 }
22718 23075
23076 // To suppress missing implicit constructor warnings.
23077 factory WheelEvent._() { throw new UnsupportedError("Not supported"); }
22719 23078
22720 @DomName('WheelEvent.DOM_DELTA_LINE') 23079 @DomName('WheelEvent.DOM_DELTA_LINE')
22721 @DocsEditable 23080 @DocsEditable
22722 static const int DOM_DELTA_LINE = 0x01; 23081 static const int DOM_DELTA_LINE = 0x01;
22723 23082
22724 @DomName('WheelEvent.DOM_DELTA_PAGE') 23083 @DomName('WheelEvent.DOM_DELTA_PAGE')
22725 @DocsEditable 23084 @DocsEditable
22726 static const int DOM_DELTA_PAGE = 0x02; 23085 static const int DOM_DELTA_PAGE = 0x02;
22727 23086
22728 @DomName('WheelEvent.DOM_DELTA_PIXEL') 23087 @DomName('WheelEvent.DOM_DELTA_PIXEL')
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
22916 * port may be retrieved by any isolate (or JavaScript script) 23275 * port may be retrieved by any isolate (or JavaScript script)
22917 * running in this window. 23276 * running in this window.
22918 */ 23277 */
22919 void registerPort(String name, var port) { 23278 void registerPort(String name, var port) {
22920 var serialized = _serialize(port); 23279 var serialized = _serialize(port);
22921 document.documentElement.attributes['dart-port:$name'] = 23280 document.documentElement.attributes['dart-port:$name'] =
22922 json.stringify(serialized); 23281 json.stringify(serialized);
22923 } 23282 }
22924 23283
22925 /** 23284 /**
22926 * Returns a Future that completes just before the window is about to 23285 * Returns a Future that completes just before the window is about to
22927 * repaint so the user can draw an animation frame. 23286 * repaint so the user can draw an animation frame.
22928 * 23287 *
22929 * If you need to later cancel this animation, use [requestAnimationFrame] 23288 * If you need to later cancel this animation, use [requestAnimationFrame]
22930 * instead. 23289 * instead.
22931 * 23290 *
22932 * The [Future] completes to a timestamp that represents a floating 23291 * The [Future] completes to a timestamp that represents a floating
22933 * point value of the number of milliseconds that have elapsed since the page 23292 * point value of the number of milliseconds that have elapsed since the page
22934 * started to load (which is also the timestamp at this call to 23293 * started to load (which is also the timestamp at this call to
22935 * animationFrame). 23294 * animationFrame).
22936 * 23295 *
22937 * Note: The code that runs when the future completes should call 23296 * Note: The code that runs when the future completes should call
22938 * [animationFrame] again for the animation to continue. 23297 * [animationFrame] again for the animation to continue.
22939 */ 23298 */
22940 Future<num> get animationFrame { 23299 Future<num> get animationFrame {
22941 var completer = new Completer<num>(); 23300 var completer = new Completer<num>();
22942 requestAnimationFrame((time) { 23301 requestAnimationFrame((time) {
22943 completer.complete(time); 23302 completer.complete(time);
22944 }); 23303 });
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
23125 var result = _convertPointFromPageToNode(node, 23484 var result = _convertPointFromPageToNode(node,
23126 new _DomPoint(point.x, point.y)); 23485 new _DomPoint(point.x, point.y));
23127 return new Point(result.x, result.y); 23486 return new Point(result.x, result.y);
23128 } 23487 }
23129 23488
23130 /** 23489 /**
23131 * Checks whether [convertPointFromNodeToPage] and 23490 * Checks whether [convertPointFromNodeToPage] and
23132 * [convertPointFromPageToNode] are supported on the current platform. 23491 * [convertPointFromPageToNode] are supported on the current platform.
23133 */ 23492 */
23134 static bool get supportsPointConversions => _DomPoint.supported; 23493 static bool get supportsPointConversions => _DomPoint.supported;
23494 // To suppress missing implicit constructor warnings.
23495 factory Window._() { throw new UnsupportedError("Not supported"); }
23135 23496
23136 @DomName('Window.DOMContentLoadedEvent') 23497 @DomName('Window.DOMContentLoadedEvent')
23137 @DocsEditable 23498 @DocsEditable
23138 static const EventStreamProvider<Event> contentLoadedEvent = const EventStream Provider<Event>('DOMContentLoaded'); 23499 static const EventStreamProvider<Event> contentLoadedEvent = const EventStream Provider<Event>('DOMContentLoaded');
23139 23500
23140 @DomName('Window.devicemotionEvent') 23501 @DomName('Window.devicemotionEvent')
23141 @DocsEditable 23502 @DocsEditable
23142 // http://dev.w3.org/geo/api/spec-source-orientation.html#devicemotion 23503 // http://dev.w3.org/geo/api/spec-source-orientation.html#devicemotion
23143 @Experimental 23504 @Experimental
23144 static const EventStreamProvider<DeviceMotionEvent> deviceMotionEvent = const EventStreamProvider<DeviceMotionEvent>('devicemotion'); 23505 static const EventStreamProvider<DeviceMotionEvent> deviceMotionEvent = const EventStreamProvider<DeviceMotionEvent>('devicemotion');
(...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after
23992 24353
23993 @DocsEditable 24354 @DocsEditable
23994 @DomName('Worker') 24355 @DomName('Worker')
23995 @SupportedBrowser(SupportedBrowser.CHROME) 24356 @SupportedBrowser(SupportedBrowser.CHROME)
23996 @SupportedBrowser(SupportedBrowser.FIREFOX) 24357 @SupportedBrowser(SupportedBrowser.FIREFOX)
23997 @SupportedBrowser(SupportedBrowser.IE, '10') 24358 @SupportedBrowser(SupportedBrowser.IE, '10')
23998 @SupportedBrowser(SupportedBrowser.SAFARI) 24359 @SupportedBrowser(SupportedBrowser.SAFARI)
23999 // http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html#work er 24360 // http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html#work er
24000 @Experimental // stable 24361 @Experimental // stable
24001 class Worker extends AbstractWorker native "Worker" { 24362 class Worker extends AbstractWorker native "Worker" {
24363 // To suppress missing implicit constructor warnings.
24364 factory Worker._() { throw new UnsupportedError("Not supported"); }
24002 24365
24003 @DomName('Worker.messageEvent') 24366 @DomName('Worker.messageEvent')
24004 @DocsEditable 24367 @DocsEditable
24005 static const EventStreamProvider<MessageEvent> messageEvent = const EventStrea mProvider<MessageEvent>('message'); 24368 static const EventStreamProvider<MessageEvent> messageEvent = const EventStrea mProvider<MessageEvent>('message');
24006 24369
24007 @DomName('Worker.Worker') 24370 @DomName('Worker.Worker')
24008 @DocsEditable 24371 @DocsEditable
24009 factory Worker(String scriptUrl) { 24372 factory Worker(String scriptUrl) {
24010 return Worker._create_1(scriptUrl); 24373 return Worker._create_1(scriptUrl);
24011 } 24374 }
(...skipping 16 matching lines...) Expand all
24028 } 24391 }
24029 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 24392 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24030 // for details. All rights reserved. Use of this source code is governed by a 24393 // for details. All rights reserved. Use of this source code is governed by a
24031 // BSD-style license that can be found in the LICENSE file. 24394 // BSD-style license that can be found in the LICENSE file.
24032 24395
24033 24396
24034 @DocsEditable 24397 @DocsEditable
24035 @DomName('XPathEvaluator') 24398 @DomName('XPathEvaluator')
24036 // http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathEvaluator 24399 // http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathEvaluator
24037 @deprecated // experimental 24400 @deprecated // experimental
24038 class XPathEvaluator native "XPathEvaluator" { 24401 class XPathEvaluator extends Interceptor native "XPathEvaluator" {
24039 24402
24040 @DomName('XPathEvaluator.XPathEvaluator') 24403 @DomName('XPathEvaluator.XPathEvaluator')
24041 @DocsEditable 24404 @DocsEditable
24042 factory XPathEvaluator() { 24405 factory XPathEvaluator() {
24043 return XPathEvaluator._create_1(); 24406 return XPathEvaluator._create_1();
24044 } 24407 }
24045 static XPathEvaluator _create_1() => JS('XPathEvaluator', 'new XPathEvaluator( )'); 24408 static XPathEvaluator _create_1() => JS('XPathEvaluator', 'new XPathEvaluator( )');
24046 24409
24047 @DomName('XPathEvaluator.createExpression') 24410 @DomName('XPathEvaluator.createExpression')
24048 @DocsEditable 24411 @DocsEditable
24049 XPathExpression createExpression(String expression, XPathNSResolver resolver) native; 24412 XPathExpression createExpression(String expression, XPathNSResolver resolver) native;
24050 24413
24051 @DomName('XPathEvaluator.createNSResolver') 24414 @DomName('XPathEvaluator.createNSResolver')
24052 @DocsEditable 24415 @DocsEditable
24053 XPathNSResolver createNSResolver(Node nodeResolver) native; 24416 XPathNSResolver createNSResolver(Node nodeResolver) native;
24054 24417
24055 @DomName('XPathEvaluator.evaluate') 24418 @DomName('XPathEvaluator.evaluate')
24056 @DocsEditable 24419 @DocsEditable
24057 XPathResult evaluate(String expression, Node contextNode, XPathNSResolver reso lver, int type, XPathResult inResult) native; 24420 XPathResult evaluate(String expression, Node contextNode, XPathNSResolver reso lver, int type, XPathResult inResult) native;
24058 } 24421 }
24059 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 24422 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24060 // for details. All rights reserved. Use of this source code is governed by a 24423 // for details. All rights reserved. Use of this source code is governed by a
24061 // BSD-style license that can be found in the LICENSE file. 24424 // BSD-style license that can be found in the LICENSE file.
24062 24425
24063 24426
24064 @DocsEditable 24427 @DocsEditable
24065 @DomName('XPathException') 24428 @DomName('XPathException')
24066 // http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathException 24429 // http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathException
24067 @deprecated // experimental 24430 @deprecated // experimental
24068 class XPathException native "XPathException" { 24431 class XPathException extends Interceptor native "XPathException" {
24069 24432
24070 @DomName('XPathException.INVALID_EXPRESSION_ERR') 24433 @DomName('XPathException.INVALID_EXPRESSION_ERR')
24071 @DocsEditable 24434 @DocsEditable
24072 static const int INVALID_EXPRESSION_ERR = 51; 24435 static const int INVALID_EXPRESSION_ERR = 51;
24073 24436
24074 @DomName('XPathException.TYPE_ERR') 24437 @DomName('XPathException.TYPE_ERR')
24075 @DocsEditable 24438 @DocsEditable
24076 static const int TYPE_ERR = 52; 24439 static const int TYPE_ERR = 52;
24077 24440
24078 @DomName('XPathException.code') 24441 @DomName('XPathException.code')
(...skipping 16 matching lines...) Expand all
24095 } 24458 }
24096 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 24459 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24097 // for details. All rights reserved. Use of this source code is governed by a 24460 // for details. All rights reserved. Use of this source code is governed by a
24098 // BSD-style license that can be found in the LICENSE file. 24461 // BSD-style license that can be found in the LICENSE file.
24099 24462
24100 24463
24101 @DocsEditable 24464 @DocsEditable
24102 @DomName('XPathExpression') 24465 @DomName('XPathExpression')
24103 // http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathExpression 24466 // http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathExpression
24104 @deprecated // experimental 24467 @deprecated // experimental
24105 class XPathExpression native "XPathExpression" { 24468 class XPathExpression extends Interceptor native "XPathExpression" {
24106 24469
24107 @DomName('XPathExpression.evaluate') 24470 @DomName('XPathExpression.evaluate')
24108 @DocsEditable 24471 @DocsEditable
24109 XPathResult evaluate(Node contextNode, int type, XPathResult inResult) native; 24472 XPathResult evaluate(Node contextNode, int type, XPathResult inResult) native;
24110 } 24473 }
24111 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 24474 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24112 // for details. All rights reserved. Use of this source code is governed by a 24475 // for details. All rights reserved. Use of this source code is governed by a
24113 // BSD-style license that can be found in the LICENSE file. 24476 // BSD-style license that can be found in the LICENSE file.
24114 24477
24115 24478
24116 @DocsEditable 24479 @DocsEditable
24117 @DomName('XPathNSResolver') 24480 @DomName('XPathNSResolver')
24118 // http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathNSResolver 24481 // http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathNSResolver
24119 @deprecated // experimental 24482 @deprecated // experimental
24120 class XPathNSResolver native "XPathNSResolver" { 24483 class XPathNSResolver extends Interceptor native "XPathNSResolver" {
24121 24484
24122 @JSName('lookupNamespaceURI') 24485 @JSName('lookupNamespaceURI')
24123 @DomName('XPathNSResolver.lookupNamespaceURI') 24486 @DomName('XPathNSResolver.lookupNamespaceURI')
24124 @DocsEditable 24487 @DocsEditable
24125 String lookupNamespaceUri(String prefix) native; 24488 String lookupNamespaceUri(String prefix) native;
24126 } 24489 }
24127 // 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
24128 // 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
24129 // BSD-style license that can be found in the LICENSE file. 24492 // BSD-style license that can be found in the LICENSE file.
24130 24493
24131 24494
24132 @DocsEditable 24495 @DocsEditable
24133 @DomName('XPathResult') 24496 @DomName('XPathResult')
24134 // http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathResult 24497 // http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathResult
24135 @deprecated // experimental 24498 @deprecated // experimental
24136 class XPathResult native "XPathResult" { 24499 class XPathResult extends Interceptor native "XPathResult" {
24137 24500
24138 @DomName('XPathResult.ANY_TYPE') 24501 @DomName('XPathResult.ANY_TYPE')
24139 @DocsEditable 24502 @DocsEditable
24140 static const int ANY_TYPE = 0; 24503 static const int ANY_TYPE = 0;
24141 24504
24142 @DomName('XPathResult.ANY_UNORDERED_NODE_TYPE') 24505 @DomName('XPathResult.ANY_UNORDERED_NODE_TYPE')
24143 @DocsEditable 24506 @DocsEditable
24144 static const int ANY_UNORDERED_NODE_TYPE = 8; 24507 static const int ANY_UNORDERED_NODE_TYPE = 8;
24145 24508
24146 @DomName('XPathResult.BOOLEAN_TYPE') 24509 @DomName('XPathResult.BOOLEAN_TYPE')
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
24213 } 24576 }
24214 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 24577 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24215 // for details. All rights reserved. Use of this source code is governed by a 24578 // for details. All rights reserved. Use of this source code is governed by a
24216 // BSD-style license that can be found in the LICENSE file. 24579 // BSD-style license that can be found in the LICENSE file.
24217 24580
24218 24581
24219 @DocsEditable 24582 @DocsEditable
24220 @DomName('XMLSerializer') 24583 @DomName('XMLSerializer')
24221 // http://domparsing.spec.whatwg.org/#the-xmlserializer-interface 24584 // http://domparsing.spec.whatwg.org/#the-xmlserializer-interface
24222 @deprecated // stable 24585 @deprecated // stable
24223 class XmlSerializer native "XMLSerializer" { 24586 class XmlSerializer extends Interceptor native "XMLSerializer" {
24224 24587
24225 @DomName('XMLSerializer.XMLSerializer') 24588 @DomName('XMLSerializer.XMLSerializer')
24226 @DocsEditable 24589 @DocsEditable
24227 factory XmlSerializer() { 24590 factory XmlSerializer() {
24228 return XmlSerializer._create_1(); 24591 return XmlSerializer._create_1();
24229 } 24592 }
24230 static XmlSerializer _create_1() => JS('XmlSerializer', 'new XMLSerializer()') ; 24593 static XmlSerializer _create_1() => JS('XmlSerializer', 'new XMLSerializer()') ;
24231 24594
24232 @DomName('XMLSerializer.serializeToString') 24595 @DomName('XMLSerializer.serializeToString')
24233 @DocsEditable 24596 @DocsEditable
24234 String serializeToString(Node node) native; 24597 String serializeToString(Node node) native;
24235 } 24598 }
24236 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 24599 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24237 // for details. All rights reserved. Use of this source code is governed by a 24600 // for details. All rights reserved. Use of this source code is governed by a
24238 // BSD-style license that can be found in the LICENSE file. 24601 // BSD-style license that can be found in the LICENSE file.
24239 24602
24240 24603
24241 @DocsEditable 24604 @DocsEditable
24242 @DomName('XSLTProcessor') 24605 @DomName('XSLTProcessor')
24243 @SupportedBrowser(SupportedBrowser.CHROME) 24606 @SupportedBrowser(SupportedBrowser.CHROME)
24244 @SupportedBrowser(SupportedBrowser.FIREFOX) 24607 @SupportedBrowser(SupportedBrowser.FIREFOX)
24245 @SupportedBrowser(SupportedBrowser.SAFARI) 24608 @SupportedBrowser(SupportedBrowser.SAFARI)
24246 @deprecated // nonstandard 24609 @deprecated // nonstandard
24247 class XsltProcessor native "XSLTProcessor" { 24610 class XsltProcessor extends Interceptor native "XSLTProcessor" {
24248 24611
24249 @DomName('XSLTProcessor.XSLTProcessor') 24612 @DomName('XSLTProcessor.XSLTProcessor')
24250 @DocsEditable 24613 @DocsEditable
24251 factory XsltProcessor() { 24614 factory XsltProcessor() {
24252 return XsltProcessor._create_1(); 24615 return XsltProcessor._create_1();
24253 } 24616 }
24254 static XsltProcessor _create_1() => JS('XsltProcessor', 'new XSLTProcessor()') ; 24617 static XsltProcessor _create_1() => JS('XsltProcessor', 'new XSLTProcessor()') ;
24255 24618
24256 /// Checks if this type is supported on the current platform. 24619 /// Checks if this type is supported on the current platform.
24257 static bool get supported => JS('bool', '!!(window.XSLTProcessor)'); 24620 static bool get supported => JS('bool', '!!(window.XSLTProcessor)');
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
24289 DocumentFragment transformToFragment(Node source, Document docVal) native; 24652 DocumentFragment transformToFragment(Node source, Document docVal) native;
24290 } 24653 }
24291 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 24654 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24292 // for details. All rights reserved. Use of this source code is governed by a 24655 // for details. All rights reserved. Use of this source code is governed by a
24293 // BSD-style license that can be found in the LICENSE file. 24656 // BSD-style license that can be found in the LICENSE file.
24294 24657
24295 24658
24296 @DocsEditable 24659 @DocsEditable
24297 @DomName('Attr') 24660 @DomName('Attr')
24298 class _Attr extends Node native "Attr" { 24661 class _Attr extends Node native "Attr" {
24662 // To suppress missing implicit constructor warnings.
24663 factory _Attr._() { throw new UnsupportedError("Not supported"); }
24299 24664
24300 @DomName('Attr.isId') 24665 @DomName('Attr.isId')
24301 @DocsEditable 24666 @DocsEditable
24302 final bool isId; 24667 final bool isId;
24303 24668
24304 @DomName('Attr.name') 24669 @DomName('Attr.name')
24305 @DocsEditable 24670 @DocsEditable
24306 final String name; 24671 final String name;
24307 24672
24308 @DomName('Attr.ownerElement') 24673 @DomName('Attr.ownerElement')
(...skipping 13 matching lines...) Expand all
24322 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 24687 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24323 // for details. All rights reserved. Use of this source code is governed by a 24688 // for details. All rights reserved. Use of this source code is governed by a
24324 // BSD-style license that can be found in the LICENSE file. 24689 // BSD-style license that can be found in the LICENSE file.
24325 24690
24326 24691
24327 @DocsEditable 24692 @DocsEditable
24328 @DomName('CSSPrimitiveValue') 24693 @DomName('CSSPrimitiveValue')
24329 // http://dev.w3.org/csswg/cssom/#the-cssstyledeclaration-interface 24694 // http://dev.w3.org/csswg/cssom/#the-cssstyledeclaration-interface
24330 @deprecated // deprecated 24695 @deprecated // deprecated
24331 abstract class _CSSPrimitiveValue extends _CSSValue native "CSSPrimitiveValue" { 24696 abstract class _CSSPrimitiveValue extends _CSSValue native "CSSPrimitiveValue" {
24697 // To suppress missing implicit constructor warnings.
24698 factory _CSSPrimitiveValue._() { throw new UnsupportedError("Not supported"); }
24332 } 24699 }
24333 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 24700 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24334 // for details. All rights reserved. Use of this source code is governed by a 24701 // for details. All rights reserved. Use of this source code is governed by a
24335 // BSD-style license that can be found in the LICENSE file. 24702 // BSD-style license that can be found in the LICENSE file.
24336 24703
24337 24704
24338 @DocsEditable 24705 @DocsEditable
24339 @DomName('CSSValue') 24706 @DomName('CSSValue')
24340 // http://dev.w3.org/csswg/cssom/ 24707 // http://dev.w3.org/csswg/cssom/
24341 @deprecated // deprecated 24708 @deprecated // deprecated
24342 abstract class _CSSValue native "CSSValue" { 24709 abstract class _CSSValue extends Interceptor native "CSSValue" {
24343 } 24710 }
24344 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 24711 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
24345 // for details. All rights reserved. Use of this source code is governed by a 24712 // for details. All rights reserved. Use of this source code is governed by a
24346 // BSD-style license that can be found in the LICENSE file. 24713 // BSD-style license that can be found in the LICENSE file.
24347 24714
24348 24715
24349 @DocsEditable 24716 @DocsEditable
24350 @DomName('ClientRect') 24717 @DomName('ClientRect')
24351 class _ClientRect implements Rect native "ClientRect" { 24718 class _ClientRect extends Interceptor implements Rect native "ClientRect" {
24352 24719
24353 // NOTE! All code below should be common with Rect. 24720 // NOTE! All code below should be common with Rect.
24354 // TODO(blois): implement with mixins when available. 24721 // TODO(blois): implement with mixins when available.
24355 24722
24356 String toString() { 24723 String toString() {
24357 return '($left, $top, $width, $height)'; 24724 return '($left, $top, $width, $height)';
24358 } 24725 }
24359 24726
24360 bool operator ==(other) { 24727 bool operator ==(other) {
24361 if (other is !Rect) return false; 24728 if (other is !Rect) return false;
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
24529 } 24896 }
24530 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 24897 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24531 // for details. All rights reserved. Use of this source code is governed by a 24898 // for details. All rights reserved. Use of this source code is governed by a
24532 // BSD-style license that can be found in the LICENSE file. 24899 // BSD-style license that can be found in the LICENSE file.
24533 24900
24534 24901
24535 @DocsEditable 24902 @DocsEditable
24536 @DomName('Counter') 24903 @DomName('Counter')
24537 // http://dev.w3.org/csswg/cssom/ 24904 // http://dev.w3.org/csswg/cssom/
24538 @deprecated // deprecated 24905 @deprecated // deprecated
24539 abstract class _Counter native "Counter" { 24906 abstract class _Counter extends Interceptor native "Counter" {
24540 } 24907 }
24541 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 24908 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24542 // for details. All rights reserved. Use of this source code is governed by a 24909 // for details. All rights reserved. Use of this source code is governed by a
24543 // BSD-style license that can be found in the LICENSE file. 24910 // BSD-style license that can be found in the LICENSE file.
24544 24911
24545 24912
24546 @DocsEditable 24913 @DocsEditable
24547 @DomName('CSSRuleList') 24914 @DomName('CSSRuleList')
24548 class _CssRuleList extends Interceptor with ListMixin<CssRule>, ImmutableListMix in<CssRule> implements JavaScriptIndexingBehavior, List<CssRule> native "CSSRule List" { 24915 class _CssRuleList extends Interceptor with ListMixin<CssRule>, ImmutableListMix in<CssRule> implements JavaScriptIndexingBehavior, List<CssRule> native "CSSRule List" {
24549 24916
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
24602 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 24969 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24603 // for details. All rights reserved. Use of this source code is governed by a 24970 // for details. All rights reserved. Use of this source code is governed by a
24604 // BSD-style license that can be found in the LICENSE file. 24971 // BSD-style license that can be found in the LICENSE file.
24605 24972
24606 24973
24607 @DocsEditable 24974 @DocsEditable
24608 @DomName('CSSValueList') 24975 @DomName('CSSValueList')
24609 // http://dev.w3.org/csswg/cssom/ 24976 // http://dev.w3.org/csswg/cssom/
24610 @deprecated // deprecated 24977 @deprecated // deprecated
24611 class _CssValueList extends _CSSValue with ListMixin<_CSSValue>, ImmutableListMi xin<_CSSValue> implements JavaScriptIndexingBehavior, List<_CSSValue> native "CS SValueList" { 24978 class _CssValueList extends _CSSValue with ListMixin<_CSSValue>, ImmutableListMi xin<_CSSValue> implements JavaScriptIndexingBehavior, List<_CSSValue> native "CS SValueList" {
24979 // To suppress missing implicit constructor warnings.
24980 factory _CssValueList._() { throw new UnsupportedError("Not supported"); }
24612 24981
24613 @DomName('CSSValueList.length') 24982 @DomName('CSSValueList.length')
24614 @DocsEditable 24983 @DocsEditable
24615 int get length => JS("int", "#.length", this); 24984 int get length => JS("int", "#.length", this);
24616 24985
24617 _CSSValue operator[](int index) { 24986 _CSSValue operator[](int index) {
24618 if (JS("bool", "# >>> 0 !== # || # >= #", index, 24987 if (JS("bool", "# >>> 0 !== # || # >= #", index,
24619 index, index, length)) 24988 index, index, length))
24620 throw new RangeError.range(index, 0, length); 24989 throw new RangeError.range(index, 0, length);
24621 return JS("_CSSValue", "#[#]", this, index); 24990 return JS("_CSSValue", "#[#]", this, index);
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
24665 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25034 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24666 // for details. All rights reserved. Use of this source code is governed by a 25035 // for details. All rights reserved. Use of this source code is governed by a
24667 // BSD-style license that can be found in the LICENSE file. 25036 // BSD-style license that can be found in the LICENSE file.
24668 25037
24669 25038
24670 @DocsEditable 25039 @DocsEditable
24671 @DomName('DOMFileSystemSync') 25040 @DomName('DOMFileSystemSync')
24672 @SupportedBrowser(SupportedBrowser.CHROME) 25041 @SupportedBrowser(SupportedBrowser.CHROME)
24673 @Experimental 25042 @Experimental
24674 // http://www.w3.org/TR/file-system-api/#the-filesystemsync-interface 25043 // http://www.w3.org/TR/file-system-api/#the-filesystemsync-interface
24675 abstract class _DOMFileSystemSync native "DOMFileSystemSync" { 25044 abstract class _DOMFileSystemSync extends Interceptor native "DOMFileSystemSync" {
24676 } 25045 }
24677 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25046 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24678 // for details. All rights reserved. Use of this source code is governed by a 25047 // for details. All rights reserved. Use of this source code is governed by a
24679 // BSD-style license that can be found in the LICENSE file. 25048 // BSD-style license that can be found in the LICENSE file.
24680 25049
24681 25050
24682 @DocsEditable 25051 @DocsEditable
24683 @DomName('DatabaseSync') 25052 @DomName('DatabaseSync')
24684 @SupportedBrowser(SupportedBrowser.CHROME) 25053 @SupportedBrowser(SupportedBrowser.CHROME)
24685 @SupportedBrowser(SupportedBrowser.SAFARI) 25054 @SupportedBrowser(SupportedBrowser.SAFARI)
24686 @Experimental 25055 @Experimental
24687 // http://www.w3.org/TR/webdatabase/#databasesync 25056 // http://www.w3.org/TR/webdatabase/#databasesync
24688 @deprecated // deprecated 25057 @deprecated // deprecated
24689 abstract class _DatabaseSync native "DatabaseSync" { 25058 abstract class _DatabaseSync extends Interceptor native "DatabaseSync" {
24690 } 25059 }
24691 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25060 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24692 // for details. All rights reserved. Use of this source code is governed by a 25061 // for details. All rights reserved. Use of this source code is governed by a
24693 // BSD-style license that can be found in the LICENSE file. 25062 // BSD-style license that can be found in the LICENSE file.
24694 25063
24695 25064
24696 @DocsEditable 25065 @DocsEditable
24697 @DomName('DedicatedWorkerContext') 25066 @DomName('DedicatedWorkerContext')
24698 // http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html 25067 // http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html
24699 @Experimental 25068 @Experimental
24700 abstract class _DedicatedWorkerContext extends _WorkerContext native "DedicatedW orkerContext" { 25069 abstract class _DedicatedWorkerContext extends _WorkerContext native "DedicatedW orkerContext" {
25070 // To suppress missing implicit constructor warnings.
25071 factory _DedicatedWorkerContext._() { throw new UnsupportedError("Not supporte d"); }
24701 } 25072 }
24702 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25073 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24703 // for details. All rights reserved. Use of this source code is governed by a 25074 // for details. All rights reserved. Use of this source code is governed by a
24704 // BSD-style license that can be found in the LICENSE file. 25075 // BSD-style license that can be found in the LICENSE file.
24705 25076
24706 25077
24707 @DocsEditable 25078 @DocsEditable
24708 @DomName('DirectoryEntrySync') 25079 @DomName('DirectoryEntrySync')
24709 // http://www.w3.org/TR/file-system-api/#the-directoryentrysync-interface 25080 // http://www.w3.org/TR/file-system-api/#the-directoryentrysync-interface
24710 @Experimental 25081 @Experimental
24711 abstract class _DirectoryEntrySync extends _EntrySync native "DirectoryEntrySync " { 25082 abstract class _DirectoryEntrySync extends _EntrySync native "DirectoryEntrySync " {
25083 // To suppress missing implicit constructor warnings.
25084 factory _DirectoryEntrySync._() { throw new UnsupportedError("Not supported"); }
24712 } 25085 }
24713 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25086 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24714 // for details. All rights reserved. Use of this source code is governed by a 25087 // for details. All rights reserved. Use of this source code is governed by a
24715 // BSD-style license that can be found in the LICENSE file. 25088 // BSD-style license that can be found in the LICENSE file.
24716 25089
24717 25090
24718 @DocsEditable 25091 @DocsEditable
24719 @DomName('DirectoryReaderSync') 25092 @DomName('DirectoryReaderSync')
24720 // http://www.w3.org/TR/file-system-api/#idl-def-DirectoryReaderSync 25093 // http://www.w3.org/TR/file-system-api/#idl-def-DirectoryReaderSync
24721 @Experimental 25094 @Experimental
24722 abstract class _DirectoryReaderSync native "DirectoryReaderSync" { 25095 abstract class _DirectoryReaderSync extends Interceptor native "DirectoryReaderS ync" {
24723 } 25096 }
24724 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25097 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24725 // for details. All rights reserved. Use of this source code is governed by a 25098 // for details. All rights reserved. Use of this source code is governed by a
24726 // BSD-style license that can be found in the LICENSE file. 25099 // BSD-style license that can be found in the LICENSE file.
24727 25100
24728 25101
24729 @DocsEditable 25102 @DocsEditable
24730 @DomName('WebKitPoint') 25103 @DomName('WebKitPoint')
24731 @SupportedBrowser(SupportedBrowser.CHROME) 25104 @SupportedBrowser(SupportedBrowser.CHROME)
24732 @SupportedBrowser(SupportedBrowser.SAFARI) 25105 @SupportedBrowser(SupportedBrowser.SAFARI)
24733 @Experimental 25106 @Experimental
24734 // http://developer.apple.com/library/safari/#documentation/DataManagement/Refer ence/DOMWindowAdditionsReference/DOMWindowAdditions/DOMWindowAdditions.html 25107 // http://developer.apple.com/library/safari/#documentation/DataManagement/Refer ence/DOMWindowAdditionsReference/DOMWindowAdditions/DOMWindowAdditions.html
24735 @Experimental // non-standard 25108 @Experimental // non-standard
24736 class _DomPoint native "WebKitPoint" { 25109 class _DomPoint extends Interceptor native "WebKitPoint" {
24737 25110
24738 @DomName('WebKitPoint.DOMPoint') 25111 @DomName('WebKitPoint.DOMPoint')
24739 @DocsEditable 25112 @DocsEditable
24740 factory _DomPoint(num x, num y) { 25113 factory _DomPoint(num x, num y) {
24741 return _DomPoint._create_1(x, y); 25114 return _DomPoint._create_1(x, y);
24742 } 25115 }
24743 static _DomPoint _create_1(x, y) => JS('_DomPoint', 'new WebKitPoint(#,#)', x, y); 25116 static _DomPoint _create_1(x, y) => JS('_DomPoint', 'new WebKitPoint(#,#)', x, y);
24744 25117
24745 /// Checks if this type is supported on the current platform. 25118 /// Checks if this type is supported on the current platform.
24746 static bool get supported => JS('bool', '!!(window.WebKitPoint)'); 25119 static bool get supported => JS('bool', '!!(window.WebKitPoint)');
24747 25120
24748 @DomName('WebKitPoint.x') 25121 @DomName('WebKitPoint.x')
24749 @DocsEditable 25122 @DocsEditable
24750 num x; 25123 num x;
24751 25124
24752 @DomName('WebKitPoint.y') 25125 @DomName('WebKitPoint.y')
24753 @DocsEditable 25126 @DocsEditable
24754 num y; 25127 num y;
24755 } 25128 }
24756 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25129 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24757 // for details. All rights reserved. Use of this source code is governed by a 25130 // for details. All rights reserved. Use of this source code is governed by a
24758 // BSD-style license that can be found in the LICENSE file. 25131 // BSD-style license that can be found in the LICENSE file.
24759 25132
24760 25133
24761 @DocsEditable 25134 @DocsEditable
24762 @DomName('Entity') 25135 @DomName('Entity')
24763 @deprecated // deprecated 25136 @deprecated // deprecated
24764 class _Entity extends Node native "Entity" { 25137 class _Entity extends Node native "Entity" {
25138 // To suppress missing implicit constructor warnings.
25139 factory _Entity._() { throw new UnsupportedError("Not supported"); }
24765 25140
24766 @DomName('Entity.notationName') 25141 @DomName('Entity.notationName')
24767 @DocsEditable 25142 @DocsEditable
24768 final String notationName; 25143 final String notationName;
24769 25144
24770 @DomName('Entity.publicId') 25145 @DomName('Entity.publicId')
24771 @DocsEditable 25146 @DocsEditable
24772 final String publicId; 25147 final String publicId;
24773 25148
24774 @DomName('Entity.systemId') 25149 @DomName('Entity.systemId')
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
24903 } 25278 }
24904 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25279 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24905 // for details. All rights reserved. Use of this source code is governed by a 25280 // for details. All rights reserved. Use of this source code is governed by a
24906 // BSD-style license that can be found in the LICENSE file. 25281 // BSD-style license that can be found in the LICENSE file.
24907 25282
24908 25283
24909 @DocsEditable 25284 @DocsEditable
24910 @DomName('EntrySync') 25285 @DomName('EntrySync')
24911 // http://www.w3.org/TR/file-system-api/#idl-def-EntrySync 25286 // http://www.w3.org/TR/file-system-api/#idl-def-EntrySync
24912 @Experimental 25287 @Experimental
24913 abstract class _EntrySync native "EntrySync" { 25288 abstract class _EntrySync extends Interceptor native "EntrySync" {
24914 } 25289 }
24915 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25290 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24916 // for details. All rights reserved. Use of this source code is governed by a 25291 // for details. All rights reserved. Use of this source code is governed by a
24917 // BSD-style license that can be found in the LICENSE file. 25292 // BSD-style license that can be found in the LICENSE file.
24918 25293
24919 25294
24920 @DocsEditable 25295 @DocsEditable
24921 @DomName('FileEntrySync') 25296 @DomName('FileEntrySync')
24922 // http://www.w3.org/TR/file-system-api/#the-fileentrysync-interface 25297 // http://www.w3.org/TR/file-system-api/#the-fileentrysync-interface
24923 @Experimental 25298 @Experimental
24924 abstract class _FileEntrySync extends _EntrySync native "FileEntrySync" { 25299 abstract class _FileEntrySync extends _EntrySync native "FileEntrySync" {
25300 // To suppress missing implicit constructor warnings.
25301 factory _FileEntrySync._() { throw new UnsupportedError("Not supported"); }
24925 } 25302 }
24926 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25303 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24927 // for details. All rights reserved. Use of this source code is governed by a 25304 // for details. All rights reserved. Use of this source code is governed by a
24928 // BSD-style license that can be found in the LICENSE file. 25305 // BSD-style license that can be found in the LICENSE file.
24929 25306
24930 25307
24931 @DocsEditable 25308 @DocsEditable
24932 @DomName('FileReaderSync') 25309 @DomName('FileReaderSync')
24933 // http://www.w3.org/TR/FileAPI/#FileReaderSync 25310 // http://www.w3.org/TR/FileAPI/#FileReaderSync
24934 @Experimental 25311 @Experimental
24935 abstract class _FileReaderSync native "FileReaderSync" { 25312 abstract class _FileReaderSync extends Interceptor native "FileReaderSync" {
24936 25313
24937 @DomName('FileReaderSync.FileReaderSync') 25314 @DomName('FileReaderSync.FileReaderSync')
24938 @DocsEditable 25315 @DocsEditable
24939 factory _FileReaderSync() { 25316 factory _FileReaderSync() {
24940 return _FileReaderSync._create_1(); 25317 return _FileReaderSync._create_1();
24941 } 25318 }
24942 static _FileReaderSync _create_1() => JS('_FileReaderSync', 'new FileReaderSyn c()'); 25319 static _FileReaderSync _create_1() => JS('_FileReaderSync', 'new FileReaderSyn c()');
24943 } 25320 }
24944 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25321 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24945 // for details. All rights reserved. Use of this source code is governed by a 25322 // for details. All rights reserved. Use of this source code is governed by a
24946 // BSD-style license that can be found in the LICENSE file. 25323 // BSD-style license that can be found in the LICENSE file.
24947 25324
24948 25325
24949 @DocsEditable 25326 @DocsEditable
24950 @DomName('FileWriterSync') 25327 @DomName('FileWriterSync')
24951 // http://www.w3.org/TR/file-writer-api/#idl-def-FileWriterSync 25328 // http://www.w3.org/TR/file-writer-api/#idl-def-FileWriterSync
24952 @Experimental 25329 @Experimental
24953 abstract class _FileWriterSync native "FileWriterSync" { 25330 abstract class _FileWriterSync extends Interceptor native "FileWriterSync" {
24954 } 25331 }
24955 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25332 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24956 // for details. All rights reserved. Use of this source code is governed by a 25333 // for details. All rights reserved. Use of this source code is governed by a
24957 // BSD-style license that can be found in the LICENSE file. 25334 // BSD-style license that can be found in the LICENSE file.
24958 25335
24959 25336
24960 @DocsEditable 25337 @DocsEditable
24961 @DomName('GamepadList') 25338 @DomName('GamepadList')
24962 // https://dvcs.w3.org/hg/gamepad/raw-file/default/gamepad.html 25339 // https://dvcs.w3.org/hg/gamepad/raw-file/default/gamepad.html
24963 @Experimental 25340 @Experimental
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
25018 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25395 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25019 // for details. All rights reserved. Use of this source code is governed by a 25396 // for details. All rights reserved. Use of this source code is governed by a
25020 // BSD-style license that can be found in the LICENSE file. 25397 // BSD-style license that can be found in the LICENSE file.
25021 25398
25022 25399
25023 @DocsEditable 25400 @DocsEditable
25024 @DomName('HTMLAppletElement') 25401 @DomName('HTMLAppletElement')
25025 // http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#the -applet-element 25402 // http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#the -applet-element
25026 @deprecated // deprecated 25403 @deprecated // deprecated
25027 abstract class _HTMLAppletElement extends _HTMLElement native "HTMLAppletElement " { 25404 abstract class _HTMLAppletElement extends _HTMLElement native "HTMLAppletElement " {
25405 // To suppress missing implicit constructor warnings.
25406 factory _HTMLAppletElement._() { throw new UnsupportedError("Not supported"); }
25028 } 25407 }
25029 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25408 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25030 // for details. All rights reserved. Use of this source code is governed by a 25409 // for details. All rights reserved. Use of this source code is governed by a
25031 // BSD-style license that can be found in the LICENSE file. 25410 // BSD-style license that can be found in the LICENSE file.
25032 25411
25033 25412
25034 @DocsEditable 25413 @DocsEditable
25035 @DomName('HTMLBaseFontElement') 25414 @DomName('HTMLBaseFontElement')
25036 // http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#bas efont 25415 // http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#bas efont
25037 @deprecated // deprecated 25416 @deprecated // deprecated
25038 abstract class _HTMLBaseFontElement extends _HTMLElement native "HTMLBaseFontEle ment" { 25417 abstract class _HTMLBaseFontElement extends _HTMLElement native "HTMLBaseFontEle ment" {
25418 // To suppress missing implicit constructor warnings.
25419 factory _HTMLBaseFontElement._() { throw new UnsupportedError("Not supported") ; }
25039 } 25420 }
25040 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25421 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25041 // for details. All rights reserved. Use of this source code is governed by a 25422 // for details. All rights reserved. Use of this source code is governed by a
25042 // BSD-style license that can be found in the LICENSE file. 25423 // BSD-style license that can be found in the LICENSE file.
25043 25424
25044 25425
25045 @DocsEditable 25426 @DocsEditable
25046 @DomName('HTMLDirectoryElement') 25427 @DomName('HTMLDirectoryElement')
25047 // http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#dir 25428 // http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#dir
25048 @deprecated // deprecated 25429 @deprecated // deprecated
25049 abstract class _HTMLDirectoryElement extends _HTMLElement native "HTMLDirectoryE lement" { 25430 abstract class _HTMLDirectoryElement extends _HTMLElement native "HTMLDirectoryE lement" {
25431 // To suppress missing implicit constructor warnings.
25432 factory _HTMLDirectoryElement._() { throw new UnsupportedError("Not supported" ); }
25050 } 25433 }
25051 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25434 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25052 // for details. All rights reserved. Use of this source code is governed by a 25435 // for details. All rights reserved. Use of this source code is governed by a
25053 // BSD-style license that can be found in the LICENSE file. 25436 // BSD-style license that can be found in the LICENSE file.
25054 25437
25055 25438
25056 @DocsEditable 25439 @DocsEditable
25057 @DomName('HTMLFontElement') 25440 @DomName('HTMLFontElement')
25058 // http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#htm lfontelement 25441 // http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#htm lfontelement
25059 @deprecated // deprecated 25442 @deprecated // deprecated
25060 abstract class _HTMLFontElement extends _HTMLElement native "HTMLFontElement" { 25443 abstract class _HTMLFontElement extends _HTMLElement native "HTMLFontElement" {
25444 // To suppress missing implicit constructor warnings.
25445 factory _HTMLFontElement._() { throw new UnsupportedError("Not supported"); }
25061 } 25446 }
25062 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25447 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25063 // for details. All rights reserved. Use of this source code is governed by a 25448 // for details. All rights reserved. Use of this source code is governed by a
25064 // BSD-style license that can be found in the LICENSE file. 25449 // BSD-style license that can be found in the LICENSE file.
25065 25450
25066 25451
25067 @DocsEditable 25452 @DocsEditable
25068 @DomName('HTMLFrameElement') 25453 @DomName('HTMLFrameElement')
25069 // http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#htm lframeelement 25454 // http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#htm lframeelement
25070 @deprecated // deprecated 25455 @deprecated // deprecated
25071 abstract class _HTMLFrameElement extends _HTMLElement native "HTMLFrameElement" { 25456 abstract class _HTMLFrameElement extends _HTMLElement native "HTMLFrameElement" {
25457 // To suppress missing implicit constructor warnings.
25458 factory _HTMLFrameElement._() { throw new UnsupportedError("Not supported"); }
25072 } 25459 }
25073 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25460 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25074 // for details. All rights reserved. Use of this source code is governed by a 25461 // for details. All rights reserved. Use of this source code is governed by a
25075 // BSD-style license that can be found in the LICENSE file. 25462 // BSD-style license that can be found in the LICENSE file.
25076 25463
25077 25464
25078 @DocsEditable 25465 @DocsEditable
25079 @DomName('HTMLFrameSetElement') 25466 @DomName('HTMLFrameSetElement')
25080 // http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#fra meset 25467 // http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#fra meset
25081 @deprecated // deprecated 25468 @deprecated // deprecated
25082 abstract class _HTMLFrameSetElement extends _HTMLElement native "HTMLFrameSetEle ment" { 25469 abstract class _HTMLFrameSetElement extends _HTMLElement native "HTMLFrameSetEle ment" {
25470 // To suppress missing implicit constructor warnings.
25471 factory _HTMLFrameSetElement._() { throw new UnsupportedError("Not supported") ; }
25083 } 25472 }
25084 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25473 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25085 // for details. All rights reserved. Use of this source code is governed by a 25474 // for details. All rights reserved. Use of this source code is governed by a
25086 // BSD-style license that can be found in the LICENSE file. 25475 // BSD-style license that can be found in the LICENSE file.
25087 25476
25088 25477
25089 @DocsEditable 25478 @DocsEditable
25090 @DomName('HTMLMarqueeElement') 25479 @DomName('HTMLMarqueeElement')
25091 // http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#the -marquee-element 25480 // http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#the -marquee-element
25092 @deprecated // deprecated 25481 @deprecated // deprecated
25093 abstract class _HTMLMarqueeElement extends _HTMLElement native "HTMLMarqueeEleme nt" { 25482 abstract class _HTMLMarqueeElement extends _HTMLElement native "HTMLMarqueeEleme nt" {
25483 // To suppress missing implicit constructor warnings.
25484 factory _HTMLMarqueeElement._() { throw new UnsupportedError("Not supported"); }
25094 } 25485 }
25095 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25486 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25096 // for details. All rights reserved. Use of this source code is governed by a 25487 // for details. All rights reserved. Use of this source code is governed by a
25097 // BSD-style license that can be found in the LICENSE file. 25488 // BSD-style license that can be found in the LICENSE file.
25098 25489
25099 25490
25100 @DocsEditable 25491 @DocsEditable
25101 @DomName('NamedNodeMap') 25492 @DomName('NamedNodeMap')
25102 // http://dom.spec.whatwg.org/#namednodemap 25493 // http://dom.spec.whatwg.org/#namednodemap
25103 @deprecated // deprecated 25494 @deprecated // deprecated
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
25184 Node setNamedItemNS(Node node) native; 25575 Node setNamedItemNS(Node node) native;
25185 } 25576 }
25186 // 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
25187 // 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
25188 // BSD-style license that can be found in the LICENSE file. 25579 // BSD-style license that can be found in the LICENSE file.
25189 25580
25190 25581
25191 @DocsEditable 25582 @DocsEditable
25192 @DomName('PagePopupController') 25583 @DomName('PagePopupController')
25193 @deprecated // nonstandard 25584 @deprecated // nonstandard
25194 abstract class _PagePopupController native "PagePopupController" { 25585 abstract class _PagePopupController extends Interceptor native "PagePopupControl ler" {
25195 } 25586 }
25196 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25587 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25197 // for details. All rights reserved. Use of this source code is governed by a 25588 // for details. All rights reserved. Use of this source code is governed by a
25198 // BSD-style license that can be found in the LICENSE file. 25589 // BSD-style license that can be found in the LICENSE file.
25199 25590
25200 25591
25201 @DocsEditable 25592 @DocsEditable
25202 @DomName('RGBColor') 25593 @DomName('RGBColor')
25203 // http://dev.w3.org/csswg/cssom/ 25594 // http://dev.w3.org/csswg/cssom/
25204 @deprecated // deprecated 25595 @deprecated // deprecated
25205 abstract class _RGBColor native "RGBColor" { 25596 abstract class _RGBColor extends Interceptor native "RGBColor" {
25206 } 25597 }
25207 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 25598 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
25208 // for details. All rights reserved. Use of this source code is governed by a 25599 // for details. All rights reserved. Use of this source code is governed by a
25209 // BSD-style license that can be found in the LICENSE file. 25600 // BSD-style license that can be found in the LICENSE file.
25210 25601
25211 25602
25212 // Omit RadioNodeList for dart2js. The Dart Form and FieldSet APIs don't 25603 // Omit RadioNodeList for dart2js. The Dart Form and FieldSet APIs don't
25213 // currently expose an API the returns RadioNodeList. The only use of a 25604 // currently expose an API the returns RadioNodeList. The only use of a
25214 // RadioNodeList is to get the selected value and it will be cleaner to 25605 // RadioNodeList is to get the selected value and it will be cleaner to
25215 // introduce a different API for that purpose. 25606 // introduce a different API for that purpose.
25216 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25607 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25217 // for details. All rights reserved. Use of this source code is governed by a 25608 // for details. All rights reserved. Use of this source code is governed by a
25218 // BSD-style license that can be found in the LICENSE file. 25609 // BSD-style license that can be found in the LICENSE file.
25219 25610
25220 25611
25221 @DocsEditable 25612 @DocsEditable
25222 @DomName('Rect') 25613 @DomName('Rect')
25223 // http://dev.w3.org/csswg/cssom/ 25614 // http://dev.w3.org/csswg/cssom/
25224 @deprecated // deprecated 25615 @deprecated // deprecated
25225 abstract class _Rect native "Rect" { 25616 abstract class _Rect extends Interceptor native "Rect" {
25226 } 25617 }
25227 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25618 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25228 // for details. All rights reserved. Use of this source code is governed by a 25619 // for details. All rights reserved. Use of this source code is governed by a
25229 // BSD-style license that can be found in the LICENSE file. 25620 // BSD-style license that can be found in the LICENSE file.
25230 25621
25231 25622
25232 @DocsEditable 25623 @DocsEditable
25233 @DomName('SharedWorker') 25624 @DomName('SharedWorker')
25234 // http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html#shar ed-workers-and-the-sharedworker-interface 25625 // http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html#shar ed-workers-and-the-sharedworker-interface
25235 @Experimental 25626 @Experimental
25236 abstract class _SharedWorker extends AbstractWorker native "SharedWorker" { 25627 abstract class _SharedWorker extends AbstractWorker native "SharedWorker" {
25628 // To suppress missing implicit constructor warnings.
25629 factory _SharedWorker._() { throw new UnsupportedError("Not supported"); }
25237 25630
25238 @DomName('SharedWorker.SharedWorker') 25631 @DomName('SharedWorker.SharedWorker')
25239 @DocsEditable 25632 @DocsEditable
25240 factory _SharedWorker(String scriptURL, [String name]) { 25633 factory _SharedWorker(String scriptURL, [String name]) {
25241 if (name != null) { 25634 if (name != null) {
25242 return _SharedWorker._create_1(scriptURL, name); 25635 return _SharedWorker._create_1(scriptURL, name);
25243 } 25636 }
25244 return _SharedWorker._create_2(scriptURL); 25637 return _SharedWorker._create_2(scriptURL);
25245 } 25638 }
25246 static _SharedWorker _create_1(scriptURL, name) => JS('_SharedWorker', 'new Sh aredWorker(#,#)', scriptURL, name); 25639 static _SharedWorker _create_1(scriptURL, name) => JS('_SharedWorker', 'new Sh aredWorker(#,#)', scriptURL, name);
25247 static _SharedWorker _create_2(scriptURL) => JS('_SharedWorker', 'new SharedWo rker(#)', scriptURL); 25640 static _SharedWorker _create_2(scriptURL) => JS('_SharedWorker', 'new SharedWo rker(#)', scriptURL);
25248 } 25641 }
25249 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25642 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25250 // for details. All rights reserved. Use of this source code is governed by a 25643 // for details. All rights reserved. Use of this source code is governed by a
25251 // BSD-style license that can be found in the LICENSE file. 25644 // BSD-style license that can be found in the LICENSE file.
25252 25645
25253 25646
25254 @DocsEditable 25647 @DocsEditable
25255 @DomName('SharedWorkerContext') 25648 @DomName('SharedWorkerContext')
25256 // http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html#shar ed-workers-and-the-sharedworkerglobalscope-interface 25649 // http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html#shar ed-workers-and-the-sharedworkerglobalscope-interface
25257 @Experimental // nonstandard 25650 @Experimental // nonstandard
25258 abstract class _SharedWorkerContext extends _WorkerContext native "SharedWorkerC ontext" { 25651 abstract class _SharedWorkerContext extends _WorkerContext native "SharedWorkerC ontext" {
25652 // To suppress missing implicit constructor warnings.
25653 factory _SharedWorkerContext._() { throw new UnsupportedError("Not supported") ; }
25259 } 25654 }
25260 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25655 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25261 // for details. All rights reserved. Use of this source code is governed by a 25656 // for details. All rights reserved. Use of this source code is governed by a
25262 // BSD-style license that can be found in the LICENSE file. 25657 // BSD-style license that can be found in the LICENSE file.
25263 25658
25264 25659
25265 @DocsEditable 25660 @DocsEditable
25266 @DomName('SpeechInputResultList') 25661 @DomName('SpeechInputResultList')
25267 // http://lists.w3.org/Archives/Public/public-xg-htmlspeech/2011Feb/att-0020/api -draft.html#speech_input_result_list_interface 25662 // http://lists.w3.org/Archives/Public/public-xg-htmlspeech/2011Feb/att-0020/api -draft.html#speech_input_result_list_interface
25268 @Experimental 25663 @Experimental
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
25451 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25846 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25452 // for details. All rights reserved. Use of this source code is governed by a 25847 // for details. All rights reserved. Use of this source code is governed by a
25453 // BSD-style license that can be found in the LICENSE file. 25848 // BSD-style license that can be found in the LICENSE file.
25454 25849
25455 25850
25456 @DocsEditable 25851 @DocsEditable
25457 @DomName('WorkerContext') 25852 @DomName('WorkerContext')
25458 // http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html#Work erGlobalScope-partial 25853 // http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html#Work erGlobalScope-partial
25459 @Experimental // stable 25854 @Experimental // stable
25460 abstract class _WorkerContext extends EventTarget native "WorkerContext" { 25855 abstract class _WorkerContext extends EventTarget native "WorkerContext" {
25856 // To suppress missing implicit constructor warnings.
25857 factory _WorkerContext._() { throw new UnsupportedError("Not supported"); }
25461 } 25858 }
25462 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25859 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25463 // for details. All rights reserved. Use of this source code is governed by a 25860 // for details. All rights reserved. Use of this source code is governed by a
25464 // BSD-style license that can be found in the LICENSE file. 25861 // BSD-style license that can be found in the LICENSE file.
25465 25862
25466 25863
25467 @DocsEditable 25864 @DocsEditable
25468 @DomName('WorkerLocation') 25865 @DomName('WorkerLocation')
25469 // http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html#work erlocation 25866 // http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html#work erlocation
25470 @Experimental 25867 @Experimental
25471 abstract class _WorkerLocation native "WorkerLocation" { 25868 abstract class _WorkerLocation extends Interceptor native "WorkerLocation" {
25472 } 25869 }
25473 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25870 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25474 // for details. All rights reserved. Use of this source code is governed by a 25871 // for details. All rights reserved. Use of this source code is governed by a
25475 // BSD-style license that can be found in the LICENSE file. 25872 // BSD-style license that can be found in the LICENSE file.
25476 25873
25477 25874
25478 @DocsEditable 25875 @DocsEditable
25479 @DomName('WorkerNavigator') 25876 @DomName('WorkerNavigator')
25480 // http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html#work ernavigator 25877 // http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html#work ernavigator
25481 @Experimental 25878 @Experimental
25482 abstract class _WorkerNavigator native "WorkerNavigator" { 25879 abstract class _WorkerNavigator extends Interceptor native "WorkerNavigator" {
25483 } 25880 }
25484 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25881 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25485 // for details. All rights reserved. Use of this source code is governed by a 25882 // for details. All rights reserved. Use of this source code is governed by a
25486 // BSD-style license that can be found in the LICENSE file. 25883 // BSD-style license that can be found in the LICENSE file.
25487 25884
25488 25885
25489 abstract class _AttributeMap implements Map<String, String> { 25886 abstract class _AttributeMap implements Map<String, String> {
25490 final Element _element; 25887 final Element _element;
25491 25888
25492 _AttributeMap(this._element); 25889 _AttributeMap(this._element);
(...skipping 3298 matching lines...) Expand 10 before | Expand all | Expand 10 after
28791 _position = nextPosition; 29188 _position = nextPosition;
28792 return true; 29189 return true;
28793 } 29190 }
28794 _current = null; 29191 _current = null;
28795 _position = _array.length; 29192 _position = _array.length;
28796 return false; 29193 return false;
28797 } 29194 }
28798 29195
28799 T get current => _current; 29196 T get current => _current;
28800 } 29197 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698