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

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

Issue 13973017: Revert "Revert "Allow multiple tags in native clause."" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /// The Dart HTML library. 1 /// The Dart HTML library.
2 library dart.dom.html; 2 library dart.dom.html;
3 3
4 import 'dart:async'; 4 import 'dart:async';
5 import 'dart:collection'; 5 import 'dart:collection';
6 import 'dart:_collection-dev'; 6 import 'dart:_collection-dev';
7 import 'dart:html_common'; 7 import 'dart:html_common';
8 import 'dart:indexed_db'; 8 import 'dart:indexed_db';
9 import 'dart:isolate'; 9 import 'dart:isolate';
10 import 'dart:json' as json; 10 import 'dart:json' as json;
(...skipping 29 matching lines...) Expand all
40 /** 40 /**
41 * The top-level Document object. 41 * The top-level Document object.
42 */ 42 */
43 HtmlDocument get document => JS('HtmlDocument', 'document'); 43 HtmlDocument get document => JS('HtmlDocument', 'document');
44 44
45 Element query(String selector) => document.query(selector); 45 Element query(String selector) => document.query(selector);
46 List<Element> queryAll(String selector) => document.queryAll(selector); 46 List<Element> queryAll(String selector) => document.queryAll(selector);
47 47
48 // Workaround for tags like <cite> that lack their own Element subclass -- 48 // Workaround for tags like <cite> that lack their own Element subclass --
49 // Dart issue 1990. 49 // Dart issue 1990.
50 class _HTMLElement extends Element native "*HTMLElement" { 50 class _HTMLElement extends Element native "HTMLElement" {
51 } 51 }
52 52
53 // Support for Send/ReceivePortSync. 53 // Support for Send/ReceivePortSync.
54 int _getNewIsolateId() { 54 int _getNewIsolateId() {
55 if (JS('bool', r'!window.$dart$isolate$counter')) { 55 if (JS('bool', r'!window.$dart$isolate$counter')) {
56 JS('void', r'window.$dart$isolate$counter = 1'); 56 JS('void', r'window.$dart$isolate$counter = 1');
57 } 57 }
58 return JS('int', r'window.$dart$isolate$counter++'); 58 return JS('int', r'window.$dart$isolate$counter++');
59 } 59 }
60 60
61 // Fast path to invoke JS send port. 61 // Fast path to invoke JS send port.
62 _callPortSync(int id, message) { 62 _callPortSync(int id, message) {
63 return JS('var', r'ReceivePortSync.dispatchCall(#, #)', id, message); 63 return JS('var', r'ReceivePortSync.dispatchCall(#, #)', id, message);
64 } 64 }
65 65
66 spawnDomFunction(f) => IsolateNatives.spawnDomFunction(f); 66 spawnDomFunction(f) => IsolateNatives.spawnDomFunction(f);
67 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 67 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
68 // for details. All rights reserved. Use of this source code is governed by a 68 // for details. All rights reserved. Use of this source code is governed by a
69 // BSD-style license that can be found in the LICENSE file. 69 // BSD-style license that can be found in the LICENSE file.
70 70
71 71
72 @DocsEditable 72 @DocsEditable
73 @DomName('AbstractWorker') 73 @DomName('AbstractWorker')
74 class AbstractWorker extends EventTarget native "*AbstractWorker" { 74 class AbstractWorker extends EventTarget native "AbstractWorker" {
75 75
76 @DomName('AbstractWorker.errorEvent') 76 @DomName('AbstractWorker.errorEvent')
77 @DocsEditable 77 @DocsEditable
78 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error'); 78 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error');
79 79
80 @JSName('addEventListener') 80 @JSName('addEventListener')
81 @DomName('AbstractWorker.addEventListener') 81 @DomName('AbstractWorker.addEventListener')
82 @DocsEditable 82 @DocsEditable
83 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; 83 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native;
84 84
(...skipping 10 matching lines...) Expand all
95 @DocsEditable 95 @DocsEditable
96 Stream<Event> get onError => errorEvent.forTarget(this); 96 Stream<Event> get onError => errorEvent.forTarget(this);
97 } 97 }
98 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 98 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
99 // for details. All rights reserved. Use of this source code is governed by a 99 // for details. All rights reserved. Use of this source code is governed by a
100 // BSD-style license that can be found in the LICENSE file. 100 // BSD-style license that can be found in the LICENSE file.
101 101
102 102
103 @DocsEditable 103 @DocsEditable
104 @DomName('HTMLAnchorElement') 104 @DomName('HTMLAnchorElement')
105 class AnchorElement extends Element native "*HTMLAnchorElement" { 105 class AnchorElement extends Element native "HTMLAnchorElement" {
106 106
107 @DomName('HTMLAnchorElement.HTMLAnchorElement') 107 @DomName('HTMLAnchorElement.HTMLAnchorElement')
108 @DocsEditable 108 @DocsEditable
109 factory AnchorElement({String href}) { 109 factory AnchorElement({String href}) {
110 var e = document.$dom_createElement("a"); 110 var e = document.$dom_createElement("a");
111 if (href != null) e.href = href; 111 if (href != null) e.href = href;
112 return e; 112 return e;
113 } 113 }
114 114
115 @DomName('HTMLAnchorElement.download') 115 @DomName('HTMLAnchorElement.download')
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 @DocsEditable 180 @DocsEditable
181 String toString() native; 181 String toString() native;
182 } 182 }
183 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 183 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
184 // for details. All rights reserved. Use of this source code is governed by a 184 // for details. All rights reserved. Use of this source code is governed by a
185 // BSD-style license that can be found in the LICENSE file. 185 // BSD-style license that can be found in the LICENSE file.
186 186
187 187
188 @DocsEditable 188 @DocsEditable
189 @DomName('WebKitAnimationEvent') 189 @DomName('WebKitAnimationEvent')
190 class AnimationEvent extends Event native "*WebKitAnimationEvent" { 190 class AnimationEvent extends Event native "WebKitAnimationEvent" {
191 191
192 @DomName('AnimationEvent.animationName') 192 @DomName('AnimationEvent.animationName')
193 @DocsEditable 193 @DocsEditable
194 final String animationName; 194 final String animationName;
195 195
196 @DomName('AnimationEvent.elapsedTime') 196 @DomName('AnimationEvent.elapsedTime')
197 @DocsEditable 197 @DocsEditable
198 final num elapsedTime; 198 final num elapsedTime;
199 } 199 }
200 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 200 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
201 // for details. All rights reserved. Use of this source code is governed by a 201 // for details. All rights reserved. Use of this source code is governed by a
202 // BSD-style license that can be found in the LICENSE file. 202 // BSD-style license that can be found in the LICENSE file.
203 203
204 204
205 @DocsEditable 205 @DocsEditable
206 @DomName('DOMApplicationCache') 206 @DomName('DOMApplicationCache')
207 @SupportedBrowser(SupportedBrowser.CHROME) 207 @SupportedBrowser(SupportedBrowser.CHROME)
208 @SupportedBrowser(SupportedBrowser.FIREFOX) 208 @SupportedBrowser(SupportedBrowser.FIREFOX)
209 @SupportedBrowser(SupportedBrowser.IE, '10') 209 @SupportedBrowser(SupportedBrowser.IE, '10')
210 @SupportedBrowser(SupportedBrowser.OPERA) 210 @SupportedBrowser(SupportedBrowser.OPERA)
211 @SupportedBrowser(SupportedBrowser.SAFARI) 211 @SupportedBrowser(SupportedBrowser.SAFARI)
212 class ApplicationCache extends EventTarget native "*DOMApplicationCache" { 212 class ApplicationCache extends EventTarget native "ApplicationCache,DOMApplicati onCache,OfflineResourceList" {
213 213
214 @DomName('DOMApplicationCache.cachedEvent') 214 @DomName('DOMApplicationCache.cachedEvent')
215 @DocsEditable 215 @DocsEditable
216 static const EventStreamProvider<Event> cachedEvent = const EventStreamProvide r<Event>('cached'); 216 static const EventStreamProvider<Event> cachedEvent = const EventStreamProvide r<Event>('cached');
217 217
218 @DomName('DOMApplicationCache.checkingEvent') 218 @DomName('DOMApplicationCache.checkingEvent')
219 @DocsEditable 219 @DocsEditable
220 static const EventStreamProvider<Event> checkingEvent = const EventStreamProvi der<Event>('checking'); 220 static const EventStreamProvider<Event> checkingEvent = const EventStreamProvi der<Event>('checking');
221 221
222 @DomName('DOMApplicationCache.downloadingEvent') 222 @DomName('DOMApplicationCache.downloadingEvent')
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 * DOM Area Element, which links regions of an image map with a hyperlink. 330 * DOM Area Element, which links regions of an image map with a hyperlink.
331 * 331 *
332 * The element can also define an uninteractive region of the map. 332 * The element can also define an uninteractive region of the map.
333 * 333 *
334 * See also: 334 * See also:
335 * 335 *
336 * * [<area>](https://developer.mozilla.org/en-US/docs/HTML/Element/area) 336 * * [<area>](https://developer.mozilla.org/en-US/docs/HTML/Element/area)
337 * on MDN. 337 * on MDN.
338 */ 338 */
339 @DomName('HTMLAreaElement') 339 @DomName('HTMLAreaElement')
340 class AreaElement extends Element native "*HTMLAreaElement" { 340 class AreaElement extends Element native "HTMLAreaElement" {
341 341
342 @DomName('HTMLAreaElement.HTMLAreaElement') 342 @DomName('HTMLAreaElement.HTMLAreaElement')
343 @DocsEditable 343 @DocsEditable
344 factory AreaElement() => document.$dom_createElement("area"); 344 factory AreaElement() => document.$dom_createElement("area");
345 345
346 @DomName('HTMLAreaElement.alt') 346 @DomName('HTMLAreaElement.alt')
347 @DocsEditable 347 @DocsEditable
348 String alt; 348 String alt;
349 349
350 @DomName('HTMLAreaElement.coords') 350 @DomName('HTMLAreaElement.coords')
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 @DocsEditable 395 @DocsEditable
396 String target; 396 String target;
397 } 397 }
398 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 398 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
399 // for details. All rights reserved. Use of this source code is governed by a 399 // for details. All rights reserved. Use of this source code is governed by a
400 // BSD-style license that can be found in the LICENSE file. 400 // BSD-style license that can be found in the LICENSE file.
401 401
402 402
403 @DocsEditable 403 @DocsEditable
404 @DomName('Attr') 404 @DomName('Attr')
405 class Attr extends Node native "*Attr" { 405 class Attr extends Node native "Attr" {
406 } 406 }
407 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 407 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
408 // for details. All rights reserved. Use of this source code is governed by a 408 // for details. All rights reserved. Use of this source code is governed by a
409 // BSD-style license that can be found in the LICENSE file. 409 // BSD-style license that can be found in the LICENSE file.
410 410
411 411
412 @DocsEditable 412 @DocsEditable
413 @DomName('HTMLAudioElement') 413 @DomName('HTMLAudioElement')
414 class AudioElement extends MediaElement native "*HTMLAudioElement" { 414 class AudioElement extends MediaElement native "HTMLAudioElement" {
415 415
416 @DomName('HTMLAudioElement.HTMLAudioElement') 416 @DomName('HTMLAudioElement.HTMLAudioElement')
417 @DocsEditable 417 @DocsEditable
418 factory AudioElement([String src]) { 418 factory AudioElement([String src]) {
419 if (?src) { 419 if (?src) {
420 return AudioElement._create_1(src); 420 return AudioElement._create_1(src);
421 } 421 }
422 return AudioElement._create_2(); 422 return AudioElement._create_2();
423 } 423 }
424 static AudioElement _create_1(src) => JS('AudioElement', 'new Audio(#)', src); 424 static AudioElement _create_1(src) => JS('AudioElement', 'new Audio(#)', src);
425 static AudioElement _create_2() => JS('AudioElement', 'new Audio()'); 425 static AudioElement _create_2() => JS('AudioElement', 'new Audio()');
426 } 426 }
427 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 427 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
428 // for details. All rights reserved. Use of this source code is governed by a 428 // for details. All rights reserved. Use of this source code is governed by a
429 // BSD-style license that can be found in the LICENSE file. 429 // BSD-style license that can be found in the LICENSE file.
430 430
431 431
432 @DocsEditable 432 @DocsEditable
433 @DomName('AutocompleteErrorEvent') 433 @DomName('AutocompleteErrorEvent')
434 class AutocompleteErrorEvent extends Event native "*AutocompleteErrorEvent" { 434 class AutocompleteErrorEvent extends Event native "AutocompleteErrorEvent" {
435 435
436 @DomName('AutocompleteErrorEvent.reason') 436 @DomName('AutocompleteErrorEvent.reason')
437 @DocsEditable 437 @DocsEditable
438 final String reason; 438 final String reason;
439 } 439 }
440 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 440 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
441 // for details. All rights reserved. Use of this source code is governed by a 441 // for details. All rights reserved. Use of this source code is governed by a
442 // BSD-style license that can be found in the LICENSE file. 442 // BSD-style license that can be found in the LICENSE file.
443 443
444 444
445 @DocsEditable 445 @DocsEditable
446 @DomName('HTMLBRElement') 446 @DomName('HTMLBRElement')
447 class BRElement extends Element native "*HTMLBRElement" { 447 class BRElement extends Element native "HTMLBRElement" {
448 448
449 @DomName('HTMLBRElement.HTMLBRElement') 449 @DomName('HTMLBRElement.HTMLBRElement')
450 @DocsEditable 450 @DocsEditable
451 factory BRElement() => document.$dom_createElement("br"); 451 factory BRElement() => document.$dom_createElement("br");
452 } 452 }
453 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 453 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
454 // for details. All rights reserved. Use of this source code is governed by a 454 // for details. All rights reserved. Use of this source code is governed by a
455 // BSD-style license that can be found in the LICENSE file. 455 // BSD-style license that can be found in the LICENSE file.
456 456
457 457
458 @DocsEditable 458 @DocsEditable
459 @DomName('BarInfo') 459 @DomName('BarInfo')
460 class BarInfo native "*BarInfo" { 460 class BarInfo native "BarInfo" {
461 461
462 @DomName('BarInfo.visible') 462 @DomName('BarInfo.visible')
463 @DocsEditable 463 @DocsEditable
464 final bool visible; 464 final bool visible;
465 } 465 }
466 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 466 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
467 // for details. All rights reserved. Use of this source code is governed by a 467 // for details. All rights reserved. Use of this source code is governed by a
468 // BSD-style license that can be found in the LICENSE file. 468 // BSD-style license that can be found in the LICENSE file.
469 469
470 470
471 @DocsEditable 471 @DocsEditable
472 @DomName('HTMLBaseElement') 472 @DomName('HTMLBaseElement')
473 class BaseElement extends Element native "*HTMLBaseElement" { 473 class BaseElement extends Element native "HTMLBaseElement" {
474 474
475 @DomName('HTMLBaseElement.HTMLBaseElement') 475 @DomName('HTMLBaseElement.HTMLBaseElement')
476 @DocsEditable 476 @DocsEditable
477 factory BaseElement() => document.$dom_createElement("base"); 477 factory BaseElement() => document.$dom_createElement("base");
478 478
479 @DomName('HTMLBaseElement.href') 479 @DomName('HTMLBaseElement.href')
480 @DocsEditable 480 @DocsEditable
481 String href; 481 String href;
482 482
483 @DomName('HTMLBaseElement.target') 483 @DomName('HTMLBaseElement.target')
484 @DocsEditable 484 @DocsEditable
485 String target; 485 String target;
486 } 486 }
487 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 487 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
488 // for details. All rights reserved. Use of this source code is governed by a 488 // for details. All rights reserved. Use of this source code is governed by a
489 // BSD-style license that can be found in the LICENSE file. 489 // BSD-style license that can be found in the LICENSE file.
490 490
491 491
492 @DocsEditable 492 @DocsEditable
493 @DomName('BeforeLoadEvent') 493 @DomName('BeforeLoadEvent')
494 class BeforeLoadEvent extends Event native "*BeforeLoadEvent" { 494 class BeforeLoadEvent extends Event native "BeforeLoadEvent" {
495 495
496 @DomName('BeforeLoadEvent.url') 496 @DomName('BeforeLoadEvent.url')
497 @DocsEditable 497 @DocsEditable
498 final String url; 498 final String url;
499 } 499 }
500 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 500 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
501 // for details. All rights reserved. Use of this source code is governed by a 501 // for details. All rights reserved. Use of this source code is governed by a
502 // BSD-style license that can be found in the LICENSE file. 502 // BSD-style license that can be found in the LICENSE file.
503 503
504 504
505 @DomName('Blob') 505 @DomName('Blob')
506 class Blob native "*Blob" { 506 class Blob native "Blob" {
507 507
508 @DomName('Blob.size') 508 @DomName('Blob.size')
509 @DocsEditable 509 @DocsEditable
510 final int size; 510 final int size;
511 511
512 @DomName('Blob.type') 512 @DomName('Blob.type')
513 @DocsEditable 513 @DocsEditable
514 final String type; 514 final String type;
515 515
516 @DomName('Blob.slice') 516 @DomName('Blob.slice')
(...skipping 20 matching lines...) Expand all
537 static _bag_set(bag, key, value) { JS('void', '#[#] = #', bag, key, value); } 537 static _bag_set(bag, key, value) { JS('void', '#[#] = #', bag, key, value); }
538 } 538 }
539 539
540 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 540 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
541 // for details. All rights reserved. Use of this source code is governed by a 541 // for details. All rights reserved. Use of this source code is governed by a
542 // BSD-style license that can be found in the LICENSE file. 542 // BSD-style license that can be found in the LICENSE file.
543 543
544 544
545 @DocsEditable 545 @DocsEditable
546 @DomName('HTMLBodyElement') 546 @DomName('HTMLBodyElement')
547 class BodyElement extends Element native "*HTMLBodyElement" { 547 class BodyElement extends Element native "HTMLBodyElement" {
548 548
549 @DomName('HTMLBodyElement.blurEvent') 549 @DomName('HTMLBodyElement.blurEvent')
550 @DocsEditable 550 @DocsEditable
551 static const EventStreamProvider<Event> blurEvent = const EventStreamProvider< Event>('blur'); 551 static const EventStreamProvider<Event> blurEvent = const EventStreamProvider< Event>('blur');
552 552
553 @DomName('HTMLBodyElement.errorEvent') 553 @DomName('HTMLBodyElement.errorEvent')
554 @DocsEditable 554 @DocsEditable
555 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error'); 555 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error');
556 556
557 @DomName('HTMLBodyElement.focusEvent') 557 @DomName('HTMLBodyElement.focusEvent')
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
646 @DocsEditable 646 @DocsEditable
647 Stream<Event> get onUnload => unloadEvent.forTarget(this); 647 Stream<Event> get onUnload => unloadEvent.forTarget(this);
648 } 648 }
649 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 649 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
650 // for details. All rights reserved. Use of this source code is governed by a 650 // for details. All rights reserved. Use of this source code is governed by a
651 // BSD-style license that can be found in the LICENSE file. 651 // BSD-style license that can be found in the LICENSE file.
652 652
653 653
654 @DocsEditable 654 @DocsEditable
655 @DomName('HTMLButtonElement') 655 @DomName('HTMLButtonElement')
656 class ButtonElement extends Element native "*HTMLButtonElement" { 656 class ButtonElement extends Element native "HTMLButtonElement" {
657 657
658 @DomName('HTMLButtonElement.HTMLButtonElement') 658 @DomName('HTMLButtonElement.HTMLButtonElement')
659 @DocsEditable 659 @DocsEditable
660 factory ButtonElement() => document.$dom_createElement("button"); 660 factory ButtonElement() => document.$dom_createElement("button");
661 661
662 @DomName('HTMLButtonElement.autofocus') 662 @DomName('HTMLButtonElement.autofocus')
663 @DocsEditable 663 @DocsEditable
664 bool autofocus; 664 bool autofocus;
665 665
666 @DomName('HTMLButtonElement.disabled') 666 @DomName('HTMLButtonElement.disabled')
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
729 @DocsEditable 729 @DocsEditable
730 void setCustomValidity(String error) native; 730 void setCustomValidity(String error) native;
731 } 731 }
732 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 732 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
733 // for details. All rights reserved. Use of this source code is governed by a 733 // for details. All rights reserved. Use of this source code is governed by a
734 // BSD-style license that can be found in the LICENSE file. 734 // BSD-style license that can be found in the LICENSE file.
735 735
736 736
737 @DocsEditable 737 @DocsEditable
738 @DomName('CDATASection') 738 @DomName('CDATASection')
739 class CDataSection extends Text native "*CDATASection" { 739 class CDataSection extends Text native "CDATASection" {
740 } 740 }
741 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 741 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
742 // for details. All rights reserved. Use of this source code is governed by a 742 // for details. All rights reserved. Use of this source code is governed by a
743 // BSD-style license that can be found in the LICENSE file. 743 // BSD-style license that can be found in the LICENSE file.
744 744
745 745
746 @DomName('HTMLCanvasElement') 746 @DomName('HTMLCanvasElement')
747 class CanvasElement extends Element implements CanvasImageSource native "*HTMLCa nvasElement" { 747 class CanvasElement extends Element implements CanvasImageSource native "HTMLCan vasElement" {
748 748
749 @DomName('HTMLCanvasElement.HTMLCanvasElement') 749 @DomName('HTMLCanvasElement.HTMLCanvasElement')
750 @DocsEditable 750 @DocsEditable
751 factory CanvasElement({int width, int height}) { 751 factory CanvasElement({int width, int height}) {
752 var e = document.$dom_createElement("canvas"); 752 var e = document.$dom_createElement("canvas");
753 if (width != null) e.width = width; 753 if (width != null) e.width = width;
754 if (height != null) e.height = height; 754 if (height != null) e.height = height;
755 return e; 755 return e;
756 } 756 }
757 757
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
885 * ctx.save(); 885 * ctx.save();
886 * document.body.children.add(canvas); 886 * document.body.children.add(canvas);
887 * 887 *
888 * See also: 888 * See also:
889 * 889 *
890 * * [CanvasGradient](https://developer.mozilla.org/en-US/docs/DOM/CanvasGradien t) from MDN. 890 * * [CanvasGradient](https://developer.mozilla.org/en-US/docs/DOM/CanvasGradien t) from MDN.
891 * * [CanvasGradient](http://www.whatwg.org/specs/web-apps/current-work/multipag e/the-canvas-element.html#canvasgradient) from whatwg. 891 * * [CanvasGradient](http://www.whatwg.org/specs/web-apps/current-work/multipag e/the-canvas-element.html#canvasgradient) from whatwg.
892 * * [CanvasGradient](http://www.w3.org/TR/2010/WD-2dcontext-20100304/#canvasgra dient) from W3C. 892 * * [CanvasGradient](http://www.w3.org/TR/2010/WD-2dcontext-20100304/#canvasgra dient) from W3C.
893 */ 893 */
894 @DomName('CanvasGradient') 894 @DomName('CanvasGradient')
895 class CanvasGradient native "*CanvasGradient" { 895 class CanvasGradient native "CanvasGradient" {
896 896
897 /** 897 /**
898 * Adds a color stop to this gradient at the offset. 898 * Adds a color stop to this gradient at the offset.
899 * 899 *
900 * The [offset] can range between 0.0 and 1.0. 900 * The [offset] can range between 0.0 and 1.0.
901 * 901 *
902 * See also: 902 * See also:
903 * 903 *
904 * * [Multiple Color Stops](https://developer.mozilla.org/en-US/docs/CSS/linea r-gradient#Gradient_with_multiple_color_stops) from MDN. 904 * * [Multiple Color Stops](https://developer.mozilla.org/en-US/docs/CSS/linea r-gradient#Gradient_with_multiple_color_stops) from MDN.
905 */ 905 */
(...skipping 28 matching lines...) Expand all
934 * }); 934 * });
935 * img.src = "images/foo.jpg"; 935 * img.src = "images/foo.jpg";
936 * document.body.children.add(canvas); 936 * document.body.children.add(canvas);
937 * 937 *
938 * See also: 938 * See also:
939 * * [CanvasPattern](https://developer.mozilla.org/en-US/docs/DOM/CanvasPattern) from MDN. 939 * * [CanvasPattern](https://developer.mozilla.org/en-US/docs/DOM/CanvasPattern) from MDN.
940 * * [CanvasPattern](http://www.whatwg.org/specs/web-apps/current-work/multipage /the-canvas-element.html#canvaspattern) from whatwg. 940 * * [CanvasPattern](http://www.whatwg.org/specs/web-apps/current-work/multipage /the-canvas-element.html#canvaspattern) from whatwg.
941 * * [CanvasPattern](http://www.w3.org/TR/2010/WD-2dcontext-20100304/#canvaspatt ern) from W3C. 941 * * [CanvasPattern](http://www.w3.org/TR/2010/WD-2dcontext-20100304/#canvaspatt ern) from W3C.
942 */ 942 */
943 @DomName('CanvasPattern') 943 @DomName('CanvasPattern')
944 class CanvasPattern native "*CanvasPattern" { 944 class CanvasPattern native "CanvasPattern" {
945 } 945 }
946 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 946 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
947 // for details. All rights reserved. Use of this source code is governed by a 947 // for details. All rights reserved. Use of this source code is governed by a
948 // BSD-style license that can be found in the LICENSE file. 948 // BSD-style license that can be found in the LICENSE file.
949 949
950 950
951 @DocsEditable 951 @DocsEditable
952 @DomName('CanvasProxy') 952 @DomName('CanvasProxy')
953 class CanvasProxy native "*CanvasProxy" { 953 class CanvasProxy native "CanvasProxy" {
954 } 954 }
955 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 955 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
956 // for details. All rights reserved. Use of this source code is governed by a 956 // for details. All rights reserved. Use of this source code is governed by a
957 // BSD-style license that can be found in the LICENSE file. 957 // BSD-style license that can be found in the LICENSE file.
958 958
959 959
960 @DocsEditable 960 @DocsEditable
961 /** 961 /**
962 * A rendering context for a canvas element. 962 * A rendering context for a canvas element.
963 * 963 *
964 * This context is extended by [CanvasRenderingContext2D] and 964 * This context is extended by [CanvasRenderingContext2D] and
965 * [WebGLRenderingContext]. 965 * [WebGLRenderingContext].
966 */ 966 */
967 @DomName('CanvasRenderingContext') 967 @DomName('CanvasRenderingContext')
968 class CanvasRenderingContext native "*CanvasRenderingContext" { 968 class CanvasRenderingContext native "CanvasRenderingContext" {
969 969
970 /// Reference to the canvas element to which this context belongs. 970 /// Reference to the canvas element to which this context belongs.
971 @DomName('CanvasRenderingContext.canvas') 971 @DomName('CanvasRenderingContext.canvas')
972 @DocsEditable 972 @DocsEditable
973 final CanvasElement canvas; 973 final CanvasElement canvas;
974 } 974 }
975 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 975 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
976 // for details. All rights reserved. Use of this source code is governed by a 976 // for details. All rights reserved. Use of this source code is governed by a
977 // BSD-style license that can be found in the LICENSE file. 977 // BSD-style license that can be found in the LICENSE file.
978 978
979 979
980 @DomName('CanvasRenderingContext2D') 980 @DomName('CanvasRenderingContext2D')
981 class CanvasRenderingContext2D extends CanvasRenderingContext native "*CanvasRen deringContext2D" { 981 class CanvasRenderingContext2D extends CanvasRenderingContext native "CanvasRend eringContext2D" {
982 982
983 @DomName('CanvasRenderingContext2D.currentPath') 983 @DomName('CanvasRenderingContext2D.currentPath')
984 @DocsEditable 984 @DocsEditable
985 DomPath currentPath; 985 DomPath currentPath;
986 986
987 @DomName('CanvasRenderingContext2D.fillStyle') 987 @DomName('CanvasRenderingContext2D.fillStyle')
988 @DocsEditable 988 @DocsEditable
989 @Creates('String|CanvasGradient|CanvasPattern') 989 @Creates('String|CanvasGradient|CanvasPattern')
990 @Returns('String|CanvasGradient|CanvasPattern') 990 @Returns('String|CanvasGradient|CanvasPattern')
991 dynamic fillStyle; 991 dynamic fillStyle;
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
1515 '#.webkitLineDashOffset = #', this, this, value, this, value); 1515 '#.webkitLineDashOffset = #', this, this, value, this, value);
1516 } 1516 }
1517 1517
1518 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1518 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1519 // for details. All rights reserved. Use of this source code is governed by a 1519 // for details. All rights reserved. Use of this source code is governed by a
1520 // BSD-style license that can be found in the LICENSE file. 1520 // BSD-style license that can be found in the LICENSE file.
1521 1521
1522 1522
1523 @DocsEditable 1523 @DocsEditable
1524 @DomName('CharacterData') 1524 @DomName('CharacterData')
1525 class CharacterData extends Node native "*CharacterData" { 1525 class CharacterData extends Node native "CharacterData" {
1526 1526
1527 @DomName('CharacterData.data') 1527 @DomName('CharacterData.data')
1528 @DocsEditable 1528 @DocsEditable
1529 String data; 1529 String data;
1530 1530
1531 @DomName('CharacterData.length') 1531 @DomName('CharacterData.length')
1532 @DocsEditable 1532 @DocsEditable
1533 final int length; 1533 final int length;
1534 1534
1535 @DomName('CharacterData.appendData') 1535 @DomName('CharacterData.appendData')
(...skipping 16 matching lines...) Expand all
1552 @DocsEditable 1552 @DocsEditable
1553 String substringData(int offset, int length) native; 1553 String substringData(int offset, int length) native;
1554 } 1554 }
1555 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1555 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1556 // for details. All rights reserved. Use of this source code is governed by a 1556 // for details. All rights reserved. Use of this source code is governed by a
1557 // BSD-style license that can be found in the LICENSE file. 1557 // BSD-style license that can be found in the LICENSE file.
1558 1558
1559 1559
1560 @DocsEditable 1560 @DocsEditable
1561 @DomName('CloseEvent') 1561 @DomName('CloseEvent')
1562 class CloseEvent extends Event native "*CloseEvent" { 1562 class CloseEvent extends Event native "CloseEvent" {
1563 1563
1564 @DomName('CloseEvent.code') 1564 @DomName('CloseEvent.code')
1565 @DocsEditable 1565 @DocsEditable
1566 final int code; 1566 final int code;
1567 1567
1568 @DomName('CloseEvent.reason') 1568 @DomName('CloseEvent.reason')
1569 @DocsEditable 1569 @DocsEditable
1570 final String reason; 1570 final String reason;
1571 1571
1572 @DomName('CloseEvent.wasClean') 1572 @DomName('CloseEvent.wasClean')
1573 @DocsEditable 1573 @DocsEditable
1574 final bool wasClean; 1574 final bool wasClean;
1575 } 1575 }
1576 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1576 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1577 // for details. All rights reserved. Use of this source code is governed by a 1577 // for details. All rights reserved. Use of this source code is governed by a
1578 // BSD-style license that can be found in the LICENSE file. 1578 // BSD-style license that can be found in the LICENSE file.
1579 1579
1580 1580
1581 @DocsEditable 1581 @DocsEditable
1582 @DomName('Comment') 1582 @DomName('Comment')
1583 class Comment extends CharacterData native "*Comment" { 1583 class Comment extends CharacterData native "Comment" {
1584 } 1584 }
1585 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1585 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
1586 // for details. All rights reserved. Use of this source code is governed by a 1586 // for details. All rights reserved. Use of this source code is governed by a
1587 // BSD-style license that can be found in the LICENSE file. 1587 // BSD-style license that can be found in the LICENSE file.
1588 1588
1589 // WARNING: Do not edit - generated code. 1589 // WARNING: Do not edit - generated code.
1590 1590
1591 1591
1592 @DomName('CompositionEvent') 1592 @DomName('CompositionEvent')
1593 class CompositionEvent extends UIEvent native "*CompositionEvent" { 1593 class CompositionEvent extends UIEvent native "CompositionEvent" {
1594 factory CompositionEvent(String type, 1594 factory CompositionEvent(String type,
1595 {bool canBubble: false, bool cancelable: false, Window view, 1595 {bool canBubble: false, bool cancelable: false, Window view,
1596 String data}) { 1596 String data}) {
1597 if (view == null) { 1597 if (view == null) {
1598 view = window; 1598 view = window;
1599 } 1599 }
1600 var e = document.$dom_createEvent("CompositionEvent"); 1600 var e = document.$dom_createEvent("CompositionEvent");
1601 e.$dom_initCompositionEvent(type, canBubble, cancelable, view, data); 1601 e.$dom_initCompositionEvent(type, canBubble, cancelable, view, data);
1602 return e; 1602 return e;
1603 } 1603 }
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
1719 } 1719 }
1720 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1720 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1721 // for details. All rights reserved. Use of this source code is governed by a 1721 // for details. All rights reserved. Use of this source code is governed by a
1722 // BSD-style license that can be found in the LICENSE file. 1722 // BSD-style license that can be found in the LICENSE file.
1723 1723
1724 1724
1725 @DocsEditable 1725 @DocsEditable
1726 @DomName('HTMLContentElement') 1726 @DomName('HTMLContentElement')
1727 @SupportedBrowser(SupportedBrowser.CHROME, '26') 1727 @SupportedBrowser(SupportedBrowser.CHROME, '26')
1728 @Experimental 1728 @Experimental
1729 class ContentElement extends Element native "*HTMLContentElement" { 1729 class ContentElement extends Element native "HTMLContentElement" {
1730 1730
1731 @DomName('HTMLContentElement.HTMLContentElement') 1731 @DomName('HTMLContentElement.HTMLContentElement')
1732 @DocsEditable 1732 @DocsEditable
1733 factory ContentElement() => document.$dom_createElement("content"); 1733 factory ContentElement() => document.$dom_createElement("content");
1734 1734
1735 /// Checks if this type is supported on the current platform. 1735 /// Checks if this type is supported on the current platform.
1736 static bool get supported => Element.isTagSupported('content'); 1736 static bool get supported => Element.isTagSupported('content');
1737 1737
1738 @DomName('HTMLContentElement.resetStyleInheritance') 1738 @DomName('HTMLContentElement.resetStyleInheritance')
1739 @DocsEditable 1739 @DocsEditable
1740 bool resetStyleInheritance; 1740 bool resetStyleInheritance;
1741 1741
1742 @DomName('HTMLContentElement.select') 1742 @DomName('HTMLContentElement.select')
1743 @DocsEditable 1743 @DocsEditable
1744 String select; 1744 String select;
1745 1745
1746 @DomName('HTMLContentElement.getDistributedNodes') 1746 @DomName('HTMLContentElement.getDistributedNodes')
1747 @DocsEditable 1747 @DocsEditable
1748 @Returns('NodeList') 1748 @Returns('NodeList')
1749 @Creates('NodeList') 1749 @Creates('NodeList')
1750 List<Node> getDistributedNodes() native; 1750 List<Node> getDistributedNodes() native;
1751 } 1751 }
1752 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1752 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1753 // for details. All rights reserved. Use of this source code is governed by a 1753 // for details. All rights reserved. Use of this source code is governed by a
1754 // BSD-style license that can be found in the LICENSE file. 1754 // BSD-style license that can be found in the LICENSE file.
1755 1755
1756 1756
1757 @DocsEditable 1757 @DocsEditable
1758 @DomName('Coordinates') 1758 @DomName('Coordinates')
1759 class Coordinates native "*Coordinates" { 1759 class Coordinates native "Coordinates" {
1760 1760
1761 @DomName('Coordinates.accuracy') 1761 @DomName('Coordinates.accuracy')
1762 @DocsEditable 1762 @DocsEditable
1763 final num accuracy; 1763 final num accuracy;
1764 1764
1765 @DomName('Coordinates.altitude') 1765 @DomName('Coordinates.altitude')
1766 @DocsEditable 1766 @DocsEditable
1767 final num altitude; 1767 final num altitude;
1768 1768
1769 @DomName('Coordinates.altitudeAccuracy') 1769 @DomName('Coordinates.altitudeAccuracy')
(...skipping 19 matching lines...) Expand all
1789 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1789 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1790 // for details. All rights reserved. Use of this source code is governed by a 1790 // for details. All rights reserved. Use of this source code is governed by a
1791 // BSD-style license that can be found in the LICENSE file. 1791 // BSD-style license that can be found in the LICENSE file.
1792 1792
1793 1793
1794 @DocsEditable 1794 @DocsEditable
1795 @DomName('Crypto') 1795 @DomName('Crypto')
1796 @SupportedBrowser(SupportedBrowser.CHROME) 1796 @SupportedBrowser(SupportedBrowser.CHROME)
1797 @SupportedBrowser(SupportedBrowser.SAFARI) 1797 @SupportedBrowser(SupportedBrowser.SAFARI)
1798 @Experimental 1798 @Experimental
1799 class Crypto native "*Crypto" { 1799 class Crypto native "Crypto" {
1800 1800
1801 /// Checks if this type is supported on the current platform. 1801 /// Checks if this type is supported on the current platform.
1802 static bool get supported => JS('bool', '!!(window.crypto && window.crypto.get RandomValues)'); 1802 static bool get supported => JS('bool', '!!(window.crypto && window.crypto.get RandomValues)');
1803 1803
1804 @DomName('Crypto.getRandomValues') 1804 @DomName('Crypto.getRandomValues')
1805 @DocsEditable 1805 @DocsEditable
1806 @Creates('TypedData') 1806 @Creates('TypedData')
1807 @Returns('TypedData|Null') 1807 @Returns('TypedData|Null')
1808 TypedData getRandomValues(TypedData array) native; 1808 TypedData getRandomValues(TypedData array) native;
1809 } 1809 }
1810 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1810 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1811 // for details. All rights reserved. Use of this source code is governed by a 1811 // for details. All rights reserved. Use of this source code is governed by a
1812 // BSD-style license that can be found in the LICENSE file. 1812 // BSD-style license that can be found in the LICENSE file.
1813 1813
1814 1814
1815 @DocsEditable 1815 @DocsEditable
1816 @DomName('CSSCharsetRule') 1816 @DomName('CSSCharsetRule')
1817 class CssCharsetRule extends CssRule native "*CSSCharsetRule" { 1817 class CssCharsetRule extends CssRule native "CSSCharsetRule" {
1818 1818
1819 @DomName('CSSCharsetRule.encoding') 1819 @DomName('CSSCharsetRule.encoding')
1820 @DocsEditable 1820 @DocsEditable
1821 String encoding; 1821 String encoding;
1822 } 1822 }
1823 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1823 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1824 // for details. All rights reserved. Use of this source code is governed by a 1824 // for details. All rights reserved. Use of this source code is governed by a
1825 // BSD-style license that can be found in the LICENSE file. 1825 // BSD-style license that can be found in the LICENSE file.
1826 1826
1827 1827
1828 @DocsEditable 1828 @DocsEditable
1829 @DomName('CSSFontFaceLoadEvent') 1829 @DomName('CSSFontFaceLoadEvent')
1830 class CssFontFaceLoadEvent extends Event native "*CSSFontFaceLoadEvent" { 1830 class CssFontFaceLoadEvent extends Event native "CSSFontFaceLoadEvent" {
1831 1831
1832 @DomName('CSSFontFaceLoadEvent.error') 1832 @DomName('CSSFontFaceLoadEvent.error')
1833 @DocsEditable 1833 @DocsEditable
1834 final DomError error; 1834 final DomError error;
1835 1835
1836 @DomName('CSSFontFaceLoadEvent.fontface') 1836 @DomName('CSSFontFaceLoadEvent.fontface')
1837 @DocsEditable 1837 @DocsEditable
1838 final CssFontFaceRule fontface; 1838 final CssFontFaceRule fontface;
1839 } 1839 }
1840 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1840 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1841 // for details. All rights reserved. Use of this source code is governed by a 1841 // for details. All rights reserved. Use of this source code is governed by a
1842 // BSD-style license that can be found in the LICENSE file. 1842 // BSD-style license that can be found in the LICENSE file.
1843 1843
1844 1844
1845 @DocsEditable 1845 @DocsEditable
1846 @DomName('CSSFontFaceRule') 1846 @DomName('CSSFontFaceRule')
1847 class CssFontFaceRule extends CssRule native "*CSSFontFaceRule" { 1847 class CssFontFaceRule extends CssRule native "CSSFontFaceRule" {
1848 1848
1849 @DomName('CSSFontFaceRule.style') 1849 @DomName('CSSFontFaceRule.style')
1850 @DocsEditable 1850 @DocsEditable
1851 final CssStyleDeclaration style; 1851 final CssStyleDeclaration style;
1852 } 1852 }
1853 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1853 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1854 // for details. All rights reserved. Use of this source code is governed by a 1854 // for details. All rights reserved. Use of this source code is governed by a
1855 // BSD-style license that can be found in the LICENSE file. 1855 // BSD-style license that can be found in the LICENSE file.
1856 1856
1857 1857
1858 @DocsEditable 1858 @DocsEditable
1859 @DomName('CSSHostRule') 1859 @DomName('CSSHostRule')
1860 @SupportedBrowser(SupportedBrowser.CHROME, '26') 1860 @SupportedBrowser(SupportedBrowser.CHROME, '26')
1861 @Experimental 1861 @Experimental
1862 class CssHostRule extends CssRule native "*CSSHostRule" { 1862 class CssHostRule extends CssRule native "CSSHostRule" {
1863 1863
1864 @DomName('CSSHostRule.cssRules') 1864 @DomName('CSSHostRule.cssRules')
1865 @DocsEditable 1865 @DocsEditable
1866 @Returns('_CssRuleList') 1866 @Returns('_CssRuleList')
1867 @Creates('_CssRuleList') 1867 @Creates('_CssRuleList')
1868 final List<CssRule> cssRules; 1868 final List<CssRule> cssRules;
1869 1869
1870 @DomName('CSSHostRule.deleteRule') 1870 @DomName('CSSHostRule.deleteRule')
1871 @DocsEditable 1871 @DocsEditable
1872 void deleteRule(int index) native; 1872 void deleteRule(int index) native;
1873 1873
1874 @DomName('CSSHostRule.insertRule') 1874 @DomName('CSSHostRule.insertRule')
1875 @DocsEditable 1875 @DocsEditable
1876 int insertRule(String rule, int index) native; 1876 int insertRule(String rule, int index) native;
1877 } 1877 }
1878 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1878 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1879 // for details. All rights reserved. Use of this source code is governed by a 1879 // for details. All rights reserved. Use of this source code is governed by a
1880 // BSD-style license that can be found in the LICENSE file. 1880 // BSD-style license that can be found in the LICENSE file.
1881 1881
1882 1882
1883 @DocsEditable 1883 @DocsEditable
1884 @DomName('CSSImportRule') 1884 @DomName('CSSImportRule')
1885 class CssImportRule extends CssRule native "*CSSImportRule" { 1885 class CssImportRule extends CssRule native "CSSImportRule" {
1886 1886
1887 @DomName('CSSImportRule.href') 1887 @DomName('CSSImportRule.href')
1888 @DocsEditable 1888 @DocsEditable
1889 final String href; 1889 final String href;
1890 1890
1891 @DomName('CSSImportRule.media') 1891 @DomName('CSSImportRule.media')
1892 @DocsEditable 1892 @DocsEditable
1893 final MediaList media; 1893 final MediaList media;
1894 1894
1895 @DomName('CSSImportRule.styleSheet') 1895 @DomName('CSSImportRule.styleSheet')
1896 @DocsEditable 1896 @DocsEditable
1897 final CssStyleSheet styleSheet; 1897 final CssStyleSheet styleSheet;
1898 } 1898 }
1899 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1899 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1900 // for details. All rights reserved. Use of this source code is governed by a 1900 // for details. All rights reserved. Use of this source code is governed by a
1901 // BSD-style license that can be found in the LICENSE file. 1901 // BSD-style license that can be found in the LICENSE file.
1902 1902
1903 1903
1904 @DocsEditable 1904 @DocsEditable
1905 @DomName('WebKitCSSKeyframeRule') 1905 @DomName('WebKitCSSKeyframeRule')
1906 class CssKeyframeRule extends CssRule native "*WebKitCSSKeyframeRule" { 1906 class CssKeyframeRule extends CssRule native "WebKitCSSKeyframeRule" {
1907 1907
1908 @DomName('WebKitCSSKeyframeRule.keyText') 1908 @DomName('WebKitCSSKeyframeRule.keyText')
1909 @DocsEditable 1909 @DocsEditable
1910 String keyText; 1910 String keyText;
1911 1911
1912 @DomName('WebKitCSSKeyframeRule.style') 1912 @DomName('WebKitCSSKeyframeRule.style')
1913 @DocsEditable 1913 @DocsEditable
1914 final CssStyleDeclaration style; 1914 final CssStyleDeclaration style;
1915 } 1915 }
1916 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1916 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1917 // for details. All rights reserved. Use of this source code is governed by a 1917 // for details. All rights reserved. Use of this source code is governed by a
1918 // BSD-style license that can be found in the LICENSE file. 1918 // BSD-style license that can be found in the LICENSE file.
1919 1919
1920 1920
1921 @DocsEditable 1921 @DocsEditable
1922 @DomName('WebKitCSSKeyframesRule') 1922 @DomName('WebKitCSSKeyframesRule')
1923 class CssKeyframesRule extends CssRule native "*WebKitCSSKeyframesRule" { 1923 class CssKeyframesRule extends CssRule native "WebKitCSSKeyframesRule" {
1924 1924
1925 @DomName('WebKitCSSKeyframesRule.cssRules') 1925 @DomName('WebKitCSSKeyframesRule.cssRules')
1926 @DocsEditable 1926 @DocsEditable
1927 @Returns('_CssRuleList') 1927 @Returns('_CssRuleList')
1928 @Creates('_CssRuleList') 1928 @Creates('_CssRuleList')
1929 final List<CssRule> cssRules; 1929 final List<CssRule> cssRules;
1930 1930
1931 @DomName('WebKitCSSKeyframesRule.name') 1931 @DomName('WebKitCSSKeyframesRule.name')
1932 @DocsEditable 1932 @DocsEditable
1933 String name; 1933 String name;
(...skipping 10 matching lines...) Expand all
1944 @DocsEditable 1944 @DocsEditable
1945 void insertRule(String rule) native; 1945 void insertRule(String rule) native;
1946 } 1946 }
1947 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1947 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1948 // for details. All rights reserved. Use of this source code is governed by a 1948 // for details. All rights reserved. Use of this source code is governed by a
1949 // BSD-style license that can be found in the LICENSE file. 1949 // BSD-style license that can be found in the LICENSE file.
1950 1950
1951 1951
1952 @DocsEditable 1952 @DocsEditable
1953 @DomName('CSSMediaRule') 1953 @DomName('CSSMediaRule')
1954 class CssMediaRule extends CssRule native "*CSSMediaRule" { 1954 class CssMediaRule extends CssRule native "CSSMediaRule" {
1955 1955
1956 @DomName('CSSMediaRule.cssRules') 1956 @DomName('CSSMediaRule.cssRules')
1957 @DocsEditable 1957 @DocsEditable
1958 @Returns('_CssRuleList') 1958 @Returns('_CssRuleList')
1959 @Creates('_CssRuleList') 1959 @Creates('_CssRuleList')
1960 final List<CssRule> cssRules; 1960 final List<CssRule> cssRules;
1961 1961
1962 @DomName('CSSMediaRule.media') 1962 @DomName('CSSMediaRule.media')
1963 @DocsEditable 1963 @DocsEditable
1964 final MediaList media; 1964 final MediaList media;
1965 1965
1966 @DomName('CSSMediaRule.deleteRule') 1966 @DomName('CSSMediaRule.deleteRule')
1967 @DocsEditable 1967 @DocsEditable
1968 void deleteRule(int index) native; 1968 void deleteRule(int index) native;
1969 1969
1970 @DomName('CSSMediaRule.insertRule') 1970 @DomName('CSSMediaRule.insertRule')
1971 @DocsEditable 1971 @DocsEditable
1972 int insertRule(String rule, int index) native; 1972 int insertRule(String rule, int index) native;
1973 } 1973 }
1974 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1974 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1975 // for details. All rights reserved. Use of this source code is governed by a 1975 // for details. All rights reserved. Use of this source code is governed by a
1976 // BSD-style license that can be found in the LICENSE file. 1976 // BSD-style license that can be found in the LICENSE file.
1977 1977
1978 1978
1979 @DocsEditable 1979 @DocsEditable
1980 @DomName('CSSPageRule') 1980 @DomName('CSSPageRule')
1981 class CssPageRule extends CssRule native "*CSSPageRule" { 1981 class CssPageRule extends CssRule native "CSSPageRule" {
1982 1982
1983 @DomName('CSSPageRule.selectorText') 1983 @DomName('CSSPageRule.selectorText')
1984 @DocsEditable 1984 @DocsEditable
1985 String selectorText; 1985 String selectorText;
1986 1986
1987 @DomName('CSSPageRule.style') 1987 @DomName('CSSPageRule.style')
1988 @DocsEditable 1988 @DocsEditable
1989 final CssStyleDeclaration style; 1989 final CssStyleDeclaration style;
1990 } 1990 }
1991 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1991 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1992 // for details. All rights reserved. Use of this source code is governed by a 1992 // for details. All rights reserved. Use of this source code is governed by a
1993 // BSD-style license that can be found in the LICENSE file. 1993 // BSD-style license that can be found in the LICENSE file.
1994 1994
1995 1995
1996 @DocsEditable 1996 @DocsEditable
1997 @DomName('CSSRule') 1997 @DomName('CSSRule')
1998 class CssRule native "*CSSRule" { 1998 class CssRule native "CSSRule" {
1999 1999
2000 static const int CHARSET_RULE = 2; 2000 static const int CHARSET_RULE = 2;
2001 2001
2002 static const int FONT_FACE_RULE = 5; 2002 static const int FONT_FACE_RULE = 5;
2003 2003
2004 static const int HOST_RULE = 1001; 2004 static const int HOST_RULE = 1001;
2005 2005
2006 static const int IMPORT_RULE = 3; 2006 static const int IMPORT_RULE = 3;
2007 2007
2008 static const int MEDIA_RULE = 4; 2008 static const int MEDIA_RULE = 4;
(...skipping 27 matching lines...) Expand all
2036 @DomName('CSSRule.type') 2036 @DomName('CSSRule.type')
2037 @DocsEditable 2037 @DocsEditable
2038 final int type; 2038 final int type;
2039 } 2039 }
2040 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2040 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2041 // for details. All rights reserved. Use of this source code is governed by a 2041 // for details. All rights reserved. Use of this source code is governed by a
2042 // BSD-style license that can be found in the LICENSE file. 2042 // BSD-style license that can be found in the LICENSE file.
2043 2043
2044 2044
2045 @DomName('CSSStyleDeclaration') 2045 @DomName('CSSStyleDeclaration')
2046 class CssStyleDeclaration native "*CSSStyleDeclaration" { 2046 class CssStyleDeclaration native "CSSStyleDeclaration" {
2047 factory CssStyleDeclaration() => _CssStyleDeclarationFactoryProvider.createCss StyleDeclaration(); 2047 factory CssStyleDeclaration() => _CssStyleDeclarationFactoryProvider.createCss StyleDeclaration();
2048 factory CssStyleDeclaration.css(String css) => 2048 factory CssStyleDeclaration.css(String css) =>
2049 _CssStyleDeclarationFactoryProvider.createCssStyleDeclaration_css(css); 2049 _CssStyleDeclarationFactoryProvider.createCssStyleDeclaration_css(css);
2050 2050
2051 2051
2052 @DomName('CSSStyleDeclaration.cssText') 2052 @DomName('CSSStyleDeclaration.cssText')
2053 @DocsEditable 2053 @DocsEditable
2054 String cssText; 2054 String cssText;
2055 2055
2056 @DomName('CSSStyleDeclaration.length') 2056 @DomName('CSSStyleDeclaration.length')
(...skipping 3216 matching lines...) Expand 10 before | Expand all | Expand 10 after
5273 setProperty('zoom', value, ''); 5273 setProperty('zoom', value, '');
5274 } 5274 }
5275 } 5275 }
5276 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5276 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5277 // for details. All rights reserved. Use of this source code is governed by a 5277 // for details. All rights reserved. Use of this source code is governed by a
5278 // BSD-style license that can be found in the LICENSE file. 5278 // BSD-style license that can be found in the LICENSE file.
5279 5279
5280 5280
5281 @DocsEditable 5281 @DocsEditable
5282 @DomName('CSSStyleRule') 5282 @DomName('CSSStyleRule')
5283 class CssStyleRule extends CssRule native "*CSSStyleRule" { 5283 class CssStyleRule extends CssRule native "CSSStyleRule" {
5284 5284
5285 @DomName('CSSStyleRule.selectorText') 5285 @DomName('CSSStyleRule.selectorText')
5286 @DocsEditable 5286 @DocsEditable
5287 String selectorText; 5287 String selectorText;
5288 5288
5289 @DomName('CSSStyleRule.style') 5289 @DomName('CSSStyleRule.style')
5290 @DocsEditable 5290 @DocsEditable
5291 final CssStyleDeclaration style; 5291 final CssStyleDeclaration style;
5292 } 5292 }
5293 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5293 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5294 // for details. All rights reserved. Use of this source code is governed by a 5294 // for details. All rights reserved. Use of this source code is governed by a
5295 // BSD-style license that can be found in the LICENSE file. 5295 // BSD-style license that can be found in the LICENSE file.
5296 5296
5297 5297
5298 @DocsEditable 5298 @DocsEditable
5299 @DomName('CSSStyleSheet') 5299 @DomName('CSSStyleSheet')
5300 class CssStyleSheet extends StyleSheet native "*CSSStyleSheet" { 5300 class CssStyleSheet extends StyleSheet native "CSSStyleSheet" {
5301 5301
5302 @DomName('CSSStyleSheet.cssRules') 5302 @DomName('CSSStyleSheet.cssRules')
5303 @DocsEditable 5303 @DocsEditable
5304 @Returns('_CssRuleList') 5304 @Returns('_CssRuleList')
5305 @Creates('_CssRuleList') 5305 @Creates('_CssRuleList')
5306 final List<CssRule> cssRules; 5306 final List<CssRule> cssRules;
5307 5307
5308 @DomName('CSSStyleSheet.ownerRule') 5308 @DomName('CSSStyleSheet.ownerRule')
5309 @DocsEditable 5309 @DocsEditable
5310 final CssRule ownerRule; 5310 final CssRule ownerRule;
(...skipping 20 matching lines...) Expand all
5331 @DocsEditable 5331 @DocsEditable
5332 void removeRule(int index) native; 5332 void removeRule(int index) native;
5333 } 5333 }
5334 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5334 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5335 // for details. All rights reserved. Use of this source code is governed by a 5335 // for details. All rights reserved. Use of this source code is governed by a
5336 // BSD-style license that can be found in the LICENSE file. 5336 // BSD-style license that can be found in the LICENSE file.
5337 5337
5338 5338
5339 @DocsEditable 5339 @DocsEditable
5340 @DomName('CSSUnknownRule') 5340 @DomName('CSSUnknownRule')
5341 class CssUnknownRule extends CssRule native "*CSSUnknownRule" { 5341 class CssUnknownRule extends CssRule native "CSSUnknownRule" {
5342 } 5342 }
5343 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5343 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5344 // for details. All rights reserved. Use of this source code is governed by a 5344 // for details. All rights reserved. Use of this source code is governed by a
5345 // BSD-style license that can be found in the LICENSE file. 5345 // BSD-style license that can be found in the LICENSE file.
5346 5346
5347 5347
5348 @DocsEditable 5348 @DocsEditable
5349 @DomName('CustomElementConstructor') 5349 @DomName('CustomElementConstructor')
5350 class CustomElementConstructor native "*CustomElementConstructor" { 5350 class CustomElementConstructor native "CustomElementConstructor" {
5351 } 5351 }
5352 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5352 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5353 // for details. All rights reserved. Use of this source code is governed by a 5353 // for details. All rights reserved. Use of this source code is governed by a
5354 // BSD-style license that can be found in the LICENSE file. 5354 // BSD-style license that can be found in the LICENSE file.
5355 5355
5356 // WARNING: Do not edit - generated code. 5356 // WARNING: Do not edit - generated code.
5357 5357
5358 5358
5359 @DomName('CustomEvent') 5359 @DomName('CustomEvent')
5360 class CustomEvent extends Event native "*CustomEvent" { 5360 class CustomEvent extends Event native "CustomEvent" {
5361 factory CustomEvent(String type, 5361 factory CustomEvent(String type,
5362 {bool canBubble: true, bool cancelable: true, Object detail}) { 5362 {bool canBubble: true, bool cancelable: true, Object detail}) {
5363 5363
5364 final CustomEvent e = document.$dom_createEvent("CustomEvent"); 5364 final CustomEvent e = document.$dom_createEvent("CustomEvent");
5365 e.$dom_initCustomEvent(type, canBubble, cancelable, detail); 5365 e.$dom_initCustomEvent(type, canBubble, cancelable, detail);
5366 5366
5367 return e; 5367 return e;
5368 } 5368 }
5369 5369
5370 @DomName('CustomEvent.detail') 5370 @DomName('CustomEvent.detail')
5371 @DocsEditable 5371 @DocsEditable
5372 final Object detail; 5372 final Object detail;
5373 5373
5374 @JSName('initCustomEvent') 5374 @JSName('initCustomEvent')
5375 @DomName('CustomEvent.initCustomEvent') 5375 @DomName('CustomEvent.initCustomEvent')
5376 @DocsEditable 5376 @DocsEditable
5377 void $dom_initCustomEvent(String typeArg, bool canBubbleArg, bool cancelableAr g, Object detailArg) native; 5377 void $dom_initCustomEvent(String typeArg, bool canBubbleArg, bool cancelableAr g, Object detailArg) native;
5378 5378
5379 } 5379 }
5380 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5380 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5381 // for details. All rights reserved. Use of this source code is governed by a 5381 // for details. All rights reserved. Use of this source code is governed by a
5382 // BSD-style license that can be found in the LICENSE file. 5382 // BSD-style license that can be found in the LICENSE file.
5383 5383
5384 5384
5385 @DocsEditable 5385 @DocsEditable
5386 @DomName('HTMLDListElement') 5386 @DomName('HTMLDListElement')
5387 class DListElement extends Element native "*HTMLDListElement" { 5387 class DListElement extends Element native "HTMLDListElement" {
5388 5388
5389 @DomName('HTMLDListElement.HTMLDListElement') 5389 @DomName('HTMLDListElement.HTMLDListElement')
5390 @DocsEditable 5390 @DocsEditable
5391 factory DListElement() => document.$dom_createElement("dl"); 5391 factory DListElement() => document.$dom_createElement("dl");
5392 } 5392 }
5393 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5393 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5394 // for details. All rights reserved. Use of this source code is governed by a 5394 // for details. All rights reserved. Use of this source code is governed by a
5395 // BSD-style license that can be found in the LICENSE file. 5395 // BSD-style license that can be found in the LICENSE file.
5396 5396
5397 5397
5398 @DocsEditable 5398 @DocsEditable
5399 @DomName('HTMLDataListElement') 5399 @DomName('HTMLDataListElement')
5400 @SupportedBrowser(SupportedBrowser.CHROME) 5400 @SupportedBrowser(SupportedBrowser.CHROME)
5401 @SupportedBrowser(SupportedBrowser.FIREFOX) 5401 @SupportedBrowser(SupportedBrowser.FIREFOX)
5402 @SupportedBrowser(SupportedBrowser.IE, '10') 5402 @SupportedBrowser(SupportedBrowser.IE, '10')
5403 @SupportedBrowser(SupportedBrowser.SAFARI) 5403 @SupportedBrowser(SupportedBrowser.SAFARI)
5404 class DataListElement extends Element native "*HTMLDataListElement" { 5404 class DataListElement extends Element native "HTMLDataListElement" {
5405 5405
5406 @DomName('HTMLDataListElement.HTMLDataListElement') 5406 @DomName('HTMLDataListElement.HTMLDataListElement')
5407 @DocsEditable 5407 @DocsEditable
5408 factory DataListElement() => document.$dom_createElement("datalist"); 5408 factory DataListElement() => document.$dom_createElement("datalist");
5409 5409
5410 /// Checks if this type is supported on the current platform. 5410 /// Checks if this type is supported on the current platform.
5411 static bool get supported => Element.isTagSupported('datalist'); 5411 static bool get supported => Element.isTagSupported('datalist');
5412 5412
5413 @DomName('HTMLDataListElement.options') 5413 @DomName('HTMLDataListElement.options')
5414 @DocsEditable 5414 @DocsEditable
5415 final HtmlCollection options; 5415 final HtmlCollection options;
5416 } 5416 }
5417 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5417 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5418 // for details. All rights reserved. Use of this source code is governed by a 5418 // for details. All rights reserved. Use of this source code is governed by a
5419 // BSD-style license that can be found in the LICENSE file. 5419 // BSD-style license that can be found in the LICENSE file.
5420 5420
5421 5421
5422 @DocsEditable 5422 @DocsEditable
5423 @DomName('Clipboard') 5423 @DomName('Clipboard')
5424 class DataTransfer native "*Clipboard" { 5424 class DataTransfer native "Clipboard" {
5425 5425
5426 @DomName('Clipboard.dropEffect') 5426 @DomName('Clipboard.dropEffect')
5427 @DocsEditable 5427 @DocsEditable
5428 String dropEffect; 5428 String dropEffect;
5429 5429
5430 @DomName('Clipboard.effectAllowed') 5430 @DomName('Clipboard.effectAllowed')
5431 @DocsEditable 5431 @DocsEditable
5432 String effectAllowed; 5432 String effectAllowed;
5433 5433
5434 @DomName('Clipboard.files') 5434 @DomName('Clipboard.files')
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
5477 @DocsEditable 5477 @DocsEditable
5478 void setDragImage(ImageElement image, int x, int y) native; 5478 void setDragImage(ImageElement image, int x, int y) native;
5479 } 5479 }
5480 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5480 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5481 // for details. All rights reserved. Use of this source code is governed by a 5481 // for details. All rights reserved. Use of this source code is governed by a
5482 // BSD-style license that can be found in the LICENSE file. 5482 // BSD-style license that can be found in the LICENSE file.
5483 5483
5484 5484
5485 @DocsEditable 5485 @DocsEditable
5486 @DomName('DataTransferItem') 5486 @DomName('DataTransferItem')
5487 class DataTransferItem native "*DataTransferItem" { 5487 class DataTransferItem native "DataTransferItem" {
5488 5488
5489 @DomName('DataTransferItem.kind') 5489 @DomName('DataTransferItem.kind')
5490 @DocsEditable 5490 @DocsEditable
5491 final String kind; 5491 final String kind;
5492 5492
5493 @DomName('DataTransferItem.type') 5493 @DomName('DataTransferItem.type')
5494 @DocsEditable 5494 @DocsEditable
5495 final String type; 5495 final String type;
5496 5496
5497 @DomName('DataTransferItem.getAsFile') 5497 @DomName('DataTransferItem.getAsFile')
(...skipping 23 matching lines...) Expand all
5521 @Experimental 5521 @Experimental
5522 Entry getAsEntry() native; 5522 Entry getAsEntry() native;
5523 } 5523 }
5524 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5524 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5525 // for details. All rights reserved. Use of this source code is governed by a 5525 // for details. All rights reserved. Use of this source code is governed by a
5526 // BSD-style license that can be found in the LICENSE file. 5526 // BSD-style license that can be found in the LICENSE file.
5527 5527
5528 5528
5529 @DocsEditable 5529 @DocsEditable
5530 @DomName('DataTransferItemList') 5530 @DomName('DataTransferItemList')
5531 class DataTransferItemList native "*DataTransferItemList" { 5531 class DataTransferItemList native "DataTransferItemList" {
5532 5532
5533 @DomName('DataTransferItemList.length') 5533 @DomName('DataTransferItemList.length')
5534 @DocsEditable 5534 @DocsEditable
5535 final int length; 5535 final int length;
5536 5536
5537 @DomName('DataTransferItemList.add') 5537 @DomName('DataTransferItemList.add')
5538 @DocsEditable 5538 @DocsEditable
5539 void add(data_OR_file, [String type]) native; 5539 void add(data_OR_file, [String type]) native;
5540 5540
5541 @DomName('DataTransferItemList.clear') 5541 @DomName('DataTransferItemList.clear')
(...skipping 15 matching lines...) Expand all
5557 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5557 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5558 // for details. All rights reserved. Use of this source code is governed by a 5558 // for details. All rights reserved. Use of this source code is governed by a
5559 // BSD-style license that can be found in the LICENSE file. 5559 // BSD-style license that can be found in the LICENSE file.
5560 5560
5561 5561
5562 @DocsEditable 5562 @DocsEditable
5563 @DomName('HTMLDetailsElement') 5563 @DomName('HTMLDetailsElement')
5564 @SupportedBrowser(SupportedBrowser.CHROME) 5564 @SupportedBrowser(SupportedBrowser.CHROME)
5565 @SupportedBrowser(SupportedBrowser.SAFARI) 5565 @SupportedBrowser(SupportedBrowser.SAFARI)
5566 @Experimental 5566 @Experimental
5567 class DetailsElement extends Element native "*HTMLDetailsElement" { 5567 class DetailsElement extends Element native "HTMLDetailsElement" {
5568 5568
5569 @DomName('HTMLDetailsElement.HTMLDetailsElement') 5569 @DomName('HTMLDetailsElement.HTMLDetailsElement')
5570 @DocsEditable 5570 @DocsEditable
5571 factory DetailsElement() => document.$dom_createElement("details"); 5571 factory DetailsElement() => document.$dom_createElement("details");
5572 5572
5573 /// Checks if this type is supported on the current platform. 5573 /// Checks if this type is supported on the current platform.
5574 static bool get supported => Element.isTagSupported('details'); 5574 static bool get supported => Element.isTagSupported('details');
5575 5575
5576 @DomName('HTMLDetailsElement.open') 5576 @DomName('HTMLDetailsElement.open')
5577 @DocsEditable 5577 @DocsEditable
5578 bool open; 5578 bool open;
5579 } 5579 }
5580 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5580 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5581 // for details. All rights reserved. Use of this source code is governed by a 5581 // for details. All rights reserved. Use of this source code is governed by a
5582 // BSD-style license that can be found in the LICENSE file. 5582 // BSD-style license that can be found in the LICENSE file.
5583 5583
5584 5584
5585 @DocsEditable 5585 @DocsEditable
5586 @DomName('DeviceAcceleration') 5586 @DomName('DeviceAcceleration')
5587 class DeviceAcceleration native "*DeviceAcceleration" { 5587 class DeviceAcceleration native "DeviceAcceleration" {
5588 5588
5589 @DomName('DeviceAcceleration.x') 5589 @DomName('DeviceAcceleration.x')
5590 @DocsEditable 5590 @DocsEditable
5591 final num x; 5591 final num x;
5592 5592
5593 @DomName('DeviceAcceleration.y') 5593 @DomName('DeviceAcceleration.y')
5594 @DocsEditable 5594 @DocsEditable
5595 final num y; 5595 final num y;
5596 5596
5597 @DomName('DeviceAcceleration.z') 5597 @DomName('DeviceAcceleration.z')
5598 @DocsEditable 5598 @DocsEditable
5599 final num z; 5599 final num z;
5600 } 5600 }
5601 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5601 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5602 // for details. All rights reserved. Use of this source code is governed by a 5602 // for details. All rights reserved. Use of this source code is governed by a
5603 // BSD-style license that can be found in the LICENSE file. 5603 // BSD-style license that can be found in the LICENSE file.
5604 5604
5605 5605
5606 @DocsEditable 5606 @DocsEditable
5607 @DomName('DeviceMotionEvent') 5607 @DomName('DeviceMotionEvent')
5608 class DeviceMotionEvent extends Event native "*DeviceMotionEvent" { 5608 class DeviceMotionEvent extends Event native "DeviceMotionEvent" {
5609 5609
5610 @DomName('DeviceMotionEvent.acceleration') 5610 @DomName('DeviceMotionEvent.acceleration')
5611 @DocsEditable 5611 @DocsEditable
5612 final DeviceAcceleration acceleration; 5612 final DeviceAcceleration acceleration;
5613 5613
5614 @DomName('DeviceMotionEvent.accelerationIncludingGravity') 5614 @DomName('DeviceMotionEvent.accelerationIncludingGravity')
5615 @DocsEditable 5615 @DocsEditable
5616 final DeviceAcceleration accelerationIncludingGravity; 5616 final DeviceAcceleration accelerationIncludingGravity;
5617 5617
5618 @DomName('DeviceMotionEvent.interval') 5618 @DomName('DeviceMotionEvent.interval')
5619 @DocsEditable 5619 @DocsEditable
5620 final num interval; 5620 final num interval;
5621 5621
5622 @DomName('DeviceMotionEvent.rotationRate') 5622 @DomName('DeviceMotionEvent.rotationRate')
5623 @DocsEditable 5623 @DocsEditable
5624 final DeviceRotationRate rotationRate; 5624 final DeviceRotationRate rotationRate;
5625 } 5625 }
5626 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 5626 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
5627 // for details. All rights reserved. Use of this source code is governed by a 5627 // for details. All rights reserved. Use of this source code is governed by a
5628 // BSD-style license that can be found in the LICENSE file. 5628 // BSD-style license that can be found in the LICENSE file.
5629 5629
5630 // WARNING: Do not edit - generated code. 5630 // WARNING: Do not edit - generated code.
5631 5631
5632 @DomName('DeviceOrientationEvent') 5632 @DomName('DeviceOrientationEvent')
5633 5633
5634 class DeviceOrientationEvent extends Event native "*DeviceOrientationEvent" { 5634 class DeviceOrientationEvent extends Event native "DeviceOrientationEvent" {
5635 factory DeviceOrientationEvent(String type, 5635 factory DeviceOrientationEvent(String type,
5636 {bool canBubble: true, bool cancelable: true, num alpha: 0, num beta: 0, 5636 {bool canBubble: true, bool cancelable: true, num alpha: 0, num beta: 0,
5637 num gamma: 0, bool absolute: false}) { 5637 num gamma: 0, bool absolute: false}) {
5638 var e = document.$dom_createEvent("DeviceOrientationEvent"); 5638 var e = document.$dom_createEvent("DeviceOrientationEvent");
5639 e.$dom_initDeviceOrientationEvent(type, canBubble, cancelable, alpha, beta, 5639 e.$dom_initDeviceOrientationEvent(type, canBubble, cancelable, alpha, beta,
5640 gamma, absolute); 5640 gamma, absolute);
5641 return e; 5641 return e;
5642 } 5642 }
5643 5643
5644 @DomName('DeviceOrientationEvent.absolute') 5644 @DomName('DeviceOrientationEvent.absolute')
(...skipping 18 matching lines...) Expand all
5663 void $dom_initDeviceOrientationEvent(String type, bool bubbles, bool cancelabl e, num alpha, num beta, num gamma, bool absolute) native; 5663 void $dom_initDeviceOrientationEvent(String type, bool bubbles, bool cancelabl e, num alpha, num beta, num gamma, bool absolute) native;
5664 5664
5665 } 5665 }
5666 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5666 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5667 // for details. All rights reserved. Use of this source code is governed by a 5667 // for details. All rights reserved. Use of this source code is governed by a
5668 // BSD-style license that can be found in the LICENSE file. 5668 // BSD-style license that can be found in the LICENSE file.
5669 5669
5670 5670
5671 @DocsEditable 5671 @DocsEditable
5672 @DomName('DeviceRotationRate') 5672 @DomName('DeviceRotationRate')
5673 class DeviceRotationRate native "*DeviceRotationRate" { 5673 class DeviceRotationRate native "DeviceRotationRate" {
5674 5674
5675 @DomName('DeviceRotationRate.alpha') 5675 @DomName('DeviceRotationRate.alpha')
5676 @DocsEditable 5676 @DocsEditable
5677 final num alpha; 5677 final num alpha;
5678 5678
5679 @DomName('DeviceRotationRate.beta') 5679 @DomName('DeviceRotationRate.beta')
5680 @DocsEditable 5680 @DocsEditable
5681 final num beta; 5681 final num beta;
5682 5682
5683 @DomName('DeviceRotationRate.gamma') 5683 @DomName('DeviceRotationRate.gamma')
5684 @DocsEditable 5684 @DocsEditable
5685 final num gamma; 5685 final num gamma;
5686 } 5686 }
5687 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5687 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5688 // for details. All rights reserved. Use of this source code is governed by a 5688 // for details. All rights reserved. Use of this source code is governed by a
5689 // BSD-style license that can be found in the LICENSE file. 5689 // BSD-style license that can be found in the LICENSE file.
5690 5690
5691 5691
5692 @DocsEditable 5692 @DocsEditable
5693 @DomName('HTMLDialogElement') 5693 @DomName('HTMLDialogElement')
5694 class DialogElement extends Element native "*HTMLDialogElement" { 5694 class DialogElement extends Element native "HTMLDialogElement" {
5695 5695
5696 @DomName('HTMLDialogElement.open') 5696 @DomName('HTMLDialogElement.open')
5697 @DocsEditable 5697 @DocsEditable
5698 bool open; 5698 bool open;
5699 5699
5700 @DomName('HTMLDialogElement.close') 5700 @DomName('HTMLDialogElement.close')
5701 @DocsEditable 5701 @DocsEditable
5702 void close() native; 5702 void close() native;
5703 5703
5704 @DomName('HTMLDialogElement.show') 5704 @DomName('HTMLDialogElement.show')
5705 @DocsEditable 5705 @DocsEditable
5706 void show() native; 5706 void show() native;
5707 5707
5708 @DomName('HTMLDialogElement.showModal') 5708 @DomName('HTMLDialogElement.showModal')
5709 @DocsEditable 5709 @DocsEditable
5710 void showModal() native; 5710 void showModal() native;
5711 } 5711 }
5712 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 5712 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
5713 // for details. All rights reserved. Use of this source code is governed by a 5713 // for details. All rights reserved. Use of this source code is governed by a
5714 // BSD-style license that can be found in the LICENSE file. 5714 // BSD-style license that can be found in the LICENSE file.
5715 5715
5716 5716
5717 @DomName('DirectoryEntry') 5717 @DomName('DirectoryEntry')
5718 class DirectoryEntry extends Entry native "*DirectoryEntry" { 5718 class DirectoryEntry extends Entry native "DirectoryEntry" {
5719 5719
5720 /** 5720 /**
5721 * Create a new directory with the specified `path`. If `exclusive` is true, 5721 * Create a new directory with the specified `path`. If `exclusive` is true,
5722 * the returned Future will complete with an error if a directory already 5722 * the returned Future will complete with an error if a directory already
5723 * exists with the specified `path`. 5723 * exists with the specified `path`.
5724 */ 5724 */
5725 Future<Entry> createDirectory(String path, {bool exclusive: false}) { 5725 Future<Entry> createDirectory(String path, {bool exclusive: false}) {
5726 return _getDirectory(path, options: 5726 return _getDirectory(path, options:
5727 {'create': true, 'exclusive': exclusive}); 5727 {'create': true, 'exclusive': exclusive});
5728 } 5728 }
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
5874 5874
5875 } 5875 }
5876 5876
5877 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5877 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5878 // for details. All rights reserved. Use of this source code is governed by a 5878 // for details. All rights reserved. Use of this source code is governed by a
5879 // BSD-style license that can be found in the LICENSE file. 5879 // BSD-style license that can be found in the LICENSE file.
5880 5880
5881 5881
5882 @DocsEditable 5882 @DocsEditable
5883 @DomName('DirectoryReader') 5883 @DomName('DirectoryReader')
5884 class DirectoryReader native "*DirectoryReader" { 5884 class DirectoryReader native "DirectoryReader" {
5885 5885
5886 @JSName('readEntries') 5886 @JSName('readEntries')
5887 @DomName('DirectoryReader.readEntries') 5887 @DomName('DirectoryReader.readEntries')
5888 @DocsEditable 5888 @DocsEditable
5889 void _readEntries(_EntriesCallback successCallback, [_ErrorCallback errorCallb ack]) native; 5889 void _readEntries(_EntriesCallback successCallback, [_ErrorCallback errorCallb ack]) native;
5890 5890
5891 @JSName('readEntries') 5891 @JSName('readEntries')
5892 @DomName('DirectoryReader.readEntries') 5892 @DomName('DirectoryReader.readEntries')
5893 @DocsEditable 5893 @DocsEditable
5894 Future<List<Entry>> readEntries() { 5894 Future<List<Entry>> readEntries() {
(...skipping 25 matching lines...) Expand all
5920 * div.text = 'Here's my new DivElem 5920 * div.text = 'Here's my new DivElem
5921 * document.body.elements.add(elem); 5921 * document.body.elements.add(elem);
5922 * 5922 *
5923 * See also: 5923 * See also:
5924 * 5924 *
5925 * * [HTML <div> element](http://www.w3.org/TR/html-markup/div.html) from W3C. 5925 * * [HTML <div> element](http://www.w3.org/TR/html-markup/div.html) from W3C.
5926 * * [Block-level element](http://www.w3.org/TR/CSS2/visuren.html#block-boxes) f rom W3C. 5926 * * [Block-level element](http://www.w3.org/TR/CSS2/visuren.html#block-boxes) f rom W3C.
5927 * * [Inline-level element](http://www.w3.org/TR/CSS2/visuren.html#inline-boxes) from W3C. 5927 * * [Inline-level element](http://www.w3.org/TR/CSS2/visuren.html#inline-boxes) from W3C.
5928 */ 5928 */
5929 @DomName('HTMLDivElement') 5929 @DomName('HTMLDivElement')
5930 class DivElement extends Element native "*HTMLDivElement" { 5930 class DivElement extends Element native "HTMLDivElement" {
5931 5931
5932 @DomName('HTMLDivElement.HTMLDivElement') 5932 @DomName('HTMLDivElement.HTMLDivElement')
5933 @DocsEditable 5933 @DocsEditable
5934 factory DivElement() => document.$dom_createElement("div"); 5934 factory DivElement() => document.$dom_createElement("div");
5935 } 5935 }
5936 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5936 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5937 // for details. All rights reserved. Use of this source code is governed by a 5937 // for details. All rights reserved. Use of this source code is governed by a
5938 // BSD-style license that can be found in the LICENSE file. 5938 // BSD-style license that can be found in the LICENSE file.
5939 5939
5940 5940
5941 /** 5941 /**
5942 * The base class for all documents. 5942 * The base class for all documents.
5943 * 5943 *
5944 * Each web page loaded in the browser has its own [Document] object, which is 5944 * Each web page loaded in the browser has its own [Document] object, which is
5945 * typically an [HtmlDocument]. 5945 * typically an [HtmlDocument].
5946 * 5946 *
5947 * If you aren't comfortable with DOM concepts, see the Dart tutorial 5947 * If you aren't comfortable with DOM concepts, see the Dart tutorial
5948 * [Target 2: Connect Dart & HTML](http://www.dartlang.org/docs/tutorials/connec t-dart-html/). 5948 * [Target 2: Connect Dart & HTML](http://www.dartlang.org/docs/tutorials/connec t-dart-html/).
5949 */ 5949 */
5950 @DomName('Document') 5950 @DomName('Document')
5951 class Document extends Node native "*Document" 5951 class Document extends Node native "Document"
5952 { 5952 {
5953 5953
5954 5954
5955 @DomName('Document.readystatechangeEvent') 5955 @DomName('Document.readystatechangeEvent')
5956 @DocsEditable 5956 @DocsEditable
5957 static const EventStreamProvider<Event> readyStateChangeEvent = const EventStr eamProvider<Event>('readystatechange'); 5957 static const EventStreamProvider<Event> readyStateChangeEvent = const EventStr eamProvider<Event>('readystatechange');
5958 5958
5959 @DomName('Document.selectionchangeEvent') 5959 @DomName('Document.selectionchangeEvent')
5960 @DocsEditable 5960 @DocsEditable
5961 static const EventStreamProvider<Event> selectionChangeEvent = const EventStre amProvider<Event>('selectionchange'); 5961 static const EventStreamProvider<Event> selectionChangeEvent = const EventStre amProvider<Event>('selectionchange');
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after
6534 List<Element> queryAll(String selectors) { 6534 List<Element> queryAll(String selectors) {
6535 return new _FrozenElementList._wrap($dom_querySelectorAll(selectors)); 6535 return new _FrozenElementList._wrap($dom_querySelectorAll(selectors));
6536 } 6536 }
6537 } 6537 }
6538 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 6538 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
6539 // for details. All rights reserved. Use of this source code is governed by a 6539 // for details. All rights reserved. Use of this source code is governed by a
6540 // BSD-style license that can be found in the LICENSE file. 6540 // BSD-style license that can be found in the LICENSE file.
6541 6541
6542 6542
6543 @DomName('DocumentFragment') 6543 @DomName('DocumentFragment')
6544 class DocumentFragment extends Node native "*DocumentFragment" { 6544 class DocumentFragment extends Node native "DocumentFragment" {
6545 factory DocumentFragment() => _DocumentFragmentFactoryProvider.createDocumentF ragment(); 6545 factory DocumentFragment() => _DocumentFragmentFactoryProvider.createDocumentF ragment();
6546 6546
6547 factory DocumentFragment.html(String html) => 6547 factory DocumentFragment.html(String html) =>
6548 _DocumentFragmentFactoryProvider.createDocumentFragment_html(html); 6548 _DocumentFragmentFactoryProvider.createDocumentFragment_html(html);
6549 6549
6550 factory DocumentFragment.svg(String svgContent) => 6550 factory DocumentFragment.svg(String svgContent) =>
6551 _DocumentFragmentFactoryProvider.createDocumentFragment_svg(svgContent); 6551 _DocumentFragmentFactoryProvider.createDocumentFragment_svg(svgContent);
6552 6552
6553 // Native field is used only by Dart code so does not lead to instantiation 6553 // Native field is used only by Dart code so does not lead to instantiation
6554 // of native classes 6554 // of native classes
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
6625 List<Node> $dom_querySelectorAll(String selectors) native; 6625 List<Node> $dom_querySelectorAll(String selectors) native;
6626 6626
6627 } 6627 }
6628 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6628 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6629 // for details. All rights reserved. Use of this source code is governed by a 6629 // for details. All rights reserved. Use of this source code is governed by a
6630 // BSD-style license that can be found in the LICENSE file. 6630 // BSD-style license that can be found in the LICENSE file.
6631 6631
6632 6632
6633 @DocsEditable 6633 @DocsEditable
6634 @DomName('DocumentType') 6634 @DomName('DocumentType')
6635 class DocumentType extends Node native "*DocumentType" { 6635 class DocumentType extends Node native "DocumentType" {
6636 } 6636 }
6637 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6637 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6638 // for details. All rights reserved. Use of this source code is governed by a 6638 // for details. All rights reserved. Use of this source code is governed by a
6639 // BSD-style license that can be found in the LICENSE file. 6639 // BSD-style license that can be found in the LICENSE file.
6640 6640
6641 6641
6642 @DocsEditable 6642 @DocsEditable
6643 @DomName('DOMError') 6643 @DomName('DOMError')
6644 class DomError native "*DOMError" { 6644 class DomError native "DOMError" {
6645 6645
6646 @DomName('DOMError.name') 6646 @DomName('DOMError.name')
6647 @DocsEditable 6647 @DocsEditable
6648 final String name; 6648 final String name;
6649 } 6649 }
6650 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 6650 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
6651 // for details. All rights reserved. Use of this source code is governed by a 6651 // for details. All rights reserved. Use of this source code is governed by a
6652 // BSD-style license that can be found in the LICENSE file. 6652 // BSD-style license that can be found in the LICENSE file.
6653 6653
6654 6654
6655 @DomName('DOMException') 6655 @DomName('DOMException')
6656 class DomException native "*DOMException" { 6656 class DomException native "DOMException" {
6657 6657
6658 static const String INDEX_SIZE = 'IndexSizeError'; 6658 static const String INDEX_SIZE = 'IndexSizeError';
6659 static const String HIERARCHY_REQUEST = 'HierarchyRequestError'; 6659 static const String HIERARCHY_REQUEST = 'HierarchyRequestError';
6660 static const String WRONG_DOCUMENT = 'WrongDocumentError'; 6660 static const String WRONG_DOCUMENT = 'WrongDocumentError';
6661 static const String INVALID_CHARACTER = 'InvalidCharacterError'; 6661 static const String INVALID_CHARACTER = 'InvalidCharacterError';
6662 static const String NO_MODIFICATION_ALLOWED = 'NoModificationAllowedError'; 6662 static const String NO_MODIFICATION_ALLOWED = 'NoModificationAllowedError';
6663 static const String NOT_FOUND = 'NotFoundError'; 6663 static const String NOT_FOUND = 'NotFoundError';
6664 static const String NOT_SUPPORTED = 'NotSupportedError'; 6664 static const String NOT_SUPPORTED = 'NotSupportedError';
6665 static const String INVALID_STATE = 'InvalidStateError'; 6665 static const String INVALID_STATE = 'InvalidStateError';
6666 static const String SYNTAX = 'SyntaxError'; 6666 static const String SYNTAX = 'SyntaxError';
(...skipping 30 matching lines...) Expand all
6697 String toString() native; 6697 String toString() native;
6698 6698
6699 } 6699 }
6700 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6700 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6701 // for details. All rights reserved. Use of this source code is governed by a 6701 // for details. All rights reserved. Use of this source code is governed by a
6702 // BSD-style license that can be found in the LICENSE file. 6702 // BSD-style license that can be found in the LICENSE file.
6703 6703
6704 6704
6705 @DocsEditable 6705 @DocsEditable
6706 @DomName('DOMImplementation') 6706 @DomName('DOMImplementation')
6707 class DomImplementation native "*DOMImplementation" { 6707 class DomImplementation native "DOMImplementation" {
6708 6708
6709 @JSName('createCSSStyleSheet') 6709 @JSName('createCSSStyleSheet')
6710 @DomName('DOMImplementation.createCSSStyleSheet') 6710 @DomName('DOMImplementation.createCSSStyleSheet')
6711 @DocsEditable 6711 @DocsEditable
6712 CssStyleSheet createCssStyleSheet(String title, String media) native; 6712 CssStyleSheet createCssStyleSheet(String title, String media) native;
6713 6713
6714 @DomName('DOMImplementation.createDocument') 6714 @DomName('DOMImplementation.createDocument')
6715 @DocsEditable 6715 @DocsEditable
6716 Document createDocument(String namespaceURI, String qualifiedName, DocumentTyp e doctype) native; 6716 Document createDocument(String namespaceURI, String qualifiedName, DocumentTyp e doctype) native;
6717 6717
(...skipping 10 matching lines...) Expand all
6728 @DocsEditable 6728 @DocsEditable
6729 bool hasFeature(String feature, String version) native; 6729 bool hasFeature(String feature, String version) native;
6730 } 6730 }
6731 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6731 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6732 // for details. All rights reserved. Use of this source code is governed by a 6732 // for details. All rights reserved. Use of this source code is governed by a
6733 // BSD-style license that can be found in the LICENSE file. 6733 // BSD-style license that can be found in the LICENSE file.
6734 6734
6735 6735
6736 @DocsEditable 6736 @DocsEditable
6737 @DomName('MimeType') 6737 @DomName('MimeType')
6738 class DomMimeType native "*MimeType" { 6738 class DomMimeType native "MimeType" {
6739 6739
6740 @DomName('DOMMimeType.description') 6740 @DomName('DOMMimeType.description')
6741 @DocsEditable 6741 @DocsEditable
6742 final String description; 6742 final String description;
6743 6743
6744 @DomName('DOMMimeType.enabledPlugin') 6744 @DomName('DOMMimeType.enabledPlugin')
6745 @DocsEditable 6745 @DocsEditable
6746 final DomPlugin enabledPlugin; 6746 final DomPlugin enabledPlugin;
6747 6747
6748 @DomName('DOMMimeType.suffixes') 6748 @DomName('DOMMimeType.suffixes')
6749 @DocsEditable 6749 @DocsEditable
6750 final String suffixes; 6750 final String suffixes;
6751 6751
6752 @DomName('DOMMimeType.type') 6752 @DomName('DOMMimeType.type')
6753 @DocsEditable 6753 @DocsEditable
6754 final String type; 6754 final String type;
6755 } 6755 }
6756 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6756 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6757 // for details. All rights reserved. Use of this source code is governed by a 6757 // for details. All rights reserved. Use of this source code is governed by a
6758 // BSD-style license that can be found in the LICENSE file. 6758 // BSD-style license that can be found in the LICENSE file.
6759 6759
6760 6760
6761 @DocsEditable 6761 @DocsEditable
6762 @DomName('MimeTypeArray') 6762 @DomName('MimeTypeArray')
6763 class DomMimeTypeArray implements JavaScriptIndexingBehavior, List<DomMimeType> native "*MimeTypeArray" { 6763 class DomMimeTypeArray implements JavaScriptIndexingBehavior, List<DomMimeType> native "MimeTypeArray" {
6764 6764
6765 @DomName('DOMMimeTypeArray.length') 6765 @DomName('DOMMimeTypeArray.length')
6766 @DocsEditable 6766 @DocsEditable
6767 int get length => JS("int", "#.length", this); 6767 int get length => JS("int", "#.length", this);
6768 6768
6769 DomMimeType operator[](int index) => JS("DomMimeType", "#[#]", this, index); 6769 DomMimeType operator[](int index) => JS("DomMimeType", "#[#]", this, index);
6770 6770
6771 void operator[]=(int index, DomMimeType value) { 6771 void operator[]=(int index, DomMimeType value) {
6772 throw new UnsupportedError("Cannot assign element of immutable List."); 6772 throw new UnsupportedError("Cannot assign element of immutable List.");
6773 } 6773 }
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
6974 @DocsEditable 6974 @DocsEditable
6975 DomMimeType namedItem(String name) native; 6975 DomMimeType namedItem(String name) native;
6976 } 6976 }
6977 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6977 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6978 // for details. All rights reserved. Use of this source code is governed by a 6978 // for details. All rights reserved. Use of this source code is governed by a
6979 // BSD-style license that can be found in the LICENSE file. 6979 // BSD-style license that can be found in the LICENSE file.
6980 6980
6981 6981
6982 @DocsEditable 6982 @DocsEditable
6983 @DomName('WebKitNamedFlowCollection') 6983 @DomName('WebKitNamedFlowCollection')
6984 class DomNamedFlowCollection native "*WebKitNamedFlowCollection" { 6984 class DomNamedFlowCollection native "WebKitNamedFlowCollection" {
6985 6985
6986 @DomName('DOMNamedFlowCollection.length') 6986 @DomName('DOMNamedFlowCollection.length')
6987 @DocsEditable 6987 @DocsEditable
6988 final int length; 6988 final int length;
6989 6989
6990 @DomName('DOMNamedFlowCollection.item') 6990 @DomName('DOMNamedFlowCollection.item')
6991 @DocsEditable 6991 @DocsEditable
6992 NamedFlow item(int index) native; 6992 NamedFlow item(int index) native;
6993 6993
6994 @DomName('DOMNamedFlowCollection.namedItem') 6994 @DomName('DOMNamedFlowCollection.namedItem')
6995 @DocsEditable 6995 @DocsEditable
6996 NamedFlow namedItem(String name) native; 6996 NamedFlow namedItem(String name) native;
6997 } 6997 }
6998 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6998 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6999 // for details. All rights reserved. Use of this source code is governed by a 6999 // for details. All rights reserved. Use of this source code is governed by a
7000 // BSD-style license that can be found in the LICENSE file. 7000 // BSD-style license that can be found in the LICENSE file.
7001 7001
7002 7002
7003 @DocsEditable 7003 @DocsEditable
7004 @DomName('DOMParser') 7004 @DomName('DOMParser')
7005 class DomParser native "*DOMParser" { 7005 class DomParser native "DOMParser" {
7006 7006
7007 @DomName('DOMParser.DOMParser') 7007 @DomName('DOMParser.DOMParser')
7008 @DocsEditable 7008 @DocsEditable
7009 factory DomParser() { 7009 factory DomParser() {
7010 return DomParser._create_1(); 7010 return DomParser._create_1();
7011 } 7011 }
7012 static DomParser _create_1() => JS('DomParser', 'new DOMParser()'); 7012 static DomParser _create_1() => JS('DomParser', 'new DOMParser()');
7013 7013
7014 @DomName('DOMParser.parseFromString') 7014 @DomName('DOMParser.parseFromString')
7015 @DocsEditable 7015 @DocsEditable
7016 Document parseFromString(String str, String contentType) native; 7016 Document parseFromString(String str, String contentType) native;
7017 } 7017 }
7018 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7018 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7019 // for details. All rights reserved. Use of this source code is governed by a 7019 // for details. All rights reserved. Use of this source code is governed by a
7020 // BSD-style license that can be found in the LICENSE file. 7020 // BSD-style license that can be found in the LICENSE file.
7021 7021
7022 7022
7023 @DocsEditable 7023 @DocsEditable
7024 @DomName('Path') 7024 @DomName('Path')
7025 class DomPath native "*Path" { 7025 class DomPath native "Path" {
7026 7026
7027 @DomName('DOMPath.DOMPath') 7027 @DomName('DOMPath.DOMPath')
7028 @DocsEditable 7028 @DocsEditable
7029 factory DomPath([path_OR_text]) { 7029 factory DomPath([path_OR_text]) {
7030 if (!?path_OR_text) { 7030 if (!?path_OR_text) {
7031 return DomPath._create_1(); 7031 return DomPath._create_1();
7032 } 7032 }
7033 if ((path_OR_text is DomPath || path_OR_text == null)) { 7033 if ((path_OR_text is DomPath || path_OR_text == null)) {
7034 return DomPath._create_2(path_OR_text); 7034 return DomPath._create_2(path_OR_text);
7035 } 7035 }
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
7074 @DocsEditable 7074 @DocsEditable
7075 void rect(num x, num y, num width, num height) native; 7075 void rect(num x, num y, num width, num height) native;
7076 } 7076 }
7077 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7077 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7078 // for details. All rights reserved. Use of this source code is governed by a 7078 // for details. All rights reserved. Use of this source code is governed by a
7079 // BSD-style license that can be found in the LICENSE file. 7079 // BSD-style license that can be found in the LICENSE file.
7080 7080
7081 7081
7082 @DocsEditable 7082 @DocsEditable
7083 @DomName('Plugin') 7083 @DomName('Plugin')
7084 class DomPlugin native "*Plugin" { 7084 class DomPlugin native "Plugin" {
7085 7085
7086 @DomName('DOMPlugin.description') 7086 @DomName('DOMPlugin.description')
7087 @DocsEditable 7087 @DocsEditable
7088 final String description; 7088 final String description;
7089 7089
7090 @DomName('DOMPlugin.filename') 7090 @DomName('DOMPlugin.filename')
7091 @DocsEditable 7091 @DocsEditable
7092 final String filename; 7092 final String filename;
7093 7093
7094 @DomName('DOMPlugin.length') 7094 @DomName('DOMPlugin.length')
(...skipping 12 matching lines...) Expand all
7107 @DocsEditable 7107 @DocsEditable
7108 DomMimeType namedItem(String name) native; 7108 DomMimeType namedItem(String name) native;
7109 } 7109 }
7110 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7110 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7111 // for details. All rights reserved. Use of this source code is governed by a 7111 // for details. All rights reserved. Use of this source code is governed by a
7112 // BSD-style license that can be found in the LICENSE file. 7112 // BSD-style license that can be found in the LICENSE file.
7113 7113
7114 7114
7115 @DocsEditable 7115 @DocsEditable
7116 @DomName('PluginArray') 7116 @DomName('PluginArray')
7117 class DomPluginArray implements JavaScriptIndexingBehavior, List<DomPlugin> nati ve "*PluginArray" { 7117 class DomPluginArray implements JavaScriptIndexingBehavior, List<DomPlugin> nati ve "PluginArray" {
7118 7118
7119 @DomName('DOMPluginArray.length') 7119 @DomName('DOMPluginArray.length')
7120 @DocsEditable 7120 @DocsEditable
7121 int get length => JS("int", "#.length", this); 7121 int get length => JS("int", "#.length", this);
7122 7122
7123 DomPlugin operator[](int index) => JS("DomPlugin", "#[#]", this, index); 7123 DomPlugin operator[](int index) => JS("DomPlugin", "#[#]", this, index);
7124 7124
7125 void operator[]=(int index, DomPlugin value) { 7125 void operator[]=(int index, DomPlugin value) {
7126 throw new UnsupportedError("Cannot assign element of immutable List."); 7126 throw new UnsupportedError("Cannot assign element of immutable List.");
7127 } 7127 }
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
7332 @DocsEditable 7332 @DocsEditable
7333 void refresh(bool reload) native; 7333 void refresh(bool reload) native;
7334 } 7334 }
7335 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7335 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7336 // for details. All rights reserved. Use of this source code is governed by a 7336 // for details. All rights reserved. Use of this source code is governed by a
7337 // BSD-style license that can be found in the LICENSE file. 7337 // BSD-style license that can be found in the LICENSE file.
7338 7338
7339 7339
7340 @DocsEditable 7340 @DocsEditable
7341 @DomName('SecurityPolicy') 7341 @DomName('SecurityPolicy')
7342 class DomSecurityPolicy native "*SecurityPolicy" { 7342 class DomSecurityPolicy native "SecurityPolicy" {
7343 7343
7344 @DomName('DOMSecurityPolicy.allowsEval') 7344 @DomName('DOMSecurityPolicy.allowsEval')
7345 @DocsEditable 7345 @DocsEditable
7346 final bool allowsEval; 7346 final bool allowsEval;
7347 7347
7348 @DomName('DOMSecurityPolicy.allowsInlineScript') 7348 @DomName('DOMSecurityPolicy.allowsInlineScript')
7349 @DocsEditable 7349 @DocsEditable
7350 final bool allowsInlineScript; 7350 final bool allowsInlineScript;
7351 7351
7352 @DomName('DOMSecurityPolicy.allowsInlineStyle') 7352 @DomName('DOMSecurityPolicy.allowsInlineStyle')
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
7403 @DocsEditable 7403 @DocsEditable
7404 bool allowsStyleFrom(String url) native; 7404 bool allowsStyleFrom(String url) native;
7405 } 7405 }
7406 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7406 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7407 // for details. All rights reserved. Use of this source code is governed by a 7407 // for details. All rights reserved. Use of this source code is governed by a
7408 // BSD-style license that can be found in the LICENSE file. 7408 // BSD-style license that can be found in the LICENSE file.
7409 7409
7410 7410
7411 @DocsEditable 7411 @DocsEditable
7412 @DomName('Selection') 7412 @DomName('Selection')
7413 class DomSelection native "*Selection" { 7413 class DomSelection native "Selection" {
7414 7414
7415 @DomName('DOMSelection.anchorNode') 7415 @DomName('DOMSelection.anchorNode')
7416 @DocsEditable 7416 @DocsEditable
7417 final Node anchorNode; 7417 final Node anchorNode;
7418 7418
7419 @DomName('DOMSelection.anchorOffset') 7419 @DomName('DOMSelection.anchorOffset')
7420 @DocsEditable 7420 @DocsEditable
7421 final int anchorOffset; 7421 final int anchorOffset;
7422 7422
7423 @DomName('DOMSelection.baseNode') 7423 @DomName('DOMSelection.baseNode')
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
7516 @DocsEditable 7516 @DocsEditable
7517 String toString() native; 7517 String toString() native;
7518 } 7518 }
7519 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7519 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7520 // for details. All rights reserved. Use of this source code is governed by a 7520 // for details. All rights reserved. Use of this source code is governed by a
7521 // BSD-style license that can be found in the LICENSE file. 7521 // BSD-style license that can be found in the LICENSE file.
7522 7522
7523 7523
7524 @DocsEditable 7524 @DocsEditable
7525 @DomName('DOMSettableTokenList') 7525 @DomName('DOMSettableTokenList')
7526 class DomSettableTokenList extends DomTokenList native "*DOMSettableTokenList" { 7526 class DomSettableTokenList extends DomTokenList native "DOMSettableTokenList" {
7527 7527
7528 @DomName('DOMSettableTokenList.value') 7528 @DomName('DOMSettableTokenList.value')
7529 @DocsEditable 7529 @DocsEditable
7530 String value; 7530 String value;
7531 } 7531 }
7532 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7532 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7533 // for details. All rights reserved. Use of this source code is governed by a 7533 // for details. All rights reserved. Use of this source code is governed by a
7534 // BSD-style license that can be found in the LICENSE file. 7534 // BSD-style license that can be found in the LICENSE file.
7535 7535
7536 7536
7537 @DocsEditable 7537 @DocsEditable
7538 @DomName('DOMStringList') 7538 @DomName('DOMStringList')
7539 class DomStringList implements JavaScriptIndexingBehavior, List<String> native " *DOMStringList" { 7539 class DomStringList implements JavaScriptIndexingBehavior, List<String> native " DOMStringList" {
7540 7540
7541 @DomName('DOMStringList.length') 7541 @DomName('DOMStringList.length')
7542 @DocsEditable 7542 @DocsEditable
7543 int get length => JS("int", "#.length", this); 7543 int get length => JS("int", "#.length", this);
7544 7544
7545 String operator[](int index) => JS("String", "#[#]", this, index); 7545 String operator[](int index) => JS("String", "#[#]", this, index);
7546 7546
7547 void operator[]=(int index, String value) { 7547 void operator[]=(int index, String value) {
7548 throw new UnsupportedError("Cannot assign element of immutable List."); 7548 throw new UnsupportedError("Cannot assign element of immutable List.");
7549 } 7549 }
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
7758 @DomName('DOMStringMap') 7758 @DomName('DOMStringMap')
7759 abstract class DomStringMap { 7759 abstract class DomStringMap {
7760 } 7760 }
7761 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7761 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7762 // for details. All rights reserved. Use of this source code is governed by a 7762 // for details. All rights reserved. Use of this source code is governed by a
7763 // BSD-style license that can be found in the LICENSE file. 7763 // BSD-style license that can be found in the LICENSE file.
7764 7764
7765 7765
7766 @DocsEditable 7766 @DocsEditable
7767 @DomName('DOMTokenList') 7767 @DomName('DOMTokenList')
7768 class DomTokenList native "*DOMTokenList" { 7768 class DomTokenList native "DOMTokenList" {
7769 7769
7770 @DomName('DOMTokenList.length') 7770 @DomName('DOMTokenList.length')
7771 @DocsEditable 7771 @DocsEditable
7772 final int length; 7772 final int length;
7773 7773
7774 @DomName('DOMTokenList.contains') 7774 @DomName('DOMTokenList.contains')
7775 @DocsEditable 7775 @DocsEditable
7776 bool contains(String token) native; 7776 bool contains(String token) native;
7777 7777
7778 @DomName('DOMTokenList.item') 7778 @DomName('DOMTokenList.item')
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
8182 void writeClasses(Set<String> s) { 8182 void writeClasses(Set<String> s) {
8183 List list = new List.from(s); 8183 List list = new List.from(s);
8184 _element.$dom_className = s.join(' '); 8184 _element.$dom_className = s.join(' ');
8185 } 8185 }
8186 } 8186 }
8187 8187
8188 /** 8188 /**
8189 * An abstract class, which all HTML elements extend. 8189 * An abstract class, which all HTML elements extend.
8190 */ 8190 */
8191 @DomName('Element') 8191 @DomName('Element')
8192 abstract class Element extends Node implements ElementTraversal native "*Element " { 8192 abstract class Element extends Node implements ElementTraversal native "Element" {
8193 8193
8194 /** 8194 /**
8195 * Creates an HTML element from a valid fragment of HTML. 8195 * Creates an HTML element from a valid fragment of HTML.
8196 * 8196 *
8197 * The [html] fragment must represent valid HTML with a single element root, 8197 * The [html] fragment must represent valid HTML with a single element root,
8198 * which will be parsed and returned. 8198 * which will be parsed and returned.
8199 * 8199 *
8200 * Important: the contents of [html] should not contain any user-supplied 8200 * Important: the contents of [html] should not contain any user-supplied
8201 * data. Without strict data validation it is impossible to prevent script 8201 * data. Without strict data validation it is impossible to prevent script
8202 * injection exploits. 8202 * injection exploits.
(...skipping 1320 matching lines...) Expand 10 before | Expand all | Expand 10 after
9523 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9523 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9524 // for details. All rights reserved. Use of this source code is governed by a 9524 // for details. All rights reserved. Use of this source code is governed by a
9525 // BSD-style license that can be found in the LICENSE file. 9525 // BSD-style license that can be found in the LICENSE file.
9526 9526
9527 9527
9528 @DocsEditable 9528 @DocsEditable
9529 @DomName('HTMLEmbedElement') 9529 @DomName('HTMLEmbedElement')
9530 @SupportedBrowser(SupportedBrowser.CHROME) 9530 @SupportedBrowser(SupportedBrowser.CHROME)
9531 @SupportedBrowser(SupportedBrowser.IE) 9531 @SupportedBrowser(SupportedBrowser.IE)
9532 @SupportedBrowser(SupportedBrowser.SAFARI) 9532 @SupportedBrowser(SupportedBrowser.SAFARI)
9533 class EmbedElement extends Element native "*HTMLEmbedElement" { 9533 class EmbedElement extends Element native "HTMLEmbedElement" {
9534 9534
9535 @DomName('HTMLEmbedElement.HTMLEmbedElement') 9535 @DomName('HTMLEmbedElement.HTMLEmbedElement')
9536 @DocsEditable 9536 @DocsEditable
9537 factory EmbedElement() => document.$dom_createElement("embed"); 9537 factory EmbedElement() => document.$dom_createElement("embed");
9538 9538
9539 /// Checks if this type is supported on the current platform. 9539 /// Checks if this type is supported on the current platform.
9540 static bool get supported => Element.isTagSupported('embed'); 9540 static bool get supported => Element.isTagSupported('embed');
9541 9541
9542 @DomName('HTMLEmbedElement.align') 9542 @DomName('HTMLEmbedElement.align')
9543 @DocsEditable 9543 @DocsEditable
(...skipping 19 matching lines...) Expand all
9563 @DocsEditable 9563 @DocsEditable
9564 String width; 9564 String width;
9565 } 9565 }
9566 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9566 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9567 // for details. All rights reserved. Use of this source code is governed by a 9567 // for details. All rights reserved. Use of this source code is governed by a
9568 // BSD-style license that can be found in the LICENSE file. 9568 // BSD-style license that can be found in the LICENSE file.
9569 9569
9570 9570
9571 @DocsEditable 9571 @DocsEditable
9572 @DomName('EntityReference') 9572 @DomName('EntityReference')
9573 class EntityReference extends Node native "*EntityReference" { 9573 class EntityReference extends Node native "EntityReference" {
9574 } 9574 }
9575 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9575 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9576 // for details. All rights reserved. Use of this source code is governed by a 9576 // for details. All rights reserved. Use of this source code is governed by a
9577 // BSD-style license that can be found in the LICENSE file. 9577 // BSD-style license that can be found in the LICENSE file.
9578 9578
9579 // WARNING: Do not edit - generated code. 9579 // WARNING: Do not edit - generated code.
9580 9580
9581 9581
9582 typedef void _EntriesCallback(List<Entry> entries); 9582 typedef void _EntriesCallback(List<Entry> entries);
9583 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9583 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9584 // for details. All rights reserved. Use of this source code is governed by a 9584 // for details. All rights reserved. Use of this source code is governed by a
9585 // BSD-style license that can be found in the LICENSE file. 9585 // BSD-style license that can be found in the LICENSE file.
9586 9586
9587 9587
9588 @DocsEditable 9588 @DocsEditable
9589 @DomName('Entry') 9589 @DomName('Entry')
9590 class Entry native "*Entry" { 9590 class Entry native "Entry" {
9591 9591
9592 @DomName('Entry.filesystem') 9592 @DomName('Entry.filesystem')
9593 @DocsEditable 9593 @DocsEditable
9594 final FileSystem filesystem; 9594 final FileSystem filesystem;
9595 9595
9596 @DomName('Entry.fullPath') 9596 @DomName('Entry.fullPath')
9597 @DocsEditable 9597 @DocsEditable
9598 final String fullPath; 9598 final String fullPath;
9599 9599
9600 @DomName('Entry.isDirectory') 9600 @DomName('Entry.isDirectory')
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
9710 9710
9711 9711
9712 typedef void _ErrorCallback(FileError error); 9712 typedef void _ErrorCallback(FileError error);
9713 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9713 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9714 // for details. All rights reserved. Use of this source code is governed by a 9714 // for details. All rights reserved. Use of this source code is governed by a
9715 // BSD-style license that can be found in the LICENSE file. 9715 // BSD-style license that can be found in the LICENSE file.
9716 9716
9717 9717
9718 @DocsEditable 9718 @DocsEditable
9719 @DomName('ErrorEvent') 9719 @DomName('ErrorEvent')
9720 class ErrorEvent extends Event native "*ErrorEvent" { 9720 class ErrorEvent extends Event native "ErrorEvent" {
9721 9721
9722 @DomName('ErrorEvent.filename') 9722 @DomName('ErrorEvent.filename')
9723 @DocsEditable 9723 @DocsEditable
9724 final String filename; 9724 final String filename;
9725 9725
9726 @DomName('ErrorEvent.lineno') 9726 @DomName('ErrorEvent.lineno')
9727 @DocsEditable 9727 @DocsEditable
9728 final int lineno; 9728 final int lineno;
9729 9729
9730 @DomName('ErrorEvent.message') 9730 @DomName('ErrorEvent.message')
9731 @DocsEditable 9731 @DocsEditable
9732 final String message; 9732 final String message;
9733 } 9733 }
9734 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9734 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9735 // for details. All rights reserved. Use of this source code is governed by a 9735 // for details. All rights reserved. Use of this source code is governed by a
9736 // BSD-style license that can be found in the LICENSE file. 9736 // BSD-style license that can be found in the LICENSE file.
9737 9737
9738 // WARNING: Do not edit - generated code. 9738 // WARNING: Do not edit - generated code.
9739 9739
9740 9740
9741 @DomName('Event') 9741 @DomName('Event')
9742 class Event native "*Event" { 9742 class Event native "Event" {
9743 // In JS, canBubble and cancelable are technically required parameters to 9743 // In JS, canBubble and cancelable are technically required parameters to
9744 // init*Event. In practice, though, if they aren't provided they simply 9744 // init*Event. In practice, though, if they aren't provided they simply
9745 // default to false (since that's Boolean(undefined)). 9745 // default to false (since that's Boolean(undefined)).
9746 // 9746 //
9747 // Contrary to JS, we default canBubble and cancelable to true, since that's 9747 // Contrary to JS, we default canBubble and cancelable to true, since that's
9748 // what people want most of the time anyway. 9748 // what people want most of the time anyway.
9749 factory Event(String type, 9749 factory Event(String type,
9750 {bool canBubble: true, bool cancelable: true}) { 9750 {bool canBubble: true, bool cancelable: true}) {
9751 return new Event.eventType('Event', type, canBubble: canBubble, 9751 return new Event.eventType('Event', type, canBubble: canBubble,
9752 cancelable: canBubble); 9752 cancelable: canBubble);
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
9876 void stopPropagation() native; 9876 void stopPropagation() native;
9877 9877
9878 } 9878 }
9879 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9879 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9880 // for details. All rights reserved. Use of this source code is governed by a 9880 // for details. All rights reserved. Use of this source code is governed by a
9881 // BSD-style license that can be found in the LICENSE file. 9881 // BSD-style license that can be found in the LICENSE file.
9882 9882
9883 9883
9884 @DocsEditable 9884 @DocsEditable
9885 @DomName('EventException') 9885 @DomName('EventException')
9886 class EventException native "*EventException" { 9886 class EventException native "EventException" {
9887 9887
9888 static const int DISPATCH_REQUEST_ERR = 1; 9888 static const int DISPATCH_REQUEST_ERR = 1;
9889 9889
9890 static const int UNSPECIFIED_EVENT_TYPE_ERR = 0; 9890 static const int UNSPECIFIED_EVENT_TYPE_ERR = 0;
9891 9891
9892 @DomName('EventException.code') 9892 @DomName('EventException.code')
9893 @DocsEditable 9893 @DocsEditable
9894 final int code; 9894 final int code;
9895 9895
9896 @DomName('EventException.message') 9896 @DomName('EventException.message')
9897 @DocsEditable 9897 @DocsEditable
9898 final String message; 9898 final String message;
9899 9899
9900 @DomName('EventException.name') 9900 @DomName('EventException.name')
9901 @DocsEditable 9901 @DocsEditable
9902 final String name; 9902 final String name;
9903 9903
9904 @DomName('EventException.toString') 9904 @DomName('EventException.toString')
9905 @DocsEditable 9905 @DocsEditable
9906 String toString() native; 9906 String toString() native;
9907 } 9907 }
9908 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 9908 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
9909 // for details. All rights reserved. Use of this source code is governed by a 9909 // for details. All rights reserved. Use of this source code is governed by a
9910 // BSD-style license that can be found in the LICENSE file. 9910 // BSD-style license that can be found in the LICENSE file.
9911 9911
9912 9912
9913 @DomName('EventSource') 9913 @DomName('EventSource')
9914 class EventSource extends EventTarget native "*EventSource" { 9914 class EventSource extends EventTarget native "EventSource" {
9915 factory EventSource(String title, {withCredentials: false}) { 9915 factory EventSource(String title, {withCredentials: false}) {
9916 var parsedOptions = { 9916 var parsedOptions = {
9917 'withCredentials': withCredentials, 9917 'withCredentials': withCredentials,
9918 }; 9918 };
9919 return EventSource._factoryEventSource(title, parsedOptions); 9919 return EventSource._factoryEventSource(title, parsedOptions);
9920 } 9920 }
9921 9921
9922 @DomName('EventSource.errorEvent') 9922 @DomName('EventSource.errorEvent')
9923 @DocsEditable 9923 @DocsEditable
9924 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error'); 9924 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error');
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
10044 } 10044 }
10045 10045
10046 /** 10046 /**
10047 * Base class for all browser objects that support events. 10047 * Base class for all browser objects that support events.
10048 * 10048 *
10049 * Use the [on] property to add, and remove events (rather than 10049 * Use the [on] property to add, and remove events (rather than
10050 * [$dom_addEventListener] and [$dom_removeEventListener] 10050 * [$dom_addEventListener] and [$dom_removeEventListener]
10051 * for compile-time type checks and a more concise API. 10051 * for compile-time type checks and a more concise API.
10052 */ 10052 */
10053 @DomName('EventTarget') 10053 @DomName('EventTarget')
10054 class EventTarget native "*EventTarget" { 10054 class EventTarget native "EventTarget" {
10055 10055
10056 /** 10056 /**
10057 * This is an ease-of-use accessor for event streams which should only be 10057 * This is an ease-of-use accessor for event streams which should only be
10058 * used when an explicit accessor is not available. 10058 * used when an explicit accessor is not available.
10059 */ 10059 */
10060 Events get on => new Events(this); 10060 Events get on => new Events(this);
10061 10061
10062 @JSName('addEventListener') 10062 @JSName('addEventListener')
10063 @DomName('EventTarget.addEventListener') 10063 @DomName('EventTarget.addEventListener')
10064 @DocsEditable 10064 @DocsEditable
10065 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; 10065 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native;
10066 10066
10067 @DomName('EventTarget.dispatchEvent') 10067 @DomName('EventTarget.dispatchEvent')
10068 @DocsEditable 10068 @DocsEditable
10069 bool dispatchEvent(Event event) native; 10069 bool dispatchEvent(Event event) native;
10070 10070
10071 @JSName('removeEventListener') 10071 @JSName('removeEventListener')
10072 @DomName('EventTarget.removeEventListener') 10072 @DomName('EventTarget.removeEventListener')
10073 @DocsEditable 10073 @DocsEditable
10074 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native; 10074 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native;
10075 10075
10076 } 10076 }
10077 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10077 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10078 // for details. All rights reserved. Use of this source code is governed by a 10078 // for details. All rights reserved. Use of this source code is governed by a
10079 // BSD-style license that can be found in the LICENSE file. 10079 // BSD-style license that can be found in the LICENSE file.
10080 10080
10081 10081
10082 @DocsEditable 10082 @DocsEditable
10083 @DomName('HTMLFieldSetElement') 10083 @DomName('HTMLFieldSetElement')
10084 class FieldSetElement extends Element native "*HTMLFieldSetElement" { 10084 class FieldSetElement extends Element native "HTMLFieldSetElement" {
10085 10085
10086 @DomName('HTMLFieldSetElement.HTMLFieldSetElement') 10086 @DomName('HTMLFieldSetElement.HTMLFieldSetElement')
10087 @DocsEditable 10087 @DocsEditable
10088 factory FieldSetElement() => document.$dom_createElement("fieldset"); 10088 factory FieldSetElement() => document.$dom_createElement("fieldset");
10089 10089
10090 @DomName('HTMLFieldSetElement.disabled') 10090 @DomName('HTMLFieldSetElement.disabled')
10091 @DocsEditable 10091 @DocsEditable
10092 bool disabled; 10092 bool disabled;
10093 10093
10094 @DomName('HTMLFieldSetElement.elements') 10094 @DomName('HTMLFieldSetElement.elements')
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
10127 @DocsEditable 10127 @DocsEditable
10128 void setCustomValidity(String error) native; 10128 void setCustomValidity(String error) native;
10129 } 10129 }
10130 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10130 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10131 // for details. All rights reserved. Use of this source code is governed by a 10131 // for details. All rights reserved. Use of this source code is governed by a
10132 // BSD-style license that can be found in the LICENSE file. 10132 // BSD-style license that can be found in the LICENSE file.
10133 10133
10134 10134
10135 @DocsEditable 10135 @DocsEditable
10136 @DomName('File') 10136 @DomName('File')
10137 class File extends Blob native "*File" { 10137 class File extends Blob native "File" {
10138 10138
10139 DateTime get lastModifiedDate => _convertNativeToDart_DateTime(this._get_lastM odifiedDate); 10139 DateTime get lastModifiedDate => _convertNativeToDart_DateTime(this._get_lastM odifiedDate);
10140 @JSName('lastModifiedDate') 10140 @JSName('lastModifiedDate')
10141 @DomName('File.lastModifiedDate') 10141 @DomName('File.lastModifiedDate')
10142 @DocsEditable 10142 @DocsEditable
10143 final dynamic _get_lastModifiedDate; 10143 final dynamic _get_lastModifiedDate;
10144 10144
10145 @DomName('File.name') 10145 @DomName('File.name')
10146 @DocsEditable 10146 @DocsEditable
10147 final String name; 10147 final String name;
(...skipping 14 matching lines...) Expand all
10162 10162
10163 10163
10164 typedef void _FileCallback(File file); 10164 typedef void _FileCallback(File file);
10165 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10165 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10166 // for details. All rights reserved. Use of this source code is governed by a 10166 // for details. All rights reserved. Use of this source code is governed by a
10167 // BSD-style license that can be found in the LICENSE file. 10167 // BSD-style license that can be found in the LICENSE file.
10168 10168
10169 10169
10170 @DocsEditable 10170 @DocsEditable
10171 @DomName('FileEntry') 10171 @DomName('FileEntry')
10172 class FileEntry extends Entry native "*FileEntry" { 10172 class FileEntry extends Entry native "FileEntry" {
10173 10173
10174 @JSName('createWriter') 10174 @JSName('createWriter')
10175 @DomName('FileEntry.createWriter') 10175 @DomName('FileEntry.createWriter')
10176 @DocsEditable 10176 @DocsEditable
10177 void _createWriter(_FileWriterCallback successCallback, [_ErrorCallback errorC allback]) native; 10177 void _createWriter(_FileWriterCallback successCallback, [_ErrorCallback errorC allback]) native;
10178 10178
10179 @JSName('createWriter') 10179 @JSName('createWriter')
10180 @DomName('FileEntry.createWriter') 10180 @DomName('FileEntry.createWriter')
10181 @DocsEditable 10181 @DocsEditable
10182 Future<FileWriter> createWriter() { 10182 Future<FileWriter> createWriter() {
(...skipping 20 matching lines...) Expand all
10203 return completer.future; 10203 return completer.future;
10204 } 10204 }
10205 } 10205 }
10206 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10206 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10207 // for details. All rights reserved. Use of this source code is governed by a 10207 // for details. All rights reserved. Use of this source code is governed by a
10208 // BSD-style license that can be found in the LICENSE file. 10208 // BSD-style license that can be found in the LICENSE file.
10209 10209
10210 10210
10211 @DocsEditable 10211 @DocsEditable
10212 @DomName('FileError') 10212 @DomName('FileError')
10213 class FileError native "*FileError" { 10213 class FileError native "FileError" {
10214 10214
10215 static const int ABORT_ERR = 3; 10215 static const int ABORT_ERR = 3;
10216 10216
10217 static const int ENCODING_ERR = 5; 10217 static const int ENCODING_ERR = 5;
10218 10218
10219 static const int INVALID_MODIFICATION_ERR = 9; 10219 static const int INVALID_MODIFICATION_ERR = 9;
10220 10220
10221 static const int INVALID_STATE_ERR = 7; 10221 static const int INVALID_STATE_ERR = 7;
10222 10222
10223 static const int NOT_FOUND_ERR = 1; 10223 static const int NOT_FOUND_ERR = 1;
(...skipping 16 matching lines...) Expand all
10240 @DocsEditable 10240 @DocsEditable
10241 final int code; 10241 final int code;
10242 } 10242 }
10243 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10243 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10244 // for details. All rights reserved. Use of this source code is governed by a 10244 // for details. All rights reserved. Use of this source code is governed by a
10245 // BSD-style license that can be found in the LICENSE file. 10245 // BSD-style license that can be found in the LICENSE file.
10246 10246
10247 10247
10248 @DocsEditable 10248 @DocsEditable
10249 @DomName('FileException') 10249 @DomName('FileException')
10250 class FileException native "*FileException" { 10250 class FileException native "FileException" {
10251 10251
10252 static const int ABORT_ERR = 3; 10252 static const int ABORT_ERR = 3;
10253 10253
10254 static const int ENCODING_ERR = 5; 10254 static const int ENCODING_ERR = 5;
10255 10255
10256 static const int INVALID_MODIFICATION_ERR = 9; 10256 static const int INVALID_MODIFICATION_ERR = 9;
10257 10257
10258 static const int INVALID_STATE_ERR = 7; 10258 static const int INVALID_STATE_ERR = 7;
10259 10259
10260 static const int NOT_FOUND_ERR = 1; 10260 static const int NOT_FOUND_ERR = 1;
(...skipping 28 matching lines...) Expand all
10289 @DocsEditable 10289 @DocsEditable
10290 String toString() native; 10290 String toString() native;
10291 } 10291 }
10292 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10292 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10293 // for details. All rights reserved. Use of this source code is governed by a 10293 // for details. All rights reserved. Use of this source code is governed by a
10294 // BSD-style license that can be found in the LICENSE file. 10294 // BSD-style license that can be found in the LICENSE file.
10295 10295
10296 10296
10297 @DocsEditable 10297 @DocsEditable
10298 @DomName('FileList') 10298 @DomName('FileList')
10299 class FileList implements JavaScriptIndexingBehavior, List<File> native "*FileLi st" { 10299 class FileList implements JavaScriptIndexingBehavior, List<File> native "FileLis t" {
10300 10300
10301 @DomName('FileList.length') 10301 @DomName('FileList.length')
10302 @DocsEditable 10302 @DocsEditable
10303 int get length => JS("int", "#.length", this); 10303 int get length => JS("int", "#.length", this);
10304 10304
10305 File operator[](int index) => JS("File", "#[#]", this, index); 10305 File operator[](int index) => JS("File", "#[#]", this, index);
10306 10306
10307 void operator[]=(int index, File value) { 10307 void operator[]=(int index, File value) {
10308 throw new UnsupportedError("Cannot assign element of immutable List."); 10308 throw new UnsupportedError("Cannot assign element of immutable List.");
10309 } 10309 }
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
10506 @DocsEditable 10506 @DocsEditable
10507 File item(int index) native; 10507 File item(int index) native;
10508 } 10508 }
10509 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10509 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10510 // for details. All rights reserved. Use of this source code is governed by a 10510 // for details. All rights reserved. Use of this source code is governed by a
10511 // BSD-style license that can be found in the LICENSE file. 10511 // BSD-style license that can be found in the LICENSE file.
10512 10512
10513 10513
10514 @DocsEditable 10514 @DocsEditable
10515 @DomName('FileReader') 10515 @DomName('FileReader')
10516 class FileReader extends EventTarget native "*FileReader" { 10516 class FileReader extends EventTarget native "FileReader" {
10517 10517
10518 @DomName('FileReader.abortEvent') 10518 @DomName('FileReader.abortEvent')
10519 @DocsEditable 10519 @DocsEditable
10520 static const EventStreamProvider<ProgressEvent> abortEvent = const EventStream Provider<ProgressEvent>('abort'); 10520 static const EventStreamProvider<ProgressEvent> abortEvent = const EventStream Provider<ProgressEvent>('abort');
10521 10521
10522 @DomName('FileReader.errorEvent') 10522 @DomName('FileReader.errorEvent')
10523 @DocsEditable 10523 @DocsEditable
10524 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error'); 10524 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error');
10525 10525
10526 @DomName('FileReader.loadEvent') 10526 @DomName('FileReader.loadEvent')
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
10626 } 10626 }
10627 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10627 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10628 // for details. All rights reserved. Use of this source code is governed by a 10628 // for details. All rights reserved. Use of this source code is governed by a
10629 // BSD-style license that can be found in the LICENSE file. 10629 // BSD-style license that can be found in the LICENSE file.
10630 10630
10631 10631
10632 @DocsEditable 10632 @DocsEditable
10633 @DomName('DOMFileSystem') 10633 @DomName('DOMFileSystem')
10634 @SupportedBrowser(SupportedBrowser.CHROME) 10634 @SupportedBrowser(SupportedBrowser.CHROME)
10635 @Experimental 10635 @Experimental
10636 class FileSystem native "*DOMFileSystem" { 10636 class FileSystem native "DOMFileSystem" {
10637 10637
10638 /// Checks if this type is supported on the current platform. 10638 /// Checks if this type is supported on the current platform.
10639 static bool get supported => JS('bool', '!!(window.webkitRequestFileSystem)'); 10639 static bool get supported => JS('bool', '!!(window.webkitRequestFileSystem)');
10640 10640
10641 @DomName('DOMFileSystem.name') 10641 @DomName('DOMFileSystem.name')
10642 @DocsEditable 10642 @DocsEditable
10643 final String name; 10643 final String name;
10644 10644
10645 @DomName('DOMFileSystem.root') 10645 @DomName('DOMFileSystem.root')
10646 @DocsEditable 10646 @DocsEditable
10647 final DirectoryEntry root; 10647 final DirectoryEntry root;
10648 } 10648 }
10649 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10649 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10650 // for details. All rights reserved. Use of this source code is governed by a 10650 // for details. All rights reserved. Use of this source code is governed by a
10651 // BSD-style license that can be found in the LICENSE file. 10651 // BSD-style license that can be found in the LICENSE file.
10652 10652
10653 // WARNING: Do not edit - generated code. 10653 // WARNING: Do not edit - generated code.
10654 10654
10655 10655
10656 typedef void _FileSystemCallback(FileSystem fileSystem); 10656 typedef void _FileSystemCallback(FileSystem fileSystem);
10657 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10657 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10658 // for details. All rights reserved. Use of this source code is governed by a 10658 // for details. All rights reserved. Use of this source code is governed by a
10659 // BSD-style license that can be found in the LICENSE file. 10659 // BSD-style license that can be found in the LICENSE file.
10660 10660
10661 10661
10662 @DocsEditable 10662 @DocsEditable
10663 @DomName('FileWriter') 10663 @DomName('FileWriter')
10664 class FileWriter extends EventTarget native "*FileWriter" { 10664 class FileWriter extends EventTarget native "FileWriter" {
10665 10665
10666 @DomName('FileWriter.abortEvent') 10666 @DomName('FileWriter.abortEvent')
10667 @DocsEditable 10667 @DocsEditable
10668 static const EventStreamProvider<ProgressEvent> abortEvent = const EventStream Provider<ProgressEvent>('abort'); 10668 static const EventStreamProvider<ProgressEvent> abortEvent = const EventStream Provider<ProgressEvent>('abort');
10669 10669
10670 @DomName('FileWriter.errorEvent') 10670 @DomName('FileWriter.errorEvent')
10671 @DocsEditable 10671 @DocsEditable
10672 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error'); 10672 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error');
10673 10673
10674 @DomName('FileWriter.progressEvent') 10674 @DomName('FileWriter.progressEvent')
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
10771 10771
10772 10772
10773 typedef void _FileWriterCallback(FileWriter fileWriter); 10773 typedef void _FileWriterCallback(FileWriter fileWriter);
10774 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10774 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10775 // for details. All rights reserved. Use of this source code is governed by a 10775 // for details. All rights reserved. Use of this source code is governed by a
10776 // BSD-style license that can be found in the LICENSE file. 10776 // BSD-style license that can be found in the LICENSE file.
10777 10777
10778 10778
10779 @DocsEditable 10779 @DocsEditable
10780 @DomName('FocusEvent') 10780 @DomName('FocusEvent')
10781 class FocusEvent extends UIEvent native "*FocusEvent" { 10781 class FocusEvent extends UIEvent native "FocusEvent" {
10782 10782
10783 EventTarget get relatedTarget => _convertNativeToDart_EventTarget(this._get_re latedTarget); 10783 EventTarget get relatedTarget => _convertNativeToDart_EventTarget(this._get_re latedTarget);
10784 @JSName('relatedTarget') 10784 @JSName('relatedTarget')
10785 @DomName('FocusEvent.relatedTarget') 10785 @DomName('FocusEvent.relatedTarget')
10786 @DocsEditable 10786 @DocsEditable
10787 final dynamic _get_relatedTarget; 10787 final dynamic _get_relatedTarget;
10788 } 10788 }
10789 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10789 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10790 // for details. All rights reserved. Use of this source code is governed by a 10790 // for details. All rights reserved. Use of this source code is governed by a
10791 // BSD-style license that can be found in the LICENSE file. 10791 // BSD-style license that can be found in the LICENSE file.
10792 10792
10793 10793
10794 @DocsEditable 10794 @DocsEditable
10795 @DomName('FontLoader') 10795 @DomName('FontLoader')
10796 class FontLoader extends EventTarget native "*FontLoader" { 10796 class FontLoader extends EventTarget native "FontLoader" {
10797 10797
10798 @DomName('FontLoader.errorEvent') 10798 @DomName('FontLoader.errorEvent')
10799 @DocsEditable 10799 @DocsEditable
10800 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error'); 10800 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error');
10801 10801
10802 @DomName('FontLoader.loadEvent') 10802 @DomName('FontLoader.loadEvent')
10803 @DocsEditable 10803 @DocsEditable
10804 static const EventStreamProvider<Event> loadEvent = const EventStreamProvider< Event>('load'); 10804 static const EventStreamProvider<Event> loadEvent = const EventStreamProvider< Event>('load');
10805 10805
10806 @DomName('FontLoader.loading') 10806 @DomName('FontLoader.loading')
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
10853 // for details. All rights reserved. Use of this source code is governed by a 10853 // for details. All rights reserved. Use of this source code is governed by a
10854 // BSD-style license that can be found in the LICENSE file. 10854 // BSD-style license that can be found in the LICENSE file.
10855 10855
10856 10856
10857 @DocsEditable 10857 @DocsEditable
10858 @DomName('FormData') 10858 @DomName('FormData')
10859 @SupportedBrowser(SupportedBrowser.CHROME) 10859 @SupportedBrowser(SupportedBrowser.CHROME)
10860 @SupportedBrowser(SupportedBrowser.FIREFOX) 10860 @SupportedBrowser(SupportedBrowser.FIREFOX)
10861 @SupportedBrowser(SupportedBrowser.IE, '10') 10861 @SupportedBrowser(SupportedBrowser.IE, '10')
10862 @SupportedBrowser(SupportedBrowser.SAFARI) 10862 @SupportedBrowser(SupportedBrowser.SAFARI)
10863 class FormData native "*FormData" { 10863 class FormData native "FormData" {
10864 10864
10865 @DomName('DOMFormData.DOMFormData') 10865 @DomName('DOMFormData.DOMFormData')
10866 @DocsEditable 10866 @DocsEditable
10867 factory FormData([FormElement form]) { 10867 factory FormData([FormElement form]) {
10868 if (?form) { 10868 if (?form) {
10869 return FormData._create_1(form); 10869 return FormData._create_1(form);
10870 } 10870 }
10871 return FormData._create_2(); 10871 return FormData._create_2();
10872 } 10872 }
10873 static FormData _create_1(form) => JS('FormData', 'new FormData(#)', form); 10873 static FormData _create_1(form) => JS('FormData', 'new FormData(#)', form);
10874 static FormData _create_2() => JS('FormData', 'new FormData()'); 10874 static FormData _create_2() => JS('FormData', 'new FormData()');
10875 10875
10876 /// Checks if this type is supported on the current platform. 10876 /// Checks if this type is supported on the current platform.
10877 static bool get supported => JS('bool', '!!(window.FormData)'); 10877 static bool get supported => JS('bool', '!!(window.FormData)');
10878 10878
10879 @DomName('DOMFormData.append') 10879 @DomName('DOMFormData.append')
10880 @DocsEditable 10880 @DocsEditable
10881 void append(String name, value, [String filename]) native; 10881 void append(String name, value, [String filename]) native;
10882 } 10882 }
10883 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10883 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10884 // for details. All rights reserved. Use of this source code is governed by a 10884 // for details. All rights reserved. Use of this source code is governed by a
10885 // BSD-style license that can be found in the LICENSE file. 10885 // BSD-style license that can be found in the LICENSE file.
10886 10886
10887 10887
10888 @DocsEditable 10888 @DocsEditable
10889 @DomName('HTMLFormElement') 10889 @DomName('HTMLFormElement')
10890 class FormElement extends Element native "*HTMLFormElement" { 10890 class FormElement extends Element native "HTMLFormElement" {
10891 10891
10892 @DomName('HTMLFormElement.HTMLFormElement') 10892 @DomName('HTMLFormElement.HTMLFormElement')
10893 @DocsEditable 10893 @DocsEditable
10894 factory FormElement() => document.$dom_createElement("form"); 10894 factory FormElement() => document.$dom_createElement("form");
10895 10895
10896 @DomName('HTMLFormElement.acceptCharset') 10896 @DomName('HTMLFormElement.acceptCharset')
10897 @DocsEditable 10897 @DocsEditable
10898 String acceptCharset; 10898 String acceptCharset;
10899 10899
10900 @DomName('HTMLFormElement.action') 10900 @DomName('HTMLFormElement.action')
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
10949 @DocsEditable 10949 @DocsEditable
10950 void submit() native; 10950 void submit() native;
10951 } 10951 }
10952 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10952 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10953 // for details. All rights reserved. Use of this source code is governed by a 10953 // for details. All rights reserved. Use of this source code is governed by a
10954 // BSD-style license that can be found in the LICENSE file. 10954 // BSD-style license that can be found in the LICENSE file.
10955 10955
10956 10956
10957 @DocsEditable 10957 @DocsEditable
10958 @DomName('Gamepad') 10958 @DomName('Gamepad')
10959 class Gamepad native "*Gamepad" { 10959 class Gamepad native "Gamepad" {
10960 10960
10961 @DomName('Gamepad.axes') 10961 @DomName('Gamepad.axes')
10962 @DocsEditable 10962 @DocsEditable
10963 final List<num> axes; 10963 final List<num> axes;
10964 10964
10965 @DomName('Gamepad.buttons') 10965 @DomName('Gamepad.buttons')
10966 @DocsEditable 10966 @DocsEditable
10967 final List<num> buttons; 10967 final List<num> buttons;
10968 10968
10969 @DomName('Gamepad.id') 10969 @DomName('Gamepad.id')
10970 @DocsEditable 10970 @DocsEditable
10971 final String id; 10971 final String id;
10972 10972
10973 @DomName('Gamepad.index') 10973 @DomName('Gamepad.index')
10974 @DocsEditable 10974 @DocsEditable
10975 final int index; 10975 final int index;
10976 10976
10977 @DomName('Gamepad.timestamp') 10977 @DomName('Gamepad.timestamp')
10978 @DocsEditable 10978 @DocsEditable
10979 final int timestamp; 10979 final int timestamp;
10980 } 10980 }
10981 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10981 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10982 // for details. All rights reserved. Use of this source code is governed by a 10982 // for details. All rights reserved. Use of this source code is governed by a
10983 // BSD-style license that can be found in the LICENSE file. 10983 // BSD-style license that can be found in the LICENSE file.
10984 10984
10985 10985
10986 @DocsEditable 10986 @DocsEditable
10987 @DomName('Geolocation') 10987 @DomName('Geolocation')
10988 class Geolocation native "*Geolocation" { 10988 class Geolocation native "Geolocation" {
10989 10989
10990 @DomName('Geolocation.getCurrentPosition') 10990 @DomName('Geolocation.getCurrentPosition')
10991 Future<Geoposition> getCurrentPosition({bool enableHighAccuracy, 10991 Future<Geoposition> getCurrentPosition({bool enableHighAccuracy,
10992 Duration timeout, Duration maximumAge}) { 10992 Duration timeout, Duration maximumAge}) {
10993 var options = {}; 10993 var options = {};
10994 if (enableHighAccuracy != null) { 10994 if (enableHighAccuracy != null) {
10995 options['enableHighAccuracy'] = enableHighAccuracy; 10995 options['enableHighAccuracy'] = enableHighAccuracy;
10996 } 10996 }
10997 if (timeout != null) { 10997 if (timeout != null) {
10998 options['timeout'] = timeout.inMilliseconds; 10998 options['timeout'] = timeout.inMilliseconds;
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
11094 } 11094 }
11095 11095
11096 11096
11097 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11097 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11098 // for details. All rights reserved. Use of this source code is governed by a 11098 // for details. All rights reserved. Use of this source code is governed by a
11099 // BSD-style license that can be found in the LICENSE file. 11099 // BSD-style license that can be found in the LICENSE file.
11100 11100
11101 11101
11102 @DocsEditable 11102 @DocsEditable
11103 @DomName('Geoposition') 11103 @DomName('Geoposition')
11104 class Geoposition native "*Geoposition" { 11104 class Geoposition native "Geoposition" {
11105 11105
11106 @DomName('Geoposition.coords') 11106 @DomName('Geoposition.coords')
11107 @DocsEditable 11107 @DocsEditable
11108 final Coordinates coords; 11108 final Coordinates coords;
11109 11109
11110 @DomName('Geoposition.timestamp') 11110 @DomName('Geoposition.timestamp')
11111 @DocsEditable 11111 @DocsEditable
11112 final int timestamp; 11112 final int timestamp;
11113 } 11113 }
11114 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11114 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11115 // for details. All rights reserved. Use of this source code is governed by a 11115 // for details. All rights reserved. Use of this source code is governed by a
11116 // BSD-style license that can be found in the LICENSE file. 11116 // BSD-style license that can be found in the LICENSE file.
11117 11117
11118 11118
11119 @DocsEditable 11119 @DocsEditable
11120 /** 11120 /**
11121 * An `<hr>` tag. 11121 * An `<hr>` tag.
11122 */ 11122 */
11123 @DomName('HTMLHRElement') 11123 @DomName('HTMLHRElement')
11124 class HRElement extends Element native "*HTMLHRElement" { 11124 class HRElement extends Element native "HTMLHRElement" {
11125 11125
11126 @DomName('HTMLHRElement.HTMLHRElement') 11126 @DomName('HTMLHRElement.HTMLHRElement')
11127 @DocsEditable 11127 @DocsEditable
11128 factory HRElement() => document.$dom_createElement("hr"); 11128 factory HRElement() => document.$dom_createElement("hr");
11129 } 11129 }
11130 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 11130 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
11131 // for details. All rights reserved. Use of this source code is governed by a 11131 // for details. All rights reserved. Use of this source code is governed by a
11132 // BSD-style license that can be found in the LICENSE file. 11132 // BSD-style license that can be found in the LICENSE file.
11133 11133
11134 // WARNING: Do not edit - generated code. 11134 // WARNING: Do not edit - generated code.
11135 11135
11136 @DomName('HashChangeEvent') 11136 @DomName('HashChangeEvent')
11137 @SupportedBrowser(SupportedBrowser.CHROME) 11137 @SupportedBrowser(SupportedBrowser.CHROME)
11138 @SupportedBrowser(SupportedBrowser.FIREFOX) 11138 @SupportedBrowser(SupportedBrowser.FIREFOX)
11139 @SupportedBrowser(SupportedBrowser.SAFARI) 11139 @SupportedBrowser(SupportedBrowser.SAFARI)
11140 11140
11141 class HashChangeEvent extends Event native "*HashChangeEvent" { 11141 class HashChangeEvent extends Event native "HashChangeEvent" {
11142 factory HashChangeEvent(String type, 11142 factory HashChangeEvent(String type,
11143 {bool canBubble: true, bool cancelable: true, String oldUrl, 11143 {bool canBubble: true, bool cancelable: true, String oldUrl,
11144 String newUrl}) { 11144 String newUrl}) {
11145 var event = document.$dom_createEvent("HashChangeEvent"); 11145 var event = document.$dom_createEvent("HashChangeEvent");
11146 event.$dom_initHashChangeEvent(type, canBubble, cancelable, oldUrl, newUrl); 11146 event.$dom_initHashChangeEvent(type, canBubble, cancelable, oldUrl, newUrl);
11147 return event; 11147 return event;
11148 } 11148 }
11149 11149
11150 /// Checks if this type is supported on the current platform. 11150 /// Checks if this type is supported on the current platform.
11151 static bool get supported => Device.isEventTypeSupported('HashChangeEvent'); 11151 static bool get supported => Device.isEventTypeSupported('HashChangeEvent');
(...skipping 14 matching lines...) Expand all
11166 void $dom_initHashChangeEvent(String type, bool canBubble, bool cancelable, St ring oldURL, String newURL) native; 11166 void $dom_initHashChangeEvent(String type, bool canBubble, bool cancelable, St ring oldURL, String newURL) native;
11167 11167
11168 } 11168 }
11169 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11169 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11170 // for details. All rights reserved. Use of this source code is governed by a 11170 // for details. All rights reserved. Use of this source code is governed by a
11171 // BSD-style license that can be found in the LICENSE file. 11171 // BSD-style license that can be found in the LICENSE file.
11172 11172
11173 11173
11174 @DocsEditable 11174 @DocsEditable
11175 @DomName('HTMLHeadElement') 11175 @DomName('HTMLHeadElement')
11176 class HeadElement extends Element native "*HTMLHeadElement" { 11176 class HeadElement extends Element native "HTMLHeadElement" {
11177 11177
11178 @DomName('HTMLHeadElement.HTMLHeadElement') 11178 @DomName('HTMLHeadElement.HTMLHeadElement')
11179 @DocsEditable 11179 @DocsEditable
11180 factory HeadElement() => document.$dom_createElement("head"); 11180 factory HeadElement() => document.$dom_createElement("head");
11181 } 11181 }
11182 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11182 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11183 // for details. All rights reserved. Use of this source code is governed by a 11183 // for details. All rights reserved. Use of this source code is governed by a
11184 // BSD-style license that can be found in the LICENSE file. 11184 // BSD-style license that can be found in the LICENSE file.
11185 11185
11186 11186
11187 @DocsEditable 11187 @DocsEditable
11188 @DomName('HTMLHeadingElement') 11188 @DomName('HTMLHeadingElement')
11189 class HeadingElement extends Element native "*HTMLHeadingElement" { 11189 class HeadingElement extends Element native "HTMLHeadingElement" {
11190 11190
11191 @DomName('HTMLHeadingElement.HTMLHeadingElement') 11191 @DomName('HTMLHeadingElement.HTMLHeadingElement')
11192 @DocsEditable 11192 @DocsEditable
11193 factory HeadingElement.h1() => document.$dom_createElement("h1"); 11193 factory HeadingElement.h1() => document.$dom_createElement("h1");
11194 11194
11195 @DomName('HTMLHeadingElement.HTMLHeadingElement') 11195 @DomName('HTMLHeadingElement.HTMLHeadingElement')
11196 @DocsEditable 11196 @DocsEditable
11197 factory HeadingElement.h2() => document.$dom_createElement("h2"); 11197 factory HeadingElement.h2() => document.$dom_createElement("h2");
11198 11198
11199 @DomName('HTMLHeadingElement.HTMLHeadingElement') 11199 @DomName('HTMLHeadingElement.HTMLHeadingElement')
(...skipping 11 matching lines...) Expand all
11211 @DomName('HTMLHeadingElement.HTMLHeadingElement') 11211 @DomName('HTMLHeadingElement.HTMLHeadingElement')
11212 @DocsEditable 11212 @DocsEditable
11213 factory HeadingElement.h6() => document.$dom_createElement("h6"); 11213 factory HeadingElement.h6() => document.$dom_createElement("h6");
11214 } 11214 }
11215 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11215 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11216 // for details. All rights reserved. Use of this source code is governed by a 11216 // for details. All rights reserved. Use of this source code is governed by a
11217 // BSD-style license that can be found in the LICENSE file. 11217 // BSD-style license that can be found in the LICENSE file.
11218 11218
11219 11219
11220 @DomName('History') 11220 @DomName('History')
11221 class History implements HistoryBase native "*History" { 11221 class History implements HistoryBase native "History" {
11222 11222
11223 /** 11223 /**
11224 * Checks if the State APIs are supported on the current platform. 11224 * Checks if the State APIs are supported on the current platform.
11225 * 11225 *
11226 * See also: 11226 * See also:
11227 * 11227 *
11228 * * [pushState] 11228 * * [pushState]
11229 * * [replaceState] 11229 * * [replaceState]
11230 * * [state] 11230 * * [state]
11231 */ 11231 */
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
11271 @SupportedBrowser(SupportedBrowser.SAFARI) 11271 @SupportedBrowser(SupportedBrowser.SAFARI)
11272 void replaceState(Object data, String title, [String url]) native; 11272 void replaceState(Object data, String title, [String url]) native;
11273 } 11273 }
11274 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11274 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11275 // for details. All rights reserved. Use of this source code is governed by a 11275 // for details. All rights reserved. Use of this source code is governed by a
11276 // BSD-style license that can be found in the LICENSE file. 11276 // BSD-style license that can be found in the LICENSE file.
11277 11277
11278 11278
11279 @DocsEditable 11279 @DocsEditable
11280 @DomName('HTMLAllCollection') 11280 @DomName('HTMLAllCollection')
11281 class HtmlAllCollection implements JavaScriptIndexingBehavior, List<Node> native "*HTMLAllCollection" { 11281 class HtmlAllCollection implements JavaScriptIndexingBehavior, List<Node> native "HTMLAllCollection" {
11282 11282
11283 @DomName('HTMLAllCollection.length') 11283 @DomName('HTMLAllCollection.length')
11284 @DocsEditable 11284 @DocsEditable
11285 int get length => JS("int", "#.length", this); 11285 int get length => JS("int", "#.length", this);
11286 11286
11287 Node operator[](int index) => JS("Node", "#[#]", this, index); 11287 Node operator[](int index) => JS("Node", "#[#]", this, index);
11288 11288
11289 void operator[]=(int index, Node value) { 11289 void operator[]=(int index, Node value) {
11290 throw new UnsupportedError("Cannot assign element of immutable List."); 11290 throw new UnsupportedError("Cannot assign element of immutable List.");
11291 } 11291 }
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
11498 @Creates('NodeList') 11498 @Creates('NodeList')
11499 List<Node> tags(String name) native; 11499 List<Node> tags(String name) native;
11500 } 11500 }
11501 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11501 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11502 // for details. All rights reserved. Use of this source code is governed by a 11502 // for details. All rights reserved. Use of this source code is governed by a
11503 // BSD-style license that can be found in the LICENSE file. 11503 // BSD-style license that can be found in the LICENSE file.
11504 11504
11505 11505
11506 @DocsEditable 11506 @DocsEditable
11507 @DomName('HTMLCollection') 11507 @DomName('HTMLCollection')
11508 class HtmlCollection implements JavaScriptIndexingBehavior, List<Node> native "* HTMLCollection" { 11508 class HtmlCollection implements JavaScriptIndexingBehavior, List<Node> native "H TMLCollection" {
11509 11509
11510 @DomName('HTMLCollection.length') 11510 @DomName('HTMLCollection.length')
11511 @DocsEditable 11511 @DocsEditable
11512 int get length => JS("int", "#.length", this); 11512 int get length => JS("int", "#.length", this);
11513 11513
11514 Node operator[](int index) => JS("Node", "#[#]", this, index); 11514 Node operator[](int index) => JS("Node", "#[#]", this, index);
11515 11515
11516 void operator[]=(int index, Node value) { 11516 void operator[]=(int index, Node value) {
11517 throw new UnsupportedError("Cannot assign element of immutable List."); 11517 throw new UnsupportedError("Cannot assign element of immutable List.");
11518 } 11518 }
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
11720 Node namedItem(String name) native; 11720 Node namedItem(String name) native;
11721 } 11721 }
11722 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11722 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11723 // for details. All rights reserved. Use of this source code is governed by a 11723 // for details. All rights reserved. Use of this source code is governed by a
11724 // BSD-style license that can be found in the LICENSE file. 11724 // BSD-style license that can be found in the LICENSE file.
11725 11725
11726 // WARNING: Do not edit - generated code. 11726 // WARNING: Do not edit - generated code.
11727 11727
11728 11728
11729 @DomName('HTMLDocument') 11729 @DomName('HTMLDocument')
11730 class HtmlDocument extends Document native "*HTMLDocument" { 11730 class HtmlDocument extends Document native "HTMLDocument" {
11731 11731
11732 @DomName('HTMLDocument.activeElement') 11732 @DomName('HTMLDocument.activeElement')
11733 @DocsEditable 11733 @DocsEditable
11734 final Element activeElement; 11734 final Element activeElement;
11735 11735
11736 11736
11737 @DomName('Document.body') 11737 @DomName('Document.body')
11738 BodyElement body; 11738 BodyElement body;
11739 11739
11740 @DomName('Document.caretRangeFromPoint') 11740 @DomName('Document.caretRangeFromPoint')
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
11877 @Experimental 11877 @Experimental
11878 String get visibilityState => $dom_webkitVisibilityState; 11878 String get visibilityState => $dom_webkitVisibilityState;
11879 } 11879 }
11880 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11880 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11881 // for details. All rights reserved. Use of this source code is governed by a 11881 // for details. All rights reserved. Use of this source code is governed by a
11882 // BSD-style license that can be found in the LICENSE file. 11882 // BSD-style license that can be found in the LICENSE file.
11883 11883
11884 11884
11885 @DocsEditable 11885 @DocsEditable
11886 @DomName('HTMLHtmlElement') 11886 @DomName('HTMLHtmlElement')
11887 class HtmlElement extends Element native "*HTMLHtmlElement" { 11887 class HtmlElement extends Element native "HTMLHtmlElement" {
11888 11888
11889 @DomName('HTMLHtmlElement.HTMLHtmlElement') 11889 @DomName('HTMLHtmlElement.HTMLHtmlElement')
11890 @DocsEditable 11890 @DocsEditable
11891 factory HtmlElement() => document.$dom_createElement("html"); 11891 factory HtmlElement() => document.$dom_createElement("html");
11892 } 11892 }
11893 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11893 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11894 // for details. All rights reserved. Use of this source code is governed by a 11894 // for details. All rights reserved. Use of this source code is governed by a
11895 // BSD-style license that can be found in the LICENSE file. 11895 // BSD-style license that can be found in the LICENSE file.
11896 11896
11897 11897
11898 @DocsEditable 11898 @DocsEditable
11899 @DomName('HTMLFormControlsCollection') 11899 @DomName('HTMLFormControlsCollection')
11900 class HtmlFormControlsCollection extends HtmlCollection native "*HTMLFormControl sCollection" { 11900 class HtmlFormControlsCollection extends HtmlCollection native "HTMLFormControls Collection" {
11901 11901
11902 @DomName('HTMLFormControlsCollection.namedItem') 11902 @DomName('HTMLFormControlsCollection.namedItem')
11903 @DocsEditable 11903 @DocsEditable
11904 Node namedItem(String name) native; 11904 Node namedItem(String name) native;
11905 } 11905 }
11906 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11906 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11907 // for details. All rights reserved. Use of this source code is governed by a 11907 // for details. All rights reserved. Use of this source code is governed by a
11908 // BSD-style license that can be found in the LICENSE file. 11908 // BSD-style license that can be found in the LICENSE file.
11909 11909
11910 11910
11911 @DocsEditable 11911 @DocsEditable
11912 @DomName('HTMLOptionsCollection') 11912 @DomName('HTMLOptionsCollection')
11913 class HtmlOptionsCollection extends HtmlCollection native "*HTMLOptionsCollectio n" { 11913 class HtmlOptionsCollection extends HtmlCollection native "HTMLOptionsCollection " {
11914 } 11914 }
11915 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11915 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11916 // for details. All rights reserved. Use of this source code is governed by a 11916 // for details. All rights reserved. Use of this source code is governed by a
11917 // BSD-style license that can be found in the LICENSE file. 11917 // BSD-style license that can be found in the LICENSE file.
11918 11918
11919 11919
11920 /** 11920 /**
11921 * A utility for retrieving data from a URL. 11921 * A utility for retrieving data from a URL.
11922 * 11922 *
11923 * HttpRequest can be used to obtain data from http, ftp, and file 11923 * HttpRequest can be used to obtain data from http, ftp, and file
(...skipping 13 matching lines...) Expand all
11937 * with HttpRequest. However, there are ways to 11937 * with HttpRequest. However, there are ways to
11938 * [get around this restriction](http://www.dartlang.org/articles/json-web-servi ce/#note-on-jsonp). 11938 * [get around this restriction](http://www.dartlang.org/articles/json-web-servi ce/#note-on-jsonp).
11939 * 11939 *
11940 * See also: 11940 * See also:
11941 * 11941 *
11942 * * [Dart article on using HttpRequests](http://www.dartlang.org/articles/json- web-service/#getting-data) 11942 * * [Dart article on using HttpRequests](http://www.dartlang.org/articles/json- web-service/#getting-data)
11943 * * [JS XMLHttpRequest](https://developer.mozilla.org/en-US/docs/DOM/XMLHttpReq uest) 11943 * * [JS XMLHttpRequest](https://developer.mozilla.org/en-US/docs/DOM/XMLHttpReq uest)
11944 * * [Using XMLHttpRequest](https://developer.mozilla.org/en-US/docs/DOM/XMLHttp Request/Using_XMLHttpRequest) 11944 * * [Using XMLHttpRequest](https://developer.mozilla.org/en-US/docs/DOM/XMLHttp Request/Using_XMLHttpRequest)
11945 */ 11945 */
11946 @DomName('XMLHttpRequest') 11946 @DomName('XMLHttpRequest')
11947 class HttpRequest extends EventTarget native "*XMLHttpRequest" { 11947 class HttpRequest extends EventTarget native "XMLHttpRequest" {
11948 11948
11949 /** 11949 /**
11950 * Creates a URL get request for the specified [url]. 11950 * Creates a URL get request for the specified [url].
11951 * 11951 *
11952 * The server response must be a `text/` mime type for this request to 11952 * The server response must be a `text/` mime type for this request to
11953 * succeed. 11953 * succeed.
11954 * 11954 *
11955 * This is similar to [request] but specialized for HTTP GET requests which 11955 * This is similar to [request] but specialized for HTTP GET requests which
11956 * return text content. 11956 * return text content.
11957 * 11957 *
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
12402 Stream<ProgressEvent> get onReadyStateChange => readyStateChangeEvent.forTarge t(this); 12402 Stream<ProgressEvent> get onReadyStateChange => readyStateChangeEvent.forTarge t(this);
12403 12403
12404 } 12404 }
12405 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12405 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12406 // for details. All rights reserved. Use of this source code is governed by a 12406 // for details. All rights reserved. Use of this source code is governed by a
12407 // BSD-style license that can be found in the LICENSE file. 12407 // BSD-style license that can be found in the LICENSE file.
12408 12408
12409 12409
12410 @DocsEditable 12410 @DocsEditable
12411 @DomName('XMLHttpRequestException') 12411 @DomName('XMLHttpRequestException')
12412 class HttpRequestException native "*XMLHttpRequestException" { 12412 class HttpRequestException native "XMLHttpRequestException" {
12413 12413
12414 static const int ABORT_ERR = 102; 12414 static const int ABORT_ERR = 102;
12415 12415
12416 static const int NETWORK_ERR = 101; 12416 static const int NETWORK_ERR = 101;
12417 12417
12418 @DomName('XMLHttpRequestException.code') 12418 @DomName('XMLHttpRequestException.code')
12419 @DocsEditable 12419 @DocsEditable
12420 final int code; 12420 final int code;
12421 12421
12422 @DomName('XMLHttpRequestException.message') 12422 @DomName('XMLHttpRequestException.message')
(...skipping 11 matching lines...) Expand all
12434 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12434 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12435 // for details. All rights reserved. Use of this source code is governed by a 12435 // for details. All rights reserved. Use of this source code is governed by a
12436 // BSD-style license that can be found in the LICENSE file. 12436 // BSD-style license that can be found in the LICENSE file.
12437 12437
12438 12438
12439 @DocsEditable 12439 @DocsEditable
12440 @DomName('XMLHttpRequestProgressEvent') 12440 @DomName('XMLHttpRequestProgressEvent')
12441 @SupportedBrowser(SupportedBrowser.CHROME) 12441 @SupportedBrowser(SupportedBrowser.CHROME)
12442 @SupportedBrowser(SupportedBrowser.SAFARI) 12442 @SupportedBrowser(SupportedBrowser.SAFARI)
12443 @Experimental 12443 @Experimental
12444 class HttpRequestProgressEvent extends ProgressEvent native "*XMLHttpRequestProg ressEvent" { 12444 class HttpRequestProgressEvent extends ProgressEvent native "XMLHttpRequestProgr essEvent" {
12445 12445
12446 /// Checks if this type is supported on the current platform. 12446 /// Checks if this type is supported on the current platform.
12447 static bool get supported => Device.isEventTypeSupported('XMLHttpRequestProgre ssEvent'); 12447 static bool get supported => Device.isEventTypeSupported('XMLHttpRequestProgre ssEvent');
12448 12448
12449 @DomName('XMLHttpRequestProgressEvent.position') 12449 @DomName('XMLHttpRequestProgressEvent.position')
12450 @DocsEditable 12450 @DocsEditable
12451 final int position; 12451 final int position;
12452 12452
12453 @DomName('XMLHttpRequestProgressEvent.totalSize') 12453 @DomName('XMLHttpRequestProgressEvent.totalSize')
12454 @DocsEditable 12454 @DocsEditable
12455 final int totalSize; 12455 final int totalSize;
12456 } 12456 }
12457 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12457 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12458 // for details. All rights reserved. Use of this source code is governed by a 12458 // for details. All rights reserved. Use of this source code is governed by a
12459 // BSD-style license that can be found in the LICENSE file. 12459 // BSD-style license that can be found in the LICENSE file.
12460 12460
12461 12461
12462 @DocsEditable 12462 @DocsEditable
12463 @DomName('XMLHttpRequestUpload') 12463 @DomName('XMLHttpRequestUpload')
12464 class HttpRequestUpload extends EventTarget native "*XMLHttpRequestUpload" { 12464 class HttpRequestUpload extends EventTarget native "XMLHttpRequestUpload" {
12465 12465
12466 @DomName('XMLHttpRequestUpload.abortEvent') 12466 @DomName('XMLHttpRequestUpload.abortEvent')
12467 @DocsEditable 12467 @DocsEditable
12468 static const EventStreamProvider<ProgressEvent> abortEvent = const EventStream Provider<ProgressEvent>('abort'); 12468 static const EventStreamProvider<ProgressEvent> abortEvent = const EventStream Provider<ProgressEvent>('abort');
12469 12469
12470 @DomName('XMLHttpRequestUpload.errorEvent') 12470 @DomName('XMLHttpRequestUpload.errorEvent')
12471 @DocsEditable 12471 @DocsEditable
12472 static const EventStreamProvider<ProgressEvent> errorEvent = const EventStream Provider<ProgressEvent>('error'); 12472 static const EventStreamProvider<ProgressEvent> errorEvent = const EventStream Provider<ProgressEvent>('error');
12473 12473
12474 @DomName('XMLHttpRequestUpload.loadEvent') 12474 @DomName('XMLHttpRequestUpload.loadEvent')
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
12525 @DocsEditable 12525 @DocsEditable
12526 Stream<ProgressEvent> get onProgress => progressEvent.forTarget(this); 12526 Stream<ProgressEvent> get onProgress => progressEvent.forTarget(this);
12527 } 12527 }
12528 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12528 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12529 // for details. All rights reserved. Use of this source code is governed by a 12529 // for details. All rights reserved. Use of this source code is governed by a
12530 // BSD-style license that can be found in the LICENSE file. 12530 // BSD-style license that can be found in the LICENSE file.
12531 12531
12532 12532
12533 @DocsEditable 12533 @DocsEditable
12534 @DomName('HTMLIFrameElement') 12534 @DomName('HTMLIFrameElement')
12535 class IFrameElement extends Element native "*HTMLIFrameElement" { 12535 class IFrameElement extends Element native "HTMLIFrameElement" {
12536 12536
12537 @DomName('HTMLIFrameElement.HTMLIFrameElement') 12537 @DomName('HTMLIFrameElement.HTMLIFrameElement')
12538 @DocsEditable 12538 @DocsEditable
12539 factory IFrameElement() => document.$dom_createElement("iframe"); 12539 factory IFrameElement() => document.$dom_createElement("iframe");
12540 12540
12541 WindowBase get contentWindow => _convertNativeToDart_Window(this._get_contentW indow); 12541 WindowBase get contentWindow => _convertNativeToDart_Window(this._get_contentW indow);
12542 @JSName('contentWindow') 12542 @JSName('contentWindow')
12543 @DomName('HTMLIFrameElement.contentWindow') 12543 @DomName('HTMLIFrameElement.contentWindow')
12544 @DocsEditable 12544 @DocsEditable
12545 @Creates('Window|=Object') 12545 @Creates('Window|=Object')
(...skipping 27 matching lines...) Expand all
12573 @DomName('HTMLIFrameElement.width') 12573 @DomName('HTMLIFrameElement.width')
12574 @DocsEditable 12574 @DocsEditable
12575 String width; 12575 String width;
12576 } 12576 }
12577 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 12577 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
12578 // for details. All rights reserved. Use of this source code is governed by a 12578 // for details. All rights reserved. Use of this source code is governed by a
12579 // BSD-style license that can be found in the LICENSE file. 12579 // BSD-style license that can be found in the LICENSE file.
12580 12580
12581 @DomName('ImageData') 12581 @DomName('ImageData')
12582 12582
12583 class ImageData native "*ImageData" { 12583 class ImageData native "ImageData" {
12584 12584
12585 12585
12586 @DomName('ImageData.data') 12586 @DomName('ImageData.data')
12587 @DocsEditable 12587 @DocsEditable
12588 final List<int> data; 12588 final List<int> data;
12589 12589
12590 @DomName('ImageData.height') 12590 @DomName('ImageData.height')
12591 @DocsEditable 12591 @DocsEditable
12592 final int height; 12592 final int height;
12593 12593
12594 @DomName('ImageData.width') 12594 @DomName('ImageData.width')
12595 @DocsEditable 12595 @DocsEditable
12596 final int width; 12596 final int width;
12597 12597
12598 } 12598 }
12599 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12599 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12600 // for details. All rights reserved. Use of this source code is governed by a 12600 // for details. All rights reserved. Use of this source code is governed by a
12601 // BSD-style license that can be found in the LICENSE file. 12601 // BSD-style license that can be found in the LICENSE file.
12602 12602
12603 12603
12604 @DomName('HTMLImageElement') 12604 @DomName('HTMLImageElement')
12605 class ImageElement extends Element implements CanvasImageSource native "*HTMLIma geElement" { 12605 class ImageElement extends Element implements CanvasImageSource native "HTMLImag eElement" {
12606 12606
12607 @DomName('HTMLImageElement.HTMLImageElement') 12607 @DomName('HTMLImageElement.HTMLImageElement')
12608 @DocsEditable 12608 @DocsEditable
12609 factory ImageElement({String src, int width, int height}) { 12609 factory ImageElement({String src, int width, int height}) {
12610 var e = document.$dom_createElement("img"); 12610 var e = document.$dom_createElement("img");
12611 if (src != null) e.src = src; 12611 if (src != null) e.src = src;
12612 if (width != null) e.width = width; 12612 if (width != null) e.width = width;
12613 if (height != null) e.height = height; 12613 if (height != null) e.height = height;
12614 return e; 12614 return e;
12615 } 12615 }
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
12692 LocalDateTimeInputElement, 12692 LocalDateTimeInputElement,
12693 NumberInputElement, 12693 NumberInputElement,
12694 RangeInputElement, 12694 RangeInputElement,
12695 CheckboxInputElement, 12695 CheckboxInputElement,
12696 RadioButtonInputElement, 12696 RadioButtonInputElement,
12697 FileUploadInputElement, 12697 FileUploadInputElement,
12698 SubmitButtonInputElement, 12698 SubmitButtonInputElement,
12699 ImageButtonInputElement, 12699 ImageButtonInputElement,
12700 ResetButtonInputElement, 12700 ResetButtonInputElement,
12701 ButtonInputElement 12701 ButtonInputElement
12702 native "*HTMLInputElement" { 12702 native "HTMLInputElement" {
12703 12703
12704 factory InputElement({String type}) { 12704 factory InputElement({String type}) {
12705 var e = document.$dom_createElement("input"); 12705 var e = document.$dom_createElement("input");
12706 if (type != null) { 12706 if (type != null) {
12707 try { 12707 try {
12708 // IE throws an exception for unknown types. 12708 // IE throws an exception for unknown types.
12709 e.type = type; 12709 e.type = type;
12710 } catch(_) {} 12710 } catch(_) {}
12711 } 12711 }
12712 return e; 12712 return e;
(...skipping 821 matching lines...) Expand 10 before | Expand all | Expand 10 after
13534 abstract class ButtonInputElement implements InputElementBase { 13534 abstract class ButtonInputElement implements InputElementBase {
13535 factory ButtonInputElement() => new InputElement(type: 'button'); 13535 factory ButtonInputElement() => new InputElement(type: 'button');
13536 } 13536 }
13537 13537
13538 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13538 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13539 // for details. All rights reserved. Use of this source code is governed by a 13539 // for details. All rights reserved. Use of this source code is governed by a
13540 // BSD-style license that can be found in the LICENSE file. 13540 // BSD-style license that can be found in the LICENSE file.
13541 13541
13542 13542
13543 @DomName('KeyboardEvent') 13543 @DomName('KeyboardEvent')
13544 class KeyboardEvent extends UIEvent native "*KeyboardEvent" { 13544 class KeyboardEvent extends UIEvent native "KeyboardEvent" {
13545 13545
13546 factory KeyboardEvent(String type, 13546 factory KeyboardEvent(String type,
13547 {Window view, bool canBubble: true, bool cancelable: true, 13547 {Window view, bool canBubble: true, bool cancelable: true,
13548 String keyIdentifier: "", int keyLocation: 1, bool ctrlKey: false, 13548 String keyIdentifier: "", int keyLocation: 1, bool ctrlKey: false,
13549 bool altKey: false, bool shiftKey: false, bool metaKey: false, 13549 bool altKey: false, bool shiftKey: false, bool metaKey: false,
13550 bool altGraphKey: false}) { 13550 bool altGraphKey: false}) {
13551 if (view == null) { 13551 if (view == null) {
13552 view = window; 13552 view = window;
13553 } 13553 }
13554 final e = document.$dom_createEvent("KeyboardEvent"); 13554 final e = document.$dom_createEvent("KeyboardEvent");
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
13616 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13616 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13617 // for details. All rights reserved. Use of this source code is governed by a 13617 // for details. All rights reserved. Use of this source code is governed by a
13618 // BSD-style license that can be found in the LICENSE file. 13618 // BSD-style license that can be found in the LICENSE file.
13619 13619
13620 13620
13621 @DocsEditable 13621 @DocsEditable
13622 @DomName('HTMLKeygenElement') 13622 @DomName('HTMLKeygenElement')
13623 @SupportedBrowser(SupportedBrowser.CHROME) 13623 @SupportedBrowser(SupportedBrowser.CHROME)
13624 @SupportedBrowser(SupportedBrowser.SAFARI) 13624 @SupportedBrowser(SupportedBrowser.SAFARI)
13625 @Experimental 13625 @Experimental
13626 class KeygenElement extends Element native "*HTMLKeygenElement" { 13626 class KeygenElement extends Element native "HTMLKeygenElement" {
13627 13627
13628 @DomName('HTMLKeygenElement.HTMLKeygenElement') 13628 @DomName('HTMLKeygenElement.HTMLKeygenElement')
13629 @DocsEditable 13629 @DocsEditable
13630 factory KeygenElement() => document.$dom_createElement("keygen"); 13630 factory KeygenElement() => document.$dom_createElement("keygen");
13631 13631
13632 /// Checks if this type is supported on the current platform. 13632 /// Checks if this type is supported on the current platform.
13633 static bool get supported => Element.isTagSupported('keygen') && (new Element. tag('keygen') is KeygenElement); 13633 static bool get supported => Element.isTagSupported('keygen') && (new Element. tag('keygen') is KeygenElement);
13634 13634
13635 @DomName('HTMLKeygenElement.autofocus') 13635 @DomName('HTMLKeygenElement.autofocus')
13636 @DocsEditable 13636 @DocsEditable
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
13686 @DocsEditable 13686 @DocsEditable
13687 void setCustomValidity(String error) native; 13687 void setCustomValidity(String error) native;
13688 } 13688 }
13689 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13689 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13690 // for details. All rights reserved. Use of this source code is governed by a 13690 // for details. All rights reserved. Use of this source code is governed by a
13691 // BSD-style license that can be found in the LICENSE file. 13691 // BSD-style license that can be found in the LICENSE file.
13692 13692
13693 13693
13694 @DocsEditable 13694 @DocsEditable
13695 @DomName('HTMLLIElement') 13695 @DomName('HTMLLIElement')
13696 class LIElement extends Element native "*HTMLLIElement" { 13696 class LIElement extends Element native "HTMLLIElement" {
13697 13697
13698 @DomName('HTMLLIElement.HTMLLIElement') 13698 @DomName('HTMLLIElement.HTMLLIElement')
13699 @DocsEditable 13699 @DocsEditable
13700 factory LIElement() => document.$dom_createElement("li"); 13700 factory LIElement() => document.$dom_createElement("li");
13701 13701
13702 @DomName('HTMLLIElement.type') 13702 @DomName('HTMLLIElement.type')
13703 @DocsEditable 13703 @DocsEditable
13704 String type; 13704 String type;
13705 13705
13706 @DomName('HTMLLIElement.value') 13706 @DomName('HTMLLIElement.value')
13707 @DocsEditable 13707 @DocsEditable
13708 int value; 13708 int value;
13709 } 13709 }
13710 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13710 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13711 // for details. All rights reserved. Use of this source code is governed by a 13711 // for details. All rights reserved. Use of this source code is governed by a
13712 // BSD-style license that can be found in the LICENSE file. 13712 // BSD-style license that can be found in the LICENSE file.
13713 13713
13714 13714
13715 @DocsEditable 13715 @DocsEditable
13716 @DomName('HTMLLabelElement') 13716 @DomName('HTMLLabelElement')
13717 class LabelElement extends Element native "*HTMLLabelElement" { 13717 class LabelElement extends Element native "HTMLLabelElement" {
13718 13718
13719 @DomName('HTMLLabelElement.HTMLLabelElement') 13719 @DomName('HTMLLabelElement.HTMLLabelElement')
13720 @DocsEditable 13720 @DocsEditable
13721 factory LabelElement() => document.$dom_createElement("label"); 13721 factory LabelElement() => document.$dom_createElement("label");
13722 13722
13723 @DomName('HTMLLabelElement.control') 13723 @DomName('HTMLLabelElement.control')
13724 @DocsEditable 13724 @DocsEditable
13725 final Element control; 13725 final Element control;
13726 13726
13727 @DomName('HTMLLabelElement.form') 13727 @DomName('HTMLLabelElement.form')
13728 @DocsEditable 13728 @DocsEditable
13729 final FormElement form; 13729 final FormElement form;
13730 13730
13731 @DomName('HTMLLabelElement.htmlFor') 13731 @DomName('HTMLLabelElement.htmlFor')
13732 @DocsEditable 13732 @DocsEditable
13733 String htmlFor; 13733 String htmlFor;
13734 } 13734 }
13735 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13735 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13736 // for details. All rights reserved. Use of this source code is governed by a 13736 // for details. All rights reserved. Use of this source code is governed by a
13737 // BSD-style license that can be found in the LICENSE file. 13737 // BSD-style license that can be found in the LICENSE file.
13738 13738
13739 13739
13740 @DocsEditable 13740 @DocsEditable
13741 @DomName('HTMLLegendElement') 13741 @DomName('HTMLLegendElement')
13742 class LegendElement extends Element native "*HTMLLegendElement" { 13742 class LegendElement extends Element native "HTMLLegendElement" {
13743 13743
13744 @DomName('HTMLLegendElement.HTMLLegendElement') 13744 @DomName('HTMLLegendElement.HTMLLegendElement')
13745 @DocsEditable 13745 @DocsEditable
13746 factory LegendElement() => document.$dom_createElement("legend"); 13746 factory LegendElement() => document.$dom_createElement("legend");
13747 13747
13748 @DomName('HTMLLegendElement.form') 13748 @DomName('HTMLLegendElement.form')
13749 @DocsEditable 13749 @DocsEditable
13750 final FormElement form; 13750 final FormElement form;
13751 } 13751 }
13752 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13752 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13753 // for details. All rights reserved. Use of this source code is governed by a 13753 // for details. All rights reserved. Use of this source code is governed by a
13754 // BSD-style license that can be found in the LICENSE file. 13754 // BSD-style license that can be found in the LICENSE file.
13755 13755
13756 13756
13757 @DocsEditable 13757 @DocsEditable
13758 @DomName('HTMLLinkElement') 13758 @DomName('HTMLLinkElement')
13759 class LinkElement extends Element native "*HTMLLinkElement" { 13759 class LinkElement extends Element native "HTMLLinkElement" {
13760 13760
13761 @DomName('HTMLLinkElement.HTMLLinkElement') 13761 @DomName('HTMLLinkElement.HTMLLinkElement')
13762 @DocsEditable 13762 @DocsEditable
13763 factory LinkElement() => document.$dom_createElement("link"); 13763 factory LinkElement() => document.$dom_createElement("link");
13764 13764
13765 @DomName('HTMLLinkElement.disabled') 13765 @DomName('HTMLLinkElement.disabled')
13766 @DocsEditable 13766 @DocsEditable
13767 bool disabled; 13767 bool disabled;
13768 13768
13769 @DomName('HTMLLinkElement.href') 13769 @DomName('HTMLLinkElement.href')
(...skipping 26 matching lines...) Expand all
13796 } 13796 }
13797 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13797 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13798 // for details. All rights reserved. Use of this source code is governed by a 13798 // for details. All rights reserved. Use of this source code is governed by a
13799 // BSD-style license that can be found in the LICENSE file. 13799 // BSD-style license that can be found in the LICENSE file.
13800 13800
13801 13801
13802 @DocsEditable 13802 @DocsEditable
13803 @DomName('LocalMediaStream') 13803 @DomName('LocalMediaStream')
13804 @SupportedBrowser(SupportedBrowser.CHROME) 13804 @SupportedBrowser(SupportedBrowser.CHROME)
13805 @Experimental 13805 @Experimental
13806 class LocalMediaStream extends MediaStream implements EventTarget native "*Local MediaStream" { 13806 class LocalMediaStream extends MediaStream implements EventTarget native "LocalM ediaStream" {
13807 13807
13808 @DomName('LocalMediaStream.stop') 13808 @DomName('LocalMediaStream.stop')
13809 @DocsEditable 13809 @DocsEditable
13810 void stop() native; 13810 void stop() native;
13811 } 13811 }
13812 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13812 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13813 // for details. All rights reserved. Use of this source code is governed by a 13813 // for details. All rights reserved. Use of this source code is governed by a
13814 // BSD-style license that can be found in the LICENSE file. 13814 // BSD-style license that can be found in the LICENSE file.
13815 13815
13816 13816
13817 @DocsEditable 13817 @DocsEditable
13818 @DomName('Location') 13818 @DomName('Location')
13819 class Location implements LocationBase native "*Location" { 13819 class Location implements LocationBase native "Location" {
13820 13820
13821 @DomName('Location.ancestorOrigins') 13821 @DomName('Location.ancestorOrigins')
13822 @DocsEditable 13822 @DocsEditable
13823 @Returns('DomStringList') 13823 @Returns('DomStringList')
13824 @Creates('DomStringList') 13824 @Creates('DomStringList')
13825 final List<String> ancestorOrigins; 13825 final List<String> ancestorOrigins;
13826 13826
13827 @DomName('Location.hash') 13827 @DomName('Location.hash')
13828 @DocsEditable 13828 @DocsEditable
13829 String hash; 13829 String hash;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
13880 @DocsEditable 13880 @DocsEditable
13881 Object valueOf() native; 13881 Object valueOf() native;
13882 } 13882 }
13883 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13883 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13884 // for details. All rights reserved. Use of this source code is governed by a 13884 // for details. All rights reserved. Use of this source code is governed by a
13885 // BSD-style license that can be found in the LICENSE file. 13885 // BSD-style license that can be found in the LICENSE file.
13886 13886
13887 13887
13888 @DocsEditable 13888 @DocsEditable
13889 @DomName('HTMLMapElement') 13889 @DomName('HTMLMapElement')
13890 class MapElement extends Element native "*HTMLMapElement" { 13890 class MapElement extends Element native "HTMLMapElement" {
13891 13891
13892 @DomName('HTMLMapElement.HTMLMapElement') 13892 @DomName('HTMLMapElement.HTMLMapElement')
13893 @DocsEditable 13893 @DocsEditable
13894 factory MapElement() => document.$dom_createElement("map"); 13894 factory MapElement() => document.$dom_createElement("map");
13895 13895
13896 @DomName('HTMLMapElement.areas') 13896 @DomName('HTMLMapElement.areas')
13897 @DocsEditable 13897 @DocsEditable
13898 final HtmlCollection areas; 13898 final HtmlCollection areas;
13899 13899
13900 @DomName('HTMLMapElement.name') 13900 @DomName('HTMLMapElement.name')
13901 @DocsEditable 13901 @DocsEditable
13902 String name; 13902 String name;
13903 } 13903 }
13904 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13904 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13905 // for details. All rights reserved. Use of this source code is governed by a 13905 // for details. All rights reserved. Use of this source code is governed by a
13906 // BSD-style license that can be found in the LICENSE file. 13906 // BSD-style license that can be found in the LICENSE file.
13907 13907
13908 13908
13909 @DocsEditable 13909 @DocsEditable
13910 @DomName('MediaController') 13910 @DomName('MediaController')
13911 class MediaController extends EventTarget native "*MediaController" { 13911 class MediaController extends EventTarget native "MediaController" {
13912 13912
13913 @DomName('MediaController.MediaController') 13913 @DomName('MediaController.MediaController')
13914 @DocsEditable 13914 @DocsEditable
13915 factory MediaController() { 13915 factory MediaController() {
13916 return MediaController._create_1(); 13916 return MediaController._create_1();
13917 } 13917 }
13918 static MediaController _create_1() => JS('MediaController', 'new MediaControll er()'); 13918 static MediaController _create_1() => JS('MediaController', 'new MediaControll er()');
13919 13919
13920 @DomName('MediaController.buffered') 13920 @DomName('MediaController.buffered')
13921 @DocsEditable 13921 @DocsEditable
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
13987 @DocsEditable 13987 @DocsEditable
13988 void unpause() native; 13988 void unpause() native;
13989 } 13989 }
13990 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13990 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13991 // for details. All rights reserved. Use of this source code is governed by a 13991 // for details. All rights reserved. Use of this source code is governed by a
13992 // BSD-style license that can be found in the LICENSE file. 13992 // BSD-style license that can be found in the LICENSE file.
13993 13993
13994 13994
13995 @DocsEditable 13995 @DocsEditable
13996 @DomName('HTMLMediaElement') 13996 @DomName('HTMLMediaElement')
13997 class MediaElement extends Element native "*HTMLMediaElement" { 13997 class MediaElement extends Element native "HTMLMediaElement" {
13998 13998
13999 @DomName('HTMLMediaElement.canplayEvent') 13999 @DomName('HTMLMediaElement.canplayEvent')
14000 @DocsEditable 14000 @DocsEditable
14001 static const EventStreamProvider<Event> canPlayEvent = const EventStreamProvid er<Event>('canplay'); 14001 static const EventStreamProvider<Event> canPlayEvent = const EventStreamProvid er<Event>('canplay');
14002 14002
14003 @DomName('HTMLMediaElement.canplaythroughEvent') 14003 @DomName('HTMLMediaElement.canplaythroughEvent')
14004 @DocsEditable 14004 @DocsEditable
14005 static const EventStreamProvider<Event> canPlayThroughEvent = const EventStrea mProvider<Event>('canplaythrough'); 14005 static const EventStreamProvider<Event> canPlayThroughEvent = const EventStrea mProvider<Event>('canplaythrough');
14006 14006
14007 @DomName('HTMLMediaElement.durationchangeEvent') 14007 @DomName('HTMLMediaElement.durationchangeEvent')
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
14418 @DocsEditable 14418 @DocsEditable
14419 Stream<MediaKeyEvent> get onNeedKey => needKeyEvent.forTarget(this); 14419 Stream<MediaKeyEvent> get onNeedKey => needKeyEvent.forTarget(this);
14420 } 14420 }
14421 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14421 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14422 // for details. All rights reserved. Use of this source code is governed by a 14422 // for details. All rights reserved. Use of this source code is governed by a
14423 // BSD-style license that can be found in the LICENSE file. 14423 // BSD-style license that can be found in the LICENSE file.
14424 14424
14425 14425
14426 @DocsEditable 14426 @DocsEditable
14427 @DomName('MediaError') 14427 @DomName('MediaError')
14428 class MediaError native "*MediaError" { 14428 class MediaError native "MediaError" {
14429 14429
14430 static const int MEDIA_ERR_ABORTED = 1; 14430 static const int MEDIA_ERR_ABORTED = 1;
14431 14431
14432 static const int MEDIA_ERR_DECODE = 3; 14432 static const int MEDIA_ERR_DECODE = 3;
14433 14433
14434 static const int MEDIA_ERR_ENCRYPTED = 5; 14434 static const int MEDIA_ERR_ENCRYPTED = 5;
14435 14435
14436 static const int MEDIA_ERR_NETWORK = 2; 14436 static const int MEDIA_ERR_NETWORK = 2;
14437 14437
14438 static const int MEDIA_ERR_SRC_NOT_SUPPORTED = 4; 14438 static const int MEDIA_ERR_SRC_NOT_SUPPORTED = 4;
14439 14439
14440 @DomName('MediaError.code') 14440 @DomName('MediaError.code')
14441 @DocsEditable 14441 @DocsEditable
14442 final int code; 14442 final int code;
14443 } 14443 }
14444 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14444 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14445 // for details. All rights reserved. Use of this source code is governed by a 14445 // for details. All rights reserved. Use of this source code is governed by a
14446 // BSD-style license that can be found in the LICENSE file. 14446 // BSD-style license that can be found in the LICENSE file.
14447 14447
14448 14448
14449 @DocsEditable 14449 @DocsEditable
14450 @DomName('MediaKeyError') 14450 @DomName('MediaKeyError')
14451 class MediaKeyError native "*MediaKeyError" { 14451 class MediaKeyError native "MediaKeyError" {
14452 14452
14453 static const int MEDIA_KEYERR_CLIENT = 2; 14453 static const int MEDIA_KEYERR_CLIENT = 2;
14454 14454
14455 static const int MEDIA_KEYERR_DOMAIN = 6; 14455 static const int MEDIA_KEYERR_DOMAIN = 6;
14456 14456
14457 static const int MEDIA_KEYERR_HARDWARECHANGE = 5; 14457 static const int MEDIA_KEYERR_HARDWARECHANGE = 5;
14458 14458
14459 static const int MEDIA_KEYERR_OUTPUT = 4; 14459 static const int MEDIA_KEYERR_OUTPUT = 4;
14460 14460
14461 static const int MEDIA_KEYERR_SERVICE = 3; 14461 static const int MEDIA_KEYERR_SERVICE = 3;
14462 14462
14463 static const int MEDIA_KEYERR_UNKNOWN = 1; 14463 static const int MEDIA_KEYERR_UNKNOWN = 1;
14464 14464
14465 @DomName('MediaKeyError.code') 14465 @DomName('MediaKeyError.code')
14466 @DocsEditable 14466 @DocsEditable
14467 final int code; 14467 final int code;
14468 } 14468 }
14469 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14469 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14470 // for details. All rights reserved. Use of this source code is governed by a 14470 // for details. All rights reserved. Use of this source code is governed by a
14471 // BSD-style license that can be found in the LICENSE file. 14471 // BSD-style license that can be found in the LICENSE file.
14472 14472
14473 14473
14474 @DocsEditable 14474 @DocsEditable
14475 @DomName('MediaKeyEvent') 14475 @DomName('MediaKeyEvent')
14476 class MediaKeyEvent extends Event native "*MediaKeyEvent" { 14476 class MediaKeyEvent extends Event native "MediaKeyEvent" {
14477 14477
14478 @JSName('defaultURL') 14478 @JSName('defaultURL')
14479 @DomName('MediaKeyEvent.defaultURL') 14479 @DomName('MediaKeyEvent.defaultURL')
14480 @DocsEditable 14480 @DocsEditable
14481 final String defaultUrl; 14481 final String defaultUrl;
14482 14482
14483 @DomName('MediaKeyEvent.errorCode') 14483 @DomName('MediaKeyEvent.errorCode')
14484 @DocsEditable 14484 @DocsEditable
14485 final MediaKeyError errorCode; 14485 final MediaKeyError errorCode;
14486 14486
(...skipping 21 matching lines...) Expand all
14508 @DocsEditable 14508 @DocsEditable
14509 final int systemCode; 14509 final int systemCode;
14510 } 14510 }
14511 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14511 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14512 // for details. All rights reserved. Use of this source code is governed by a 14512 // for details. All rights reserved. Use of this source code is governed by a
14513 // BSD-style license that can be found in the LICENSE file. 14513 // BSD-style license that can be found in the LICENSE file.
14514 14514
14515 14515
14516 @DocsEditable 14516 @DocsEditable
14517 @DomName('MediaList') 14517 @DomName('MediaList')
14518 class MediaList native "*MediaList" { 14518 class MediaList native "MediaList" {
14519 14519
14520 @DomName('MediaList.length') 14520 @DomName('MediaList.length')
14521 @DocsEditable 14521 @DocsEditable
14522 final int length; 14522 final int length;
14523 14523
14524 @DomName('MediaList.mediaText') 14524 @DomName('MediaList.mediaText')
14525 @DocsEditable 14525 @DocsEditable
14526 String mediaText; 14526 String mediaText;
14527 14527
14528 @DomName('MediaList.appendMedium') 14528 @DomName('MediaList.appendMedium')
14529 @DocsEditable 14529 @DocsEditable
14530 void appendMedium(String newMedium) native; 14530 void appendMedium(String newMedium) native;
14531 14531
14532 @DomName('MediaList.deleteMedium') 14532 @DomName('MediaList.deleteMedium')
14533 @DocsEditable 14533 @DocsEditable
14534 void deleteMedium(String oldMedium) native; 14534 void deleteMedium(String oldMedium) native;
14535 14535
14536 @DomName('MediaList.item') 14536 @DomName('MediaList.item')
14537 @DocsEditable 14537 @DocsEditable
14538 String item(int index) native; 14538 String item(int index) native;
14539 } 14539 }
14540 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14540 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14541 // for details. All rights reserved. Use of this source code is governed by a 14541 // for details. All rights reserved. Use of this source code is governed by a
14542 // BSD-style license that can be found in the LICENSE file. 14542 // BSD-style license that can be found in the LICENSE file.
14543 14543
14544 14544
14545 @DocsEditable 14545 @DocsEditable
14546 @DomName('MediaQueryList') 14546 @DomName('MediaQueryList')
14547 class MediaQueryList native "*MediaQueryList" { 14547 class MediaQueryList native "MediaQueryList" {
14548 14548
14549 @DomName('MediaQueryList.matches') 14549 @DomName('MediaQueryList.matches')
14550 @DocsEditable 14550 @DocsEditable
14551 final bool matches; 14551 final bool matches;
14552 14552
14553 @DomName('MediaQueryList.media') 14553 @DomName('MediaQueryList.media')
14554 @DocsEditable 14554 @DocsEditable
14555 final String media; 14555 final String media;
14556 14556
14557 @DomName('MediaQueryList.addListener') 14557 @DomName('MediaQueryList.addListener')
(...skipping 14 matching lines...) Expand all
14572 14572
14573 void queryChanged(MediaQueryList list); 14573 void queryChanged(MediaQueryList list);
14574 } 14574 }
14575 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14575 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14576 // for details. All rights reserved. Use of this source code is governed by a 14576 // for details. All rights reserved. Use of this source code is governed by a
14577 // BSD-style license that can be found in the LICENSE file. 14577 // BSD-style license that can be found in the LICENSE file.
14578 14578
14579 14579
14580 @DocsEditable 14580 @DocsEditable
14581 @DomName('MediaSource') 14581 @DomName('MediaSource')
14582 class MediaSource extends EventTarget native "*MediaSource" { 14582 class MediaSource extends EventTarget native "MediaSource" {
14583 14583
14584 @DomName('MediaSource.MediaSource') 14584 @DomName('MediaSource.MediaSource')
14585 @DocsEditable 14585 @DocsEditable
14586 factory MediaSource() { 14586 factory MediaSource() {
14587 return MediaSource._create_1(); 14587 return MediaSource._create_1();
14588 } 14588 }
14589 static MediaSource _create_1() => JS('MediaSource', 'new MediaSource()'); 14589 static MediaSource _create_1() => JS('MediaSource', 'new MediaSource()');
14590 14590
14591 @DomName('MediaSource.activeSourceBuffers') 14591 @DomName('MediaSource.activeSourceBuffers')
14592 @DocsEditable 14592 @DocsEditable
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
14635 void removeSourceBuffer(SourceBuffer buffer) native; 14635 void removeSourceBuffer(SourceBuffer buffer) native;
14636 } 14636 }
14637 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 14637 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
14638 // for details. All rights reserved. Use of this source code is governed by a 14638 // for details. All rights reserved. Use of this source code is governed by a
14639 // BSD-style license that can be found in the LICENSE file. 14639 // BSD-style license that can be found in the LICENSE file.
14640 14640
14641 14641
14642 @DomName('MediaStream') 14642 @DomName('MediaStream')
14643 @SupportedBrowser(SupportedBrowser.CHROME) 14643 @SupportedBrowser(SupportedBrowser.CHROME)
14644 @Experimental 14644 @Experimental
14645 class MediaStream extends EventTarget native "*MediaStream" { 14645 class MediaStream extends EventTarget native "MediaStream" {
14646 14646
14647 @DomName('MediaStream.addtrackEvent') 14647 @DomName('MediaStream.addtrackEvent')
14648 @DocsEditable 14648 @DocsEditable
14649 static const EventStreamProvider<Event> addTrackEvent = const EventStreamProvi der<Event>('addtrack'); 14649 static const EventStreamProvider<Event> addTrackEvent = const EventStreamProvi der<Event>('addtrack');
14650 14650
14651 @DomName('MediaStream.endedEvent') 14651 @DomName('MediaStream.endedEvent')
14652 @DocsEditable 14652 @DocsEditable
14653 static const EventStreamProvider<Event> endedEvent = const EventStreamProvider <Event>('ended'); 14653 static const EventStreamProvider<Event> endedEvent = const EventStreamProvider <Event>('ended');
14654 14654
14655 @DomName('MediaStream.removetrackEvent') 14655 @DomName('MediaStream.removetrackEvent')
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
14750 } 14750 }
14751 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14751 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14752 // for details. All rights reserved. Use of this source code is governed by a 14752 // for details. All rights reserved. Use of this source code is governed by a
14753 // BSD-style license that can be found in the LICENSE file. 14753 // BSD-style license that can be found in the LICENSE file.
14754 14754
14755 14755
14756 @DocsEditable 14756 @DocsEditable
14757 @DomName('MediaStreamEvent') 14757 @DomName('MediaStreamEvent')
14758 @SupportedBrowser(SupportedBrowser.CHROME) 14758 @SupportedBrowser(SupportedBrowser.CHROME)
14759 @Experimental 14759 @Experimental
14760 class MediaStreamEvent extends Event native "*MediaStreamEvent" { 14760 class MediaStreamEvent extends Event native "MediaStreamEvent" {
14761 14761
14762 /// Checks if this type is supported on the current platform. 14762 /// Checks if this type is supported on the current platform.
14763 static bool get supported => Device.isEventTypeSupported('MediaStreamEvent'); 14763 static bool get supported => Device.isEventTypeSupported('MediaStreamEvent');
14764 14764
14765 @DomName('MediaStreamEvent.stream') 14765 @DomName('MediaStreamEvent.stream')
14766 @DocsEditable 14766 @DocsEditable
14767 final MediaStream stream; 14767 final MediaStream stream;
14768 } 14768 }
14769 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14769 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14770 // for details. All rights reserved. Use of this source code is governed by a 14770 // for details. All rights reserved. Use of this source code is governed by a
14771 // BSD-style license that can be found in the LICENSE file. 14771 // BSD-style license that can be found in the LICENSE file.
14772 14772
14773 14773
14774 @DocsEditable 14774 @DocsEditable
14775 @DomName('MediaStreamTrack') 14775 @DomName('MediaStreamTrack')
14776 @SupportedBrowser(SupportedBrowser.CHROME) 14776 @SupportedBrowser(SupportedBrowser.CHROME)
14777 @Experimental 14777 @Experimental
14778 class MediaStreamTrack extends EventTarget native "*MediaStreamTrack" { 14778 class MediaStreamTrack extends EventTarget native "MediaStreamTrack" {
14779 14779
14780 @DomName('MediaStreamTrack.endedEvent') 14780 @DomName('MediaStreamTrack.endedEvent')
14781 @DocsEditable 14781 @DocsEditable
14782 static const EventStreamProvider<Event> endedEvent = const EventStreamProvider <Event>('ended'); 14782 static const EventStreamProvider<Event> endedEvent = const EventStreamProvider <Event>('ended');
14783 14783
14784 @DomName('MediaStreamTrack.muteEvent') 14784 @DomName('MediaStreamTrack.muteEvent')
14785 @DocsEditable 14785 @DocsEditable
14786 static const EventStreamProvider<Event> muteEvent = const EventStreamProvider< Event>('mute'); 14786 static const EventStreamProvider<Event> muteEvent = const EventStreamProvider< Event>('mute');
14787 14787
14788 @DomName('MediaStreamTrack.unmuteEvent') 14788 @DomName('MediaStreamTrack.unmuteEvent')
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
14837 } 14837 }
14838 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14838 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14839 // for details. All rights reserved. Use of this source code is governed by a 14839 // for details. All rights reserved. Use of this source code is governed by a
14840 // BSD-style license that can be found in the LICENSE file. 14840 // BSD-style license that can be found in the LICENSE file.
14841 14841
14842 14842
14843 @DocsEditable 14843 @DocsEditable
14844 @DomName('MediaStreamTrackEvent') 14844 @DomName('MediaStreamTrackEvent')
14845 @SupportedBrowser(SupportedBrowser.CHROME) 14845 @SupportedBrowser(SupportedBrowser.CHROME)
14846 @Experimental 14846 @Experimental
14847 class MediaStreamTrackEvent extends Event native "*MediaStreamTrackEvent" { 14847 class MediaStreamTrackEvent extends Event native "MediaStreamTrackEvent" {
14848 14848
14849 /// Checks if this type is supported on the current platform. 14849 /// Checks if this type is supported on the current platform.
14850 static bool get supported => Device.isEventTypeSupported('MediaStreamTrackEven t'); 14850 static bool get supported => Device.isEventTypeSupported('MediaStreamTrackEven t');
14851 14851
14852 @DomName('MediaStreamTrackEvent.track') 14852 @DomName('MediaStreamTrackEvent.track')
14853 @DocsEditable 14853 @DocsEditable
14854 final MediaStreamTrack track; 14854 final MediaStreamTrack track;
14855 } 14855 }
14856 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14856 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14857 // for details. All rights reserved. Use of this source code is governed by a 14857 // for details. All rights reserved. Use of this source code is governed by a
14858 // BSD-style license that can be found in the LICENSE file. 14858 // BSD-style license that can be found in the LICENSE file.
14859 14859
14860 14860
14861 @DocsEditable 14861 @DocsEditable
14862 @DomName('MemoryInfo') 14862 @DomName('MemoryInfo')
14863 class MemoryInfo native "*MemoryInfo" { 14863 class MemoryInfo native "MemoryInfo" {
14864 14864
14865 @DomName('MemoryInfo.jsHeapSizeLimit') 14865 @DomName('MemoryInfo.jsHeapSizeLimit')
14866 @DocsEditable 14866 @DocsEditable
14867 final int jsHeapSizeLimit; 14867 final int jsHeapSizeLimit;
14868 14868
14869 @DomName('MemoryInfo.totalJSHeapSize') 14869 @DomName('MemoryInfo.totalJSHeapSize')
14870 @DocsEditable 14870 @DocsEditable
14871 final int totalJSHeapSize; 14871 final int totalJSHeapSize;
14872 14872
14873 @DomName('MemoryInfo.usedJSHeapSize') 14873 @DomName('MemoryInfo.usedJSHeapSize')
(...skipping 10 matching lines...) Expand all
14884 * An HTML <menu> element. 14884 * An HTML <menu> element.
14885 * 14885 *
14886 * A <menu> element represents an unordered list of menu commands. 14886 * A <menu> element represents an unordered list of menu commands.
14887 * 14887 *
14888 * See also: 14888 * See also:
14889 * 14889 *
14890 * * [Menu Element](https://developer.mozilla.org/en-US/docs/HTML/Element/menu) from MDN. 14890 * * [Menu Element](https://developer.mozilla.org/en-US/docs/HTML/Element/menu) from MDN.
14891 * * [Menu Element](http://www.w3.org/TR/html5/the-menu-element.html#the-menu-e lement) from the W3C. 14891 * * [Menu Element](http://www.w3.org/TR/html5/the-menu-element.html#the-menu-e lement) from the W3C.
14892 */ 14892 */
14893 @DomName('HTMLMenuElement') 14893 @DomName('HTMLMenuElement')
14894 class MenuElement extends Element native "*HTMLMenuElement" { 14894 class MenuElement extends Element native "HTMLMenuElement" {
14895 14895
14896 @DomName('HTMLMenuElement.HTMLMenuElement') 14896 @DomName('HTMLMenuElement.HTMLMenuElement')
14897 @DocsEditable 14897 @DocsEditable
14898 factory MenuElement() => document.$dom_createElement("menu"); 14898 factory MenuElement() => document.$dom_createElement("menu");
14899 } 14899 }
14900 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14900 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14901 // for details. All rights reserved. Use of this source code is governed by a 14901 // for details. All rights reserved. Use of this source code is governed by a
14902 // BSD-style license that can be found in the LICENSE file. 14902 // BSD-style license that can be found in the LICENSE file.
14903 14903
14904 14904
14905 @DocsEditable 14905 @DocsEditable
14906 @DomName('MessageChannel') 14906 @DomName('MessageChannel')
14907 class MessageChannel native "*MessageChannel" { 14907 class MessageChannel native "MessageChannel" {
14908 14908
14909 @DomName('MessageChannel.MessageChannel') 14909 @DomName('MessageChannel.MessageChannel')
14910 @DocsEditable 14910 @DocsEditable
14911 factory MessageChannel() { 14911 factory MessageChannel() {
14912 return MessageChannel._create_1(); 14912 return MessageChannel._create_1();
14913 } 14913 }
14914 static MessageChannel _create_1() => JS('MessageChannel', 'new MessageChannel( )'); 14914 static MessageChannel _create_1() => JS('MessageChannel', 'new MessageChannel( )');
14915 14915
14916 @DomName('MessageChannel.port1') 14916 @DomName('MessageChannel.port1')
14917 @DocsEditable 14917 @DocsEditable
14918 final MessagePort port1; 14918 final MessagePort port1;
14919 14919
14920 @DomName('MessageChannel.port2') 14920 @DomName('MessageChannel.port2')
14921 @DocsEditable 14921 @DocsEditable
14922 final MessagePort port2; 14922 final MessagePort port2;
14923 } 14923 }
14924 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 14924 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
14925 // 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
14926 // BSD-style license that can be found in the LICENSE file. 14926 // BSD-style license that can be found in the LICENSE file.
14927 14927
14928 // WARNING: Do not edit - generated code. 14928 // WARNING: Do not edit - generated code.
14929 14929
14930 14930
14931 @DomName('MessageEvent') 14931 @DomName('MessageEvent')
14932 class MessageEvent extends Event native "*MessageEvent" { 14932 class MessageEvent extends Event native "MessageEvent" {
14933 factory MessageEvent(String type, 14933 factory MessageEvent(String type,
14934 {bool canBubble: false, bool cancelable: false, Object data, 14934 {bool canBubble: false, bool cancelable: false, Object data,
14935 String origin, String lastEventId, 14935 String origin, String lastEventId,
14936 Window source, List messagePorts}) { 14936 Window source, List messagePorts}) {
14937 if (source == null) { 14937 if (source == null) {
14938 source = window; 14938 source = window;
14939 } 14939 }
14940 var event = document.$dom_createEvent("MessageEvent"); 14940 var event = document.$dom_createEvent("MessageEvent");
14941 event.$dom_initMessageEvent(type, canBubble, cancelable, data, origin, 14941 event.$dom_initMessageEvent(type, canBubble, cancelable, data, origin,
14942 lastEventId, source, messagePorts); 14942 lastEventId, source, messagePorts);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
14978 void $dom_initMessageEvent(String typeArg, bool canBubbleArg, bool cancelableA rg, Object dataArg, String originArg, String lastEventIdArg, Window sourceArg, L ist messagePorts) native; 14978 void $dom_initMessageEvent(String typeArg, bool canBubbleArg, bool cancelableA rg, Object dataArg, String originArg, String lastEventIdArg, Window sourceArg, L ist messagePorts) native;
14979 14979
14980 } 14980 }
14981 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14981 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14982 // for details. All rights reserved. Use of this source code is governed by a 14982 // for details. All rights reserved. Use of this source code is governed by a
14983 // BSD-style license that can be found in the LICENSE file. 14983 // BSD-style license that can be found in the LICENSE file.
14984 14984
14985 14985
14986 @DocsEditable 14986 @DocsEditable
14987 @DomName('MessagePort') 14987 @DomName('MessagePort')
14988 class MessagePort extends EventTarget native "*MessagePort" { 14988 class MessagePort extends EventTarget native "MessagePort" {
14989 14989
14990 @DomName('MessagePort.messageEvent') 14990 @DomName('MessagePort.messageEvent')
14991 @DocsEditable 14991 @DocsEditable
14992 static const EventStreamProvider<MessageEvent> messageEvent = const EventStrea mProvider<MessageEvent>('message'); 14992 static const EventStreamProvider<MessageEvent> messageEvent = const EventStrea mProvider<MessageEvent>('message');
14993 14993
14994 @JSName('addEventListener') 14994 @JSName('addEventListener')
14995 @DomName('MessagePort.addEventListener') 14995 @DomName('MessagePort.addEventListener')
14996 @DocsEditable 14996 @DocsEditable
14997 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; 14997 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native;
14998 14998
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
15038 @DocsEditable 15038 @DocsEditable
15039 Stream<MessageEvent> get onMessage => messageEvent.forTarget(this); 15039 Stream<MessageEvent> get onMessage => messageEvent.forTarget(this);
15040 } 15040 }
15041 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15041 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15042 // for details. All rights reserved. Use of this source code is governed by a 15042 // for details. All rights reserved. Use of this source code is governed by a
15043 // BSD-style license that can be found in the LICENSE file. 15043 // BSD-style license that can be found in the LICENSE file.
15044 15044
15045 15045
15046 @DocsEditable 15046 @DocsEditable
15047 @DomName('HTMLMetaElement') 15047 @DomName('HTMLMetaElement')
15048 class MetaElement extends Element native "*HTMLMetaElement" { 15048 class MetaElement extends Element native "HTMLMetaElement" {
15049 15049
15050 @DomName('HTMLMetaElement.content') 15050 @DomName('HTMLMetaElement.content')
15051 @DocsEditable 15051 @DocsEditable
15052 String content; 15052 String content;
15053 15053
15054 @DomName('HTMLMetaElement.httpEquiv') 15054 @DomName('HTMLMetaElement.httpEquiv')
15055 @DocsEditable 15055 @DocsEditable
15056 String httpEquiv; 15056 String httpEquiv;
15057 15057
15058 @DomName('HTMLMetaElement.name') 15058 @DomName('HTMLMetaElement.name')
15059 @DocsEditable 15059 @DocsEditable
15060 String name; 15060 String name;
15061 } 15061 }
15062 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15062 // 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 15063 // 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. 15064 // BSD-style license that can be found in the LICENSE file.
15065 15065
15066 15066
15067 @DocsEditable 15067 @DocsEditable
15068 @DomName('Metadata') 15068 @DomName('Metadata')
15069 class Metadata native "*Metadata" { 15069 class Metadata native "Metadata" {
15070 15070
15071 DateTime get modificationTime => _convertNativeToDart_DateTime(this._get_modif icationTime); 15071 DateTime get modificationTime => _convertNativeToDart_DateTime(this._get_modif icationTime);
15072 @JSName('modificationTime') 15072 @JSName('modificationTime')
15073 @DomName('Metadata.modificationTime') 15073 @DomName('Metadata.modificationTime')
15074 @DocsEditable 15074 @DocsEditable
15075 final dynamic _get_modificationTime; 15075 final dynamic _get_modificationTime;
15076 15076
15077 @DomName('Metadata.size') 15077 @DomName('Metadata.size')
15078 @DocsEditable 15078 @DocsEditable
15079 final int size; 15079 final int size;
15080 } 15080 }
15081 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15081 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15082 // for details. All rights reserved. Use of this source code is governed by a 15082 // for details. All rights reserved. Use of this source code is governed by a
15083 // BSD-style license that can be found in the LICENSE file. 15083 // BSD-style license that can be found in the LICENSE file.
15084 15084
15085 // WARNING: Do not edit - generated code. 15085 // WARNING: Do not edit - generated code.
15086 15086
15087 15087
15088 typedef void MetadataCallback(Metadata metadata); 15088 typedef void MetadataCallback(Metadata metadata);
15089 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15089 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15090 // for details. All rights reserved. Use of this source code is governed by a 15090 // for details. All rights reserved. Use of this source code is governed by a
15091 // BSD-style license that can be found in the LICENSE file. 15091 // BSD-style license that can be found in the LICENSE file.
15092 15092
15093 15093
15094 @DocsEditable 15094 @DocsEditable
15095 @DomName('HTMLMeterElement') 15095 @DomName('HTMLMeterElement')
15096 @SupportedBrowser(SupportedBrowser.CHROME) 15096 @SupportedBrowser(SupportedBrowser.CHROME)
15097 @SupportedBrowser(SupportedBrowser.FIREFOX) 15097 @SupportedBrowser(SupportedBrowser.FIREFOX)
15098 @SupportedBrowser(SupportedBrowser.SAFARI) 15098 @SupportedBrowser(SupportedBrowser.SAFARI)
15099 class MeterElement extends Element native "*HTMLMeterElement" { 15099 class MeterElement extends Element native "HTMLMeterElement" {
15100 15100
15101 @DomName('HTMLMeterElement.HTMLMeterElement') 15101 @DomName('HTMLMeterElement.HTMLMeterElement')
15102 @DocsEditable 15102 @DocsEditable
15103 factory MeterElement() => document.$dom_createElement("meter"); 15103 factory MeterElement() => document.$dom_createElement("meter");
15104 15104
15105 /// Checks if this type is supported on the current platform. 15105 /// Checks if this type is supported on the current platform.
15106 static bool get supported => Element.isTagSupported('meter'); 15106 static bool get supported => Element.isTagSupported('meter');
15107 15107
15108 @DomName('HTMLMeterElement.high') 15108 @DomName('HTMLMeterElement.high')
15109 @DocsEditable 15109 @DocsEditable
(...skipping 25 matching lines...) Expand all
15135 @DocsEditable 15135 @DocsEditable
15136 num value; 15136 num value;
15137 } 15137 }
15138 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15138 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15139 // for details. All rights reserved. Use of this source code is governed by a 15139 // for details. All rights reserved. Use of this source code is governed by a
15140 // BSD-style license that can be found in the LICENSE file. 15140 // BSD-style license that can be found in the LICENSE file.
15141 15141
15142 15142
15143 @DocsEditable 15143 @DocsEditable
15144 @DomName('HTMLModElement') 15144 @DomName('HTMLModElement')
15145 class ModElement extends Element native "*HTMLModElement" { 15145 class ModElement extends Element native "HTMLModElement" {
15146 15146
15147 @DomName('HTMLModElement.cite') 15147 @DomName('HTMLModElement.cite')
15148 @DocsEditable 15148 @DocsEditable
15149 String cite; 15149 String cite;
15150 15150
15151 @DomName('HTMLModElement.dateTime') 15151 @DomName('HTMLModElement.dateTime')
15152 @DocsEditable 15152 @DocsEditable
15153 String dateTime; 15153 String dateTime;
15154 } 15154 }
15155 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15155 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15156 // for details. All rights reserved. Use of this source code is governed by a 15156 // for details. All rights reserved. Use of this source code is governed by a
15157 // BSD-style license that can be found in the LICENSE file. 15157 // BSD-style license that can be found in the LICENSE file.
15158 15158
15159 15159
15160 @DomName('MouseEvent') 15160 @DomName('MouseEvent')
15161 class MouseEvent extends UIEvent native "*MouseEvent" { 15161 class MouseEvent extends UIEvent native "MouseEvent" {
15162 factory MouseEvent(String type, 15162 factory MouseEvent(String type,
15163 {Window view, int detail: 0, int screenX: 0, int screenY: 0, 15163 {Window view, int detail: 0, int screenX: 0, int screenY: 0,
15164 int clientX: 0, int clientY: 0, int button: 0, bool canBubble: true, 15164 int clientX: 0, int clientY: 0, int button: 0, bool canBubble: true,
15165 bool cancelable: true, bool ctrlKey: false, bool altKey: false, 15165 bool cancelable: true, bool ctrlKey: false, bool altKey: false,
15166 bool shiftKey: false, bool metaKey: false, EventTarget relatedTarget}) { 15166 bool shiftKey: false, bool metaKey: false, EventTarget relatedTarget}) {
15167 15167
15168 if (view == null) { 15168 if (view == null) {
15169 view = window; 15169 view = window;
15170 } 15170 }
15171 var event = document.$dom_createEvent('MouseEvent'); 15171 var event = document.$dom_createEvent('MouseEvent');
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
15327 // WARNING: Do not edit - generated code. 15327 // WARNING: Do not edit - generated code.
15328 15328
15329 15329
15330 typedef void MutationCallback(List<MutationRecord> mutations, MutationObserver o bserver); 15330 typedef void MutationCallback(List<MutationRecord> mutations, MutationObserver o bserver);
15331 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15331 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15332 // for details. All rights reserved. Use of this source code is governed by a 15332 // for details. All rights reserved. Use of this source code is governed by a
15333 // BSD-style license that can be found in the LICENSE file. 15333 // BSD-style license that can be found in the LICENSE file.
15334 15334
15335 15335
15336 @DomName('MutationEvent') 15336 @DomName('MutationEvent')
15337 class MutationEvent extends Event native "*MutationEvent" { 15337 class MutationEvent extends Event native "MutationEvent" {
15338 factory MutationEvent(String type, 15338 factory MutationEvent(String type,
15339 {bool canBubble: false, bool cancelable: false, Node relatedNode, 15339 {bool canBubble: false, bool cancelable: false, Node relatedNode,
15340 String prevValue, String newValue, String attrName, int attrChange: 0}) { 15340 String prevValue, String newValue, String attrName, int attrChange: 0}) {
15341 15341
15342 var event = document.$dom_createEvent('MutationEvent'); 15342 var event = document.$dom_createEvent('MutationEvent');
15343 event.$dom_initMutationEvent(type, canBubble, cancelable, relatedNode, 15343 event.$dom_initMutationEvent(type, canBubble, cancelable, relatedNode,
15344 prevValue, newValue, attrName, attrChange); 15344 prevValue, newValue, attrName, attrChange);
15345 return event; 15345 return event;
15346 } 15346 }
15347 15347
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
15383 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15383 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15384 // for details. All rights reserved. Use of this source code is governed by a 15384 // for details. All rights reserved. Use of this source code is governed by a
15385 // BSD-style license that can be found in the LICENSE file. 15385 // BSD-style license that can be found in the LICENSE file.
15386 15386
15387 15387
15388 @DomName('MutationObserver') 15388 @DomName('MutationObserver')
15389 @SupportedBrowser(SupportedBrowser.CHROME) 15389 @SupportedBrowser(SupportedBrowser.CHROME)
15390 @SupportedBrowser(SupportedBrowser.FIREFOX) 15390 @SupportedBrowser(SupportedBrowser.FIREFOX)
15391 @SupportedBrowser(SupportedBrowser.SAFARI) 15391 @SupportedBrowser(SupportedBrowser.SAFARI)
15392 @Experimental 15392 @Experimental
15393 class MutationObserver native "*MutationObserver" { 15393 class MutationObserver native "MutationObserver,WebKitMutationObserver" {
15394 15394
15395 @DomName('MutationObserver.observe') 15395 @DomName('MutationObserver.observe')
15396 @DocsEditable 15396 @DocsEditable
15397 void _observe(Node target, Map options) { 15397 void _observe(Node target, Map options) {
15398 var options_1 = convertDartToNative_Dictionary(options); 15398 var options_1 = convertDartToNative_Dictionary(options);
15399 __observe_1(target, options_1); 15399 __observe_1(target, options_1);
15400 return; 15400 return;
15401 } 15401 }
15402 @JSName('observe') 15402 @JSName('observe')
15403 @DomName('MutationObserver.observe') 15403 @DomName('MutationObserver.observe')
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
15479 convertDartClosureToJS(callback, 2)); 15479 convertDartClosureToJS(callback, 2));
15480 } 15480 }
15481 } 15481 }
15482 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15482 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15483 // for details. All rights reserved. Use of this source code is governed by a 15483 // for details. All rights reserved. Use of this source code is governed by a
15484 // BSD-style license that can be found in the LICENSE file. 15484 // BSD-style license that can be found in the LICENSE file.
15485 15485
15486 15486
15487 @DocsEditable 15487 @DocsEditable
15488 @DomName('MutationRecord') 15488 @DomName('MutationRecord')
15489 class MutationRecord native "*MutationRecord" { 15489 class MutationRecord native "MutationRecord" {
15490 15490
15491 @DomName('MutationRecord.addedNodes') 15491 @DomName('MutationRecord.addedNodes')
15492 @DocsEditable 15492 @DocsEditable
15493 @Returns('NodeList') 15493 @Returns('NodeList')
15494 @Creates('NodeList') 15494 @Creates('NodeList')
15495 final List<Node> addedNodes; 15495 final List<Node> addedNodes;
15496 15496
15497 @DomName('MutationRecord.attributeName') 15497 @DomName('MutationRecord.attributeName')
15498 @DocsEditable 15498 @DocsEditable
15499 final String attributeName; 15499 final String attributeName;
(...skipping 28 matching lines...) Expand all
15528 @DocsEditable 15528 @DocsEditable
15529 final String type; 15529 final String type;
15530 } 15530 }
15531 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15531 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15532 // for details. All rights reserved. Use of this source code is governed by a 15532 // for details. All rights reserved. Use of this source code is governed by a
15533 // BSD-style license that can be found in the LICENSE file. 15533 // BSD-style license that can be found in the LICENSE file.
15534 15534
15535 15535
15536 @DocsEditable 15536 @DocsEditable
15537 @DomName('WebKitNamedFlow') 15537 @DomName('WebKitNamedFlow')
15538 class NamedFlow extends EventTarget native "*WebKitNamedFlow" { 15538 class NamedFlow extends EventTarget native "WebKitNamedFlow" {
15539 15539
15540 @DomName('NamedFlow.firstEmptyRegionIndex') 15540 @DomName('NamedFlow.firstEmptyRegionIndex')
15541 @DocsEditable 15541 @DocsEditable
15542 final int firstEmptyRegionIndex; 15542 final int firstEmptyRegionIndex;
15543 15543
15544 @DomName('NamedFlow.name') 15544 @DomName('NamedFlow.name')
15545 @DocsEditable 15545 @DocsEditable
15546 final String name; 15546 final String name;
15547 15547
15548 @DomName('NamedFlow.overset') 15548 @DomName('NamedFlow.overset')
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
15580 @DomName('NamedFlow.removeEventListener') 15580 @DomName('NamedFlow.removeEventListener')
15581 @DocsEditable 15581 @DocsEditable
15582 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native; 15582 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native;
15583 } 15583 }
15584 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15584 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15585 // for details. All rights reserved. Use of this source code is governed by a 15585 // for details. All rights reserved. Use of this source code is governed by a
15586 // BSD-style license that can be found in the LICENSE file. 15586 // BSD-style license that can be found in the LICENSE file.
15587 15587
15588 15588
15589 @DomName('Navigator') 15589 @DomName('Navigator')
15590 class Navigator native "*Navigator" { 15590 class Navigator native "Navigator" {
15591 15591
15592 @DomName('Navigator.language') 15592 @DomName('Navigator.language')
15593 String get language => JS('String', '#.language || #.userLanguage', this, 15593 String get language => JS('String', '#.language || #.userLanguage', this,
15594 this); 15594 this);
15595 15595
15596 /** 15596 /**
15597 * Gets a stream (video and or audio) from the local computer. 15597 * Gets a stream (video and or audio) from the local computer.
15598 * 15598 *
15599 * Use [MediaStream.supported] to check if this is supported by the current 15599 * Use [MediaStream.supported] to check if this is supported by the current
15600 * platform. The arguments `audio` and `video` default to `false` (stream does 15600 * platform. The arguments `audio` and `video` default to `false` (stream does
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
15760 List<Gamepad> getGamepads() native; 15760 List<Gamepad> getGamepads() native;
15761 15761
15762 } 15762 }
15763 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15763 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15764 // for details. All rights reserved. Use of this source code is governed by a 15764 // for details. All rights reserved. Use of this source code is governed by a
15765 // BSD-style license that can be found in the LICENSE file. 15765 // BSD-style license that can be found in the LICENSE file.
15766 15766
15767 15767
15768 @DocsEditable 15768 @DocsEditable
15769 @DomName('NavigatorUserMediaError') 15769 @DomName('NavigatorUserMediaError')
15770 class NavigatorUserMediaError native "*NavigatorUserMediaError" { 15770 class NavigatorUserMediaError native "NavigatorUserMediaError" {
15771 15771
15772 static const int PERMISSION_DENIED = 1; 15772 static const int PERMISSION_DENIED = 1;
15773 15773
15774 @DomName('NavigatorUserMediaError.code') 15774 @DomName('NavigatorUserMediaError.code')
15775 @DocsEditable 15775 @DocsEditable
15776 final int code; 15776 final int code;
15777 } 15777 }
15778 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15778 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15779 // for details. All rights reserved. Use of this source code is governed by a 15779 // for details. All rights reserved. Use of this source code is governed by a
15780 // BSD-style license that can be found in the LICENSE file. 15780 // BSD-style license that can be found in the LICENSE file.
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
15974 15974
15975 void set length(int value) { 15975 void set length(int value) {
15976 throw new UnsupportedError( 15976 throw new UnsupportedError(
15977 "Cannot set length on immutable List."); 15977 "Cannot set length on immutable List.");
15978 } 15978 }
15979 15979
15980 Node operator[](int index) => _this.$dom_childNodes[index]; 15980 Node operator[](int index) => _this.$dom_childNodes[index];
15981 } 15981 }
15982 15982
15983 @DomName('Node') 15983 @DomName('Node')
15984 class Node extends EventTarget native "*Node" { 15984 class Node extends EventTarget native "Node" {
15985 List<Node> get nodes { 15985 List<Node> get nodes {
15986 return new _ChildNodeListLazy(this); 15986 return new _ChildNodeListLazy(this);
15987 } 15987 }
15988 15988
15989 void set nodes(Iterable<Node> value) { 15989 void set nodes(Iterable<Node> value) {
15990 // Copy list first since we don't want liveness during iteration. 15990 // Copy list first since we don't want liveness during iteration.
15991 // TODO(jacobr): there is a better way to do this. 15991 // TODO(jacobr): there is a better way to do this.
15992 List copy = new List.from(value); 15992 List copy = new List.from(value);
15993 text = ''; 15993 text = '';
15994 for (Node node in copy) { 15994 for (Node node in copy) {
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
16272 Node $dom_replaceChild(Node newChild, Node oldChild) native; 16272 Node $dom_replaceChild(Node newChild, Node oldChild) native;
16273 16273
16274 } 16274 }
16275 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16275 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16276 // for details. All rights reserved. Use of this source code is governed by a 16276 // for details. All rights reserved. Use of this source code is governed by a
16277 // BSD-style license that can be found in the LICENSE file. 16277 // BSD-style license that can be found in the LICENSE file.
16278 16278
16279 16279
16280 @DocsEditable 16280 @DocsEditable
16281 @DomName('NodeFilter') 16281 @DomName('NodeFilter')
16282 class NodeFilter native "*NodeFilter" { 16282 class NodeFilter native "NodeFilter" {
16283 16283
16284 static const int FILTER_ACCEPT = 1; 16284 static const int FILTER_ACCEPT = 1;
16285 16285
16286 static const int FILTER_REJECT = 2; 16286 static const int FILTER_REJECT = 2;
16287 16287
16288 static const int FILTER_SKIP = 3; 16288 static const int FILTER_SKIP = 3;
16289 16289
16290 static const int SHOW_ALL = 0xFFFFFFFF; 16290 static const int SHOW_ALL = 0xFFFFFFFF;
16291 16291
16292 static const int SHOW_ATTRIBUTE = 0x00000002; 16292 static const int SHOW_ATTRIBUTE = 0x00000002;
(...skipping 24 matching lines...) Expand all
16317 @DocsEditable 16317 @DocsEditable
16318 int acceptNode(Node n) native; 16318 int acceptNode(Node n) native;
16319 } 16319 }
16320 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16320 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16321 // for details. All rights reserved. Use of this source code is governed by a 16321 // for details. All rights reserved. Use of this source code is governed by a
16322 // BSD-style license that can be found in the LICENSE file. 16322 // BSD-style license that can be found in the LICENSE file.
16323 16323
16324 16324
16325 @DocsEditable 16325 @DocsEditable
16326 @DomName('NodeIterator') 16326 @DomName('NodeIterator')
16327 class NodeIterator native "*NodeIterator" { 16327 class NodeIterator native "NodeIterator" {
16328 16328
16329 @DomName('NodeIterator.expandEntityReferences') 16329 @DomName('NodeIterator.expandEntityReferences')
16330 @DocsEditable 16330 @DocsEditable
16331 final bool expandEntityReferences; 16331 final bool expandEntityReferences;
16332 16332
16333 @DomName('NodeIterator.filter') 16333 @DomName('NodeIterator.filter')
16334 @DocsEditable 16334 @DocsEditable
16335 final NodeFilter filter; 16335 final NodeFilter filter;
16336 16336
16337 @DomName('NodeIterator.pointerBeforeReferenceNode') 16337 @DomName('NodeIterator.pointerBeforeReferenceNode')
(...skipping 24 matching lines...) Expand all
16362 @DocsEditable 16362 @DocsEditable
16363 Node previousNode() native; 16363 Node previousNode() native;
16364 } 16364 }
16365 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16365 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16366 // for details. All rights reserved. Use of this source code is governed by a 16366 // for details. All rights reserved. Use of this source code is governed by a
16367 // BSD-style license that can be found in the LICENSE file. 16367 // BSD-style license that can be found in the LICENSE file.
16368 16368
16369 16369
16370 @DocsEditable 16370 @DocsEditable
16371 @DomName('NodeList') 16371 @DomName('NodeList')
16372 class NodeList implements JavaScriptIndexingBehavior, List<Node> native "*NodeLi st" { 16372 class NodeList implements JavaScriptIndexingBehavior, List<Node> native "NodeLis t" {
16373 16373
16374 @DomName('NodeList.length') 16374 @DomName('NodeList.length')
16375 @DocsEditable 16375 @DocsEditable
16376 int get length => JS("int", "#.length", this); 16376 int get length => JS("int", "#.length", this);
16377 16377
16378 Node operator[](int index) => JS("Node", "#[#]", this, index); 16378 Node operator[](int index) => JS("Node", "#[#]", this, index);
16379 16379
16380 void operator[]=(int index, Node value) { 16380 void operator[]=(int index, Node value) {
16381 throw new UnsupportedError("Cannot assign element of immutable List."); 16381 throw new UnsupportedError("Cannot assign element of immutable List.");
16382 } 16382 }
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
16580 @DocsEditable 16580 @DocsEditable
16581 Node _item(int index) native; 16581 Node _item(int index) native;
16582 } 16582 }
16583 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16583 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16584 // for details. All rights reserved. Use of this source code is governed by a 16584 // for details. All rights reserved. Use of this source code is governed by a
16585 // BSD-style license that can be found in the LICENSE file. 16585 // BSD-style license that can be found in the LICENSE file.
16586 16586
16587 16587
16588 @DocsEditable 16588 @DocsEditable
16589 @DomName('Notation') 16589 @DomName('Notation')
16590 class Notation extends Node native "*Notation" { 16590 class Notation extends Node native "Notation" {
16591 16591
16592 @DomName('Notation.publicId') 16592 @DomName('Notation.publicId')
16593 @DocsEditable 16593 @DocsEditable
16594 final String publicId; 16594 final String publicId;
16595 16595
16596 @DomName('Notation.systemId') 16596 @DomName('Notation.systemId')
16597 @DocsEditable 16597 @DocsEditable
16598 final String systemId; 16598 final String systemId;
16599 } 16599 }
16600 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 16600 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
16601 // for details. All rights reserved. Use of this source code is governed by a 16601 // for details. All rights reserved. Use of this source code is governed by a
16602 // BSD-style license that can be found in the LICENSE file. 16602 // BSD-style license that can be found in the LICENSE file.
16603 16603
16604 16604
16605 @DomName('Notification') 16605 @DomName('Notification')
16606 class Notification extends EventTarget native "*Notification" { 16606 class Notification extends EventTarget native "Notification" {
16607 16607
16608 factory Notification(String title, {String titleDir: null, String body: null, 16608 factory Notification(String title, {String titleDir: null, String body: null,
16609 String bodyDir: null, String tag: null, String iconUrl: null}) { 16609 String bodyDir: null, String tag: null, String iconUrl: null}) {
16610 16610
16611 var parsedOptions = {}; 16611 var parsedOptions = {};
16612 if (titleDir != null) parsedOptions['titleDir'] = titleDir; 16612 if (titleDir != null) parsedOptions['titleDir'] = titleDir;
16613 if (body != null) parsedOptions['body'] = body; 16613 if (body != null) parsedOptions['body'] = body;
16614 if (bodyDir != null) parsedOptions['bodyDir'] = bodyDir; 16614 if (bodyDir != null) parsedOptions['bodyDir'] = bodyDir;
16615 if (tag != null) parsedOptions['tag'] = tag; 16615 if (tag != null) parsedOptions['tag'] = tag;
16616 if (iconUrl != null) parsedOptions['iconUrl'] = iconUrl; 16616 if (iconUrl != null) parsedOptions['iconUrl'] = iconUrl;
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
16730 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16730 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16731 // for details. All rights reserved. Use of this source code is governed by a 16731 // for details. All rights reserved. Use of this source code is governed by a
16732 // BSD-style license that can be found in the LICENSE file. 16732 // BSD-style license that can be found in the LICENSE file.
16733 16733
16734 16734
16735 @DocsEditable 16735 @DocsEditable
16736 @DomName('NotificationCenter') 16736 @DomName('NotificationCenter')
16737 @SupportedBrowser(SupportedBrowser.CHROME) 16737 @SupportedBrowser(SupportedBrowser.CHROME)
16738 @SupportedBrowser(SupportedBrowser.SAFARI) 16738 @SupportedBrowser(SupportedBrowser.SAFARI)
16739 @Experimental 16739 @Experimental
16740 class NotificationCenter native "*NotificationCenter" { 16740 class NotificationCenter native "NotificationCenter" {
16741 16741
16742 /// Checks if this type is supported on the current platform. 16742 /// Checks if this type is supported on the current platform.
16743 static bool get supported => JS('bool', '!!(window.webkitNotifications)'); 16743 static bool get supported => JS('bool', '!!(window.webkitNotifications)');
16744 16744
16745 @DomName('NotificationCenter.checkPermission') 16745 @DomName('NotificationCenter.checkPermission')
16746 @DocsEditable 16746 @DocsEditable
16747 int checkPermission() native; 16747 int checkPermission() native;
16748 16748
16749 @JSName('createHTMLNotification') 16749 @JSName('createHTMLNotification')
16750 @DomName('NotificationCenter.createHTMLNotification') 16750 @DomName('NotificationCenter.createHTMLNotification')
(...skipping 27 matching lines...) Expand all
16778 16778
16779 16779
16780 typedef void _NotificationPermissionCallback(String permission); 16780 typedef void _NotificationPermissionCallback(String permission);
16781 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16781 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16782 // for details. All rights reserved. Use of this source code is governed by a 16782 // for details. All rights reserved. Use of this source code is governed by a
16783 // BSD-style license that can be found in the LICENSE file. 16783 // BSD-style license that can be found in the LICENSE file.
16784 16784
16785 16785
16786 @DocsEditable 16786 @DocsEditable
16787 @DomName('HTMLOListElement') 16787 @DomName('HTMLOListElement')
16788 class OListElement extends Element native "*HTMLOListElement" { 16788 class OListElement extends Element native "HTMLOListElement" {
16789 16789
16790 @DomName('HTMLOListElement.HTMLOListElement') 16790 @DomName('HTMLOListElement.HTMLOListElement')
16791 @DocsEditable 16791 @DocsEditable
16792 factory OListElement() => document.$dom_createElement("ol"); 16792 factory OListElement() => document.$dom_createElement("ol");
16793 16793
16794 @DomName('HTMLOListElement.reversed') 16794 @DomName('HTMLOListElement.reversed')
16795 @DocsEditable 16795 @DocsEditable
16796 bool reversed; 16796 bool reversed;
16797 16797
16798 @DomName('HTMLOListElement.start') 16798 @DomName('HTMLOListElement.start')
16799 @DocsEditable 16799 @DocsEditable
16800 int start; 16800 int start;
16801 16801
16802 @DomName('HTMLOListElement.type') 16802 @DomName('HTMLOListElement.type')
16803 @DocsEditable 16803 @DocsEditable
16804 String type; 16804 String type;
16805 } 16805 }
16806 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16806 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16807 // for details. All rights reserved. Use of this source code is governed by a 16807 // for details. All rights reserved. Use of this source code is governed by a
16808 // BSD-style license that can be found in the LICENSE file. 16808 // BSD-style license that can be found in the LICENSE file.
16809 16809
16810 16810
16811 @DocsEditable 16811 @DocsEditable
16812 @DomName('HTMLObjectElement') 16812 @DomName('HTMLObjectElement')
16813 @SupportedBrowser(SupportedBrowser.CHROME) 16813 @SupportedBrowser(SupportedBrowser.CHROME)
16814 @SupportedBrowser(SupportedBrowser.IE) 16814 @SupportedBrowser(SupportedBrowser.IE)
16815 @SupportedBrowser(SupportedBrowser.SAFARI) 16815 @SupportedBrowser(SupportedBrowser.SAFARI)
16816 class ObjectElement extends Element native "*HTMLObjectElement" { 16816 class ObjectElement extends Element native "HTMLObjectElement" {
16817 16817
16818 @DomName('HTMLObjectElement.HTMLObjectElement') 16818 @DomName('HTMLObjectElement.HTMLObjectElement')
16819 @DocsEditable 16819 @DocsEditable
16820 factory ObjectElement() => document.$dom_createElement("object"); 16820 factory ObjectElement() => document.$dom_createElement("object");
16821 16821
16822 /// Checks if this type is supported on the current platform. 16822 /// Checks if this type is supported on the current platform.
16823 static bool get supported => Element.isTagSupported('object'); 16823 static bool get supported => Element.isTagSupported('object');
16824 16824
16825 @DomName('HTMLObjectElement.code') 16825 @DomName('HTMLObjectElement.code')
16826 @DocsEditable 16826 @DocsEditable
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
16874 @DocsEditable 16874 @DocsEditable
16875 void setCustomValidity(String error) native; 16875 void setCustomValidity(String error) native;
16876 } 16876 }
16877 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16877 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16878 // for details. All rights reserved. Use of this source code is governed by a 16878 // for details. All rights reserved. Use of this source code is governed by a
16879 // BSD-style license that can be found in the LICENSE file. 16879 // BSD-style license that can be found in the LICENSE file.
16880 16880
16881 16881
16882 @DocsEditable 16882 @DocsEditable
16883 @DomName('HTMLOptGroupElement') 16883 @DomName('HTMLOptGroupElement')
16884 class OptGroupElement extends Element native "*HTMLOptGroupElement" { 16884 class OptGroupElement extends Element native "HTMLOptGroupElement" {
16885 16885
16886 @DomName('HTMLOptGroupElement.HTMLOptGroupElement') 16886 @DomName('HTMLOptGroupElement.HTMLOptGroupElement')
16887 @DocsEditable 16887 @DocsEditable
16888 factory OptGroupElement() => document.$dom_createElement("optgroup"); 16888 factory OptGroupElement() => document.$dom_createElement("optgroup");
16889 16889
16890 @DomName('HTMLOptGroupElement.disabled') 16890 @DomName('HTMLOptGroupElement.disabled')
16891 @DocsEditable 16891 @DocsEditable
16892 bool disabled; 16892 bool disabled;
16893 16893
16894 @DomName('HTMLOptGroupElement.label') 16894 @DomName('HTMLOptGroupElement.label')
16895 @DocsEditable 16895 @DocsEditable
16896 String label; 16896 String label;
16897 } 16897 }
16898 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16898 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16899 // for details. All rights reserved. Use of this source code is governed by a 16899 // for details. All rights reserved. Use of this source code is governed by a
16900 // BSD-style license that can be found in the LICENSE file. 16900 // BSD-style license that can be found in the LICENSE file.
16901 16901
16902 16902
16903 @DocsEditable 16903 @DocsEditable
16904 @DomName('HTMLOptionElement') 16904 @DomName('HTMLOptionElement')
16905 class OptionElement extends Element native "*HTMLOptionElement" { 16905 class OptionElement extends Element native "HTMLOptionElement" {
16906 16906
16907 @DomName('HTMLOptionElement.HTMLOptionElement') 16907 @DomName('HTMLOptionElement.HTMLOptionElement')
16908 @DocsEditable 16908 @DocsEditable
16909 factory OptionElement([String data, String value, bool defaultSelected, bool s elected]) { 16909 factory OptionElement([String data, String value, bool defaultSelected, bool s elected]) {
16910 if (?selected) { 16910 if (?selected) {
16911 return OptionElement._create_1(data, value, defaultSelected, selected); 16911 return OptionElement._create_1(data, value, defaultSelected, selected);
16912 } 16912 }
16913 if (?defaultSelected) { 16913 if (?defaultSelected) {
16914 return OptionElement._create_2(data, value, defaultSelected); 16914 return OptionElement._create_2(data, value, defaultSelected);
16915 } 16915 }
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
16958 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16958 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16959 // for details. All rights reserved. Use of this source code is governed by a 16959 // for details. All rights reserved. Use of this source code is governed by a
16960 // BSD-style license that can be found in the LICENSE file. 16960 // BSD-style license that can be found in the LICENSE file.
16961 16961
16962 16962
16963 @DocsEditable 16963 @DocsEditable
16964 @DomName('HTMLOutputElement') 16964 @DomName('HTMLOutputElement')
16965 @SupportedBrowser(SupportedBrowser.CHROME) 16965 @SupportedBrowser(SupportedBrowser.CHROME)
16966 @SupportedBrowser(SupportedBrowser.FIREFOX) 16966 @SupportedBrowser(SupportedBrowser.FIREFOX)
16967 @SupportedBrowser(SupportedBrowser.SAFARI) 16967 @SupportedBrowser(SupportedBrowser.SAFARI)
16968 class OutputElement extends Element native "*HTMLOutputElement" { 16968 class OutputElement extends Element native "HTMLOutputElement" {
16969 16969
16970 @DomName('HTMLOutputElement.HTMLOutputElement') 16970 @DomName('HTMLOutputElement.HTMLOutputElement')
16971 @DocsEditable 16971 @DocsEditable
16972 factory OutputElement() => document.$dom_createElement("output"); 16972 factory OutputElement() => document.$dom_createElement("output");
16973 16973
16974 /// Checks if this type is supported on the current platform. 16974 /// Checks if this type is supported on the current platform.
16975 static bool get supported => Element.isTagSupported('output'); 16975 static bool get supported => Element.isTagSupported('output');
16976 16976
16977 @DomName('HTMLOutputElement.defaultValue') 16977 @DomName('HTMLOutputElement.defaultValue')
16978 @DocsEditable 16978 @DocsEditable
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
17024 @DocsEditable 17024 @DocsEditable
17025 void setCustomValidity(String error) native; 17025 void setCustomValidity(String error) native;
17026 } 17026 }
17027 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17027 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17028 // for details. All rights reserved. Use of this source code is governed by a 17028 // for details. All rights reserved. Use of this source code is governed by a
17029 // BSD-style license that can be found in the LICENSE file. 17029 // BSD-style license that can be found in the LICENSE file.
17030 17030
17031 17031
17032 @DocsEditable 17032 @DocsEditable
17033 @DomName('OverflowEvent') 17033 @DomName('OverflowEvent')
17034 class OverflowEvent extends Event native "*OverflowEvent" { 17034 class OverflowEvent extends Event native "OverflowEvent" {
17035 17035
17036 static const int BOTH = 2; 17036 static const int BOTH = 2;
17037 17037
17038 static const int HORIZONTAL = 0; 17038 static const int HORIZONTAL = 0;
17039 17039
17040 static const int VERTICAL = 1; 17040 static const int VERTICAL = 1;
17041 17041
17042 @DomName('OverflowEvent.horizontalOverflow') 17042 @DomName('OverflowEvent.horizontalOverflow')
17043 @DocsEditable 17043 @DocsEditable
17044 final bool horizontalOverflow; 17044 final bool horizontalOverflow;
17045 17045
17046 @DomName('OverflowEvent.orient') 17046 @DomName('OverflowEvent.orient')
17047 @DocsEditable 17047 @DocsEditable
17048 final int orient; 17048 final int orient;
17049 17049
17050 @DomName('OverflowEvent.verticalOverflow') 17050 @DomName('OverflowEvent.verticalOverflow')
17051 @DocsEditable 17051 @DocsEditable
17052 final bool verticalOverflow; 17052 final bool verticalOverflow;
17053 } 17053 }
17054 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17054 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17055 // for details. All rights reserved. Use of this source code is governed by a 17055 // for details. All rights reserved. Use of this source code is governed by a
17056 // BSD-style license that can be found in the LICENSE file. 17056 // BSD-style license that can be found in the LICENSE file.
17057 17057
17058 17058
17059 @DocsEditable 17059 @DocsEditable
17060 @DomName('PagePopupController') 17060 @DomName('PagePopupController')
17061 class PagePopupController native "*PagePopupController" { 17061 class PagePopupController native "PagePopupController" {
17062 17062
17063 @DomName('PagePopupController.closePopup') 17063 @DomName('PagePopupController.closePopup')
17064 @DocsEditable 17064 @DocsEditable
17065 void closePopup() native; 17065 void closePopup() native;
17066 17066
17067 @DomName('PagePopupController.formatMonth') 17067 @DomName('PagePopupController.formatMonth')
17068 @DocsEditable 17068 @DocsEditable
17069 String formatMonth(int year, int zeroBaseMonth) native; 17069 String formatMonth(int year, int zeroBaseMonth) native;
17070 17070
17071 @DomName('PagePopupController.formatShortMonth') 17071 @DomName('PagePopupController.formatShortMonth')
(...skipping 16 matching lines...) Expand all
17088 @DocsEditable 17088 @DocsEditable
17089 void setValueAndClosePopup(int numberValue, String stringValue) native; 17089 void setValueAndClosePopup(int numberValue, String stringValue) native;
17090 } 17090 }
17091 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17091 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17092 // for details. All rights reserved. Use of this source code is governed by a 17092 // for details. All rights reserved. Use of this source code is governed by a
17093 // BSD-style license that can be found in the LICENSE file. 17093 // BSD-style license that can be found in the LICENSE file.
17094 17094
17095 17095
17096 @DocsEditable 17096 @DocsEditable
17097 @DomName('PageTransitionEvent') 17097 @DomName('PageTransitionEvent')
17098 class PageTransitionEvent extends Event native "*PageTransitionEvent" { 17098 class PageTransitionEvent extends Event native "PageTransitionEvent" {
17099 17099
17100 @DomName('PageTransitionEvent.persisted') 17100 @DomName('PageTransitionEvent.persisted')
17101 @DocsEditable 17101 @DocsEditable
17102 final bool persisted; 17102 final bool persisted;
17103 } 17103 }
17104 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17104 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17105 // for details. All rights reserved. Use of this source code is governed by a 17105 // for details. All rights reserved. Use of this source code is governed by a
17106 // BSD-style license that can be found in the LICENSE file. 17106 // BSD-style license that can be found in the LICENSE file.
17107 17107
17108 17108
17109 @DocsEditable 17109 @DocsEditable
17110 @DomName('HTMLParagraphElement') 17110 @DomName('HTMLParagraphElement')
17111 class ParagraphElement extends Element native "*HTMLParagraphElement" { 17111 class ParagraphElement extends Element native "HTMLParagraphElement" {
17112 17112
17113 @DomName('HTMLParagraphElement.HTMLParagraphElement') 17113 @DomName('HTMLParagraphElement.HTMLParagraphElement')
17114 @DocsEditable 17114 @DocsEditable
17115 factory ParagraphElement() => document.$dom_createElement("p"); 17115 factory ParagraphElement() => document.$dom_createElement("p");
17116 } 17116 }
17117 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17117 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17118 // for details. All rights reserved. Use of this source code is governed by a 17118 // for details. All rights reserved. Use of this source code is governed by a
17119 // BSD-style license that can be found in the LICENSE file. 17119 // BSD-style license that can be found in the LICENSE file.
17120 17120
17121 17121
17122 @DocsEditable 17122 @DocsEditable
17123 @DomName('HTMLParamElement') 17123 @DomName('HTMLParamElement')
17124 class ParamElement extends Element native "*HTMLParamElement" { 17124 class ParamElement extends Element native "HTMLParamElement" {
17125 17125
17126 @DomName('HTMLParamElement.HTMLParamElement') 17126 @DomName('HTMLParamElement.HTMLParamElement')
17127 @DocsEditable 17127 @DocsEditable
17128 factory ParamElement() => document.$dom_createElement("param"); 17128 factory ParamElement() => document.$dom_createElement("param");
17129 17129
17130 @DomName('HTMLParamElement.name') 17130 @DomName('HTMLParamElement.name')
17131 @DocsEditable 17131 @DocsEditable
17132 String name; 17132 String name;
17133 17133
17134 @DomName('HTMLParamElement.value') 17134 @DomName('HTMLParamElement.value')
17135 @DocsEditable 17135 @DocsEditable
17136 String value; 17136 String value;
17137 } 17137 }
17138 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17138 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17139 // for details. All rights reserved. Use of this source code is governed by a 17139 // for details. All rights reserved. Use of this source code is governed by a
17140 // BSD-style license that can be found in the LICENSE file. 17140 // BSD-style license that can be found in the LICENSE file.
17141 17141
17142 17142
17143 @DocsEditable 17143 @DocsEditable
17144 @DomName('Performance') 17144 @DomName('Performance')
17145 @SupportedBrowser(SupportedBrowser.CHROME) 17145 @SupportedBrowser(SupportedBrowser.CHROME)
17146 @SupportedBrowser(SupportedBrowser.FIREFOX) 17146 @SupportedBrowser(SupportedBrowser.FIREFOX)
17147 @SupportedBrowser(SupportedBrowser.IE) 17147 @SupportedBrowser(SupportedBrowser.IE)
17148 class Performance extends EventTarget native "*Performance" { 17148 class Performance extends EventTarget native "Performance" {
17149 17149
17150 /// Checks if this type is supported on the current platform. 17150 /// Checks if this type is supported on the current platform.
17151 static bool get supported => JS('bool', '!!(window.performance)'); 17151 static bool get supported => JS('bool', '!!(window.performance)');
17152 17152
17153 @DomName('Performance.memory') 17153 @DomName('Performance.memory')
17154 @DocsEditable 17154 @DocsEditable
17155 final MemoryInfo memory; 17155 final MemoryInfo memory;
17156 17156
17157 @DomName('Performance.navigation') 17157 @DomName('Performance.navigation')
17158 @DocsEditable 17158 @DocsEditable
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
17238 @Experimental 17238 @Experimental
17239 void setResourceTimingBufferSize(int maxSize) native; 17239 void setResourceTimingBufferSize(int maxSize) native;
17240 } 17240 }
17241 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17241 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17242 // for details. All rights reserved. Use of this source code is governed by a 17242 // for details. All rights reserved. Use of this source code is governed by a
17243 // BSD-style license that can be found in the LICENSE file. 17243 // BSD-style license that can be found in the LICENSE file.
17244 17244
17245 17245
17246 @DocsEditable 17246 @DocsEditable
17247 @DomName('PerformanceEntry') 17247 @DomName('PerformanceEntry')
17248 class PerformanceEntry native "*PerformanceEntry" { 17248 class PerformanceEntry native "PerformanceEntry" {
17249 17249
17250 @DomName('PerformanceEntry.duration') 17250 @DomName('PerformanceEntry.duration')
17251 @DocsEditable 17251 @DocsEditable
17252 final num duration; 17252 final num duration;
17253 17253
17254 @DomName('PerformanceEntry.entryType') 17254 @DomName('PerformanceEntry.entryType')
17255 @DocsEditable 17255 @DocsEditable
17256 final String entryType; 17256 final String entryType;
17257 17257
17258 @DomName('PerformanceEntry.name') 17258 @DomName('PerformanceEntry.name')
17259 @DocsEditable 17259 @DocsEditable
17260 final String name; 17260 final String name;
17261 17261
17262 @DomName('PerformanceEntry.startTime') 17262 @DomName('PerformanceEntry.startTime')
17263 @DocsEditable 17263 @DocsEditable
17264 final num startTime; 17264 final num startTime;
17265 } 17265 }
17266 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17266 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17267 // for details. All rights reserved. Use of this source code is governed by a 17267 // for details. All rights reserved. Use of this source code is governed by a
17268 // BSD-style license that can be found in the LICENSE file. 17268 // BSD-style license that can be found in the LICENSE file.
17269 17269
17270 17270
17271 @DocsEditable 17271 @DocsEditable
17272 @DomName('PerformanceEntryList') 17272 @DomName('PerformanceEntryList')
17273 class PerformanceEntryList native "*PerformanceEntryList" { 17273 class PerformanceEntryList native "PerformanceEntryList" {
17274 17274
17275 @DomName('PerformanceEntryList.length') 17275 @DomName('PerformanceEntryList.length')
17276 @DocsEditable 17276 @DocsEditable
17277 final int length; 17277 final int length;
17278 17278
17279 @DomName('PerformanceEntryList.item') 17279 @DomName('PerformanceEntryList.item')
17280 @DocsEditable 17280 @DocsEditable
17281 PerformanceEntry item(int index) native; 17281 PerformanceEntry item(int index) native;
17282 } 17282 }
17283 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17283 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17284 // for details. All rights reserved. Use of this source code is governed by a 17284 // for details. All rights reserved. Use of this source code is governed by a
17285 // BSD-style license that can be found in the LICENSE file. 17285 // BSD-style license that can be found in the LICENSE file.
17286 17286
17287 17287
17288 @DocsEditable 17288 @DocsEditable
17289 @DomName('PerformanceMark') 17289 @DomName('PerformanceMark')
17290 class PerformanceMark extends PerformanceEntry native "*PerformanceMark" { 17290 class PerformanceMark extends PerformanceEntry native "PerformanceMark" {
17291 } 17291 }
17292 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17292 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17293 // for details. All rights reserved. Use of this source code is governed by a 17293 // for details. All rights reserved. Use of this source code is governed by a
17294 // BSD-style license that can be found in the LICENSE file. 17294 // BSD-style license that can be found in the LICENSE file.
17295 17295
17296 17296
17297 @DocsEditable 17297 @DocsEditable
17298 @DomName('PerformanceMeasure') 17298 @DomName('PerformanceMeasure')
17299 class PerformanceMeasure extends PerformanceEntry native "*PerformanceMeasure" { 17299 class PerformanceMeasure extends PerformanceEntry native "PerformanceMeasure" {
17300 } 17300 }
17301 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17301 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17302 // for details. All rights reserved. Use of this source code is governed by a 17302 // for details. All rights reserved. Use of this source code is governed by a
17303 // BSD-style license that can be found in the LICENSE file. 17303 // BSD-style license that can be found in the LICENSE file.
17304 17304
17305 17305
17306 @DocsEditable 17306 @DocsEditable
17307 @DomName('PerformanceNavigation') 17307 @DomName('PerformanceNavigation')
17308 class PerformanceNavigation native "*PerformanceNavigation" { 17308 class PerformanceNavigation native "PerformanceNavigation" {
17309 17309
17310 static const int TYPE_BACK_FORWARD = 2; 17310 static const int TYPE_BACK_FORWARD = 2;
17311 17311
17312 static const int TYPE_NAVIGATE = 0; 17312 static const int TYPE_NAVIGATE = 0;
17313 17313
17314 static const int TYPE_RELOAD = 1; 17314 static const int TYPE_RELOAD = 1;
17315 17315
17316 static const int TYPE_RESERVED = 255; 17316 static const int TYPE_RESERVED = 255;
17317 17317
17318 @DomName('PerformanceNavigation.redirectCount') 17318 @DomName('PerformanceNavigation.redirectCount')
17319 @DocsEditable 17319 @DocsEditable
17320 final int redirectCount; 17320 final int redirectCount;
17321 17321
17322 @DomName('PerformanceNavigation.type') 17322 @DomName('PerformanceNavigation.type')
17323 @DocsEditable 17323 @DocsEditable
17324 final int type; 17324 final int type;
17325 } 17325 }
17326 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17326 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17327 // for details. All rights reserved. Use of this source code is governed by a 17327 // for details. All rights reserved. Use of this source code is governed by a
17328 // BSD-style license that can be found in the LICENSE file. 17328 // BSD-style license that can be found in the LICENSE file.
17329 17329
17330 17330
17331 @DocsEditable 17331 @DocsEditable
17332 @DomName('PerformanceResourceTiming') 17332 @DomName('PerformanceResourceTiming')
17333 class PerformanceResourceTiming extends PerformanceEntry native "*PerformanceRes ourceTiming" { 17333 class PerformanceResourceTiming extends PerformanceEntry native "PerformanceReso urceTiming" {
17334 17334
17335 @DomName('PerformanceResourceTiming.connectEnd') 17335 @DomName('PerformanceResourceTiming.connectEnd')
17336 @DocsEditable 17336 @DocsEditable
17337 final num connectEnd; 17337 final num connectEnd;
17338 17338
17339 @DomName('PerformanceResourceTiming.connectStart') 17339 @DomName('PerformanceResourceTiming.connectStart')
17340 @DocsEditable 17340 @DocsEditable
17341 final num connectStart; 17341 final num connectStart;
17342 17342
17343 @DomName('PerformanceResourceTiming.domainLookupEnd') 17343 @DomName('PerformanceResourceTiming.domainLookupEnd')
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
17380 @DocsEditable 17380 @DocsEditable
17381 final num secureConnectionStart; 17381 final num secureConnectionStart;
17382 } 17382 }
17383 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17383 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17384 // for details. All rights reserved. Use of this source code is governed by a 17384 // for details. All rights reserved. Use of this source code is governed by a
17385 // BSD-style license that can be found in the LICENSE file. 17385 // BSD-style license that can be found in the LICENSE file.
17386 17386
17387 17387
17388 @DocsEditable 17388 @DocsEditable
17389 @DomName('PerformanceTiming') 17389 @DomName('PerformanceTiming')
17390 class PerformanceTiming native "*PerformanceTiming" { 17390 class PerformanceTiming native "PerformanceTiming" {
17391 17391
17392 @DomName('PerformanceTiming.connectEnd') 17392 @DomName('PerformanceTiming.connectEnd')
17393 @DocsEditable 17393 @DocsEditable
17394 final int connectEnd; 17394 final int connectEnd;
17395 17395
17396 @DomName('PerformanceTiming.connectStart') 17396 @DomName('PerformanceTiming.connectStart')
17397 @DocsEditable 17397 @DocsEditable
17398 final int connectStart; 17398 final int connectStart;
17399 17399
17400 @DomName('PerformanceTiming.domComplete') 17400 @DomName('PerformanceTiming.domComplete')
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
17477 // for details. All rights reserved. Use of this source code is governed by a 17477 // for details. All rights reserved. Use of this source code is governed by a
17478 // BSD-style license that can be found in the LICENSE file. 17478 // BSD-style license that can be found in the LICENSE file.
17479 17479
17480 17480
17481 @DocsEditable 17481 @DocsEditable
17482 @DomName('PopStateEvent') 17482 @DomName('PopStateEvent')
17483 @SupportedBrowser(SupportedBrowser.CHROME) 17483 @SupportedBrowser(SupportedBrowser.CHROME)
17484 @SupportedBrowser(SupportedBrowser.FIREFOX) 17484 @SupportedBrowser(SupportedBrowser.FIREFOX)
17485 @SupportedBrowser(SupportedBrowser.IE, '10') 17485 @SupportedBrowser(SupportedBrowser.IE, '10')
17486 @SupportedBrowser(SupportedBrowser.SAFARI) 17486 @SupportedBrowser(SupportedBrowser.SAFARI)
17487 class PopStateEvent extends Event native "*PopStateEvent" { 17487 class PopStateEvent extends Event native "PopStateEvent" {
17488 17488
17489 dynamic get state => convertNativeToDart_SerializedScriptValue(this._get_state ); 17489 dynamic get state => convertNativeToDart_SerializedScriptValue(this._get_state );
17490 @JSName('state') 17490 @JSName('state')
17491 @DomName('PopStateEvent.state') 17491 @DomName('PopStateEvent.state')
17492 @DocsEditable 17492 @DocsEditable
17493 @annotation_Creates_SerializedScriptValue 17493 @annotation_Creates_SerializedScriptValue
17494 @annotation_Returns_SerializedScriptValue 17494 @annotation_Returns_SerializedScriptValue
17495 final dynamic _get_state; 17495 final dynamic _get_state;
17496 } 17496 }
17497 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17497 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17498 // for details. All rights reserved. Use of this source code is governed by a 17498 // for details. All rights reserved. Use of this source code is governed by a
17499 // BSD-style license that can be found in the LICENSE file. 17499 // BSD-style license that can be found in the LICENSE file.
17500 17500
17501 // WARNING: Do not edit - generated code. 17501 // WARNING: Do not edit - generated code.
17502 17502
17503 17503
17504 typedef void _PositionCallback(Geoposition position); 17504 typedef void _PositionCallback(Geoposition position);
17505 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17505 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17506 // for details. All rights reserved. Use of this source code is governed by a 17506 // for details. All rights reserved. Use of this source code is governed by a
17507 // BSD-style license that can be found in the LICENSE file. 17507 // BSD-style license that can be found in the LICENSE file.
17508 17508
17509 17509
17510 @DocsEditable 17510 @DocsEditable
17511 @DomName('PositionError') 17511 @DomName('PositionError')
17512 class PositionError native "*PositionError" { 17512 class PositionError native "PositionError" {
17513 17513
17514 static const int PERMISSION_DENIED = 1; 17514 static const int PERMISSION_DENIED = 1;
17515 17515
17516 static const int POSITION_UNAVAILABLE = 2; 17516 static const int POSITION_UNAVAILABLE = 2;
17517 17517
17518 static const int TIMEOUT = 3; 17518 static const int TIMEOUT = 3;
17519 17519
17520 @DomName('PositionError.code') 17520 @DomName('PositionError.code')
17521 @DocsEditable 17521 @DocsEditable
17522 final int code; 17522 final int code;
(...skipping 10 matching lines...) Expand all
17533 17533
17534 17534
17535 typedef void _PositionErrorCallback(PositionError error); 17535 typedef void _PositionErrorCallback(PositionError error);
17536 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17536 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17537 // for details. All rights reserved. Use of this source code is governed by a 17537 // for details. All rights reserved. Use of this source code is governed by a
17538 // BSD-style license that can be found in the LICENSE file. 17538 // BSD-style license that can be found in the LICENSE file.
17539 17539
17540 17540
17541 @DocsEditable 17541 @DocsEditable
17542 @DomName('HTMLPreElement') 17542 @DomName('HTMLPreElement')
17543 class PreElement extends Element native "*HTMLPreElement" { 17543 class PreElement extends Element native "HTMLPreElement" {
17544 17544
17545 @DomName('HTMLPreElement.HTMLPreElement') 17545 @DomName('HTMLPreElement.HTMLPreElement')
17546 @DocsEditable 17546 @DocsEditable
17547 factory PreElement() => document.$dom_createElement("pre"); 17547 factory PreElement() => document.$dom_createElement("pre");
17548 17548
17549 @DomName('HTMLPreElement.wrap') 17549 @DomName('HTMLPreElement.wrap')
17550 @DocsEditable 17550 @DocsEditable
17551 bool wrap; 17551 bool wrap;
17552 } 17552 }
17553 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17553 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17554 // for details. All rights reserved. Use of this source code is governed by a 17554 // for details. All rights reserved. Use of this source code is governed by a
17555 // BSD-style license that can be found in the LICENSE file. 17555 // BSD-style license that can be found in the LICENSE file.
17556 17556
17557 17557
17558 @DocsEditable 17558 @DocsEditable
17559 @DomName('ProcessingInstruction') 17559 @DomName('ProcessingInstruction')
17560 class ProcessingInstruction extends Node native "*ProcessingInstruction" { 17560 class ProcessingInstruction extends Node native "ProcessingInstruction" {
17561 17561
17562 @DomName('ProcessingInstruction.data') 17562 @DomName('ProcessingInstruction.data')
17563 @DocsEditable 17563 @DocsEditable
17564 String data; 17564 String data;
17565 17565
17566 @DomName('ProcessingInstruction.sheet') 17566 @DomName('ProcessingInstruction.sheet')
17567 @DocsEditable 17567 @DocsEditable
17568 final StyleSheet sheet; 17568 final StyleSheet sheet;
17569 17569
17570 @DomName('ProcessingInstruction.target') 17570 @DomName('ProcessingInstruction.target')
17571 @DocsEditable 17571 @DocsEditable
17572 final String target; 17572 final String target;
17573 } 17573 }
17574 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17574 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17575 // for details. All rights reserved. Use of this source code is governed by a 17575 // for details. All rights reserved. Use of this source code is governed by a
17576 // BSD-style license that can be found in the LICENSE file. 17576 // BSD-style license that can be found in the LICENSE file.
17577 17577
17578 17578
17579 @DocsEditable 17579 @DocsEditable
17580 @DomName('HTMLProgressElement') 17580 @DomName('HTMLProgressElement')
17581 @SupportedBrowser(SupportedBrowser.CHROME) 17581 @SupportedBrowser(SupportedBrowser.CHROME)
17582 @SupportedBrowser(SupportedBrowser.FIREFOX) 17582 @SupportedBrowser(SupportedBrowser.FIREFOX)
17583 @SupportedBrowser(SupportedBrowser.IE, '10') 17583 @SupportedBrowser(SupportedBrowser.IE, '10')
17584 @SupportedBrowser(SupportedBrowser.SAFARI) 17584 @SupportedBrowser(SupportedBrowser.SAFARI)
17585 class ProgressElement extends Element native "*HTMLProgressElement" { 17585 class ProgressElement extends Element native "HTMLProgressElement" {
17586 17586
17587 @DomName('HTMLProgressElement.HTMLProgressElement') 17587 @DomName('HTMLProgressElement.HTMLProgressElement')
17588 @DocsEditable 17588 @DocsEditable
17589 factory ProgressElement() => document.$dom_createElement("progress"); 17589 factory ProgressElement() => document.$dom_createElement("progress");
17590 17590
17591 /// Checks if this type is supported on the current platform. 17591 /// Checks if this type is supported on the current platform.
17592 static bool get supported => Element.isTagSupported('progress'); 17592 static bool get supported => Element.isTagSupported('progress');
17593 17593
17594 @DomName('HTMLProgressElement.labels') 17594 @DomName('HTMLProgressElement.labels')
17595 @DocsEditable 17595 @DocsEditable
(...skipping 13 matching lines...) Expand all
17609 @DocsEditable 17609 @DocsEditable
17610 num value; 17610 num value;
17611 } 17611 }
17612 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17612 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17613 // for details. All rights reserved. Use of this source code is governed by a 17613 // for details. All rights reserved. Use of this source code is governed by a
17614 // BSD-style license that can be found in the LICENSE file. 17614 // BSD-style license that can be found in the LICENSE file.
17615 17615
17616 17616
17617 @DocsEditable 17617 @DocsEditable
17618 @DomName('ProgressEvent') 17618 @DomName('ProgressEvent')
17619 class ProgressEvent extends Event native "*ProgressEvent" { 17619 class ProgressEvent extends Event native "ProgressEvent" {
17620 17620
17621 @DomName('ProgressEvent.lengthComputable') 17621 @DomName('ProgressEvent.lengthComputable')
17622 @DocsEditable 17622 @DocsEditable
17623 final bool lengthComputable; 17623 final bool lengthComputable;
17624 17624
17625 @DomName('ProgressEvent.loaded') 17625 @DomName('ProgressEvent.loaded')
17626 @DocsEditable 17626 @DocsEditable
17627 final int loaded; 17627 final int loaded;
17628 17628
17629 @DomName('ProgressEvent.total') 17629 @DomName('ProgressEvent.total')
17630 @DocsEditable 17630 @DocsEditable
17631 final int total; 17631 final int total;
17632 } 17632 }
17633 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17633 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17634 // for details. All rights reserved. Use of this source code is governed by a 17634 // for details. All rights reserved. Use of this source code is governed by a
17635 // BSD-style license that can be found in the LICENSE file. 17635 // BSD-style license that can be found in the LICENSE file.
17636 17636
17637 17637
17638 @DocsEditable 17638 @DocsEditable
17639 @DomName('HTMLQuoteElement') 17639 @DomName('HTMLQuoteElement')
17640 class QuoteElement extends Element native "*HTMLQuoteElement" { 17640 class QuoteElement extends Element native "HTMLQuoteElement" {
17641 17641
17642 @DomName('HTMLQuoteElement.cite') 17642 @DomName('HTMLQuoteElement.cite')
17643 @DocsEditable 17643 @DocsEditable
17644 String cite; 17644 String cite;
17645 } 17645 }
17646 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17646 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17647 // for details. All rights reserved. Use of this source code is governed by a 17647 // for details. All rights reserved. Use of this source code is governed by a
17648 // BSD-style license that can be found in the LICENSE file. 17648 // BSD-style license that can be found in the LICENSE file.
17649 17649
17650 // WARNING: Do not edit - generated code. 17650 // WARNING: Do not edit - generated code.
(...skipping 16 matching lines...) Expand all
17667 17667
17668 17668
17669 typedef void RtcStatsCallback(RtcStatsResponse response); 17669 typedef void RtcStatsCallback(RtcStatsResponse response);
17670 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17670 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17671 // for details. All rights reserved. Use of this source code is governed by a 17671 // for details. All rights reserved. Use of this source code is governed by a
17672 // BSD-style license that can be found in the LICENSE file. 17672 // BSD-style license that can be found in the LICENSE file.
17673 17673
17674 17674
17675 @DocsEditable 17675 @DocsEditable
17676 @DomName('RadioNodeList') 17676 @DomName('RadioNodeList')
17677 class RadioNodeList extends NodeList native "*RadioNodeList" { 17677 class RadioNodeList extends NodeList native "RadioNodeList" {
17678 17678
17679 @DomName('RadioNodeList.value') 17679 @DomName('RadioNodeList.value')
17680 @DocsEditable 17680 @DocsEditable
17681 String value; 17681 String value;
17682 } 17682 }
17683 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17683 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17684 // for details. All rights reserved. Use of this source code is governed by a 17684 // for details. All rights reserved. Use of this source code is governed by a
17685 // BSD-style license that can be found in the LICENSE file. 17685 // BSD-style license that can be found in the LICENSE file.
17686 17686
17687 // WARNING: Do not edit - generated code. 17687 // WARNING: Do not edit - generated code.
17688 17688
17689 17689
17690 @DomName('Range') 17690 @DomName('Range')
17691 class Range native "*Range" { 17691 class Range native "Range" {
17692 factory Range() => document.$dom_createRange(); 17692 factory Range() => document.$dom_createRange();
17693 17693
17694 17694
17695 static const int END_TO_END = 2; 17695 static const int END_TO_END = 2;
17696 17696
17697 static const int END_TO_START = 3; 17697 static const int END_TO_START = 3;
17698 17698
17699 static const int NODE_AFTER = 1; 17699 static const int NODE_AFTER = 1;
17700 17700
17701 static const int NODE_BEFORE = 0; 17701 static const int NODE_BEFORE = 0;
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
17835 String toString() native; 17835 String toString() native;
17836 17836
17837 } 17837 }
17838 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17838 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17839 // for details. All rights reserved. Use of this source code is governed by a 17839 // for details. All rights reserved. Use of this source code is governed by a
17840 // BSD-style license that can be found in the LICENSE file. 17840 // BSD-style license that can be found in the LICENSE file.
17841 17841
17842 17842
17843 @DocsEditable 17843 @DocsEditable
17844 @DomName('RangeException') 17844 @DomName('RangeException')
17845 class RangeException native "*RangeException" { 17845 class RangeException native "RangeException" {
17846 17846
17847 static const int BAD_BOUNDARYPOINTS_ERR = 1; 17847 static const int BAD_BOUNDARYPOINTS_ERR = 1;
17848 17848
17849 static const int INVALID_NODE_TYPE_ERR = 2; 17849 static const int INVALID_NODE_TYPE_ERR = 2;
17850 17850
17851 @DomName('RangeException.code') 17851 @DomName('RangeException.code')
17852 @DocsEditable 17852 @DocsEditable
17853 final int code; 17853 final int code;
17854 17854
17855 @DomName('RangeException.message') 17855 @DomName('RangeException.message')
(...skipping 16 matching lines...) Expand all
17872 17872
17873 17873
17874 typedef void RequestAnimationFrameCallback(num highResTime); 17874 typedef void RequestAnimationFrameCallback(num highResTime);
17875 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17875 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17876 // for details. All rights reserved. Use of this source code is governed by a 17876 // for details. All rights reserved. Use of this source code is governed by a
17877 // BSD-style license that can be found in the LICENSE file. 17877 // BSD-style license that can be found in the LICENSE file.
17878 17878
17879 17879
17880 @DocsEditable 17880 @DocsEditable
17881 @DomName('RTCDataChannel') 17881 @DomName('RTCDataChannel')
17882 class RtcDataChannel extends EventTarget native "*RTCDataChannel" { 17882 class RtcDataChannel extends EventTarget native "RTCDataChannel" {
17883 17883
17884 @DomName('RTCDataChannel.closeEvent') 17884 @DomName('RTCDataChannel.closeEvent')
17885 @DocsEditable 17885 @DocsEditable
17886 static const EventStreamProvider<Event> closeEvent = const EventStreamProvider <Event>('close'); 17886 static const EventStreamProvider<Event> closeEvent = const EventStreamProvider <Event>('close');
17887 17887
17888 @DomName('RTCDataChannel.errorEvent') 17888 @DomName('RTCDataChannel.errorEvent')
17889 @DocsEditable 17889 @DocsEditable
17890 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error'); 17890 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error');
17891 17891
17892 @DomName('RTCDataChannel.messageEvent') 17892 @DomName('RTCDataChannel.messageEvent')
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
17955 @DocsEditable 17955 @DocsEditable
17956 Stream<Event> get onOpen => openEvent.forTarget(this); 17956 Stream<Event> get onOpen => openEvent.forTarget(this);
17957 } 17957 }
17958 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17958 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17959 // for details. All rights reserved. Use of this source code is governed by a 17959 // for details. All rights reserved. Use of this source code is governed by a
17960 // BSD-style license that can be found in the LICENSE file. 17960 // BSD-style license that can be found in the LICENSE file.
17961 17961
17962 17962
17963 @DocsEditable 17963 @DocsEditable
17964 @DomName('RTCDataChannelEvent') 17964 @DomName('RTCDataChannelEvent')
17965 class RtcDataChannelEvent extends Event native "*RTCDataChannelEvent" { 17965 class RtcDataChannelEvent extends Event native "RTCDataChannelEvent" {
17966 17966
17967 @DomName('RTCDataChannelEvent.channel') 17967 @DomName('RTCDataChannelEvent.channel')
17968 @DocsEditable 17968 @DocsEditable
17969 final RtcDataChannel channel; 17969 final RtcDataChannel channel;
17970 } 17970 }
17971 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17971 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17972 // for details. All rights reserved. Use of this source code is governed by a 17972 // for details. All rights reserved. Use of this source code is governed by a
17973 // BSD-style license that can be found in the LICENSE file. 17973 // BSD-style license that can be found in the LICENSE file.
17974 17974
17975 17975
17976 @DocsEditable 17976 @DocsEditable
17977 @DomName('RTCDTMFSender') 17977 @DomName('RTCDTMFSender')
17978 class RtcDtmfSender extends EventTarget native "*RTCDTMFSender" { 17978 class RtcDtmfSender extends EventTarget native "RTCDTMFSender" {
17979 17979
17980 @DomName('RTCDTMFSender.tonechangeEvent') 17980 @DomName('RTCDTMFSender.tonechangeEvent')
17981 @DocsEditable 17981 @DocsEditable
17982 static const EventStreamProvider<RtcDtmfToneChangeEvent> toneChangeEvent = con st EventStreamProvider<RtcDtmfToneChangeEvent>('tonechange'); 17982 static const EventStreamProvider<RtcDtmfToneChangeEvent> toneChangeEvent = con st EventStreamProvider<RtcDtmfToneChangeEvent>('tonechange');
17983 17983
17984 @JSName('canInsertDTMF') 17984 @JSName('canInsertDTMF')
17985 @DomName('RTCDTMFSender.canInsertDTMF') 17985 @DomName('RTCDTMFSender.canInsertDTMF')
17986 @DocsEditable 17986 @DocsEditable
17987 final bool canInsertDtmf; 17987 final bool canInsertDtmf;
17988 17988
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
18025 @DocsEditable 18025 @DocsEditable
18026 Stream<RtcDtmfToneChangeEvent> get onToneChange => toneChangeEvent.forTarget(t his); 18026 Stream<RtcDtmfToneChangeEvent> get onToneChange => toneChangeEvent.forTarget(t his);
18027 } 18027 }
18028 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18028 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18029 // for details. All rights reserved. Use of this source code is governed by a 18029 // for details. All rights reserved. Use of this source code is governed by a
18030 // BSD-style license that can be found in the LICENSE file. 18030 // BSD-style license that can be found in the LICENSE file.
18031 18031
18032 18032
18033 @DocsEditable 18033 @DocsEditable
18034 @DomName('RTCDTMFToneChangeEvent') 18034 @DomName('RTCDTMFToneChangeEvent')
18035 class RtcDtmfToneChangeEvent extends Event native "*RTCDTMFToneChangeEvent" { 18035 class RtcDtmfToneChangeEvent extends Event native "RTCDTMFToneChangeEvent" {
18036 18036
18037 @DomName('RTCDTMFToneChangeEvent.tone') 18037 @DomName('RTCDTMFToneChangeEvent.tone')
18038 @DocsEditable 18038 @DocsEditable
18039 final String tone; 18039 final String tone;
18040 } 18040 }
18041 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 18041 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
18042 // for details. All rights reserved. Use of this source code is governed by a 18042 // for details. All rights reserved. Use of this source code is governed by a
18043 // BSD-style license that can be found in the LICENSE file. 18043 // BSD-style license that can be found in the LICENSE file.
18044 18044
18045 18045
18046 @DomName('RTCIceCandidate') 18046 @DomName('RTCIceCandidate')
18047 @SupportedBrowser(SupportedBrowser.CHROME) 18047 @SupportedBrowser(SupportedBrowser.CHROME)
18048 @Experimental 18048 @Experimental
18049 class RtcIceCandidate native "*RTCIceCandidate" { 18049 class RtcIceCandidate native "RTCIceCandidate" {
18050 factory RtcIceCandidate(Map dictionary) { 18050 factory RtcIceCandidate(Map dictionary) {
18051 return JS('RtcIceCandidate', 'new RTCIceCandidate(#)', 18051 return JS('RtcIceCandidate', 'new RTCIceCandidate(#)',
18052 convertDartToNative_SerializedScriptValue(dictionary)); 18052 convertDartToNative_SerializedScriptValue(dictionary));
18053 } 18053 }
18054 18054
18055 @DomName('RTCIceCandidate.candidate') 18055 @DomName('RTCIceCandidate.candidate')
18056 @DocsEditable 18056 @DocsEditable
18057 final String candidate; 18057 final String candidate;
18058 18058
18059 @DomName('RTCIceCandidate.sdpMLineIndex') 18059 @DomName('RTCIceCandidate.sdpMLineIndex')
18060 @DocsEditable 18060 @DocsEditable
18061 final int sdpMLineIndex; 18061 final int sdpMLineIndex;
18062 18062
18063 @DomName('RTCIceCandidate.sdpMid') 18063 @DomName('RTCIceCandidate.sdpMid')
18064 @DocsEditable 18064 @DocsEditable
18065 final String sdpMid; 18065 final String sdpMid;
18066 18066
18067 } 18067 }
18068 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18068 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18069 // for details. All rights reserved. Use of this source code is governed by a 18069 // for details. All rights reserved. Use of this source code is governed by a
18070 // BSD-style license that can be found in the LICENSE file. 18070 // BSD-style license that can be found in the LICENSE file.
18071 18071
18072 18072
18073 @DocsEditable 18073 @DocsEditable
18074 @DomName('RTCIceCandidateEvent') 18074 @DomName('RTCIceCandidateEvent')
18075 class RtcIceCandidateEvent extends Event native "*RTCIceCandidateEvent" { 18075 class RtcIceCandidateEvent extends Event native "RTCIceCandidateEvent" {
18076 18076
18077 @DomName('RTCIceCandidateEvent.candidate') 18077 @DomName('RTCIceCandidateEvent.candidate')
18078 @DocsEditable 18078 @DocsEditable
18079 final RtcIceCandidate candidate; 18079 final RtcIceCandidate candidate;
18080 } 18080 }
18081 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 18081 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
18082 // for details. All rights reserved. Use of this source code is governed by a 18082 // for details. All rights reserved. Use of this source code is governed by a
18083 // BSD-style license that can be found in the LICENSE file. 18083 // BSD-style license that can be found in the LICENSE file.
18084 18084
18085 18085
18086 @DomName('RTCPeerConnection') 18086 @DomName('RTCPeerConnection')
18087 @SupportedBrowser(SupportedBrowser.CHROME) 18087 @SupportedBrowser(SupportedBrowser.CHROME)
18088 @Experimental 18088 @Experimental
18089 class RtcPeerConnection extends EventTarget native "*RTCPeerConnection" { 18089 class RtcPeerConnection extends EventTarget native "RTCPeerConnection" {
18090 factory RtcPeerConnection(Map rtcIceServers, [Map mediaConstraints]) { 18090 factory RtcPeerConnection(Map rtcIceServers, [Map mediaConstraints]) {
18091 var constructorName = JS('RtcPeerConnection', 'window[#]', 18091 var constructorName = JS('RtcPeerConnection', 'window[#]',
18092 '${Device.propertyPrefix}RTCPeerConnection'); 18092 '${Device.propertyPrefix}RTCPeerConnection');
18093 if (?mediaConstraints) { 18093 if (?mediaConstraints) {
18094 return JS('RtcPeerConnection', 'new #(#,#)', constructorName, 18094 return JS('RtcPeerConnection', 'new #(#,#)', constructorName,
18095 convertDartToNative_SerializedScriptValue(rtcIceServers), 18095 convertDartToNative_SerializedScriptValue(rtcIceServers),
18096 convertDartToNative_SerializedScriptValue(mediaConstraints)); 18096 convertDartToNative_SerializedScriptValue(mediaConstraints));
18097 } else { 18097 } else {
18098 return JS('RtcPeerConnection', 'new #(#)', constructorName, 18098 return JS('RtcPeerConnection', 'new #(#)', constructorName,
18099 convertDartToNative_SerializedScriptValue(rtcIceServers)); 18099 convertDartToNative_SerializedScriptValue(rtcIceServers));
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
18398 18398
18399 18399
18400 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 18400 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
18401 // for details. All rights reserved. Use of this source code is governed by a 18401 // for details. All rights reserved. Use of this source code is governed by a
18402 // BSD-style license that can be found in the LICENSE file. 18402 // BSD-style license that can be found in the LICENSE file.
18403 18403
18404 18404
18405 @DomName('RTCSessionDescription') 18405 @DomName('RTCSessionDescription')
18406 @SupportedBrowser(SupportedBrowser.CHROME) 18406 @SupportedBrowser(SupportedBrowser.CHROME)
18407 @Experimental 18407 @Experimental
18408 class RtcSessionDescription native "*RTCSessionDescription" { 18408 class RtcSessionDescription native "RTCSessionDescription" {
18409 factory RtcSessionDescription(Map dictionary) { 18409 factory RtcSessionDescription(Map dictionary) {
18410 return JS('RtcSessionDescription', 'new RTCSessionDescription(#)', 18410 return JS('RtcSessionDescription', 'new RTCSessionDescription(#)',
18411 convertDartToNative_SerializedScriptValue(dictionary)); 18411 convertDartToNative_SerializedScriptValue(dictionary));
18412 } 18412 }
18413 18413
18414 @DomName('RTCSessionDescription.sdp') 18414 @DomName('RTCSessionDescription.sdp')
18415 @DocsEditable 18415 @DocsEditable
18416 String sdp; 18416 String sdp;
18417 18417
18418 @DomName('RTCSessionDescription.type') 18418 @DomName('RTCSessionDescription.type')
18419 @DocsEditable 18419 @DocsEditable
18420 String type; 18420 String type;
18421 18421
18422 } 18422 }
18423 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18423 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18424 // for details. All rights reserved. Use of this source code is governed by a 18424 // for details. All rights reserved. Use of this source code is governed by a
18425 // BSD-style license that can be found in the LICENSE file. 18425 // BSD-style license that can be found in the LICENSE file.
18426 18426
18427 18427
18428 @DocsEditable 18428 @DocsEditable
18429 @DomName('RTCStatsReport') 18429 @DomName('RTCStatsReport')
18430 class RtcStatsReport native "*RTCStatsReport" { 18430 class RtcStatsReport native "RTCStatsReport" {
18431 18431
18432 @DomName('RTCStatsReport.id') 18432 @DomName('RTCStatsReport.id')
18433 @DocsEditable 18433 @DocsEditable
18434 final String id; 18434 final String id;
18435 18435
18436 @DomName('RTCStatsReport.local') 18436 @DomName('RTCStatsReport.local')
18437 @DocsEditable 18437 @DocsEditable
18438 final RtcStatsReport local; 18438 final RtcStatsReport local;
18439 18439
18440 @DomName('RTCStatsReport.remote') 18440 @DomName('RTCStatsReport.remote')
(...skipping 18 matching lines...) Expand all
18459 @DocsEditable 18459 @DocsEditable
18460 String stat(String name) native; 18460 String stat(String name) native;
18461 } 18461 }
18462 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18462 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18463 // for details. All rights reserved. Use of this source code is governed by a 18463 // for details. All rights reserved. Use of this source code is governed by a
18464 // BSD-style license that can be found in the LICENSE file. 18464 // BSD-style license that can be found in the LICENSE file.
18465 18465
18466 18466
18467 @DocsEditable 18467 @DocsEditable
18468 @DomName('RTCStatsResponse') 18468 @DomName('RTCStatsResponse')
18469 class RtcStatsResponse native "*RTCStatsResponse" { 18469 class RtcStatsResponse native "RTCStatsResponse" {
18470 18470
18471 @DomName('RTCStatsResponse.namedItem') 18471 @DomName('RTCStatsResponse.namedItem')
18472 @DocsEditable 18472 @DocsEditable
18473 RtcStatsReport namedItem(String name) native; 18473 RtcStatsReport namedItem(String name) native;
18474 18474
18475 @DomName('RTCStatsResponse.result') 18475 @DomName('RTCStatsResponse.result')
18476 @DocsEditable 18476 @DocsEditable
18477 List<RtcStatsReport> result() native; 18477 List<RtcStatsReport> result() native;
18478 } 18478 }
18479 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 18479 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
18480 // for details. All rights reserved. Use of this source code is governed by a 18480 // for details. All rights reserved. Use of this source code is governed by a
18481 // BSD-style license that can be found in the LICENSE file. 18481 // BSD-style license that can be found in the LICENSE file.
18482 18482
18483 18483
18484 @DocsEditable 18484 @DocsEditable
18485 @DomName('Screen') 18485 @DomName('Screen')
18486 class Screen native "*Screen" { 18486 class Screen native "Screen" {
18487 18487
18488 @DomName('Screen.availHeight') 18488 @DomName('Screen.availHeight')
18489 @DomName('Screen.availLeft') 18489 @DomName('Screen.availLeft')
18490 @DomName('Screen.availTop') 18490 @DomName('Screen.availTop')
18491 @DomName('Screen.availWidth') 18491 @DomName('Screen.availWidth')
18492 Rect get available => new Rect($dom_availLeft, $dom_availTop, $dom_availWidth, 18492 Rect get available => new Rect($dom_availLeft, $dom_availTop, $dom_availWidth,
18493 $dom_availHeight); 18493 $dom_availHeight);
18494 18494
18495 @JSName('availHeight') 18495 @JSName('availHeight')
18496 @DomName('Screen.availHeight') 18496 @DomName('Screen.availHeight')
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
18528 @DocsEditable 18528 @DocsEditable
18529 final int width; 18529 final int width;
18530 } 18530 }
18531 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18531 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18532 // for details. All rights reserved. Use of this source code is governed by a 18532 // for details. All rights reserved. Use of this source code is governed by a
18533 // BSD-style license that can be found in the LICENSE file. 18533 // BSD-style license that can be found in the LICENSE file.
18534 18534
18535 18535
18536 @DocsEditable 18536 @DocsEditable
18537 @DomName('HTMLScriptElement') 18537 @DomName('HTMLScriptElement')
18538 class ScriptElement extends Element native "*HTMLScriptElement" { 18538 class ScriptElement extends Element native "HTMLScriptElement" {
18539 18539
18540 @DomName('HTMLScriptElement.HTMLScriptElement') 18540 @DomName('HTMLScriptElement.HTMLScriptElement')
18541 @DocsEditable 18541 @DocsEditable
18542 factory ScriptElement() => document.$dom_createElement("script"); 18542 factory ScriptElement() => document.$dom_createElement("script");
18543 18543
18544 @DomName('HTMLScriptElement.async') 18544 @DomName('HTMLScriptElement.async')
18545 @DocsEditable 18545 @DocsEditable
18546 bool async; 18546 bool async;
18547 18547
18548 @DomName('HTMLScriptElement.charset') 18548 @DomName('HTMLScriptElement.charset')
(...skipping 28 matching lines...) Expand all
18577 @DocsEditable 18577 @DocsEditable
18578 String type; 18578 String type;
18579 } 18579 }
18580 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18580 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18581 // for details. All rights reserved. Use of this source code is governed by a 18581 // for details. All rights reserved. Use of this source code is governed by a
18582 // BSD-style license that can be found in the LICENSE file. 18582 // BSD-style license that can be found in the LICENSE file.
18583 18583
18584 18584
18585 @DocsEditable 18585 @DocsEditable
18586 @DomName('ScriptProfile') 18586 @DomName('ScriptProfile')
18587 class ScriptProfile native "*ScriptProfile" { 18587 class ScriptProfile native "ScriptProfile" {
18588 18588
18589 @DomName('ScriptProfile.head') 18589 @DomName('ScriptProfile.head')
18590 @DocsEditable 18590 @DocsEditable
18591 final ScriptProfileNode head; 18591 final ScriptProfileNode head;
18592 18592
18593 @DomName('ScriptProfile.idleTime') 18593 @DomName('ScriptProfile.idleTime')
18594 @DocsEditable 18594 @DocsEditable
18595 final num idleTime; 18595 final num idleTime;
18596 18596
18597 @DomName('ScriptProfile.title') 18597 @DomName('ScriptProfile.title')
18598 @DocsEditable 18598 @DocsEditable
18599 final String title; 18599 final String title;
18600 18600
18601 @DomName('ScriptProfile.uid') 18601 @DomName('ScriptProfile.uid')
18602 @DocsEditable 18602 @DocsEditable
18603 final int uid; 18603 final int uid;
18604 } 18604 }
18605 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18605 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18606 // for details. All rights reserved. Use of this source code is governed by a 18606 // for details. All rights reserved. Use of this source code is governed by a
18607 // BSD-style license that can be found in the LICENSE file. 18607 // BSD-style license that can be found in the LICENSE file.
18608 18608
18609 18609
18610 @DocsEditable 18610 @DocsEditable
18611 @DomName('ScriptProfileNode') 18611 @DomName('ScriptProfileNode')
18612 class ScriptProfileNode native "*ScriptProfileNode" { 18612 class ScriptProfileNode native "ScriptProfileNode" {
18613 18613
18614 @JSName('callUID') 18614 @JSName('callUID')
18615 @DomName('ScriptProfileNode.callUID') 18615 @DomName('ScriptProfileNode.callUID')
18616 @DocsEditable 18616 @DocsEditable
18617 final int callUid; 18617 final int callUid;
18618 18618
18619 @DomName('ScriptProfileNode.functionName') 18619 @DomName('ScriptProfileNode.functionName')
18620 @DocsEditable 18620 @DocsEditable
18621 final String functionName; 18621 final String functionName;
18622 18622
(...skipping 25 matching lines...) Expand all
18648 @DocsEditable 18648 @DocsEditable
18649 List<ScriptProfileNode> children() native; 18649 List<ScriptProfileNode> children() native;
18650 } 18650 }
18651 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18651 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18652 // for details. All rights reserved. Use of this source code is governed by a 18652 // for details. All rights reserved. Use of this source code is governed by a
18653 // BSD-style license that can be found in the LICENSE file. 18653 // BSD-style license that can be found in the LICENSE file.
18654 18654
18655 18655
18656 @DocsEditable 18656 @DocsEditable
18657 @DomName('SecurityPolicyViolationEvent') 18657 @DomName('SecurityPolicyViolationEvent')
18658 class SecurityPolicyViolationEvent extends Event native "*SecurityPolicyViolatio nEvent" { 18658 class SecurityPolicyViolationEvent extends Event native "SecurityPolicyViolation Event" {
18659 18659
18660 @JSName('blockedURI') 18660 @JSName('blockedURI')
18661 @DomName('SecurityPolicyViolationEvent.blockedURI') 18661 @DomName('SecurityPolicyViolationEvent.blockedURI')
18662 @DocsEditable 18662 @DocsEditable
18663 final String blockedUri; 18663 final String blockedUri;
18664 18664
18665 @JSName('documentURI') 18665 @JSName('documentURI')
18666 @DomName('SecurityPolicyViolationEvent.documentURI') 18666 @DomName('SecurityPolicyViolationEvent.documentURI')
18667 @DocsEditable 18667 @DocsEditable
18668 final String documentUri; 18668 final String documentUri;
(...skipping 21 matching lines...) Expand all
18690 @DomName('SecurityPolicyViolationEvent.violatedDirective') 18690 @DomName('SecurityPolicyViolationEvent.violatedDirective')
18691 @DocsEditable 18691 @DocsEditable
18692 final String violatedDirective; 18692 final String violatedDirective;
18693 } 18693 }
18694 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18694 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18695 // for details. All rights reserved. Use of this source code is governed by a 18695 // for details. All rights reserved. Use of this source code is governed by a
18696 // BSD-style license that can be found in the LICENSE file. 18696 // BSD-style license that can be found in the LICENSE file.
18697 18697
18698 18698
18699 @DomName('HTMLSelectElement') 18699 @DomName('HTMLSelectElement')
18700 class SelectElement extends Element native "*HTMLSelectElement" { 18700 class SelectElement extends Element native "HTMLSelectElement" {
18701 18701
18702 @DomName('HTMLSelectElement.HTMLSelectElement') 18702 @DomName('HTMLSelectElement.HTMLSelectElement')
18703 @DocsEditable 18703 @DocsEditable
18704 factory SelectElement() => document.$dom_createElement("select"); 18704 factory SelectElement() => document.$dom_createElement("select");
18705 18705
18706 @DomName('HTMLSelectElement.autofocus') 18706 @DomName('HTMLSelectElement.autofocus')
18707 @DocsEditable 18707 @DocsEditable
18708 bool autofocus; 18708 bool autofocus;
18709 18709
18710 @DomName('HTMLSelectElement.disabled') 18710 @DomName('HTMLSelectElement.disabled')
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
18801 } 18801 }
18802 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18802 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18803 // for details. All rights reserved. Use of this source code is governed by a 18803 // for details. All rights reserved. Use of this source code is governed by a
18804 // BSD-style license that can be found in the LICENSE file. 18804 // BSD-style license that can be found in the LICENSE file.
18805 18805
18806 18806
18807 @DocsEditable 18807 @DocsEditable
18808 @DomName('HTMLShadowElement') 18808 @DomName('HTMLShadowElement')
18809 @SupportedBrowser(SupportedBrowser.CHROME, '26') 18809 @SupportedBrowser(SupportedBrowser.CHROME, '26')
18810 @Experimental 18810 @Experimental
18811 class ShadowElement extends Element native "*HTMLShadowElement" { 18811 class ShadowElement extends Element native "HTMLShadowElement" {
18812 18812
18813 /// Checks if this type is supported on the current platform. 18813 /// Checks if this type is supported on the current platform.
18814 static bool get supported => Element.isTagSupported('shadow'); 18814 static bool get supported => Element.isTagSupported('shadow');
18815 18815
18816 @DomName('HTMLShadowElement.olderShadowRoot') 18816 @DomName('HTMLShadowElement.olderShadowRoot')
18817 @DocsEditable 18817 @DocsEditable
18818 final ShadowRoot olderShadowRoot; 18818 final ShadowRoot olderShadowRoot;
18819 18819
18820 @DomName('HTMLShadowElement.resetStyleInheritance') 18820 @DomName('HTMLShadowElement.resetStyleInheritance')
18821 @DocsEditable 18821 @DocsEditable
18822 bool resetStyleInheritance; 18822 bool resetStyleInheritance;
18823 } 18823 }
18824 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18824 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18825 // for details. All rights reserved. Use of this source code is governed by a 18825 // for details. All rights reserved. Use of this source code is governed by a
18826 // BSD-style license that can be found in the LICENSE file. 18826 // BSD-style license that can be found in the LICENSE file.
18827 18827
18828 // WARNING: Do not edit - generated code. 18828 // WARNING: Do not edit - generated code.
18829 18829
18830 18830
18831 @DomName('ShadowRoot') 18831 @DomName('ShadowRoot')
18832 @SupportedBrowser(SupportedBrowser.CHROME, '26') 18832 @SupportedBrowser(SupportedBrowser.CHROME, '26')
18833 @Experimental 18833 @Experimental
18834 class ShadowRoot extends DocumentFragment native "*ShadowRoot" { 18834 class ShadowRoot extends DocumentFragment native "ShadowRoot" {
18835 18835
18836 @DomName('ShadowRoot.activeElement') 18836 @DomName('ShadowRoot.activeElement')
18837 @DocsEditable 18837 @DocsEditable
18838 final Element activeElement; 18838 final Element activeElement;
18839 18839
18840 @DomName('ShadowRoot.applyAuthorStyles') 18840 @DomName('ShadowRoot.applyAuthorStyles')
18841 @DocsEditable 18841 @DocsEditable
18842 bool applyAuthorStyles; 18842 bool applyAuthorStyles;
18843 18843
18844 @JSName('innerHTML') 18844 @JSName('innerHTML')
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
18882 static bool get supported => 18882 static bool get supported =>
18883 JS('bool', '!!(Element.prototype.webkitCreateShadowRoot)'); 18883 JS('bool', '!!(Element.prototype.webkitCreateShadowRoot)');
18884 } 18884 }
18885 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18885 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18886 // for details. All rights reserved. Use of this source code is governed by a 18886 // for details. All rights reserved. Use of this source code is governed by a
18887 // BSD-style license that can be found in the LICENSE file. 18887 // BSD-style license that can be found in the LICENSE file.
18888 18888
18889 18889
18890 @DocsEditable 18890 @DocsEditable
18891 @DomName('SourceBuffer') 18891 @DomName('SourceBuffer')
18892 class SourceBuffer native "*SourceBuffer" { 18892 class SourceBuffer native "SourceBuffer" {
18893 18893
18894 @DomName('SourceBuffer.buffered') 18894 @DomName('SourceBuffer.buffered')
18895 @DocsEditable 18895 @DocsEditable
18896 final TimeRanges buffered; 18896 final TimeRanges buffered;
18897 18897
18898 @DomName('SourceBuffer.timestampOffset') 18898 @DomName('SourceBuffer.timestampOffset')
18899 @DocsEditable 18899 @DocsEditable
18900 num timestampOffset; 18900 num timestampOffset;
18901 18901
18902 @DomName('SourceBuffer.abort') 18902 @DomName('SourceBuffer.abort')
18903 @DocsEditable 18903 @DocsEditable
18904 void abort() native; 18904 void abort() native;
18905 18905
18906 @DomName('SourceBuffer.append') 18906 @DomName('SourceBuffer.append')
18907 @DocsEditable 18907 @DocsEditable
18908 void append(Uint8List data) native; 18908 void append(Uint8List data) native;
18909 } 18909 }
18910 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18910 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18911 // for details. All rights reserved. Use of this source code is governed by a 18911 // for details. All rights reserved. Use of this source code is governed by a
18912 // BSD-style license that can be found in the LICENSE file. 18912 // BSD-style license that can be found in the LICENSE file.
18913 18913
18914 18914
18915 @DocsEditable 18915 @DocsEditable
18916 @DomName('SourceBufferList') 18916 @DomName('SourceBufferList')
18917 class SourceBufferList extends EventTarget implements JavaScriptIndexingBehavior , List<SourceBuffer> native "*SourceBufferList" { 18917 class SourceBufferList extends EventTarget implements JavaScriptIndexingBehavior , List<SourceBuffer> native "SourceBufferList" {
18918 18918
18919 @DomName('SourceBufferList.length') 18919 @DomName('SourceBufferList.length')
18920 @DocsEditable 18920 @DocsEditable
18921 int get length => JS("int", "#.length", this); 18921 int get length => JS("int", "#.length", this);
18922 18922
18923 SourceBuffer operator[](int index) => JS("SourceBuffer", "#[#]", this, index); 18923 SourceBuffer operator[](int index) => JS("SourceBuffer", "#[#]", this, index);
18924 18924
18925 void operator[]=(int index, SourceBuffer value) { 18925 void operator[]=(int index, SourceBuffer value) {
18926 throw new UnsupportedError("Cannot assign element of immutable List."); 18926 throw new UnsupportedError("Cannot assign element of immutable List.");
18927 } 18927 }
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
19138 @DocsEditable 19138 @DocsEditable
19139 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native; 19139 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native;
19140 } 19140 }
19141 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19141 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19142 // for details. All rights reserved. Use of this source code is governed by a 19142 // for details. All rights reserved. Use of this source code is governed by a
19143 // BSD-style license that can be found in the LICENSE file. 19143 // BSD-style license that can be found in the LICENSE file.
19144 19144
19145 19145
19146 @DocsEditable 19146 @DocsEditable
19147 @DomName('HTMLSourceElement') 19147 @DomName('HTMLSourceElement')
19148 class SourceElement extends Element native "*HTMLSourceElement" { 19148 class SourceElement extends Element native "HTMLSourceElement" {
19149 19149
19150 @DomName('HTMLSourceElement.HTMLSourceElement') 19150 @DomName('HTMLSourceElement.HTMLSourceElement')
19151 @DocsEditable 19151 @DocsEditable
19152 factory SourceElement() => document.$dom_createElement("source"); 19152 factory SourceElement() => document.$dom_createElement("source");
19153 19153
19154 @DomName('HTMLSourceElement.media') 19154 @DomName('HTMLSourceElement.media')
19155 @DocsEditable 19155 @DocsEditable
19156 String media; 19156 String media;
19157 19157
19158 @DomName('HTMLSourceElement.src') 19158 @DomName('HTMLSourceElement.src')
19159 @DocsEditable 19159 @DocsEditable
19160 String src; 19160 String src;
19161 19161
19162 @DomName('HTMLSourceElement.type') 19162 @DomName('HTMLSourceElement.type')
19163 @DocsEditable 19163 @DocsEditable
19164 String type; 19164 String type;
19165 } 19165 }
19166 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19166 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19167 // for details. All rights reserved. Use of this source code is governed by a 19167 // for details. All rights reserved. Use of this source code is governed by a
19168 // BSD-style license that can be found in the LICENSE file. 19168 // BSD-style license that can be found in the LICENSE file.
19169 19169
19170 19170
19171 @DocsEditable 19171 @DocsEditable
19172 @DomName('HTMLSpanElement') 19172 @DomName('HTMLSpanElement')
19173 class SpanElement extends Element native "*HTMLSpanElement" { 19173 class SpanElement extends Element native "HTMLSpanElement" {
19174 19174
19175 @DomName('HTMLSpanElement.HTMLSpanElement') 19175 @DomName('HTMLSpanElement.HTMLSpanElement')
19176 @DocsEditable 19176 @DocsEditable
19177 factory SpanElement() => document.$dom_createElement("span"); 19177 factory SpanElement() => document.$dom_createElement("span");
19178 } 19178 }
19179 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19179 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19180 // for details. All rights reserved. Use of this source code is governed by a 19180 // for details. All rights reserved. Use of this source code is governed by a
19181 // BSD-style license that can be found in the LICENSE file. 19181 // BSD-style license that can be found in the LICENSE file.
19182 19182
19183 19183
19184 @DocsEditable 19184 @DocsEditable
19185 @DomName('SpeechGrammar') 19185 @DomName('SpeechGrammar')
19186 class SpeechGrammar native "*SpeechGrammar" { 19186 class SpeechGrammar native "SpeechGrammar" {
19187 19187
19188 @DomName('SpeechGrammar.SpeechGrammar') 19188 @DomName('SpeechGrammar.SpeechGrammar')
19189 @DocsEditable 19189 @DocsEditable
19190 factory SpeechGrammar() { 19190 factory SpeechGrammar() {
19191 return SpeechGrammar._create_1(); 19191 return SpeechGrammar._create_1();
19192 } 19192 }
19193 static SpeechGrammar _create_1() => JS('SpeechGrammar', 'new SpeechGrammar()') ; 19193 static SpeechGrammar _create_1() => JS('SpeechGrammar', 'new SpeechGrammar()') ;
19194 19194
19195 @DomName('SpeechGrammar.src') 19195 @DomName('SpeechGrammar.src')
19196 @DocsEditable 19196 @DocsEditable
19197 String src; 19197 String src;
19198 19198
19199 @DomName('SpeechGrammar.weight') 19199 @DomName('SpeechGrammar.weight')
19200 @DocsEditable 19200 @DocsEditable
19201 num weight; 19201 num weight;
19202 } 19202 }
19203 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19203 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19204 // for details. All rights reserved. Use of this source code is governed by a 19204 // for details. All rights reserved. Use of this source code is governed by a
19205 // BSD-style license that can be found in the LICENSE file. 19205 // BSD-style license that can be found in the LICENSE file.
19206 19206
19207 19207
19208 @DocsEditable 19208 @DocsEditable
19209 @DomName('SpeechGrammarList') 19209 @DomName('SpeechGrammarList')
19210 class SpeechGrammarList implements JavaScriptIndexingBehavior, List<SpeechGramma r> native "*SpeechGrammarList" { 19210 class SpeechGrammarList implements JavaScriptIndexingBehavior, List<SpeechGramma r> native "SpeechGrammarList" {
19211 19211
19212 @DomName('SpeechGrammarList.SpeechGrammarList') 19212 @DomName('SpeechGrammarList.SpeechGrammarList')
19213 @DocsEditable 19213 @DocsEditable
19214 factory SpeechGrammarList() { 19214 factory SpeechGrammarList() {
19215 return SpeechGrammarList._create_1(); 19215 return SpeechGrammarList._create_1();
19216 } 19216 }
19217 static SpeechGrammarList _create_1() => JS('SpeechGrammarList', 'new SpeechGra mmarList()'); 19217 static SpeechGrammarList _create_1() => JS('SpeechGrammarList', 'new SpeechGra mmarList()');
19218 19218
19219 @DomName('SpeechGrammarList.length') 19219 @DomName('SpeechGrammarList.length')
19220 @DocsEditable 19220 @DocsEditable
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
19432 @DocsEditable 19432 @DocsEditable
19433 SpeechGrammar item(int index) native; 19433 SpeechGrammar item(int index) native;
19434 } 19434 }
19435 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19435 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19436 // for details. All rights reserved. Use of this source code is governed by a 19436 // for details. All rights reserved. Use of this source code is governed by a
19437 // BSD-style license that can be found in the LICENSE file. 19437 // BSD-style license that can be found in the LICENSE file.
19438 19438
19439 19439
19440 @DocsEditable 19440 @DocsEditable
19441 @DomName('SpeechInputEvent') 19441 @DomName('SpeechInputEvent')
19442 class SpeechInputEvent extends Event native "*SpeechInputEvent" { 19442 class SpeechInputEvent extends Event native "SpeechInputEvent" {
19443 19443
19444 @DomName('SpeechInputEvent.results') 19444 @DomName('SpeechInputEvent.results')
19445 @DocsEditable 19445 @DocsEditable
19446 @Returns('_SpeechInputResultList') 19446 @Returns('_SpeechInputResultList')
19447 @Creates('_SpeechInputResultList') 19447 @Creates('_SpeechInputResultList')
19448 final List<SpeechInputResult> results; 19448 final List<SpeechInputResult> results;
19449 } 19449 }
19450 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19450 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19451 // for details. All rights reserved. Use of this source code is governed by a 19451 // for details. All rights reserved. Use of this source code is governed by a
19452 // BSD-style license that can be found in the LICENSE file. 19452 // BSD-style license that can be found in the LICENSE file.
19453 19453
19454 19454
19455 @DocsEditable 19455 @DocsEditable
19456 @DomName('SpeechInputResult') 19456 @DomName('SpeechInputResult')
19457 class SpeechInputResult native "*SpeechInputResult" { 19457 class SpeechInputResult native "SpeechInputResult" {
19458 19458
19459 @DomName('SpeechInputResult.confidence') 19459 @DomName('SpeechInputResult.confidence')
19460 @DocsEditable 19460 @DocsEditable
19461 final num confidence; 19461 final num confidence;
19462 19462
19463 @DomName('SpeechInputResult.utterance') 19463 @DomName('SpeechInputResult.utterance')
19464 @DocsEditable 19464 @DocsEditable
19465 final String utterance; 19465 final String utterance;
19466 } 19466 }
19467 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 19467 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
19468 // for details. All rights reserved. Use of this source code is governed by a 19468 // for details. All rights reserved. Use of this source code is governed by a
19469 // BSD-style license that can be found in the LICENSE file. 19469 // BSD-style license that can be found in the LICENSE file.
19470 19470
19471 19471
19472 @DomName('SpeechRecognition') 19472 @DomName('SpeechRecognition')
19473 @SupportedBrowser(SupportedBrowser.CHROME, '25') 19473 @SupportedBrowser(SupportedBrowser.CHROME, '25')
19474 @Experimental 19474 @Experimental
19475 class SpeechRecognition extends EventTarget native "*SpeechRecognition" { 19475 class SpeechRecognition extends EventTarget native "SpeechRecognition" {
19476 19476
19477 @DomName('SpeechRecognition.audioendEvent') 19477 @DomName('SpeechRecognition.audioendEvent')
19478 @DocsEditable 19478 @DocsEditable
19479 static const EventStreamProvider<Event> audioEndEvent = const EventStreamProvi der<Event>('audioend'); 19479 static const EventStreamProvider<Event> audioEndEvent = const EventStreamProvi der<Event>('audioend');
19480 19480
19481 @DomName('SpeechRecognition.audiostartEvent') 19481 @DomName('SpeechRecognition.audiostartEvent')
19482 @DocsEditable 19482 @DocsEditable
19483 static const EventStreamProvider<Event> audioStartEvent = const EventStreamPro vider<Event>('audiostart'); 19483 static const EventStreamProvider<Event> audioStartEvent = const EventStreamPro vider<Event>('audiostart');
19484 19484
19485 @DomName('SpeechRecognition.endEvent') 19485 @DomName('SpeechRecognition.endEvent')
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
19618 } 19618 }
19619 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19619 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19620 // for details. All rights reserved. Use of this source code is governed by a 19620 // for details. All rights reserved. Use of this source code is governed by a
19621 // BSD-style license that can be found in the LICENSE file. 19621 // BSD-style license that can be found in the LICENSE file.
19622 19622
19623 19623
19624 @DocsEditable 19624 @DocsEditable
19625 @DomName('SpeechRecognitionAlternative') 19625 @DomName('SpeechRecognitionAlternative')
19626 @SupportedBrowser(SupportedBrowser.CHROME, '25') 19626 @SupportedBrowser(SupportedBrowser.CHROME, '25')
19627 @Experimental 19627 @Experimental
19628 class SpeechRecognitionAlternative native "*SpeechRecognitionAlternative" { 19628 class SpeechRecognitionAlternative native "SpeechRecognitionAlternative" {
19629 19629
19630 @DomName('SpeechRecognitionAlternative.confidence') 19630 @DomName('SpeechRecognitionAlternative.confidence')
19631 @DocsEditable 19631 @DocsEditable
19632 final num confidence; 19632 final num confidence;
19633 19633
19634 @DomName('SpeechRecognitionAlternative.transcript') 19634 @DomName('SpeechRecognitionAlternative.transcript')
19635 @DocsEditable 19635 @DocsEditable
19636 final String transcript; 19636 final String transcript;
19637 } 19637 }
19638 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19638 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19639 // for details. All rights reserved. Use of this source code is governed by a 19639 // for details. All rights reserved. Use of this source code is governed by a
19640 // BSD-style license that can be found in the LICENSE file. 19640 // BSD-style license that can be found in the LICENSE file.
19641 19641
19642 19642
19643 @DocsEditable 19643 @DocsEditable
19644 @DomName('SpeechRecognitionError') 19644 @DomName('SpeechRecognitionError')
19645 @SupportedBrowser(SupportedBrowser.CHROME, '25') 19645 @SupportedBrowser(SupportedBrowser.CHROME, '25')
19646 @Experimental 19646 @Experimental
19647 class SpeechRecognitionError extends Event native "*SpeechRecognitionError" { 19647 class SpeechRecognitionError extends Event native "SpeechRecognitionError" {
19648 19648
19649 @DomName('SpeechRecognitionError.error') 19649 @DomName('SpeechRecognitionError.error')
19650 @DocsEditable 19650 @DocsEditable
19651 final String error; 19651 final String error;
19652 19652
19653 @DomName('SpeechRecognitionError.message') 19653 @DomName('SpeechRecognitionError.message')
19654 @DocsEditable 19654 @DocsEditable
19655 final String message; 19655 final String message;
19656 } 19656 }
19657 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19657 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19658 // for details. All rights reserved. Use of this source code is governed by a 19658 // for details. All rights reserved. Use of this source code is governed by a
19659 // BSD-style license that can be found in the LICENSE file. 19659 // BSD-style license that can be found in the LICENSE file.
19660 19660
19661 19661
19662 @DocsEditable 19662 @DocsEditable
19663 @DomName('SpeechRecognitionEvent') 19663 @DomName('SpeechRecognitionEvent')
19664 @SupportedBrowser(SupportedBrowser.CHROME, '25') 19664 @SupportedBrowser(SupportedBrowser.CHROME, '25')
19665 @Experimental 19665 @Experimental
19666 class SpeechRecognitionEvent extends Event native "*SpeechRecognitionEvent" { 19666 class SpeechRecognitionEvent extends Event native "SpeechRecognitionEvent" {
19667 19667
19668 @DomName('SpeechRecognitionEvent.emma') 19668 @DomName('SpeechRecognitionEvent.emma')
19669 @DocsEditable 19669 @DocsEditable
19670 final Document emma; 19670 final Document emma;
19671 19671
19672 @DomName('SpeechRecognitionEvent.interpretation') 19672 @DomName('SpeechRecognitionEvent.interpretation')
19673 @DocsEditable 19673 @DocsEditable
19674 final Document interpretation; 19674 final Document interpretation;
19675 19675
19676 @DomName('SpeechRecognitionEvent.resultIndex') 19676 @DomName('SpeechRecognitionEvent.resultIndex')
19677 @DocsEditable 19677 @DocsEditable
19678 final int resultIndex; 19678 final int resultIndex;
19679 19679
19680 @DomName('SpeechRecognitionEvent.results') 19680 @DomName('SpeechRecognitionEvent.results')
19681 @DocsEditable 19681 @DocsEditable
19682 @Returns('_SpeechRecognitionResultList') 19682 @Returns('_SpeechRecognitionResultList')
19683 @Creates('_SpeechRecognitionResultList') 19683 @Creates('_SpeechRecognitionResultList')
19684 final List<SpeechRecognitionResult> results; 19684 final List<SpeechRecognitionResult> results;
19685 } 19685 }
19686 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19686 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19687 // for details. All rights reserved. Use of this source code is governed by a 19687 // for details. All rights reserved. Use of this source code is governed by a
19688 // BSD-style license that can be found in the LICENSE file. 19688 // BSD-style license that can be found in the LICENSE file.
19689 19689
19690 19690
19691 @DocsEditable 19691 @DocsEditable
19692 @DomName('SpeechRecognitionResult') 19692 @DomName('SpeechRecognitionResult')
19693 @SupportedBrowser(SupportedBrowser.CHROME, '25') 19693 @SupportedBrowser(SupportedBrowser.CHROME, '25')
19694 @Experimental 19694 @Experimental
19695 class SpeechRecognitionResult native "*SpeechRecognitionResult" { 19695 class SpeechRecognitionResult native "SpeechRecognitionResult" {
19696 19696
19697 @DomName('SpeechRecognitionResult.isFinal') 19697 @DomName('SpeechRecognitionResult.isFinal')
19698 @DocsEditable 19698 @DocsEditable
19699 final bool isFinal; 19699 final bool isFinal;
19700 19700
19701 @DomName('SpeechRecognitionResult.length') 19701 @DomName('SpeechRecognitionResult.length')
19702 @DocsEditable 19702 @DocsEditable
19703 final int length; 19703 final int length;
19704 19704
19705 @DomName('SpeechRecognitionResult.item') 19705 @DomName('SpeechRecognitionResult.item')
(...skipping 25 matching lines...) Expand all
19731 * assert(window.localStorage.length == 0); 19731 * assert(window.localStorage.length == 0);
19732 * 19732 *
19733 * For more examples of using this API, see 19733 * For more examples of using this API, see
19734 * [localstorage_test.dart](http://code.google.com/p/dart/source/browse/branches /bleeding_edge/dart/tests/html/localstorage_test.dart). 19734 * [localstorage_test.dart](http://code.google.com/p/dart/source/browse/branches /bleeding_edge/dart/tests/html/localstorage_test.dart).
19735 * For details on using the Map API, see the 19735 * For details on using the Map API, see the
19736 * [Maps](http://www.dartlang.org/docs/library-tour/#maps-aka-dictionaries-or-ha shes) 19736 * [Maps](http://www.dartlang.org/docs/library-tour/#maps-aka-dictionaries-or-ha shes)
19737 * section of the library tour. 19737 * section of the library tour.
19738 */ 19738 */
19739 @DomName('Storage') 19739 @DomName('Storage')
19740 class Storage implements Map<String, String> 19740 class Storage implements Map<String, String>
19741 native "*Storage" { 19741 native "Storage" {
19742 19742
19743 // TODO(nweiz): update this when maps support lazy iteration 19743 // TODO(nweiz): update this when maps support lazy iteration
19744 bool containsValue(String value) => values.any((e) => e == value); 19744 bool containsValue(String value) => values.any((e) => e == value);
19745 19745
19746 bool containsKey(String key) => $dom_getItem(key) != null; 19746 bool containsKey(String key) => $dom_getItem(key) != null;
19747 19747
19748 String operator [](String key) => $dom_getItem(key); 19748 String operator [](String key) => $dom_getItem(key);
19749 19749
19750 void operator []=(String key, String value) { $dom_setItem(key, value); } 19750 void operator []=(String key, String value) { $dom_setItem(key, value); }
19751 19751
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
19827 19827
19828 typedef void StorageErrorCallback(DomException error); 19828 typedef void StorageErrorCallback(DomException error);
19829 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 19829 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
19830 // for details. All rights reserved. Use of this source code is governed by a 19830 // for details. All rights reserved. Use of this source code is governed by a
19831 // BSD-style license that can be found in the LICENSE file. 19831 // BSD-style license that can be found in the LICENSE file.
19832 19832
19833 // WARNING: Do not edit - generated code. 19833 // WARNING: Do not edit - generated code.
19834 19834
19835 19835
19836 @DomName('StorageEvent') 19836 @DomName('StorageEvent')
19837 class StorageEvent extends Event native "*StorageEvent" { 19837 class StorageEvent extends Event native "StorageEvent" {
19838 factory StorageEvent(String type, 19838 factory StorageEvent(String type,
19839 {bool canBubble: false, bool cancelable: false, String key, String oldValue, 19839 {bool canBubble: false, bool cancelable: false, String key, String oldValue,
19840 String newValue, String url, Storage storageArea}) { 19840 String newValue, String url, Storage storageArea}) {
19841 19841
19842 var e = document.$dom_createEvent("StorageEvent"); 19842 var e = document.$dom_createEvent("StorageEvent");
19843 e.$dom_initStorageEvent(type, canBubble, cancelable, key, oldValue, 19843 e.$dom_initStorageEvent(type, canBubble, cancelable, key, oldValue,
19844 newValue, url, storageArea); 19844 newValue, url, storageArea);
19845 return e; 19845 return e;
19846 } 19846 }
19847 19847
(...skipping 22 matching lines...) Expand all
19870 @DocsEditable 19870 @DocsEditable
19871 void $dom_initStorageEvent(String typeArg, bool canBubbleArg, bool cancelableA rg, String keyArg, String oldValueArg, String newValueArg, String urlArg, Storag e storageAreaArg) native; 19871 void $dom_initStorageEvent(String typeArg, bool canBubbleArg, bool cancelableA rg, String keyArg, String oldValueArg, String newValueArg, String urlArg, Storag e storageAreaArg) native;
19872 19872
19873 } 19873 }
19874 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 19874 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
19875 // for details. All rights reserved. Use of this source code is governed by a 19875 // for details. All rights reserved. Use of this source code is governed by a
19876 // BSD-style license that can be found in the LICENSE file. 19876 // BSD-style license that can be found in the LICENSE file.
19877 19877
19878 19878
19879 @DomName('StorageInfo') 19879 @DomName('StorageInfo')
19880 class StorageInfo native "*StorageInfo" { 19880 class StorageInfo native "StorageInfo" {
19881 19881
19882 static const int PERSISTENT = 1; 19882 static const int PERSISTENT = 1;
19883 19883
19884 static const int TEMPORARY = 0; 19884 static const int TEMPORARY = 0;
19885 19885
19886 @JSName('queryUsageAndQuota') 19886 @JSName('queryUsageAndQuota')
19887 @DomName('StorageInfo.queryUsageAndQuota') 19887 @DomName('StorageInfo.queryUsageAndQuota')
19888 @DocsEditable 19888 @DocsEditable
19889 void _queryUsageAndQuota(int storageType, [StorageUsageCallback usageCallback, StorageErrorCallback errorCallback]) native; 19889 void _queryUsageAndQuota(int storageType, [StorageUsageCallback usageCallback, StorageErrorCallback errorCallback]) native;
19890 19890
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
19925 final int currentQuotaInBytes; 19925 final int currentQuotaInBytes;
19926 const StorageInfoUsage(this.currentUsageInBytes, this.currentQuotaInBytes); 19926 const StorageInfoUsage(this.currentUsageInBytes, this.currentQuotaInBytes);
19927 } 19927 }
19928 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19928 // 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 19929 // 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. 19930 // BSD-style license that can be found in the LICENSE file.
19931 19931
19932 19932
19933 @DocsEditable 19933 @DocsEditable
19934 @DomName('StorageQuota') 19934 @DomName('StorageQuota')
19935 class StorageQuota native "*StorageQuota" { 19935 class StorageQuota native "StorageQuota" {
19936 19936
19937 @DomName('StorageQuota.queryUsageAndQuota') 19937 @DomName('StorageQuota.queryUsageAndQuota')
19938 @DocsEditable 19938 @DocsEditable
19939 void queryUsageAndQuota(StorageUsageCallback usageCallback, [StorageErrorCallb ack errorCallback]) native; 19939 void queryUsageAndQuota(StorageUsageCallback usageCallback, [StorageErrorCallb ack errorCallback]) native;
19940 19940
19941 @DomName('StorageQuota.requestQuota') 19941 @DomName('StorageQuota.requestQuota')
19942 @DocsEditable 19942 @DocsEditable
19943 void requestQuota(int newQuotaInBytes, [StorageQuotaCallback quotaCallback, St orageErrorCallback errorCallback]) native; 19943 void requestQuota(int newQuotaInBytes, [StorageQuotaCallback quotaCallback, St orageErrorCallback errorCallback]) native;
19944 } 19944 }
19945 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19945 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
(...skipping 20 matching lines...) Expand all
19966 19966
19967 19967
19968 typedef void _StringCallback(String data); 19968 typedef void _StringCallback(String data);
19969 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19969 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19970 // for details. All rights reserved. Use of this source code is governed by a 19970 // for details. All rights reserved. Use of this source code is governed by a
19971 // BSD-style license that can be found in the LICENSE file. 19971 // BSD-style license that can be found in the LICENSE file.
19972 19972
19973 19973
19974 @DocsEditable 19974 @DocsEditable
19975 @DomName('HTMLStyleElement') 19975 @DomName('HTMLStyleElement')
19976 class StyleElement extends Element native "*HTMLStyleElement" { 19976 class StyleElement extends Element native "HTMLStyleElement" {
19977 19977
19978 @DomName('HTMLStyleElement.HTMLStyleElement') 19978 @DomName('HTMLStyleElement.HTMLStyleElement')
19979 @DocsEditable 19979 @DocsEditable
19980 factory StyleElement() => document.$dom_createElement("style"); 19980 factory StyleElement() => document.$dom_createElement("style");
19981 19981
19982 @DomName('HTMLStyleElement.disabled') 19982 @DomName('HTMLStyleElement.disabled')
19983 @DocsEditable 19983 @DocsEditable
19984 bool disabled; 19984 bool disabled;
19985 19985
19986 @DomName('HTMLStyleElement.media') 19986 @DomName('HTMLStyleElement.media')
(...skipping 12 matching lines...) Expand all
19999 @DocsEditable 19999 @DocsEditable
20000 String type; 20000 String type;
20001 } 20001 }
20002 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20002 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20003 // for details. All rights reserved. Use of this source code is governed by a 20003 // for details. All rights reserved. Use of this source code is governed by a
20004 // BSD-style license that can be found in the LICENSE file. 20004 // BSD-style license that can be found in the LICENSE file.
20005 20005
20006 20006
20007 @DocsEditable 20007 @DocsEditable
20008 @DomName('StyleMedia') 20008 @DomName('StyleMedia')
20009 class StyleMedia native "*StyleMedia" { 20009 class StyleMedia native "StyleMedia" {
20010 20010
20011 @DomName('StyleMedia.type') 20011 @DomName('StyleMedia.type')
20012 @DocsEditable 20012 @DocsEditable
20013 final String type; 20013 final String type;
20014 20014
20015 @DomName('StyleMedia.matchMedium') 20015 @DomName('StyleMedia.matchMedium')
20016 @DocsEditable 20016 @DocsEditable
20017 bool matchMedium(String mediaquery) native; 20017 bool matchMedium(String mediaquery) native;
20018 } 20018 }
20019 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20019 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20020 // for details. All rights reserved. Use of this source code is governed by a 20020 // for details. All rights reserved. Use of this source code is governed by a
20021 // BSD-style license that can be found in the LICENSE file. 20021 // BSD-style license that can be found in the LICENSE file.
20022 20022
20023 20023
20024 @DocsEditable 20024 @DocsEditable
20025 @DomName('StyleSheet') 20025 @DomName('StyleSheet')
20026 class StyleSheet native "*StyleSheet" { 20026 class StyleSheet native "StyleSheet" {
20027 20027
20028 @DomName('StyleSheet.disabled') 20028 @DomName('StyleSheet.disabled')
20029 @DocsEditable 20029 @DocsEditable
20030 bool disabled; 20030 bool disabled;
20031 20031
20032 @DomName('StyleSheet.href') 20032 @DomName('StyleSheet.href')
20033 @DocsEditable 20033 @DocsEditable
20034 final String href; 20034 final String href;
20035 20035
20036 @DomName('StyleSheet.media') 20036 @DomName('StyleSheet.media')
(...skipping 16 matching lines...) Expand all
20053 @DocsEditable 20053 @DocsEditable
20054 final String type; 20054 final String type;
20055 } 20055 }
20056 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20056 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20057 // for details. All rights reserved. Use of this source code is governed by a 20057 // for details. All rights reserved. Use of this source code is governed by a
20058 // BSD-style license that can be found in the LICENSE file. 20058 // BSD-style license that can be found in the LICENSE file.
20059 20059
20060 20060
20061 @DocsEditable 20061 @DocsEditable
20062 @DomName('HTMLTableCaptionElement') 20062 @DomName('HTMLTableCaptionElement')
20063 class TableCaptionElement extends Element native "*HTMLTableCaptionElement" { 20063 class TableCaptionElement extends Element native "HTMLTableCaptionElement" {
20064 20064
20065 @DomName('HTMLTableCaptionElement.HTMLTableCaptionElement') 20065 @DomName('HTMLTableCaptionElement.HTMLTableCaptionElement')
20066 @DocsEditable 20066 @DocsEditable
20067 factory TableCaptionElement() => document.$dom_createElement("caption"); 20067 factory TableCaptionElement() => document.$dom_createElement("caption");
20068 } 20068 }
20069 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20069 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20070 // for details. All rights reserved. Use of this source code is governed by a 20070 // for details. All rights reserved. Use of this source code is governed by a
20071 // BSD-style license that can be found in the LICENSE file. 20071 // BSD-style license that can be found in the LICENSE file.
20072 20072
20073 20073
20074 @DocsEditable 20074 @DocsEditable
20075 @DomName('HTMLTableCellElement') 20075 @DomName('HTMLTableCellElement')
20076 class TableCellElement extends Element native "*HTMLTableCellElement" { 20076 class TableCellElement extends Element native "HTMLTableCellElement" {
20077 20077
20078 @DomName('HTMLTableCellElement.HTMLTableCellElement') 20078 @DomName('HTMLTableCellElement.HTMLTableCellElement')
20079 @DocsEditable 20079 @DocsEditable
20080 factory TableCellElement() => document.$dom_createElement("td"); 20080 factory TableCellElement() => document.$dom_createElement("td");
20081 20081
20082 @DomName('HTMLTableCellElement.cellIndex') 20082 @DomName('HTMLTableCellElement.cellIndex')
20083 @DocsEditable 20083 @DocsEditable
20084 final int cellIndex; 20084 final int cellIndex;
20085 20085
20086 @DomName('HTMLTableCellElement.colSpan') 20086 @DomName('HTMLTableCellElement.colSpan')
20087 @DocsEditable 20087 @DocsEditable
20088 int colSpan; 20088 int colSpan;
20089 20089
20090 @DomName('HTMLTableCellElement.headers') 20090 @DomName('HTMLTableCellElement.headers')
20091 @DocsEditable 20091 @DocsEditable
20092 String headers; 20092 String headers;
20093 20093
20094 @DomName('HTMLTableCellElement.rowSpan') 20094 @DomName('HTMLTableCellElement.rowSpan')
20095 @DocsEditable 20095 @DocsEditable
20096 int rowSpan; 20096 int rowSpan;
20097 } 20097 }
20098 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20098 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20099 // for details. All rights reserved. Use of this source code is governed by a 20099 // for details. All rights reserved. Use of this source code is governed by a
20100 // BSD-style license that can be found in the LICENSE file. 20100 // BSD-style license that can be found in the LICENSE file.
20101 20101
20102 20102
20103 @DocsEditable 20103 @DocsEditable
20104 @DomName('HTMLTableColElement') 20104 @DomName('HTMLTableColElement')
20105 class TableColElement extends Element native "*HTMLTableColElement" { 20105 class TableColElement extends Element native "HTMLTableColElement" {
20106 20106
20107 @DomName('HTMLTableColElement.HTMLTableColElement') 20107 @DomName('HTMLTableColElement.HTMLTableColElement')
20108 @DocsEditable 20108 @DocsEditable
20109 factory TableColElement() => document.$dom_createElement("col"); 20109 factory TableColElement() => document.$dom_createElement("col");
20110 20110
20111 @DomName('HTMLTableColElement.span') 20111 @DomName('HTMLTableColElement.span')
20112 @DocsEditable 20112 @DocsEditable
20113 int span; 20113 int span;
20114 } 20114 }
20115 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 20115 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
20116 // for details. All rights reserved. Use of this source code is governed by a 20116 // for details. All rights reserved. Use of this source code is governed by a
20117 // BSD-style license that can be found in the LICENSE file. 20117 // BSD-style license that can be found in the LICENSE file.
20118 20118
20119 20119
20120 @DocsEditable 20120 @DocsEditable
20121 @DomName('HTMLTableElement') 20121 @DomName('HTMLTableElement')
20122 class TableElement extends Element native "*HTMLTableElement" { 20122 class TableElement extends Element native "HTMLTableElement" {
20123 20123
20124 @DomName('HTMLTableElement.tBodies') 20124 @DomName('HTMLTableElement.tBodies')
20125 List<TableSectionElement> get tBodies => 20125 List<TableSectionElement> get tBodies =>
20126 new _WrappedList<TableSectionElement>($dom_tBodies); 20126 new _WrappedList<TableSectionElement>($dom_tBodies);
20127 20127
20128 @DomName('HTMLTableElement.rows') 20128 @DomName('HTMLTableElement.rows')
20129 List<TableRowElement> get rows => 20129 List<TableRowElement> get rows =>
20130 new _WrappedList<TableRowElement>($dom_rows); 20130 new _WrappedList<TableRowElement>($dom_rows);
20131 20131
20132 TableRowElement addRow() { 20132 TableRowElement addRow() {
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
20218 @DocsEditable 20218 @DocsEditable
20219 Element $dom_insertRow(int index) native; 20219 Element $dom_insertRow(int index) native;
20220 } 20220 }
20221 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 20221 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
20222 // for details. All rights reserved. Use of this source code is governed by a 20222 // for details. All rights reserved. Use of this source code is governed by a
20223 // BSD-style license that can be found in the LICENSE file. 20223 // BSD-style license that can be found in the LICENSE file.
20224 20224
20225 20225
20226 @DocsEditable 20226 @DocsEditable
20227 @DomName('HTMLTableRowElement') 20227 @DomName('HTMLTableRowElement')
20228 class TableRowElement extends Element native "*HTMLTableRowElement" { 20228 class TableRowElement extends Element native "HTMLTableRowElement" {
20229 20229
20230 @DomName('HTMLTableRowElement.cells') 20230 @DomName('HTMLTableRowElement.cells')
20231 List<TableCellElement> get cells => 20231 List<TableCellElement> get cells =>
20232 new _WrappedList<TableCellElement>($dom_cells); 20232 new _WrappedList<TableCellElement>($dom_cells);
20233 20233
20234 TableCellElement addCell() { 20234 TableCellElement addCell() {
20235 return insertCell(-1); 20235 return insertCell(-1);
20236 } 20236 }
20237 20237
20238 TableCellElement insertCell(int index) => $dom_insertCell(index); 20238 TableCellElement insertCell(int index) => $dom_insertCell(index);
(...skipping 25 matching lines...) Expand all
20264 @DocsEditable 20264 @DocsEditable
20265 Element $dom_insertCell(int index) native; 20265 Element $dom_insertCell(int index) native;
20266 } 20266 }
20267 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 20267 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
20268 // for details. All rights reserved. Use of this source code is governed by a 20268 // for details. All rights reserved. Use of this source code is governed by a
20269 // BSD-style license that can be found in the LICENSE file. 20269 // BSD-style license that can be found in the LICENSE file.
20270 20270
20271 20271
20272 @DocsEditable 20272 @DocsEditable
20273 @DomName('HTMLTableSectionElement') 20273 @DomName('HTMLTableSectionElement')
20274 class TableSectionElement extends Element native "*HTMLTableSectionElement" { 20274 class TableSectionElement extends Element native "HTMLTableSectionElement" {
20275 20275
20276 @DomName('HTMLTableSectionElement.rows') 20276 @DomName('HTMLTableSectionElement.rows')
20277 List<TableRowElement> get rows => 20277 List<TableRowElement> get rows =>
20278 new _WrappedList<TableRowElement>($dom_rows); 20278 new _WrappedList<TableRowElement>($dom_rows);
20279 20279
20280 TableRowElement addRow() { 20280 TableRowElement addRow() {
20281 return insertRow(-1); 20281 return insertRow(-1);
20282 } 20282 }
20283 20283
20284 TableRowElement insertRow(int index) => $dom_insertRow(index); 20284 TableRowElement insertRow(int index) => $dom_insertRow(index);
(...skipping 13 matching lines...) Expand all
20298 @DocsEditable 20298 @DocsEditable
20299 Element $dom_insertRow(int index) native; 20299 Element $dom_insertRow(int index) native;
20300 } 20300 }
20301 // 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
20302 // 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
20303 // BSD-style license that can be found in the LICENSE file. 20303 // BSD-style license that can be found in the LICENSE file.
20304 20304
20305 20305
20306 @DocsEditable 20306 @DocsEditable
20307 @DomName('HTMLTemplateElement') 20307 @DomName('HTMLTemplateElement')
20308 class TemplateElement extends Element native "*HTMLTemplateElement" { 20308 class TemplateElement extends Element native "HTMLTemplateElement" {
20309 20309
20310 @DomName('HTMLTemplateElement.content') 20310 @DomName('HTMLTemplateElement.content')
20311 @DocsEditable 20311 @DocsEditable
20312 final DocumentFragment content; 20312 final DocumentFragment content;
20313 } 20313 }
20314 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20314 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20315 // for details. All rights reserved. Use of this source code is governed by a 20315 // for details. All rights reserved. Use of this source code is governed by a
20316 // BSD-style license that can be found in the LICENSE file. 20316 // BSD-style license that can be found in the LICENSE file.
20317 20317
20318 // WARNING: Do not edit - generated code. 20318 // WARNING: Do not edit - generated code.
20319 20319
20320 20320
20321 @DomName('Text') 20321 @DomName('Text')
20322 class Text extends CharacterData native "*Text" { 20322 class Text extends CharacterData native "Text" {
20323 factory Text(String data) => _TextFactoryProvider.createText(data); 20323 factory Text(String data) => _TextFactoryProvider.createText(data);
20324 20324
20325 @JSName('webkitInsertionParent') 20325 @JSName('webkitInsertionParent')
20326 @DomName('Text.webkitInsertionParent') 20326 @DomName('Text.webkitInsertionParent')
20327 @DocsEditable 20327 @DocsEditable
20328 @SupportedBrowser(SupportedBrowser.CHROME) 20328 @SupportedBrowser(SupportedBrowser.CHROME)
20329 @SupportedBrowser(SupportedBrowser.SAFARI) 20329 @SupportedBrowser(SupportedBrowser.SAFARI)
20330 @Experimental 20330 @Experimental
20331 final Node insertionParent; 20331 final Node insertionParent;
20332 20332
(...skipping 10 matching lines...) Expand all
20343 Text splitText(int offset) native; 20343 Text splitText(int offset) native;
20344 20344
20345 } 20345 }
20346 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20346 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20347 // for details. All rights reserved. Use of this source code is governed by a 20347 // for details. All rights reserved. Use of this source code is governed by a
20348 // BSD-style license that can be found in the LICENSE file. 20348 // BSD-style license that can be found in the LICENSE file.
20349 20349
20350 20350
20351 @DocsEditable 20351 @DocsEditable
20352 @DomName('HTMLTextAreaElement') 20352 @DomName('HTMLTextAreaElement')
20353 class TextAreaElement extends Element native "*HTMLTextAreaElement" { 20353 class TextAreaElement extends Element native "HTMLTextAreaElement" {
20354 20354
20355 @DomName('HTMLTextAreaElement.HTMLTextAreaElement') 20355 @DomName('HTMLTextAreaElement.HTMLTextAreaElement')
20356 @DocsEditable 20356 @DocsEditable
20357 factory TextAreaElement() => document.$dom_createElement("textarea"); 20357 factory TextAreaElement() => document.$dom_createElement("textarea");
20358 20358
20359 @DomName('HTMLTextAreaElement.autofocus') 20359 @DomName('HTMLTextAreaElement.autofocus')
20360 @DocsEditable 20360 @DocsEditable
20361 bool autofocus; 20361 bool autofocus;
20362 20362
20363 @DomName('HTMLTextAreaElement.cols') 20363 @DomName('HTMLTextAreaElement.cols')
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
20471 void setSelectionRange(int start, int end, [String direction]) native; 20471 void setSelectionRange(int start, int end, [String direction]) native;
20472 } 20472 }
20473 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 20473 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
20474 // for details. All rights reserved. Use of this source code is governed by a 20474 // for details. All rights reserved. Use of this source code is governed by a
20475 // BSD-style license that can be found in the LICENSE file. 20475 // BSD-style license that can be found in the LICENSE file.
20476 20476
20477 // WARNING: Do not edit - generated code. 20477 // WARNING: Do not edit - generated code.
20478 20478
20479 20479
20480 @DomName('TextEvent') 20480 @DomName('TextEvent')
20481 class TextEvent extends UIEvent native "*TextEvent" { 20481 class TextEvent extends UIEvent native "TextEvent" {
20482 factory TextEvent(String type, 20482 factory TextEvent(String type,
20483 {bool canBubble: false, bool cancelable: false, Window view, String data}) { 20483 {bool canBubble: false, bool cancelable: false, Window view, String data}) {
20484 if (view == null) { 20484 if (view == null) {
20485 view = window; 20485 view = window;
20486 } 20486 }
20487 var e = document.$dom_createEvent("TextEvent"); 20487 var e = document.$dom_createEvent("TextEvent");
20488 e.$dom_initTextEvent(type, canBubble, cancelable, view, data); 20488 e.$dom_initTextEvent(type, canBubble, cancelable, view, data);
20489 return e; 20489 return e;
20490 } 20490 }
20491 20491
20492 @DomName('TextEvent.data') 20492 @DomName('TextEvent.data')
20493 @DocsEditable 20493 @DocsEditable
20494 final String data; 20494 final String data;
20495 20495
20496 @JSName('initTextEvent') 20496 @JSName('initTextEvent')
20497 @DomName('TextEvent.initTextEvent') 20497 @DomName('TextEvent.initTextEvent')
20498 @DocsEditable 20498 @DocsEditable
20499 void $dom_initTextEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Window viewArg, String dataArg) native; 20499 void $dom_initTextEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Window viewArg, String dataArg) native;
20500 20500
20501 } 20501 }
20502 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20502 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20503 // for details. All rights reserved. Use of this source code is governed by a 20503 // for details. All rights reserved. Use of this source code is governed by a
20504 // BSD-style license that can be found in the LICENSE file. 20504 // BSD-style license that can be found in the LICENSE file.
20505 20505
20506 20506
20507 @DocsEditable 20507 @DocsEditable
20508 @DomName('TextMetrics') 20508 @DomName('TextMetrics')
20509 class TextMetrics native "*TextMetrics" { 20509 class TextMetrics native "TextMetrics" {
20510 20510
20511 @DomName('TextMetrics.width') 20511 @DomName('TextMetrics.width')
20512 @DocsEditable 20512 @DocsEditable
20513 final num width; 20513 final num width;
20514 } 20514 }
20515 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20515 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20516 // for details. All rights reserved. Use of this source code is governed by a 20516 // for details. All rights reserved. Use of this source code is governed by a
20517 // BSD-style license that can be found in the LICENSE file. 20517 // BSD-style license that can be found in the LICENSE file.
20518 20518
20519 20519
20520 @DocsEditable 20520 @DocsEditable
20521 @DomName('TextTrack') 20521 @DomName('TextTrack')
20522 class TextTrack extends EventTarget native "*TextTrack" { 20522 class TextTrack extends EventTarget native "TextTrack" {
20523 20523
20524 @DomName('TextTrack.cuechangeEvent') 20524 @DomName('TextTrack.cuechangeEvent')
20525 @DocsEditable 20525 @DocsEditable
20526 static const EventStreamProvider<Event> cueChangeEvent = const EventStreamProv ider<Event>('cuechange'); 20526 static const EventStreamProvider<Event> cueChangeEvent = const EventStreamProv ider<Event>('cuechange');
20527 20527
20528 @DomName('TextTrack.activeCues') 20528 @DomName('TextTrack.activeCues')
20529 @DocsEditable 20529 @DocsEditable
20530 final TextTrackCueList activeCues; 20530 final TextTrackCueList activeCues;
20531 20531
20532 @DomName('TextTrack.cues') 20532 @DomName('TextTrack.cues')
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
20575 @DocsEditable 20575 @DocsEditable
20576 Stream<Event> get onCueChange => cueChangeEvent.forTarget(this); 20576 Stream<Event> get onCueChange => cueChangeEvent.forTarget(this);
20577 } 20577 }
20578 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20578 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20579 // for details. All rights reserved. Use of this source code is governed by a 20579 // for details. All rights reserved. Use of this source code is governed by a
20580 // BSD-style license that can be found in the LICENSE file. 20580 // BSD-style license that can be found in the LICENSE file.
20581 20581
20582 20582
20583 @DocsEditable 20583 @DocsEditable
20584 @DomName('TextTrackCue') 20584 @DomName('TextTrackCue')
20585 class TextTrackCue extends EventTarget native "*TextTrackCue" { 20585 class TextTrackCue extends EventTarget native "TextTrackCue" {
20586 20586
20587 @DomName('TextTrackCue.enterEvent') 20587 @DomName('TextTrackCue.enterEvent')
20588 @DocsEditable 20588 @DocsEditable
20589 static const EventStreamProvider<Event> enterEvent = const EventStreamProvider <Event>('enter'); 20589 static const EventStreamProvider<Event> enterEvent = const EventStreamProvider <Event>('enter');
20590 20590
20591 @DomName('TextTrackCue.exitEvent') 20591 @DomName('TextTrackCue.exitEvent')
20592 @DocsEditable 20592 @DocsEditable
20593 static const EventStreamProvider<Event> exitEvent = const EventStreamProvider< Event>('exit'); 20593 static const EventStreamProvider<Event> exitEvent = const EventStreamProvider< Event>('exit');
20594 20594
20595 @DomName('TextTrackCue.TextTrackCue') 20595 @DomName('TextTrackCue.TextTrackCue')
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
20674 @DocsEditable 20674 @DocsEditable
20675 Stream<Event> get onExit => exitEvent.forTarget(this); 20675 Stream<Event> get onExit => exitEvent.forTarget(this);
20676 } 20676 }
20677 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20677 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20678 // for details. All rights reserved. Use of this source code is governed by a 20678 // for details. All rights reserved. Use of this source code is governed by a
20679 // BSD-style license that can be found in the LICENSE file. 20679 // BSD-style license that can be found in the LICENSE file.
20680 20680
20681 20681
20682 @DocsEditable 20682 @DocsEditable
20683 @DomName('TextTrackCueList') 20683 @DomName('TextTrackCueList')
20684 class TextTrackCueList implements List<TextTrackCue>, JavaScriptIndexingBehavior native "*TextTrackCueList" { 20684 class TextTrackCueList implements List<TextTrackCue>, JavaScriptIndexingBehavior native "TextTrackCueList" {
20685 20685
20686 @DomName('TextTrackCueList.length') 20686 @DomName('TextTrackCueList.length')
20687 @DocsEditable 20687 @DocsEditable
20688 int get length => JS("int", "#.length", this); 20688 int get length => JS("int", "#.length", this);
20689 20689
20690 TextTrackCue operator[](int index) => JS("TextTrackCue", "#[#]", this, index); 20690 TextTrackCue operator[](int index) => JS("TextTrackCue", "#[#]", this, index);
20691 20691
20692 void operator[]=(int index, TextTrackCue value) { 20692 void operator[]=(int index, TextTrackCue value) {
20693 throw new UnsupportedError("Cannot assign element of immutable List."); 20693 throw new UnsupportedError("Cannot assign element of immutable List.");
20694 } 20694 }
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
20895 @DocsEditable 20895 @DocsEditable
20896 TextTrackCue item(int index) native; 20896 TextTrackCue item(int index) native;
20897 } 20897 }
20898 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20898 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20899 // for details. All rights reserved. Use of this source code is governed by a 20899 // for details. All rights reserved. Use of this source code is governed by a
20900 // BSD-style license that can be found in the LICENSE file. 20900 // BSD-style license that can be found in the LICENSE file.
20901 20901
20902 20902
20903 @DocsEditable 20903 @DocsEditable
20904 @DomName('TextTrackList') 20904 @DomName('TextTrackList')
20905 class TextTrackList extends EventTarget implements JavaScriptIndexingBehavior, L ist<TextTrack> native "*TextTrackList" { 20905 class TextTrackList extends EventTarget implements JavaScriptIndexingBehavior, L ist<TextTrack> native "TextTrackList" {
20906 20906
20907 @DomName('TextTrackList.addtrackEvent') 20907 @DomName('TextTrackList.addtrackEvent')
20908 @DocsEditable 20908 @DocsEditable
20909 static const EventStreamProvider<TrackEvent> addTrackEvent = const EventStream Provider<TrackEvent>('addtrack'); 20909 static const EventStreamProvider<TrackEvent> addTrackEvent = const EventStream Provider<TrackEvent>('addtrack');
20910 20910
20911 @DomName('TextTrackList.length') 20911 @DomName('TextTrackList.length')
20912 @DocsEditable 20912 @DocsEditable
20913 int get length => JS("int", "#.length", this); 20913 int get length => JS("int", "#.length", this);
20914 20914
20915 TextTrack operator[](int index) => JS("TextTrack", "#[#]", this, index); 20915 TextTrack operator[](int index) => JS("TextTrack", "#[#]", this, index);
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
21134 @DocsEditable 21134 @DocsEditable
21135 Stream<TrackEvent> get onAddTrack => addTrackEvent.forTarget(this); 21135 Stream<TrackEvent> get onAddTrack => addTrackEvent.forTarget(this);
21136 } 21136 }
21137 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21137 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21138 // for details. All rights reserved. Use of this source code is governed by a 21138 // for details. All rights reserved. Use of this source code is governed by a
21139 // BSD-style license that can be found in the LICENSE file. 21139 // BSD-style license that can be found in the LICENSE file.
21140 21140
21141 21141
21142 @DocsEditable 21142 @DocsEditable
21143 @DomName('TimeRanges') 21143 @DomName('TimeRanges')
21144 class TimeRanges native "*TimeRanges" { 21144 class TimeRanges native "TimeRanges" {
21145 21145
21146 @DomName('TimeRanges.length') 21146 @DomName('TimeRanges.length')
21147 @DocsEditable 21147 @DocsEditable
21148 final int length; 21148 final int length;
21149 21149
21150 @DomName('TimeRanges.end') 21150 @DomName('TimeRanges.end')
21151 @DocsEditable 21151 @DocsEditable
21152 num end(int index) native; 21152 num end(int index) native;
21153 21153
21154 @DomName('TimeRanges.start') 21154 @DomName('TimeRanges.start')
21155 @DocsEditable 21155 @DocsEditable
21156 num start(int index) native; 21156 num start(int index) native;
21157 } 21157 }
21158 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21158 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21159 // for details. All rights reserved. Use of this source code is governed by a 21159 // for details. All rights reserved. Use of this source code is governed by a
21160 // BSD-style license that can be found in the LICENSE file. 21160 // BSD-style license that can be found in the LICENSE file.
21161 21161
21162 // WARNING: Do not edit - generated code. 21162 // WARNING: Do not edit - generated code.
21163 21163
21164 21164
21165 typedef void TimeoutHandler(); 21165 typedef void TimeoutHandler();
21166 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21166 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21167 // for details. All rights reserved. Use of this source code is governed by a 21167 // for details. All rights reserved. Use of this source code is governed by a
21168 // BSD-style license that can be found in the LICENSE file. 21168 // BSD-style license that can be found in the LICENSE file.
21169 21169
21170 21170
21171 @DocsEditable 21171 @DocsEditable
21172 @DomName('HTMLTitleElement') 21172 @DomName('HTMLTitleElement')
21173 class TitleElement extends Element native "*HTMLTitleElement" { 21173 class TitleElement extends Element native "HTMLTitleElement" {
21174 21174
21175 @DomName('HTMLTitleElement.HTMLTitleElement') 21175 @DomName('HTMLTitleElement.HTMLTitleElement')
21176 @DocsEditable 21176 @DocsEditable
21177 factory TitleElement() => document.$dom_createElement("title"); 21177 factory TitleElement() => document.$dom_createElement("title");
21178 } 21178 }
21179 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21179 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21180 // for details. All rights reserved. Use of this source code is governed by a 21180 // for details. All rights reserved. Use of this source code is governed by a
21181 // BSD-style license that can be found in the LICENSE file. 21181 // BSD-style license that can be found in the LICENSE file.
21182 21182
21183 21183
21184 @DocsEditable 21184 @DocsEditable
21185 @DomName('Touch') 21185 @DomName('Touch')
21186 class Touch native "*Touch" { 21186 class Touch native "Touch" {
21187 21187
21188 @JSName('clientX') 21188 @JSName('clientX')
21189 @DomName('Touch.clientX') 21189 @DomName('Touch.clientX')
21190 @DocsEditable 21190 @DocsEditable
21191 final int $dom_clientX; 21191 final int $dom_clientX;
21192 21192
21193 @JSName('clientY') 21193 @JSName('clientY')
21194 @DomName('Touch.clientY') 21194 @DomName('Touch.clientY')
21195 @DocsEditable 21195 @DocsEditable
21196 final int $dom_clientY; 21196 final int $dom_clientY;
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
21273 Point get screen => new Point($dom_screenX, $dom_screenY); 21273 Point get screen => new Point($dom_screenX, $dom_screenY);
21274 } 21274 }
21275 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 21275 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
21276 // for details. All rights reserved. Use of this source code is governed by a 21276 // for details. All rights reserved. Use of this source code is governed by a
21277 // BSD-style license that can be found in the LICENSE file. 21277 // BSD-style license that can be found in the LICENSE file.
21278 21278
21279 // WARNING: Do not edit - generated code. 21279 // WARNING: Do not edit - generated code.
21280 21280
21281 21281
21282 @DomName('TouchEvent') 21282 @DomName('TouchEvent')
21283 class TouchEvent extends UIEvent native "*TouchEvent" { 21283 class TouchEvent extends UIEvent native "TouchEvent" {
21284 factory TouchEvent(TouchList touches, TouchList targetTouches, 21284 factory TouchEvent(TouchList touches, TouchList targetTouches,
21285 TouchList changedTouches, String type, 21285 TouchList changedTouches, String type,
21286 {Window view, int screenX: 0, int screenY: 0, int clientX: 0, 21286 {Window view, int screenX: 0, int screenY: 0, int clientX: 0,
21287 int clientY: 0, bool ctrlKey: false, bool altKey: false, 21287 int clientY: 0, bool ctrlKey: false, bool altKey: false,
21288 bool shiftKey: false, bool metaKey: false}) { 21288 bool shiftKey: false, bool metaKey: false}) {
21289 if (view == null) { 21289 if (view == null) {
21290 view = window; 21290 view = window;
21291 } 21291 }
21292 var e = document.$dom_createEvent("TouchEvent"); 21292 var e = document.$dom_createEvent("TouchEvent");
21293 e.$dom_initTouchEvent(touches, targetTouches, changedTouches, type, view, 21293 e.$dom_initTouchEvent(touches, targetTouches, changedTouches, type, view,
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
21343 } 21343 }
21344 } 21344 }
21345 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 21345 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
21346 // for details. All rights reserved. Use of this source code is governed by a 21346 // for details. All rights reserved. Use of this source code is governed by a
21347 // BSD-style license that can be found in the LICENSE file. 21347 // BSD-style license that can be found in the LICENSE file.
21348 21348
21349 // WARNING: Do not edit - generated code. 21349 // WARNING: Do not edit - generated code.
21350 21350
21351 21351
21352 @DomName('TouchList') 21352 @DomName('TouchList')
21353 class TouchList implements JavaScriptIndexingBehavior, List<Touch> native "*Touc hList" { 21353 class TouchList implements JavaScriptIndexingBehavior, List<Touch> native "Touch List" {
21354 /// NB: This constructor likely does not work as you might expect it to! This 21354 /// NB: This constructor likely does not work as you might expect it to! This
21355 /// constructor will simply fail (returning null) if you are not on a device 21355 /// constructor will simply fail (returning null) if you are not on a device
21356 /// with touch enabled. See dartbug.com/8314. 21356 /// with touch enabled. See dartbug.com/8314.
21357 factory TouchList() => document.$dom_createTouchList(); 21357 factory TouchList() => document.$dom_createTouchList();
21358 21358
21359 /// Checks if this type is supported on the current platform. 21359 /// Checks if this type is supported on the current platform.
21360 static bool get supported => JS('bool', '!!document.createTouchList'); 21360 static bool get supported => JS('bool', '!!document.createTouchList');
21361 21361
21362 @DomName('TouchList.length') 21362 @DomName('TouchList.length')
21363 @DocsEditable 21363 @DocsEditable
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
21571 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21571 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21572 // for details. All rights reserved. Use of this source code is governed by a 21572 // for details. All rights reserved. Use of this source code is governed by a
21573 // BSD-style license that can be found in the LICENSE file. 21573 // BSD-style license that can be found in the LICENSE file.
21574 21574
21575 21575
21576 @DocsEditable 21576 @DocsEditable
21577 @DomName('HTMLTrackElement') 21577 @DomName('HTMLTrackElement')
21578 @SupportedBrowser(SupportedBrowser.CHROME) 21578 @SupportedBrowser(SupportedBrowser.CHROME)
21579 @SupportedBrowser(SupportedBrowser.IE, '10') 21579 @SupportedBrowser(SupportedBrowser.IE, '10')
21580 @SupportedBrowser(SupportedBrowser.SAFARI) 21580 @SupportedBrowser(SupportedBrowser.SAFARI)
21581 class TrackElement extends Element native "*HTMLTrackElement" { 21581 class TrackElement extends Element native "HTMLTrackElement" {
21582 21582
21583 @DomName('HTMLTrackElement.HTMLTrackElement') 21583 @DomName('HTMLTrackElement.HTMLTrackElement')
21584 @DocsEditable 21584 @DocsEditable
21585 factory TrackElement() => document.$dom_createElement("track"); 21585 factory TrackElement() => document.$dom_createElement("track");
21586 21586
21587 /// Checks if this type is supported on the current platform. 21587 /// Checks if this type is supported on the current platform.
21588 static bool get supported => Element.isTagSupported('track'); 21588 static bool get supported => Element.isTagSupported('track');
21589 21589
21590 static const int ERROR = 3; 21590 static const int ERROR = 3;
21591 21591
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
21624 @DocsEditable 21624 @DocsEditable
21625 final TextTrack track; 21625 final TextTrack track;
21626 } 21626 }
21627 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21627 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21628 // for details. All rights reserved. Use of this source code is governed by a 21628 // for details. All rights reserved. Use of this source code is governed by a
21629 // BSD-style license that can be found in the LICENSE file. 21629 // BSD-style license that can be found in the LICENSE file.
21630 21630
21631 21631
21632 @DocsEditable 21632 @DocsEditable
21633 @DomName('TrackEvent') 21633 @DomName('TrackEvent')
21634 class TrackEvent extends Event native "*TrackEvent" { 21634 class TrackEvent extends Event native "TrackEvent" {
21635 21635
21636 @DomName('TrackEvent.track') 21636 @DomName('TrackEvent.track')
21637 @DocsEditable 21637 @DocsEditable
21638 final Object track; 21638 final Object track;
21639 } 21639 }
21640 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21640 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21641 // for details. All rights reserved. Use of this source code is governed by a 21641 // for details. All rights reserved. Use of this source code is governed by a
21642 // BSD-style license that can be found in the LICENSE file. 21642 // BSD-style license that can be found in the LICENSE file.
21643 21643
21644 21644
21645 @DocsEditable 21645 @DocsEditable
21646 @DomName('TransitionEvent') 21646 @DomName('TransitionEvent')
21647 class TransitionEvent extends Event native "*TransitionEvent" { 21647 class TransitionEvent extends Event native "TransitionEvent,WebKitTransitionEven t" {
21648 21648
21649 @DomName('TransitionEvent.elapsedTime') 21649 @DomName('TransitionEvent.elapsedTime')
21650 @DocsEditable 21650 @DocsEditable
21651 final num elapsedTime; 21651 final num elapsedTime;
21652 21652
21653 @DomName('TransitionEvent.propertyName') 21653 @DomName('TransitionEvent.propertyName')
21654 @DocsEditable 21654 @DocsEditable
21655 final String propertyName; 21655 final String propertyName;
21656 21656
21657 @DomName('TransitionEvent.pseudoElement') 21657 @DomName('TransitionEvent.pseudoElement')
21658 @DocsEditable 21658 @DocsEditable
21659 final String pseudoElement; 21659 final String pseudoElement;
21660 } 21660 }
21661 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21661 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21662 // for details. All rights reserved. Use of this source code is governed by a 21662 // for details. All rights reserved. Use of this source code is governed by a
21663 // BSD-style license that can be found in the LICENSE file. 21663 // BSD-style license that can be found in the LICENSE file.
21664 21664
21665 21665
21666 @DocsEditable 21666 @DocsEditable
21667 @DomName('TreeWalker') 21667 @DomName('TreeWalker')
21668 class TreeWalker native "*TreeWalker" { 21668 class TreeWalker native "TreeWalker" {
21669 21669
21670 @DomName('TreeWalker.currentNode') 21670 @DomName('TreeWalker.currentNode')
21671 @DocsEditable 21671 @DocsEditable
21672 Node currentNode; 21672 Node currentNode;
21673 21673
21674 @DomName('TreeWalker.expandEntityReferences') 21674 @DomName('TreeWalker.expandEntityReferences')
21675 @DocsEditable 21675 @DocsEditable
21676 final bool expandEntityReferences; 21676 final bool expandEntityReferences;
21677 21677
21678 @DomName('TreeWalker.filter') 21678 @DomName('TreeWalker.filter')
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
21716 Node previousSibling() native; 21716 Node previousSibling() native;
21717 } 21717 }
21718 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21718 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21719 // for details. All rights reserved. Use of this source code is governed by a 21719 // for details. All rights reserved. Use of this source code is governed by a
21720 // BSD-style license that can be found in the LICENSE file. 21720 // BSD-style license that can be found in the LICENSE file.
21721 21721
21722 // WARNING: Do not edit - generated code. 21722 // WARNING: Do not edit - generated code.
21723 21723
21724 21724
21725 @DomName('UIEvent') 21725 @DomName('UIEvent')
21726 class UIEvent extends Event native "*UIEvent" { 21726 class UIEvent extends Event native "UIEvent" {
21727 // In JS, canBubble and cancelable are technically required parameters to 21727 // In JS, canBubble and cancelable are technically required parameters to
21728 // init*Event. In practice, though, if they aren't provided they simply 21728 // init*Event. In practice, though, if they aren't provided they simply
21729 // default to false (since that's Boolean(undefined)). 21729 // default to false (since that's Boolean(undefined)).
21730 // 21730 //
21731 // Contrary to JS, we default canBubble and cancelable to true, since that's 21731 // Contrary to JS, we default canBubble and cancelable to true, since that's
21732 // what people want most of the time anyway. 21732 // what people want most of the time anyway.
21733 factory UIEvent(String type, 21733 factory UIEvent(String type,
21734 {Window view, int detail: 0, bool canBubble: true, 21734 {Window view, int detail: 0, bool canBubble: true,
21735 bool cancelable: true}) { 21735 bool cancelable: true}) {
21736 if (view == null) { 21736 if (view == null) {
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
21811 @DomName('UIEvent.pageY') 21811 @DomName('UIEvent.pageY')
21812 Point get page => new Point($dom_pageX, $dom_pageY); 21812 Point get page => new Point($dom_pageX, $dom_pageY);
21813 } 21813 }
21814 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21814 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21815 // for details. All rights reserved. Use of this source code is governed by a 21815 // for details. All rights reserved. Use of this source code is governed by a
21816 // BSD-style license that can be found in the LICENSE file. 21816 // BSD-style license that can be found in the LICENSE file.
21817 21817
21818 21818
21819 @DocsEditable 21819 @DocsEditable
21820 @DomName('HTMLUListElement') 21820 @DomName('HTMLUListElement')
21821 class UListElement extends Element native "*HTMLUListElement" { 21821 class UListElement extends Element native "HTMLUListElement" {
21822 21822
21823 @DomName('HTMLUListElement.HTMLUListElement') 21823 @DomName('HTMLUListElement.HTMLUListElement')
21824 @DocsEditable 21824 @DocsEditable
21825 factory UListElement() => document.$dom_createElement("ul"); 21825 factory UListElement() => document.$dom_createElement("ul");
21826 } 21826 }
21827 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21827 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21828 // for details. All rights reserved. Use of this source code is governed by a 21828 // for details. All rights reserved. Use of this source code is governed by a
21829 // BSD-style license that can be found in the LICENSE file. 21829 // BSD-style license that can be found in the LICENSE file.
21830 21830
21831 21831
21832 @DocsEditable 21832 @DocsEditable
21833 @DomName('HTMLUnknownElement') 21833 @DomName('HTMLUnknownElement')
21834 class UnknownElement extends Element native "*HTMLUnknownElement" { 21834 class UnknownElement extends Element native "HTMLUnknownElement" {
21835 } 21835 }
21836 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21836 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21837 // for details. All rights reserved. Use of this source code is governed by a 21837 // for details. All rights reserved. Use of this source code is governed by a
21838 // BSD-style license that can be found in the LICENSE file. 21838 // BSD-style license that can be found in the LICENSE file.
21839 21839
21840 21840
21841 @DomName('URL') 21841 @DomName('URL')
21842 class Url native "*URL" { 21842 class Url native "URL" {
21843 21843
21844 static String createObjectUrl(blob_OR_source_OR_stream) => 21844 static String createObjectUrl(blob_OR_source_OR_stream) =>
21845 JS('String', 21845 JS('String',
21846 '(window.URL || window.webkitURL).createObjectURL(#)', 21846 '(window.URL || window.webkitURL).createObjectURL(#)',
21847 blob_OR_source_OR_stream); 21847 blob_OR_source_OR_stream);
21848 21848
21849 static void revokeObjectUrl(String objectUrl) => 21849 static void revokeObjectUrl(String objectUrl) =>
21850 JS('void', 21850 JS('void',
21851 '(window.URL || window.webkitURL).revokeObjectURL(#)', objectUrl); 21851 '(window.URL || window.webkitURL).revokeObjectURL(#)', objectUrl);
21852 21852
21853 } 21853 }
21854 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21854 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21855 // for details. All rights reserved. Use of this source code is governed by a 21855 // for details. All rights reserved. Use of this source code is governed by a
21856 // BSD-style license that can be found in the LICENSE file. 21856 // BSD-style license that can be found in the LICENSE file.
21857 21857
21858 21858
21859 @DocsEditable 21859 @DocsEditable
21860 @DomName('ValidityState') 21860 @DomName('ValidityState')
21861 class ValidityState native "*ValidityState" { 21861 class ValidityState native "ValidityState" {
21862 21862
21863 @DomName('ValidityState.badInput') 21863 @DomName('ValidityState.badInput')
21864 @DocsEditable 21864 @DocsEditable
21865 final bool badInput; 21865 final bool badInput;
21866 21866
21867 @DomName('ValidityState.customError') 21867 @DomName('ValidityState.customError')
21868 @DocsEditable 21868 @DocsEditable
21869 final bool customError; 21869 final bool customError;
21870 21870
21871 @DomName('ValidityState.patternMismatch') 21871 @DomName('ValidityState.patternMismatch')
(...skipping 27 matching lines...) Expand all
21899 @DomName('ValidityState.valueMissing') 21899 @DomName('ValidityState.valueMissing')
21900 @DocsEditable 21900 @DocsEditable
21901 final bool valueMissing; 21901 final bool valueMissing;
21902 } 21902 }
21903 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21903 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21904 // for details. All rights reserved. Use of this source code is governed by a 21904 // for details. All rights reserved. Use of this source code is governed by a
21905 // BSD-style license that can be found in the LICENSE file. 21905 // BSD-style license that can be found in the LICENSE file.
21906 21906
21907 21907
21908 @DomName('HTMLVideoElement') 21908 @DomName('HTMLVideoElement')
21909 class VideoElement extends MediaElement implements CanvasImageSource native "*HT MLVideoElement" { 21909 class VideoElement extends MediaElement implements CanvasImageSource native "HTM LVideoElement" {
21910 21910
21911 @DomName('HTMLVideoElement.HTMLVideoElement') 21911 @DomName('HTMLVideoElement.HTMLVideoElement')
21912 @DocsEditable 21912 @DocsEditable
21913 factory VideoElement() => document.$dom_createElement("video"); 21913 factory VideoElement() => document.$dom_createElement("video");
21914 21914
21915 @DomName('HTMLVideoElement.height') 21915 @DomName('HTMLVideoElement.height')
21916 @DocsEditable 21916 @DocsEditable
21917 int height; 21917 int height;
21918 21918
21919 @DomName('HTMLVideoElement.poster') 21919 @DomName('HTMLVideoElement.poster')
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
22005 22005
22006 22006
22007 typedef void VoidCallback(); 22007 typedef void VoidCallback();
22008 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22008 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22009 // for details. All rights reserved. Use of this source code is governed by a 22009 // for details. All rights reserved. Use of this source code is governed by a
22010 // BSD-style license that can be found in the LICENSE file. 22010 // BSD-style license that can be found in the LICENSE file.
22011 22011
22012 22012
22013 @DocsEditable 22013 @DocsEditable
22014 @DomName('WebKitCSSFilterRule') 22014 @DomName('WebKitCSSFilterRule')
22015 class WebKitCssFilterRule extends CssRule native "*WebKitCSSFilterRule" { 22015 class WebKitCssFilterRule extends CssRule native "WebKitCSSFilterRule" {
22016 22016
22017 @DomName('WebKitCSSFilterRule.style') 22017 @DomName('WebKitCSSFilterRule.style')
22018 @DocsEditable 22018 @DocsEditable
22019 final CssStyleDeclaration style; 22019 final CssStyleDeclaration style;
22020 } 22020 }
22021 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22021 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22022 // for details. All rights reserved. Use of this source code is governed by a 22022 // for details. All rights reserved. Use of this source code is governed by a
22023 // BSD-style license that can be found in the LICENSE file. 22023 // BSD-style license that can be found in the LICENSE file.
22024 22024
22025 22025
22026 @DocsEditable 22026 @DocsEditable
22027 @DomName('WebKitCSSRegionRule') 22027 @DomName('WebKitCSSRegionRule')
22028 class WebKitCssRegionRule extends CssRule native "*WebKitCSSRegionRule" { 22028 class WebKitCssRegionRule extends CssRule native "WebKitCSSRegionRule" {
22029 22029
22030 @DomName('WebKitCSSRegionRule.cssRules') 22030 @DomName('WebKitCSSRegionRule.cssRules')
22031 @DocsEditable 22031 @DocsEditable
22032 @Returns('_CssRuleList') 22032 @Returns('_CssRuleList')
22033 @Creates('_CssRuleList') 22033 @Creates('_CssRuleList')
22034 final List<CssRule> cssRules; 22034 final List<CssRule> cssRules;
22035 } 22035 }
22036 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22036 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22037 // for details. All rights reserved. Use of this source code is governed by a 22037 // for details. All rights reserved. Use of this source code is governed by a
22038 // BSD-style license that can be found in the LICENSE file. 22038 // BSD-style license that can be found in the LICENSE file.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
22071 * [WebSockets](http://www.dartlang.org/docs/library-tour/#html-websockets) 22071 * [WebSockets](http://www.dartlang.org/docs/library-tour/#html-websockets)
22072 * section of the library tour and 22072 * section of the library tour and
22073 * [Introducing WebSockets](http://www.html5rocks.com/en/tutorials/websockets/ba sics/), 22073 * [Introducing WebSockets](http://www.html5rocks.com/en/tutorials/websockets/ba sics/),
22074 * an HTML5Rocks.com tutorial. 22074 * an HTML5Rocks.com tutorial.
22075 */ 22075 */
22076 @DomName('WebSocket') 22076 @DomName('WebSocket')
22077 @SupportedBrowser(SupportedBrowser.CHROME) 22077 @SupportedBrowser(SupportedBrowser.CHROME)
22078 @SupportedBrowser(SupportedBrowser.FIREFOX) 22078 @SupportedBrowser(SupportedBrowser.FIREFOX)
22079 @SupportedBrowser(SupportedBrowser.IE, '10') 22079 @SupportedBrowser(SupportedBrowser.IE, '10')
22080 @SupportedBrowser(SupportedBrowser.SAFARI) 22080 @SupportedBrowser(SupportedBrowser.SAFARI)
22081 class WebSocket extends EventTarget native "*WebSocket" { 22081 class WebSocket extends EventTarget native "WebSocket" {
22082 22082
22083 @DomName('WebSocket.closeEvent') 22083 @DomName('WebSocket.closeEvent')
22084 @DocsEditable 22084 @DocsEditable
22085 static const EventStreamProvider<CloseEvent> closeEvent = const EventStreamPro vider<CloseEvent>('close'); 22085 static const EventStreamProvider<CloseEvent> closeEvent = const EventStreamPro vider<CloseEvent>('close');
22086 22086
22087 @DomName('WebSocket.errorEvent') 22087 @DomName('WebSocket.errorEvent')
22088 @DocsEditable 22088 @DocsEditable
22089 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error'); 22089 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error');
22090 22090
22091 @DomName('WebSocket.messageEvent') 22091 @DomName('WebSocket.messageEvent')
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
22191 @DomName('WebSocket.onopen') 22191 @DomName('WebSocket.onopen')
22192 @DocsEditable 22192 @DocsEditable
22193 Stream<Event> get onOpen => openEvent.forTarget(this); 22193 Stream<Event> get onOpen => openEvent.forTarget(this);
22194 } 22194 }
22195 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22195 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22196 // for details. All rights reserved. Use of this source code is governed by a 22196 // for details. All rights reserved. Use of this source code is governed by a
22197 // BSD-style license that can be found in the LICENSE file. 22197 // BSD-style license that can be found in the LICENSE file.
22198 22198
22199 22199
22200 @DomName('WheelEvent') 22200 @DomName('WheelEvent')
22201 class WheelEvent extends MouseEvent native "*WheelEvent" { 22201 class WheelEvent extends MouseEvent native "WheelEvent,MouseWheelEvent,MouseScro llEvent" {
22202 22202
22203 factory WheelEvent(String type, 22203 factory WheelEvent(String type,
22204 {Window view, int deltaX: 0, int deltaY: 0, 22204 {Window view, int deltaX: 0, int deltaY: 0,
22205 int detail: 0, int screenX: 0, int screenY: 0, int clientX: 0, 22205 int detail: 0, int screenX: 0, int screenY: 0, int clientX: 0,
22206 int clientY: 0, int button: 0, bool canBubble: true, 22206 int clientY: 0, int button: 0, bool canBubble: true,
22207 bool cancelable: true, bool ctrlKey: false, bool altKey: false, 22207 bool cancelable: true, bool ctrlKey: false, bool altKey: false,
22208 bool shiftKey: false, bool metaKey: false, EventTarget relatedTarget}) { 22208 bool shiftKey: false, bool metaKey: false, EventTarget relatedTarget}) {
22209 22209
22210 if (view == null) { 22210 if (view == null) {
22211 view = window; 22211 view = window;
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
22423 int deltaZ, 22423 int deltaZ,
22424 int deltaMode) native; 22424 int deltaMode) native;
22425 22425
22426 } 22426 }
22427 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22427 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22428 // for details. All rights reserved. Use of this source code is governed by a 22428 // for details. All rights reserved. Use of this source code is governed by a
22429 // BSD-style license that can be found in the LICENSE file. 22429 // BSD-style license that can be found in the LICENSE file.
22430 22430
22431 22431
22432 @DomName('Window') 22432 @DomName('Window')
22433 class Window extends EventTarget implements WindowBase native "@*DOMWindow" { 22433 class Window extends EventTarget implements WindowBase native "Window,DOMWindow" {
22434 22434
22435 /** 22435 /**
22436 * Executes a [callback] after the immediate execution stack has completed. 22436 * Executes a [callback] after the immediate execution stack has completed.
22437 * 22437 *
22438 * This differs from using Timer.run(callback) 22438 * This differs from using Timer.run(callback)
22439 * because Timer will run in about 4-15 milliseconds, depending on browser, 22439 * because Timer will run in about 4-15 milliseconds, depending on browser,
22440 * depending on load. [setImmediate], in contrast, makes browser-specific 22440 * depending on load. [setImmediate], in contrast, makes browser-specific
22441 * changes in behavior to attempt to run immediately after the current 22441 * changes in behavior to attempt to run immediately after the current
22442 * frame unwinds, causing the future to complete after all processing has 22442 * frame unwinds, causing the future to complete after all processing has
22443 * completed for the current event, but before any subsequent events. 22443 * completed for the current event, but before any subsequent events.
(...skipping 1007 matching lines...) Expand 10 before | Expand all | Expand 10 after
23451 // for details. All rights reserved. Use of this source code is governed by a 23451 // for details. All rights reserved. Use of this source code is governed by a
23452 // BSD-style license that can be found in the LICENSE file. 23452 // BSD-style license that can be found in the LICENSE file.
23453 23453
23454 23454
23455 @DocsEditable 23455 @DocsEditable
23456 @DomName('Worker') 23456 @DomName('Worker')
23457 @SupportedBrowser(SupportedBrowser.CHROME) 23457 @SupportedBrowser(SupportedBrowser.CHROME)
23458 @SupportedBrowser(SupportedBrowser.FIREFOX) 23458 @SupportedBrowser(SupportedBrowser.FIREFOX)
23459 @SupportedBrowser(SupportedBrowser.IE, '10') 23459 @SupportedBrowser(SupportedBrowser.IE, '10')
23460 @SupportedBrowser(SupportedBrowser.SAFARI) 23460 @SupportedBrowser(SupportedBrowser.SAFARI)
23461 class Worker extends AbstractWorker native "*Worker" { 23461 class Worker extends AbstractWorker native "Worker" {
23462 23462
23463 @DomName('Worker.messageEvent') 23463 @DomName('Worker.messageEvent')
23464 @DocsEditable 23464 @DocsEditable
23465 static const EventStreamProvider<MessageEvent> messageEvent = const EventStrea mProvider<MessageEvent>('message'); 23465 static const EventStreamProvider<MessageEvent> messageEvent = const EventStrea mProvider<MessageEvent>('message');
23466 23466
23467 @DomName('Worker.Worker') 23467 @DomName('Worker.Worker')
23468 @DocsEditable 23468 @DocsEditable
23469 factory Worker(String scriptUrl) { 23469 factory Worker(String scriptUrl) {
23470 return Worker._create_1(scriptUrl); 23470 return Worker._create_1(scriptUrl);
23471 } 23471 }
(...skipping 14 matching lines...) Expand all
23486 @DocsEditable 23486 @DocsEditable
23487 Stream<MessageEvent> get onMessage => messageEvent.forTarget(this); 23487 Stream<MessageEvent> get onMessage => messageEvent.forTarget(this);
23488 } 23488 }
23489 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23489 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23490 // for details. All rights reserved. Use of this source code is governed by a 23490 // for details. All rights reserved. Use of this source code is governed by a
23491 // BSD-style license that can be found in the LICENSE file. 23491 // BSD-style license that can be found in the LICENSE file.
23492 23492
23493 23493
23494 @DocsEditable 23494 @DocsEditable
23495 @DomName('XPathEvaluator') 23495 @DomName('XPathEvaluator')
23496 class XPathEvaluator native "*XPathEvaluator" { 23496 class XPathEvaluator native "XPathEvaluator" {
23497 23497
23498 @DomName('XPathEvaluator.XPathEvaluator') 23498 @DomName('XPathEvaluator.XPathEvaluator')
23499 @DocsEditable 23499 @DocsEditable
23500 factory XPathEvaluator() { 23500 factory XPathEvaluator() {
23501 return XPathEvaluator._create_1(); 23501 return XPathEvaluator._create_1();
23502 } 23502 }
23503 static XPathEvaluator _create_1() => JS('XPathEvaluator', 'new XPathEvaluator( )'); 23503 static XPathEvaluator _create_1() => JS('XPathEvaluator', 'new XPathEvaluator( )');
23504 23504
23505 @DomName('XPathEvaluator.createExpression') 23505 @DomName('XPathEvaluator.createExpression')
23506 @DocsEditable 23506 @DocsEditable
23507 XPathExpression createExpression(String expression, XPathNSResolver resolver) native; 23507 XPathExpression createExpression(String expression, XPathNSResolver resolver) native;
23508 23508
23509 @DomName('XPathEvaluator.createNSResolver') 23509 @DomName('XPathEvaluator.createNSResolver')
23510 @DocsEditable 23510 @DocsEditable
23511 XPathNSResolver createNSResolver(Node nodeResolver) native; 23511 XPathNSResolver createNSResolver(Node nodeResolver) native;
23512 23512
23513 @DomName('XPathEvaluator.evaluate') 23513 @DomName('XPathEvaluator.evaluate')
23514 @DocsEditable 23514 @DocsEditable
23515 XPathResult evaluate(String expression, Node contextNode, XPathNSResolver reso lver, int type, XPathResult inResult) native; 23515 XPathResult evaluate(String expression, Node contextNode, XPathNSResolver reso lver, int type, XPathResult inResult) native;
23516 } 23516 }
23517 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23517 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23518 // for details. All rights reserved. Use of this source code is governed by a 23518 // for details. All rights reserved. Use of this source code is governed by a
23519 // BSD-style license that can be found in the LICENSE file. 23519 // BSD-style license that can be found in the LICENSE file.
23520 23520
23521 23521
23522 @DocsEditable 23522 @DocsEditable
23523 @DomName('XPathException') 23523 @DomName('XPathException')
23524 class XPathException native "*XPathException" { 23524 class XPathException native "XPathException" {
23525 23525
23526 static const int INVALID_EXPRESSION_ERR = 51; 23526 static const int INVALID_EXPRESSION_ERR = 51;
23527 23527
23528 static const int TYPE_ERR = 52; 23528 static const int TYPE_ERR = 52;
23529 23529
23530 @DomName('XPathException.code') 23530 @DomName('XPathException.code')
23531 @DocsEditable 23531 @DocsEditable
23532 final int code; 23532 final int code;
23533 23533
23534 @DomName('XPathException.message') 23534 @DomName('XPathException.message')
23535 @DocsEditable 23535 @DocsEditable
23536 final String message; 23536 final String message;
23537 23537
23538 @DomName('XPathException.name') 23538 @DomName('XPathException.name')
23539 @DocsEditable 23539 @DocsEditable
23540 final String name; 23540 final String name;
23541 23541
23542 @DomName('XPathException.toString') 23542 @DomName('XPathException.toString')
23543 @DocsEditable 23543 @DocsEditable
23544 String toString() native; 23544 String toString() native;
23545 } 23545 }
23546 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23546 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23547 // for details. All rights reserved. Use of this source code is governed by a 23547 // for details. All rights reserved. Use of this source code is governed by a
23548 // BSD-style license that can be found in the LICENSE file. 23548 // BSD-style license that can be found in the LICENSE file.
23549 23549
23550 23550
23551 @DocsEditable 23551 @DocsEditable
23552 @DomName('XPathExpression') 23552 @DomName('XPathExpression')
23553 class XPathExpression native "*XPathExpression" { 23553 class XPathExpression native "XPathExpression" {
23554 23554
23555 @DomName('XPathExpression.evaluate') 23555 @DomName('XPathExpression.evaluate')
23556 @DocsEditable 23556 @DocsEditable
23557 XPathResult evaluate(Node contextNode, int type, XPathResult inResult) native; 23557 XPathResult evaluate(Node contextNode, int type, XPathResult inResult) native;
23558 } 23558 }
23559 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23559 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23560 // for details. All rights reserved. Use of this source code is governed by a 23560 // for details. All rights reserved. Use of this source code is governed by a
23561 // BSD-style license that can be found in the LICENSE file. 23561 // BSD-style license that can be found in the LICENSE file.
23562 23562
23563 23563
23564 @DocsEditable 23564 @DocsEditable
23565 @DomName('XPathNSResolver') 23565 @DomName('XPathNSResolver')
23566 class XPathNSResolver native "*XPathNSResolver" { 23566 class XPathNSResolver native "XPathNSResolver" {
23567 23567
23568 @JSName('lookupNamespaceURI') 23568 @JSName('lookupNamespaceURI')
23569 @DomName('XPathNSResolver.lookupNamespaceURI') 23569 @DomName('XPathNSResolver.lookupNamespaceURI')
23570 @DocsEditable 23570 @DocsEditable
23571 String lookupNamespaceUri(String prefix) native; 23571 String lookupNamespaceUri(String prefix) native;
23572 } 23572 }
23573 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23573 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23574 // for details. All rights reserved. Use of this source code is governed by a 23574 // for details. All rights reserved. Use of this source code is governed by a
23575 // BSD-style license that can be found in the LICENSE file. 23575 // BSD-style license that can be found in the LICENSE file.
23576 23576
23577 23577
23578 @DocsEditable 23578 @DocsEditable
23579 @DomName('XPathResult') 23579 @DomName('XPathResult')
23580 class XPathResult native "*XPathResult" { 23580 class XPathResult native "XPathResult" {
23581 23581
23582 static const int ANY_TYPE = 0; 23582 static const int ANY_TYPE = 0;
23583 23583
23584 static const int ANY_UNORDERED_NODE_TYPE = 8; 23584 static const int ANY_UNORDERED_NODE_TYPE = 8;
23585 23585
23586 static const int BOOLEAN_TYPE = 3; 23586 static const int BOOLEAN_TYPE = 3;
23587 23587
23588 static const int FIRST_ORDERED_NODE_TYPE = 9; 23588 static const int FIRST_ORDERED_NODE_TYPE = 9;
23589 23589
23590 static const int NUMBER_TYPE = 1; 23590 static const int NUMBER_TYPE = 1;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
23635 @DocsEditable 23635 @DocsEditable
23636 Node snapshotItem(int index) native; 23636 Node snapshotItem(int index) native;
23637 } 23637 }
23638 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23638 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23639 // for details. All rights reserved. Use of this source code is governed by a 23639 // for details. All rights reserved. Use of this source code is governed by a
23640 // BSD-style license that can be found in the LICENSE file. 23640 // BSD-style license that can be found in the LICENSE file.
23641 23641
23642 23642
23643 @DocsEditable 23643 @DocsEditable
23644 @DomName('XMLSerializer') 23644 @DomName('XMLSerializer')
23645 class XmlSerializer native "*XMLSerializer" { 23645 class XmlSerializer native "XMLSerializer" {
23646 23646
23647 @DomName('XMLSerializer.XMLSerializer') 23647 @DomName('XMLSerializer.XMLSerializer')
23648 @DocsEditable 23648 @DocsEditable
23649 factory XmlSerializer() { 23649 factory XmlSerializer() {
23650 return XmlSerializer._create_1(); 23650 return XmlSerializer._create_1();
23651 } 23651 }
23652 static XmlSerializer _create_1() => JS('XmlSerializer', 'new XMLSerializer()') ; 23652 static XmlSerializer _create_1() => JS('XmlSerializer', 'new XMLSerializer()') ;
23653 23653
23654 @DomName('XMLSerializer.serializeToString') 23654 @DomName('XMLSerializer.serializeToString')
23655 @DocsEditable 23655 @DocsEditable
23656 String serializeToString(Node node) native; 23656 String serializeToString(Node node) native;
23657 } 23657 }
23658 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23658 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23659 // for details. All rights reserved. Use of this source code is governed by a 23659 // for details. All rights reserved. Use of this source code is governed by a
23660 // BSD-style license that can be found in the LICENSE file. 23660 // BSD-style license that can be found in the LICENSE file.
23661 23661
23662 23662
23663 @DocsEditable 23663 @DocsEditable
23664 @DomName('XSLTProcessor') 23664 @DomName('XSLTProcessor')
23665 @SupportedBrowser(SupportedBrowser.CHROME) 23665 @SupportedBrowser(SupportedBrowser.CHROME)
23666 @SupportedBrowser(SupportedBrowser.FIREFOX) 23666 @SupportedBrowser(SupportedBrowser.FIREFOX)
23667 @SupportedBrowser(SupportedBrowser.SAFARI) 23667 @SupportedBrowser(SupportedBrowser.SAFARI)
23668 class XsltProcessor native "*XSLTProcessor" { 23668 class XsltProcessor native "XSLTProcessor" {
23669 23669
23670 @DomName('XSLTProcessor.XSLTProcessor') 23670 @DomName('XSLTProcessor.XSLTProcessor')
23671 @DocsEditable 23671 @DocsEditable
23672 factory XsltProcessor() { 23672 factory XsltProcessor() {
23673 return XsltProcessor._create_1(); 23673 return XsltProcessor._create_1();
23674 } 23674 }
23675 static XsltProcessor _create_1() => JS('XsltProcessor', 'new XSLTProcessor()') ; 23675 static XsltProcessor _create_1() => JS('XsltProcessor', 'new XSLTProcessor()') ;
23676 23676
23677 /// Checks if this type is supported on the current platform. 23677 /// Checks if this type is supported on the current platform.
23678 static bool get supported => JS('bool', '!!(window.XSLTProcessor)'); 23678 static bool get supported => JS('bool', '!!(window.XSLTProcessor)');
(...skipping 30 matching lines...) Expand all
23709 @DocsEditable 23709 @DocsEditable
23710 DocumentFragment transformToFragment(Node source, Document docVal) native; 23710 DocumentFragment transformToFragment(Node source, Document docVal) native;
23711 } 23711 }
23712 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23712 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23713 // for details. All rights reserved. Use of this source code is governed by a 23713 // for details. All rights reserved. Use of this source code is governed by a
23714 // BSD-style license that can be found in the LICENSE file. 23714 // BSD-style license that can be found in the LICENSE file.
23715 23715
23716 23716
23717 @DocsEditable 23717 @DocsEditable
23718 @DomName('CSSPrimitiveValue') 23718 @DomName('CSSPrimitiveValue')
23719 abstract class _CSSPrimitiveValue extends _CSSValue native "*CSSPrimitiveValue" { 23719 abstract class _CSSPrimitiveValue extends _CSSValue native "CSSPrimitiveValue" {
23720 } 23720 }
23721 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23721 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23722 // for details. All rights reserved. Use of this source code is governed by a 23722 // for details. All rights reserved. Use of this source code is governed by a
23723 // BSD-style license that can be found in the LICENSE file. 23723 // BSD-style license that can be found in the LICENSE file.
23724 23724
23725 23725
23726 @DocsEditable 23726 @DocsEditable
23727 @DomName('CSSValue') 23727 @DomName('CSSValue')
23728 abstract class _CSSValue native "*CSSValue" { 23728 abstract class _CSSValue native "CSSValue" {
23729 } 23729 }
23730 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 23730 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
23731 // for details. All rights reserved. Use of this source code is governed by a 23731 // for details. All rights reserved. Use of this source code is governed by a
23732 // BSD-style license that can be found in the LICENSE file. 23732 // BSD-style license that can be found in the LICENSE file.
23733 23733
23734 23734
23735 @DocsEditable 23735 @DocsEditable
23736 @DomName('ClientRect') 23736 @DomName('ClientRect')
23737 class _ClientRect implements Rect native "*ClientRect" { 23737 class _ClientRect implements Rect native "ClientRect" {
23738 23738
23739 // NOTE! All code below should be common with Rect. 23739 // NOTE! All code below should be common with Rect.
23740 // TODO(blois): implement with mixins when available. 23740 // TODO(blois): implement with mixins when available.
23741 23741
23742 String toString() { 23742 String toString() {
23743 return '($left, $top, $width, $height)'; 23743 return '($left, $top, $width, $height)';
23744 } 23744 }
23745 23745
23746 bool operator ==(other) { 23746 bool operator ==(other) {
23747 if (other is !Rect) return false; 23747 if (other is !Rect) return false;
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
23852 @DocsEditable 23852 @DocsEditable
23853 final num width; 23853 final num width;
23854 } 23854 }
23855 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23855 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23856 // for details. All rights reserved. Use of this source code is governed by a 23856 // for details. All rights reserved. Use of this source code is governed by a
23857 // BSD-style license that can be found in the LICENSE file. 23857 // BSD-style license that can be found in the LICENSE file.
23858 23858
23859 23859
23860 @DocsEditable 23860 @DocsEditable
23861 @DomName('ClientRectList') 23861 @DomName('ClientRectList')
23862 class _ClientRectList implements JavaScriptIndexingBehavior, List<Rect> native " *ClientRectList" { 23862 class _ClientRectList implements JavaScriptIndexingBehavior, List<Rect> native " ClientRectList" {
23863 23863
23864 @DomName('ClientRectList.length') 23864 @DomName('ClientRectList.length')
23865 @DocsEditable 23865 @DocsEditable
23866 int get length => JS("int", "#.length", this); 23866 int get length => JS("int", "#.length", this);
23867 23867
23868 Rect operator[](int index) => JS("Rect", "#[#]", this, index); 23868 Rect operator[](int index) => JS("Rect", "#[#]", this, index);
23869 23869
23870 void operator[]=(int index, Rect value) { 23870 void operator[]=(int index, Rect value) {
23871 throw new UnsupportedError("Cannot assign element of immutable List."); 23871 throw new UnsupportedError("Cannot assign element of immutable List.");
23872 } 23872 }
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
24069 @DocsEditable 24069 @DocsEditable
24070 Rect item(int index) native; 24070 Rect item(int index) native;
24071 } 24071 }
24072 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 24072 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24073 // for details. All rights reserved. Use of this source code is governed by a 24073 // for details. All rights reserved. Use of this source code is governed by a
24074 // BSD-style license that can be found in the LICENSE file. 24074 // BSD-style license that can be found in the LICENSE file.
24075 24075
24076 24076
24077 @DocsEditable 24077 @DocsEditable
24078 @DomName('Counter') 24078 @DomName('Counter')
24079 abstract class _Counter native "*Counter" { 24079 abstract class _Counter native "Counter" {
24080 } 24080 }
24081 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 24081 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24082 // for details. All rights reserved. Use of this source code is governed by a 24082 // for details. All rights reserved. Use of this source code is governed by a
24083 // BSD-style license that can be found in the LICENSE file. 24083 // BSD-style license that can be found in the LICENSE file.
24084 24084
24085 24085
24086 @DocsEditable 24086 @DocsEditable
24087 @DomName('CSSRuleList') 24087 @DomName('CSSRuleList')
24088 class _CssRuleList implements JavaScriptIndexingBehavior, List<CssRule> native " *CSSRuleList" { 24088 class _CssRuleList implements JavaScriptIndexingBehavior, List<CssRule> native " CSSRuleList" {
24089 24089
24090 @DomName('CSSRuleList.length') 24090 @DomName('CSSRuleList.length')
24091 @DocsEditable 24091 @DocsEditable
24092 int get length => JS("int", "#.length", this); 24092 int get length => JS("int", "#.length", this);
24093 24093
24094 CssRule operator[](int index) => JS("CssRule", "#[#]", this, index); 24094 CssRule operator[](int index) => JS("CssRule", "#[#]", this, index);
24095 24095
24096 void operator[]=(int index, CssRule value) { 24096 void operator[]=(int index, CssRule value) {
24097 throw new UnsupportedError("Cannot assign element of immutable List."); 24097 throw new UnsupportedError("Cannot assign element of immutable List.");
24098 } 24098 }
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
24295 @DocsEditable 24295 @DocsEditable
24296 CssRule item(int index) native; 24296 CssRule item(int index) native;
24297 } 24297 }
24298 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 24298 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24299 // for details. All rights reserved. Use of this source code is governed by a 24299 // for details. All rights reserved. Use of this source code is governed by a
24300 // BSD-style license that can be found in the LICENSE file. 24300 // BSD-style license that can be found in the LICENSE file.
24301 24301
24302 24302
24303 @DocsEditable 24303 @DocsEditable
24304 @DomName('CSSValueList') 24304 @DomName('CSSValueList')
24305 class _CssValueList extends _CSSValue implements JavaScriptIndexingBehavior, Lis t<_CSSValue> native "*CSSValueList" { 24305 class _CssValueList extends _CSSValue implements JavaScriptIndexingBehavior, Lis t<_CSSValue> native "CSSValueList" {
24306 24306
24307 @DomName('CSSValueList.length') 24307 @DomName('CSSValueList.length')
24308 @DocsEditable 24308 @DocsEditable
24309 int get length => JS("int", "#.length", this); 24309 int get length => JS("int", "#.length", this);
24310 24310
24311 _CSSValue operator[](int index) => JS("_CSSValue", "#[#]", this, index); 24311 _CSSValue operator[](int index) => JS("_CSSValue", "#[#]", this, index);
24312 24312
24313 void operator[]=(int index, _CSSValue value) { 24313 void operator[]=(int index, _CSSValue value) {
24314 throw new UnsupportedError("Cannot assign element of immutable List."); 24314 throw new UnsupportedError("Cannot assign element of immutable List.");
24315 } 24315 }
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
24514 } 24514 }
24515 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 24515 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24516 // for details. All rights reserved. Use of this source code is governed by a 24516 // for details. All rights reserved. Use of this source code is governed by a
24517 // BSD-style license that can be found in the LICENSE file. 24517 // BSD-style license that can be found in the LICENSE file.
24518 24518
24519 24519
24520 @DocsEditable 24520 @DocsEditable
24521 @DomName('DOMFileSystemSync') 24521 @DomName('DOMFileSystemSync')
24522 @SupportedBrowser(SupportedBrowser.CHROME) 24522 @SupportedBrowser(SupportedBrowser.CHROME)
24523 @Experimental 24523 @Experimental
24524 abstract class _DOMFileSystemSync native "*DOMFileSystemSync" { 24524 abstract class _DOMFileSystemSync native "DOMFileSystemSync" {
24525 } 24525 }
24526 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 24526 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24527 // for details. All rights reserved. Use of this source code is governed by a 24527 // for details. All rights reserved. Use of this source code is governed by a
24528 // BSD-style license that can be found in the LICENSE file. 24528 // BSD-style license that can be found in the LICENSE file.
24529 24529
24530 24530
24531 @DocsEditable 24531 @DocsEditable
24532 @DomName('DatabaseSync') 24532 @DomName('DatabaseSync')
24533 @SupportedBrowser(SupportedBrowser.CHROME) 24533 @SupportedBrowser(SupportedBrowser.CHROME)
24534 @SupportedBrowser(SupportedBrowser.SAFARI) 24534 @SupportedBrowser(SupportedBrowser.SAFARI)
24535 @Experimental 24535 @Experimental
24536 abstract class _DatabaseSync native "*DatabaseSync" { 24536 abstract class _DatabaseSync native "DatabaseSync" {
24537 } 24537 }
24538 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 24538 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24539 // for details. All rights reserved. Use of this source code is governed by a 24539 // for details. All rights reserved. Use of this source code is governed by a
24540 // BSD-style license that can be found in the LICENSE file. 24540 // BSD-style license that can be found in the LICENSE file.
24541 24541
24542 24542
24543 @DocsEditable 24543 @DocsEditable
24544 @DomName('DedicatedWorkerContext') 24544 @DomName('DedicatedWorkerContext')
24545 abstract class _DedicatedWorkerContext extends _WorkerContext native "*Dedicated WorkerContext" { 24545 abstract class _DedicatedWorkerContext extends _WorkerContext native "DedicatedW orkerContext" {
24546 } 24546 }
24547 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 24547 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24548 // for details. All rights reserved. Use of this source code is governed by a 24548 // for details. All rights reserved. Use of this source code is governed by a
24549 // BSD-style license that can be found in the LICENSE file. 24549 // BSD-style license that can be found in the LICENSE file.
24550 24550
24551 24551
24552 @DocsEditable 24552 @DocsEditable
24553 @DomName('DirectoryEntrySync') 24553 @DomName('DirectoryEntrySync')
24554 abstract class _DirectoryEntrySync extends _EntrySync native "*DirectoryEntrySyn c" { 24554 abstract class _DirectoryEntrySync extends _EntrySync native "DirectoryEntrySync " {
24555 } 24555 }
24556 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 24556 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24557 // for details. All rights reserved. Use of this source code is governed by a 24557 // for details. All rights reserved. Use of this source code is governed by a
24558 // BSD-style license that can be found in the LICENSE file. 24558 // BSD-style license that can be found in the LICENSE file.
24559 24559
24560 24560
24561 @DocsEditable 24561 @DocsEditable
24562 @DomName('DirectoryReaderSync') 24562 @DomName('DirectoryReaderSync')
24563 abstract class _DirectoryReaderSync native "*DirectoryReaderSync" { 24563 abstract class _DirectoryReaderSync native "DirectoryReaderSync" {
24564 } 24564 }
24565 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 24565 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24566 // for details. All rights reserved. Use of this source code is governed by a 24566 // for details. All rights reserved. Use of this source code is governed by a
24567 // BSD-style license that can be found in the LICENSE file. 24567 // BSD-style license that can be found in the LICENSE file.
24568 24568
24569 24569
24570 @DocsEditable 24570 @DocsEditable
24571 @DomName('WebKitPoint') 24571 @DomName('WebKitPoint')
24572 @SupportedBrowser(SupportedBrowser.CHROME) 24572 @SupportedBrowser(SupportedBrowser.CHROME)
24573 @SupportedBrowser(SupportedBrowser.SAFARI) 24573 @SupportedBrowser(SupportedBrowser.SAFARI)
24574 @Experimental 24574 @Experimental
24575 class _DomPoint native "*WebKitPoint" { 24575 class _DomPoint native "WebKitPoint" {
24576 24576
24577 @DomName('DOMPoint.DOMPoint') 24577 @DomName('DOMPoint.DOMPoint')
24578 @DocsEditable 24578 @DocsEditable
24579 factory _DomPoint(num x, num y) { 24579 factory _DomPoint(num x, num y) {
24580 return _DomPoint._create_1(x, y); 24580 return _DomPoint._create_1(x, y);
24581 } 24581 }
24582 static _DomPoint _create_1(x, y) => JS('_DomPoint', 'new WebKitPoint(#,#)', x, y); 24582 static _DomPoint _create_1(x, y) => JS('_DomPoint', 'new WebKitPoint(#,#)', x, y);
24583 24583
24584 /// Checks if this type is supported on the current platform. 24584 /// Checks if this type is supported on the current platform.
24585 static bool get supported => JS('bool', '!!(window.WebKitPoint)'); 24585 static bool get supported => JS('bool', '!!(window.WebKitPoint)');
24586 24586
24587 @DomName('DOMPoint.x') 24587 @DomName('DOMPoint.x')
24588 @DocsEditable 24588 @DocsEditable
24589 num x; 24589 num x;
24590 24590
24591 @DomName('DOMPoint.y') 24591 @DomName('DOMPoint.y')
24592 @DocsEditable 24592 @DocsEditable
24593 num y; 24593 num y;
24594 } 24594 }
24595 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 24595 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24596 // for details. All rights reserved. Use of this source code is governed by a 24596 // for details. All rights reserved. Use of this source code is governed by a
24597 // BSD-style license that can be found in the LICENSE file. 24597 // BSD-style license that can be found in the LICENSE file.
24598 24598
24599 24599
24600 @DocsEditable 24600 @DocsEditable
24601 @DomName('EntryArray') 24601 @DomName('EntryArray')
24602 class _EntryArray implements JavaScriptIndexingBehavior, List<Entry> native "*En tryArray" { 24602 class _EntryArray implements JavaScriptIndexingBehavior, List<Entry> native "Ent ryArray" {
24603 24603
24604 @DomName('EntryArray.length') 24604 @DomName('EntryArray.length')
24605 @DocsEditable 24605 @DocsEditable
24606 int get length => JS("int", "#.length", this); 24606 int get length => JS("int", "#.length", this);
24607 24607
24608 Entry operator[](int index) => JS("Entry", "#[#]", this, index); 24608 Entry operator[](int index) => JS("Entry", "#[#]", this, index);
24609 24609
24610 void operator[]=(int index, Entry value) { 24610 void operator[]=(int index, Entry value) {
24611 throw new UnsupportedError("Cannot assign element of immutable List."); 24611 throw new UnsupportedError("Cannot assign element of immutable List.");
24612 } 24612 }
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
24809 @DocsEditable 24809 @DocsEditable
24810 Entry item(int index) native; 24810 Entry item(int index) native;
24811 } 24811 }
24812 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 24812 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24813 // for details. All rights reserved. Use of this source code is governed by a 24813 // for details. All rights reserved. Use of this source code is governed by a
24814 // BSD-style license that can be found in the LICENSE file. 24814 // BSD-style license that can be found in the LICENSE file.
24815 24815
24816 24816
24817 @DocsEditable 24817 @DocsEditable
24818 @DomName('EntryArraySync') 24818 @DomName('EntryArraySync')
24819 class _EntryArraySync implements JavaScriptIndexingBehavior, List<_EntrySync> na tive "*EntryArraySync" { 24819 class _EntryArraySync implements JavaScriptIndexingBehavior, List<_EntrySync> na tive "EntryArraySync" {
24820 24820
24821 @DomName('EntryArraySync.length') 24821 @DomName('EntryArraySync.length')
24822 @DocsEditable 24822 @DocsEditable
24823 int get length => JS("int", "#.length", this); 24823 int get length => JS("int", "#.length", this);
24824 24824
24825 _EntrySync operator[](int index) => JS("_EntrySync", "#[#]", this, index); 24825 _EntrySync operator[](int index) => JS("_EntrySync", "#[#]", this, index);
24826 24826
24827 void operator[]=(int index, _EntrySync value) { 24827 void operator[]=(int index, _EntrySync value) {
24828 throw new UnsupportedError("Cannot assign element of immutable List."); 24828 throw new UnsupportedError("Cannot assign element of immutable List.");
24829 } 24829 }
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
25026 @DocsEditable 25026 @DocsEditable
25027 _EntrySync item(int index) native; 25027 _EntrySync item(int index) native;
25028 } 25028 }
25029 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25029 // 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 25030 // 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. 25031 // BSD-style license that can be found in the LICENSE file.
25032 25032
25033 25033
25034 @DocsEditable 25034 @DocsEditable
25035 @DomName('EntrySync') 25035 @DomName('EntrySync')
25036 abstract class _EntrySync native "*EntrySync" { 25036 abstract class _EntrySync native "EntrySync" {
25037 } 25037 }
25038 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25038 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25039 // for details. All rights reserved. Use of this source code is governed by a 25039 // for details. All rights reserved. Use of this source code is governed by a
25040 // BSD-style license that can be found in the LICENSE file. 25040 // BSD-style license that can be found in the LICENSE file.
25041 25041
25042 25042
25043 @DocsEditable 25043 @DocsEditable
25044 @DomName('FileEntrySync') 25044 @DomName('FileEntrySync')
25045 abstract class _FileEntrySync extends _EntrySync native "*FileEntrySync" { 25045 abstract class _FileEntrySync extends _EntrySync native "FileEntrySync" {
25046 } 25046 }
25047 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25047 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25048 // for details. All rights reserved. Use of this source code is governed by a 25048 // for details. All rights reserved. Use of this source code is governed by a
25049 // BSD-style license that can be found in the LICENSE file. 25049 // BSD-style license that can be found in the LICENSE file.
25050 25050
25051 25051
25052 @DocsEditable 25052 @DocsEditable
25053 @DomName('FileReaderSync') 25053 @DomName('FileReaderSync')
25054 abstract class _FileReaderSync native "*FileReaderSync" { 25054 abstract class _FileReaderSync native "FileReaderSync" {
25055 25055
25056 @DomName('FileReaderSync.FileReaderSync') 25056 @DomName('FileReaderSync.FileReaderSync')
25057 @DocsEditable 25057 @DocsEditable
25058 factory _FileReaderSync() { 25058 factory _FileReaderSync() {
25059 return _FileReaderSync._create_1(); 25059 return _FileReaderSync._create_1();
25060 } 25060 }
25061 static _FileReaderSync _create_1() => JS('_FileReaderSync', 'new FileReaderSyn c()'); 25061 static _FileReaderSync _create_1() => JS('_FileReaderSync', 'new FileReaderSyn c()');
25062 } 25062 }
25063 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25063 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25064 // for details. All rights reserved. Use of this source code is governed by a 25064 // for details. All rights reserved. Use of this source code is governed by a
25065 // BSD-style license that can be found in the LICENSE file. 25065 // BSD-style license that can be found in the LICENSE file.
25066 25066
25067 25067
25068 @DocsEditable 25068 @DocsEditable
25069 @DomName('FileWriterSync') 25069 @DomName('FileWriterSync')
25070 abstract class _FileWriterSync native "*FileWriterSync" { 25070 abstract class _FileWriterSync native "FileWriterSync" {
25071 } 25071 }
25072 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25072 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25073 // for details. All rights reserved. Use of this source code is governed by a 25073 // for details. All rights reserved. Use of this source code is governed by a
25074 // BSD-style license that can be found in the LICENSE file. 25074 // BSD-style license that can be found in the LICENSE file.
25075 25075
25076 25076
25077 @DocsEditable 25077 @DocsEditable
25078 @DomName('GamepadList') 25078 @DomName('GamepadList')
25079 class _GamepadList implements JavaScriptIndexingBehavior, List<Gamepad> native " *GamepadList" { 25079 class _GamepadList implements JavaScriptIndexingBehavior, List<Gamepad> native " GamepadList" {
25080 25080
25081 @DomName('GamepadList.length') 25081 @DomName('GamepadList.length')
25082 @DocsEditable 25082 @DocsEditable
25083 int get length => JS("int", "#.length", this); 25083 int get length => JS("int", "#.length", this);
25084 25084
25085 Gamepad operator[](int index) => JS("Gamepad", "#[#]", this, index); 25085 Gamepad operator[](int index) => JS("Gamepad", "#[#]", this, index);
25086 25086
25087 void operator[]=(int index, Gamepad value) { 25087 void operator[]=(int index, Gamepad value) {
25088 throw new UnsupportedError("Cannot assign element of immutable List."); 25088 throw new UnsupportedError("Cannot assign element of immutable List.");
25089 } 25089 }
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
25286 @DocsEditable 25286 @DocsEditable
25287 Gamepad item(int index) native; 25287 Gamepad item(int index) native;
25288 } 25288 }
25289 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25289 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25290 // for details. All rights reserved. Use of this source code is governed by a 25290 // for details. All rights reserved. Use of this source code is governed by a
25291 // BSD-style license that can be found in the LICENSE file. 25291 // BSD-style license that can be found in the LICENSE file.
25292 25292
25293 25293
25294 @DocsEditable 25294 @DocsEditable
25295 @DomName('HTMLAppletElement') 25295 @DomName('HTMLAppletElement')
25296 abstract class _HTMLAppletElement extends Element native "*HTMLAppletElement" { 25296 abstract class _HTMLAppletElement extends Element native "HTMLAppletElement" {
25297 } 25297 }
25298 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25298 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25299 // for details. All rights reserved. Use of this source code is governed by a 25299 // for details. All rights reserved. Use of this source code is governed by a
25300 // BSD-style license that can be found in the LICENSE file. 25300 // BSD-style license that can be found in the LICENSE file.
25301 25301
25302 25302
25303 @DocsEditable 25303 @DocsEditable
25304 @DomName('HTMLBaseFontElement') 25304 @DomName('HTMLBaseFontElement')
25305 abstract class _HTMLBaseFontElement extends Element native "*HTMLBaseFontElement " { 25305 abstract class _HTMLBaseFontElement extends Element native "HTMLBaseFontElement" {
25306 } 25306 }
25307 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25307 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25308 // for details. All rights reserved. Use of this source code is governed by a 25308 // for details. All rights reserved. Use of this source code is governed by a
25309 // BSD-style license that can be found in the LICENSE file. 25309 // BSD-style license that can be found in the LICENSE file.
25310 25310
25311 25311
25312 @DocsEditable 25312 @DocsEditable
25313 @DomName('HTMLDirectoryElement') 25313 @DomName('HTMLDirectoryElement')
25314 abstract class _HTMLDirectoryElement extends Element native "*HTMLDirectoryEleme nt" { 25314 abstract class _HTMLDirectoryElement extends Element native "HTMLDirectoryElemen t" {
25315 } 25315 }
25316 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25316 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25317 // for details. All rights reserved. Use of this source code is governed by a 25317 // for details. All rights reserved. Use of this source code is governed by a
25318 // BSD-style license that can be found in the LICENSE file. 25318 // BSD-style license that can be found in the LICENSE file.
25319 25319
25320 25320
25321 @DocsEditable 25321 @DocsEditable
25322 @DomName('HTMLFontElement') 25322 @DomName('HTMLFontElement')
25323 abstract class _HTMLFontElement extends Element native "*HTMLFontElement" { 25323 abstract class _HTMLFontElement extends Element native "HTMLFontElement" {
25324 } 25324 }
25325 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25325 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25326 // for details. All rights reserved. Use of this source code is governed by a 25326 // for details. All rights reserved. Use of this source code is governed by a
25327 // BSD-style license that can be found in the LICENSE file. 25327 // BSD-style license that can be found in the LICENSE file.
25328 25328
25329 25329
25330 @DocsEditable 25330 @DocsEditable
25331 @DomName('HTMLFrameElement') 25331 @DomName('HTMLFrameElement')
25332 abstract class _HTMLFrameElement extends Element native "*HTMLFrameElement" { 25332 abstract class _HTMLFrameElement extends Element native "HTMLFrameElement" {
25333 } 25333 }
25334 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25334 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25335 // for details. All rights reserved. Use of this source code is governed by a 25335 // for details. All rights reserved. Use of this source code is governed by a
25336 // BSD-style license that can be found in the LICENSE file. 25336 // BSD-style license that can be found in the LICENSE file.
25337 25337
25338 25338
25339 @DocsEditable 25339 @DocsEditable
25340 @DomName('HTMLFrameSetElement') 25340 @DomName('HTMLFrameSetElement')
25341 abstract class _HTMLFrameSetElement extends Element native "*HTMLFrameSetElement " { 25341 abstract class _HTMLFrameSetElement extends Element native "HTMLFrameSetElement" {
25342 } 25342 }
25343 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25343 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25344 // for details. All rights reserved. Use of this source code is governed by a 25344 // for details. All rights reserved. Use of this source code is governed by a
25345 // BSD-style license that can be found in the LICENSE file. 25345 // BSD-style license that can be found in the LICENSE file.
25346 25346
25347 25347
25348 @DocsEditable 25348 @DocsEditable
25349 @DomName('HTMLMarqueeElement') 25349 @DomName('HTMLMarqueeElement')
25350 abstract class _HTMLMarqueeElement extends Element native "*HTMLMarqueeElement" { 25350 abstract class _HTMLMarqueeElement extends Element native "HTMLMarqueeElement" {
25351 } 25351 }
25352 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25352 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25353 // for details. All rights reserved. Use of this source code is governed by a 25353 // for details. All rights reserved. Use of this source code is governed by a
25354 // BSD-style license that can be found in the LICENSE file. 25354 // BSD-style license that can be found in the LICENSE file.
25355 25355
25356 25356
25357 @DocsEditable 25357 @DocsEditable
25358 @DomName('NamedNodeMap') 25358 @DomName('NamedNodeMap')
25359 class _NamedNodeMap implements JavaScriptIndexingBehavior, List<Node> native "*N amedNodeMap" { 25359 class _NamedNodeMap implements JavaScriptIndexingBehavior, List<Node> native "Na medNodeMap" {
25360 25360
25361 @DomName('NamedNodeMap.length') 25361 @DomName('NamedNodeMap.length')
25362 @DocsEditable 25362 @DocsEditable
25363 int get length => JS("int", "#.length", this); 25363 int get length => JS("int", "#.length", this);
25364 25364
25365 Node operator[](int index) => JS("Node", "#[#]", this, index); 25365 Node operator[](int index) => JS("Node", "#[#]", this, index);
25366 25366
25367 void operator[]=(int index, Node value) { 25367 void operator[]=(int index, Node value) {
25368 throw new UnsupportedError("Cannot assign element of immutable List."); 25368 throw new UnsupportedError("Cannot assign element of immutable List.");
25369 } 25369 }
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
25590 @DocsEditable 25590 @DocsEditable
25591 Node setNamedItemNS(Node node) native; 25591 Node setNamedItemNS(Node node) native;
25592 } 25592 }
25593 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25593 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25594 // for details. All rights reserved. Use of this source code is governed by a 25594 // for details. All rights reserved. Use of this source code is governed by a
25595 // BSD-style license that can be found in the LICENSE file. 25595 // BSD-style license that can be found in the LICENSE file.
25596 25596
25597 25597
25598 @DocsEditable 25598 @DocsEditable
25599 @DomName('RGBColor') 25599 @DomName('RGBColor')
25600 abstract class _RGBColor native "*RGBColor" { 25600 abstract class _RGBColor native "RGBColor" {
25601 } 25601 }
25602 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25602 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25603 // for details. All rights reserved. Use of this source code is governed by a 25603 // for details. All rights reserved. Use of this source code is governed by a
25604 // BSD-style license that can be found in the LICENSE file. 25604 // BSD-style license that can be found in the LICENSE file.
25605 25605
25606 25606
25607 @DocsEditable 25607 @DocsEditable
25608 @DomName('Rect') 25608 @DomName('Rect')
25609 abstract class _Rect native "*Rect" { 25609 abstract class _Rect native "Rect" {
25610 } 25610 }
25611 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25611 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25612 // for details. All rights reserved. Use of this source code is governed by a 25612 // for details. All rights reserved. Use of this source code is governed by a
25613 // BSD-style license that can be found in the LICENSE file. 25613 // BSD-style license that can be found in the LICENSE file.
25614 25614
25615 25615
25616 @DocsEditable 25616 @DocsEditable
25617 @DomName('SharedWorker') 25617 @DomName('SharedWorker')
25618 abstract class _SharedWorker extends AbstractWorker native "*SharedWorker" { 25618 abstract class _SharedWorker extends AbstractWorker native "SharedWorker" {
25619 25619
25620 @DomName('SharedWorker.SharedWorker') 25620 @DomName('SharedWorker.SharedWorker')
25621 @DocsEditable 25621 @DocsEditable
25622 factory _SharedWorker(String scriptURL, [String name]) { 25622 factory _SharedWorker(String scriptURL, [String name]) {
25623 if (?name) { 25623 if (?name) {
25624 return _SharedWorker._create_1(scriptURL, name); 25624 return _SharedWorker._create_1(scriptURL, name);
25625 } 25625 }
25626 return _SharedWorker._create_2(scriptURL); 25626 return _SharedWorker._create_2(scriptURL);
25627 } 25627 }
25628 static _SharedWorker _create_1(scriptURL, name) => JS('_SharedWorker', 'new Sh aredWorker(#,#)', scriptURL, name); 25628 static _SharedWorker _create_1(scriptURL, name) => JS('_SharedWorker', 'new Sh aredWorker(#,#)', scriptURL, name);
25629 static _SharedWorker _create_2(scriptURL) => JS('_SharedWorker', 'new SharedWo rker(#)', scriptURL); 25629 static _SharedWorker _create_2(scriptURL) => JS('_SharedWorker', 'new SharedWo rker(#)', scriptURL);
25630 } 25630 }
25631 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25631 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25632 // for details. All rights reserved. Use of this source code is governed by a 25632 // for details. All rights reserved. Use of this source code is governed by a
25633 // BSD-style license that can be found in the LICENSE file. 25633 // BSD-style license that can be found in the LICENSE file.
25634 25634
25635 25635
25636 @DocsEditable 25636 @DocsEditable
25637 @DomName('SharedWorkerContext') 25637 @DomName('SharedWorkerContext')
25638 abstract class _SharedWorkerContext extends _WorkerContext native "*SharedWorker Context" { 25638 abstract class _SharedWorkerContext extends _WorkerContext native "SharedWorkerC ontext" {
25639 } 25639 }
25640 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25640 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25641 // for details. All rights reserved. Use of this source code is governed by a 25641 // for details. All rights reserved. Use of this source code is governed by a
25642 // BSD-style license that can be found in the LICENSE file. 25642 // BSD-style license that can be found in the LICENSE file.
25643 25643
25644 25644
25645 @DocsEditable 25645 @DocsEditable
25646 @DomName('SpeechInputResultList') 25646 @DomName('SpeechInputResultList')
25647 class _SpeechInputResultList implements JavaScriptIndexingBehavior, List<SpeechI nputResult> native "*SpeechInputResultList" { 25647 class _SpeechInputResultList implements JavaScriptIndexingBehavior, List<SpeechI nputResult> native "SpeechInputResultList" {
25648 25648
25649 @DomName('SpeechInputResultList.length') 25649 @DomName('SpeechInputResultList.length')
25650 @DocsEditable 25650 @DocsEditable
25651 int get length => JS("int", "#.length", this); 25651 int get length => JS("int", "#.length", this);
25652 25652
25653 SpeechInputResult operator[](int index) => JS("SpeechInputResult", "#[#]", thi s, index); 25653 SpeechInputResult operator[](int index) => JS("SpeechInputResult", "#[#]", thi s, index);
25654 25654
25655 void operator[]=(int index, SpeechInputResult value) { 25655 void operator[]=(int index, SpeechInputResult value) {
25656 throw new UnsupportedError("Cannot assign element of immutable List."); 25656 throw new UnsupportedError("Cannot assign element of immutable List.");
25657 } 25657 }
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
25854 @DocsEditable 25854 @DocsEditable
25855 SpeechInputResult item(int index) native; 25855 SpeechInputResult item(int index) native;
25856 } 25856 }
25857 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 25857 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25858 // for details. All rights reserved. Use of this source code is governed by a 25858 // for details. All rights reserved. Use of this source code is governed by a
25859 // BSD-style license that can be found in the LICENSE file. 25859 // BSD-style license that can be found in the LICENSE file.
25860 25860
25861 25861
25862 @DocsEditable 25862 @DocsEditable
25863 @DomName('SpeechRecognitionResultList') 25863 @DomName('SpeechRecognitionResultList')
25864 class _SpeechRecognitionResultList implements JavaScriptIndexingBehavior, List<S peechRecognitionResult> native "*SpeechRecognitionResultList" { 25864 class _SpeechRecognitionResultList implements JavaScriptIndexingBehavior, List<S peechRecognitionResult> native "SpeechRecognitionResultList" {
25865 25865
25866 @DomName('SpeechRecognitionResultList.length') 25866 @DomName('SpeechRecognitionResultList.length')
25867 @DocsEditable 25867 @DocsEditable
25868 int get length => JS("int", "#.length", this); 25868 int get length => JS("int", "#.length", this);
25869 25869
25870 SpeechRecognitionResult operator[](int index) => JS("SpeechRecognitionResult", "#[#]", this, index); 25870 SpeechRecognitionResult operator[](int index) => JS("SpeechRecognitionResult", "#[#]", this, index);
25871 25871
25872 void operator[]=(int index, SpeechRecognitionResult value) { 25872 void operator[]=(int index, SpeechRecognitionResult value) {
25873 throw new UnsupportedError("Cannot assign element of immutable List."); 25873 throw new UnsupportedError("Cannot assign element of immutable List.");
25874 } 25874 }
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
26071 @DocsEditable 26071 @DocsEditable
26072 SpeechRecognitionResult item(int index) native; 26072 SpeechRecognitionResult item(int index) native;
26073 } 26073 }
26074 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 26074 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26075 // for details. All rights reserved. Use of this source code is governed by a 26075 // for details. All rights reserved. Use of this source code is governed by a
26076 // BSD-style license that can be found in the LICENSE file. 26076 // BSD-style license that can be found in the LICENSE file.
26077 26077
26078 26078
26079 @DocsEditable 26079 @DocsEditable
26080 @DomName('StyleSheetList') 26080 @DomName('StyleSheetList')
26081 class _StyleSheetList implements JavaScriptIndexingBehavior, List<StyleSheet> na tive "*StyleSheetList" { 26081 class _StyleSheetList implements JavaScriptIndexingBehavior, List<StyleSheet> na tive "StyleSheetList" {
26082 26082
26083 @DomName('StyleSheetList.length') 26083 @DomName('StyleSheetList.length')
26084 @DocsEditable 26084 @DocsEditable
26085 int get length => JS("int", "#.length", this); 26085 int get length => JS("int", "#.length", this);
26086 26086
26087 StyleSheet operator[](int index) => JS("StyleSheet", "#[#]", this, index); 26087 StyleSheet operator[](int index) => JS("StyleSheet", "#[#]", this, index);
26088 26088
26089 void operator[]=(int index, StyleSheet value) { 26089 void operator[]=(int index, StyleSheet value) {
26090 throw new UnsupportedError("Cannot assign element of immutable List."); 26090 throw new UnsupportedError("Cannot assign element of immutable List.");
26091 } 26091 }
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
26288 @DocsEditable 26288 @DocsEditable
26289 StyleSheet item(int index) native; 26289 StyleSheet item(int index) native;
26290 } 26290 }
26291 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 26291 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26292 // for details. All rights reserved. Use of this source code is governed by a 26292 // for details. All rights reserved. Use of this source code is governed by a
26293 // BSD-style license that can be found in the LICENSE file. 26293 // BSD-style license that can be found in the LICENSE file.
26294 26294
26295 26295
26296 @DocsEditable 26296 @DocsEditable
26297 @DomName('WebKitCSSFilterValue') 26297 @DomName('WebKitCSSFilterValue')
26298 abstract class _WebKitCSSFilterValue extends _CssValueList native "*WebKitCSSFil terValue" { 26298 abstract class _WebKitCSSFilterValue extends _CssValueList native "WebKitCSSFilt erValue" {
26299 } 26299 }
26300 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 26300 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26301 // for details. All rights reserved. Use of this source code is governed by a 26301 // for details. All rights reserved. Use of this source code is governed by a
26302 // BSD-style license that can be found in the LICENSE file. 26302 // BSD-style license that can be found in the LICENSE file.
26303 26303
26304 26304
26305 @DocsEditable 26305 @DocsEditable
26306 @DomName('WebKitCSSMatrix') 26306 @DomName('WebKitCSSMatrix')
26307 @SupportedBrowser(SupportedBrowser.CHROME) 26307 @SupportedBrowser(SupportedBrowser.CHROME)
26308 @SupportedBrowser(SupportedBrowser.SAFARI) 26308 @SupportedBrowser(SupportedBrowser.SAFARI)
26309 @Experimental 26309 @Experimental
26310 abstract class _WebKitCSSMatrix native "*WebKitCSSMatrix" { 26310 abstract class _WebKitCSSMatrix native "WebKitCSSMatrix" {
26311 26311
26312 @DomName('WebKitCSSMatrix.WebKitCSSMatrix') 26312 @DomName('WebKitCSSMatrix.WebKitCSSMatrix')
26313 @DocsEditable 26313 @DocsEditable
26314 factory _WebKitCSSMatrix([String cssValue]) { 26314 factory _WebKitCSSMatrix([String cssValue]) {
26315 if (?cssValue) { 26315 if (?cssValue) {
26316 return _WebKitCSSMatrix._create_1(cssValue); 26316 return _WebKitCSSMatrix._create_1(cssValue);
26317 } 26317 }
26318 return _WebKitCSSMatrix._create_2(); 26318 return _WebKitCSSMatrix._create_2();
26319 } 26319 }
26320 static _WebKitCSSMatrix _create_1(cssValue) => JS('_WebKitCSSMatrix', 'new Web KitCSSMatrix(#)', cssValue); 26320 static _WebKitCSSMatrix _create_1(cssValue) => JS('_WebKitCSSMatrix', 'new Web KitCSSMatrix(#)', cssValue);
26321 static _WebKitCSSMatrix _create_2() => JS('_WebKitCSSMatrix', 'new WebKitCSSMa trix()'); 26321 static _WebKitCSSMatrix _create_2() => JS('_WebKitCSSMatrix', 'new WebKitCSSMa trix()');
26322 } 26322 }
26323 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 26323 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26324 // for details. All rights reserved. Use of this source code is governed by a 26324 // for details. All rights reserved. Use of this source code is governed by a
26325 // BSD-style license that can be found in the LICENSE file. 26325 // BSD-style license that can be found in the LICENSE file.
26326 26326
26327 26327
26328 @DocsEditable 26328 @DocsEditable
26329 @DomName('WebKitCSSMixFunctionValue') 26329 @DomName('WebKitCSSMixFunctionValue')
26330 abstract class _WebKitCSSMixFunctionValue extends _CssValueList native "*WebKitC SSMixFunctionValue" { 26330 abstract class _WebKitCSSMixFunctionValue extends _CssValueList native "WebKitCS SMixFunctionValue" {
26331 } 26331 }
26332 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 26332 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26333 // for details. All rights reserved. Use of this source code is governed by a 26333 // for details. All rights reserved. Use of this source code is governed by a
26334 // BSD-style license that can be found in the LICENSE file. 26334 // BSD-style license that can be found in the LICENSE file.
26335 26335
26336 26336
26337 @DocsEditable 26337 @DocsEditable
26338 @DomName('WebKitCSSTransformValue') 26338 @DomName('WebKitCSSTransformValue')
26339 abstract class _WebKitCSSTransformValue extends _CssValueList native "*WebKitCSS TransformValue" { 26339 abstract class _WebKitCSSTransformValue extends _CssValueList native "WebKitCSST ransformValue" {
26340 } 26340 }
26341 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 26341 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26342 // for details. All rights reserved. Use of this source code is governed by a 26342 // for details. All rights reserved. Use of this source code is governed by a
26343 // BSD-style license that can be found in the LICENSE file. 26343 // BSD-style license that can be found in the LICENSE file.
26344 26344
26345 26345
26346 @DocsEditable 26346 @DocsEditable
26347 @DomName('WorkerContext') 26347 @DomName('WorkerContext')
26348 abstract class _WorkerContext extends EventTarget native "*WorkerContext" { 26348 abstract class _WorkerContext extends EventTarget native "WorkerContext" {
26349 } 26349 }
26350 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 26350 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26351 // for details. All rights reserved. Use of this source code is governed by a 26351 // for details. All rights reserved. Use of this source code is governed by a
26352 // BSD-style license that can be found in the LICENSE file. 26352 // BSD-style license that can be found in the LICENSE file.
26353 26353
26354 26354
26355 @DocsEditable 26355 @DocsEditable
26356 @DomName('WorkerLocation') 26356 @DomName('WorkerLocation')
26357 abstract class _WorkerLocation native "*WorkerLocation" { 26357 abstract class _WorkerLocation native "WorkerLocation" {
26358 } 26358 }
26359 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 26359 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26360 // for details. All rights reserved. Use of this source code is governed by a 26360 // for details. All rights reserved. Use of this source code is governed by a
26361 // BSD-style license that can be found in the LICENSE file. 26361 // BSD-style license that can be found in the LICENSE file.
26362 26362
26363 26363
26364 @DocsEditable 26364 @DocsEditable
26365 @DomName('WorkerNavigator') 26365 @DomName('WorkerNavigator')
26366 abstract class _WorkerNavigator native "*WorkerNavigator" { 26366 abstract class _WorkerNavigator native "WorkerNavigator" {
26367 } 26367 }
26368 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 26368 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26369 // for details. All rights reserved. Use of this source code is governed by a 26369 // for details. All rights reserved. Use of this source code is governed by a
26370 // BSD-style license that can be found in the LICENSE file. 26370 // BSD-style license that can be found in the LICENSE file.
26371 26371
26372 26372
26373 abstract class _AttributeMap implements Map<String, String> { 26373 abstract class _AttributeMap implements Map<String, String> {
26374 final Element _element; 26374 final Element _element;
26375 26375
26376 _AttributeMap(this._element); 26376 _AttributeMap(this._element);
(...skipping 3533 matching lines...) Expand 10 before | Expand all | Expand 10 after
29910 _position = nextPosition; 29910 _position = nextPosition;
29911 return true; 29911 return true;
29912 } 29912 }
29913 _current = null; 29913 _current = null;
29914 _position = _array.length; 29914 _position = _array.length;
29915 return false; 29915 return false;
29916 } 29916 }
29917 29917
29918 T get current => _current; 29918 T get current => _current;
29919 } 29919 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/lib/native_helper.dart ('k') | sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698