| 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/_metadata', |
| 5 'dart/_js_helper', | 6 'dart/_js_helper', |
| 6 'dart/async', | 7 'dart/async', |
| 7 'dart/collection', | 8 'dart/collection', |
| 8 'dart/_foreign_helper', | 9 'dart/_foreign_helper', |
| 9 'dart/isolate' | 10 'dart/isolate' |
| 10 ], /* Lazy imports */[ | 11 ], /* Lazy imports */[ |
| 11 'dart/_metadata', | |
| 12 'dart/html_common' | 12 'dart/html_common' |
| 13 ], function(exports, dart, math, core, _js_helper, async, collection, _foreign_h
elper, isolate, _metadata, html_common) { | 13 ], function(exports, dart, math, core, _metadata, _js_helper, $async, collection
, _foreign_helper, isolate, html_common) { |
| 14 'use strict'; | 14 'use strict'; |
| 15 let dartx = dart.dartx; | 15 let dartx = dart.dartx; |
| 16 dart.export(exports, math, ['Rectangle', 'Point'], []); | 16 dart.export_(exports, math, ['Rectangle', 'Point'], []); |
| 17 class DartHtmlDomObject extends core.Object { | 17 class DartHtmlDomObject extends core.Object { |
| 18 DartHtmlDomObject() { | 18 DartHtmlDomObject() { |
| 19 this.raw = null; | 19 this.raw = null; |
| 20 } | 20 } |
| 21 internal_() { | 21 internal_() { |
| 22 this.raw = null; | 22 this.raw = null; |
| 23 } | 23 } |
| 24 } | 24 } |
| 25 dart.defineNamedConstructor(DartHtmlDomObject, 'internal_'); | 25 dart.defineNamedConstructor(DartHtmlDomObject, 'internal_'); |
| 26 dart.setSignature(DartHtmlDomObject, { | 26 dart.setSignature(DartHtmlDomObject, { |
| (...skipping 1586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1613 let useCapture = opts && 'useCapture' in opts ? opts.useCapture : false; | 1613 let useCapture = opts && 'useCapture' in opts ? opts.useCapture : false; |
| 1614 return new (_ElementListEventStreamImpl$(T))(dart.as(e, core.Iterable$(E
lement)), this[_eventType], useCapture); | 1614 return new (_ElementListEventStreamImpl$(T))(dart.as(e, core.Iterable$(E
lement)), this[_eventType], useCapture); |
| 1615 } | 1615 } |
| 1616 getEventType(target) { | 1616 getEventType(target) { |
| 1617 return this[_eventType]; | 1617 return this[_eventType]; |
| 1618 } | 1618 } |
| 1619 } | 1619 } |
| 1620 dart.setSignature(EventStreamProvider, { | 1620 dart.setSignature(EventStreamProvider, { |
| 1621 constructors: () => ({EventStreamProvider: [EventStreamProvider$(T), [core
.String]]}), | 1621 constructors: () => ({EventStreamProvider: [EventStreamProvider$(T), [core
.String]]}), |
| 1622 methods: () => ({ | 1622 methods: () => ({ |
| 1623 forTarget: [async.Stream$(T), [EventTarget], {useCapture: core.bool}], | 1623 forTarget: [$async.Stream$(T), [EventTarget], {useCapture: core.bool}], |
| 1624 forElement: [ElementStream$(T), [Element], {useCapture: core.bool}], | 1624 forElement: [ElementStream$(T), [Element], {useCapture: core.bool}], |
| 1625 [_forElementList]: [ElementStream$(T), [ElementList], {useCapture: core.
bool}], | 1625 [_forElementList]: [ElementStream$(T), [ElementList], {useCapture: core.
bool}], |
| 1626 getEventType: [core.String, [EventTarget]] | 1626 getEventType: [core.String, [EventTarget]] |
| 1627 }) | 1627 }) |
| 1628 }); | 1628 }); |
| 1629 return EventStreamProvider; | 1629 return EventStreamProvider; |
| 1630 }); | 1630 }); |
| 1631 let EventStreamProvider = EventStreamProvider$(); | 1631 const EventStreamProvider = EventStreamProvider$(); |
| 1632 const _createEvent = Symbol('_createEvent'); | 1632 const _createEvent = Symbol('_createEvent'); |
| 1633 const _initEvent = Symbol('_initEvent'); | 1633 const _initEvent = Symbol('_initEvent'); |
| 1634 const _selector = Symbol('_selector'); | 1634 const _selector = Symbol('_selector'); |
| 1635 const _get_currentTarget = Symbol('_get_currentTarget'); | 1635 const _get_currentTarget = Symbol('_get_currentTarget'); |
| 1636 const _get_target = Symbol('_get_target'); | 1636 const _get_target = Symbol('_get_target'); |
| 1637 const _initEvent_1 = Symbol('_initEvent_1'); | 1637 const _initEvent_1 = Symbol('_initEvent_1'); |
| 1638 const _preventDefault_1 = Symbol('_preventDefault_1'); | 1638 const _preventDefault_1 = Symbol('_preventDefault_1'); |
| 1639 const _stopImmediatePropagation_1 = Symbol('_stopImmediatePropagation_1'); | 1639 const _stopImmediatePropagation_1 = Symbol('_stopImmediatePropagation_1'); |
| 1640 const _stopPropagation_1 = Symbol('_stopPropagation_1'); | 1640 const _stopPropagation_1 = Symbol('_stopPropagation_1'); |
| 1641 class Event extends DartHtmlDomObject { | 1641 class Event extends DartHtmlDomObject { |
| (...skipping 3670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5312 'length', | 5312 'length', |
| 5313 'iterator', | 5313 'iterator', |
| 5314 'first', | 5314 'first', |
| 5315 'last', | 5315 'last', |
| 5316 'single' | 5316 'single' |
| 5317 ]); | 5317 ]); |
| 5318 const ElementList$ = dart.generic(function(T) { | 5318 const ElementList$ = dart.generic(function(T) { |
| 5319 class ElementList extends collection.ListBase$(T) {} | 5319 class ElementList extends collection.ListBase$(T) {} |
| 5320 return ElementList; | 5320 return ElementList; |
| 5321 }); | 5321 }); |
| 5322 let ElementList = ElementList$(); | 5322 const ElementList = ElementList$(); |
| 5323 const _nodeList = Symbol('_nodeList'); | 5323 const _nodeList = Symbol('_nodeList'); |
| 5324 class _FrozenElementList extends collection.ListBase$(Element) { | 5324 class _FrozenElementList extends collection.ListBase$(Element) { |
| 5325 _wrap(nodeList) { | 5325 _wrap(nodeList) { |
| 5326 this[_nodeList] = nodeList; | 5326 this[_nodeList] = nodeList; |
| 5327 this.dartClass_instance = null; | 5327 this.dartClass_instance = null; |
| 5328 this.dartClass_instance = this[_nodeList]; | 5328 this.dartClass_instance = this[_nodeList]; |
| 5329 } | 5329 } |
| 5330 get length() { | 5330 get length() { |
| 5331 return this[_nodeList][dartx.length]; | 5331 return this[_nodeList][dartx.length]; |
| 5332 } | 5332 } |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5480 class Events extends core.Object { | 5480 class Events extends core.Object { |
| 5481 Events(ptr) { | 5481 Events(ptr) { |
| 5482 this[_ptr] = ptr; | 5482 this[_ptr] = ptr; |
| 5483 } | 5483 } |
| 5484 get(type) { | 5484 get(type) { |
| 5485 return new _EventStream(this[_ptr], type, false); | 5485 return new _EventStream(this[_ptr], type, false); |
| 5486 } | 5486 } |
| 5487 } | 5487 } |
| 5488 dart.setSignature(Events, { | 5488 dart.setSignature(Events, { |
| 5489 constructors: () => ({Events: [Events, [EventTarget]]}), | 5489 constructors: () => ({Events: [Events, [EventTarget]]}), |
| 5490 methods: () => ({get: [async.Stream, [core.String]]}) | 5490 methods: () => ({get: [$async.Stream, [core.String]]}) |
| 5491 }); | 5491 }); |
| 5492 class ElementEvents extends Events { | 5492 class ElementEvents extends Events { |
| 5493 ElementEvents(ptr) { | 5493 ElementEvents(ptr) { |
| 5494 super.Events(ptr); | 5494 super.Events(ptr); |
| 5495 } | 5495 } |
| 5496 get(type) { | 5496 get(type) { |
| 5497 if (dart.notNull(ElementEvents.webkitEvents.keys[dartx.contains](type[dart
x.toLowerCase]()))) { | 5497 if (dart.notNull(ElementEvents.webkitEvents.keys[dartx.contains](type[dart
x.toLowerCase]()))) { |
| 5498 if (dart.notNull(html_common.Device.isWebKit)) { | 5498 if (dart.notNull(html_common.Device.isWebKit)) { |
| 5499 return new _ElementEventStreamImpl(this[_ptr], ElementEvents.webkitEve
nts.get(type[dartx.toLowerCase]()), false); | 5499 return new _ElementEventStreamImpl(this[_ptr], ElementEvents.webkitEve
nts.get(type[dartx.toLowerCase]()), false); |
| 5500 } | 5500 } |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5759 'removeWhere', | 5759 'removeWhere', |
| 5760 'retainWhere', | 5760 'retainWhere', |
| 5761 'setRange', | 5761 'setRange', |
| 5762 'removeRange', | 5762 'removeRange', |
| 5763 'replaceRange', | 5763 'replaceRange', |
| 5764 'fillRange', | 5764 'fillRange', |
| 5765 'iterator' | 5765 'iterator' |
| 5766 ]); | 5766 ]); |
| 5767 return ImmutableListMixin; | 5767 return ImmutableListMixin; |
| 5768 }); | 5768 }); |
| 5769 let ImmutableListMixin = ImmutableListMixin$(); | 5769 const ImmutableListMixin = ImmutableListMixin$(); |
| 5770 const _namedItem_1 = Symbol('_namedItem_1'); | 5770 const _namedItem_1 = Symbol('_namedItem_1'); |
| 5771 class HtmlCollection extends dart.mixin(DartHtmlDomObject, collection.ListMixi
n$(Node), ImmutableListMixin$(Node)) { | 5771 class HtmlCollection extends dart.mixin(DartHtmlDomObject, collection.ListMixi
n$(Node), ImmutableListMixin$(Node)) { |
| 5772 static _() { | 5772 static _() { |
| 5773 dart.throw(new core.UnsupportedError("Not supported")); | 5773 dart.throw(new core.UnsupportedError("Not supported")); |
| 5774 } | 5774 } |
| 5775 static internalCreateHtmlCollection() { | 5775 static internalCreateHtmlCollection() { |
| 5776 return new HtmlCollection.internal_(); | 5776 return new HtmlCollection.internal_(); |
| 5777 } | 5777 } |
| 5778 internal_() { | 5778 internal_() { |
| 5779 super.DartHtmlDomObject(); | 5779 super.DartHtmlDomObject(); |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5990 return dart.as(dart.dcall(this[_eventTypeGetter], target), core.String); | 5990 return dart.as(dart.dcall(this[_eventTypeGetter], target), core.String); |
| 5991 } | 5991 } |
| 5992 get [_eventType]() { | 5992 get [_eventType]() { |
| 5993 return dart.throw(new core.UnsupportedError('Access type through getEven
tType method.')); | 5993 return dart.throw(new core.UnsupportedError('Access type through getEven
tType method.')); |
| 5994 } | 5994 } |
| 5995 } | 5995 } |
| 5996 _CustomEventStreamProvider[dart.implements] = () => [EventStreamProvider$(T)
]; | 5996 _CustomEventStreamProvider[dart.implements] = () => [EventStreamProvider$(T)
]; |
| 5997 dart.setSignature(_CustomEventStreamProvider, { | 5997 dart.setSignature(_CustomEventStreamProvider, { |
| 5998 constructors: () => ({_CustomEventStreamProvider: [_CustomEventStreamProvi
der$(T), [dart.dynamic]]}), | 5998 constructors: () => ({_CustomEventStreamProvider: [_CustomEventStreamProvi
der$(T), [dart.dynamic]]}), |
| 5999 methods: () => ({ | 5999 methods: () => ({ |
| 6000 forTarget: [async.Stream$(T), [EventTarget], {useCapture: core.bool}], | 6000 forTarget: [$async.Stream$(T), [EventTarget], {useCapture: core.bool}], |
| 6001 forElement: [ElementStream$(T), [Element], {useCapture: core.bool}], | 6001 forElement: [ElementStream$(T), [Element], {useCapture: core.bool}], |
| 6002 [_forElementList]: [ElementStream$(T), [ElementList], {useCapture: core.
bool}], | 6002 [_forElementList]: [ElementStream$(T), [ElementList], {useCapture: core.
bool}], |
| 6003 getEventType: [core.String, [EventTarget]] | 6003 getEventType: [core.String, [EventTarget]] |
| 6004 }) | 6004 }) |
| 6005 }); | 6005 }); |
| 6006 return _CustomEventStreamProvider; | 6006 return _CustomEventStreamProvider; |
| 6007 }); | 6007 }); |
| 6008 let _CustomEventStreamProvider = _CustomEventStreamProvider$(); | 6008 const _CustomEventStreamProvider = _CustomEventStreamProvider$(); |
| 6009 HtmlDocument.visibilityChangeEvent = dart.const(new (_CustomEventStreamProvide
r$(Event))(HtmlDocument._determineVisibilityChangeEventType)); | 6009 HtmlDocument.visibilityChangeEvent = dart.const(new (_CustomEventStreamProvide
r$(Event))(HtmlDocument._determineVisibilityChangeEventType)); |
| 6010 class HtmlHtmlElement extends HtmlElement { | 6010 class HtmlHtmlElement extends HtmlElement { |
| 6011 static _() { | 6011 static _() { |
| 6012 dart.throw(new core.UnsupportedError("Not supported")); | 6012 dart.throw(new core.UnsupportedError("Not supported")); |
| 6013 } | 6013 } |
| 6014 static new() { | 6014 static new() { |
| 6015 return dart.as(exports.document.createElement("html"), HtmlHtmlElement); | 6015 return dart.as(exports.document.createElement("html"), HtmlHtmlElement); |
| 6016 } | 6016 } |
| 6017 static internalCreateHtmlHtmlElement() { | 6017 static internalCreateHtmlHtmlElement() { |
| 6018 return new HtmlHtmlElement.internal_(); | 6018 return new HtmlHtmlElement.internal_(); |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6106 return HttpRequest.request(url, {method: 'POST', withCredentials: withCred
entials, responseType: responseType, requestHeaders: requestHeaders, sendData: f
ormData, onProgress: onProgress}); | 6106 return HttpRequest.request(url, {method: 'POST', withCredentials: withCred
entials, responseType: responseType, requestHeaders: requestHeaders, sendData: f
ormData, onProgress: onProgress}); |
| 6107 } | 6107 } |
| 6108 static request(url, opts) { | 6108 static request(url, opts) { |
| 6109 let method = opts && 'method' in opts ? opts.method : null; | 6109 let method = opts && 'method' in opts ? opts.method : null; |
| 6110 let withCredentials = opts && 'withCredentials' in opts ? opts.withCredent
ials : null; | 6110 let withCredentials = opts && 'withCredentials' in opts ? opts.withCredent
ials : null; |
| 6111 let responseType = opts && 'responseType' in opts ? opts.responseType : nu
ll; | 6111 let responseType = opts && 'responseType' in opts ? opts.responseType : nu
ll; |
| 6112 let mimeType = opts && 'mimeType' in opts ? opts.mimeType : null; | 6112 let mimeType = opts && 'mimeType' in opts ? opts.mimeType : null; |
| 6113 let requestHeaders = opts && 'requestHeaders' in opts ? opts.requestHeader
s : null; | 6113 let requestHeaders = opts && 'requestHeaders' in opts ? opts.requestHeader
s : null; |
| 6114 let sendData = opts && 'sendData' in opts ? opts.sendData : null; | 6114 let sendData = opts && 'sendData' in opts ? opts.sendData : null; |
| 6115 let onProgress = opts && 'onProgress' in opts ? opts.onProgress : null; | 6115 let onProgress = opts && 'onProgress' in opts ? opts.onProgress : null; |
| 6116 let completer = async.Completer$(HttpRequest).new(); | 6116 let completer = $async.Completer$(HttpRequest).new(); |
| 6117 let xhr = HttpRequest.new(); | 6117 let xhr = HttpRequest.new(); |
| 6118 if (method == null) { | 6118 if (method == null) { |
| 6119 method = 'GET'; | 6119 method = 'GET'; |
| 6120 } | 6120 } |
| 6121 xhr.open(method, url, {async: true}); | 6121 xhr.open(method, url, {async: true}); |
| 6122 if (withCredentials != null) { | 6122 if (withCredentials != null) { |
| 6123 xhr.withCredentials = withCredentials; | 6123 xhr.withCredentials = withCredentials; |
| 6124 } | 6124 } |
| 6125 if (responseType != null) { | 6125 if (responseType != null) { |
| 6126 xhr.responseType = responseType; | 6126 xhr.responseType = responseType; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6166 } | 6166 } |
| 6167 static get supportsOverrideMimeType() { | 6167 static get supportsOverrideMimeType() { |
| 6168 return true; | 6168 return true; |
| 6169 } | 6169 } |
| 6170 static requestCrossOrigin(url, opts) { | 6170 static requestCrossOrigin(url, opts) { |
| 6171 let method = opts && 'method' in opts ? opts.method : null; | 6171 let method = opts && 'method' in opts ? opts.method : null; |
| 6172 let sendData = opts && 'sendData' in opts ? opts.sendData : null; | 6172 let sendData = opts && 'sendData' in opts ? opts.sendData : null; |
| 6173 if (dart.notNull(HttpRequest.supportsCrossOrigin)) { | 6173 if (dart.notNull(HttpRequest.supportsCrossOrigin)) { |
| 6174 return dart.as(HttpRequest.request(url, {method: method, sendData: sendD
ata}).then(dart.fn(xhr => { | 6174 return dart.as(HttpRequest.request(url, {method: method, sendData: sendD
ata}).then(dart.fn(xhr => { |
| 6175 return xhr.responseText; | 6175 return xhr.responseText; |
| 6176 }, dart.dynamic, [HttpRequest])), async.Future$(core.String)); | 6176 }, dart.dynamic, [HttpRequest])), $async.Future$(core.String)); |
| 6177 } | 6177 } |
| 6178 } | 6178 } |
| 6179 get responseHeaders() { | 6179 get responseHeaders() { |
| 6180 let headers = dart.map(); | 6180 let headers = dart.map(); |
| 6181 let headersString = this.getAllResponseHeaders(); | 6181 let headersString = this.getAllResponseHeaders(); |
| 6182 if (headersString == null) { | 6182 if (headersString == null) { |
| 6183 return headers; | 6183 return headers; |
| 6184 } | 6184 } |
| 6185 let headersList = headersString[dartx.split]('\r\n'); | 6185 let headersList = headersString[dartx.split]('\r\n'); |
| 6186 for (let header of headersList) { | 6186 for (let header of headersList) { |
| 6187 if (dart.notNull(header[dartx.isEmpty])) { | 6187 if (dart.notNull(header[dartx.isEmpty])) { |
| 6188 continue; | 6188 continue; |
| 6189 } | 6189 } |
| 6190 let splitIdx = header[dartx.indexOf](': '); | 6190 let splitIdx = header[dartx.indexOf](': '); |
| 6191 if (splitIdx == -1) { | 6191 if (splitIdx == -1) { |
| 6192 continue; | 6192 continue; |
| 6193 } | 6193 } |
| 6194 let key = header[dartx.substring](0, splitIdx)[dartx.toLowerCase](); | 6194 let key = header[dartx.substring](0, splitIdx)[dartx.toLowerCase](); |
| 6195 let value = header[dartx.substring](dart.notNull(splitIdx) + 2); | 6195 let value = header[dartx.substring](dart.notNull(splitIdx) + 2); |
| 6196 if (dart.notNull(headers.containsKey(key))) { | 6196 if (dart.notNull(headers.containsKey(key))) { |
| 6197 headers.set(key, `${headers.get(key)}, ${value}`); | 6197 headers.set(key, `${headers.get(key)}, ${value}`); |
| 6198 } else { | 6198 } else { |
| 6199 headers.set(key, value); | 6199 headers.set(key, value); |
| 6200 } | 6200 } |
| 6201 } | 6201 } |
| 6202 return headers; | 6202 return headers; |
| 6203 } | 6203 } |
| 6204 open(method, url, opts) { | 6204 open(method, url, opts) { |
| 6205 let async = opts && 'async' in opts ? opts.async : null; | 6205 let async$ = opts && 'async' in opts ? opts.async : null; |
| 6206 let user = opts && 'user' in opts ? opts.user : null; | 6206 let user = opts && 'user' in opts ? opts.user : null; |
| 6207 let password = opts && 'password' in opts ? opts.password : null; | 6207 let password = opts && 'password' in opts ? opts.password : null; |
| 6208 if (async == null && user == null && password == null) { | 6208 if (async$ == null && user == null && password == null) { |
| 6209 this.raw.open(method, url); | 6209 this.raw.open(method, url); |
| 6210 } else { | 6210 } else { |
| 6211 this.raw.open(method, url, async, user, password); | 6211 this.raw.open(method, url, async$, user, password); |
| 6212 } | 6212 } |
| 6213 } | 6213 } |
| 6214 get responseType() { | 6214 get responseType() { |
| 6215 return this.raw.responseType; | 6215 return this.raw.responseType; |
| 6216 } | 6216 } |
| 6217 set responseType(value) { | 6217 set responseType(value) { |
| 6218 this.raw.responseType = value; | 6218 this.raw.responseType = value; |
| 6219 } | 6219 } |
| 6220 static _() { | 6220 static _() { |
| 6221 dart.throw(new core.UnsupportedError("Not supported")); | 6221 dart.throw(new core.UnsupportedError("Not supported")); |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6351 overrideMimeType: [dart.void, [core.String]], | 6351 overrideMimeType: [dart.void, [core.String]], |
| 6352 [_overrideMimeType_1]: [dart.void, [dart.dynamic]], | 6352 [_overrideMimeType_1]: [dart.void, [dart.dynamic]], |
| 6353 send: [dart.void, [], [dart.dynamic]], | 6353 send: [dart.void, [], [dart.dynamic]], |
| 6354 [_send_1]: [dart.void, []], | 6354 [_send_1]: [dart.void, []], |
| 6355 [_send_2]: [dart.void, [Document]], | 6355 [_send_2]: [dart.void, [Document]], |
| 6356 [_send_3]: [dart.void, [core.String]], | 6356 [_send_3]: [dart.void, [core.String]], |
| 6357 setRequestHeader: [dart.void, [core.String, core.String]], | 6357 setRequestHeader: [dart.void, [core.String, core.String]], |
| 6358 [_setRequestHeader_1]: [dart.void, [dart.dynamic, dart.dynamic]] | 6358 [_setRequestHeader_1]: [dart.void, [dart.dynamic, dart.dynamic]] |
| 6359 }), | 6359 }), |
| 6360 statics: () => ({ | 6360 statics: () => ({ |
| 6361 getString: [async.Future$(core.String), [core.String], {withCredentials: c
ore.bool, onProgress: dart.functionType(dart.void, [ProgressEvent])}], | 6361 getString: [$async.Future$(core.String), [core.String], {withCredentials:
core.bool, onProgress: dart.functionType(dart.void, [ProgressEvent])}], |
| 6362 postFormData: [async.Future$(HttpRequest), [core.String, core.Map$(core.St
ring, core.String)], {withCredentials: core.bool, responseType: core.String, req
uestHeaders: core.Map$(core.String, core.String), onProgress: dart.functionType(
dart.void, [ProgressEvent])}], | 6362 postFormData: [$async.Future$(HttpRequest), [core.String, core.Map$(core.S
tring, core.String)], {withCredentials: core.bool, responseType: core.String, re
questHeaders: core.Map$(core.String, core.String), onProgress: dart.functionType
(dart.void, [ProgressEvent])}], |
| 6363 request: [async.Future$(HttpRequest), [core.String], {method: core.String,
withCredentials: core.bool, responseType: core.String, mimeType: core.String, r
equestHeaders: core.Map$(core.String, core.String), sendData: dart.dynamic, onPr
ogress: dart.functionType(dart.void, [ProgressEvent])}], | 6363 request: [$async.Future$(HttpRequest), [core.String], {method: core.String
, withCredentials: core.bool, responseType: core.String, mimeType: core.String,
requestHeaders: core.Map$(core.String, core.String), sendData: dart.dynamic, onP
rogress: dart.functionType(dart.void, [ProgressEvent])}], |
| 6364 requestCrossOrigin: [async.Future$(core.String), [core.String], {method: c
ore.String, sendData: core.String}], | 6364 requestCrossOrigin: [$async.Future$(core.String), [core.String], {method:
core.String, sendData: core.String}], |
| 6365 _create_1: [HttpRequest, []], | 6365 _create_1: [HttpRequest, []], |
| 6366 internalCreateHttpRequest: [HttpRequest, []] | 6366 internalCreateHttpRequest: [HttpRequest, []] |
| 6367 }), | 6367 }), |
| 6368 names: ['getString', 'postFormData', 'request', 'requestCrossOrigin', '_crea
te_1', 'internalCreateHttpRequest'] | 6368 names: ['getString', 'postFormData', 'request', 'requestCrossOrigin', '_crea
te_1', 'internalCreateHttpRequest'] |
| 6369 }); | 6369 }); |
| 6370 HttpRequest[dart.metadata] = () => [dart.const(new _metadata.DomName('XMLHttpR
equest')), dart.const(new _js_helper.Native("XMLHttpRequest"))]; | 6370 HttpRequest[dart.metadata] = () => [dart.const(new _metadata.DomName('XMLHttpR
equest')), dart.const(new _js_helper.Native("XMLHttpRequest"))]; |
| 6371 class ProgressEvent extends Event { | 6371 class ProgressEvent extends Event { |
| 6372 static _() { | 6372 static _() { |
| 6373 dart.throw(new core.UnsupportedError("Not supported")); | 6373 dart.throw(new core.UnsupportedError("Not supported")); |
| 6374 } | 6374 } |
| (...skipping 1164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7539 get vendor() { | 7539 get vendor() { |
| 7540 return dart.as(wrap_jso(this.raw.vendor), core.String); | 7540 return dart.as(wrap_jso(this.raw.vendor), core.String); |
| 7541 } | 7541 } |
| 7542 get vendorSub() { | 7542 get vendorSub() { |
| 7543 return dart.as(wrap_jso(this.raw.vendorSub), core.String); | 7543 return dart.as(wrap_jso(this.raw.vendorSub), core.String); |
| 7544 } | 7544 } |
| 7545 getBattery() { | 7545 getBattery() { |
| 7546 return this[_getBattery_1](); | 7546 return this[_getBattery_1](); |
| 7547 } | 7547 } |
| 7548 [_getBattery_1]() { | 7548 [_getBattery_1]() { |
| 7549 return dart.as(wrap_jso(this.raw.getBattery()), async.Future); | 7549 return dart.as(wrap_jso(this.raw.getBattery()), $async.Future); |
| 7550 } | 7550 } |
| 7551 getStorageUpdates() { | 7551 getStorageUpdates() { |
| 7552 this[_getStorageUpdates_1](); | 7552 this[_getStorageUpdates_1](); |
| 7553 return; | 7553 return; |
| 7554 } | 7554 } |
| 7555 [_getStorageUpdates_1]() { | 7555 [_getStorageUpdates_1]() { |
| 7556 return wrap_jso(this.raw.getStorageUpdates()); | 7556 return wrap_jso(this.raw.getStorageUpdates()); |
| 7557 } | 7557 } |
| 7558 registerProtocolHandler(scheme, url, title) { | 7558 registerProtocolHandler(scheme, url, title) { |
| 7559 this[_registerProtocolHandler_1](scheme, url, title); | 7559 this[_registerProtocolHandler_1](scheme, url, title); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 7573 } | 7573 } |
| 7574 } | 7574 } |
| 7575 Navigator[dart.implements] = () => [NavigatorCpu]; | 7575 Navigator[dart.implements] = () => [NavigatorCpu]; |
| 7576 dart.defineNamedConstructor(Navigator, 'internal_'); | 7576 dart.defineNamedConstructor(Navigator, 'internal_'); |
| 7577 dart.setSignature(Navigator, { | 7577 dart.setSignature(Navigator, { |
| 7578 constructors: () => ({ | 7578 constructors: () => ({ |
| 7579 _: [Navigator, []], | 7579 _: [Navigator, []], |
| 7580 internal_: [Navigator, []] | 7580 internal_: [Navigator, []] |
| 7581 }), | 7581 }), |
| 7582 methods: () => ({ | 7582 methods: () => ({ |
| 7583 getBattery: [async.Future, []], | 7583 getBattery: [$async.Future, []], |
| 7584 [_getBattery_1]: [async.Future, []], | 7584 [_getBattery_1]: [$async.Future, []], |
| 7585 getStorageUpdates: [dart.void, []], | 7585 getStorageUpdates: [dart.void, []], |
| 7586 [_getStorageUpdates_1]: [dart.void, []], | 7586 [_getStorageUpdates_1]: [dart.void, []], |
| 7587 registerProtocolHandler: [dart.void, [core.String, core.String, core.Strin
g]], | 7587 registerProtocolHandler: [dart.void, [core.String, core.String, core.Strin
g]], |
| 7588 [_registerProtocolHandler_1]: [dart.void, [dart.dynamic, dart.dynamic, dar
t.dynamic]], | 7588 [_registerProtocolHandler_1]: [dart.void, [dart.dynamic, dart.dynamic, dar
t.dynamic]], |
| 7589 sendBeacon: [core.bool, [core.String, core.String]], | 7589 sendBeacon: [core.bool, [core.String, core.String]], |
| 7590 [_sendBeacon_1]: [core.bool, [dart.dynamic, dart.dynamic]] | 7590 [_sendBeacon_1]: [core.bool, [dart.dynamic, dart.dynamic]] |
| 7591 }), | 7591 }), |
| 7592 statics: () => ({internalCreateNavigator: [Navigator, []]}), | 7592 statics: () => ({internalCreateNavigator: [Navigator, []]}), |
| 7593 names: ['internalCreateNavigator'] | 7593 names: ['internalCreateNavigator'] |
| 7594 }); | 7594 }); |
| (...skipping 1002 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8597 const _scrollTo_1 = Symbol('_scrollTo_1'); | 8597 const _scrollTo_1 = Symbol('_scrollTo_1'); |
| 8598 const _scrollTo_2 = Symbol('_scrollTo_2'); | 8598 const _scrollTo_2 = Symbol('_scrollTo_2'); |
| 8599 const _scrollTo_3 = Symbol('_scrollTo_3'); | 8599 const _scrollTo_3 = Symbol('_scrollTo_3'); |
| 8600 const _scrollTo_4 = Symbol('_scrollTo_4'); | 8600 const _scrollTo_4 = Symbol('_scrollTo_4'); |
| 8601 const _showModalDialog_1 = Symbol('_showModalDialog_1'); | 8601 const _showModalDialog_1 = Symbol('_showModalDialog_1'); |
| 8602 const _showModalDialog_2 = Symbol('_showModalDialog_2'); | 8602 const _showModalDialog_2 = Symbol('_showModalDialog_2'); |
| 8603 const _showModalDialog_3 = Symbol('_showModalDialog_3'); | 8603 const _showModalDialog_3 = Symbol('_showModalDialog_3'); |
| 8604 const _stop_1 = Symbol('_stop_1'); | 8604 const _stop_1 = Symbol('_stop_1'); |
| 8605 class Window extends EventTarget { | 8605 class Window extends EventTarget { |
| 8606 get animationFrame() { | 8606 get animationFrame() { |
| 8607 let completer = async.Completer$(core.num).sync(); | 8607 let completer = $async.Completer$(core.num).sync(); |
| 8608 this.requestAnimationFrame(dart.fn(time => { | 8608 this.requestAnimationFrame(dart.fn(time => { |
| 8609 completer.complete(time); | 8609 completer.complete(time); |
| 8610 }, dart.void, [core.num])); | 8610 }, dart.void, [core.num])); |
| 8611 return completer.future; | 8611 return completer.future; |
| 8612 } | 8612 } |
| 8613 get document() { | 8613 get document() { |
| 8614 return dart.as(wrap_jso(this.raw.document), Document); | 8614 return dart.as(wrap_jso(this.raw.document), Document); |
| 8615 } | 8615 } |
| 8616 [_open2](url, name) { | 8616 [_open2](url, name) { |
| 8617 return dart.as(wrap_jso(this.raw.open(url, name)), WindowBase); | 8617 return dart.as(wrap_jso(this.raw.open(url, name)), WindowBase); |
| (...skipping 1568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10186 mm: [Dimension, [core.num]], | 10186 mm: [Dimension, [core.num]], |
| 10187 em: [Dimension, [core.num]], | 10187 em: [Dimension, [core.num]], |
| 10188 ex: [Dimension, [core.num]], | 10188 ex: [Dimension, [core.num]], |
| 10189 css: [Dimension, [core.String]] | 10189 css: [Dimension, [core.String]] |
| 10190 }) | 10190 }) |
| 10191 }); | 10191 }); |
| 10192 Dimension[dart.metadata] = () => [dart.const(new _metadata.Experimental())]; | 10192 Dimension[dart.metadata] = () => [dart.const(new _metadata.Experimental())]; |
| 10193 const EventListener = dart.typedef('EventListener', () => dart.functionType(da
rt.dynamic, [Event])); | 10193 const EventListener = dart.typedef('EventListener', () => dart.functionType(da
rt.dynamic, [Event])); |
| 10194 const ElementStream$ = dart.generic(function(T) { | 10194 const ElementStream$ = dart.generic(function(T) { |
| 10195 class ElementStream extends core.Object {} | 10195 class ElementStream extends core.Object {} |
| 10196 ElementStream[dart.implements] = () => [async.Stream$(T)]; | 10196 ElementStream[dart.implements] = () => [$async.Stream$(T)]; |
| 10197 return ElementStream; | 10197 return ElementStream; |
| 10198 }); | 10198 }); |
| 10199 let ElementStream = ElementStream$(); | 10199 const ElementStream = ElementStream$(); |
| 10200 const _target = Symbol('_target'); | 10200 const _target = Symbol('_target'); |
| 10201 const _useCapture = Symbol('_useCapture'); | 10201 const _useCapture = Symbol('_useCapture'); |
| 10202 const _EventStream$ = dart.generic(function(T) { | 10202 const _EventStream$ = dart.generic(function(T) { |
| 10203 class _EventStream extends async.Stream$(T) { | 10203 class _EventStream extends $async.Stream$(T) { |
| 10204 _EventStream(target, eventType, useCapture) { | 10204 _EventStream(target, eventType, useCapture) { |
| 10205 this[_target] = target; | 10205 this[_target] = target; |
| 10206 this[_eventType] = eventType; | 10206 this[_eventType] = eventType; |
| 10207 this[_useCapture] = useCapture; | 10207 this[_useCapture] = useCapture; |
| 10208 super.Stream(); | 10208 super.Stream(); |
| 10209 } | 10209 } |
| 10210 asBroadcastStream(opts) { | 10210 asBroadcastStream(opts) { |
| 10211 let onListen = opts && 'onListen' in opts ? opts.onListen : null; | 10211 let onListen = opts && 'onListen' in opts ? opts.onListen : null; |
| 10212 dart.as(onListen, dart.functionType(dart.void, [async.StreamSubscription
$(T)])); | 10212 dart.as(onListen, dart.functionType(dart.void, [$async.StreamSubscriptio
n$(T)])); |
| 10213 let onCancel = opts && 'onCancel' in opts ? opts.onCancel : null; | 10213 let onCancel = opts && 'onCancel' in opts ? opts.onCancel : null; |
| 10214 dart.as(onCancel, dart.functionType(dart.void, [async.StreamSubscription
$(T)])); | 10214 dart.as(onCancel, dart.functionType(dart.void, [$async.StreamSubscriptio
n$(T)])); |
| 10215 return this; | 10215 return this; |
| 10216 } | 10216 } |
| 10217 get isBroadcast() { | 10217 get isBroadcast() { |
| 10218 return true; | 10218 return true; |
| 10219 } | 10219 } |
| 10220 listen(onData, opts) { | 10220 listen(onData, opts) { |
| 10221 dart.as(onData, dart.functionType(dart.void, [T])); | 10221 dart.as(onData, dart.functionType(dart.void, [T])); |
| 10222 let onError = opts && 'onError' in opts ? opts.onError : null; | 10222 let onError = opts && 'onError' in opts ? opts.onError : null; |
| 10223 let onDone = opts && 'onDone' in opts ? opts.onDone : null; | 10223 let onDone = opts && 'onDone' in opts ? opts.onDone : null; |
| 10224 dart.as(onDone, dart.functionType(dart.void, [])); | 10224 dart.as(onDone, dart.functionType(dart.void, [])); |
| 10225 let cancelOnError = opts && 'cancelOnError' in opts ? opts.cancelOnError
: null; | 10225 let cancelOnError = opts && 'cancelOnError' in opts ? opts.cancelOnError
: null; |
| 10226 return new (_EventStreamSubscription$(T))(this[_target], this[_eventType
], onData, this[_useCapture]); | 10226 return new (_EventStreamSubscription$(T))(this[_target], this[_eventType
], onData, this[_useCapture]); |
| 10227 } | 10227 } |
| 10228 } | 10228 } |
| 10229 dart.setSignature(_EventStream, { | 10229 dart.setSignature(_EventStream, { |
| 10230 constructors: () => ({_EventStream: [_EventStream$(T), [EventTarget, core.
String, core.bool]]}), | 10230 constructors: () => ({_EventStream: [_EventStream$(T), [EventTarget, core.
String, core.bool]]}), |
| 10231 methods: () => ({ | 10231 methods: () => ({ |
| 10232 asBroadcastStream: [async.Stream$(T), [], {onListen: dart.functionType(d
art.void, [async.StreamSubscription$(T)]), onCancel: dart.functionType(dart.void
, [async.StreamSubscription$(T)])}], | 10232 asBroadcastStream: [$async.Stream$(T), [], {onListen: dart.functionType(
dart.void, [$async.StreamSubscription$(T)]), onCancel: dart.functionType(dart.vo
id, [$async.StreamSubscription$(T)])}], |
| 10233 listen: [async.StreamSubscription$(T), [dart.functionType(dart.void, [T]
)], {onError: core.Function, onDone: dart.functionType(dart.void, []), cancelOnE
rror: core.bool}] | 10233 listen: [$async.StreamSubscription$(T), [dart.functionType(dart.void, [T
])], {onError: core.Function, onDone: dart.functionType(dart.void, []), cancelOn
Error: core.bool}] |
| 10234 }) | 10234 }) |
| 10235 }); | 10235 }); |
| 10236 return _EventStream; | 10236 return _EventStream; |
| 10237 }); | 10237 }); |
| 10238 let _EventStream = _EventStream$(); | 10238 const _EventStream = _EventStream$(); |
| 10239 const _ElementEventStreamImpl$ = dart.generic(function(T) { | 10239 const _ElementEventStreamImpl$ = dart.generic(function(T) { |
| 10240 class _ElementEventStreamImpl extends _EventStream$(T) { | 10240 class _ElementEventStreamImpl extends _EventStream$(T) { |
| 10241 _ElementEventStreamImpl(target, eventType, useCapture) { | 10241 _ElementEventStreamImpl(target, eventType, useCapture) { |
| 10242 super._EventStream(dart.as(target, EventTarget), dart.as(eventType, core
.String), dart.as(useCapture, core.bool)); | 10242 super._EventStream(dart.as(target, EventTarget), dart.as(eventType, core
.String), dart.as(useCapture, core.bool)); |
| 10243 } | 10243 } |
| 10244 matches(selector) { | 10244 matches(selector) { |
| 10245 return dart.as(this.where(dart.fn(event => dart.as(dart.dcall(event.targ
et.matchesWithAncestors, selector), core.bool), core.bool, [T])).map(dart.fn(e =
> { | 10245 return dart.as(this.where(dart.fn(event => dart.as(dart.dcall(event.targ
et.matchesWithAncestors, selector), core.bool), core.bool, [T])).map(dart.fn(e =
> { |
| 10246 dart.as(e, T); | 10246 dart.as(e, T); |
| 10247 e[_selector] = selector; | 10247 e[_selector] = selector; |
| 10248 return e; | 10248 return e; |
| 10249 }, dart.dynamic, [T])), async.Stream$(T)); | 10249 }, dart.dynamic, [T])), $async.Stream$(T)); |
| 10250 } | 10250 } |
| 10251 capture(onData) { | 10251 capture(onData) { |
| 10252 dart.as(onData, dart.functionType(dart.void, [T])); | 10252 dart.as(onData, dart.functionType(dart.void, [T])); |
| 10253 return new (_EventStreamSubscription$(T))(this[_target], this[_eventType
], onData, true); | 10253 return new (_EventStreamSubscription$(T))(this[_target], this[_eventType
], onData, true); |
| 10254 } | 10254 } |
| 10255 } | 10255 } |
| 10256 _ElementEventStreamImpl[dart.implements] = () => [ElementStream$(T)]; | 10256 _ElementEventStreamImpl[dart.implements] = () => [ElementStream$(T)]; |
| 10257 dart.setSignature(_ElementEventStreamImpl, { | 10257 dart.setSignature(_ElementEventStreamImpl, { |
| 10258 constructors: () => ({_ElementEventStreamImpl: [_ElementEventStreamImpl$(T
), [dart.dynamic, dart.dynamic, dart.dynamic]]}), | 10258 constructors: () => ({_ElementEventStreamImpl: [_ElementEventStreamImpl$(T
), [dart.dynamic, dart.dynamic, dart.dynamic]]}), |
| 10259 methods: () => ({ | 10259 methods: () => ({ |
| 10260 matches: [async.Stream$(T), [core.String]], | 10260 matches: [$async.Stream$(T), [core.String]], |
| 10261 capture: [async.StreamSubscription$(T), [dart.functionType(dart.void, [T
])]] | 10261 capture: [$async.StreamSubscription$(T), [dart.functionType(dart.void, [
T])]] |
| 10262 }) | 10262 }) |
| 10263 }); | 10263 }); |
| 10264 return _ElementEventStreamImpl; | 10264 return _ElementEventStreamImpl; |
| 10265 }); | 10265 }); |
| 10266 let _ElementEventStreamImpl = _ElementEventStreamImpl$(); | 10266 const _ElementEventStreamImpl = _ElementEventStreamImpl$(); |
| 10267 const _targetList = Symbol('_targetList'); | 10267 const _targetList = Symbol('_targetList'); |
| 10268 const _ElementListEventStreamImpl$ = dart.generic(function(T) { | 10268 const _ElementListEventStreamImpl$ = dart.generic(function(T) { |
| 10269 class _ElementListEventStreamImpl extends async.Stream$(T) { | 10269 class _ElementListEventStreamImpl extends $async.Stream$(T) { |
| 10270 _ElementListEventStreamImpl(targetList, eventType, useCapture) { | 10270 _ElementListEventStreamImpl(targetList, eventType, useCapture) { |
| 10271 this[_targetList] = targetList; | 10271 this[_targetList] = targetList; |
| 10272 this[_eventType] = eventType; | 10272 this[_eventType] = eventType; |
| 10273 this[_useCapture] = useCapture; | 10273 this[_useCapture] = useCapture; |
| 10274 super.Stream(); | 10274 super.Stream(); |
| 10275 } | 10275 } |
| 10276 matches(selector) { | 10276 matches(selector) { |
| 10277 return dart.as(this.where(dart.fn(event => dart.as(dart.dcall(event.targ
et.matchesWithAncestors, selector), core.bool), core.bool, [T])).map(dart.fn(e =
> { | 10277 return dart.as(this.where(dart.fn(event => dart.as(dart.dcall(event.targ
et.matchesWithAncestors, selector), core.bool), core.bool, [T])).map(dart.fn(e =
> { |
| 10278 dart.as(e, T); | 10278 dart.as(e, T); |
| 10279 e[_selector] = selector; | 10279 e[_selector] = selector; |
| 10280 return e; | 10280 return e; |
| 10281 }, dart.dynamic, [T])), async.Stream$(T)); | 10281 }, dart.dynamic, [T])), $async.Stream$(T)); |
| 10282 } | 10282 } |
| 10283 listen(onData, opts) { | 10283 listen(onData, opts) { |
| 10284 dart.as(onData, dart.functionType(dart.void, [T])); | 10284 dart.as(onData, dart.functionType(dart.void, [T])); |
| 10285 let onError = opts && 'onError' in opts ? opts.onError : null; | 10285 let onError = opts && 'onError' in opts ? opts.onError : null; |
| 10286 let onDone = opts && 'onDone' in opts ? opts.onDone : null; | 10286 let onDone = opts && 'onDone' in opts ? opts.onDone : null; |
| 10287 dart.as(onDone, dart.functionType(dart.void, [])); | 10287 dart.as(onDone, dart.functionType(dart.void, [])); |
| 10288 let cancelOnError = opts && 'cancelOnError' in opts ? opts.cancelOnError
: null; | 10288 let cancelOnError = opts && 'cancelOnError' in opts ? opts.cancelOnError
: null; |
| 10289 let pool = new _StreamPool.broadcast(); | 10289 let pool = new _StreamPool.broadcast(); |
| 10290 for (let target of this[_targetList]) { | 10290 for (let target of this[_targetList]) { |
| 10291 pool.add(new _EventStream(target, this[_eventType], this[_useCapture])
); | 10291 pool.add(new _EventStream(target, this[_eventType], this[_useCapture])
); |
| 10292 } | 10292 } |
| 10293 return dart.as(pool.stream.listen(onData, {onError: onError, onDone: onD
one, cancelOnError: cancelOnError}), async.StreamSubscription$(T)); | 10293 return dart.as(pool.stream.listen(onData, {onError: onError, onDone: onD
one, cancelOnError: cancelOnError}), $async.StreamSubscription$(T)); |
| 10294 } | 10294 } |
| 10295 capture(onData) { | 10295 capture(onData) { |
| 10296 dart.as(onData, dart.functionType(dart.void, [T])); | 10296 dart.as(onData, dart.functionType(dart.void, [T])); |
| 10297 let pool = new _StreamPool.broadcast(); | 10297 let pool = new _StreamPool.broadcast(); |
| 10298 for (let target of this[_targetList]) { | 10298 for (let target of this[_targetList]) { |
| 10299 pool.add(new _EventStream(target, this[_eventType], true)); | 10299 pool.add(new _EventStream(target, this[_eventType], true)); |
| 10300 } | 10300 } |
| 10301 return dart.as(pool.stream.listen(onData), async.StreamSubscription$(T))
; | 10301 return dart.as(pool.stream.listen(onData), $async.StreamSubscription$(T)
); |
| 10302 } | 10302 } |
| 10303 asBroadcastStream(opts) { | 10303 asBroadcastStream(opts) { |
| 10304 let onListen = opts && 'onListen' in opts ? opts.onListen : null; | 10304 let onListen = opts && 'onListen' in opts ? opts.onListen : null; |
| 10305 dart.as(onListen, dart.functionType(dart.void, [async.StreamSubscription
$(T)])); | 10305 dart.as(onListen, dart.functionType(dart.void, [$async.StreamSubscriptio
n$(T)])); |
| 10306 let onCancel = opts && 'onCancel' in opts ? opts.onCancel : null; | 10306 let onCancel = opts && 'onCancel' in opts ? opts.onCancel : null; |
| 10307 dart.as(onCancel, dart.functionType(dart.void, [async.StreamSubscription
$(T)])); | 10307 dart.as(onCancel, dart.functionType(dart.void, [$async.StreamSubscriptio
n$(T)])); |
| 10308 return this; | 10308 return this; |
| 10309 } | 10309 } |
| 10310 get isBroadcast() { | 10310 get isBroadcast() { |
| 10311 return true; | 10311 return true; |
| 10312 } | 10312 } |
| 10313 } | 10313 } |
| 10314 _ElementListEventStreamImpl[dart.implements] = () => [ElementStream$(T)]; | 10314 _ElementListEventStreamImpl[dart.implements] = () => [ElementStream$(T)]; |
| 10315 dart.setSignature(_ElementListEventStreamImpl, { | 10315 dart.setSignature(_ElementListEventStreamImpl, { |
| 10316 constructors: () => ({_ElementListEventStreamImpl: [_ElementListEventStrea
mImpl$(T), [core.Iterable$(Element), core.String, core.bool]]}), | 10316 constructors: () => ({_ElementListEventStreamImpl: [_ElementListEventStrea
mImpl$(T), [core.Iterable$(Element), core.String, core.bool]]}), |
| 10317 methods: () => ({ | 10317 methods: () => ({ |
| 10318 matches: [async.Stream$(T), [core.String]], | 10318 matches: [$async.Stream$(T), [core.String]], |
| 10319 listen: [async.StreamSubscription$(T), [dart.functionType(dart.void, [T]
)], {onError: core.Function, onDone: dart.functionType(dart.void, []), cancelOnE
rror: core.bool}], | 10319 listen: [$async.StreamSubscription$(T), [dart.functionType(dart.void, [T
])], {onError: core.Function, onDone: dart.functionType(dart.void, []), cancelOn
Error: core.bool}], |
| 10320 capture: [async.StreamSubscription$(T), [dart.functionType(dart.void, [T
])]], | 10320 capture: [$async.StreamSubscription$(T), [dart.functionType(dart.void, [
T])]], |
| 10321 asBroadcastStream: [async.Stream$(T), [], {onListen: dart.functionType(d
art.void, [async.StreamSubscription$(T)]), onCancel: dart.functionType(dart.void
, [async.StreamSubscription$(T)])}] | 10321 asBroadcastStream: [$async.Stream$(T), [], {onListen: dart.functionType(
dart.void, [$async.StreamSubscription$(T)]), onCancel: dart.functionType(dart.vo
id, [$async.StreamSubscription$(T)])}] |
| 10322 }) | 10322 }) |
| 10323 }); | 10323 }); |
| 10324 return _ElementListEventStreamImpl; | 10324 return _ElementListEventStreamImpl; |
| 10325 }); | 10325 }); |
| 10326 let _ElementListEventStreamImpl = _ElementListEventStreamImpl$(); | 10326 const _ElementListEventStreamImpl = _ElementListEventStreamImpl$(); |
| 10327 const _onData = Symbol('_onData'); | 10327 const _onData = Symbol('_onData'); |
| 10328 const _pauseCount = Symbol('_pauseCount'); | 10328 const _pauseCount = Symbol('_pauseCount'); |
| 10329 const _tryResume = Symbol('_tryResume'); | 10329 const _tryResume = Symbol('_tryResume'); |
| 10330 const _canceled = Symbol('_canceled'); | 10330 const _canceled = Symbol('_canceled'); |
| 10331 const _unlisten = Symbol('_unlisten'); | 10331 const _unlisten = Symbol('_unlisten'); |
| 10332 const _EventStreamSubscription$ = dart.generic(function(T) { | 10332 const _EventStreamSubscription$ = dart.generic(function(T) { |
| 10333 class _EventStreamSubscription extends async.StreamSubscription$(T) { | 10333 class _EventStreamSubscription extends $async.StreamSubscription$(T) { |
| 10334 _EventStreamSubscription(target, eventType, onData, useCapture) { | 10334 _EventStreamSubscription(target, eventType, onData, useCapture) { |
| 10335 this[_target] = target; | 10335 this[_target] = target; |
| 10336 this[_eventType] = eventType; | 10336 this[_eventType] = eventType; |
| 10337 this[_useCapture] = useCapture; | 10337 this[_useCapture] = useCapture; |
| 10338 this[_onData] = _wrapZone(dart.as(onData, __CastType2)); | 10338 this[_onData] = _wrapZone(dart.as(onData, __CastType2)); |
| 10339 this[_pauseCount] = 0; | 10339 this[_pauseCount] = 0; |
| 10340 this[_tryResume](); | 10340 this[_tryResume](); |
| 10341 } | 10341 } |
| 10342 cancel() { | 10342 cancel() { |
| 10343 if (dart.notNull(this[_canceled])) return null; | 10343 if (dart.notNull(this[_canceled])) return null; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10384 this[_target].addEventListener(this[_eventType], dart.as(this[_onData]
, EventListener), this[_useCapture]); | 10384 this[_target].addEventListener(this[_eventType], dart.as(this[_onData]
, EventListener), this[_useCapture]); |
| 10385 } | 10385 } |
| 10386 } | 10386 } |
| 10387 [_unlisten]() { | 10387 [_unlisten]() { |
| 10388 if (this[_onData] != null) { | 10388 if (this[_onData] != null) { |
| 10389 this[_target].removeEventListener(this[_eventType], dart.as(this[_onDa
ta], EventListener), this[_useCapture]); | 10389 this[_target].removeEventListener(this[_eventType], dart.as(this[_onDa
ta], EventListener), this[_useCapture]); |
| 10390 } | 10390 } |
| 10391 } | 10391 } |
| 10392 asFuture(futureValue) { | 10392 asFuture(futureValue) { |
| 10393 if (futureValue === void 0) futureValue = null; | 10393 if (futureValue === void 0) futureValue = null; |
| 10394 let completer = async.Completer.new(); | 10394 let completer = $async.Completer.new(); |
| 10395 return completer.future; | 10395 return completer.future; |
| 10396 } | 10396 } |
| 10397 } | 10397 } |
| 10398 dart.setSignature(_EventStreamSubscription, { | 10398 dart.setSignature(_EventStreamSubscription, { |
| 10399 constructors: () => ({_EventStreamSubscription: [_EventStreamSubscription$
(T), [EventTarget, core.String, dart.dynamic, core.bool]]}), | 10399 constructors: () => ({_EventStreamSubscription: [_EventStreamSubscription$
(T), [EventTarget, core.String, dart.dynamic, core.bool]]}), |
| 10400 methods: () => ({ | 10400 methods: () => ({ |
| 10401 cancel: [async.Future, []], | 10401 cancel: [$async.Future, []], |
| 10402 onData: [dart.void, [dart.functionType(dart.void, [T])]], | 10402 onData: [dart.void, [dart.functionType(dart.void, [T])]], |
| 10403 onError: [dart.void, [core.Function]], | 10403 onError: [dart.void, [core.Function]], |
| 10404 onDone: [dart.void, [dart.functionType(dart.void, [])]], | 10404 onDone: [dart.void, [dart.functionType(dart.void, [])]], |
| 10405 pause: [dart.void, [], [async.Future]], | 10405 pause: [dart.void, [], [$async.Future]], |
| 10406 resume: [dart.void, []], | 10406 resume: [dart.void, []], |
| 10407 [_tryResume]: [dart.void, []], | 10407 [_tryResume]: [dart.void, []], |
| 10408 [_unlisten]: [dart.void, []], | 10408 [_unlisten]: [dart.void, []], |
| 10409 asFuture: [async.Future, [], [dart.dynamic]] | 10409 asFuture: [$async.Future, [], [dart.dynamic]] |
| 10410 }) | 10410 }) |
| 10411 }); | 10411 }); |
| 10412 return _EventStreamSubscription; | 10412 return _EventStreamSubscription; |
| 10413 }); | 10413 }); |
| 10414 let _EventStreamSubscription = _EventStreamSubscription$(); | 10414 const _EventStreamSubscription = _EventStreamSubscription$(); |
| 10415 const CustomStream$ = dart.generic(function(T) { | 10415 const CustomStream$ = dart.generic(function(T) { |
| 10416 class CustomStream extends core.Object {} | 10416 class CustomStream extends core.Object {} |
| 10417 CustomStream[dart.implements] = () => [async.Stream$(T)]; | 10417 CustomStream[dart.implements] = () => [$async.Stream$(T)]; |
| 10418 return CustomStream; | 10418 return CustomStream; |
| 10419 }); | 10419 }); |
| 10420 let CustomStream = CustomStream$(); | 10420 const CustomStream = CustomStream$(); |
| 10421 const _streamController = Symbol('_streamController'); | 10421 const _streamController = Symbol('_streamController'); |
| 10422 const _type = Symbol('_type'); | 10422 const _type = Symbol('_type'); |
| 10423 const _CustomEventStreamImpl$ = dart.generic(function(T) { | 10423 const _CustomEventStreamImpl$ = dart.generic(function(T) { |
| 10424 class _CustomEventStreamImpl extends async.Stream$(T) { | 10424 class _CustomEventStreamImpl extends $async.Stream$(T) { |
| 10425 _CustomEventStreamImpl(type) { | 10425 _CustomEventStreamImpl(type) { |
| 10426 this[_streamController] = null; | 10426 this[_streamController] = null; |
| 10427 this[_type] = null; | 10427 this[_type] = null; |
| 10428 super.Stream(); | 10428 super.Stream(); |
| 10429 this[_type] = type; | 10429 this[_type] = type; |
| 10430 this[_streamController] = async.StreamController$(T).broadcast({sync: tr
ue}); | 10430 this[_streamController] = $async.StreamController$(T).broadcast({sync: t
rue}); |
| 10431 } | 10431 } |
| 10432 listen(onData, opts) { | 10432 listen(onData, opts) { |
| 10433 dart.as(onData, dart.functionType(dart.void, [T])); | 10433 dart.as(onData, dart.functionType(dart.void, [T])); |
| 10434 let onError = opts && 'onError' in opts ? opts.onError : null; | 10434 let onError = opts && 'onError' in opts ? opts.onError : null; |
| 10435 let onDone = opts && 'onDone' in opts ? opts.onDone : null; | 10435 let onDone = opts && 'onDone' in opts ? opts.onDone : null; |
| 10436 dart.as(onDone, dart.functionType(dart.void, [])); | 10436 dart.as(onDone, dart.functionType(dart.void, [])); |
| 10437 let cancelOnError = opts && 'cancelOnError' in opts ? opts.cancelOnError
: null; | 10437 let cancelOnError = opts && 'cancelOnError' in opts ? opts.cancelOnError
: null; |
| 10438 return this[_streamController].stream.listen(onData, {onError: onError,
onDone: onDone, cancelOnError: cancelOnError}); | 10438 return this[_streamController].stream.listen(onData, {onError: onError,
onDone: onDone, cancelOnError: cancelOnError}); |
| 10439 } | 10439 } |
| 10440 asBroadcastStream(opts) { | 10440 asBroadcastStream(opts) { |
| 10441 let onListen = opts && 'onListen' in opts ? opts.onListen : null; | 10441 let onListen = opts && 'onListen' in opts ? opts.onListen : null; |
| 10442 dart.as(onListen, dart.functionType(dart.void, [async.StreamSubscription
$(T)])); | 10442 dart.as(onListen, dart.functionType(dart.void, [$async.StreamSubscriptio
n$(T)])); |
| 10443 let onCancel = opts && 'onCancel' in opts ? opts.onCancel : null; | 10443 let onCancel = opts && 'onCancel' in opts ? opts.onCancel : null; |
| 10444 dart.as(onCancel, dart.functionType(dart.void, [async.StreamSubscription
$(T)])); | 10444 dart.as(onCancel, dart.functionType(dart.void, [$async.StreamSubscriptio
n$(T)])); |
| 10445 return this[_streamController].stream; | 10445 return this[_streamController].stream; |
| 10446 } | 10446 } |
| 10447 get isBroadcast() { | 10447 get isBroadcast() { |
| 10448 return true; | 10448 return true; |
| 10449 } | 10449 } |
| 10450 add(event) { | 10450 add(event) { |
| 10451 dart.as(event, T); | 10451 dart.as(event, T); |
| 10452 if (event.type == this[_type]) this[_streamController].add(event); | 10452 if (event.type == this[_type]) this[_streamController].add(event); |
| 10453 } | 10453 } |
| 10454 } | 10454 } |
| 10455 _CustomEventStreamImpl[dart.implements] = () => [CustomStream$(T)]; | 10455 _CustomEventStreamImpl[dart.implements] = () => [CustomStream$(T)]; |
| 10456 dart.setSignature(_CustomEventStreamImpl, { | 10456 dart.setSignature(_CustomEventStreamImpl, { |
| 10457 constructors: () => ({_CustomEventStreamImpl: [_CustomEventStreamImpl$(T),
[core.String]]}), | 10457 constructors: () => ({_CustomEventStreamImpl: [_CustomEventStreamImpl$(T),
[core.String]]}), |
| 10458 methods: () => ({ | 10458 methods: () => ({ |
| 10459 listen: [async.StreamSubscription$(T), [dart.functionType(dart.void, [T]
)], {onError: core.Function, onDone: dart.functionType(dart.void, []), cancelOnE
rror: core.bool}], | 10459 listen: [$async.StreamSubscription$(T), [dart.functionType(dart.void, [T
])], {onError: core.Function, onDone: dart.functionType(dart.void, []), cancelOn
Error: core.bool}], |
| 10460 asBroadcastStream: [async.Stream$(T), [], {onListen: dart.functionType(d
art.void, [async.StreamSubscription$(T)]), onCancel: dart.functionType(dart.void
, [async.StreamSubscription$(T)])}], | 10460 asBroadcastStream: [$async.Stream$(T), [], {onListen: dart.functionType(
dart.void, [$async.StreamSubscription$(T)]), onCancel: dart.functionType(dart.vo
id, [$async.StreamSubscription$(T)])}], |
| 10461 add: [dart.void, [T]] | 10461 add: [dart.void, [T]] |
| 10462 }) | 10462 }) |
| 10463 }); | 10463 }); |
| 10464 return _CustomEventStreamImpl; | 10464 return _CustomEventStreamImpl; |
| 10465 }); | 10465 }); |
| 10466 let _CustomEventStreamImpl = _CustomEventStreamImpl$(); | 10466 const _CustomEventStreamImpl = _CustomEventStreamImpl$(); |
| 10467 class _WrappedEvent extends core.Object { | 10467 class _WrappedEvent extends core.Object { |
| 10468 _WrappedEvent(wrapped) { | 10468 _WrappedEvent(wrapped) { |
| 10469 this.wrapped = wrapped; | 10469 this.wrapped = wrapped; |
| 10470 this[_selector] = null; | 10470 this[_selector] = null; |
| 10471 } | 10471 } |
| 10472 get bubbles() { | 10472 get bubbles() { |
| 10473 return this.wrapped.bubbles; | 10473 return this.wrapped.bubbles; |
| 10474 } | 10474 } |
| 10475 get cancelable() { | 10475 get cancelable() { |
| 10476 return this.wrapped.cancelable; | 10476 return this.wrapped.cancelable; |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10765 _CustomKeyEventStreamImpl[dart.implements] = () => [CustomStream$(KeyEvent)]; | 10765 _CustomKeyEventStreamImpl[dart.implements] = () => [CustomStream$(KeyEvent)]; |
| 10766 dart.setSignature(_CustomKeyEventStreamImpl, { | 10766 dart.setSignature(_CustomKeyEventStreamImpl, { |
| 10767 constructors: () => ({_CustomKeyEventStreamImpl: [_CustomKeyEventStreamImpl,
[core.String]]}), | 10767 constructors: () => ({_CustomKeyEventStreamImpl: [_CustomKeyEventStreamImpl,
[core.String]]}), |
| 10768 methods: () => ({add: [dart.void, [KeyEvent]]}) | 10768 methods: () => ({add: [dart.void, [KeyEvent]]}) |
| 10769 }); | 10769 }); |
| 10770 const _subscriptions = Symbol('_subscriptions'); | 10770 const _subscriptions = Symbol('_subscriptions'); |
| 10771 const _controller = Symbol('_controller'); | 10771 const _controller = Symbol('_controller'); |
| 10772 const _StreamPool$ = dart.generic(function(T) { | 10772 const _StreamPool$ = dart.generic(function(T) { |
| 10773 class _StreamPool extends core.Object { | 10773 class _StreamPool extends core.Object { |
| 10774 broadcast() { | 10774 broadcast() { |
| 10775 this[_subscriptions] = core.Map$(async.Stream$(T), async.StreamSubscript
ion$(T)).new(); | 10775 this[_subscriptions] = core.Map$($async.Stream$(T), $async.StreamSubscri
ption$(T)).new(); |
| 10776 this[_controller] = null; | 10776 this[_controller] = null; |
| 10777 this[_controller] = async.StreamController$(T).broadcast({sync: true, on
Cancel: dart.bind(this, 'close')}); | 10777 this[_controller] = $async.StreamController$(T).broadcast({sync: true, o
nCancel: dart.bind(this, 'close')}); |
| 10778 } | 10778 } |
| 10779 get stream() { | 10779 get stream() { |
| 10780 return this[_controller].stream; | 10780 return this[_controller].stream; |
| 10781 } | 10781 } |
| 10782 add(stream) { | 10782 add(stream) { |
| 10783 dart.as(stream, async.Stream$(T)); | 10783 dart.as(stream, $async.Stream$(T)); |
| 10784 if (dart.notNull(this[_subscriptions].containsKey(stream))) return; | 10784 if (dart.notNull(this[_subscriptions].containsKey(stream))) return; |
| 10785 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, [])})); | 10785 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, [])})); |
| 10786 } | 10786 } |
| 10787 remove(stream) { | 10787 remove(stream) { |
| 10788 dart.as(stream, async.Stream$(T)); | 10788 dart.as(stream, $async.Stream$(T)); |
| 10789 let subscription = this[_subscriptions].remove(stream); | 10789 let subscription = this[_subscriptions].remove(stream); |
| 10790 if (subscription != null) subscription.cancel(); | 10790 if (subscription != null) subscription.cancel(); |
| 10791 } | 10791 } |
| 10792 close() { | 10792 close() { |
| 10793 for (let subscription of this[_subscriptions].values) { | 10793 for (let subscription of this[_subscriptions].values) { |
| 10794 subscription.cancel(); | 10794 subscription.cancel(); |
| 10795 } | 10795 } |
| 10796 this[_subscriptions].clear(); | 10796 this[_subscriptions].clear(); |
| 10797 this[_controller].close(); | 10797 this[_controller].close(); |
| 10798 } | 10798 } |
| 10799 } | 10799 } |
| 10800 dart.defineNamedConstructor(_StreamPool, 'broadcast'); | 10800 dart.defineNamedConstructor(_StreamPool, 'broadcast'); |
| 10801 dart.setSignature(_StreamPool, { | 10801 dart.setSignature(_StreamPool, { |
| 10802 constructors: () => ({broadcast: [_StreamPool$(T), []]}), | 10802 constructors: () => ({broadcast: [_StreamPool$(T), []]}), |
| 10803 methods: () => ({ | 10803 methods: () => ({ |
| 10804 add: [dart.void, [async.Stream$(T)]], | 10804 add: [dart.void, [$async.Stream$(T)]], |
| 10805 remove: [dart.void, [async.Stream$(T)]], | 10805 remove: [dart.void, [$async.Stream$(T)]], |
| 10806 close: [dart.void, []] | 10806 close: [dart.void, []] |
| 10807 }) | 10807 }) |
| 10808 }); | 10808 }); |
| 10809 return _StreamPool; | 10809 return _StreamPool; |
| 10810 }); | 10810 }); |
| 10811 let _StreamPool = _StreamPool$(); | 10811 const _StreamPool = _StreamPool$(); |
| 10812 class _Html5NodeValidator extends core.Object { | 10812 class _Html5NodeValidator extends core.Object { |
| 10813 _Html5NodeValidator(opts) { | 10813 _Html5NodeValidator(opts) { |
| 10814 let uriPolicy = opts && 'uriPolicy' in opts ? opts.uriPolicy : null; | 10814 let uriPolicy = opts && 'uriPolicy' in opts ? opts.uriPolicy : null; |
| 10815 this.uriPolicy = uriPolicy != null ? uriPolicy : UriPolicy.new(); | 10815 this.uriPolicy = uriPolicy != null ? uriPolicy : UriPolicy.new(); |
| 10816 if (dart.notNull(_Html5NodeValidator._attributeValidators.isEmpty)) { | 10816 if (dart.notNull(_Html5NodeValidator._attributeValidators.isEmpty)) { |
| 10817 for (let attr of _Html5NodeValidator._standardAttributes) { | 10817 for (let attr of _Html5NodeValidator._standardAttributes) { |
| 10818 _Html5NodeValidator._attributeValidators.set(attr, _Html5NodeValidator
._standardAttributeValidator); | 10818 _Html5NodeValidator._attributeValidators.set(attr, _Html5NodeValidator
._standardAttributeValidator); |
| 10819 } | 10819 } |
| 10820 for (let attr of _Html5NodeValidator._uriAttributes) { | 10820 for (let attr of _Html5NodeValidator._uriAttributes) { |
| 10821 _Html5NodeValidator._attributeValidators.set(attr, _Html5NodeValidator
._uriAttributeValidator); | 10821 _Html5NodeValidator._attributeValidators.set(attr, _Html5NodeValidator
._uriAttributeValidator); |
| (...skipping 1142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11964 'setRange', | 11964 'setRange', |
| 11965 'removeRange', | 11965 'removeRange', |
| 11966 'replaceRange', | 11966 'replaceRange', |
| 11967 'fillRange', | 11967 'fillRange', |
| 11968 'iterator', | 11968 'iterator', |
| 11969 'length', | 11969 'length', |
| 11970 'length' | 11970 'length' |
| 11971 ]); | 11971 ]); |
| 11972 return _WrappedList; | 11972 return _WrappedList; |
| 11973 }); | 11973 }); |
| 11974 let _WrappedList = _WrappedList$(); | 11974 const _WrappedList = _WrappedList$(); |
| 11975 const _iterator = Symbol('_iterator'); | 11975 const _iterator = Symbol('_iterator'); |
| 11976 const _WrappedIterator$ = dart.generic(function(E) { | 11976 const _WrappedIterator$ = dart.generic(function(E) { |
| 11977 class _WrappedIterator extends core.Object { | 11977 class _WrappedIterator extends core.Object { |
| 11978 _WrappedIterator(iterator) { | 11978 _WrappedIterator(iterator) { |
| 11979 this[_iterator] = iterator; | 11979 this[_iterator] = iterator; |
| 11980 } | 11980 } |
| 11981 moveNext() { | 11981 moveNext() { |
| 11982 return this[_iterator].moveNext(); | 11982 return this[_iterator].moveNext(); |
| 11983 } | 11983 } |
| 11984 get current() { | 11984 get current() { |
| 11985 return dart.as(this[_iterator].current, E); | 11985 return dart.as(this[_iterator].current, E); |
| 11986 } | 11986 } |
| 11987 } | 11987 } |
| 11988 _WrappedIterator[dart.implements] = () => [core.Iterator$(E)]; | 11988 _WrappedIterator[dart.implements] = () => [core.Iterator$(E)]; |
| 11989 dart.setSignature(_WrappedIterator, { | 11989 dart.setSignature(_WrappedIterator, { |
| 11990 constructors: () => ({_WrappedIterator: [_WrappedIterator$(E), [core.Itera
tor]]}), | 11990 constructors: () => ({_WrappedIterator: [_WrappedIterator$(E), [core.Itera
tor]]}), |
| 11991 methods: () => ({moveNext: [core.bool, []]}) | 11991 methods: () => ({moveNext: [core.bool, []]}) |
| 11992 }); | 11992 }); |
| 11993 return _WrappedIterator; | 11993 return _WrappedIterator; |
| 11994 }); | 11994 }); |
| 11995 let _WrappedIterator = _WrappedIterator$(); | 11995 const _WrappedIterator = _WrappedIterator$(); |
| 11996 class _HttpRequestUtils extends core.Object { | 11996 class _HttpRequestUtils extends core.Object { |
| 11997 static get(url, onComplete, withCredentials) { | 11997 static get(url, onComplete, withCredentials) { |
| 11998 let request = HttpRequest.new(); | 11998 let request = HttpRequest.new(); |
| 11999 request.open('GET', url, {async: true}); | 11999 request.open('GET', url, {async: true}); |
| 12000 request.withCredentials = withCredentials; | 12000 request.withCredentials = withCredentials; |
| 12001 request.onReadyStateChange.listen(dart.fn(e => { | 12001 request.onReadyStateChange.listen(dart.fn(e => { |
| 12002 if (request.readyState == HttpRequest.DONE) { | 12002 if (request.readyState == HttpRequest.DONE) { |
| 12003 onComplete(request); | 12003 onComplete(request); |
| 12004 } | 12004 } |
| 12005 }, dart.void, [ProgressEvent])); | 12005 }, dart.void, [ProgressEvent])); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12038 return this[_current]; | 12038 return this[_current]; |
| 12039 } | 12039 } |
| 12040 } | 12040 } |
| 12041 FixedSizeListIterator[dart.implements] = () => [core.Iterator$(T)]; | 12041 FixedSizeListIterator[dart.implements] = () => [core.Iterator$(T)]; |
| 12042 dart.setSignature(FixedSizeListIterator, { | 12042 dart.setSignature(FixedSizeListIterator, { |
| 12043 constructors: () => ({FixedSizeListIterator: [FixedSizeListIterator$(T), [
core.List$(T)]]}), | 12043 constructors: () => ({FixedSizeListIterator: [FixedSizeListIterator$(T), [
core.List$(T)]]}), |
| 12044 methods: () => ({moveNext: [core.bool, []]}) | 12044 methods: () => ({moveNext: [core.bool, []]}) |
| 12045 }); | 12045 }); |
| 12046 return FixedSizeListIterator; | 12046 return FixedSizeListIterator; |
| 12047 }); | 12047 }); |
| 12048 let FixedSizeListIterator = FixedSizeListIterator$(); | 12048 const FixedSizeListIterator = FixedSizeListIterator$(); |
| 12049 const _VariableSizeListIterator$ = dart.generic(function(T) { | 12049 const _VariableSizeListIterator$ = dart.generic(function(T) { |
| 12050 class _VariableSizeListIterator extends core.Object { | 12050 class _VariableSizeListIterator extends core.Object { |
| 12051 _VariableSizeListIterator(array) { | 12051 _VariableSizeListIterator(array) { |
| 12052 this[_array] = array; | 12052 this[_array] = array; |
| 12053 this[_position] = -1; | 12053 this[_position] = -1; |
| 12054 this[_current] = null; | 12054 this[_current] = null; |
| 12055 } | 12055 } |
| 12056 moveNext() { | 12056 moveNext() { |
| 12057 let nextPosition = dart.notNull(this[_position]) + 1; | 12057 let nextPosition = dart.notNull(this[_position]) + 1; |
| 12058 if (dart.notNull(nextPosition) < dart.notNull(this[_array][dartx.length]
)) { | 12058 if (dart.notNull(nextPosition) < dart.notNull(this[_array][dartx.length]
)) { |
| 12059 this[_current] = this[_array][dartx.get](nextPosition); | 12059 this[_current] = this[_array][dartx.get](nextPosition); |
| 12060 this[_position] = nextPosition; | 12060 this[_position] = nextPosition; |
| 12061 return true; | 12061 return true; |
| 12062 } | 12062 } |
| 12063 this[_current] = null; | 12063 this[_current] = null; |
| 12064 this[_position] = this[_array][dartx.length]; | 12064 this[_position] = this[_array][dartx.length]; |
| 12065 return false; | 12065 return false; |
| 12066 } | 12066 } |
| 12067 get current() { | 12067 get current() { |
| 12068 return this[_current]; | 12068 return this[_current]; |
| 12069 } | 12069 } |
| 12070 } | 12070 } |
| 12071 _VariableSizeListIterator[dart.implements] = () => [core.Iterator$(T)]; | 12071 _VariableSizeListIterator[dart.implements] = () => [core.Iterator$(T)]; |
| 12072 dart.setSignature(_VariableSizeListIterator, { | 12072 dart.setSignature(_VariableSizeListIterator, { |
| 12073 constructors: () => ({_VariableSizeListIterator: [_VariableSizeListIterato
r$(T), [core.List$(T)]]}), | 12073 constructors: () => ({_VariableSizeListIterator: [_VariableSizeListIterato
r$(T), [core.List$(T)]]}), |
| 12074 methods: () => ({moveNext: [core.bool, []]}) | 12074 methods: () => ({moveNext: [core.bool, []]}) |
| 12075 }); | 12075 }); |
| 12076 return _VariableSizeListIterator; | 12076 return _VariableSizeListIterator; |
| 12077 }); | 12077 }); |
| 12078 let _VariableSizeListIterator = _VariableSizeListIterator$(); | 12078 const _VariableSizeListIterator = _VariableSizeListIterator$(); |
| 12079 function _convertNativeToDart_Window(win) { | 12079 function _convertNativeToDart_Window(win) { |
| 12080 if (win == null) return null; | 12080 if (win == null) return null; |
| 12081 return _DOMWindowCrossFrame._createSafe(win); | 12081 return _DOMWindowCrossFrame._createSafe(win); |
| 12082 } | 12082 } |
| 12083 dart.fn(_convertNativeToDart_Window, WindowBase, [dart.dynamic]); | 12083 dart.fn(_convertNativeToDart_Window, WindowBase, [dart.dynamic]); |
| 12084 function _convertNativeToDart_EventTarget(e) { | 12084 function _convertNativeToDart_EventTarget(e) { |
| 12085 if (e == null) { | 12085 if (e == null) { |
| 12086 return null; | 12086 return null; |
| 12087 } | 12087 } |
| 12088 if ("postMessage" in e) { | 12088 if ("postMessage" in e) { |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12264 get keyUpEvent() { | 12264 get keyUpEvent() { |
| 12265 return new _KeyboardEventHandler('keyup'); | 12265 return new _KeyboardEventHandler('keyup'); |
| 12266 }, | 12266 }, |
| 12267 set keyUpEvent(_) {}, | 12267 set keyUpEvent(_) {}, |
| 12268 get keyPressEvent() { | 12268 get keyPressEvent() { |
| 12269 return new _KeyboardEventHandler('keypress'); | 12269 return new _KeyboardEventHandler('keypress'); |
| 12270 }, | 12270 }, |
| 12271 set keyPressEvent(_) {} | 12271 set keyPressEvent(_) {} |
| 12272 }); | 12272 }); |
| 12273 class Platform extends core.Object {} | 12273 class Platform extends core.Object {} |
| 12274 const supportsTypedData = !!window.ArrayBuffer; | 12274 const supportsTypedData = !!dart.global.ArrayBuffer; |
| 12275 Platform.supportsSimd = false; | 12275 Platform.supportsSimd = false; |
| 12276 function _wrapZone(callback) { | 12276 function _wrapZone(callback) { |
| 12277 if (dart.equals(async.Zone.current, async.Zone.ROOT)) return callback; | 12277 if (dart.equals($async.Zone.current, $async.Zone.ROOT)) return callback; |
| 12278 if (callback == null) return null; | 12278 if (callback == null) return null; |
| 12279 return async.Zone.current.bindUnaryCallback(callback, {runGuarded: true}); | 12279 return $async.Zone.current.bindUnaryCallback(callback, {runGuarded: true}); |
| 12280 } | 12280 } |
| 12281 dart.fn(_wrapZone, dart.dynamic, [dart.functionType(dart.dynamic, [dart.dynami
c])]); | 12281 dart.fn(_wrapZone, dart.dynamic, [dart.functionType(dart.dynamic, [dart.dynami
c])]); |
| 12282 function _wrapBinaryZone(callback) { | 12282 function _wrapBinaryZone(callback) { |
| 12283 if (dart.equals(async.Zone.current, async.Zone.ROOT)) return callback; | 12283 if (dart.equals($async.Zone.current, $async.Zone.ROOT)) return callback; |
| 12284 if (callback == null) return null; | 12284 if (callback == null) return null; |
| 12285 return async.Zone.current.bindBinaryCallback(callback, {runGuarded: true}); | 12285 return $async.Zone.current.bindBinaryCallback(callback, {runGuarded: true}); |
| 12286 } | 12286 } |
| 12287 dart.fn(_wrapBinaryZone, dart.dynamic, [dart.functionType(dart.dynamic, [dart.
dynamic, dart.dynamic])]); | 12287 dart.fn(_wrapBinaryZone, dart.dynamic, [dart.functionType(dart.dynamic, [dart.
dynamic, dart.dynamic])]); |
| 12288 function query(relativeSelectors) { | 12288 function query(relativeSelectors) { |
| 12289 return exports.document.query(relativeSelectors); | 12289 return exports.document.query(relativeSelectors); |
| 12290 } | 12290 } |
| 12291 dart.fn(query, Element, [core.String]); | 12291 dart.fn(query, Element, [core.String]); |
| 12292 function queryAll(relativeSelectors) { | 12292 function queryAll(relativeSelectors) { |
| 12293 return exports.document.queryAll(relativeSelectors); | 12293 return exports.document.queryAll(relativeSelectors); |
| 12294 } | 12294 } |
| 12295 dart.fn(queryAll, ElementList$(Element), [core.String]); | 12295 dart.fn(queryAll, ElementList$(Element), [core.String]); |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12499 dart.setSignature(_ValidatingTreeSanitizer, { | 12499 dart.setSignature(_ValidatingTreeSanitizer, { |
| 12500 constructors: () => ({_ValidatingTreeSanitizer: [_ValidatingTreeSanitizer, [
NodeValidator]]}), | 12500 constructors: () => ({_ValidatingTreeSanitizer: [_ValidatingTreeSanitizer, [
NodeValidator]]}), |
| 12501 methods: () => ({ | 12501 methods: () => ({ |
| 12502 sanitizeTree: [dart.void, [Node]], | 12502 sanitizeTree: [dart.void, [Node]], |
| 12503 [_removeNode]: [dart.void, [Node, Node]], | 12503 [_removeNode]: [dart.void, [Node, Node]], |
| 12504 [_sanitizeUntrustedElement]: [dart.void, [dart.dynamic, Node]], | 12504 [_sanitizeUntrustedElement]: [dart.void, [dart.dynamic, Node]], |
| 12505 [_sanitizeElement]: [dart.void, [Element, Node, core.bool, core.String, co
re.String, core.Map, core.String]], | 12505 [_sanitizeElement]: [dart.void, [Element, Node, core.bool, core.String, co
re.String, core.Map, core.String]], |
| 12506 sanitizeNode: [dart.void, [Node, Node]] | 12506 sanitizeNode: [dart.void, [Node, Node]] |
| 12507 }) | 12507 }) |
| 12508 }); | 12508 }); |
| 12509 dart.defineLazyProperties(exports, { |
| 12510 get window() { |
| 12511 return dart.as(wrap_jso(dart.global), Window); |
| 12512 } |
| 12513 }); |
| 12509 dart.copyProperties(exports, { | 12514 dart.copyProperties(exports, { |
| 12510 get window() { | |
| 12511 return dart.as(wrap_jso(window), Window); | |
| 12512 }, | |
| 12513 get document() { | 12515 get document() { |
| 12514 return dart.as(wrap_jso(document), HtmlDocument); | 12516 return dart.as(wrap_jso(document), HtmlDocument); |
| 12515 } | 12517 } |
| 12516 }); | 12518 }); |
| 12517 class _EntryArray extends core.Object {} | 12519 class _EntryArray extends core.Object {} |
| 12518 _EntryArray[dart.implements] = () => [core.List$(dart.dynamic)]; | 12520 _EntryArray[dart.implements] = () => [core.List$(dart.dynamic)]; |
| 12519 _EntryArray[dart.metadata] = () => [dart.const(new _js_helper.Native("EntryArr
ay"))]; | 12521 _EntryArray[dart.metadata] = () => [dart.const(new _js_helper.Native("EntryArr
ay"))]; |
| 12520 function spawnDomUri(uri, args, message) { | 12522 function spawnDomUri(uri, args, message) { |
| 12521 dart.throw(new core.UnimplementedError()); | 12523 dart.throw(new core.UnimplementedError()); |
| 12522 } | 12524 } |
| 12523 dart.fn(spawnDomUri, async.Future$(isolate.Isolate), [core.Uri, core.List$(cor
e.String), dart.dynamic]); | 12525 dart.fn(spawnDomUri, $async.Future$(isolate.Isolate), [core.Uri, core.List$(co
re.String), dart.dynamic]); |
| 12524 const _F1 = dart.typedef('_F1', () => dart.functionType(dart.dynamic, [dart.dy
namic])); | 12526 const _F1 = dart.typedef('_F1', () => dart.functionType(dart.dynamic, [dart.dy
namic])); |
| 12525 const _wrapper = Symbol("dart_wrapper"); | 12527 const _wrapper = Symbol("dart_wrapper"); |
| 12526 function unwrap_jso(wrapped) { | 12528 function unwrap_jso(wrapped) { |
| 12527 if (dart.is(wrapped, DartHtmlDomObject)) { | 12529 if (dart.is(wrapped, DartHtmlDomObject)) { |
| 12528 return dart.dload(wrapped, 'raw'); | 12530 return dart.dload(wrapped, 'raw'); |
| 12529 } | 12531 } |
| 12530 if (dart.is(wrapped, _F1)) { | 12532 if (dart.is(wrapped, _F1)) { |
| 12531 if (wrapped.hasOwnProperty(_wrapper)) { | 12533 if (wrapped.hasOwnProperty(_wrapper)) { |
| 12532 return wrapped[_wrapper]; | 12534 return wrapped[_wrapper]; |
| 12533 } | 12535 } |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12707 exports.ElementUpgrader = ElementUpgrader; | 12709 exports.ElementUpgrader = ElementUpgrader; |
| 12708 exports.NodeValidator = NodeValidator; | 12710 exports.NodeValidator = NodeValidator; |
| 12709 exports.NodeTreeSanitizer = NodeTreeSanitizer; | 12711 exports.NodeTreeSanitizer = NodeTreeSanitizer; |
| 12710 exports.UriPolicy = UriPolicy; | 12712 exports.UriPolicy = UriPolicy; |
| 12711 exports.spawnDomUri = spawnDomUri; | 12713 exports.spawnDomUri = spawnDomUri; |
| 12712 exports.unwrap_jso = unwrap_jso; | 12714 exports.unwrap_jso = unwrap_jso; |
| 12713 exports.wrap_jso = wrap_jso; | 12715 exports.wrap_jso = wrap_jso; |
| 12714 exports.createCustomUpgrader = createCustomUpgrader; | 12716 exports.createCustomUpgrader = createCustomUpgrader; |
| 12715 exports.getHtmlCreateFunction = getHtmlCreateFunction; | 12717 exports.getHtmlCreateFunction = getHtmlCreateFunction; |
| 12716 }); | 12718 }); |
| OLD | NEW |