OLD | NEW |
1 dart_library.library('dart/html', null, /* Imports */[ | 1 dart_library.library('dart/html', null, /* Imports */[ |
2 "dart/_runtime", | 2 "dart/_runtime", |
3 'dart/math', | 3 'dart/math', |
4 'dart/core', | 4 'dart/core', |
5 'dart/_js_helper', | 5 'dart/_js_helper', |
6 'dart/async', | 6 'dart/async', |
7 'dart/collection', | 7 'dart/collection', |
8 'dart/_foreign_helper', | 8 'dart/_foreign_helper', |
9 'dart/isolate' | 9 'dart/isolate' |
10 ], /* Lazy imports */[ | 10 ], /* Lazy imports */[ |
(...skipping 30 matching lines...) Expand all Loading... |
41 const _removeEventListener_3 = Symbol('_removeEventListener_3'); | 41 const _removeEventListener_3 = Symbol('_removeEventListener_3'); |
42 const _removeEventListener_4 = Symbol('_removeEventListener_4'); | 42 const _removeEventListener_4 = Symbol('_removeEventListener_4'); |
43 class EventTarget extends DartHtmlDomObject { | 43 class EventTarget extends DartHtmlDomObject { |
44 _created() { | 44 _created() { |
45 super.DartHtmlDomObject(); | 45 super.DartHtmlDomObject(); |
46 } | 46 } |
47 get on() { | 47 get on() { |
48 return new Events(this); | 48 return new Events(this); |
49 } | 49 } |
50 addEventListener(type, listener, useCapture) { | 50 addEventListener(type, listener, useCapture) { |
51 if (useCapture === void 0) | 51 if (useCapture === void 0) useCapture = null; |
52 useCapture = null; | |
53 if (listener != null) { | 52 if (listener != null) { |
54 this[_addEventListener](type, listener, useCapture); | 53 this[_addEventListener](type, listener, useCapture); |
55 } | 54 } |
56 } | 55 } |
57 removeEventListener(type, listener, useCapture) { | 56 removeEventListener(type, listener, useCapture) { |
58 if (useCapture === void 0) | 57 if (useCapture === void 0) useCapture = null; |
59 useCapture = null; | |
60 if (listener != null) { | 58 if (listener != null) { |
61 this[_removeEventListener](type, listener, useCapture); | 59 this[_removeEventListener](type, listener, useCapture); |
62 } | 60 } |
63 } | 61 } |
64 static _() { | 62 static _() { |
65 dart.throw(new core.UnsupportedError("Not supported")); | 63 dart.throw(new core.UnsupportedError("Not supported")); |
66 } | 64 } |
67 static internalCreateEventTarget() { | 65 static internalCreateEventTarget() { |
68 return new EventTarget.internal_(); | 66 return new EventTarget.internal_(); |
69 } | 67 } |
70 internal_() { | 68 internal_() { |
71 super.DartHtmlDomObject(); | 69 super.DartHtmlDomObject(); |
72 } | 70 } |
73 ['=='](other) { | 71 ['=='](other) { |
74 return dart.equals(unwrap_jso(other), unwrap_jso(this)) || dart.notNull(co
re.identical(this, other)); | 72 return dart.equals(unwrap_jso(other), unwrap_jso(this)) || dart.notNull(co
re.identical(this, other)); |
75 } | 73 } |
76 get hashCode() { | 74 get hashCode() { |
77 return dart.hashCode(unwrap_jso(this)); | 75 return dart.hashCode(unwrap_jso(this)); |
78 } | 76 } |
79 [_addEventListener](type, listener, useCapture) { | 77 [_addEventListener](type, listener, useCapture) { |
80 if (type === void 0) | 78 if (type === void 0) type = null; |
81 type = null; | 79 if (listener === void 0) listener = null; |
82 if (listener === void 0) | 80 if (useCapture === void 0) useCapture = null; |
83 listener = null; | |
84 if (useCapture === void 0) | |
85 useCapture = null; | |
86 if (useCapture != null) { | 81 if (useCapture != null) { |
87 this[_addEventListener_1](type, listener, useCapture); | 82 this[_addEventListener_1](type, listener, useCapture); |
88 return; | 83 return; |
89 } | 84 } |
90 if (listener != null) { | 85 if (listener != null) { |
91 this[_addEventListener_2](type, listener); | 86 this[_addEventListener_2](type, listener); |
92 return; | 87 return; |
93 } | 88 } |
94 if (type != null) { | 89 if (type != null) { |
95 this[_addEventListener_3](type); | 90 this[_addEventListener_3](type); |
(...skipping 14 matching lines...) Expand all Loading... |
110 [_addEventListener_4]() { | 105 [_addEventListener_4]() { |
111 return wrap_jso(this.raw.addEventListener()); | 106 return wrap_jso(this.raw.addEventListener()); |
112 } | 107 } |
113 dispatchEvent(event) { | 108 dispatchEvent(event) { |
114 return this[_dispatchEvent_1](event); | 109 return this[_dispatchEvent_1](event); |
115 } | 110 } |
116 [_dispatchEvent_1](event) { | 111 [_dispatchEvent_1](event) { |
117 return dart.as(wrap_jso(this.raw.dispatchEvent(unwrap_jso(event))), core.b
ool); | 112 return dart.as(wrap_jso(this.raw.dispatchEvent(unwrap_jso(event))), core.b
ool); |
118 } | 113 } |
119 [_removeEventListener](type, listener, useCapture) { | 114 [_removeEventListener](type, listener, useCapture) { |
120 if (type === void 0) | 115 if (type === void 0) type = null; |
121 type = null; | 116 if (listener === void 0) listener = null; |
122 if (listener === void 0) | 117 if (useCapture === void 0) useCapture = null; |
123 listener = null; | |
124 if (useCapture === void 0) | |
125 useCapture = null; | |
126 if (useCapture != null) { | 118 if (useCapture != null) { |
127 this[_removeEventListener_1](type, listener, useCapture); | 119 this[_removeEventListener_1](type, listener, useCapture); |
128 return; | 120 return; |
129 } | 121 } |
130 if (listener != null) { | 122 if (listener != null) { |
131 this[_removeEventListener_2](type, listener); | 123 this[_removeEventListener_2](type, listener); |
132 return; | 124 return; |
133 } | 125 } |
134 if (type != null) { | 126 if (type != null) { |
135 this[_removeEventListener_3](type); | 127 this[_removeEventListener_3](type); |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 let validator = opts && 'validator' in opts ? opts.validator : null; | 430 let validator = opts && 'validator' in opts ? opts.validator : null; |
439 let treeSanitizer = opts && 'treeSanitizer' in opts ? opts.treeSanitizer :
null; | 431 let treeSanitizer = opts && 'treeSanitizer' in opts ? opts.treeSanitizer :
null; |
440 let fragment = exports.document.body.createFragment(html, {validator: vali
dator, treeSanitizer: treeSanitizer}); | 432 let fragment = exports.document.body.createFragment(html, {validator: vali
dator, treeSanitizer: treeSanitizer}); |
441 return dart.as(fragment.nodes[dartx.where](dart.fn(e => dart.is(e, Element
), core.bool, [dart.dynamic]))[dartx.single], Element); | 433 return dart.as(fragment.nodes[dartx.where](dart.fn(e => dart.is(e, Element
), core.bool, [dart.dynamic]))[dartx.single], Element); |
442 } | 434 } |
443 created() { | 435 created() { |
444 this[_xtag] = null; | 436 this[_xtag] = null; |
445 super._created(); | 437 super._created(); |
446 } | 438 } |
447 static tag(tag, typeExtention) { | 439 static tag(tag, typeExtention) { |
448 if (typeExtention === void 0) | 440 if (typeExtention === void 0) typeExtention = null; |
449 typeExtention = null; | |
450 return _ElementFactoryProvider.createElement_tag(tag, typeExtention); | 441 return _ElementFactoryProvider.createElement_tag(tag, typeExtention); |
451 } | 442 } |
452 static a() { | 443 static a() { |
453 return Element.tag('a'); | 444 return Element.tag('a'); |
454 } | 445 } |
455 static article() { | 446 static article() { |
456 return Element.tag('article'); | 447 return Element.tag('article'); |
457 } | 448 } |
458 static aside() { | 449 static aside() { |
459 return Element.tag('aside'); | 450 return Element.tag('aside'); |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
579 let data = this.dataset; | 570 let data = this.dataset; |
580 data.clear(); | 571 data.clear(); |
581 for (let key of value.keys) { | 572 for (let key of value.keys) { |
582 data.set(key, value.get(key)); | 573 data.set(key, value.get(key)); |
583 } | 574 } |
584 } | 575 } |
585 getNamespacedAttributes(namespace) { | 576 getNamespacedAttributes(namespace) { |
586 return new _NamespacedAttributeMap(this, namespace); | 577 return new _NamespacedAttributeMap(this, namespace); |
587 } | 578 } |
588 getComputedStyle(pseudoElement) { | 579 getComputedStyle(pseudoElement) { |
589 if (pseudoElement === void 0) | 580 if (pseudoElement === void 0) pseudoElement = null; |
590 pseudoElement = null; | |
591 if (pseudoElement == null) { | 581 if (pseudoElement == null) { |
592 pseudoElement = ''; | 582 pseudoElement = ''; |
593 } | 583 } |
594 return exports.window[_getComputedStyle](this, pseudoElement); | 584 return exports.window[_getComputedStyle](this, pseudoElement); |
595 } | 585 } |
596 get client() { | 586 get client() { |
597 return new math.Rectangle(this.clientLeft, this.clientTop, this.clientWidt
h, this.clientHeight); | 587 return new math.Rectangle(this.clientLeft, this.clientTop, this.clientWidt
h, this.clientHeight); |
598 } | 588 } |
599 get offset() { | 589 get offset() { |
600 return new math.Rectangle(this.offsetLeft, this.offsetTop, this.offsetWidt
h, this.offsetHeight); | 590 return new math.Rectangle(this.offsetLeft, this.offsetTop, this.offsetWidt
h, this.offsetHeight); |
(...skipping 28 matching lines...) Expand all Loading... |
629 get localName() { | 619 get localName() { |
630 return this[_localName]; | 620 return this[_localName]; |
631 } | 621 } |
632 get namespaceUri() { | 622 get namespaceUri() { |
633 return this[_namespaceUri]; | 623 return this[_namespaceUri]; |
634 } | 624 } |
635 toString() { | 625 toString() { |
636 return this.localName; | 626 return this.localName; |
637 } | 627 } |
638 scrollIntoView(alignment) { | 628 scrollIntoView(alignment) { |
639 if (alignment === void 0) | 629 if (alignment === void 0) alignment = null; |
640 alignment = null; | |
641 let hasScrollIntoViewIfNeeded = true; | 630 let hasScrollIntoViewIfNeeded = true; |
642 if (dart.equals(alignment, ScrollAlignment.TOP)) { | 631 if (dart.equals(alignment, ScrollAlignment.TOP)) { |
643 this[_scrollIntoView](true); | 632 this[_scrollIntoView](true); |
644 } else if (dart.equals(alignment, ScrollAlignment.BOTTOM)) { | 633 } else if (dart.equals(alignment, ScrollAlignment.BOTTOM)) { |
645 this[_scrollIntoView](false); | 634 this[_scrollIntoView](false); |
646 } else if (dart.notNull(hasScrollIntoViewIfNeeded)) { | 635 } else if (dart.notNull(hasScrollIntoViewIfNeeded)) { |
647 if (dart.equals(alignment, ScrollAlignment.CENTER)) { | 636 if (dart.equals(alignment, ScrollAlignment.CENTER)) { |
648 this[_scrollIntoViewIfNeeded](true); | 637 this[_scrollIntoViewIfNeeded](true); |
649 } else { | 638 } else { |
650 this[_scrollIntoViewIfNeeded](); | 639 this[_scrollIntoViewIfNeeded](); |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
693 dart.throw(new core.ArgumentError(`Invalid position ${where}`)); | 682 dart.throw(new core.ArgumentError(`Invalid position ${where}`)); |
694 } | 683 } |
695 } | 684 } |
696 } | 685 } |
697 matches(selectors) { | 686 matches(selectors) { |
698 return this.raw.matches(selectors); | 687 return this.raw.matches(selectors); |
699 } | 688 } |
700 matchesWithAncestors(selectors) { | 689 matchesWithAncestors(selectors) { |
701 let elem = this; | 690 let elem = this; |
702 do { | 691 do { |
703 if (dart.notNull(elem.matches(selectors))) | 692 if (dart.notNull(elem.matches(selectors))) return true; |
704 return true; | |
705 elem = elem.parent; | 693 elem = elem.parent; |
706 } while (elem != null); | 694 } while (elem != null); |
707 return false; | 695 return false; |
708 } | 696 } |
709 get contentEdge() { | 697 get contentEdge() { |
710 return new _ContentCssRect(this); | 698 return new _ContentCssRect(this); |
711 } | 699 } |
712 get paddingEdge() { | 700 get paddingEdge() { |
713 return new _PaddingCssRect(this); | 701 return new _PaddingCssRect(this); |
714 } | 702 } |
715 get borderEdge() { | 703 get borderEdge() { |
716 return new _BorderCssRect(this); | 704 return new _BorderCssRect(this); |
717 } | 705 } |
718 get marginEdge() { | 706 get marginEdge() { |
719 return new _MarginCssRect(this); | 707 return new _MarginCssRect(this); |
720 } | 708 } |
721 get documentOffset() { | 709 get documentOffset() { |
722 return this.offsetTo(exports.document.documentElement); | 710 return this.offsetTo(exports.document.documentElement); |
723 } | 711 } |
724 offsetTo(parent) { | 712 offsetTo(parent) { |
725 return Element._offsetToHelper(this, parent); | 713 return Element._offsetToHelper(this, parent); |
726 } | 714 } |
727 static _offsetToHelper(current, parent) { | 715 static _offsetToHelper(current, parent) { |
728 let sameAsParent = dart.equals(current, parent); | 716 let sameAsParent = dart.equals(current, parent); |
729 let foundAsParent = dart.notNull(sameAsParent) || parent.tagName == 'HTML'
; | 717 let foundAsParent = dart.notNull(sameAsParent) || parent.tagName == 'HTML'
; |
730 if (current == null || dart.notNull(sameAsParent)) { | 718 if (current == null || dart.notNull(sameAsParent)) { |
731 if (dart.notNull(foundAsParent)) | 719 if (dart.notNull(foundAsParent)) return new math.Point(0, 0); |
732 return new math.Point(0, 0); | |
733 dart.throw(new core.ArgumentError("Specified element is not a transitive
offset " + "parent of this element.")); | 720 dart.throw(new core.ArgumentError("Specified element is not a transitive
offset " + "parent of this element.")); |
734 } | 721 } |
735 let parentOffset = current.offsetParent; | 722 let parentOffset = current.offsetParent; |
736 let p = Element._offsetToHelper(parentOffset, parent); | 723 let p = Element._offsetToHelper(parentOffset, parent); |
737 return new math.Point(dart.dsend(p.x, '+', current.offsetLeft), dart.dsend
(p.y, '+', current.offsetTop)); | 724 return new math.Point(dart.dsend(p.x, '+', current.offsetLeft), dart.dsend
(p.y, '+', current.offsetTop)); |
738 } | 725 } |
739 createFragment(html, opts) { | 726 createFragment(html, opts) { |
740 let validator = opts && 'validator' in opts ? opts.validator : null; | 727 let validator = opts && 'validator' in opts ? opts.validator : null; |
741 let treeSanitizer = opts && 'treeSanitizer' in opts ? opts.treeSanitizer :
null; | 728 let treeSanitizer = opts && 'treeSanitizer' in opts ? opts.treeSanitizer :
null; |
742 if (treeSanitizer == null) { | 729 if (treeSanitizer == null) { |
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1140 return wrap_jso(this.raw.requestFullscreen()); | 1127 return wrap_jso(this.raw.requestFullscreen()); |
1141 } | 1128 } |
1142 requestPointerLock() { | 1129 requestPointerLock() { |
1143 this[_requestPointerLock_1](); | 1130 this[_requestPointerLock_1](); |
1144 return; | 1131 return; |
1145 } | 1132 } |
1146 [_requestPointerLock_1]() { | 1133 [_requestPointerLock_1]() { |
1147 return wrap_jso(this.raw.requestPointerLock()); | 1134 return wrap_jso(this.raw.requestPointerLock()); |
1148 } | 1135 } |
1149 [_scrollIntoView](alignWithTop) { | 1136 [_scrollIntoView](alignWithTop) { |
1150 if (alignWithTop === void 0) | 1137 if (alignWithTop === void 0) alignWithTop = null; |
1151 alignWithTop = null; | |
1152 if (alignWithTop != null) { | 1138 if (alignWithTop != null) { |
1153 this[_scrollIntoView_1](alignWithTop); | 1139 this[_scrollIntoView_1](alignWithTop); |
1154 return; | 1140 return; |
1155 } | 1141 } |
1156 this[_scrollIntoView_2](); | 1142 this[_scrollIntoView_2](); |
1157 return; | 1143 return; |
1158 } | 1144 } |
1159 [_scrollIntoView_1](alignWithTop) { | 1145 [_scrollIntoView_1](alignWithTop) { |
1160 return wrap_jso(this.raw.scrollIntoView(unwrap_jso(alignWithTop))); | 1146 return wrap_jso(this.raw.scrollIntoView(unwrap_jso(alignWithTop))); |
1161 } | 1147 } |
1162 [_scrollIntoView_2]() { | 1148 [_scrollIntoView_2]() { |
1163 return wrap_jso(this.raw.scrollIntoView()); | 1149 return wrap_jso(this.raw.scrollIntoView()); |
1164 } | 1150 } |
1165 [_scrollIntoViewIfNeeded](centerIfNeeded) { | 1151 [_scrollIntoViewIfNeeded](centerIfNeeded) { |
1166 if (centerIfNeeded === void 0) | 1152 if (centerIfNeeded === void 0) centerIfNeeded = null; |
1167 centerIfNeeded = null; | |
1168 if (centerIfNeeded != null) { | 1153 if (centerIfNeeded != null) { |
1169 this[_scrollIntoViewIfNeeded_1](centerIfNeeded); | 1154 this[_scrollIntoViewIfNeeded_1](centerIfNeeded); |
1170 return; | 1155 return; |
1171 } | 1156 } |
1172 this[_scrollIntoViewIfNeeded_2](); | 1157 this[_scrollIntoViewIfNeeded_2](); |
1173 return; | 1158 return; |
1174 } | 1159 } |
1175 [_scrollIntoViewIfNeeded_1](centerIfNeeded) { | 1160 [_scrollIntoViewIfNeeded_1](centerIfNeeded) { |
1176 return wrap_jso(this.raw.scrollIntoViewIfNeeded(unwrap_jso(centerIfNeeded)
)); | 1161 return wrap_jso(this.raw.scrollIntoViewIfNeeded(unwrap_jso(centerIfNeeded)
)); |
1177 } | 1162 } |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1401 names: ['internalCreateHtmlElement'] | 1386 names: ['internalCreateHtmlElement'] |
1402 }); | 1387 }); |
1403 HtmlElement[dart.metadata] = () => [dart.const(new _js_helper.Native("HTMLElem
ent"))]; | 1388 HtmlElement[dart.metadata] = () => [dart.const(new _js_helper.Native("HTMLElem
ent"))]; |
1404 class AnchorElement extends HtmlElement { | 1389 class AnchorElement extends HtmlElement { |
1405 static _() { | 1390 static _() { |
1406 dart.throw(new core.UnsupportedError("Not supported")); | 1391 dart.throw(new core.UnsupportedError("Not supported")); |
1407 } | 1392 } |
1408 static new(opts) { | 1393 static new(opts) { |
1409 let href = opts && 'href' in opts ? opts.href : null; | 1394 let href = opts && 'href' in opts ? opts.href : null; |
1410 let e = dart.as(exports.document.createElement("a"), AnchorElement); | 1395 let e = dart.as(exports.document.createElement("a"), AnchorElement); |
1411 if (href != null) | 1396 if (href != null) e.href = href; |
1412 e.href = href; | |
1413 return e; | 1397 return e; |
1414 } | 1398 } |
1415 static internalCreateAnchorElement() { | 1399 static internalCreateAnchorElement() { |
1416 return new AnchorElement.internal_(); | 1400 return new AnchorElement.internal_(); |
1417 } | 1401 } |
1418 internal_() { | 1402 internal_() { |
1419 super.internal_(); | 1403 super.internal_(); |
1420 } | 1404 } |
1421 get download() { | 1405 get download() { |
1422 return dart.as(wrap_jso(this.raw.download), core.String); | 1406 return dart.as(wrap_jso(this.raw.download), core.String); |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1668 return e; | 1652 return e; |
1669 } | 1653 } |
1670 get matchingTarget() { | 1654 get matchingTarget() { |
1671 if (this[_selector] == null) { | 1655 if (this[_selector] == null) { |
1672 dart.throw(new core.UnsupportedError('Cannot call matchingTarget if this
Event did' + ' not arise as a result of event delegation.')); | 1656 dart.throw(new core.UnsupportedError('Cannot call matchingTarget if this
Event did' + ' not arise as a result of event delegation.')); |
1673 } | 1657 } |
1674 let currentTarget = dart.as(this.currentTarget, Element); | 1658 let currentTarget = dart.as(this.currentTarget, Element); |
1675 let target = dart.as(this.target, Element); | 1659 let target = dart.as(this.target, Element); |
1676 let matchedTarget = null; | 1660 let matchedTarget = null; |
1677 do { | 1661 do { |
1678 if (dart.notNull(target.matches(this[_selector]))) | 1662 if (dart.notNull(target.matches(this[_selector]))) return target; |
1679 return target; | |
1680 target = target.parent; | 1663 target = target.parent; |
1681 } while (target != null && !dart.equals(target, currentTarget.parent)); | 1664 } while (target != null && !dart.equals(target, currentTarget.parent)); |
1682 dart.throw(new core.StateError('No selector matched for populating matched
Target.')); | 1665 dart.throw(new core.StateError('No selector matched for populating matched
Target.')); |
1683 } | 1666 } |
1684 static _() { | 1667 static _() { |
1685 dart.throw(new core.UnsupportedError("Not supported")); | 1668 dart.throw(new core.UnsupportedError("Not supported")); |
1686 } | 1669 } |
1687 static internalCreateEvent() { | 1670 static internalCreateEvent() { |
1688 return new Event.internal_(); | 1671 return new Event.internal_(); |
1689 } | 1672 } |
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2062 }), | 2045 }), |
2063 statics: () => ({internalCreateConsoleBase: [ConsoleBase, []]}), | 2046 statics: () => ({internalCreateConsoleBase: [ConsoleBase, []]}), |
2064 names: ['internalCreateConsoleBase'] | 2047 names: ['internalCreateConsoleBase'] |
2065 }); | 2048 }); |
2066 ConsoleBase[dart.metadata] = () => [dart.const(new _metadata.DocsEditable()),
dart.const(new _metadata.DomName('ConsoleBase')), dart.const(new _metadata.Exper
imental()), dart.const(new _js_helper.Native("ConsoleBase"))]; | 2049 ConsoleBase[dart.metadata] = () => [dart.const(new _metadata.DocsEditable()),
dart.const(new _metadata.DomName('ConsoleBase')), dart.const(new _metadata.Exper
imental()), dart.const(new _js_helper.Native("ConsoleBase"))]; |
2067 class CssStyleDeclarationBase extends core.Object { | 2050 class CssStyleDeclarationBase extends core.Object { |
2068 getPropertyValue(propertyName) { | 2051 getPropertyValue(propertyName) { |
2069 return dart.throw(new core.StateError('getProperty not overridden in dart:
html')); | 2052 return dart.throw(new core.StateError('getProperty not overridden in dart:
html')); |
2070 } | 2053 } |
2071 setProperty(propertyName, value, priority) { | 2054 setProperty(propertyName, value, priority) { |
2072 if (priority === void 0) | 2055 if (priority === void 0) priority = null; |
2073 priority = null; | |
2074 return dart.throw(new core.StateError('setProperty not overridden in dart:
html')); | 2056 return dart.throw(new core.StateError('setProperty not overridden in dart:
html')); |
2075 } | 2057 } |
2076 get alignContent() { | 2058 get alignContent() { |
2077 return this.getPropertyValue('align-content'); | 2059 return this.getPropertyValue('align-content'); |
2078 } | 2060 } |
2079 set alignContent(value) { | 2061 set alignContent(value) { |
2080 this.setProperty('align-content', value, ''); | 2062 this.setProperty('align-content', value, ''); |
2081 } | 2063 } |
2082 get alignItems() { | 2064 get alignItems() { |
2083 return this.getPropertyValue('align-items'); | 2065 return this.getPropertyValue('align-items'); |
(...skipping 2081 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4165 return this[_getPropertyValue](dart.notNull(html_common.Device.cssPrefix
) + dart.notNull(propertyName)); | 4147 return this[_getPropertyValue](dart.notNull(html_common.Device.cssPrefix
) + dart.notNull(propertyName)); |
4166 } | 4148 } |
4167 } | 4149 } |
4168 supportsProperty(propertyName) { | 4150 supportsProperty(propertyName) { |
4169 return dart.notNull(this[_supportsProperty](propertyName)) || dart.notNull
(this[_supportsProperty](CssStyleDeclaration._camelCase(dart.notNull(html_common
.Device.cssPrefix) + dart.notNull(propertyName)))); | 4151 return dart.notNull(this[_supportsProperty](propertyName)) || dart.notNull
(this[_supportsProperty](CssStyleDeclaration._camelCase(dart.notNull(html_common
.Device.cssPrefix) + dart.notNull(propertyName)))); |
4170 } | 4152 } |
4171 [_supportsProperty](propertyName) { | 4153 [_supportsProperty](propertyName) { |
4172 return propertyName in this.raw; | 4154 return propertyName in this.raw; |
4173 } | 4155 } |
4174 setProperty(propertyName, value, priority) { | 4156 setProperty(propertyName, value, priority) { |
4175 if (priority === void 0) | 4157 if (priority === void 0) priority = null; |
4176 priority = null; | |
4177 return this[_setPropertyHelper](this[_browserPropertyName](propertyName),
value, priority); | 4158 return this[_setPropertyHelper](this[_browserPropertyName](propertyName),
value, priority); |
4178 } | 4159 } |
4179 [_browserPropertyName](propertyName) { | 4160 [_browserPropertyName](propertyName) { |
4180 let name = CssStyleDeclaration._readCache(propertyName); | 4161 let name = CssStyleDeclaration._readCache(propertyName); |
4181 if (typeof name == 'string') | 4162 if (typeof name == 'string') return name; |
4182 return name; | |
4183 if (dart.notNull(this[_supportsProperty](CssStyleDeclaration._camelCase(pr
opertyName)))) { | 4163 if (dart.notNull(this[_supportsProperty](CssStyleDeclaration._camelCase(pr
opertyName)))) { |
4184 name = propertyName; | 4164 name = propertyName; |
4185 } else { | 4165 } else { |
4186 name = dart.notNull(html_common.Device.cssPrefix) + dart.notNull(propert
yName); | 4166 name = dart.notNull(html_common.Device.cssPrefix) + dart.notNull(propert
yName); |
4187 } | 4167 } |
4188 CssStyleDeclaration._writeCache(propertyName, name); | 4168 CssStyleDeclaration._writeCache(propertyName, name); |
4189 return name; | 4169 return name; |
4190 } | 4170 } |
4191 static _readCache(key) { | 4171 static _readCache(key) { |
4192 return null; | 4172 return null; |
4193 } | 4173 } |
4194 static _writeCache(key, value) {} | 4174 static _writeCache(key, value) {} |
4195 static _camelCase(hyphenated) { | 4175 static _camelCase(hyphenated) { |
4196 return hyphenated[dartx.replaceFirst](core.RegExp.new('^-ms-'), 'ms-')[dar
tx.replaceAllMapped](core.RegExp.new('-([a-z]+)', {caseSensitive: false}), dart.
fn(match => dart.as(dart.dsend(dart.dsend(dart.dindex(dart.dindex(match, 0), 1),
'toUpperCase'), '+', dart.dsend(dart.dindex(match, 0), 'substring', 2)), core.S
tring), core.String, [dart.dynamic])); | 4176 return hyphenated[dartx.replaceFirst](core.RegExp.new('^-ms-'), 'ms-')[dar
tx.replaceAllMapped](core.RegExp.new('-([a-z]+)', {caseSensitive: false}), dart.
fn(match => dart.as(dart.dsend(dart.dsend(dart.dindex(dart.dindex(match, 0), 1),
'toUpperCase'), '+', dart.dsend(dart.dindex(match, 0), 'substring', 2)), core.S
tring), core.String, [dart.dynamic])); |
4197 } | 4177 } |
4198 [_setPropertyHelper](propertyName, value, priority) { | 4178 [_setPropertyHelper](propertyName, value, priority) { |
4199 if (priority === void 0) | 4179 if (priority === void 0) priority = null; |
4200 priority = null; | 4180 if (value == null) value = ''; |
4201 if (value == null) | 4181 if (priority == null) priority = ''; |
4202 value = ''; | |
4203 if (priority == null) | |
4204 priority = ''; | |
4205 this.raw.setProperty(propertyName, value, priority); | 4182 this.raw.setProperty(propertyName, value, priority); |
4206 } | 4183 } |
4207 static get supportsTransitions() { | 4184 static get supportsTransitions() { |
4208 return exports.document.body.style.supportsProperty('transition'); | 4185 return exports.document.body.style.supportsProperty('transition'); |
4209 } | 4186 } |
4210 static _() { | 4187 static _() { |
4211 dart.throw(new core.UnsupportedError("Not supported")); | 4188 dart.throw(new core.UnsupportedError("Not supported")); |
4212 } | 4189 } |
4213 static internalCreateCssStyleDeclaration() { | 4190 static internalCreateCssStyleDeclaration() { |
4214 return new CssStyleDeclaration.internal_(); | 4191 return new CssStyleDeclaration.internal_(); |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4310 class _CssStyleDeclarationSet extends dart.mixin(core.Object, CssStyleDeclarat
ionBase) { | 4287 class _CssStyleDeclarationSet extends dart.mixin(core.Object, CssStyleDeclarat
ionBase) { |
4311 _CssStyleDeclarationSet(elementIterable) { | 4288 _CssStyleDeclarationSet(elementIterable) { |
4312 this[_elementIterable] = elementIterable; | 4289 this[_elementIterable] = elementIterable; |
4313 this[_elementCssStyleDeclarationSetIterable] = null; | 4290 this[_elementCssStyleDeclarationSetIterable] = null; |
4314 this[_elementCssStyleDeclarationSetIterable] = dart.as(core.List.from(this
[_elementIterable])[dartx.map](dart.fn(e => dart.dload(e, 'style'))), core.Itera
ble$(CssStyleDeclaration)); | 4291 this[_elementCssStyleDeclarationSetIterable] = dart.as(core.List.from(this
[_elementIterable])[dartx.map](dart.fn(e => dart.dload(e, 'style'))), core.Itera
ble$(CssStyleDeclaration)); |
4315 } | 4292 } |
4316 getPropertyValue(propertyName) { | 4293 getPropertyValue(propertyName) { |
4317 return this[_elementCssStyleDeclarationSetIterable][dartx.first].getProper
tyValue(propertyName); | 4294 return this[_elementCssStyleDeclarationSetIterable][dartx.first].getProper
tyValue(propertyName); |
4318 } | 4295 } |
4319 setProperty(propertyName, value, priority) { | 4296 setProperty(propertyName, value, priority) { |
4320 if (priority === void 0) | 4297 if (priority === void 0) priority = null; |
4321 priority = null; | |
4322 this[_elementCssStyleDeclarationSetIterable][dartx.forEach](dart.fn(e => d
art.dsend(e, 'setProperty', propertyName, value, priority))); | 4298 this[_elementCssStyleDeclarationSetIterable][dartx.forEach](dart.fn(e => d
art.dsend(e, 'setProperty', propertyName, value, priority))); |
4323 } | 4299 } |
4324 } | 4300 } |
4325 dart.setSignature(_CssStyleDeclarationSet, { | 4301 dart.setSignature(_CssStyleDeclarationSet, { |
4326 constructors: () => ({_CssStyleDeclarationSet: [_CssStyleDeclarationSet, [co
re.Iterable$(Element)]]}) | 4302 constructors: () => ({_CssStyleDeclarationSet: [_CssStyleDeclarationSet, [co
re.Iterable$(Element)]]}) |
4327 }); | 4303 }); |
4328 class DivElement extends HtmlElement { | 4304 class DivElement extends HtmlElement { |
4329 static _() { | 4305 static _() { |
4330 dart.throw(new core.UnsupportedError("Not supported")); | 4306 dart.throw(new core.UnsupportedError("Not supported")); |
4331 } | 4307 } |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4510 [_caretRangeFromPoint_1](x, y) { | 4486 [_caretRangeFromPoint_1](x, y) { |
4511 return dart.as(wrap_jso(this.raw.caretRangeFromPoint(unwrap_jso(x), unwrap
_jso(y))), Range); | 4487 return dart.as(wrap_jso(this.raw.caretRangeFromPoint(unwrap_jso(x), unwrap
_jso(y))), Range); |
4512 } | 4488 } |
4513 createDocumentFragment() { | 4489 createDocumentFragment() { |
4514 return this[_createDocumentFragment_1](); | 4490 return this[_createDocumentFragment_1](); |
4515 } | 4491 } |
4516 [_createDocumentFragment_1]() { | 4492 [_createDocumentFragment_1]() { |
4517 return dart.as(wrap_jso(this.raw.createDocumentFragment()), DocumentFragme
nt); | 4493 return dart.as(wrap_jso(this.raw.createDocumentFragment()), DocumentFragme
nt); |
4518 } | 4494 } |
4519 [_createElement](localName_OR_tagName, typeExtension) { | 4495 [_createElement](localName_OR_tagName, typeExtension) { |
4520 if (typeExtension === void 0) | 4496 if (typeExtension === void 0) typeExtension = null; |
4521 typeExtension = null; | |
4522 if (typeExtension == null) { | 4497 if (typeExtension == null) { |
4523 return this[_createElement_1](localName_OR_tagName); | 4498 return this[_createElement_1](localName_OR_tagName); |
4524 } | 4499 } |
4525 if (typeExtension != null) { | 4500 if (typeExtension != null) { |
4526 return this[_createElement_2](localName_OR_tagName, typeExtension); | 4501 return this[_createElement_2](localName_OR_tagName, typeExtension); |
4527 } | 4502 } |
4528 dart.throw(new core.ArgumentError("Incorrect number or type of arguments")
); | 4503 dart.throw(new core.ArgumentError("Incorrect number or type of arguments")
); |
4529 } | 4504 } |
4530 [_createElement_1](tagName) { | 4505 [_createElement_1](tagName) { |
4531 return dart.as(wrap_jso(this.raw.createElement(unwrap_jso(tagName))), Elem
ent); | 4506 return dart.as(wrap_jso(this.raw.createElement(unwrap_jso(tagName))), Elem
ent); |
4532 } | 4507 } |
4533 [_createElement_2](localName, typeExtension) { | 4508 [_createElement_2](localName, typeExtension) { |
4534 return dart.as(wrap_jso(this.raw.createElement(unwrap_jso(localName), unwr
ap_jso(typeExtension))), Element); | 4509 return dart.as(wrap_jso(this.raw.createElement(unwrap_jso(localName), unwr
ap_jso(typeExtension))), Element); |
4535 } | 4510 } |
4536 [_createElementNS](namespaceURI, qualifiedName, typeExtension) { | 4511 [_createElementNS](namespaceURI, qualifiedName, typeExtension) { |
4537 if (typeExtension === void 0) | 4512 if (typeExtension === void 0) typeExtension = null; |
4538 typeExtension = null; | |
4539 if (typeExtension == null) { | 4513 if (typeExtension == null) { |
4540 return this[_createElementNS_1](namespaceURI, qualifiedName); | 4514 return this[_createElementNS_1](namespaceURI, qualifiedName); |
4541 } | 4515 } |
4542 if (typeExtension != null) { | 4516 if (typeExtension != null) { |
4543 return this[_createElementNS_2](namespaceURI, qualifiedName, typeExtensi
on); | 4517 return this[_createElementNS_2](namespaceURI, qualifiedName, typeExtensi
on); |
4544 } | 4518 } |
4545 dart.throw(new core.ArgumentError("Incorrect number or type of arguments")
); | 4519 dart.throw(new core.ArgumentError("Incorrect number or type of arguments")
); |
4546 } | 4520 } |
4547 [_createElementNS_1](namespaceURI, qualifiedName) { | 4521 [_createElementNS_1](namespaceURI, qualifiedName) { |
4548 return dart.as(wrap_jso(this.raw.createElementNS(unwrap_jso(namespaceURI),
unwrap_jso(qualifiedName))), Element); | 4522 return dart.as(wrap_jso(this.raw.createElementNS(unwrap_jso(namespaceURI),
unwrap_jso(qualifiedName))), Element); |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4618 [_getElementsByName_1](elementName) { | 4592 [_getElementsByName_1](elementName) { |
4619 return dart.as(wrap_jso(this.raw.getElementsByName(unwrap_jso(elementName)
)), NodeList); | 4593 return dart.as(wrap_jso(this.raw.getElementsByName(unwrap_jso(elementName)
)), NodeList); |
4620 } | 4594 } |
4621 getElementsByTagName(localName) { | 4595 getElementsByTagName(localName) { |
4622 return this[_getElementsByTagName_1](localName); | 4596 return this[_getElementsByTagName_1](localName); |
4623 } | 4597 } |
4624 [_getElementsByTagName_1](localName) { | 4598 [_getElementsByTagName_1](localName) { |
4625 return dart.as(wrap_jso(this.raw.getElementsByTagName(unwrap_jso(localName
))), HtmlCollection); | 4599 return dart.as(wrap_jso(this.raw.getElementsByTagName(unwrap_jso(localName
))), HtmlCollection); |
4626 } | 4600 } |
4627 importNode(node, deep) { | 4601 importNode(node, deep) { |
4628 if (deep === void 0) | 4602 if (deep === void 0) deep = null; |
4629 deep = null; | |
4630 if (deep != null) { | 4603 if (deep != null) { |
4631 return this[_importNode_1](node, deep); | 4604 return this[_importNode_1](node, deep); |
4632 } | 4605 } |
4633 return this[_importNode_2](node); | 4606 return this[_importNode_2](node); |
4634 } | 4607 } |
4635 [_importNode_1](node, deep) { | 4608 [_importNode_1](node, deep) { |
4636 return dart.as(wrap_jso(this.raw.importNode(unwrap_jso(node), unwrap_jso(d
eep))), Node); | 4609 return dart.as(wrap_jso(this.raw.importNode(unwrap_jso(node), unwrap_jso(d
eep))), Node); |
4637 } | 4610 } |
4638 [_importNode_2](node) { | 4611 [_importNode_2](node) { |
4639 return dart.as(wrap_jso(this.raw.importNode(unwrap_jso(node))), Node); | 4612 return dart.as(wrap_jso(this.raw.importNode(unwrap_jso(node))), Node); |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4757 queryAll(relativeSelectors) { | 4730 queryAll(relativeSelectors) { |
4758 return this.querySelectorAll(relativeSelectors); | 4731 return this.querySelectorAll(relativeSelectors); |
4759 } | 4732 } |
4760 get supportsRegisterElement() { | 4733 get supportsRegisterElement() { |
4761 return true; | 4734 return true; |
4762 } | 4735 } |
4763 get supportsRegister() { | 4736 get supportsRegister() { |
4764 return this.supportsRegisterElement; | 4737 return this.supportsRegisterElement; |
4765 } | 4738 } |
4766 createElement(tagName, typeExtension) { | 4739 createElement(tagName, typeExtension) { |
4767 if (typeExtension === void 0) | 4740 if (typeExtension === void 0) typeExtension = null; |
4768 typeExtension = null; | |
4769 return this[_createElement](tagName, typeExtension); | 4741 return this[_createElement](tagName, typeExtension); |
4770 } | 4742 } |
4771 createElementNS(namespaceURI, qualifiedName, typeExtension) { | 4743 createElementNS(namespaceURI, qualifiedName, typeExtension) { |
4772 if (typeExtension === void 0) | 4744 if (typeExtension === void 0) typeExtension = null; |
4773 typeExtension = null; | |
4774 return this[_createElementNS](namespaceURI, qualifiedName, typeExtension); | 4745 return this[_createElementNS](namespaceURI, qualifiedName, typeExtension); |
4775 } | 4746 } |
4776 } | 4747 } |
4777 dart.defineNamedConstructor(Document, 'internal_'); | 4748 dart.defineNamedConstructor(Document, 'internal_'); |
4778 dart.setSignature(Document, { | 4749 dart.setSignature(Document, { |
4779 constructors: () => ({ | 4750 constructors: () => ({ |
4780 _: [Document, []], | 4751 _: [Document, []], |
4781 internal_: [Document, []] | 4752 internal_: [Document, []] |
4782 }), | 4753 }), |
4783 methods: () => ({ | 4754 methods: () => ({ |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5088 return dart.as(wrap_jso(this.raw.item(unwrap_jso(index))), core.String); | 5059 return dart.as(wrap_jso(this.raw.item(unwrap_jso(index))), core.String); |
5089 } | 5060 } |
5090 remove(tokens) { | 5061 remove(tokens) { |
5091 this[_remove_1](tokens); | 5062 this[_remove_1](tokens); |
5092 return; | 5063 return; |
5093 } | 5064 } |
5094 [_remove_1](tokens) { | 5065 [_remove_1](tokens) { |
5095 return wrap_jso(this.raw.remove(unwrap_jso(tokens))); | 5066 return wrap_jso(this.raw.remove(unwrap_jso(tokens))); |
5096 } | 5067 } |
5097 toggle(token, force) { | 5068 toggle(token, force) { |
5098 if (force === void 0) | 5069 if (force === void 0) force = null; |
5099 force = null; | |
5100 if (force != null) { | 5070 if (force != null) { |
5101 return this[_toggle_1](token, force); | 5071 return this[_toggle_1](token, force); |
5102 } | 5072 } |
5103 return this[_toggle_2](token); | 5073 return this[_toggle_2](token); |
5104 } | 5074 } |
5105 [_toggle_1](token, force) { | 5075 [_toggle_1](token, force) { |
5106 return dart.as(wrap_jso(this.raw.toggle(unwrap_jso(token), unwrap_jso(forc
e))), core.bool); | 5076 return dart.as(wrap_jso(this.raw.toggle(unwrap_jso(token), unwrap_jso(forc
e))), core.bool); |
5107 } | 5077 } |
5108 [_toggle_2](token) { | 5078 [_toggle_2](token) { |
5109 return dart.as(wrap_jso(this.raw.toggle(unwrap_jso(token))), core.bool); | 5079 return dart.as(wrap_jso(this.raw.toggle(unwrap_jso(token))), core.bool); |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5168 } | 5138 } |
5169 addAll(iterable) { | 5139 addAll(iterable) { |
5170 if (dart.is(iterable, _ChildNodeListLazy)) { | 5140 if (dart.is(iterable, _ChildNodeListLazy)) { |
5171 iterable = core.List$(Element).from(iterable); | 5141 iterable = core.List$(Element).from(iterable); |
5172 } | 5142 } |
5173 for (let element of iterable) { | 5143 for (let element of iterable) { |
5174 this[_element].append(element); | 5144 this[_element].append(element); |
5175 } | 5145 } |
5176 } | 5146 } |
5177 sort(compare) { | 5147 sort(compare) { |
5178 if (compare === void 0) | 5148 if (compare === void 0) compare = null; |
5179 compare = null; | |
5180 dart.throw(new core.UnsupportedError('Cannot sort element lists')); | 5149 dart.throw(new core.UnsupportedError('Cannot sort element lists')); |
5181 } | 5150 } |
5182 shuffle(random) { | 5151 shuffle(random) { |
5183 if (random === void 0) | 5152 if (random === void 0) random = null; |
5184 random = null; | |
5185 dart.throw(new core.UnsupportedError('Cannot shuffle element lists')); | 5153 dart.throw(new core.UnsupportedError('Cannot shuffle element lists')); |
5186 } | 5154 } |
5187 removeWhere(test) { | 5155 removeWhere(test) { |
5188 this[_filter](test, false); | 5156 this[_filter](test, false); |
5189 } | 5157 } |
5190 retainWhere(test) { | 5158 retainWhere(test) { |
5191 this[_filter](test, true); | 5159 this[_filter](test, true); |
5192 } | 5160 } |
5193 [_filter](test, retainMatching) { | 5161 [_filter](test, retainMatching) { |
5194 let removed = null; | 5162 let removed = null; |
5195 if (dart.notNull(retainMatching)) { | 5163 if (dart.notNull(retainMatching)) { |
5196 removed = this[_element].children[dartx.where](dart.fn(e => !dart.notNul
l(dart.dcall(test, e)), core.bool, [dart.dynamic])); | 5164 removed = this[_element].children[dartx.where](dart.fn(e => !dart.notNul
l(dart.dcall(test, e)), core.bool, [dart.dynamic])); |
5197 } else { | 5165 } else { |
5198 removed = this[_element].children[dartx.where](dart.as(test, __CastType0
)); | 5166 removed = this[_element].children[dartx.where](dart.as(test, __CastType0
)); |
5199 } | 5167 } |
5200 for (let e of dart.as(removed, core.Iterable)) | 5168 for (let e of dart.as(removed, core.Iterable)) |
5201 dart.dsend(e, 'remove'); | 5169 dart.dsend(e, 'remove'); |
5202 } | 5170 } |
5203 setRange(start, end, iterable, skipCount) { | 5171 setRange(start, end, iterable, skipCount) { |
5204 if (skipCount === void 0) | 5172 if (skipCount === void 0) skipCount = 0; |
5205 skipCount = 0; | |
5206 dart.throw(new core.UnimplementedError()); | 5173 dart.throw(new core.UnimplementedError()); |
5207 } | 5174 } |
5208 replaceRange(start, end, iterable) { | 5175 replaceRange(start, end, iterable) { |
5209 dart.throw(new core.UnimplementedError()); | 5176 dart.throw(new core.UnimplementedError()); |
5210 } | 5177 } |
5211 fillRange(start, end, fillValue) { | 5178 fillRange(start, end, fillValue) { |
5212 if (fillValue === void 0) | 5179 if (fillValue === void 0) fillValue = null; |
5213 fillValue = null; | |
5214 dart.throw(new core.UnimplementedError()); | 5180 dart.throw(new core.UnimplementedError()); |
5215 } | 5181 } |
5216 remove(object) { | 5182 remove(object) { |
5217 if (dart.is(object, Element)) { | 5183 if (dart.is(object, Element)) { |
5218 let element = object; | 5184 let element = object; |
5219 if (dart.equals(element.parentNode, this[_element])) { | 5185 if (dart.equals(element.parentNode, this[_element])) { |
5220 this[_element][_removeChild](element); | 5186 this[_element][_removeChild](element); |
5221 return true; | 5187 return true; |
5222 } | 5188 } |
5223 } | 5189 } |
(...skipping 24 matching lines...) Expand all Loading... |
5248 } | 5214 } |
5249 removeLast() { | 5215 removeLast() { |
5250 let result = this.last; | 5216 let result = this.last; |
5251 if (result != null) { | 5217 if (result != null) { |
5252 this[_element][_removeChild](result); | 5218 this[_element][_removeChild](result); |
5253 } | 5219 } |
5254 return result; | 5220 return result; |
5255 } | 5221 } |
5256 get first() { | 5222 get first() { |
5257 let result = this[_element][_firstElementChild]; | 5223 let result = this[_element][_firstElementChild]; |
5258 if (result == null) | 5224 if (result == null) dart.throw(new core.StateError("No elements")); |
5259 dart.throw(new core.StateError("No elements")); | |
5260 return result; | 5225 return result; |
5261 } | 5226 } |
5262 get last() { | 5227 get last() { |
5263 let result = this[_element][_lastElementChild]; | 5228 let result = this[_element][_lastElementChild]; |
5264 if (result == null) | 5229 if (result == null) dart.throw(new core.StateError("No elements")); |
5265 dart.throw(new core.StateError("No elements")); | |
5266 return result; | 5230 return result; |
5267 } | 5231 } |
5268 get single() { | 5232 get single() { |
5269 if (dart.notNull(this.length) > 1) | 5233 if (dart.notNull(this.length) > 1) dart.throw(new core.StateError("More th
an one element")); |
5270 dart.throw(new core.StateError("More than one element")); | |
5271 return this.first; | 5234 return this.first; |
5272 } | 5235 } |
5273 get rawList() { | 5236 get rawList() { |
5274 return this[_childElements]; | 5237 return this[_childElements]; |
5275 } | 5238 } |
5276 } | 5239 } |
5277 _ChildrenElementList[dart.implements] = () => [html_common.NodeListWrapper]; | 5240 _ChildrenElementList[dart.implements] = () => [html_common.NodeListWrapper]; |
5278 dart.defineNamedConstructor(_ChildrenElementList, '_wrap'); | 5241 dart.defineNamedConstructor(_ChildrenElementList, '_wrap'); |
5279 dart.setSignature(_ChildrenElementList, { | 5242 dart.setSignature(_ChildrenElementList, { |
5280 constructors: () => ({_wrap: [_ChildrenElementList, [Element]]}), | 5243 constructors: () => ({_wrap: [_ChildrenElementList, [Element]]}), |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5342 return dart.as(this[_nodeList][dartx.get](index), Element); | 5305 return dart.as(this[_nodeList][dartx.get](index), Element); |
5343 } | 5306 } |
5344 set(index, value) { | 5307 set(index, value) { |
5345 dart.throw(new core.UnsupportedError('Cannot modify list')); | 5308 dart.throw(new core.UnsupportedError('Cannot modify list')); |
5346 return value; | 5309 return value; |
5347 } | 5310 } |
5348 set length(newLength) { | 5311 set length(newLength) { |
5349 dart.throw(new core.UnsupportedError('Cannot modify list')); | 5312 dart.throw(new core.UnsupportedError('Cannot modify list')); |
5350 } | 5313 } |
5351 sort(compare) { | 5314 sort(compare) { |
5352 if (compare === void 0) | 5315 if (compare === void 0) compare = null; |
5353 compare = null; | |
5354 dart.throw(new core.UnsupportedError('Cannot sort list')); | 5316 dart.throw(new core.UnsupportedError('Cannot sort list')); |
5355 } | 5317 } |
5356 shuffle(random) { | 5318 shuffle(random) { |
5357 if (random === void 0) | 5319 if (random === void 0) random = null; |
5358 random = null; | |
5359 dart.throw(new core.UnsupportedError('Cannot shuffle list')); | 5320 dart.throw(new core.UnsupportedError('Cannot shuffle list')); |
5360 } | 5321 } |
5361 get first() { | 5322 get first() { |
5362 return dart.as(this[_nodeList][dartx.first], Element); | 5323 return dart.as(this[_nodeList][dartx.first], Element); |
5363 } | 5324 } |
5364 get last() { | 5325 get last() { |
5365 return dart.as(this[_nodeList][dartx.last], Element); | 5326 return dart.as(this[_nodeList][dartx.last], Element); |
5366 } | 5327 } |
5367 get single() { | 5328 get single() { |
5368 return dart.as(this[_nodeList][dartx.single], Element); | 5329 return dart.as(this[_nodeList][dartx.single], Element); |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5596 return wrap_jso(this.raw.forward()); | 5557 return wrap_jso(this.raw.forward()); |
5597 } | 5558 } |
5598 go(distance) { | 5559 go(distance) { |
5599 this[_go_1](distance); | 5560 this[_go_1](distance); |
5600 return; | 5561 return; |
5601 } | 5562 } |
5602 [_go_1](distance) { | 5563 [_go_1](distance) { |
5603 return wrap_jso(this.raw.go(unwrap_jso(distance))); | 5564 return wrap_jso(this.raw.go(unwrap_jso(distance))); |
5604 } | 5565 } |
5605 pushState(data, title, url) { | 5566 pushState(data, title, url) { |
5606 if (url === void 0) | 5567 if (url === void 0) url = null; |
5607 url = null; | |
5608 if (url != null) { | 5568 if (url != null) { |
5609 let data_1 = html_common.convertDartToNative_SerializedScriptValue(data)
; | 5569 let data_1 = html_common.convertDartToNative_SerializedScriptValue(data)
; |
5610 this[_pushState_1](data_1, title, url); | 5570 this[_pushState_1](data_1, title, url); |
5611 return; | 5571 return; |
5612 } | 5572 } |
5613 let data_1 = html_common.convertDartToNative_SerializedScriptValue(data); | 5573 let data_1 = html_common.convertDartToNative_SerializedScriptValue(data); |
5614 this[_pushState_2](data_1, title); | 5574 this[_pushState_2](data_1, title); |
5615 return; | 5575 return; |
5616 } | 5576 } |
5617 [_pushState_1](data, title, url) { | 5577 [_pushState_1](data, title, url) { |
5618 return wrap_jso(this.raw.pushState(unwrap_jso(data), unwrap_jso(title), un
wrap_jso(url))); | 5578 return wrap_jso(this.raw.pushState(unwrap_jso(data), unwrap_jso(title), un
wrap_jso(url))); |
5619 } | 5579 } |
5620 [_pushState_2](data, title) { | 5580 [_pushState_2](data, title) { |
5621 return wrap_jso(this.raw.pushState(unwrap_jso(data), unwrap_jso(title))); | 5581 return wrap_jso(this.raw.pushState(unwrap_jso(data), unwrap_jso(title))); |
5622 } | 5582 } |
5623 replaceState(data, title, url) { | 5583 replaceState(data, title, url) { |
5624 if (url === void 0) | 5584 if (url === void 0) url = null; |
5625 url = null; | |
5626 if (url != null) { | 5585 if (url != null) { |
5627 let data_1 = html_common.convertDartToNative_SerializedScriptValue(data)
; | 5586 let data_1 = html_common.convertDartToNative_SerializedScriptValue(data)
; |
5628 this[_replaceState_1](data_1, title, url); | 5587 this[_replaceState_1](data_1, title, url); |
5629 return; | 5588 return; |
5630 } | 5589 } |
5631 let data_1 = html_common.convertDartToNative_SerializedScriptValue(data); | 5590 let data_1 = html_common.convertDartToNative_SerializedScriptValue(data); |
5632 this[_replaceState_2](data_1, title); | 5591 this[_replaceState_2](data_1, title); |
5633 return; | 5592 return; |
5634 } | 5593 } |
5635 [_replaceState_1](data, title, url) { | 5594 [_replaceState_1](data, title, url) { |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5674 } | 5633 } |
5675 add(value) { | 5634 add(value) { |
5676 dart.as(value, E); | 5635 dart.as(value, E); |
5677 dart.throw(new core.UnsupportedError("Cannot add to immutable List.")); | 5636 dart.throw(new core.UnsupportedError("Cannot add to immutable List.")); |
5678 } | 5637 } |
5679 addAll(iterable) { | 5638 addAll(iterable) { |
5680 dart.as(iterable, core.Iterable$(E)); | 5639 dart.as(iterable, core.Iterable$(E)); |
5681 dart.throw(new core.UnsupportedError("Cannot add to immutable List.")); | 5640 dart.throw(new core.UnsupportedError("Cannot add to immutable List.")); |
5682 } | 5641 } |
5683 sort(compare) { | 5642 sort(compare) { |
5684 if (compare === void 0) | 5643 if (compare === void 0) compare = null; |
5685 compare = null; | |
5686 dart.as(compare, dart.functionType(core.int, [E, E])); | 5644 dart.as(compare, dart.functionType(core.int, [E, E])); |
5687 dart.throw(new core.UnsupportedError("Cannot sort immutable List.")); | 5645 dart.throw(new core.UnsupportedError("Cannot sort immutable List.")); |
5688 } | 5646 } |
5689 shuffle(random) { | 5647 shuffle(random) { |
5690 if (random === void 0) | 5648 if (random === void 0) random = null; |
5691 random = null; | |
5692 dart.throw(new core.UnsupportedError("Cannot shuffle immutable List.")); | 5649 dart.throw(new core.UnsupportedError("Cannot shuffle immutable List.")); |
5693 } | 5650 } |
5694 insert(index, element) { | 5651 insert(index, element) { |
5695 dart.as(element, E); | 5652 dart.as(element, E); |
5696 dart.throw(new core.UnsupportedError("Cannot add to immutable List.")); | 5653 dart.throw(new core.UnsupportedError("Cannot add to immutable List.")); |
5697 } | 5654 } |
5698 insertAll(index, iterable) { | 5655 insertAll(index, iterable) { |
5699 dart.as(iterable, core.Iterable$(E)); | 5656 dart.as(iterable, core.Iterable$(E)); |
5700 dart.throw(new core.UnsupportedError("Cannot add to immutable List.")); | 5657 dart.throw(new core.UnsupportedError("Cannot add to immutable List.")); |
5701 } | 5658 } |
(...skipping 13 matching lines...) Expand all Loading... |
5715 removeWhere(test) { | 5672 removeWhere(test) { |
5716 dart.as(test, dart.functionType(core.bool, [E])); | 5673 dart.as(test, dart.functionType(core.bool, [E])); |
5717 dart.throw(new core.UnsupportedError("Cannot remove from immutable List.
")); | 5674 dart.throw(new core.UnsupportedError("Cannot remove from immutable List.
")); |
5718 } | 5675 } |
5719 retainWhere(test) { | 5676 retainWhere(test) { |
5720 dart.as(test, dart.functionType(core.bool, [E])); | 5677 dart.as(test, dart.functionType(core.bool, [E])); |
5721 dart.throw(new core.UnsupportedError("Cannot remove from immutable List.
")); | 5678 dart.throw(new core.UnsupportedError("Cannot remove from immutable List.
")); |
5722 } | 5679 } |
5723 setRange(start, end, iterable, skipCount) { | 5680 setRange(start, end, iterable, skipCount) { |
5724 dart.as(iterable, core.Iterable$(E)); | 5681 dart.as(iterable, core.Iterable$(E)); |
5725 if (skipCount === void 0) | 5682 if (skipCount === void 0) skipCount = 0; |
5726 skipCount = 0; | |
5727 dart.throw(new core.UnsupportedError("Cannot setRange on immutable List.
")); | 5683 dart.throw(new core.UnsupportedError("Cannot setRange on immutable List.
")); |
5728 } | 5684 } |
5729 removeRange(start, end) { | 5685 removeRange(start, end) { |
5730 dart.throw(new core.UnsupportedError("Cannot removeRange on immutable Li
st.")); | 5686 dart.throw(new core.UnsupportedError("Cannot removeRange on immutable Li
st.")); |
5731 } | 5687 } |
5732 replaceRange(start, end, iterable) { | 5688 replaceRange(start, end, iterable) { |
5733 dart.as(iterable, core.Iterable$(E)); | 5689 dart.as(iterable, core.Iterable$(E)); |
5734 dart.throw(new core.UnsupportedError("Cannot modify an immutable List.")
); | 5690 dart.throw(new core.UnsupportedError("Cannot modify an immutable List.")
); |
5735 } | 5691 } |
5736 fillRange(start, end, fillValue) { | 5692 fillRange(start, end, fillValue) { |
5737 if (fillValue === void 0) | 5693 if (fillValue === void 0) fillValue = null; |
5738 fillValue = null; | |
5739 dart.as(fillValue, E); | 5694 dart.as(fillValue, E); |
5740 dart.throw(new core.UnsupportedError("Cannot modify an immutable List.")
); | 5695 dart.throw(new core.UnsupportedError("Cannot modify an immutable List.")
); |
5741 } | 5696 } |
5742 } | 5697 } |
5743 ImmutableListMixin[dart.implements] = () => [core.List$(E)]; | 5698 ImmutableListMixin[dart.implements] = () => [core.List$(E)]; |
5744 dart.setSignature(ImmutableListMixin, { | 5699 dart.setSignature(ImmutableListMixin, { |
5745 methods: () => ({ | 5700 methods: () => ({ |
5746 add: [dart.void, [E]], | 5701 add: [dart.void, [E]], |
5747 addAll: [dart.void, [core.Iterable$(E)]], | 5702 addAll: [dart.void, [core.Iterable$(E)]], |
5748 sort: [dart.void, [], [dart.functionType(core.int, [E, E])]], | 5703 sort: [dart.void, [], [dart.functionType(core.int, [E, E])]], |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5797 ['=='](other) { | 5752 ['=='](other) { |
5798 return dart.equals(unwrap_jso(other), unwrap_jso(this)) || dart.notNull(co
re.identical(this, other)); | 5753 return dart.equals(unwrap_jso(other), unwrap_jso(this)) || dart.notNull(co
re.identical(this, other)); |
5799 } | 5754 } |
5800 get hashCode() { | 5755 get hashCode() { |
5801 return dart.hashCode(unwrap_jso(this)); | 5756 return dart.hashCode(unwrap_jso(this)); |
5802 } | 5757 } |
5803 get length() { | 5758 get length() { |
5804 return dart.as(wrap_jso(this.raw.length), core.int); | 5759 return dart.as(wrap_jso(this.raw.length), core.int); |
5805 } | 5760 } |
5806 get(index) { | 5761 get(index) { |
5807 if (index >>> 0 !== index || index >= this.length) | 5762 if (index >>> 0 !== index || index >= this.length) dart.throw(core.RangeEr
ror.index(index, this)); |
5808 dart.throw(core.RangeError.index(index, this)); | |
5809 return dart.as(wrap_jso(this.raw[index]), Node); | 5763 return dart.as(wrap_jso(this.raw[index]), Node); |
5810 } | 5764 } |
5811 set(index, value) { | 5765 set(index, value) { |
5812 dart.throw(new core.UnsupportedError("Cannot assign element of immutable L
ist.")); | 5766 dart.throw(new core.UnsupportedError("Cannot assign element of immutable L
ist.")); |
5813 return value; | 5767 return value; |
5814 } | 5768 } |
5815 set length(value) { | 5769 set length(value) { |
5816 dart.throw(new core.UnsupportedError("Cannot resize immutable List.")); | 5770 dart.throw(new core.UnsupportedError("Cannot resize immutable List.")); |
5817 } | 5771 } |
5818 get first() { | 5772 get first() { |
5819 if (dart.notNull(this.length) > 0) { | 5773 if (dart.notNull(this.length) > 0) { |
5820 return dart.as(wrap_jso(this.raw[0]), Node); | 5774 return dart.as(wrap_jso(this.raw[0]), Node); |
5821 } | 5775 } |
5822 dart.throw(new core.StateError("No elements")); | 5776 dart.throw(new core.StateError("No elements")); |
5823 } | 5777 } |
5824 get last() { | 5778 get last() { |
5825 let len = this.length; | 5779 let len = this.length; |
5826 if (dart.notNull(len) > 0) { | 5780 if (dart.notNull(len) > 0) { |
5827 return dart.as(wrap_jso(this.raw[dart.notNull(len) - 1]), Node); | 5781 return dart.as(wrap_jso(this.raw[dart.notNull(len) - 1]), Node); |
5828 } | 5782 } |
5829 dart.throw(new core.StateError("No elements")); | 5783 dart.throw(new core.StateError("No elements")); |
5830 } | 5784 } |
5831 get single() { | 5785 get single() { |
5832 let len = this.length; | 5786 let len = this.length; |
5833 if (len == 1) { | 5787 if (len == 1) { |
5834 return dart.as(wrap_jso(this.raw[0]), Node); | 5788 return dart.as(wrap_jso(this.raw[0]), Node); |
5835 } | 5789 } |
5836 if (len == 0) | 5790 if (len == 0) dart.throw(new core.StateError("No elements")); |
5837 dart.throw(new core.StateError("No elements")); | |
5838 dart.throw(new core.StateError("More than one element")); | 5791 dart.throw(new core.StateError("More than one element")); |
5839 } | 5792 } |
5840 elementAt(index) { | 5793 elementAt(index) { |
5841 return this.get(index); | 5794 return this.get(index); |
5842 } | 5795 } |
5843 item(index) { | 5796 item(index) { |
5844 return this[_item_1](index); | 5797 return this[_item_1](index); |
5845 } | 5798 } |
5846 [_item_1](index) { | 5799 [_item_1](index) { |
5847 return dart.as(wrap_jso(this.raw.item(unwrap_jso(index))), Element); | 5800 return dart.as(wrap_jso(this.raw.item(unwrap_jso(index))), Element); |
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6284 return dart.as(wrap_jso(this.raw.getResponseHeader(unwrap_jso(header))), c
ore.String); | 6237 return dart.as(wrap_jso(this.raw.getResponseHeader(unwrap_jso(header))), c
ore.String); |
6285 } | 6238 } |
6286 overrideMimeType(override) { | 6239 overrideMimeType(override) { |
6287 this[_overrideMimeType_1](override); | 6240 this[_overrideMimeType_1](override); |
6288 return; | 6241 return; |
6289 } | 6242 } |
6290 [_overrideMimeType_1](override) { | 6243 [_overrideMimeType_1](override) { |
6291 return wrap_jso(this.raw.overrideMimeType(unwrap_jso(override))); | 6244 return wrap_jso(this.raw.overrideMimeType(unwrap_jso(override))); |
6292 } | 6245 } |
6293 send(data) { | 6246 send(data) { |
6294 if (data === void 0) | 6247 if (data === void 0) data = null; |
6295 data = null; | |
6296 if (data == null) { | 6248 if (data == null) { |
6297 this[_send_1](); | 6249 this[_send_1](); |
6298 return; | 6250 return; |
6299 } | 6251 } |
6300 if (dart.is(data, Document) || data == null) { | 6252 if (dart.is(data, Document) || data == null) { |
6301 this[_send_2](dart.as(data, Document)); | 6253 this[_send_2](dart.as(data, Document)); |
6302 return; | 6254 return; |
6303 } | 6255 } |
6304 if (typeof data == 'string' || data == null) { | 6256 if (typeof data == 'string' || data == null) { |
6305 this[_send_3](dart.as(data, core.String)); | 6257 this[_send_3](dart.as(data, core.String)); |
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6743 [_setRangeText_1](replacement) { | 6695 [_setRangeText_1](replacement) { |
6744 return wrap_jso(this.raw.setRangeText(unwrap_jso(replacement))); | 6696 return wrap_jso(this.raw.setRangeText(unwrap_jso(replacement))); |
6745 } | 6697 } |
6746 [_setRangeText_2](replacement, start, end) { | 6698 [_setRangeText_2](replacement, start, end) { |
6747 return wrap_jso(this.raw.setRangeText(unwrap_jso(replacement), unwrap_jso(
start), unwrap_jso(end))); | 6699 return wrap_jso(this.raw.setRangeText(unwrap_jso(replacement), unwrap_jso(
start), unwrap_jso(end))); |
6748 } | 6700 } |
6749 [_setRangeText_3](replacement, start, end, selectionMode) { | 6701 [_setRangeText_3](replacement, start, end, selectionMode) { |
6750 return wrap_jso(this.raw.setRangeText(unwrap_jso(replacement), unwrap_jso(
start), unwrap_jso(end), unwrap_jso(selectionMode))); | 6702 return wrap_jso(this.raw.setRangeText(unwrap_jso(replacement), unwrap_jso(
start), unwrap_jso(end), unwrap_jso(selectionMode))); |
6751 } | 6703 } |
6752 setSelectionRange(start, end, direction) { | 6704 setSelectionRange(start, end, direction) { |
6753 if (direction === void 0) | 6705 if (direction === void 0) direction = null; |
6754 direction = null; | |
6755 if (direction != null) { | 6706 if (direction != null) { |
6756 this[_setSelectionRange_1](start, end, direction); | 6707 this[_setSelectionRange_1](start, end, direction); |
6757 return; | 6708 return; |
6758 } | 6709 } |
6759 this[_setSelectionRange_2](start, end); | 6710 this[_setSelectionRange_2](start, end); |
6760 return; | 6711 return; |
6761 } | 6712 } |
6762 [_setSelectionRange_1](start, end, direction) { | 6713 [_setSelectionRange_1](start, end, direction) { |
6763 return wrap_jso(this.raw.setSelectionRange(unwrap_jso(start), unwrap_jso(e
nd), unwrap_jso(direction))); | 6714 return wrap_jso(this.raw.setSelectionRange(unwrap_jso(start), unwrap_jso(e
nd), unwrap_jso(direction))); |
6764 } | 6715 } |
6765 [_setSelectionRange_2](start, end) { | 6716 [_setSelectionRange_2](start, end) { |
6766 return wrap_jso(this.raw.setSelectionRange(unwrap_jso(start), unwrap_jso(e
nd))); | 6717 return wrap_jso(this.raw.setSelectionRange(unwrap_jso(start), unwrap_jso(e
nd))); |
6767 } | 6718 } |
6768 stepDown(n) { | 6719 stepDown(n) { |
6769 if (n === void 0) | 6720 if (n === void 0) n = null; |
6770 n = null; | |
6771 if (n != null) { | 6721 if (n != null) { |
6772 this[_stepDown_1](n); | 6722 this[_stepDown_1](n); |
6773 return; | 6723 return; |
6774 } | 6724 } |
6775 this[_stepDown_2](); | 6725 this[_stepDown_2](); |
6776 return; | 6726 return; |
6777 } | 6727 } |
6778 [_stepDown_1](n) { | 6728 [_stepDown_1](n) { |
6779 return wrap_jso(this.raw.stepDown(unwrap_jso(n))); | 6729 return wrap_jso(this.raw.stepDown(unwrap_jso(n))); |
6780 } | 6730 } |
6781 [_stepDown_2]() { | 6731 [_stepDown_2]() { |
6782 return wrap_jso(this.raw.stepDown()); | 6732 return wrap_jso(this.raw.stepDown()); |
6783 } | 6733 } |
6784 stepUp(n) { | 6734 stepUp(n) { |
6785 if (n === void 0) | 6735 if (n === void 0) n = null; |
6786 n = null; | |
6787 if (n != null) { | 6736 if (n != null) { |
6788 this[_stepUp_1](n); | 6737 this[_stepUp_1](n); |
6789 return; | 6738 return; |
6790 } | 6739 } |
6791 this[_stepUp_2](); | 6740 this[_stepUp_2](); |
6792 return; | 6741 return; |
6793 } | 6742 } |
6794 [_stepUp_1](n) { | 6743 [_stepUp_1](n) { |
6795 return wrap_jso(this.raw.stepUp(unwrap_jso(n))); | 6744 return wrap_jso(this.raw.stepUp(unwrap_jso(n))); |
6796 } | 6745 } |
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7344 set protocol(val) { | 7293 set protocol(val) { |
7345 return this.raw.protocol = unwrap_jso(val); | 7294 return this.raw.protocol = unwrap_jso(val); |
7346 } | 7295 } |
7347 get search() { | 7296 get search() { |
7348 return dart.as(wrap_jso(this.raw.search), core.String); | 7297 return dart.as(wrap_jso(this.raw.search), core.String); |
7349 } | 7298 } |
7350 set search(val) { | 7299 set search(val) { |
7351 return this.raw.search = unwrap_jso(val); | 7300 return this.raw.search = unwrap_jso(val); |
7352 } | 7301 } |
7353 assign(url) { | 7302 assign(url) { |
7354 if (url === void 0) | 7303 if (url === void 0) url = null; |
7355 url = null; | |
7356 if (url != null) { | 7304 if (url != null) { |
7357 this[_assign_1](url); | 7305 this[_assign_1](url); |
7358 return; | 7306 return; |
7359 } | 7307 } |
7360 this[_assign_2](); | 7308 this[_assign_2](); |
7361 return; | 7309 return; |
7362 } | 7310 } |
7363 [_assign_1](url) { | 7311 [_assign_1](url) { |
7364 return wrap_jso(this.raw.assign(unwrap_jso(url))); | 7312 return wrap_jso(this.raw.assign(unwrap_jso(url))); |
7365 } | 7313 } |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7599 dart.setSignature(NavigatorCpu, { | 7547 dart.setSignature(NavigatorCpu, { |
7600 constructors: () => ({_: [NavigatorCpu, []]}) | 7548 constructors: () => ({_: [NavigatorCpu, []]}) |
7601 }); | 7549 }); |
7602 NavigatorCpu[dart.metadata] = () => [dart.const(new _metadata.DocsEditable()),
dart.const(new _metadata.DomName('NavigatorCPU')), dart.const(new _metadata.Exp
erimental())]; | 7550 NavigatorCpu[dart.metadata] = () => [dart.const(new _metadata.DocsEditable()),
dart.const(new _metadata.DomName('NavigatorCPU')), dart.const(new _metadata.Exp
erimental())]; |
7603 class _ChildNodeListLazy extends collection.ListBase$(Node) { | 7551 class _ChildNodeListLazy extends collection.ListBase$(Node) { |
7604 _ChildNodeListLazy(this$) { | 7552 _ChildNodeListLazy(this$) { |
7605 this[_this] = this$; | 7553 this[_this] = this$; |
7606 } | 7554 } |
7607 get first() { | 7555 get first() { |
7608 let result = this[_this].firstChild; | 7556 let result = this[_this].firstChild; |
7609 if (result == null) | 7557 if (result == null) dart.throw(new core.StateError("No elements")); |
7610 dart.throw(new core.StateError("No elements")); | |
7611 return result; | 7558 return result; |
7612 } | 7559 } |
7613 get last() { | 7560 get last() { |
7614 let result = this[_this].lastChild; | 7561 let result = this[_this].lastChild; |
7615 if (result == null) | 7562 if (result == null) dart.throw(new core.StateError("No elements")); |
7616 dart.throw(new core.StateError("No elements")); | |
7617 return result; | 7563 return result; |
7618 } | 7564 } |
7619 get single() { | 7565 get single() { |
7620 let l = this.length; | 7566 let l = this.length; |
7621 if (l == 0) | 7567 if (l == 0) dart.throw(new core.StateError("No elements")); |
7622 dart.throw(new core.StateError("No elements")); | 7568 if (dart.notNull(l) > 1) dart.throw(new core.StateError("More than one ele
ment")); |
7623 if (dart.notNull(l) > 1) | |
7624 dart.throw(new core.StateError("More than one element")); | |
7625 return this[_this].firstChild; | 7569 return this[_this].firstChild; |
7626 } | 7570 } |
7627 add(value) { | 7571 add(value) { |
7628 this[_this].append(value); | 7572 this[_this].append(value); |
7629 } | 7573 } |
7630 addAll(iterable) { | 7574 addAll(iterable) { |
7631 if (dart.is(iterable, _ChildNodeListLazy)) { | 7575 if (dart.is(iterable, _ChildNodeListLazy)) { |
7632 let otherList = iterable; | 7576 let otherList = iterable; |
7633 if (!dart.notNull(core.identical(otherList[_this], this[_this]))) { | 7577 if (!dart.notNull(core.identical(otherList[_this], this[_this]))) { |
7634 for (let i = 0, len = otherList.length; dart.notNull(i) < dart.notNull
(len); i = dart.notNull(i) + 1) { | 7578 for (let i = 0, len = otherList.length; dart.notNull(i) < dart.notNull
(len); i = dart.notNull(i) + 1) { |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7670 return result; | 7614 return result; |
7671 } | 7615 } |
7672 removeAt(index) { | 7616 removeAt(index) { |
7673 let result = this.get(index); | 7617 let result = this.get(index); |
7674 if (result != null) { | 7618 if (result != null) { |
7675 this[_this][_removeChild](result); | 7619 this[_this][_removeChild](result); |
7676 } | 7620 } |
7677 return result; | 7621 return result; |
7678 } | 7622 } |
7679 remove(object) { | 7623 remove(object) { |
7680 if (!dart.is(object, Node)) | 7624 if (!dart.is(object, Node)) return false; |
7681 return false; | |
7682 let node = dart.as(object, Node); | 7625 let node = dart.as(object, Node); |
7683 if (!dart.equals(this[_this], node.parentNode)) | 7626 if (!dart.equals(this[_this], node.parentNode)) return false; |
7684 return false; | |
7685 this[_this][_removeChild](node); | 7627 this[_this][_removeChild](node); |
7686 return true; | 7628 return true; |
7687 } | 7629 } |
7688 [_filter](test, removeMatching) { | 7630 [_filter](test, removeMatching) { |
7689 let child = this[_this].firstChild; | 7631 let child = this[_this].firstChild; |
7690 while (child != null) { | 7632 while (child != null) { |
7691 let nextChild = child.nextNode; | 7633 let nextChild = child.nextNode; |
7692 if (test(child) == removeMatching) { | 7634 if (test(child) == removeMatching) { |
7693 this[_this][_removeChild](child); | 7635 this[_this][_removeChild](child); |
7694 } | 7636 } |
(...skipping 10 matching lines...) Expand all Loading... |
7705 this[_this][_clearChildren](); | 7647 this[_this][_clearChildren](); |
7706 } | 7648 } |
7707 set(index, value) { | 7649 set(index, value) { |
7708 this[_this][_replaceChild](value, this.get(index)); | 7650 this[_this][_replaceChild](value, this.get(index)); |
7709 return value; | 7651 return value; |
7710 } | 7652 } |
7711 get iterator() { | 7653 get iterator() { |
7712 return this[_this].childNodes[dartx.iterator]; | 7654 return this[_this].childNodes[dartx.iterator]; |
7713 } | 7655 } |
7714 sort(compare) { | 7656 sort(compare) { |
7715 if (compare === void 0) | 7657 if (compare === void 0) compare = null; |
7716 compare = null; | |
7717 dart.throw(new core.UnsupportedError("Cannot sort Node list")); | 7658 dart.throw(new core.UnsupportedError("Cannot sort Node list")); |
7718 } | 7659 } |
7719 shuffle(random) { | 7660 shuffle(random) { |
7720 if (random === void 0) | 7661 if (random === void 0) random = null; |
7721 random = null; | |
7722 dart.throw(new core.UnsupportedError("Cannot shuffle Node list")); | 7662 dart.throw(new core.UnsupportedError("Cannot shuffle Node list")); |
7723 } | 7663 } |
7724 setRange(start, end, iterable, skipCount) { | 7664 setRange(start, end, iterable, skipCount) { |
7725 if (skipCount === void 0) | 7665 if (skipCount === void 0) skipCount = 0; |
7726 skipCount = 0; | |
7727 dart.throw(new core.UnsupportedError("Cannot setRange on Node list")); | 7666 dart.throw(new core.UnsupportedError("Cannot setRange on Node list")); |
7728 } | 7667 } |
7729 fillRange(start, end, fill) { | 7668 fillRange(start, end, fill) { |
7730 if (fill === void 0) | 7669 if (fill === void 0) fill = null; |
7731 fill = null; | |
7732 dart.throw(new core.UnsupportedError("Cannot fillRange on Node list")); | 7670 dart.throw(new core.UnsupportedError("Cannot fillRange on Node list")); |
7733 } | 7671 } |
7734 get length() { | 7672 get length() { |
7735 return this[_this].childNodes[dartx.length]; | 7673 return this[_this].childNodes[dartx.length]; |
7736 } | 7674 } |
7737 set length(value) { | 7675 set length(value) { |
7738 dart.throw(new core.UnsupportedError("Cannot set length on immutable List.
")); | 7676 dart.throw(new core.UnsupportedError("Cannot set length on immutable List.
")); |
7739 } | 7677 } |
7740 get(index) { | 7678 get(index) { |
7741 return this[_this].childNodes[dartx.get](index); | 7679 return this[_this].childNodes[dartx.get](index); |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7816 ['=='](other) { | 7754 ['=='](other) { |
7817 return dart.equals(unwrap_jso(other), unwrap_jso(this)) || dart.notNull(co
re.identical(this, other)); | 7755 return dart.equals(unwrap_jso(other), unwrap_jso(this)) || dart.notNull(co
re.identical(this, other)); |
7818 } | 7756 } |
7819 get hashCode() { | 7757 get hashCode() { |
7820 return dart.hashCode(unwrap_jso(this)); | 7758 return dart.hashCode(unwrap_jso(this)); |
7821 } | 7759 } |
7822 get length() { | 7760 get length() { |
7823 return dart.as(wrap_jso(this.raw.length), core.int); | 7761 return dart.as(wrap_jso(this.raw.length), core.int); |
7824 } | 7762 } |
7825 get(index) { | 7763 get(index) { |
7826 if (index >>> 0 !== index || index >= this.length) | 7764 if (index >>> 0 !== index || index >= this.length) dart.throw(core.RangeEr
ror.index(index, this)); |
7827 dart.throw(core.RangeError.index(index, this)); | |
7828 return dart.as(wrap_jso(this.raw[index]), Node); | 7765 return dart.as(wrap_jso(this.raw[index]), Node); |
7829 } | 7766 } |
7830 set(index, value) { | 7767 set(index, value) { |
7831 dart.throw(new core.UnsupportedError("Cannot assign element of immutable L
ist.")); | 7768 dart.throw(new core.UnsupportedError("Cannot assign element of immutable L
ist.")); |
7832 return value; | 7769 return value; |
7833 } | 7770 } |
7834 set length(value) { | 7771 set length(value) { |
7835 dart.throw(new core.UnsupportedError("Cannot resize immutable List.")); | 7772 dart.throw(new core.UnsupportedError("Cannot resize immutable List.")); |
7836 } | 7773 } |
7837 get first() { | 7774 get first() { |
7838 if (dart.notNull(this.length) > 0) { | 7775 if (dart.notNull(this.length) > 0) { |
7839 return dart.as(wrap_jso(this.raw[0]), Node); | 7776 return dart.as(wrap_jso(this.raw[0]), Node); |
7840 } | 7777 } |
7841 dart.throw(new core.StateError("No elements")); | 7778 dart.throw(new core.StateError("No elements")); |
7842 } | 7779 } |
7843 get last() { | 7780 get last() { |
7844 let len = this.length; | 7781 let len = this.length; |
7845 if (dart.notNull(len) > 0) { | 7782 if (dart.notNull(len) > 0) { |
7846 return dart.as(wrap_jso(this.raw[dart.notNull(len) - 1]), Node); | 7783 return dart.as(wrap_jso(this.raw[dart.notNull(len) - 1]), Node); |
7847 } | 7784 } |
7848 dart.throw(new core.StateError("No elements")); | 7785 dart.throw(new core.StateError("No elements")); |
7849 } | 7786 } |
7850 get single() { | 7787 get single() { |
7851 let len = this.length; | 7788 let len = this.length; |
7852 if (len == 1) { | 7789 if (len == 1) { |
7853 return dart.as(wrap_jso(this.raw[0]), Node); | 7790 return dart.as(wrap_jso(this.raw[0]), Node); |
7854 } | 7791 } |
7855 if (len == 0) | 7792 if (len == 0) dart.throw(new core.StateError("No elements")); |
7856 dart.throw(new core.StateError("No elements")); | |
7857 dart.throw(new core.StateError("More than one element")); | 7793 dart.throw(new core.StateError("More than one element")); |
7858 } | 7794 } |
7859 elementAt(index) { | 7795 elementAt(index) { |
7860 return this.get(index); | 7796 return this.get(index); |
7861 } | 7797 } |
7862 [_item](index) { | 7798 [_item](index) { |
7863 return this[_item_1](index); | 7799 return this[_item_1](index); |
7864 } | 7800 } |
7865 [_item_1](index) { | 7801 [_item_1](index) { |
7866 return dart.as(wrap_jso(this.raw.item(unwrap_jso(index))), Node); | 7802 return dart.as(wrap_jso(this.raw.item(unwrap_jso(index))), Node); |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7993 [_cloneContents_1]() { | 7929 [_cloneContents_1]() { |
7994 return dart.as(wrap_jso(this.raw.cloneContents()), DocumentFragment); | 7930 return dart.as(wrap_jso(this.raw.cloneContents()), DocumentFragment); |
7995 } | 7931 } |
7996 cloneRange() { | 7932 cloneRange() { |
7997 return this[_cloneRange_1](); | 7933 return this[_cloneRange_1](); |
7998 } | 7934 } |
7999 [_cloneRange_1]() { | 7935 [_cloneRange_1]() { |
8000 return dart.as(wrap_jso(this.raw.cloneRange()), Range); | 7936 return dart.as(wrap_jso(this.raw.cloneRange()), Range); |
8001 } | 7937 } |
8002 collapse(toStart) { | 7938 collapse(toStart) { |
8003 if (toStart === void 0) | 7939 if (toStart === void 0) toStart = null; |
8004 toStart = null; | |
8005 if (toStart != null) { | 7940 if (toStart != null) { |
8006 this[_collapse_1](toStart); | 7941 this[_collapse_1](toStart); |
8007 return; | 7942 return; |
8008 } | 7943 } |
8009 this[_collapse_2](); | 7944 this[_collapse_2](); |
8010 return; | 7945 return; |
8011 } | 7946 } |
8012 [_collapse_1](toStart) { | 7947 [_collapse_1](toStart) { |
8013 return wrap_jso(this.raw.collapse(unwrap_jso(toStart))); | 7948 return wrap_jso(this.raw.collapse(unwrap_jso(toStart))); |
8014 } | 7949 } |
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8563 get document() { | 8498 get document() { |
8564 return dart.as(wrap_jso(this.raw.document), Document); | 8499 return dart.as(wrap_jso(this.raw.document), Document); |
8565 } | 8500 } |
8566 [_open2](url, name) { | 8501 [_open2](url, name) { |
8567 return dart.as(wrap_jso(this.raw.open(url, name)), WindowBase); | 8502 return dart.as(wrap_jso(this.raw.open(url, name)), WindowBase); |
8568 } | 8503 } |
8569 [_open3](url, name, options) { | 8504 [_open3](url, name, options) { |
8570 return dart.as(wrap_jso(this.raw.open(url, name, options)), WindowBase); | 8505 return dart.as(wrap_jso(this.raw.open(url, name, options)), WindowBase); |
8571 } | 8506 } |
8572 open(url, name, options) { | 8507 open(url, name, options) { |
8573 if (options === void 0) | 8508 if (options === void 0) options = null; |
8574 options = null; | |
8575 if (options == null) { | 8509 if (options == null) { |
8576 return _DOMWindowCrossFrame._createSafe(this[_open2](url, name)); | 8510 return _DOMWindowCrossFrame._createSafe(this[_open2](url, name)); |
8577 } else { | 8511 } else { |
8578 return _DOMWindowCrossFrame._createSafe(this[_open3](url, name, options)
); | 8512 return _DOMWindowCrossFrame._createSafe(this[_open3](url, name, options)
); |
8579 } | 8513 } |
8580 } | 8514 } |
8581 get location() { | 8515 get location() { |
8582 return dart.as(this[_location], Location); | 8516 return dart.as(this[_location], Location); |
8583 } | 8517 } |
8584 set location(value) { | 8518 set location(value) { |
(...skipping 13 matching lines...) Expand all Loading... |
8598 this[_ensureRequestAnimationFrame](); | 8532 this[_ensureRequestAnimationFrame](); |
8599 this[_cancelAnimationFrame](id); | 8533 this[_cancelAnimationFrame](id); |
8600 } | 8534 } |
8601 [_requestAnimationFrame](callback) { | 8535 [_requestAnimationFrame](callback) { |
8602 return this.raw.requestAnimationFrame; | 8536 return this.raw.requestAnimationFrame; |
8603 } | 8537 } |
8604 [_cancelAnimationFrame](id) { | 8538 [_cancelAnimationFrame](id) { |
8605 this.raw.cancelAnimationFrame(id); | 8539 this.raw.cancelAnimationFrame(id); |
8606 } | 8540 } |
8607 [_ensureRequestAnimationFrame]() { | 8541 [_ensureRequestAnimationFrame]() { |
8608 if (!!(this.raw.requestAnimationFrame && this.raw.cancelAnimationFrame)) | 8542 if (!!(this.raw.requestAnimationFrame && this.raw.cancelAnimationFrame)) r
eturn; |
8609 return; | |
8610 (function($this) { | 8543 (function($this) { |
8611 var vendors = ['ms', 'moz', 'webkit', 'o']; | 8544 var vendors = ['ms', 'moz', 'webkit', 'o']; |
8612 for (var i = 0; i < vendors.length && !$this.requestAnimationFrame; ++i)
{ | 8545 for (var i = 0; i < vendors.length && !$this.requestAnimationFrame; ++i)
{ |
8613 $this.requestAnimationFrame = $this[vendors[i] + 'RequestAnimationFram
e']; | 8546 $this.requestAnimationFrame = $this[vendors[i] + 'RequestAnimationFram
e']; |
8614 $this.cancelAnimationFrame = $this[vendors[i] + 'CancelAnimationFrame'
] || $this[vendors[i] + 'CancelRequestAnimationFrame']; | 8547 $this.cancelAnimationFrame = $this[vendors[i] + 'CancelAnimationFrame'
] || $this[vendors[i] + 'CancelRequestAnimationFrame']; |
8615 } | 8548 } |
8616 if ($this.requestAnimationFrame && $this.cancelAnimationFrame) | 8549 if ($this.requestAnimationFrame && $this.cancelAnimationFrame) return; |
8617 return; | |
8618 $this.requestAnimationFrame = function(callback) { | 8550 $this.requestAnimationFrame = function(callback) { |
8619 return window.setTimeout(function() { | 8551 return window.setTimeout(function() { |
8620 callback(Date.now()); | 8552 callback(Date.now()); |
8621 }, 16); | 8553 }, 16); |
8622 }; | 8554 }; |
8623 $this.cancelAnimationFrame = function(id) { | 8555 $this.cancelAnimationFrame = function(id) { |
8624 clearTimeout(id); | 8556 clearTimeout(id); |
8625 }; | 8557 }; |
8626 })(this.raw); | 8558 })(this.raw); |
8627 } | 8559 } |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8751 } | 8683 } |
8752 dart.throw(new core.ArgumentError("Incorrect number or type of arguments")
); | 8684 dart.throw(new core.ArgumentError("Incorrect number or type of arguments")
); |
8753 } | 8685 } |
8754 [__getter___1](index) { | 8686 [__getter___1](index) { |
8755 return wrap_jso(this.raw.__getter__(unwrap_jso(index))); | 8687 return wrap_jso(this.raw.__getter__(unwrap_jso(index))); |
8756 } | 8688 } |
8757 [__getter___2](name) { | 8689 [__getter___2](name) { |
8758 return wrap_jso(this.raw.__getter__(unwrap_jso(name))); | 8690 return wrap_jso(this.raw.__getter__(unwrap_jso(name))); |
8759 } | 8691 } |
8760 alert(message) { | 8692 alert(message) { |
8761 if (message === void 0) | 8693 if (message === void 0) message = null; |
8762 message = null; | |
8763 if (message != null) { | 8694 if (message != null) { |
8764 this[_alert_1](message); | 8695 this[_alert_1](message); |
8765 return; | 8696 return; |
8766 } | 8697 } |
8767 this[_alert_2](); | 8698 this[_alert_2](); |
8768 return; | 8699 return; |
8769 } | 8700 } |
8770 [_alert_1](message) { | 8701 [_alert_1](message) { |
8771 return wrap_jso(this.raw.alert(unwrap_jso(message))); | 8702 return wrap_jso(this.raw.alert(unwrap_jso(message))); |
8772 } | 8703 } |
8773 [_alert_2]() { | 8704 [_alert_2]() { |
8774 return wrap_jso(this.raw.alert()); | 8705 return wrap_jso(this.raw.alert()); |
8775 } | 8706 } |
8776 close() { | 8707 close() { |
8777 this[_close_1](); | 8708 this[_close_1](); |
8778 return; | 8709 return; |
8779 } | 8710 } |
8780 [_close_1]() { | 8711 [_close_1]() { |
8781 return wrap_jso(this.raw.close()); | 8712 return wrap_jso(this.raw.close()); |
8782 } | 8713 } |
8783 confirm(message) { | 8714 confirm(message) { |
8784 if (message === void 0) | 8715 if (message === void 0) message = null; |
8785 message = null; | |
8786 if (message != null) { | 8716 if (message != null) { |
8787 return this[_confirm_1](message); | 8717 return this[_confirm_1](message); |
8788 } | 8718 } |
8789 return this[_confirm_2](); | 8719 return this[_confirm_2](); |
8790 } | 8720 } |
8791 [_confirm_1](message) { | 8721 [_confirm_1](message) { |
8792 return dart.as(wrap_jso(this.raw.confirm(unwrap_jso(message))), core.bool)
; | 8722 return dart.as(wrap_jso(this.raw.confirm(unwrap_jso(message))), core.bool)
; |
8793 } | 8723 } |
8794 [_confirm_2]() { | 8724 [_confirm_2]() { |
8795 return dart.as(wrap_jso(this.raw.confirm()), core.bool); | 8725 return dart.as(wrap_jso(this.raw.confirm()), core.bool); |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8835 return wrap_jso(this.raw.resizeBy(unwrap_jso(x), unwrap_jso(y))); | 8765 return wrap_jso(this.raw.resizeBy(unwrap_jso(x), unwrap_jso(y))); |
8836 } | 8766 } |
8837 resizeTo(width, height) { | 8767 resizeTo(width, height) { |
8838 this[_resizeTo_1](width, height); | 8768 this[_resizeTo_1](width, height); |
8839 return; | 8769 return; |
8840 } | 8770 } |
8841 [_resizeTo_1](width, height) { | 8771 [_resizeTo_1](width, height) { |
8842 return wrap_jso(this.raw.resizeTo(unwrap_jso(width), unwrap_jso(height))); | 8772 return wrap_jso(this.raw.resizeTo(unwrap_jso(width), unwrap_jso(height))); |
8843 } | 8773 } |
8844 scroll(x, y, scrollOptions) { | 8774 scroll(x, y, scrollOptions) { |
8845 if (scrollOptions === void 0) | 8775 if (scrollOptions === void 0) scrollOptions = null; |
8846 scrollOptions = null; | |
8847 if (typeof y == 'number' && typeof x == 'number' && scrollOptions == null)
{ | 8776 if (typeof y == 'number' && typeof x == 'number' && scrollOptions == null)
{ |
8848 this[_scroll_1](dart.as(x, core.num), dart.as(y, core.num)); | 8777 this[_scroll_1](dart.as(x, core.num), dart.as(y, core.num)); |
8849 return; | 8778 return; |
8850 } | 8779 } |
8851 if (scrollOptions != null && typeof y == 'number' && typeof x == 'number')
{ | 8780 if (scrollOptions != null && typeof y == 'number' && typeof x == 'number')
{ |
8852 let scrollOptions_1 = html_common.convertDartToNative_Dictionary(scrollO
ptions); | 8781 let scrollOptions_1 = html_common.convertDartToNative_Dictionary(scrollO
ptions); |
8853 this[_scroll_2](dart.as(x, core.num), dart.as(y, core.num), scrollOption
s_1); | 8782 this[_scroll_2](dart.as(x, core.num), dart.as(y, core.num), scrollOption
s_1); |
8854 return; | 8783 return; |
8855 } | 8784 } |
8856 if (typeof y == 'number' && typeof x == 'number' && scrollOptions == null)
{ | 8785 if (typeof y == 'number' && typeof x == 'number' && scrollOptions == null)
{ |
(...skipping 13 matching lines...) Expand all Loading... |
8870 [_scroll_2](x, y, scrollOptions) { | 8799 [_scroll_2](x, y, scrollOptions) { |
8871 return wrap_jso(this.raw.scroll(unwrap_jso(x), unwrap_jso(y), unwrap_jso(s
crollOptions))); | 8800 return wrap_jso(this.raw.scroll(unwrap_jso(x), unwrap_jso(y), unwrap_jso(s
crollOptions))); |
8872 } | 8801 } |
8873 [_scroll_3](x, y) { | 8802 [_scroll_3](x, y) { |
8874 return wrap_jso(this.raw.scroll(unwrap_jso(x), unwrap_jso(y))); | 8803 return wrap_jso(this.raw.scroll(unwrap_jso(x), unwrap_jso(y))); |
8875 } | 8804 } |
8876 [_scroll_4](x, y, scrollOptions) { | 8805 [_scroll_4](x, y, scrollOptions) { |
8877 return wrap_jso(this.raw.scroll(unwrap_jso(x), unwrap_jso(y), unwrap_jso(s
crollOptions))); | 8806 return wrap_jso(this.raw.scroll(unwrap_jso(x), unwrap_jso(y), unwrap_jso(s
crollOptions))); |
8878 } | 8807 } |
8879 scrollBy(x, y, scrollOptions) { | 8808 scrollBy(x, y, scrollOptions) { |
8880 if (scrollOptions === void 0) | 8809 if (scrollOptions === void 0) scrollOptions = null; |
8881 scrollOptions = null; | |
8882 if (typeof y == 'number' && typeof x == 'number' && scrollOptions == null)
{ | 8810 if (typeof y == 'number' && typeof x == 'number' && scrollOptions == null)
{ |
8883 this[_scrollBy_1](dart.as(x, core.num), dart.as(y, core.num)); | 8811 this[_scrollBy_1](dart.as(x, core.num), dart.as(y, core.num)); |
8884 return; | 8812 return; |
8885 } | 8813 } |
8886 if (scrollOptions != null && typeof y == 'number' && typeof x == 'number')
{ | 8814 if (scrollOptions != null && typeof y == 'number' && typeof x == 'number')
{ |
8887 let scrollOptions_1 = html_common.convertDartToNative_Dictionary(scrollO
ptions); | 8815 let scrollOptions_1 = html_common.convertDartToNative_Dictionary(scrollO
ptions); |
8888 this[_scrollBy_2](dart.as(x, core.num), dart.as(y, core.num), scrollOpti
ons_1); | 8816 this[_scrollBy_2](dart.as(x, core.num), dart.as(y, core.num), scrollOpti
ons_1); |
8889 return; | 8817 return; |
8890 } | 8818 } |
8891 if (typeof y == 'number' && typeof x == 'number' && scrollOptions == null)
{ | 8819 if (typeof y == 'number' && typeof x == 'number' && scrollOptions == null)
{ |
(...skipping 13 matching lines...) Expand all Loading... |
8905 [_scrollBy_2](x, y, scrollOptions) { | 8833 [_scrollBy_2](x, y, scrollOptions) { |
8906 return wrap_jso(this.raw.scrollBy(unwrap_jso(x), unwrap_jso(y), unwrap_jso
(scrollOptions))); | 8834 return wrap_jso(this.raw.scrollBy(unwrap_jso(x), unwrap_jso(y), unwrap_jso
(scrollOptions))); |
8907 } | 8835 } |
8908 [_scrollBy_3](x, y) { | 8836 [_scrollBy_3](x, y) { |
8909 return wrap_jso(this.raw.scrollBy(unwrap_jso(x), unwrap_jso(y))); | 8837 return wrap_jso(this.raw.scrollBy(unwrap_jso(x), unwrap_jso(y))); |
8910 } | 8838 } |
8911 [_scrollBy_4](x, y, scrollOptions) { | 8839 [_scrollBy_4](x, y, scrollOptions) { |
8912 return wrap_jso(this.raw.scrollBy(unwrap_jso(x), unwrap_jso(y), unwrap_jso
(scrollOptions))); | 8840 return wrap_jso(this.raw.scrollBy(unwrap_jso(x), unwrap_jso(y), unwrap_jso
(scrollOptions))); |
8913 } | 8841 } |
8914 scrollTo(x, y, scrollOptions) { | 8842 scrollTo(x, y, scrollOptions) { |
8915 if (scrollOptions === void 0) | 8843 if (scrollOptions === void 0) scrollOptions = null; |
8916 scrollOptions = null; | |
8917 if (typeof y == 'number' && typeof x == 'number' && scrollOptions == null)
{ | 8844 if (typeof y == 'number' && typeof x == 'number' && scrollOptions == null)
{ |
8918 this[_scrollTo_1](dart.as(x, core.num), dart.as(y, core.num)); | 8845 this[_scrollTo_1](dart.as(x, core.num), dart.as(y, core.num)); |
8919 return; | 8846 return; |
8920 } | 8847 } |
8921 if (scrollOptions != null && typeof y == 'number' && typeof x == 'number')
{ | 8848 if (scrollOptions != null && typeof y == 'number' && typeof x == 'number')
{ |
8922 let scrollOptions_1 = html_common.convertDartToNative_Dictionary(scrollO
ptions); | 8849 let scrollOptions_1 = html_common.convertDartToNative_Dictionary(scrollO
ptions); |
8923 this[_scrollTo_2](dart.as(x, core.num), dart.as(y, core.num), scrollOpti
ons_1); | 8850 this[_scrollTo_2](dart.as(x, core.num), dart.as(y, core.num), scrollOpti
ons_1); |
8924 return; | 8851 return; |
8925 } | 8852 } |
8926 if (typeof y == 'number' && typeof x == 'number' && scrollOptions == null)
{ | 8853 if (typeof y == 'number' && typeof x == 'number' && scrollOptions == null)
{ |
(...skipping 13 matching lines...) Expand all Loading... |
8940 [_scrollTo_2](x, y, scrollOptions) { | 8867 [_scrollTo_2](x, y, scrollOptions) { |
8941 return wrap_jso(this.raw.scrollTo(unwrap_jso(x), unwrap_jso(y), unwrap_jso
(scrollOptions))); | 8868 return wrap_jso(this.raw.scrollTo(unwrap_jso(x), unwrap_jso(y), unwrap_jso
(scrollOptions))); |
8942 } | 8869 } |
8943 [_scrollTo_3](x, y) { | 8870 [_scrollTo_3](x, y) { |
8944 return wrap_jso(this.raw.scrollTo(unwrap_jso(x), unwrap_jso(y))); | 8871 return wrap_jso(this.raw.scrollTo(unwrap_jso(x), unwrap_jso(y))); |
8945 } | 8872 } |
8946 [_scrollTo_4](x, y, scrollOptions) { | 8873 [_scrollTo_4](x, y, scrollOptions) { |
8947 return wrap_jso(this.raw.scrollTo(unwrap_jso(x), unwrap_jso(y), unwrap_jso
(scrollOptions))); | 8874 return wrap_jso(this.raw.scrollTo(unwrap_jso(x), unwrap_jso(y), unwrap_jso
(scrollOptions))); |
8948 } | 8875 } |
8949 showModalDialog(url, dialogArgs, featureArgs) { | 8876 showModalDialog(url, dialogArgs, featureArgs) { |
8950 if (dialogArgs === void 0) | 8877 if (dialogArgs === void 0) dialogArgs = null; |
8951 dialogArgs = null; | 8878 if (featureArgs === void 0) featureArgs = null; |
8952 if (featureArgs === void 0) | |
8953 featureArgs = null; | |
8954 if (featureArgs != null) { | 8879 if (featureArgs != null) { |
8955 return this[_showModalDialog_1](url, dialogArgs, featureArgs); | 8880 return this[_showModalDialog_1](url, dialogArgs, featureArgs); |
8956 } | 8881 } |
8957 if (dialogArgs != null) { | 8882 if (dialogArgs != null) { |
8958 return this[_showModalDialog_2](url, dialogArgs); | 8883 return this[_showModalDialog_2](url, dialogArgs); |
8959 } | 8884 } |
8960 return this[_showModalDialog_3](url); | 8885 return this[_showModalDialog_3](url); |
8961 } | 8886 } |
8962 [_showModalDialog_1](url, dialogArgs, featureArgs) { | 8887 [_showModalDialog_1](url, dialogArgs, featureArgs) { |
8963 return wrap_jso(this.raw.showModalDialog(unwrap_jso(url), unwrap_jso(dialo
gArgs), unwrap_jso(featureArgs))); | 8888 return wrap_jso(this.raw.showModalDialog(unwrap_jso(url), unwrap_jso(dialo
gArgs), unwrap_jso(featureArgs))); |
(...skipping 26 matching lines...) Expand all Loading... |
8990 get pageYOffset() { | 8915 get pageYOffset() { |
8991 return this.raw.pageYOffset[dartx.round](); | 8916 return this.raw.pageYOffset[dartx.round](); |
8992 } | 8917 } |
8993 get scrollX() { | 8918 get scrollX() { |
8994 return "scrollX" in this.raw ? this.raw.scrollX[dartx.round]() : this.docu
ment.documentElement.scrollLeft; | 8919 return "scrollX" in this.raw ? this.raw.scrollX[dartx.round]() : this.docu
ment.documentElement.scrollLeft; |
8995 } | 8920 } |
8996 get scrollY() { | 8921 get scrollY() { |
8997 return "scrollY" in this.raw ? this.raw.scrollY[dartx.round]() : this.docu
ment.documentElement.scrollTop; | 8922 return "scrollY" in this.raw ? this.raw.scrollY[dartx.round]() : this.docu
ment.documentElement.scrollTop; |
8998 } | 8923 } |
8999 postMessage(message, targetOrigin, messagePorts) { | 8924 postMessage(message, targetOrigin, messagePorts) { |
9000 if (messagePorts === void 0) | 8925 if (messagePorts === void 0) messagePorts = null; |
9001 messagePorts = null; | |
9002 if (messagePorts != null) { | 8926 if (messagePorts != null) { |
9003 dart.throw('postMessage unsupported'); | 8927 dart.throw('postMessage unsupported'); |
9004 } | 8928 } |
9005 this.raw.postMessage(message, targetOrigin); | 8929 this.raw.postMessage(message, targetOrigin); |
9006 } | 8930 } |
9007 } | 8931 } |
9008 Window[dart.implements] = () => [WindowBase]; | 8932 Window[dart.implements] = () => [WindowBase]; |
9009 dart.defineNamedConstructor(Window, 'internal_'); | 8933 dart.defineNamedConstructor(Window, 'internal_'); |
9010 dart.setSignature(Window, { | 8934 dart.setSignature(Window, { |
9011 constructors: () => ({ | 8935 constructors: () => ({ |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9111 }), | 9035 }), |
9112 statics: () => ({internalCreate_Attr: [_Attr, []]}), | 9036 statics: () => ({internalCreate_Attr: [_Attr, []]}), |
9113 names: ['internalCreate_Attr'] | 9037 names: ['internalCreate_Attr'] |
9114 }); | 9038 }); |
9115 _Attr[dart.metadata] = () => [dart.const(new _metadata.DocsEditable()), dart.c
onst(new _metadata.DomName('Attr')), dart.const(new _js_helper.Native("Attr"))]; | 9039 _Attr[dart.metadata] = () => [dart.const(new _metadata.DocsEditable()), dart.c
onst(new _metadata.DomName('Attr')), dart.const(new _js_helper.Native("Attr"))]; |
9116 class _ClientRect extends DartHtmlDomObject { | 9040 class _ClientRect extends DartHtmlDomObject { |
9117 toString() { | 9041 toString() { |
9118 return `Rectangle (${this.left}, ${this.top}) ${this.width} x ${this.heigh
t}`; | 9042 return `Rectangle (${this.left}, ${this.top}) ${this.width} x ${this.heigh
t}`; |
9119 } | 9043 } |
9120 ['=='](other) { | 9044 ['=='](other) { |
9121 if (!dart.is(other, math.Rectangle)) | 9045 if (!dart.is(other, math.Rectangle)) return false; |
9122 return false; | |
9123 return dart.equals(this.left, dart.dload(other, 'left')) && dart.equals(th
is.top, dart.dload(other, 'top')) && dart.equals(this.width, dart.dload(other, '
width')) && dart.equals(this.height, dart.dload(other, 'height')); | 9046 return dart.equals(this.left, dart.dload(other, 'left')) && dart.equals(th
is.top, dart.dload(other, 'top')) && dart.equals(this.width, dart.dload(other, '
width')) && dart.equals(this.height, dart.dload(other, 'height')); |
9124 } | 9047 } |
9125 get hashCode() { | 9048 get hashCode() { |
9126 return _JenkinsSmiHash.hash4(dart.hashCode(this.left), dart.hashCode(this.
top), dart.hashCode(this.width), dart.hashCode(this.height)); | 9049 return _JenkinsSmiHash.hash4(dart.hashCode(this.left), dart.hashCode(this.
top), dart.hashCode(this.width), dart.hashCode(this.height)); |
9127 } | 9050 } |
9128 intersection(other) { | 9051 intersection(other) { |
9129 let x0 = math.max(this.left, dart.as(other.left, core.num)); | 9052 let x0 = math.max(this.left, dart.as(other.left, core.num)); |
9130 let x1 = math.min(dart.notNull(this.left) + dart.notNull(this.width), dart
.as(dart.dsend(other.left, '+', other.width), core.num)); | 9053 let x1 = math.min(dart.notNull(this.left) + dart.notNull(this.width), dart
.as(dart.dsend(other.left, '+', other.width), core.num)); |
9131 if (dart.notNull(x0) <= dart.notNull(x1)) { | 9054 if (dart.notNull(x0) <= dart.notNull(x1)) { |
9132 let y0 = math.max(this.top, dart.as(other.top, core.num)); | 9055 let y0 = math.max(this.top, dart.as(other.top, core.num)); |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9257 ['=='](other) { | 9180 ['=='](other) { |
9258 return dart.equals(unwrap_jso(other), unwrap_jso(this)) || dart.notNull(co
re.identical(this, other)); | 9181 return dart.equals(unwrap_jso(other), unwrap_jso(this)) || dart.notNull(co
re.identical(this, other)); |
9259 } | 9182 } |
9260 get hashCode() { | 9183 get hashCode() { |
9261 return dart.hashCode(unwrap_jso(this)); | 9184 return dart.hashCode(unwrap_jso(this)); |
9262 } | 9185 } |
9263 get length() { | 9186 get length() { |
9264 return dart.as(wrap_jso(this.raw.length), core.int); | 9187 return dart.as(wrap_jso(this.raw.length), core.int); |
9265 } | 9188 } |
9266 get(index) { | 9189 get(index) { |
9267 if (index >>> 0 !== index || index >= this.length) | 9190 if (index >>> 0 !== index || index >= this.length) dart.throw(core.RangeEr
ror.index(index, this)); |
9268 dart.throw(core.RangeError.index(index, this)); | |
9269 return dart.as(wrap_jso(this.raw[index]), Node); | 9191 return dart.as(wrap_jso(this.raw[index]), Node); |
9270 } | 9192 } |
9271 set(index, value) { | 9193 set(index, value) { |
9272 dart.throw(new core.UnsupportedError("Cannot assign element of immutable L
ist.")); | 9194 dart.throw(new core.UnsupportedError("Cannot assign element of immutable L
ist.")); |
9273 return value; | 9195 return value; |
9274 } | 9196 } |
9275 set length(value) { | 9197 set length(value) { |
9276 dart.throw(new core.UnsupportedError("Cannot resize immutable List.")); | 9198 dart.throw(new core.UnsupportedError("Cannot resize immutable List.")); |
9277 } | 9199 } |
9278 get first() { | 9200 get first() { |
9279 if (dart.notNull(this.length) > 0) { | 9201 if (dart.notNull(this.length) > 0) { |
9280 return dart.as(wrap_jso(this.raw[0]), Node); | 9202 return dart.as(wrap_jso(this.raw[0]), Node); |
9281 } | 9203 } |
9282 dart.throw(new core.StateError("No elements")); | 9204 dart.throw(new core.StateError("No elements")); |
9283 } | 9205 } |
9284 get last() { | 9206 get last() { |
9285 let len = this.length; | 9207 let len = this.length; |
9286 if (dart.notNull(len) > 0) { | 9208 if (dart.notNull(len) > 0) { |
9287 return dart.as(wrap_jso(this.raw[dart.notNull(len) - 1]), Node); | 9209 return dart.as(wrap_jso(this.raw[dart.notNull(len) - 1]), Node); |
9288 } | 9210 } |
9289 dart.throw(new core.StateError("No elements")); | 9211 dart.throw(new core.StateError("No elements")); |
9290 } | 9212 } |
9291 get single() { | 9213 get single() { |
9292 let len = this.length; | 9214 let len = this.length; |
9293 if (len == 1) { | 9215 if (len == 1) { |
9294 return dart.as(wrap_jso(this.raw[0]), Node); | 9216 return dart.as(wrap_jso(this.raw[0]), Node); |
9295 } | 9217 } |
9296 if (len == 0) | 9218 if (len == 0) dart.throw(new core.StateError("No elements")); |
9297 dart.throw(new core.StateError("No elements")); | |
9298 dart.throw(new core.StateError("More than one element")); | 9219 dart.throw(new core.StateError("More than one element")); |
9299 } | 9220 } |
9300 elementAt(index) { | 9221 elementAt(index) { |
9301 return this.get(index); | 9222 return this.get(index); |
9302 } | 9223 } |
9303 [__getter__](name) { | 9224 [__getter__](name) { |
9304 return this[__getter___1](name); | 9225 return this[__getter___1](name); |
9305 } | 9226 } |
9306 [__getter___1](name) { | 9227 [__getter___1](name) { |
9307 return dart.as(wrap_jso(this.raw.__getter__(unwrap_jso(name))), Node); | 9228 return dart.as(wrap_jso(this.raw.__getter__(unwrap_jso(name))), Node); |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9648 if (dart.notNull(segment[dartx.length]) > 0) { | 9569 if (dart.notNull(segment[dartx.length]) > 0) { |
9649 segments[dartx.set](i, `${segment[dartx.get](0)[dartx.toUpperCase]()}$
{segment[dartx.substring](1)}`); | 9570 segments[dartx.set](i, `${segment[dartx.get](0)[dartx.toUpperCase]()}$
{segment[dartx.substring](1)}`); |
9650 } | 9571 } |
9651 } | 9572 } |
9652 return segments[dartx.join](''); | 9573 return segments[dartx.join](''); |
9653 } | 9574 } |
9654 [_toHyphenedName](word) { | 9575 [_toHyphenedName](word) { |
9655 let sb = new core.StringBuffer(); | 9576 let sb = new core.StringBuffer(); |
9656 for (let i = 0; dart.notNull(i) < dart.notNull(word[dartx.length]); i = da
rt.notNull(i) + 1) { | 9577 for (let i = 0; dart.notNull(i) < dart.notNull(word[dartx.length]); i = da
rt.notNull(i) + 1) { |
9657 let lower = word[dartx.get](i)[dartx.toLowerCase](); | 9578 let lower = word[dartx.get](i)[dartx.toLowerCase](); |
9658 if (word[dartx.get](i) != lower && dart.notNull(i) > 0) | 9579 if (word[dartx.get](i) != lower && dart.notNull(i) > 0) sb.write('-'); |
9659 sb.write('-'); | |
9660 sb.write(lower); | 9580 sb.write(lower); |
9661 } | 9581 } |
9662 return dart.toString(sb); | 9582 return dart.toString(sb); |
9663 } | 9583 } |
9664 } | 9584 } |
9665 _DataAttributeMap[dart.implements] = () => [core.Map$(core.String, core.String
)]; | 9585 _DataAttributeMap[dart.implements] = () => [core.Map$(core.String, core.String
)]; |
9666 dart.setSignature(_DataAttributeMap, { | 9586 dart.setSignature(_DataAttributeMap, { |
9667 constructors: () => ({_DataAttributeMap: [_DataAttributeMap, [core.Map$(core
.String, core.String)]]}), | 9587 constructors: () => ({_DataAttributeMap: [_DataAttributeMap, [core.Map$(core
.String, core.String)]]}), |
9668 methods: () => ({ | 9588 methods: () => ({ |
9669 addAll: [dart.void, [core.Map$(core.String, core.String)]], | 9589 addAll: [dart.void, [core.Map$(core.String, core.String)]], |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9867 writeClasses(s) { | 9787 writeClasses(s) { |
9868 let classes = s.join(' '); | 9788 let classes = s.join(' '); |
9869 for (let e of this[_elementIterable]) { | 9789 for (let e of this[_elementIterable]) { |
9870 e.className = classes; | 9790 e.className = classes; |
9871 } | 9791 } |
9872 } | 9792 } |
9873 modify(f) { | 9793 modify(f) { |
9874 this[_sets][dartx.forEach](dart.fn(e => e.modify(f), dart.dynamic, [ht
ml_common.CssClassSetImpl])); | 9794 this[_sets][dartx.forEach](dart.fn(e => e.modify(f), dart.dynamic, [ht
ml_common.CssClassSetImpl])); |
9875 } | 9795 } |
9876 toggle(value, shouldAdd) { | 9796 toggle(value, shouldAdd) { |
9877 if (shouldAdd === void 0) | 9797 if (shouldAdd === void 0) shouldAdd = null; |
9878 shouldAdd = null; | |
9879 return this[_sets][dartx.fold](false, dart.fn((changed, e) => dart.not
Null(e.toggle(value, shouldAdd)) || dart.notNull(changed), core.bool, [core.bool
, html_common.CssClassSetImpl])); | 9798 return this[_sets][dartx.fold](false, dart.fn((changed, e) => dart.not
Null(e.toggle(value, shouldAdd)) || dart.notNull(changed), core.bool, [core.bool
, html_common.CssClassSetImpl])); |
9880 } | 9799 } |
9881 remove(value) { | 9800 remove(value) { |
9882 return this[_sets][dartx.fold](false, dart.fn((changed, e) => dart.not
Null(e.remove(value)) || dart.notNull(changed), core.bool, [core.bool, html_comm
on.CssClassSetImpl])); | 9801 return this[_sets][dartx.fold](false, dart.fn((changed, e) => dart.not
Null(e.remove(value)) || dart.notNull(changed), core.bool, [core.bool, html_comm
on.CssClassSetImpl])); |
9883 } | 9802 } |
9884 } | 9803 } |
9885 dart.defineNamedConstructor(_MultiElementCssClassSet, '_'); | 9804 dart.defineNamedConstructor(_MultiElementCssClassSet, '_'); |
9886 dart.setSignature(_MultiElementCssClassSet, { | 9805 dart.setSignature(_MultiElementCssClassSet, { |
9887 constructors: () => ({ | 9806 constructors: () => ({ |
9888 new: [exports._MultiElementCssClassSet, [core.Iterable$(Element)]], | 9807 new: [exports._MultiElementCssClassSet, [core.Iterable$(Element)]], |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9931 contains(value) { | 9850 contains(value) { |
9932 return exports._ElementCssClassSet._contains(this[_element], value); | 9851 return exports._ElementCssClassSet._contains(this[_element], value); |
9933 } | 9852 } |
9934 add(value) { | 9853 add(value) { |
9935 return exports._ElementCssClassSet._add(this[_element], value); | 9854 return exports._ElementCssClassSet._add(this[_element], value); |
9936 } | 9855 } |
9937 remove(value) { | 9856 remove(value) { |
9938 return typeof value == 'string' && dart.notNull(exports._ElementCssCla
ssSet._remove(this[_element], value)); | 9857 return typeof value == 'string' && dart.notNull(exports._ElementCssCla
ssSet._remove(this[_element], value)); |
9939 } | 9858 } |
9940 toggle(value, shouldAdd) { | 9859 toggle(value, shouldAdd) { |
9941 if (shouldAdd === void 0) | 9860 if (shouldAdd === void 0) shouldAdd = null; |
9942 shouldAdd = null; | |
9943 return exports._ElementCssClassSet._toggle(this[_element], value, shou
ldAdd); | 9861 return exports._ElementCssClassSet._toggle(this[_element], value, shou
ldAdd); |
9944 } | 9862 } |
9945 addAll(iterable) { | 9863 addAll(iterable) { |
9946 exports._ElementCssClassSet._addAll(this[_element], iterable); | 9864 exports._ElementCssClassSet._addAll(this[_element], iterable); |
9947 } | 9865 } |
9948 removeAll(iterable) { | 9866 removeAll(iterable) { |
9949 exports._ElementCssClassSet._removeAll(this[_element], dart.as(iterabl
e, core.Iterable$(core.String))); | 9867 exports._ElementCssClassSet._removeAll(this[_element], dart.as(iterabl
e, core.Iterable$(core.String))); |
9950 } | 9868 } |
9951 retainAll(iterable) { | 9869 retainAll(iterable) { |
9952 exports._ElementCssClassSet._removeWhere(this[_element], dart.bind(ite
rable[dartx.toSet](), 'contains'), false); | 9870 exports._ElementCssClassSet._removeWhere(this[_element], dart.bind(ite
rable[dartx.toSet](), 'contains'), false); |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10103 this[_value] = value; | 10021 this[_value] = value; |
10104 this[_unit] = 'em'; | 10022 this[_unit] = 'em'; |
10105 } | 10023 } |
10106 ex(value) { | 10024 ex(value) { |
10107 this[_value] = value; | 10025 this[_value] = value; |
10108 this[_unit] = 'ex'; | 10026 this[_unit] = 'ex'; |
10109 } | 10027 } |
10110 css(cssValue) { | 10028 css(cssValue) { |
10111 this[_value] = null; | 10029 this[_value] = null; |
10112 this[_unit] = null; | 10030 this[_unit] = null; |
10113 if (cssValue == '') | 10031 if (cssValue == '') cssValue = '0px'; |
10114 cssValue = '0px'; | |
10115 if (dart.notNull(cssValue[dartx.endsWith]('%'))) { | 10032 if (dart.notNull(cssValue[dartx.endsWith]('%'))) { |
10116 this[_unit] = '%'; | 10033 this[_unit] = '%'; |
10117 } else { | 10034 } else { |
10118 this[_unit] = cssValue[dartx.substring](dart.notNull(cssValue[dartx.leng
th]) - 2); | 10035 this[_unit] = cssValue[dartx.substring](dart.notNull(cssValue[dartx.leng
th]) - 2); |
10119 } | 10036 } |
10120 if (dart.notNull(cssValue[dartx.contains]('.'))) { | 10037 if (dart.notNull(cssValue[dartx.contains]('.'))) { |
10121 this[_value] = core.double.parse(cssValue[dartx.substring](0, dart.notNu
ll(cssValue[dartx.length]) - dart.notNull(this[_unit][dartx.length]))); | 10038 this[_value] = core.double.parse(cssValue[dartx.substring](0, dart.notNu
ll(cssValue[dartx.length]) - dart.notNull(this[_unit][dartx.length]))); |
10122 } else { | 10039 } else { |
10123 this[_value] = core.int.parse(cssValue[dartx.substring](0, dart.notNull(
cssValue[dartx.length]) - dart.notNull(this[_unit][dartx.length]))); | 10040 this[_value] = core.int.parse(cssValue[dartx.substring](0, dart.notNull(
cssValue[dartx.length]) - dart.notNull(this[_unit][dartx.length]))); |
10124 } | 10041 } |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10296 class _EventStreamSubscription extends async.StreamSubscription$(T) { | 10213 class _EventStreamSubscription extends async.StreamSubscription$(T) { |
10297 _EventStreamSubscription(target, eventType, onData, useCapture) { | 10214 _EventStreamSubscription(target, eventType, onData, useCapture) { |
10298 this[_target] = target; | 10215 this[_target] = target; |
10299 this[_eventType] = eventType; | 10216 this[_eventType] = eventType; |
10300 this[_useCapture] = useCapture; | 10217 this[_useCapture] = useCapture; |
10301 this[_onData] = _wrapZone(dart.as(onData, __CastType2)); | 10218 this[_onData] = _wrapZone(dart.as(onData, __CastType2)); |
10302 this[_pauseCount] = 0; | 10219 this[_pauseCount] = 0; |
10303 this[_tryResume](); | 10220 this[_tryResume](); |
10304 } | 10221 } |
10305 cancel() { | 10222 cancel() { |
10306 if (dart.notNull(this[_canceled])) | 10223 if (dart.notNull(this[_canceled])) return null; |
10307 return null; | |
10308 this[_unlisten](); | 10224 this[_unlisten](); |
10309 this[_target] = null; | 10225 this[_target] = null; |
10310 this[_onData] = null; | 10226 this[_onData] = null; |
10311 return null; | 10227 return null; |
10312 } | 10228 } |
10313 get [_canceled]() { | 10229 get [_canceled]() { |
10314 return this[_target] == null; | 10230 return this[_target] == null; |
10315 } | 10231 } |
10316 onData(handleData) { | 10232 onData(handleData) { |
10317 dart.as(handleData, dart.functionType(dart.void, [T])); | 10233 dart.as(handleData, dart.functionType(dart.void, [T])); |
10318 if (dart.notNull(this[_canceled])) { | 10234 if (dart.notNull(this[_canceled])) { |
10319 dart.throw(new core.StateError("Subscription has been canceled.")); | 10235 dart.throw(new core.StateError("Subscription has been canceled.")); |
10320 } | 10236 } |
10321 this[_unlisten](); | 10237 this[_unlisten](); |
10322 this[_onData] = _wrapZone(handleData); | 10238 this[_onData] = _wrapZone(handleData); |
10323 this[_tryResume](); | 10239 this[_tryResume](); |
10324 } | 10240 } |
10325 onError(handleError) {} | 10241 onError(handleError) {} |
10326 onDone(handleDone) { | 10242 onDone(handleDone) { |
10327 dart.as(handleDone, dart.functionType(dart.void, [])); | 10243 dart.as(handleDone, dart.functionType(dart.void, [])); |
10328 } | 10244 } |
10329 pause(resumeSignal) { | 10245 pause(resumeSignal) { |
10330 if (resumeSignal === void 0) | 10246 if (resumeSignal === void 0) resumeSignal = null; |
10331 resumeSignal = null; | 10247 if (dart.notNull(this[_canceled])) return; |
10332 if (dart.notNull(this[_canceled])) | |
10333 return; | |
10334 this[_pauseCount] = dart.notNull(this[_pauseCount]) + 1; | 10248 this[_pauseCount] = dart.notNull(this[_pauseCount]) + 1; |
10335 this[_unlisten](); | 10249 this[_unlisten](); |
10336 if (resumeSignal != null) { | 10250 if (resumeSignal != null) { |
10337 resumeSignal.whenComplete(dart.bind(this, 'resume')); | 10251 resumeSignal.whenComplete(dart.bind(this, 'resume')); |
10338 } | 10252 } |
10339 } | 10253 } |
10340 get isPaused() { | 10254 get isPaused() { |
10341 return dart.notNull(this[_pauseCount]) > 0; | 10255 return dart.notNull(this[_pauseCount]) > 0; |
10342 } | 10256 } |
10343 resume() { | 10257 resume() { |
10344 if (dart.notNull(this[_canceled]) || !dart.notNull(this.isPaused)) | 10258 if (dart.notNull(this[_canceled]) || !dart.notNull(this.isPaused)) retur
n; |
10345 return; | |
10346 this[_pauseCount] = dart.notNull(this[_pauseCount]) - 1; | 10259 this[_pauseCount] = dart.notNull(this[_pauseCount]) - 1; |
10347 this[_tryResume](); | 10260 this[_tryResume](); |
10348 } | 10261 } |
10349 [_tryResume]() { | 10262 [_tryResume]() { |
10350 if (this[_onData] != null && !dart.notNull(this.isPaused)) { | 10263 if (this[_onData] != null && !dart.notNull(this.isPaused)) { |
10351 this[_target].addEventListener(this[_eventType], dart.as(this[_onData]
, EventListener), this[_useCapture]); | 10264 this[_target].addEventListener(this[_eventType], dart.as(this[_onData]
, EventListener), this[_useCapture]); |
10352 } | 10265 } |
10353 } | 10266 } |
10354 [_unlisten]() { | 10267 [_unlisten]() { |
10355 if (this[_onData] != null) { | 10268 if (this[_onData] != null) { |
10356 this[_target].removeEventListener(this[_eventType], dart.as(this[_onDa
ta], EventListener), this[_useCapture]); | 10269 this[_target].removeEventListener(this[_eventType], dart.as(this[_onDa
ta], EventListener), this[_useCapture]); |
10357 } | 10270 } |
10358 } | 10271 } |
10359 asFuture(futureValue) { | 10272 asFuture(futureValue) { |
10360 if (futureValue === void 0) | 10273 if (futureValue === void 0) futureValue = null; |
10361 futureValue = null; | |
10362 let completer = async.Completer.new(); | 10274 let completer = async.Completer.new(); |
10363 return completer.future; | 10275 return completer.future; |
10364 } | 10276 } |
10365 } | 10277 } |
10366 dart.setSignature(_EventStreamSubscription, { | 10278 dart.setSignature(_EventStreamSubscription, { |
10367 constructors: () => ({_EventStreamSubscription: [_EventStreamSubscription$
(T), [EventTarget, core.String, dart.dynamic, core.bool]]}), | 10279 constructors: () => ({_EventStreamSubscription: [_EventStreamSubscription$
(T), [EventTarget, core.String, dart.dynamic, core.bool]]}), |
10368 methods: () => ({ | 10280 methods: () => ({ |
10369 cancel: [async.Future, []], | 10281 cancel: [async.Future, []], |
10370 onData: [dart.void, [dart.functionType(dart.void, [T])]], | 10282 onData: [dart.void, [dart.functionType(dart.void, [T])]], |
10371 onError: [dart.void, [core.Function]], | 10283 onError: [dart.void, [core.Function]], |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10410 dart.as(onListen, dart.functionType(dart.void, [async.StreamSubscription
$(T)])); | 10322 dart.as(onListen, dart.functionType(dart.void, [async.StreamSubscription
$(T)])); |
10411 let onCancel = opts && 'onCancel' in opts ? opts.onCancel : null; | 10323 let onCancel = opts && 'onCancel' in opts ? opts.onCancel : null; |
10412 dart.as(onCancel, dart.functionType(dart.void, [async.StreamSubscription
$(T)])); | 10324 dart.as(onCancel, dart.functionType(dart.void, [async.StreamSubscription
$(T)])); |
10413 return this[_streamController].stream; | 10325 return this[_streamController].stream; |
10414 } | 10326 } |
10415 get isBroadcast() { | 10327 get isBroadcast() { |
10416 return true; | 10328 return true; |
10417 } | 10329 } |
10418 add(event) { | 10330 add(event) { |
10419 dart.as(event, T); | 10331 dart.as(event, T); |
10420 if (event.type == this[_type]) | 10332 if (event.type == this[_type]) this[_streamController].add(event); |
10421 this[_streamController].add(event); | |
10422 } | 10333 } |
10423 } | 10334 } |
10424 _CustomEventStreamImpl[dart.implements] = () => [CustomStream$(T)]; | 10335 _CustomEventStreamImpl[dart.implements] = () => [CustomStream$(T)]; |
10425 dart.setSignature(_CustomEventStreamImpl, { | 10336 dart.setSignature(_CustomEventStreamImpl, { |
10426 constructors: () => ({_CustomEventStreamImpl: [_CustomEventStreamImpl$(T),
[core.String]]}), | 10337 constructors: () => ({_CustomEventStreamImpl: [_CustomEventStreamImpl$(T),
[core.String]]}), |
10427 methods: () => ({ | 10338 methods: () => ({ |
10428 listen: [async.StreamSubscription$(T), [dart.functionType(dart.void, [T]
)], {onError: core.Function, onDone: dart.functionType(dart.void, []), cancelOnE
rror: core.bool}], | 10339 listen: [async.StreamSubscription$(T), [dart.functionType(dart.void, [T]
)], {onError: core.Function, onDone: dart.functionType(dart.void, []), cancelOnE
rror: core.bool}], |
10429 asBroadcastStream: [async.Stream$(T), [], {onListen: dart.functionType(d
art.void, [async.StreamSubscription$(T)]), onCancel: dart.functionType(dart.void
, [async.StreamSubscription$(T)])}], | 10340 asBroadcastStream: [async.Stream$(T), [], {onListen: dart.functionType(d
art.void, [async.StreamSubscription$(T)]), onCancel: dart.functionType(dart.void
, [async.StreamSubscription$(T)])}], |
10430 add: [dart.void, [T]] | 10341 add: [dart.void, [T]] |
10431 }) | 10342 }) |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10478 this.wrapped.stopPropagation(); | 10389 this.wrapped.stopPropagation(); |
10479 } | 10390 } |
10480 get matchingTarget() { | 10391 get matchingTarget() { |
10481 if (this[_selector] == null) { | 10392 if (this[_selector] == null) { |
10482 dart.throw(new core.UnsupportedError('Cannot call matchingTarget if this
Event did' + ' not arise as a result of event delegation.')); | 10393 dart.throw(new core.UnsupportedError('Cannot call matchingTarget if this
Event did' + ' not arise as a result of event delegation.')); |
10483 } | 10394 } |
10484 let currentTarget = this.currentTarget; | 10395 let currentTarget = this.currentTarget; |
10485 let target = this.target; | 10396 let target = this.target; |
10486 let matchedTarget = null; | 10397 let matchedTarget = null; |
10487 do { | 10398 do { |
10488 if (dart.notNull(dart.as(dart.dcall(target.matches, this[_selector]), co
re.bool))) | 10399 if (dart.notNull(dart.as(dart.dcall(target.matches, this[_selector]), co
re.bool))) return dart.as(target, Element); |
10489 return dart.as(target, Element); | |
10490 target = dart.as(target.parent, EventTarget); | 10400 target = dart.as(target.parent, EventTarget); |
10491 } while (target != null && !dart.equals(target, currentTarget.parent)); | 10401 } while (target != null && !dart.equals(target, currentTarget.parent)); |
10492 dart.throw(new core.StateError('No selector matched for populating matched
Target.')); | 10402 dart.throw(new core.StateError('No selector matched for populating matched
Target.')); |
10493 } | 10403 } |
10494 get path() { | 10404 get path() { |
10495 return this.wrapped.path; | 10405 return this.wrapped.path; |
10496 } | 10406 } |
10497 get [_get_currentTarget]() { | 10407 get [_get_currentTarget]() { |
10498 return this.wrapped[_get_currentTarget]; | 10408 return this.wrapped[_get_currentTarget]; |
10499 } | 10409 } |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10744 broadcast() { | 10654 broadcast() { |
10745 this[_subscriptions] = core.Map$(async.Stream$(T), async.StreamSubscript
ion$(T)).new(); | 10655 this[_subscriptions] = core.Map$(async.Stream$(T), async.StreamSubscript
ion$(T)).new(); |
10746 this[_controller] = null; | 10656 this[_controller] = null; |
10747 this[_controller] = async.StreamController$(T).broadcast({sync: true, on
Cancel: dart.bind(this, 'close')}); | 10657 this[_controller] = async.StreamController$(T).broadcast({sync: true, on
Cancel: dart.bind(this, 'close')}); |
10748 } | 10658 } |
10749 get stream() { | 10659 get stream() { |
10750 return this[_controller].stream; | 10660 return this[_controller].stream; |
10751 } | 10661 } |
10752 add(stream) { | 10662 add(stream) { |
10753 dart.as(stream, async.Stream$(T)); | 10663 dart.as(stream, async.Stream$(T)); |
10754 if (dart.notNull(this[_subscriptions].containsKey(stream))) | 10664 if (dart.notNull(this[_subscriptions].containsKey(stream))) return; |
10755 return; | |
10756 this[_subscriptions].set(stream, stream.listen(dart.bind(this[_controlle
r], 'add'), {onError: dart.bind(this[_controller], 'addError'), onDone: dart.fn(
(() => this.remove(stream)).bind(this), dart.void, [])})); | 10665 this[_subscriptions].set(stream, stream.listen(dart.bind(this[_controlle
r], 'add'), {onError: dart.bind(this[_controller], 'addError'), onDone: dart.fn(
(() => this.remove(stream)).bind(this), dart.void, [])})); |
10757 } | 10666 } |
10758 remove(stream) { | 10667 remove(stream) { |
10759 dart.as(stream, async.Stream$(T)); | 10668 dart.as(stream, async.Stream$(T)); |
10760 let subscription = this[_subscriptions].remove(stream); | 10669 let subscription = this[_subscriptions].remove(stream); |
10761 if (subscription != null) | 10670 if (subscription != null) subscription.cancel(); |
10762 subscription.cancel(); | |
10763 } | 10671 } |
10764 close() { | 10672 close() { |
10765 for (let subscription of this[_subscriptions].values) { | 10673 for (let subscription of this[_subscriptions].values) { |
10766 subscription.cancel(); | 10674 subscription.cancel(); |
10767 } | 10675 } |
10768 this[_subscriptions].clear(); | 10676 this[_subscriptions].clear(); |
10769 this[_controller].close(); | 10677 this[_controller].close(); |
10770 } | 10678 } |
10771 } | 10679 } |
10772 dart.defineNamedConstructor(_StreamPool, 'broadcast'); | 10680 dart.defineNamedConstructor(_StreamPool, 'broadcast'); |
(...skipping 826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11599 class NodeValidatorBuilder extends core.Object { | 11507 class NodeValidatorBuilder extends core.Object { |
11600 NodeValidatorBuilder() { | 11508 NodeValidatorBuilder() { |
11601 this[_validators] = dart.list([], NodeValidator); | 11509 this[_validators] = dart.list([], NodeValidator); |
11602 } | 11510 } |
11603 common() { | 11511 common() { |
11604 this[_validators] = dart.list([], NodeValidator); | 11512 this[_validators] = dart.list([], NodeValidator); |
11605 this.allowHtml5(); | 11513 this.allowHtml5(); |
11606 this.allowTemplating(); | 11514 this.allowTemplating(); |
11607 } | 11515 } |
11608 allowNavigation(uriPolicy) { | 11516 allowNavigation(uriPolicy) { |
11609 if (uriPolicy === void 0) | 11517 if (uriPolicy === void 0) uriPolicy = null; |
11610 uriPolicy = null; | |
11611 if (uriPolicy == null) { | 11518 if (uriPolicy == null) { |
11612 uriPolicy = UriPolicy.new(); | 11519 uriPolicy = UriPolicy.new(); |
11613 } | 11520 } |
11614 this.add(_SimpleNodeValidator.allowNavigation(uriPolicy)); | 11521 this.add(_SimpleNodeValidator.allowNavigation(uriPolicy)); |
11615 } | 11522 } |
11616 allowImages(uriPolicy) { | 11523 allowImages(uriPolicy) { |
11617 if (uriPolicy === void 0) | 11524 if (uriPolicy === void 0) uriPolicy = null; |
11618 uriPolicy = null; | |
11619 if (uriPolicy == null) { | 11525 if (uriPolicy == null) { |
11620 uriPolicy = UriPolicy.new(); | 11526 uriPolicy = UriPolicy.new(); |
11621 } | 11527 } |
11622 this.add(_SimpleNodeValidator.allowImages(uriPolicy)); | 11528 this.add(_SimpleNodeValidator.allowImages(uriPolicy)); |
11623 } | 11529 } |
11624 allowTextElements() { | 11530 allowTextElements() { |
11625 this.add(_SimpleNodeValidator.allowTextElements()); | 11531 this.add(_SimpleNodeValidator.allowTextElements()); |
11626 } | 11532 } |
11627 allowInlineStyles(opts) { | 11533 allowInlineStyles(opts) { |
11628 let tagName = opts && 'tagName' in opts ? opts.tagName : null; | 11534 let tagName = opts && 'tagName' in opts ? opts.tagName : null; |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11862 } | 11768 } |
11863 set(index, value) { | 11769 set(index, value) { |
11864 dart.as(value, E); | 11770 dart.as(value, E); |
11865 this[_list][dartx.set](index, value); | 11771 this[_list][dartx.set](index, value); |
11866 return value; | 11772 return value; |
11867 } | 11773 } |
11868 set length(newLength) { | 11774 set length(newLength) { |
11869 this[_list][dartx.length] = newLength; | 11775 this[_list][dartx.length] = newLength; |
11870 } | 11776 } |
11871 sort(compare) { | 11777 sort(compare) { |
11872 if (compare === void 0) | 11778 if (compare === void 0) compare = null; |
11873 compare = null; | |
11874 dart.as(compare, dart.functionType(core.int, [E, E])); | 11779 dart.as(compare, dart.functionType(core.int, [E, E])); |
11875 this[_list][dartx.sort](compare); | 11780 this[_list][dartx.sort](compare); |
11876 } | 11781 } |
11877 indexOf(element, start) { | 11782 indexOf(element, start) { |
11878 if (start === void 0) | 11783 if (start === void 0) start = 0; |
11879 start = 0; | |
11880 return this[_list][dartx.indexOf](element, start); | 11784 return this[_list][dartx.indexOf](element, start); |
11881 } | 11785 } |
11882 lastIndexOf(element, start) { | 11786 lastIndexOf(element, start) { |
11883 if (start === void 0) | 11787 if (start === void 0) start = null; |
11884 start = null; | |
11885 return this[_list][dartx.lastIndexOf](element, start); | 11788 return this[_list][dartx.lastIndexOf](element, start); |
11886 } | 11789 } |
11887 insert(index, element) { | 11790 insert(index, element) { |
11888 dart.as(element, E); | 11791 dart.as(element, E); |
11889 return this[_list][dartx.insert](index, element); | 11792 return this[_list][dartx.insert](index, element); |
11890 } | 11793 } |
11891 removeAt(index) { | 11794 removeAt(index) { |
11892 return dart.as(this[_list][dartx.removeAt](index), E); | 11795 return dart.as(this[_list][dartx.removeAt](index), E); |
11893 } | 11796 } |
11894 setRange(start, end, iterable, skipCount) { | 11797 setRange(start, end, iterable, skipCount) { |
11895 dart.as(iterable, core.Iterable$(E)); | 11798 dart.as(iterable, core.Iterable$(E)); |
11896 if (skipCount === void 0) | 11799 if (skipCount === void 0) skipCount = 0; |
11897 skipCount = 0; | |
11898 this[_list][dartx.setRange](start, end, iterable, skipCount); | 11800 this[_list][dartx.setRange](start, end, iterable, skipCount); |
11899 } | 11801 } |
11900 removeRange(start, end) { | 11802 removeRange(start, end) { |
11901 this[_list][dartx.removeRange](start, end); | 11803 this[_list][dartx.removeRange](start, end); |
11902 } | 11804 } |
11903 replaceRange(start, end, iterable) { | 11805 replaceRange(start, end, iterable) { |
11904 dart.as(iterable, core.Iterable$(E)); | 11806 dart.as(iterable, core.Iterable$(E)); |
11905 this[_list][dartx.replaceRange](start, end, iterable); | 11807 this[_list][dartx.replaceRange](start, end, iterable); |
11906 } | 11808 } |
11907 fillRange(start, end, fillValue) { | 11809 fillRange(start, end, fillValue) { |
11908 if (fillValue === void 0) | 11810 if (fillValue === void 0) fillValue = null; |
11909 fillValue = null; | |
11910 dart.as(fillValue, E); | 11811 dart.as(fillValue, E); |
11911 this[_list][dartx.fillRange](start, end, fillValue); | 11812 this[_list][dartx.fillRange](start, end, fillValue); |
11912 } | 11813 } |
11913 get rawList() { | 11814 get rawList() { |
11914 return dart.as(this[_list], core.List$(Node)); | 11815 return dart.as(this[_list], core.List$(Node)); |
11915 } | 11816 } |
11916 } | 11817 } |
11917 _WrappedList[dart.implements] = () => [html_common.NodeListWrapper]; | 11818 _WrappedList[dart.implements] = () => [html_common.NodeListWrapper]; |
11918 dart.setSignature(_WrappedList, { | 11819 dart.setSignature(_WrappedList, { |
11919 constructors: () => ({_WrappedList: [_WrappedList$(E), [core.List]]}), | 11820 constructors: () => ({_WrappedList: [_WrappedList$(E), [core.List]]}), |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12049 } | 11950 } |
12050 _VariableSizeListIterator[dart.implements] = () => [core.Iterator$(T)]; | 11951 _VariableSizeListIterator[dart.implements] = () => [core.Iterator$(T)]; |
12051 dart.setSignature(_VariableSizeListIterator, { | 11952 dart.setSignature(_VariableSizeListIterator, { |
12052 constructors: () => ({_VariableSizeListIterator: [_VariableSizeListIterato
r$(T), [core.List$(T)]]}), | 11953 constructors: () => ({_VariableSizeListIterator: [_VariableSizeListIterato
r$(T), [core.List$(T)]]}), |
12053 methods: () => ({moveNext: [core.bool, []]}) | 11954 methods: () => ({moveNext: [core.bool, []]}) |
12054 }); | 11955 }); |
12055 return _VariableSizeListIterator; | 11956 return _VariableSizeListIterator; |
12056 }); | 11957 }); |
12057 let _VariableSizeListIterator = _VariableSizeListIterator$(); | 11958 let _VariableSizeListIterator = _VariableSizeListIterator$(); |
12058 function _convertNativeToDart_Window(win) { | 11959 function _convertNativeToDart_Window(win) { |
12059 if (win == null) | 11960 if (win == null) return null; |
12060 return null; | |
12061 return _DOMWindowCrossFrame._createSafe(win); | 11961 return _DOMWindowCrossFrame._createSafe(win); |
12062 } | 11962 } |
12063 dart.fn(_convertNativeToDart_Window, WindowBase, [dart.dynamic]); | 11963 dart.fn(_convertNativeToDart_Window, WindowBase, [dart.dynamic]); |
12064 function _convertNativeToDart_EventTarget(e) { | 11964 function _convertNativeToDart_EventTarget(e) { |
12065 if (e == null) { | 11965 if (e == null) { |
12066 return null; | 11966 return null; |
12067 } | 11967 } |
12068 if ("postMessage" in e) { | 11968 if ("postMessage" in e) { |
12069 let window = _DOMWindowCrossFrame._createSafe(e); | 11969 let window = _DOMWindowCrossFrame._createSafe(e); |
12070 if (dart.is(window, EventTarget)) { | 11970 if (dart.is(window, EventTarget)) { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12107 get parent() { | 12007 get parent() { |
12108 return _DOMWindowCrossFrame._createSafe(this[_window].parent); | 12008 return _DOMWindowCrossFrame._createSafe(this[_window].parent); |
12109 } | 12009 } |
12110 get top() { | 12010 get top() { |
12111 return _DOMWindowCrossFrame._createSafe(this[_window].top); | 12011 return _DOMWindowCrossFrame._createSafe(this[_window].top); |
12112 } | 12012 } |
12113 close() { | 12013 close() { |
12114 return this[_window].close(); | 12014 return this[_window].close(); |
12115 } | 12015 } |
12116 postMessage(message, targetOrigin, messagePorts) { | 12016 postMessage(message, targetOrigin, messagePorts) { |
12117 if (messagePorts === void 0) | 12017 if (messagePorts === void 0) messagePorts = null; |
12118 messagePorts = null; | |
12119 if (messagePorts == null) { | 12018 if (messagePorts == null) { |
12120 this[_window].postMessage(html_common.convertDartToNative_SerializedScri
ptValue(message), targetOrigin); | 12019 this[_window].postMessage(html_common.convertDartToNative_SerializedScri
ptValue(message), targetOrigin); |
12121 } else { | 12020 } else { |
12122 this[_window].postMessage(html_common.convertDartToNative_SerializedScri
ptValue(message), targetOrigin, messagePorts); | 12021 this[_window].postMessage(html_common.convertDartToNative_SerializedScri
ptValue(message), targetOrigin, messagePorts); |
12123 } | 12022 } |
12124 } | 12023 } |
12125 _DOMWindowCrossFrame(window) { | 12024 _DOMWindowCrossFrame(window) { |
12126 this[_window] = window; | 12025 this[_window] = window; |
12127 } | 12026 } |
12128 static _createSafe(w) { | 12027 static _createSafe(w) { |
12129 if (dart.notNull(core.identical(w, exports.window))) { | 12028 if (dart.notNull(core.identical(w, exports.window))) { |
12130 return dart.as(w, WindowBase); | 12029 return dart.as(w, WindowBase); |
12131 } else { | 12030 } else { |
12132 return new _DOMWindowCrossFrame(w); | 12031 return new _DOMWindowCrossFrame(w); |
12133 } | 12032 } |
12134 } | 12033 } |
12135 get on() { | 12034 get on() { |
12136 return dart.throw(new core.UnsupportedError('You can only attach EventList
eners to your own window.')); | 12035 return dart.throw(new core.UnsupportedError('You can only attach EventList
eners to your own window.')); |
12137 } | 12036 } |
12138 [_addEventListener](type, listener, useCapture) { | 12037 [_addEventListener](type, listener, useCapture) { |
12139 if (type === void 0) | 12038 if (type === void 0) type = null; |
12140 type = null; | 12039 if (listener === void 0) listener = null; |
12141 if (listener === void 0) | 12040 if (useCapture === void 0) useCapture = null; |
12142 listener = null; | |
12143 if (useCapture === void 0) | |
12144 useCapture = null; | |
12145 return dart.throw(new core.UnsupportedError('You can only attach EventList
eners to your own window.')); | 12041 return dart.throw(new core.UnsupportedError('You can only attach EventList
eners to your own window.')); |
12146 } | 12042 } |
12147 addEventListener(type, listener, useCapture) { | 12043 addEventListener(type, listener, useCapture) { |
12148 if (useCapture === void 0) | 12044 if (useCapture === void 0) useCapture = null; |
12149 useCapture = null; | |
12150 return dart.throw(new core.UnsupportedError('You can only attach EventList
eners to your own window.')); | 12045 return dart.throw(new core.UnsupportedError('You can only attach EventList
eners to your own window.')); |
12151 } | 12046 } |
12152 dispatchEvent(event) { | 12047 dispatchEvent(event) { |
12153 return dart.throw(new core.UnsupportedError('You can only attach EventList
eners to your own window.')); | 12048 return dart.throw(new core.UnsupportedError('You can only attach EventList
eners to your own window.')); |
12154 } | 12049 } |
12155 [_removeEventListener](type, listener, useCapture) { | 12050 [_removeEventListener](type, listener, useCapture) { |
12156 if (type === void 0) | 12051 if (type === void 0) type = null; |
12157 type = null; | 12052 if (listener === void 0) listener = null; |
12158 if (listener === void 0) | 12053 if (useCapture === void 0) useCapture = null; |
12159 listener = null; | |
12160 if (useCapture === void 0) | |
12161 useCapture = null; | |
12162 return dart.throw(new core.UnsupportedError('You can only attach EventList
eners to your own window.')); | 12054 return dart.throw(new core.UnsupportedError('You can only attach EventList
eners to your own window.')); |
12163 } | 12055 } |
12164 removeEventListener(type, listener, useCapture) { | 12056 removeEventListener(type, listener, useCapture) { |
12165 if (useCapture === void 0) | 12057 if (useCapture === void 0) useCapture = null; |
12166 useCapture = null; | |
12167 return dart.throw(new core.UnsupportedError('You can only attach EventList
eners to your own window.')); | 12058 return dart.throw(new core.UnsupportedError('You can only attach EventList
eners to your own window.')); |
12168 } | 12059 } |
12169 } | 12060 } |
12170 _DOMWindowCrossFrame[dart.implements] = () => [WindowBase]; | 12061 _DOMWindowCrossFrame[dart.implements] = () => [WindowBase]; |
12171 dart.setSignature(_DOMWindowCrossFrame, { | 12062 dart.setSignature(_DOMWindowCrossFrame, { |
12172 constructors: () => ({_DOMWindowCrossFrame: [_DOMWindowCrossFrame, [dart.dyn
amic]]}), | 12063 constructors: () => ({_DOMWindowCrossFrame: [_DOMWindowCrossFrame, [dart.dyn
amic]]}), |
12173 methods: () => ({ | 12064 methods: () => ({ |
12174 close: [dart.void, []], | 12065 close: [dart.void, []], |
12175 postMessage: [dart.void, [dart.dynamic, core.String], [core.List]], | 12066 postMessage: [dart.void, [dart.dynamic, core.String], [core.List]], |
12176 [_addEventListener]: [dart.void, [], [core.String, EventListener, core.boo
l]], | 12067 [_addEventListener]: [dart.void, [], [core.String, EventListener, core.boo
l]], |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12256 set keyUpEvent(_) {}, | 12147 set keyUpEvent(_) {}, |
12257 get keyPressEvent() { | 12148 get keyPressEvent() { |
12258 return new _KeyboardEventHandler('keypress'); | 12149 return new _KeyboardEventHandler('keypress'); |
12259 }, | 12150 }, |
12260 set keyPressEvent(_) {} | 12151 set keyPressEvent(_) {} |
12261 }); | 12152 }); |
12262 class Platform extends core.Object {} | 12153 class Platform extends core.Object {} |
12263 const supportsTypedData = !!window.ArrayBuffer; | 12154 const supportsTypedData = !!window.ArrayBuffer; |
12264 Platform.supportsSimd = false; | 12155 Platform.supportsSimd = false; |
12265 function _wrapZone(callback) { | 12156 function _wrapZone(callback) { |
12266 if (dart.equals(async.Zone.current, async.Zone.ROOT)) | 12157 if (dart.equals(async.Zone.current, async.Zone.ROOT)) return callback; |
12267 return callback; | 12158 if (callback == null) return null; |
12268 if (callback == null) | |
12269 return null; | |
12270 return async.Zone.current.bindUnaryCallback(callback, {runGuarded: true}); | 12159 return async.Zone.current.bindUnaryCallback(callback, {runGuarded: true}); |
12271 } | 12160 } |
12272 dart.fn(_wrapZone, dart.dynamic, [dart.functionType(dart.dynamic, [dart.dynami
c])]); | 12161 dart.fn(_wrapZone, dart.dynamic, [dart.functionType(dart.dynamic, [dart.dynami
c])]); |
12273 function _wrapBinaryZone(callback) { | 12162 function _wrapBinaryZone(callback) { |
12274 if (dart.equals(async.Zone.current, async.Zone.ROOT)) | 12163 if (dart.equals(async.Zone.current, async.Zone.ROOT)) return callback; |
12275 return callback; | 12164 if (callback == null) return null; |
12276 if (callback == null) | |
12277 return null; | |
12278 return async.Zone.current.bindBinaryCallback(callback, {runGuarded: true}); | 12165 return async.Zone.current.bindBinaryCallback(callback, {runGuarded: true}); |
12279 } | 12166 } |
12280 dart.fn(_wrapBinaryZone, dart.dynamic, [dart.functionType(dart.dynamic, [dart.
dynamic, dart.dynamic])]); | 12167 dart.fn(_wrapBinaryZone, dart.dynamic, [dart.functionType(dart.dynamic, [dart.
dynamic, dart.dynamic])]); |
12281 function query(relativeSelectors) { | 12168 function query(relativeSelectors) { |
12282 return exports.document.query(relativeSelectors); | 12169 return exports.document.query(relativeSelectors); |
12283 } | 12170 } |
12284 dart.fn(query, Element, [core.String]); | 12171 dart.fn(query, Element, [core.String]); |
12285 function queryAll(relativeSelectors) { | 12172 function queryAll(relativeSelectors) { |
12286 return exports.document.queryAll(relativeSelectors); | 12173 return exports.document.queryAll(relativeSelectors); |
12287 } | 12174 } |
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12697 exports.ElementUpgrader = ElementUpgrader; | 12584 exports.ElementUpgrader = ElementUpgrader; |
12698 exports.NodeValidator = NodeValidator; | 12585 exports.NodeValidator = NodeValidator; |
12699 exports.NodeTreeSanitizer = NodeTreeSanitizer; | 12586 exports.NodeTreeSanitizer = NodeTreeSanitizer; |
12700 exports.UriPolicy = UriPolicy; | 12587 exports.UriPolicy = UriPolicy; |
12701 exports.spawnDomUri = spawnDomUri; | 12588 exports.spawnDomUri = spawnDomUri; |
12702 exports.unwrap_jso = unwrap_jso; | 12589 exports.unwrap_jso = unwrap_jso; |
12703 exports.wrap_jso = wrap_jso; | 12590 exports.wrap_jso = wrap_jso; |
12704 exports.createCustomUpgrader = createCustomUpgrader; | 12591 exports.createCustomUpgrader = createCustomUpgrader; |
12705 exports.getHtmlCreateFunction = getHtmlCreateFunction; | 12592 exports.getHtmlCreateFunction = getHtmlCreateFunction; |
12706 }); | 12593 }); |
OLD | NEW |