Add CustomEvent

This just mechanically adds CustomEvent.

Fixes #423

R=jacobr@google.com

Review URL: https://codereview.chromium.org/1616263005 .
This commit is contained in:
Vijay Menon 2016-01-28 17:04:13 -08:00
parent 82e0fc2cae
commit b56617b947
13 changed files with 97969 additions and 222 deletions

View file

@ -4223,6 +4223,213 @@ dart_library.library('dart/html', null, /* Imports */[
dart.setSignature(_CssStyleDeclarationSet, {
constructors: () => ({_CssStyleDeclarationSet: [_CssStyleDeclarationSet, [core.Iterable$(Element)]]})
});
const _createEvent = Symbol('_createEvent');
const _initEvent = Symbol('_initEvent');
const _selector = Symbol('_selector');
const _get_currentTarget = Symbol('_get_currentTarget');
const _get_target = Symbol('_get_target');
const _initEvent_1 = Symbol('_initEvent_1');
const _preventDefault_1 = Symbol('_preventDefault_1');
const _stopImmediatePropagation_1 = Symbol('_stopImmediatePropagation_1');
const _stopPropagation_1 = Symbol('_stopPropagation_1');
class Event extends DartHtmlDomObject {
static new(type, opts) {
let canBubble = opts && 'canBubble' in opts ? opts.canBubble : true;
let cancelable = opts && 'cancelable' in opts ? opts.cancelable : true;
return Event.eventType('Event', type, {canBubble: canBubble, cancelable: cancelable});
}
static eventType(type, name, opts) {
let canBubble = opts && 'canBubble' in opts ? opts.canBubble : true;
let cancelable = opts && 'cancelable' in opts ? opts.cancelable : true;
let e = exports.document[_createEvent](type);
e[_initEvent](name, canBubble, cancelable);
return e;
}
get matchingTarget() {
if (this[_selector] == null) {
dart.throw(new core.UnsupportedError('Cannot call matchingTarget if this Event did' + ' not arise as a result of event delegation.'));
}
let currentTarget = dart.as(this.currentTarget, Element);
let target = dart.as(this.target, Element);
let matchedTarget = null;
do {
if (dart.notNull(target.matches(this[_selector]))) return target;
target = target.parent;
} while (target != null && !dart.equals(target, currentTarget.parent));
dart.throw(new core.StateError('No selector matched for populating matchedTarget.'));
}
static _() {
dart.throw(new core.UnsupportedError("Not supported"));
}
static internalCreateEvent() {
return new Event.internal_();
}
internal_() {
this[_selector] = null;
super.DartHtmlDomObject();
}
['=='](other) {
return dart.equals(unwrap_jso(other), unwrap_jso(this)) || dart.notNull(core.identical(this, other));
}
get hashCode() {
return dart.hashCode(unwrap_jso(this));
}
get bubbles() {
return dart.as(wrap_jso(this.raw.bubbles), core.bool);
}
get cancelable() {
return dart.as(wrap_jso(this.raw.cancelable), core.bool);
}
get currentTarget() {
return _convertNativeToDart_EventTarget(this[_get_currentTarget]);
}
get [_get_currentTarget]() {
return wrap_jso(this.raw.currentTarget);
}
get defaultPrevented() {
return dart.as(wrap_jso(this.raw.defaultPrevented), core.bool);
}
get eventPhase() {
return dart.as(wrap_jso(this.raw.eventPhase), core.int);
}
get path() {
return dart.as(wrap_jso(this.raw.path), core.List$(Node));
}
get target() {
return _convertNativeToDart_EventTarget(this[_get_target]);
}
get [_get_target]() {
return wrap_jso(this.raw.target);
}
get timeStamp() {
return dart.as(wrap_jso(this.raw.timeStamp), core.int);
}
get type() {
return dart.as(wrap_jso(this.raw.type), core.String);
}
[_initEvent](eventTypeArg, canBubbleArg, cancelableArg) {
this[_initEvent_1](eventTypeArg, canBubbleArg, cancelableArg);
return;
}
[_initEvent_1](eventTypeArg, canBubbleArg, cancelableArg) {
return wrap_jso(this.raw.initEvent(unwrap_jso(eventTypeArg), unwrap_jso(canBubbleArg), unwrap_jso(cancelableArg)));
}
preventDefault() {
this[_preventDefault_1]();
return;
}
[_preventDefault_1]() {
return wrap_jso(this.raw.preventDefault());
}
stopImmediatePropagation() {
this[_stopImmediatePropagation_1]();
return;
}
[_stopImmediatePropagation_1]() {
return wrap_jso(this.raw.stopImmediatePropagation());
}
stopPropagation() {
this[_stopPropagation_1]();
return;
}
[_stopPropagation_1]() {
return wrap_jso(this.raw.stopPropagation());
}
}
dart.defineNamedConstructor(Event, 'internal_');
dart.setSignature(Event, {
constructors: () => ({
new: [Event, [core.String], {canBubble: core.bool, cancelable: core.bool}],
eventType: [Event, [core.String, core.String], {canBubble: core.bool, cancelable: core.bool}],
_: [Event, []],
internal_: [Event, []]
}),
methods: () => ({
[_initEvent]: [dart.void, [core.String, core.bool, core.bool]],
[_initEvent_1]: [dart.void, [dart.dynamic, dart.dynamic, dart.dynamic]],
preventDefault: [dart.void, []],
[_preventDefault_1]: [dart.void, []],
stopImmediatePropagation: [dart.void, []],
[_stopImmediatePropagation_1]: [dart.void, []],
stopPropagation: [dart.void, []],
[_stopPropagation_1]: [dart.void, []]
}),
statics: () => ({internalCreateEvent: [Event, []]}),
names: ['internalCreateEvent']
});
Event[dart.metadata] = () => [dart.const(new _metadata.DomName('Event')), dart.const(new _js_helper.Native("Event,InputEvent,ClipboardEvent"))];
Event.AT_TARGET = 2;
Event.BUBBLING_PHASE = 3;
Event.CAPTURING_PHASE = 1;
const _dartDetail = Symbol('_dartDetail');
const _initCustomEvent = Symbol('_initCustomEvent');
const _detail = Symbol('_detail');
const _get__detail = Symbol('_get__detail');
const _initCustomEvent_1 = Symbol('_initCustomEvent_1');
class CustomEvent extends Event {
static new(type, opts) {
let canBubble = opts && 'canBubble' in opts ? opts.canBubble : true;
let cancelable = opts && 'cancelable' in opts ? opts.cancelable : true;
let detail = opts && 'detail' in opts ? opts.detail : null;
let e = dart.as(exports.document[_createEvent]('CustomEvent'), CustomEvent);
e[_dartDetail] = detail;
if (dart.is(detail, core.List) || dart.is(detail, core.Map) || typeof detail == 'string' || typeof detail == 'number') {
try {
e[_initCustomEvent](type, canBubble, cancelable, detail);
} catch (_) {
e[_initCustomEvent](type, canBubble, cancelable, null);
}
} else {
e[_initCustomEvent](type, canBubble, cancelable, null);
}
return e;
}
get detail() {
if (this[_dartDetail] != null) {
return this[_dartDetail];
}
return this[_detail];
}
static _() {
dart.throw(new core.UnsupportedError("Not supported"));
}
static internalCreateCustomEvent() {
return new CustomEvent.internal_();
}
internal_() {
this[_dartDetail] = null;
super.internal_();
}
get [_detail]() {
return html_common.convertNativeToDart_SerializedScriptValue(this[_get__detail]);
}
get [_get__detail]() {
return wrap_jso(this.raw.detail);
}
[_initCustomEvent](typeArg, canBubbleArg, cancelableArg, detailArg) {
this[_initCustomEvent_1](typeArg, canBubbleArg, cancelableArg, detailArg);
return;
}
[_initCustomEvent_1](typeArg, canBubbleArg, cancelableArg, detailArg) {
return wrap_jso(this.raw.initCustomEvent(unwrap_jso(typeArg), unwrap_jso(canBubbleArg), unwrap_jso(cancelableArg), unwrap_jso(detailArg)));
}
}
dart.defineNamedConstructor(CustomEvent, 'internal_');
dart.setSignature(CustomEvent, {
constructors: () => ({
new: [CustomEvent, [core.String], {canBubble: core.bool, cancelable: core.bool, detail: core.Object}],
_: [CustomEvent, []],
internal_: [CustomEvent, []]
}),
methods: () => ({
[_initCustomEvent]: [dart.void, [core.String, core.bool, core.bool, core.Object]],
[_initCustomEvent_1]: [dart.void, [dart.dynamic, dart.dynamic, dart.dynamic, dart.dynamic]]
}),
statics: () => ({internalCreateCustomEvent: [CustomEvent, []]}),
names: ['internalCreateCustomEvent']
});
CustomEvent[dart.metadata] = () => [dart.const(new _metadata.DomName('CustomEvent')), dart.const(new _js_helper.Native("CustomEvent"))];
class DivElement extends HtmlElement {
static _() {
dart.throw(new core.UnsupportedError("Not supported"));
@ -4271,7 +4478,6 @@ dart_library.library('dart/html', null, /* Imports */[
const _createElementNS_2 = Symbol('_createElementNS_2');
const _createElementNS = Symbol('_createElementNS');
const _createEvent_1 = Symbol('_createEvent_1');
const _createEvent = Symbol('_createEvent');
const _createRange_1 = Symbol('_createRange_1');
const _createTextNode_1 = Symbol('_createTextNode_1');
const _createTextNode = Symbol('_createTextNode');
@ -5371,143 +5577,6 @@ dart_library.library('dart/html', null, /* Imports */[
return dart.const(new ScrollAlignment._internal('BOTTOM'));
}
});
const _initEvent = Symbol('_initEvent');
const _selector = Symbol('_selector');
const _get_currentTarget = Symbol('_get_currentTarget');
const _get_target = Symbol('_get_target');
const _initEvent_1 = Symbol('_initEvent_1');
const _preventDefault_1 = Symbol('_preventDefault_1');
const _stopImmediatePropagation_1 = Symbol('_stopImmediatePropagation_1');
const _stopPropagation_1 = Symbol('_stopPropagation_1');
class Event extends DartHtmlDomObject {
static new(type, opts) {
let canBubble = opts && 'canBubble' in opts ? opts.canBubble : true;
let cancelable = opts && 'cancelable' in opts ? opts.cancelable : true;
return Event.eventType('Event', type, {canBubble: canBubble, cancelable: cancelable});
}
static eventType(type, name, opts) {
let canBubble = opts && 'canBubble' in opts ? opts.canBubble : true;
let cancelable = opts && 'cancelable' in opts ? opts.cancelable : true;
let e = exports.document[_createEvent](type);
e[_initEvent](name, canBubble, cancelable);
return e;
}
get matchingTarget() {
if (this[_selector] == null) {
dart.throw(new core.UnsupportedError('Cannot call matchingTarget if this Event did' + ' not arise as a result of event delegation.'));
}
let currentTarget = dart.as(this.currentTarget, Element);
let target = dart.as(this.target, Element);
let matchedTarget = null;
do {
if (dart.notNull(target.matches(this[_selector]))) return target;
target = target.parent;
} while (target != null && !dart.equals(target, currentTarget.parent));
dart.throw(new core.StateError('No selector matched for populating matchedTarget.'));
}
static _() {
dart.throw(new core.UnsupportedError("Not supported"));
}
static internalCreateEvent() {
return new Event.internal_();
}
internal_() {
this[_selector] = null;
super.DartHtmlDomObject();
}
['=='](other) {
return dart.equals(unwrap_jso(other), unwrap_jso(this)) || dart.notNull(core.identical(this, other));
}
get hashCode() {
return dart.hashCode(unwrap_jso(this));
}
get bubbles() {
return dart.as(wrap_jso(this.raw.bubbles), core.bool);
}
get cancelable() {
return dart.as(wrap_jso(this.raw.cancelable), core.bool);
}
get currentTarget() {
return _convertNativeToDart_EventTarget(this[_get_currentTarget]);
}
get [_get_currentTarget]() {
return wrap_jso(this.raw.currentTarget);
}
get defaultPrevented() {
return dart.as(wrap_jso(this.raw.defaultPrevented), core.bool);
}
get eventPhase() {
return dart.as(wrap_jso(this.raw.eventPhase), core.int);
}
get path() {
return dart.as(wrap_jso(this.raw.path), core.List$(Node));
}
get target() {
return _convertNativeToDart_EventTarget(this[_get_target]);
}
get [_get_target]() {
return wrap_jso(this.raw.target);
}
get timeStamp() {
return dart.as(wrap_jso(this.raw.timeStamp), core.int);
}
get type() {
return dart.as(wrap_jso(this.raw.type), core.String);
}
[_initEvent](eventTypeArg, canBubbleArg, cancelableArg) {
this[_initEvent_1](eventTypeArg, canBubbleArg, cancelableArg);
return;
}
[_initEvent_1](eventTypeArg, canBubbleArg, cancelableArg) {
return wrap_jso(this.raw.initEvent(unwrap_jso(eventTypeArg), unwrap_jso(canBubbleArg), unwrap_jso(cancelableArg)));
}
preventDefault() {
this[_preventDefault_1]();
return;
}
[_preventDefault_1]() {
return wrap_jso(this.raw.preventDefault());
}
stopImmediatePropagation() {
this[_stopImmediatePropagation_1]();
return;
}
[_stopImmediatePropagation_1]() {
return wrap_jso(this.raw.stopImmediatePropagation());
}
stopPropagation() {
this[_stopPropagation_1]();
return;
}
[_stopPropagation_1]() {
return wrap_jso(this.raw.stopPropagation());
}
}
dart.defineNamedConstructor(Event, 'internal_');
dart.setSignature(Event, {
constructors: () => ({
new: [Event, [core.String], {canBubble: core.bool, cancelable: core.bool}],
eventType: [Event, [core.String, core.String], {canBubble: core.bool, cancelable: core.bool}],
_: [Event, []],
internal_: [Event, []]
}),
methods: () => ({
[_initEvent]: [dart.void, [core.String, core.bool, core.bool]],
[_initEvent_1]: [dart.void, [dart.dynamic, dart.dynamic, dart.dynamic]],
preventDefault: [dart.void, []],
[_preventDefault_1]: [dart.void, []],
stopImmediatePropagation: [dart.void, []],
[_stopImmediatePropagation_1]: [dart.void, []],
stopPropagation: [dart.void, []],
[_stopPropagation_1]: [dart.void, []]
}),
statics: () => ({internalCreateEvent: [Event, []]}),
names: ['internalCreateEvent']
});
Event[dart.metadata] = () => [dart.const(new _metadata.DomName('Event')), dart.const(new _js_helper.Native("Event,InputEvent,ClipboardEvent"))];
Event.AT_TARGET = 2;
Event.BUBBLING_PHASE = 3;
Event.CAPTURING_PHASE = 1;
const _ptr = Symbol('_ptr');
class Events extends core.Object {
Events(ptr) {
@ -12640,18 +12709,19 @@ dart_library.library('dart/html', null, /* Imports */[
let constructor = jso.constructor;
let f = null;
let name = null;
let skip = false;
let skip = null;
while (f == null) {
name = constructor.name;
f = getHtmlCreateFunction(name);
if (f == null) {
dart.dsend(/* Unimplemented unknown name */console, 'error', `Could not instantiate ${name}`);
skip = true;
if (skip == null) {
skip = name;
}
constructor = constructor.__proto__;
}
}
if (skip) {
dart.dsend(/* Unimplemented unknown name */console, 'info', `Instantiated ${name} instead`);
if (skip != null) {
dart.dsend(/* Unimplemented unknown name */console, 'warn', `Instantiated ${name} instead of ${skip}`);
}
let wrapped = dart.dcall(f);
dart.dput(wrapped, 'raw', jso);
@ -12665,12 +12735,12 @@ dart_library.library('dart/html', null, /* Imports */[
dart.fn(createCustomUpgrader, dart.dynamic, [core.Type, dart.dynamic]);
dart.defineLazyProperties(exports, {
get htmlBlinkMap() {
return dart.map({_HistoryCrossFrame: dart.fn(() => _HistoryCrossFrame, core.Type, []), _LocationCrossFrame: dart.fn(() => _LocationCrossFrame, core.Type, []), _DOMWindowCrossFrame: dart.fn(() => _DOMWindowCrossFrame, core.Type, []), DateTime: dart.fn(() => core.DateTime, core.Type, []), JsObject: dart.fn(() => dart.dload(/* Unimplemented unknown name */js, 'JsObjectImpl')), JsFunction: dart.fn(() => dart.dload(/* Unimplemented unknown name */js, 'JsFunctionImpl')), JsArray: dart.fn(() => dart.dload(/* Unimplemented unknown name */js, 'JsArrayImpl')), Attr: dart.fn(() => _Attr, core.Type, []), CSSStyleDeclaration: dart.fn(() => CssStyleDeclaration, core.Type, []), CharacterData: dart.fn(() => CharacterData, core.Type, []), ChildNode: dart.fn(() => ChildNode, core.Type, []), ClientRect: dart.fn(() => _ClientRect, core.Type, []), Comment: dart.fn(() => Comment, core.Type, []), Console: dart.fn(() => Console, core.Type, []), ConsoleBase: dart.fn(() => ConsoleBase, core.Type, []), DOMImplementation: dart.fn(() => DomImplementation, core.Type, []), DOMTokenList: dart.fn(() => DomTokenList, core.Type, []), Document: dart.fn(() => Document, core.Type, []), DocumentFragment: dart.fn(() => DocumentFragment, core.Type, []), Element: dart.fn(() => Element, core.Type, []), Event: dart.fn(() => Event, core.Type, []), EventTarget: dart.fn(() => EventTarget, core.Type, []), HTMLAnchorElement: dart.fn(() => AnchorElement, core.Type, []), HTMLBaseElement: dart.fn(() => BaseElement, core.Type, []), HTMLBodyElement: dart.fn(() => BodyElement, core.Type, []), HTMLCollection: dart.fn(() => HtmlCollection, core.Type, []), HTMLDivElement: dart.fn(() => DivElement, core.Type, []), HTMLDocument: dart.fn(() => HtmlDocument, core.Type, []), HTMLElement: dart.fn(() => HtmlElement, core.Type, []), HTMLHeadElement: dart.fn(() => HeadElement, core.Type, []), HTMLHtmlElement: dart.fn(() => HtmlHtmlElement, core.Type, []), HTMLInputElement: dart.fn(() => InputElement, core.Type, []), HTMLStyleElement: dart.fn(() => StyleElement, core.Type, []), HTMLTemplateElement: dart.fn(() => TemplateElement, core.Type, []), History: dart.fn(() => History, core.Type, []), KeyboardEvent: dart.fn(() => KeyboardEvent, core.Type, []), Location: dart.fn(() => Location, core.Type, []), MouseEvent: dart.fn(() => MouseEvent, core.Type, []), NamedNodeMap: dart.fn(() => _NamedNodeMap, core.Type, []), Navigator: dart.fn(() => Navigator, core.Type, []), NavigatorCPU: dart.fn(() => NavigatorCpu, core.Type, []), Node: dart.fn(() => Node, core.Type, []), NodeList: dart.fn(() => NodeList, core.Type, []), ParentNode: dart.fn(() => ParentNode, core.Type, []), ProgressEvent: dart.fn(() => ProgressEvent, core.Type, []), Range: dart.fn(() => Range, core.Type, []), Screen: dart.fn(() => Screen, core.Type, []), ShadowRoot: dart.fn(() => ShadowRoot, core.Type, []), Text: dart.fn(() => Text, core.Type, []), UIEvent: dart.fn(() => UIEvent, core.Type, []), URLUtils: dart.fn(() => UrlUtils, core.Type, []), Window: dart.fn(() => Window, core.Type, []), XMLHttpRequest: dart.fn(() => HttpRequest, core.Type, []), XMLHttpRequestEventTarget: dart.fn(() => HttpRequestEventTarget, core.Type, []), XMLHttpRequestProgressEvent: dart.fn(() => _XMLHttpRequestProgressEvent, core.Type, [])});
return dart.map({_HistoryCrossFrame: dart.fn(() => _HistoryCrossFrame, core.Type, []), _LocationCrossFrame: dart.fn(() => _LocationCrossFrame, core.Type, []), _DOMWindowCrossFrame: dart.fn(() => _DOMWindowCrossFrame, core.Type, []), DateTime: dart.fn(() => core.DateTime, core.Type, []), JsObject: dart.fn(() => dart.dload(/* Unimplemented unknown name */js, 'JsObjectImpl')), JsFunction: dart.fn(() => dart.dload(/* Unimplemented unknown name */js, 'JsFunctionImpl')), JsArray: dart.fn(() => dart.dload(/* Unimplemented unknown name */js, 'JsArrayImpl')), Attr: dart.fn(() => _Attr, core.Type, []), CSSStyleDeclaration: dart.fn(() => CssStyleDeclaration, core.Type, []), CharacterData: dart.fn(() => CharacterData, core.Type, []), ChildNode: dart.fn(() => ChildNode, core.Type, []), ClientRect: dart.fn(() => _ClientRect, core.Type, []), Comment: dart.fn(() => Comment, core.Type, []), Console: dart.fn(() => Console, core.Type, []), ConsoleBase: dart.fn(() => ConsoleBase, core.Type, []), CustomEvent: dart.fn(() => CustomEvent, core.Type, []), DOMImplementation: dart.fn(() => DomImplementation, core.Type, []), DOMTokenList: dart.fn(() => DomTokenList, core.Type, []), Document: dart.fn(() => Document, core.Type, []), DocumentFragment: dart.fn(() => DocumentFragment, core.Type, []), Element: dart.fn(() => Element, core.Type, []), Event: dart.fn(() => Event, core.Type, []), EventTarget: dart.fn(() => EventTarget, core.Type, []), HTMLAnchorElement: dart.fn(() => AnchorElement, core.Type, []), HTMLBaseElement: dart.fn(() => BaseElement, core.Type, []), HTMLBodyElement: dart.fn(() => BodyElement, core.Type, []), HTMLCollection: dart.fn(() => HtmlCollection, core.Type, []), HTMLDivElement: dart.fn(() => DivElement, core.Type, []), HTMLDocument: dart.fn(() => HtmlDocument, core.Type, []), HTMLElement: dart.fn(() => HtmlElement, core.Type, []), HTMLHeadElement: dart.fn(() => HeadElement, core.Type, []), HTMLHtmlElement: dart.fn(() => HtmlHtmlElement, core.Type, []), HTMLInputElement: dart.fn(() => InputElement, core.Type, []), HTMLStyleElement: dart.fn(() => StyleElement, core.Type, []), HTMLTemplateElement: dart.fn(() => TemplateElement, core.Type, []), History: dart.fn(() => History, core.Type, []), KeyboardEvent: dart.fn(() => KeyboardEvent, core.Type, []), Location: dart.fn(() => Location, core.Type, []), MouseEvent: dart.fn(() => MouseEvent, core.Type, []), NamedNodeMap: dart.fn(() => _NamedNodeMap, core.Type, []), Navigator: dart.fn(() => Navigator, core.Type, []), NavigatorCPU: dart.fn(() => NavigatorCpu, core.Type, []), Node: dart.fn(() => Node, core.Type, []), NodeList: dart.fn(() => NodeList, core.Type, []), ParentNode: dart.fn(() => ParentNode, core.Type, []), ProgressEvent: dart.fn(() => ProgressEvent, core.Type, []), Range: dart.fn(() => Range, core.Type, []), Screen: dart.fn(() => Screen, core.Type, []), ShadowRoot: dart.fn(() => ShadowRoot, core.Type, []), Text: dart.fn(() => Text, core.Type, []), UIEvent: dart.fn(() => UIEvent, core.Type, []), URLUtils: dart.fn(() => UrlUtils, core.Type, []), Window: dart.fn(() => Window, core.Type, []), XMLHttpRequest: dart.fn(() => HttpRequest, core.Type, []), XMLHttpRequestEventTarget: dart.fn(() => HttpRequestEventTarget, core.Type, []), XMLHttpRequestProgressEvent: dart.fn(() => _XMLHttpRequestProgressEvent, core.Type, [])});
}
});
dart.defineLazyProperties(exports, {
get htmlBlinkFunctionMap() {
return dart.map({Attr: dart.fn(() => _Attr.internalCreate_Attr, dart.functionType(_Attr, []), []), CSSStyleDeclaration: dart.fn(() => CssStyleDeclaration.internalCreateCssStyleDeclaration, dart.functionType(CssStyleDeclaration, []), []), CharacterData: dart.fn(() => CharacterData.internalCreateCharacterData, dart.functionType(CharacterData, []), []), ClientRect: dart.fn(() => _ClientRect.internalCreate_ClientRect, dart.functionType(_ClientRect, []), []), Comment: dart.fn(() => Comment.internalCreateComment, dart.functionType(Comment, []), []), Console: dart.fn(() => Console.internalCreateConsole, dart.functionType(Console, []), []), ConsoleBase: dart.fn(() => ConsoleBase.internalCreateConsoleBase, dart.functionType(ConsoleBase, []), []), DOMImplementation: dart.fn(() => DomImplementation.internalCreateDomImplementation, dart.functionType(DomImplementation, []), []), DOMTokenList: dart.fn(() => DomTokenList.internalCreateDomTokenList, dart.functionType(DomTokenList, []), []), Document: dart.fn(() => Document.internalCreateDocument, dart.functionType(Document, []), []), DocumentFragment: dart.fn(() => DocumentFragment.internalCreateDocumentFragment, dart.functionType(DocumentFragment, []), []), Element: dart.fn(() => Element.internalCreateElement, dart.functionType(Element, []), []), Event: dart.fn(() => Event.internalCreateEvent, dart.functionType(Event, []), []), EventTarget: dart.fn(() => EventTarget.internalCreateEventTarget, dart.functionType(EventTarget, []), []), HTMLAnchorElement: dart.fn(() => AnchorElement.internalCreateAnchorElement, dart.functionType(AnchorElement, []), []), HTMLBaseElement: dart.fn(() => BaseElement.internalCreateBaseElement, dart.functionType(BaseElement, []), []), HTMLBodyElement: dart.fn(() => BodyElement.internalCreateBodyElement, dart.functionType(BodyElement, []), []), HTMLCollection: dart.fn(() => HtmlCollection.internalCreateHtmlCollection, dart.functionType(HtmlCollection, []), []), HTMLDivElement: dart.fn(() => DivElement.internalCreateDivElement, dart.functionType(DivElement, []), []), HTMLDocument: dart.fn(() => HtmlDocument.internalCreateHtmlDocument, dart.functionType(HtmlDocument, []), []), HTMLElement: dart.fn(() => HtmlElement.internalCreateHtmlElement, dart.functionType(HtmlElement, []), []), HTMLHeadElement: dart.fn(() => HeadElement.internalCreateHeadElement, dart.functionType(HeadElement, []), []), HTMLHtmlElement: dart.fn(() => HtmlHtmlElement.internalCreateHtmlHtmlElement, dart.functionType(HtmlHtmlElement, []), []), HTMLInputElement: dart.fn(() => InputElement.internalCreateInputElement, dart.functionType(InputElement, []), []), HTMLStyleElement: dart.fn(() => StyleElement.internalCreateStyleElement, dart.functionType(StyleElement, []), []), HTMLTemplateElement: dart.fn(() => TemplateElement.internalCreateTemplateElement, dart.functionType(TemplateElement, []), []), History: dart.fn(() => History.internalCreateHistory, dart.functionType(History, []), []), KeyboardEvent: dart.fn(() => KeyboardEvent.internalCreateKeyboardEvent, dart.functionType(KeyboardEvent, []), []), Location: dart.fn(() => Location.internalCreateLocation, dart.functionType(Location, []), []), MouseEvent: dart.fn(() => MouseEvent.internalCreateMouseEvent, dart.functionType(MouseEvent, []), []), NamedNodeMap: dart.fn(() => _NamedNodeMap.internalCreate_NamedNodeMap, dart.functionType(_NamedNodeMap, []), []), Navigator: dart.fn(() => Navigator.internalCreateNavigator, dart.functionType(Navigator, []), []), Node: dart.fn(() => Node.internalCreateNode, dart.functionType(Node, []), []), NodeList: dart.fn(() => NodeList.internalCreateNodeList, dart.functionType(NodeList, []), []), ProgressEvent: dart.fn(() => ProgressEvent.internalCreateProgressEvent, dart.functionType(ProgressEvent, []), []), Range: dart.fn(() => Range.internalCreateRange, dart.functionType(Range, []), []), Screen: dart.fn(() => Screen.internalCreateScreen, dart.functionType(Screen, []), []), ShadowRoot: dart.fn(() => ShadowRoot.internalCreateShadowRoot, dart.functionType(ShadowRoot, []), []), Text: dart.fn(() => Text.internalCreateText, dart.functionType(Text, []), []), UIEvent: dart.fn(() => UIEvent.internalCreateUIEvent, dart.functionType(UIEvent, []), []), Window: dart.fn(() => Window.internalCreateWindow, dart.functionType(Window, []), []), XMLHttpRequest: dart.fn(() => HttpRequest.internalCreateHttpRequest, dart.functionType(HttpRequest, []), []), XMLHttpRequestEventTarget: dart.fn(() => HttpRequestEventTarget.internalCreateHttpRequestEventTarget, dart.functionType(HttpRequestEventTarget, []), []), XMLHttpRequestProgressEvent: dart.fn(() => _XMLHttpRequestProgressEvent.internalCreate_XMLHttpRequestProgressEvent, dart.functionType(_XMLHttpRequestProgressEvent, []), [])});
return dart.map({Attr: dart.fn(() => _Attr.internalCreate_Attr, dart.functionType(_Attr, []), []), CSSStyleDeclaration: dart.fn(() => CssStyleDeclaration.internalCreateCssStyleDeclaration, dart.functionType(CssStyleDeclaration, []), []), CharacterData: dart.fn(() => CharacterData.internalCreateCharacterData, dart.functionType(CharacterData, []), []), ClientRect: dart.fn(() => _ClientRect.internalCreate_ClientRect, dart.functionType(_ClientRect, []), []), Comment: dart.fn(() => Comment.internalCreateComment, dart.functionType(Comment, []), []), Console: dart.fn(() => Console.internalCreateConsole, dart.functionType(Console, []), []), ConsoleBase: dart.fn(() => ConsoleBase.internalCreateConsoleBase, dart.functionType(ConsoleBase, []), []), CustomEvent: dart.fn(() => CustomEvent.internalCreateCustomEvent, dart.functionType(CustomEvent, []), []), DOMImplementation: dart.fn(() => DomImplementation.internalCreateDomImplementation, dart.functionType(DomImplementation, []), []), DOMTokenList: dart.fn(() => DomTokenList.internalCreateDomTokenList, dart.functionType(DomTokenList, []), []), Document: dart.fn(() => Document.internalCreateDocument, dart.functionType(Document, []), []), DocumentFragment: dart.fn(() => DocumentFragment.internalCreateDocumentFragment, dart.functionType(DocumentFragment, []), []), Element: dart.fn(() => Element.internalCreateElement, dart.functionType(Element, []), []), Event: dart.fn(() => Event.internalCreateEvent, dart.functionType(Event, []), []), EventTarget: dart.fn(() => EventTarget.internalCreateEventTarget, dart.functionType(EventTarget, []), []), HTMLAnchorElement: dart.fn(() => AnchorElement.internalCreateAnchorElement, dart.functionType(AnchorElement, []), []), HTMLBaseElement: dart.fn(() => BaseElement.internalCreateBaseElement, dart.functionType(BaseElement, []), []), HTMLBodyElement: dart.fn(() => BodyElement.internalCreateBodyElement, dart.functionType(BodyElement, []), []), HTMLCollection: dart.fn(() => HtmlCollection.internalCreateHtmlCollection, dart.functionType(HtmlCollection, []), []), HTMLDivElement: dart.fn(() => DivElement.internalCreateDivElement, dart.functionType(DivElement, []), []), HTMLDocument: dart.fn(() => HtmlDocument.internalCreateHtmlDocument, dart.functionType(HtmlDocument, []), []), HTMLElement: dart.fn(() => HtmlElement.internalCreateHtmlElement, dart.functionType(HtmlElement, []), []), HTMLHeadElement: dart.fn(() => HeadElement.internalCreateHeadElement, dart.functionType(HeadElement, []), []), HTMLHtmlElement: dart.fn(() => HtmlHtmlElement.internalCreateHtmlHtmlElement, dart.functionType(HtmlHtmlElement, []), []), HTMLInputElement: dart.fn(() => InputElement.internalCreateInputElement, dart.functionType(InputElement, []), []), HTMLStyleElement: dart.fn(() => StyleElement.internalCreateStyleElement, dart.functionType(StyleElement, []), []), HTMLTemplateElement: dart.fn(() => TemplateElement.internalCreateTemplateElement, dart.functionType(TemplateElement, []), []), History: dart.fn(() => History.internalCreateHistory, dart.functionType(History, []), []), KeyboardEvent: dart.fn(() => KeyboardEvent.internalCreateKeyboardEvent, dart.functionType(KeyboardEvent, []), []), Location: dart.fn(() => Location.internalCreateLocation, dart.functionType(Location, []), []), MouseEvent: dart.fn(() => MouseEvent.internalCreateMouseEvent, dart.functionType(MouseEvent, []), []), NamedNodeMap: dart.fn(() => _NamedNodeMap.internalCreate_NamedNodeMap, dart.functionType(_NamedNodeMap, []), []), Navigator: dart.fn(() => Navigator.internalCreateNavigator, dart.functionType(Navigator, []), []), Node: dart.fn(() => Node.internalCreateNode, dart.functionType(Node, []), []), NodeList: dart.fn(() => NodeList.internalCreateNodeList, dart.functionType(NodeList, []), []), ProgressEvent: dart.fn(() => ProgressEvent.internalCreateProgressEvent, dart.functionType(ProgressEvent, []), []), Range: dart.fn(() => Range.internalCreateRange, dart.functionType(Range, []), []), Screen: dart.fn(() => Screen.internalCreateScreen, dart.functionType(Screen, []), []), ShadowRoot: dart.fn(() => ShadowRoot.internalCreateShadowRoot, dart.functionType(ShadowRoot, []), []), Text: dart.fn(() => Text.internalCreateText, dart.functionType(Text, []), []), UIEvent: dart.fn(() => UIEvent.internalCreateUIEvent, dart.functionType(UIEvent, []), []), Window: dart.fn(() => Window.internalCreateWindow, dart.functionType(Window, []), []), XMLHttpRequest: dart.fn(() => HttpRequest.internalCreateHttpRequest, dart.functionType(HttpRequest, []), []), XMLHttpRequestEventTarget: dart.fn(() => HttpRequestEventTarget.internalCreateHttpRequestEventTarget, dart.functionType(HttpRequestEventTarget, []), []), XMLHttpRequestProgressEvent: dart.fn(() => _XMLHttpRequestProgressEvent.internalCreate_XMLHttpRequestProgressEvent, dart.functionType(_XMLHttpRequestProgressEvent, []), [])});
}
});
function getHtmlCreateFunction(key) {
@ -12707,6 +12777,8 @@ dart_library.library('dart/html', null, /* Imports */[
exports.ConsoleBase = ConsoleBase;
exports.CssStyleDeclarationBase = CssStyleDeclarationBase;
exports.CssStyleDeclaration = CssStyleDeclaration;
exports.Event = Event;
exports.CustomEvent = CustomEvent;
exports.DivElement = DivElement;
exports.Document = Document;
exports.DocumentFragment = DocumentFragment;
@ -12715,7 +12787,6 @@ dart_library.library('dart/html', null, /* Imports */[
exports.ElementList$ = ElementList$;
exports.ElementList = ElementList;
exports.ScrollAlignment = ScrollAlignment;
exports.Event = Event;
exports.Events = Events;
exports.ElementEvents = ElementEvents;
exports.HeadElement = HeadElement;

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
// Messages from compiling unmodifiable_wrappers.dart
severe: [AnalyzerMessage] Missing concrete implementation of 'Iterable.map' and 'Iterable.expand' (package:collection/src/unmodifiable_wrappers.dart, line 20, col 7)
severe: [AnalyzerMessage] Missing concrete implementation of 'Iterable.expand' and 'Iterable.map' (package:collection/src/unmodifiable_wrappers.dart, line 93, col 7)
severe: [AnalyzerMessage] Missing concrete implementation of 'Iterable.map' and 'Iterable.expand' (package:collection/src/unmodifiable_wrappers.dart, line 93, col 7)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from dynamic to E (package:collection/src/unmodifiable_wrappers.dart, line 59, col 28)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from dynamic to E (package:collection/src/unmodifiable_wrappers.dart, line 63, col 21)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from dynamic to V (package:collection/src/unmodifiable_wrappers.dart, line 151, col 41)

View file

@ -1,17 +1,17 @@
// Messages from compiling wrappers.dart
severe: [INVALID_METHOD_OVERRIDE] Invalid override. The type of _DelegatingIterableBase.expand (((E) → Iterable<dynamic>) → Iterable<dynamic>) is not a subtype of Iterable<E>.expand (<T>((E) → Iterable<T>) → Iterable<T>). (package:collection/src/wrappers.dart, line 27, col 3)
severe: [INVALID_METHOD_OVERRIDE] Invalid override. The type of _DelegatingIterableBase.map (((E) → dynamic) → Iterable<dynamic>) is not a subtype of Iterable<E>.map (<T>((E) → T) → Iterable<T>). (package:collection/src/wrappers.dart, line 54, col 3)
severe: [AnalyzerMessage] Missing concrete implementation of 'Iterable.expand' and 'Iterable.map' (package:collection/src/wrappers.dart, line 97, col 7)
severe: [AnalyzerMessage] Missing concrete implementation of 'Iterable.map' and 'Iterable.expand' (package:collection/src/wrappers.dart, line 97, col 7)
severe: [INVALID_METHOD_OVERRIDE] Base class introduces an invalid override. The type of _DelegatingIterableBase.expand (((E) → Iterable<dynamic>) → Iterable<dynamic>) is not a subtype of Iterable<E>.expand (<T>((E) → Iterable<T>) → Iterable<T>). (package:collection/src/wrappers.dart, line 97, col 25)
severe: [INVALID_METHOD_OVERRIDE] Base class introduces an invalid override. The type of _DelegatingIterableBase.map (((E) → dynamic) → Iterable<dynamic>) is not a subtype of Iterable<E>.map (<T>((E) → T) → Iterable<T>). (package:collection/src/wrappers.dart, line 97, col 25)
severe: [AnalyzerMessage] Missing concrete implementation of 'Iterable.map' and 'Iterable.expand' (package:collection/src/wrappers.dart, line 194, col 7)
severe: [AnalyzerMessage] Missing concrete implementation of 'Iterable.expand' and 'Iterable.map' (package:collection/src/wrappers.dart, line 194, col 7)
severe: [INVALID_METHOD_OVERRIDE] Base class introduces an invalid override. The type of _DelegatingIterableBase.expand (((E) → Iterable<dynamic>) → Iterable<dynamic>) is not a subtype of Iterable<E>.expand (<T>((E) → Iterable<T>) → Iterable<T>). (package:collection/src/wrappers.dart, line 194, col 24)
severe: [INVALID_METHOD_OVERRIDE] Base class introduces an invalid override. The type of _DelegatingIterableBase.map (((E) → dynamic) → Iterable<dynamic>) is not a subtype of Iterable<E>.map (<T>((E) → T) → Iterable<T>). (package:collection/src/wrappers.dart, line 194, col 24)
severe: [AnalyzerMessage] Missing concrete implementation of 'Iterable.map' and 'Iterable.expand' (package:collection/src/wrappers.dart, line 245, col 7)
severe: [AnalyzerMessage] Missing concrete implementation of 'Iterable.expand' and 'Iterable.map' (package:collection/src/wrappers.dart, line 245, col 7)
severe: [INVALID_METHOD_OVERRIDE] Base class introduces an invalid override. The type of _DelegatingIterableBase.expand (((E) → Iterable<dynamic>) → Iterable<dynamic>) is not a subtype of Iterable<E>.expand (<T>((E) → Iterable<T>) → Iterable<T>). (package:collection/src/wrappers.dart, line 245, col 26)
severe: [INVALID_METHOD_OVERRIDE] Base class introduces an invalid override. The type of _DelegatingIterableBase.map (((E) → dynamic) → Iterable<dynamic>) is not a subtype of Iterable<E>.map (<T>((E) → T) → Iterable<T>). (package:collection/src/wrappers.dart, line 245, col 26)
severe: [AnalyzerMessage] Missing concrete implementation of 'Iterable.expand' and 'Iterable.map' (package:collection/src/wrappers.dart, line 339, col 7)
severe: [AnalyzerMessage] Missing concrete implementation of 'Iterable.map' and 'Iterable.expand' (package:collection/src/wrappers.dart, line 414, col 7)
severe: [AnalyzerMessage] Missing concrete implementation of 'Iterable.map' and 'Iterable.expand' (package:collection/src/wrappers.dart, line 339, col 7)
severe: [AnalyzerMessage] Missing concrete implementation of 'Iterable.expand' and 'Iterable.map' (package:collection/src/wrappers.dart, line 414, col 7)
severe: [INVALID_METHOD_OVERRIDE] Base class introduces an invalid override. The type of _DelegatingIterableBase.expand (((V) → Iterable<dynamic>) → Iterable<dynamic>) is not a subtype of Iterable<V>.expand (<T>((V) → Iterable<T>) → Iterable<T>). (package:collection/src/wrappers.dart, line 414, col 25)
severe: [INVALID_METHOD_OVERRIDE] Base class introduces an invalid override. The type of _DelegatingIterableBase.map (((V) → dynamic) → Iterable<dynamic>) is not a subtype of Iterable<V>.map (<T>((V) → T) → Iterable<T>). (package:collection/src/wrappers.dart, line 414, col 25)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from dynamic to T (package:collection/src/wrappers.dart, line 35, col 7)

View file

@ -3952,6 +3952,83 @@ class CssStyleDeclarationBase {
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// WARNING: Do not edit - generated code.
@DomName('CustomEvent')
@Native("CustomEvent")
class CustomEvent extends Event {
var _dartDetail;
factory CustomEvent(String type,
{bool canBubble: true, bool cancelable: true, Object detail}) {
final CustomEvent e = document._createEvent('CustomEvent');
e._dartDetail = detail;
// Only try setting the detail if it's one of these types to avoid
// first-chance exceptions. Can expand this list in the future as needed.
if (detail is List || detail is Map || detail is String || detail is num) {
try {
e._initCustomEvent(type, canBubble, cancelable, detail);
} catch(_) {
e._initCustomEvent(type, canBubble, cancelable, null);
}
} else {
e._initCustomEvent(type, canBubble, cancelable, null);
}
return e;
}
@DomName('CustomEvent.detail')
get detail {
if (_dartDetail != null) {
return _dartDetail;
}
return _detail;
}
// To suppress missing implicit constructor warnings.
factory CustomEvent._() { throw new UnsupportedError("Not supported"); }
@Deprecated("Internal Use Only")
static CustomEvent internalCreateCustomEvent() {
return new CustomEvent.internal_();
}
@Deprecated("Internal Use Only")
CustomEvent.internal_() : super.internal_();
@DomName('CustomEvent._detail')
@DocsEditable()
@Experimental() // untriaged
dynamic get _detail => convertNativeToDart_SerializedScriptValue(this._get__detail);
@JSName('detail')
@DomName('CustomEvent._detail')
@DocsEditable()
@Experimental() // untriaged
@Creates('Null')
dynamic get _get__detail => wrap_jso(JS("dynamic", "#.detail", this.raw));
@DomName('CustomEvent.initCustomEvent')
@DocsEditable()
void _initCustomEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Object detailArg) {
_initCustomEvent_1(typeArg, canBubbleArg, cancelableArg, detailArg);
return;
}
@JSName('initCustomEvent')
@DomName('CustomEvent.initCustomEvent')
@DocsEditable()
void _initCustomEvent_1(typeArg, canBubbleArg, cancelableArg, detailArg) => wrap_jso(JS("void ", "#.raw.initCustomEvent(#, #, #, #)", this, unwrap_jso(typeArg), unwrap_jso(canBubbleArg), unwrap_jso(cancelableArg), unwrap_jso(detailArg)));
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@DocsEditable()
/**
@ -19566,18 +19643,19 @@ wrap_jso(jso) {
var constructor = JS('', '#.constructor', jso)
var f = null;
String name;
bool skip = false;
String skip = null;
while (f == null) {
name = JS('String', '#.name', constructor);
f = getHtmlCreateFunction(name);
if (f == null) {
console.error('Could not instantiate $name');
skip = true;
if (skip == null) {
skip = name;
}
constructor = JS('', '#.__proto__', constructor);
}
}
if (skip) {
console.info('Instantiated $name instead');
if (skip != null) {
console.warn('Instantiated $name instead of $skip');
}
var wrapped = f();
wrapped.raw = jso;
@ -19605,6 +19683,7 @@ final htmlBlinkMap = {
'Comment': () => Comment,
'Console': () => Console,
'ConsoleBase': () => ConsoleBase,
'CustomEvent': () => CustomEvent,
'DOMImplementation': () => DomImplementation,
'DOMTokenList': () => DomTokenList,
'Document': () => Document,
@ -19657,6 +19736,7 @@ final htmlBlinkFunctionMap = {
'Comment': () => Comment.internalCreateComment,
'Console': () => Console.internalCreateConsole,
'ConsoleBase': () => ConsoleBase.internalCreateConsoleBase,
'CustomEvent': () => CustomEvent.internalCreateCustomEvent,
'DOMImplementation': () => DomImplementation.internalCreateDomImplementation,
'DOMTokenList': () => DomTokenList.internalCreateDomTokenList,
'Document': () => Document.internalCreateDocument,

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,218 @@
/**
* A client-side key-value store with support for indexes.
*
* Many browsers support IndexedDB&mdash;a web standard for
* an indexed database.
* By storing data on the client in an IndexedDB,
* a web app gets some advantages, such as faster performance and persistence.
* To find out which browsers support IndexedDB,
* refer to [Can I Use?](http://caniuse.com/#feat=indexeddb)
*
* In IndexedDB, each record is identified by a unique index or key,
* making data retrieval speedy.
* You can store structured data,
* such as images, arrays, and maps using IndexedDB.
* The standard does not specify size limits for individual data items
* or for the database itself, but browsers may impose storage limits.
*
* ## Using indexed_db
*
* The classes in this library provide an interface
* to the browser's IndexedDB, if it has one.
* To use this library in your code:
*
* import 'dart:indexed_db';
*
* A web app can determine if the browser supports
* IndexedDB with [IdbFactory.supported]:
*
* if (IdbFactory.supported)
* // Use indexeddb.
* else
* // Find an alternative.
*
* Access to the browser's IndexedDB is provided by the app's top-level
* [Window] object, which your code can refer to with `window.indexedDB`.
* So, for example,
* here's how to use window.indexedDB to open a database:
*
* Future open() {
* return window.indexedDB.open('myIndexedDB',
* version: 1,
* onUpgradeNeeded: _initializeDatabase)
* .then(_loadFromDB);
* }
* void _initializeDatabase(VersionChangeEvent e) {
* ...
* }
* Future _loadFromDB(Database db) {
* ...
* }
*
*
* All data in an IndexedDB is stored within an [ObjectStore].
* To manipulate the database use [Transaction]s.
*
* ## Other resources
*
* Other options for client-side data storage include:
*
* * [Window.localStorage]&mdash;a
* basic mechanism that stores data as a [Map],
* and where both the keys and the values are strings.
*
* * [dart:web_sql]&mdash;a database that can be queried with SQL.
*
* For a tutorial about using the indexed_db library with Dart,
* check out
* [Use IndexedDB](http://www.dartlang.org/docs/tutorials/indexeddb/).
*
* [IndexedDB reference](http://docs.webplatform.org/wiki/apis/indexeddb)
* provides wiki-style docs about indexedDB
*/
library dart.dom.indexed_db;
import 'dart:async';
import 'dart:html';
import 'dart:html_common';
import 'dart:_native_typed_data';
import 'dart:typed_data';
import 'dart:_js_helper' show Creates, Returns, JSName, Native;
import 'dart:_foreign_helper' show JS;
import 'dart:_interceptors' show Interceptor, JSExtendableArray;
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// DO NOT EDIT - unless you are editing documentation as per:
// https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation
// Auto-generated dart:svg library.
class _KeyRangeFactoryProvider {
static KeyRange createKeyRange_only(/*Key*/ value) =>
_only(_class(), _translateKey(value));
static KeyRange createKeyRange_lowerBound(
/*Key*/ bound, [bool open = false]) =>
_lowerBound(_class(), _translateKey(bound), open);
static KeyRange createKeyRange_upperBound(
/*Key*/ bound, [bool open = false]) =>
_upperBound(_class(), _translateKey(bound), open);
static KeyRange createKeyRange_bound(/*Key*/ lower, /*Key*/ upper,
[bool lowerOpen = false, bool upperOpen = false]) =>
_bound(_class(), _translateKey(lower), _translateKey(upper),
lowerOpen, upperOpen);
static var _cachedClass;
static _class() {
if (_cachedClass != null) return _cachedClass;
return _cachedClass = _uncachedClass();
}
static _uncachedClass() =>
JS('var',
'''window.webkitIDBKeyRange || window.mozIDBKeyRange ||
window.msIDBKeyRange || window.IDBKeyRange''');
static _translateKey(idbkey) => idbkey; // TODO: fixme.
static KeyRange _only(cls, value) =>
JS('KeyRange', '#.only(#)', cls, value);
static KeyRange _lowerBound(cls, bound, open) =>
JS('KeyRange', '#.lowerBound(#, #)', cls, bound, open);
static KeyRange _upperBound(cls, bound, open) =>
JS('KeyRange', '#.upperBound(#, #)', cls, bound, open);
static KeyRange _bound(cls, lower, upper, lowerOpen, upperOpen) =>
JS('KeyRange', '#.bound(#, #, #, #)',
cls, lower, upper, lowerOpen, upperOpen);
}
// Conversions for IDBKey.
//
// Per http://www.w3.org/TR/IndexedDB/#key-construct
//
// "A value is said to be a valid key if it is one of the following types: Array
// JavaScript objects [ECMA-262], DOMString [WEBIDL], Date [ECMA-262] or float
// [WEBIDL]. However Arrays are only valid keys if every item in the array is
// defined and is a valid key (i.e. sparse arrays can not be valid keys) and if
// the Array doesn't directly or indirectly contain itself. Any non-numeric
// properties are ignored, and thus does not affect whether the Array is a valid
// key. Additionally, if the value is of type float, it is only a valid key if
// it is not NaN, and if the value is of type Date it is only a valid key if its
// [[PrimitiveValue]] internal property, as defined by [ECMA-262], is not NaN."
// What is required is to ensure that an Lists in the key are actually
// JavaScript arrays, and any Dates are JavaScript Dates.
/**
* Converts a native IDBKey into a Dart object.
*
* May return the original input. May mutate the original input (but will be
* idempotent if mutation occurs). It is assumed that this conversion happens
* on native IDBKeys on all paths that return IDBKeys from native DOM calls.
*
* If necessary, JavaScript Dates are converted into Dart Dates.
*/
_convertNativeToDart_IDBKey(nativeKey) {
containsDate(object) {
if (isJavaScriptDate(object)) return true;
if (object is List) {
for (int i = 0; i < object.length; i++) {
if (containsDate(object[i])) return true;
}
}
return false; // number, string.
}
if (containsDate(nativeKey)) {
throw new UnimplementedError('Key containing DateTime');
}
// TODO: Cache conversion somewhere?
return nativeKey;
}
/**
* Converts a Dart object into a valid IDBKey.
*
* May return the original input. Does not mutate input.
*
* If necessary, [dartKey] may be copied to ensure all lists are converted into
* JavaScript Arrays and Dart Dates into JavaScript Dates.
*/
_convertDartToNative_IDBKey(dartKey) {
// TODO: Implement.
return dartKey;
}
/// May modify original. If so, action is idempotent.
_convertNativeToDart_IDBAny(object) {
return convertNativeToDart_AcceptStructuredClone(object, mustCopy: false);
}
// TODO(sra): Add DateTime.
const String _idbKey = 'JSExtendableArray|=Object|num|String';
const _annotation_Creates_IDBKey = const Creates(_idbKey);
const _annotation_Returns_IDBKey = const Returns(_idbKey);
// FIXME: Can we make this private?
final indexed_dbBlinkMap = {
};
// FIXME: Can we make this private?
final indexed_dbBlinkFunctionMap = {
};

View file

@ -0,0 +1,47 @@
/**
* Scalable Vector Graphics:
* Two-dimensional vector graphics with support for events and animation.
*
* For details about the features and syntax of SVG, a W3C standard,
* refer to the
* [Scalable Vector Graphics Specification](http://www.w3.org/TR/SVG/).
*/
library dart.dom.svg;
import 'dart:async';
import 'dart:collection';
import 'dart:_internal';
import 'dart:html';
import 'dart:html_common';
import 'dart:_js_helper' show Creates, Returns, JSName, Native;
import 'dart:_foreign_helper' show JS;
import 'dart:_interceptors' show Interceptor;
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
class _SvgElementFactoryProvider {
static SvgElement createSvgElement_tag(String tag) {
final Element temp =
document.createElementNS("http://www.w3.org/2000/svg", tag);
return temp;
}
}
// DO NOT EDIT - unless you are editing documentation as per:
// https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation
// Auto-generated dart:svg library.
// FIXME: Can we make this private?
final svgBlinkMap = {
};
// FIXME: Can we make this private?
final svgBlinkFunctionMap = {
};

View file

@ -0,0 +1,31 @@
/**
* High-fidelity audio programming in the browser.
*/
library dart.dom.web_audio;
import 'dart:async';
import 'dart:collection';
import 'dart:_internal';
import 'dart:html';
import 'dart:html_common';
import 'dart:_native_typed_data';
import 'dart:typed_data';
import 'dart:_js_helper' show Creates, JSName, Native, Returns, convertDartClosureToJS;
import 'dart:_foreign_helper' show JS;
import 'dart:_interceptors' show Interceptor;
// DO NOT EDIT - unless you are editing documentation as per:
// https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation
// Auto-generated dart:audio library.
// FIXME: Can we make this private?
final web_audioBlinkMap = {
};
// FIXME: Can we make this private?
final web_audioBlinkFunctionMap = {
};

View file

@ -0,0 +1,332 @@
/**
* 3D programming in the browser.
*/
library dart.dom.web_gl;
import 'dart:collection';
import 'dart:_internal';
import 'dart:html';
import 'dart:html_common';
import 'dart:_native_typed_data';
import 'dart:typed_data';
import 'dart:_js_helper' show Creates, JSName, Native, Returns, convertDartClosureToJS;
import 'dart:_foreign_helper' show JS;
import 'dart:_interceptors' show Interceptor, JSExtendableArray;
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
const int ACTIVE_ATTRIBUTES = RenderingContext.ACTIVE_ATTRIBUTES;
const int ACTIVE_TEXTURE = RenderingContext.ACTIVE_TEXTURE;
const int ACTIVE_UNIFORMS = RenderingContext.ACTIVE_UNIFORMS;
const int ALIASED_LINE_WIDTH_RANGE = RenderingContext.ALIASED_LINE_WIDTH_RANGE;
const int ALIASED_POINT_SIZE_RANGE = RenderingContext.ALIASED_POINT_SIZE_RANGE;
const int ALPHA = RenderingContext.ALPHA;
const int ALPHA_BITS = RenderingContext.ALPHA_BITS;
const int ALWAYS = RenderingContext.ALWAYS;
const int ARRAY_BUFFER = RenderingContext.ARRAY_BUFFER;
const int ARRAY_BUFFER_BINDING = RenderingContext.ARRAY_BUFFER_BINDING;
const int ATTACHED_SHADERS = RenderingContext.ATTACHED_SHADERS;
const int BACK = RenderingContext.BACK;
const int BLEND = RenderingContext.BLEND;
const int BLEND_COLOR = RenderingContext.BLEND_COLOR;
const int BLEND_DST_ALPHA = RenderingContext.BLEND_DST_ALPHA;
const int BLEND_DST_RGB = RenderingContext.BLEND_DST_RGB;
const int BLEND_EQUATION = RenderingContext.BLEND_EQUATION;
const int BLEND_EQUATION_ALPHA = RenderingContext.BLEND_EQUATION_ALPHA;
const int BLEND_EQUATION_RGB = RenderingContext.BLEND_EQUATION_RGB;
const int BLEND_SRC_ALPHA = RenderingContext.BLEND_SRC_ALPHA;
const int BLEND_SRC_RGB = RenderingContext.BLEND_SRC_RGB;
const int BLUE_BITS = RenderingContext.BLUE_BITS;
const int BOOL = RenderingContext.BOOL;
const int BOOL_VEC2 = RenderingContext.BOOL_VEC2;
const int BOOL_VEC3 = RenderingContext.BOOL_VEC3;
const int BOOL_VEC4 = RenderingContext.BOOL_VEC4;
const int BROWSER_DEFAULT_WEBGL = RenderingContext.BROWSER_DEFAULT_WEBGL;
const int BUFFER_SIZE = RenderingContext.BUFFER_SIZE;
const int BUFFER_USAGE = RenderingContext.BUFFER_USAGE;
const int BYTE = RenderingContext.BYTE;
const int CCW = RenderingContext.CCW;
const int CLAMP_TO_EDGE = RenderingContext.CLAMP_TO_EDGE;
const int COLOR_ATTACHMENT0 = RenderingContext.COLOR_ATTACHMENT0;
const int COLOR_BUFFER_BIT = RenderingContext.COLOR_BUFFER_BIT;
const int COLOR_CLEAR_VALUE = RenderingContext.COLOR_CLEAR_VALUE;
const int COLOR_WRITEMASK = RenderingContext.COLOR_WRITEMASK;
const int COMPILE_STATUS = RenderingContext.COMPILE_STATUS;
const int COMPRESSED_TEXTURE_FORMATS = RenderingContext.COMPRESSED_TEXTURE_FORMATS;
const int CONSTANT_ALPHA = RenderingContext.CONSTANT_ALPHA;
const int CONSTANT_COLOR = RenderingContext.CONSTANT_COLOR;
const int CONTEXT_LOST_WEBGL = RenderingContext.CONTEXT_LOST_WEBGL;
const int CULL_FACE = RenderingContext.CULL_FACE;
const int CULL_FACE_MODE = RenderingContext.CULL_FACE_MODE;
const int CURRENT_PROGRAM = RenderingContext.CURRENT_PROGRAM;
const int CURRENT_VERTEX_ATTRIB = RenderingContext.CURRENT_VERTEX_ATTRIB;
const int CW = RenderingContext.CW;
const int DECR = RenderingContext.DECR;
const int DECR_WRAP = RenderingContext.DECR_WRAP;
const int DELETE_STATUS = RenderingContext.DELETE_STATUS;
const int DEPTH_ATTACHMENT = RenderingContext.DEPTH_ATTACHMENT;
const int DEPTH_BITS = RenderingContext.DEPTH_BITS;
const int DEPTH_BUFFER_BIT = RenderingContext.DEPTH_BUFFER_BIT;
const int DEPTH_CLEAR_VALUE = RenderingContext.DEPTH_CLEAR_VALUE;
const int DEPTH_COMPONENT = RenderingContext.DEPTH_COMPONENT;
const int DEPTH_COMPONENT16 = RenderingContext.DEPTH_COMPONENT16;
const int DEPTH_FUNC = RenderingContext.DEPTH_FUNC;
const int DEPTH_RANGE = RenderingContext.DEPTH_RANGE;
const int DEPTH_STENCIL = RenderingContext.DEPTH_STENCIL;
const int DEPTH_STENCIL_ATTACHMENT = RenderingContext.DEPTH_STENCIL_ATTACHMENT;
const int DEPTH_TEST = RenderingContext.DEPTH_TEST;
const int DEPTH_WRITEMASK = RenderingContext.DEPTH_WRITEMASK;
const int DITHER = RenderingContext.DITHER;
const int DONT_CARE = RenderingContext.DONT_CARE;
const int DST_ALPHA = RenderingContext.DST_ALPHA;
const int DST_COLOR = RenderingContext.DST_COLOR;
const int DYNAMIC_DRAW = RenderingContext.DYNAMIC_DRAW;
const int ELEMENT_ARRAY_BUFFER = RenderingContext.ELEMENT_ARRAY_BUFFER;
const int ELEMENT_ARRAY_BUFFER_BINDING = RenderingContext.ELEMENT_ARRAY_BUFFER_BINDING;
const int EQUAL = RenderingContext.EQUAL;
const int FASTEST = RenderingContext.FASTEST;
const int FLOAT = RenderingContext.FLOAT;
const int FLOAT_MAT2 = RenderingContext.FLOAT_MAT2;
const int FLOAT_MAT3 = RenderingContext.FLOAT_MAT3;
const int FLOAT_MAT4 = RenderingContext.FLOAT_MAT4;
const int FLOAT_VEC2 = RenderingContext.FLOAT_VEC2;
const int FLOAT_VEC3 = RenderingContext.FLOAT_VEC3;
const int FLOAT_VEC4 = RenderingContext.FLOAT_VEC4;
const int FRAGMENT_SHADER = RenderingContext.FRAGMENT_SHADER;
const int FRAMEBUFFER = RenderingContext.FRAMEBUFFER;
const int FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = RenderingContext.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME;
const int FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = RenderingContext.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE;
const int FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = RenderingContext.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE;
const int FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = RenderingContext.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL;
const int FRAMEBUFFER_BINDING = RenderingContext.FRAMEBUFFER_BINDING;
const int FRAMEBUFFER_COMPLETE = RenderingContext.FRAMEBUFFER_COMPLETE;
const int FRAMEBUFFER_INCOMPLETE_ATTACHMENT = RenderingContext.FRAMEBUFFER_INCOMPLETE_ATTACHMENT;
const int FRAMEBUFFER_INCOMPLETE_DIMENSIONS = RenderingContext.FRAMEBUFFER_INCOMPLETE_DIMENSIONS;
const int FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = RenderingContext.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT;
const int FRAMEBUFFER_UNSUPPORTED = RenderingContext.FRAMEBUFFER_UNSUPPORTED;
const int FRONT = RenderingContext.FRONT;
const int FRONT_AND_BACK = RenderingContext.FRONT_AND_BACK;
const int FRONT_FACE = RenderingContext.FRONT_FACE;
const int FUNC_ADD = RenderingContext.FUNC_ADD;
const int FUNC_REVERSE_SUBTRACT = RenderingContext.FUNC_REVERSE_SUBTRACT;
const int FUNC_SUBTRACT = RenderingContext.FUNC_SUBTRACT;
const int GENERATE_MIPMAP_HINT = RenderingContext.GENERATE_MIPMAP_HINT;
const int GEQUAL = RenderingContext.GEQUAL;
const int GREATER = RenderingContext.GREATER;
const int GREEN_BITS = RenderingContext.GREEN_BITS;
const int HALF_FLOAT_OES = OesTextureHalfFloat.HALF_FLOAT_OES;
const int HIGH_FLOAT = RenderingContext.HIGH_FLOAT;
const int HIGH_INT = RenderingContext.HIGH_INT;
const int INCR = RenderingContext.INCR;
const int INCR_WRAP = RenderingContext.INCR_WRAP;
const int INT = RenderingContext.INT;
const int INT_VEC2 = RenderingContext.INT_VEC2;
const int INT_VEC3 = RenderingContext.INT_VEC3;
const int INT_VEC4 = RenderingContext.INT_VEC4;
const int INVALID_ENUM = RenderingContext.INVALID_ENUM;
const int INVALID_FRAMEBUFFER_OPERATION = RenderingContext.INVALID_FRAMEBUFFER_OPERATION;
const int INVALID_OPERATION = RenderingContext.INVALID_OPERATION;
const int INVALID_VALUE = RenderingContext.INVALID_VALUE;
const int INVERT = RenderingContext.INVERT;
const int KEEP = RenderingContext.KEEP;
const int LEQUAL = RenderingContext.LEQUAL;
const int LESS = RenderingContext.LESS;
const int LINEAR = RenderingContext.LINEAR;
const int LINEAR_MIPMAP_LINEAR = RenderingContext.LINEAR_MIPMAP_LINEAR;
const int LINEAR_MIPMAP_NEAREST = RenderingContext.LINEAR_MIPMAP_NEAREST;
const int LINES = RenderingContext.LINES;
const int LINE_LOOP = RenderingContext.LINE_LOOP;
const int LINE_STRIP = RenderingContext.LINE_STRIP;
const int LINE_WIDTH = RenderingContext.LINE_WIDTH;
const int LINK_STATUS = RenderingContext.LINK_STATUS;
const int LOW_FLOAT = RenderingContext.LOW_FLOAT;
const int LOW_INT = RenderingContext.LOW_INT;
const int LUMINANCE = RenderingContext.LUMINANCE;
const int LUMINANCE_ALPHA = RenderingContext.LUMINANCE_ALPHA;
const int MAX_COMBINED_TEXTURE_IMAGE_UNITS = RenderingContext.MAX_COMBINED_TEXTURE_IMAGE_UNITS;
const int MAX_CUBE_MAP_TEXTURE_SIZE = RenderingContext.MAX_CUBE_MAP_TEXTURE_SIZE;
const int MAX_FRAGMENT_UNIFORM_VECTORS = RenderingContext.MAX_FRAGMENT_UNIFORM_VECTORS;
const int MAX_RENDERBUFFER_SIZE = RenderingContext.MAX_RENDERBUFFER_SIZE;
const int MAX_TEXTURE_IMAGE_UNITS = RenderingContext.MAX_TEXTURE_IMAGE_UNITS;
const int MAX_TEXTURE_SIZE = RenderingContext.MAX_TEXTURE_SIZE;
const int MAX_VARYING_VECTORS = RenderingContext.MAX_VARYING_VECTORS;
const int MAX_VERTEX_ATTRIBS = RenderingContext.MAX_VERTEX_ATTRIBS;
const int MAX_VERTEX_TEXTURE_IMAGE_UNITS = RenderingContext.MAX_VERTEX_TEXTURE_IMAGE_UNITS;
const int MAX_VERTEX_UNIFORM_VECTORS = RenderingContext.MAX_VERTEX_UNIFORM_VECTORS;
const int MAX_VIEWPORT_DIMS = RenderingContext.MAX_VIEWPORT_DIMS;
const int MEDIUM_FLOAT = RenderingContext.MEDIUM_FLOAT;
const int MEDIUM_INT = RenderingContext.MEDIUM_INT;
const int MIRRORED_REPEAT = RenderingContext.MIRRORED_REPEAT;
const int NEAREST = RenderingContext.NEAREST;
const int NEAREST_MIPMAP_LINEAR = RenderingContext.NEAREST_MIPMAP_LINEAR;
const int NEAREST_MIPMAP_NEAREST = RenderingContext.NEAREST_MIPMAP_NEAREST;
const int NEVER = RenderingContext.NEVER;
const int NICEST = RenderingContext.NICEST;
const int NONE = RenderingContext.NONE;
const int NOTEQUAL = RenderingContext.NOTEQUAL;
const int NO_ERROR = RenderingContext.NO_ERROR;
const int ONE = RenderingContext.ONE;
const int ONE_MINUS_CONSTANT_ALPHA = RenderingContext.ONE_MINUS_CONSTANT_ALPHA;
const int ONE_MINUS_CONSTANT_COLOR = RenderingContext.ONE_MINUS_CONSTANT_COLOR;
const int ONE_MINUS_DST_ALPHA = RenderingContext.ONE_MINUS_DST_ALPHA;
const int ONE_MINUS_DST_COLOR = RenderingContext.ONE_MINUS_DST_COLOR;
const int ONE_MINUS_SRC_ALPHA = RenderingContext.ONE_MINUS_SRC_ALPHA;
const int ONE_MINUS_SRC_COLOR = RenderingContext.ONE_MINUS_SRC_COLOR;
const int OUT_OF_MEMORY = RenderingContext.OUT_OF_MEMORY;
const int PACK_ALIGNMENT = RenderingContext.PACK_ALIGNMENT;
const int POINTS = RenderingContext.POINTS;
const int POLYGON_OFFSET_FACTOR = RenderingContext.POLYGON_OFFSET_FACTOR;
const int POLYGON_OFFSET_FILL = RenderingContext.POLYGON_OFFSET_FILL;
const int POLYGON_OFFSET_UNITS = RenderingContext.POLYGON_OFFSET_UNITS;
const int RED_BITS = RenderingContext.RED_BITS;
const int RENDERBUFFER = RenderingContext.RENDERBUFFER;
const int RENDERBUFFER_ALPHA_SIZE = RenderingContext.RENDERBUFFER_ALPHA_SIZE;
const int RENDERBUFFER_BINDING = RenderingContext.RENDERBUFFER_BINDING;
const int RENDERBUFFER_BLUE_SIZE = RenderingContext.RENDERBUFFER_BLUE_SIZE;
const int RENDERBUFFER_DEPTH_SIZE = RenderingContext.RENDERBUFFER_DEPTH_SIZE;
const int RENDERBUFFER_GREEN_SIZE = RenderingContext.RENDERBUFFER_GREEN_SIZE;
const int RENDERBUFFER_HEIGHT = RenderingContext.RENDERBUFFER_HEIGHT;
const int RENDERBUFFER_INTERNAL_FORMAT = RenderingContext.RENDERBUFFER_INTERNAL_FORMAT;
const int RENDERBUFFER_RED_SIZE = RenderingContext.RENDERBUFFER_RED_SIZE;
const int RENDERBUFFER_STENCIL_SIZE = RenderingContext.RENDERBUFFER_STENCIL_SIZE;
const int RENDERBUFFER_WIDTH = RenderingContext.RENDERBUFFER_WIDTH;
const int RENDERER = RenderingContext.RENDERER;
const int REPEAT = RenderingContext.REPEAT;
const int REPLACE = RenderingContext.REPLACE;
const int RGB = RenderingContext.RGB;
const int RGB565 = RenderingContext.RGB565;
const int RGB5_A1 = RenderingContext.RGB5_A1;
const int RGBA = RenderingContext.RGBA;
const int RGBA4 = RenderingContext.RGBA4;
const int SAMPLER_2D = RenderingContext.SAMPLER_2D;
const int SAMPLER_CUBE = RenderingContext.SAMPLER_CUBE;
const int SAMPLES = RenderingContext.SAMPLES;
const int SAMPLE_ALPHA_TO_COVERAGE = RenderingContext.SAMPLE_ALPHA_TO_COVERAGE;
const int SAMPLE_BUFFERS = RenderingContext.SAMPLE_BUFFERS;
const int SAMPLE_COVERAGE = RenderingContext.SAMPLE_COVERAGE;
const int SAMPLE_COVERAGE_INVERT = RenderingContext.SAMPLE_COVERAGE_INVERT;
const int SAMPLE_COVERAGE_VALUE = RenderingContext.SAMPLE_COVERAGE_VALUE;
const int SCISSOR_BOX = RenderingContext.SCISSOR_BOX;
const int SCISSOR_TEST = RenderingContext.SCISSOR_TEST;
const int SHADER_TYPE = RenderingContext.SHADER_TYPE;
const int SHADING_LANGUAGE_VERSION = RenderingContext.SHADING_LANGUAGE_VERSION;
const int SHORT = RenderingContext.SHORT;
const int SRC_ALPHA = RenderingContext.SRC_ALPHA;
const int SRC_ALPHA_SATURATE = RenderingContext.SRC_ALPHA_SATURATE;
const int SRC_COLOR = RenderingContext.SRC_COLOR;
const int STATIC_DRAW = RenderingContext.STATIC_DRAW;
const int STENCIL_ATTACHMENT = RenderingContext.STENCIL_ATTACHMENT;
const int STENCIL_BACK_FAIL = RenderingContext.STENCIL_BACK_FAIL;
const int STENCIL_BACK_FUNC = RenderingContext.STENCIL_BACK_FUNC;
const int STENCIL_BACK_PASS_DEPTH_FAIL = RenderingContext.STENCIL_BACK_PASS_DEPTH_FAIL;
const int STENCIL_BACK_PASS_DEPTH_PASS = RenderingContext.STENCIL_BACK_PASS_DEPTH_PASS;
const int STENCIL_BACK_REF = RenderingContext.STENCIL_BACK_REF;
const int STENCIL_BACK_VALUE_MASK = RenderingContext.STENCIL_BACK_VALUE_MASK;
const int STENCIL_BACK_WRITEMASK = RenderingContext.STENCIL_BACK_WRITEMASK;
const int STENCIL_BITS = RenderingContext.STENCIL_BITS;
const int STENCIL_BUFFER_BIT = RenderingContext.STENCIL_BUFFER_BIT;
const int STENCIL_CLEAR_VALUE = RenderingContext.STENCIL_CLEAR_VALUE;
const int STENCIL_FAIL = RenderingContext.STENCIL_FAIL;
const int STENCIL_FUNC = RenderingContext.STENCIL_FUNC;
const int STENCIL_INDEX = RenderingContext.STENCIL_INDEX;
const int STENCIL_INDEX8 = RenderingContext.STENCIL_INDEX8;
const int STENCIL_PASS_DEPTH_FAIL = RenderingContext.STENCIL_PASS_DEPTH_FAIL;
const int STENCIL_PASS_DEPTH_PASS = RenderingContext.STENCIL_PASS_DEPTH_PASS;
const int STENCIL_REF = RenderingContext.STENCIL_REF;
const int STENCIL_TEST = RenderingContext.STENCIL_TEST;
const int STENCIL_VALUE_MASK = RenderingContext.STENCIL_VALUE_MASK;
const int STENCIL_WRITEMASK = RenderingContext.STENCIL_WRITEMASK;
const int STREAM_DRAW = RenderingContext.STREAM_DRAW;
const int SUBPIXEL_BITS = RenderingContext.SUBPIXEL_BITS;
const int TEXTURE = RenderingContext.TEXTURE;
const int TEXTURE0 = RenderingContext.TEXTURE0;
const int TEXTURE1 = RenderingContext.TEXTURE1;
const int TEXTURE10 = RenderingContext.TEXTURE10;
const int TEXTURE11 = RenderingContext.TEXTURE11;
const int TEXTURE12 = RenderingContext.TEXTURE12;
const int TEXTURE13 = RenderingContext.TEXTURE13;
const int TEXTURE14 = RenderingContext.TEXTURE14;
const int TEXTURE15 = RenderingContext.TEXTURE15;
const int TEXTURE16 = RenderingContext.TEXTURE16;
const int TEXTURE17 = RenderingContext.TEXTURE17;
const int TEXTURE18 = RenderingContext.TEXTURE18;
const int TEXTURE19 = RenderingContext.TEXTURE19;
const int TEXTURE2 = RenderingContext.TEXTURE2;
const int TEXTURE20 = RenderingContext.TEXTURE20;
const int TEXTURE21 = RenderingContext.TEXTURE21;
const int TEXTURE22 = RenderingContext.TEXTURE22;
const int TEXTURE23 = RenderingContext.TEXTURE23;
const int TEXTURE24 = RenderingContext.TEXTURE24;
const int TEXTURE25 = RenderingContext.TEXTURE25;
const int TEXTURE26 = RenderingContext.TEXTURE26;
const int TEXTURE27 = RenderingContext.TEXTURE27;
const int TEXTURE28 = RenderingContext.TEXTURE28;
const int TEXTURE29 = RenderingContext.TEXTURE29;
const int TEXTURE3 = RenderingContext.TEXTURE3;
const int TEXTURE30 = RenderingContext.TEXTURE30;
const int TEXTURE31 = RenderingContext.TEXTURE31;
const int TEXTURE4 = RenderingContext.TEXTURE4;
const int TEXTURE5 = RenderingContext.TEXTURE5;
const int TEXTURE6 = RenderingContext.TEXTURE6;
const int TEXTURE7 = RenderingContext.TEXTURE7;
const int TEXTURE8 = RenderingContext.TEXTURE8;
const int TEXTURE9 = RenderingContext.TEXTURE9;
const int TEXTURE_2D = RenderingContext.TEXTURE_2D;
const int TEXTURE_BINDING_2D = RenderingContext.TEXTURE_BINDING_2D;
const int TEXTURE_BINDING_CUBE_MAP = RenderingContext.TEXTURE_BINDING_CUBE_MAP;
const int TEXTURE_CUBE_MAP = RenderingContext.TEXTURE_CUBE_MAP;
const int TEXTURE_CUBE_MAP_NEGATIVE_X = RenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_X;
const int TEXTURE_CUBE_MAP_NEGATIVE_Y = RenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_Y;
const int TEXTURE_CUBE_MAP_NEGATIVE_Z = RenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_Z;
const int TEXTURE_CUBE_MAP_POSITIVE_X = RenderingContext.TEXTURE_CUBE_MAP_POSITIVE_X;
const int TEXTURE_CUBE_MAP_POSITIVE_Y = RenderingContext.TEXTURE_CUBE_MAP_POSITIVE_Y;
const int TEXTURE_CUBE_MAP_POSITIVE_Z = RenderingContext.TEXTURE_CUBE_MAP_POSITIVE_Z;
const int TEXTURE_MAG_FILTER = RenderingContext.TEXTURE_MAG_FILTER;
const int TEXTURE_MIN_FILTER = RenderingContext.TEXTURE_MIN_FILTER;
const int TEXTURE_WRAP_S = RenderingContext.TEXTURE_WRAP_S;
const int TEXTURE_WRAP_T = RenderingContext.TEXTURE_WRAP_T;
const int TRIANGLES = RenderingContext.TRIANGLES;
const int TRIANGLE_FAN = RenderingContext.TRIANGLE_FAN;
const int TRIANGLE_STRIP = RenderingContext.TRIANGLE_STRIP;
const int UNPACK_ALIGNMENT = RenderingContext.UNPACK_ALIGNMENT;
const int UNPACK_COLORSPACE_CONVERSION_WEBGL = RenderingContext.UNPACK_COLORSPACE_CONVERSION_WEBGL;
const int UNPACK_FLIP_Y_WEBGL = RenderingContext.UNPACK_FLIP_Y_WEBGL;
const int UNPACK_PREMULTIPLY_ALPHA_WEBGL = RenderingContext.UNPACK_PREMULTIPLY_ALPHA_WEBGL;
const int UNSIGNED_BYTE = RenderingContext.UNSIGNED_BYTE;
const int UNSIGNED_INT = RenderingContext.UNSIGNED_INT;
const int UNSIGNED_SHORT = RenderingContext.UNSIGNED_SHORT;
const int UNSIGNED_SHORT_4_4_4_4 = RenderingContext.UNSIGNED_SHORT_4_4_4_4;
const int UNSIGNED_SHORT_5_5_5_1 = RenderingContext.UNSIGNED_SHORT_5_5_5_1;
const int UNSIGNED_SHORT_5_6_5 = RenderingContext.UNSIGNED_SHORT_5_6_5;
const int VALIDATE_STATUS = RenderingContext.VALIDATE_STATUS;
const int VENDOR = RenderingContext.VENDOR;
const int VERSION = RenderingContext.VERSION;
const int VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = RenderingContext.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING;
const int VERTEX_ATTRIB_ARRAY_ENABLED = RenderingContext.VERTEX_ATTRIB_ARRAY_ENABLED;
const int VERTEX_ATTRIB_ARRAY_NORMALIZED = RenderingContext.VERTEX_ATTRIB_ARRAY_NORMALIZED;
const int VERTEX_ATTRIB_ARRAY_POINTER = RenderingContext.VERTEX_ATTRIB_ARRAY_POINTER;
const int VERTEX_ATTRIB_ARRAY_SIZE = RenderingContext.VERTEX_ATTRIB_ARRAY_SIZE;
const int VERTEX_ATTRIB_ARRAY_STRIDE = RenderingContext.VERTEX_ATTRIB_ARRAY_STRIDE;
const int VERTEX_ATTRIB_ARRAY_TYPE = RenderingContext.VERTEX_ATTRIB_ARRAY_TYPE;
const int VERTEX_SHADER = RenderingContext.VERTEX_SHADER;
const int VIEWPORT = RenderingContext.VIEWPORT;
const int ZERO = RenderingContext.ZERO;
// DO NOT EDIT - unless you are editing documentation as per:
// https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation
// Auto-generated dart:web_gl library.
// FIXME: Can we make this private?
final web_glBlinkMap = {
};
// FIXME: Can we make this private?
final web_glBlinkFunctionMap = {
};

View file

@ -0,0 +1,36 @@
/**
* An API for storing data in the browser that can be queried with SQL.
*
* **Caution:** this specification is no longer actively maintained by the Web
* Applications Working Group and may be removed at any time.
* See [the W3C Web SQL Database specification](http://www.w3.org/TR/webdatabase/)
* for more information.
*
* The [dart:indexed_db] APIs is a recommended alternatives.
*/
library dart.dom.web_sql;
import 'dart:async';
import 'dart:collection';
import 'dart:_internal';
import 'dart:html';
import 'dart:html_common';
import 'dart:_js_helper' show convertDartClosureToJS, Creates, JSName, Native;
import 'dart:_foreign_helper' show JS;
import 'dart:_interceptors' show Interceptor;
// DO NOT EDIT - unless you are editing documentation as per:
// https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation
// Auto-generated dart:audio library.
// FIXME: Can we make this private?
final web_sqlBlinkMap = {
};
// FIXME: Can we make this private?
final web_sqlBlinkFunctionMap = {
};

View file

@ -277,35 +277,34 @@ warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from dynamic to E (dart:js,
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from dynamic to E (dart:js, line 405, col 12)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from dynamic to E (dart:js, line 410, col 12)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from dynamic to List<Type> (dart:_js_mirrors, line 127, col 31)
severe: [AnalyzerMessage] The setter 'classes' is not defined for the class 'Node' (dart:html, line 5484, col 32)
severe: [AnalyzerMessage] The method '_registerCustomElement' is not defined for the class 'HtmlDocument' (dart:html, line 8391, col 5)
severe: [AnalyzerMessage] 14 positional arguments expected, but 18 found (dart:html, line 10953, col 185)
severe: [AnalyzerMessage] The getter 'name' is not defined for the class 'Node' (dart:html, line 14585, col 32)
severe: [AnalyzerMessage] The getter 'value' is not defined for the class 'Node' (dart:html, line 14597, col 34)
severe: [INVALID_FIELD_OVERRIDE] Field declaration MutableRectangle<num>.left cannot be overridden in CssRect. (dart:html, line 15272, col 3)
severe: [INVALID_FIELD_OVERRIDE] Field declaration MutableRectangle<num>.top cannot be overridden in CssRect. (dart:html, line 15274, col 3)
severe: [AnalyzerMessage] The method 'matchesWithAncestors' is not defined for the class 'EventTarget' (dart:html, line 15871, col 31)
severe: [AnalyzerMessage] The method 'matchesWithAncestors' is not defined for the class 'EventTarget' (dart:html, line 15895, col 31)
severe: [AnalyzerMessage] Missing concrete implementation of 'EventTarget._addEventListener_1', 'EventTarget._removeEventListener_3', 'EventTarget._removeEventListener_1', 'EventTarget._removeEventListener_2' and 7 more (dart:html, line 18604, col 7)
severe: [AnalyzerMessage] Missing concrete implementation of 'KeyboardEvent._getModifierState_1', 'Event._stopImmediatePropagation_1', setter 'DartHtmlDomObject.raw', 'Event._preventDefault_1' and 4 more (dart:html, line 18752, col 7)
severe: [AnalyzerMessage] The method 'makeLeafDispatchRecord' is not defined for the class 'KeyEvent' (dart:html, line 18798, col 12)
severe: [AnalyzerMessage] The method 'setDispatchProperty' is not defined for the class 'KeyEvent' (dart:html, line 18868, col 5)
severe: [AnalyzerMessage] Undefined class 'DataTransfer' (dart:html, line 18912, col 3)
severe: [AnalyzerMessage] The getter 'clipboardData' is not defined for the class 'KeyboardEvent' (dart:html, line 18912, col 45)
severe: [AnalyzerMessage] Missing concrete implementation of getter 'DartHtmlDomObject.raw', 'Event._initEvent_1', 'Event._stopImmediatePropagation_1', setter 'DartHtmlDomObject.raw' and 2 more (dart:html, line 18986, col 7)
severe: [AnalyzerMessage] Undefined class 'DataTransfer' (dart:html, line 18998, col 3)
severe: [AnalyzerMessage] The getter 'clipboardData' is not defined for the class 'Event' (dart:html, line 18998, col 45)
severe: [AnalyzerMessage] The method 'matches' is not defined for the class 'EventTarget' (dart:html, line 19044, col 18)
severe: [AnalyzerMessage] The getter 'parent' is not defined for the class 'EventTarget' (dart:html, line 19045, col 23)
severe: [AnalyzerMessage] The getter 'parent' is not defined for the class 'EventTarget' (dart:html, line 19046, col 56)
severe: [AnalyzerMessage] Directives must appear before any declarations (dart:html, line 19449, col 1)
severe: [AnalyzerMessage] The name 'Entry' is not a type and cannot be used as a parameterized type (dart:html, line 19515, col 44)
severe: [AnalyzerMessage] Expected to find ';' (dart:html, line 19566, col 48)
severe: [AnalyzerMessage] Undefined name 'console' (dart:html, line 19574, col 7)
severe: [AnalyzerMessage] Undefined name 'console' (dart:html, line 19580, col 5)
severe: [AnalyzerMessage] Undefined name 'js' (dart:html, line 19597, col 21)
severe: [AnalyzerMessage] Undefined name 'js' (dart:html, line 19598, col 23)
severe: [AnalyzerMessage] Undefined name 'js' (dart:html, line 19599, col 20)
severe: [AnalyzerMessage] The setter 'classes' is not defined for the class 'Node' (dart:html, line 5561, col 32)
severe: [AnalyzerMessage] The method '_registerCustomElement' is not defined for the class 'HtmlDocument' (dart:html, line 8468, col 5)
severe: [AnalyzerMessage] 14 positional arguments expected, but 18 found (dart:html, line 11030, col 185)
severe: [AnalyzerMessage] The getter 'name' is not defined for the class 'Node' (dart:html, line 14662, col 32)
severe: [AnalyzerMessage] The getter 'value' is not defined for the class 'Node' (dart:html, line 14674, col 34)
severe: [INVALID_FIELD_OVERRIDE] Field declaration MutableRectangle<num>.left cannot be overridden in CssRect. (dart:html, line 15349, col 3)
severe: [INVALID_FIELD_OVERRIDE] Field declaration MutableRectangle<num>.top cannot be overridden in CssRect. (dart:html, line 15351, col 3)
severe: [AnalyzerMessage] The method 'matchesWithAncestors' is not defined for the class 'EventTarget' (dart:html, line 15948, col 31)
severe: [AnalyzerMessage] The method 'matchesWithAncestors' is not defined for the class 'EventTarget' (dart:html, line 15972, col 31)
severe: [AnalyzerMessage] Missing concrete implementation of 'EventTarget._addEventListener_1', 'EventTarget._removeEventListener_3', 'EventTarget._removeEventListener_1', 'EventTarget._removeEventListener_2' and 7 more (dart:html, line 18681, col 7)
severe: [AnalyzerMessage] Missing concrete implementation of 'KeyboardEvent._getModifierState_1', 'Event._stopImmediatePropagation_1', setter 'DartHtmlDomObject.raw', 'Event._preventDefault_1' and 4 more (dart:html, line 18829, col 7)
severe: [AnalyzerMessage] The method 'makeLeafDispatchRecord' is not defined for the class 'KeyEvent' (dart:html, line 18875, col 12)
severe: [AnalyzerMessage] The method 'setDispatchProperty' is not defined for the class 'KeyEvent' (dart:html, line 18945, col 5)
severe: [AnalyzerMessage] Undefined class 'DataTransfer' (dart:html, line 18989, col 3)
severe: [AnalyzerMessage] The getter 'clipboardData' is not defined for the class 'KeyboardEvent' (dart:html, line 18989, col 45)
severe: [AnalyzerMessage] Missing concrete implementation of getter 'DartHtmlDomObject.raw', 'Event._initEvent_1', 'Event._stopImmediatePropagation_1', setter 'DartHtmlDomObject.raw' and 2 more (dart:html, line 19063, col 7)
severe: [AnalyzerMessage] Undefined class 'DataTransfer' (dart:html, line 19075, col 3)
severe: [AnalyzerMessage] The getter 'clipboardData' is not defined for the class 'Event' (dart:html, line 19075, col 45)
severe: [AnalyzerMessage] The method 'matches' is not defined for the class 'EventTarget' (dart:html, line 19121, col 18)
severe: [AnalyzerMessage] The getter 'parent' is not defined for the class 'EventTarget' (dart:html, line 19122, col 23)
severe: [AnalyzerMessage] The getter 'parent' is not defined for the class 'EventTarget' (dart:html, line 19123, col 56)
severe: [AnalyzerMessage] Directives must appear before any declarations (dart:html, line 19526, col 1)
severe: [AnalyzerMessage] The name 'Entry' is not a type and cannot be used as a parameterized type (dart:html, line 19592, col 44)
severe: [AnalyzerMessage] Expected to find ';' (dart:html, line 19643, col 48)
severe: [AnalyzerMessage] Undefined name 'console' (dart:html, line 19658, col 5)
severe: [AnalyzerMessage] Undefined name 'js' (dart:html, line 19675, col 21)
severe: [AnalyzerMessage] Undefined name 'js' (dart:html, line 19676, col 23)
severe: [AnalyzerMessage] Undefined name 'js' (dart:html, line 19677, col 20)
severe: [AnalyzerMessage] The name 'File' is not defined and cannot be used in an 'is' expression (dart:html_common/conversions.dart, line 103, col 14)
severe: [AnalyzerMessage] The name 'Blob' is not defined and cannot be used in an 'is' expression (dart:html_common/conversions.dart, line 104, col 14)
severe: [AnalyzerMessage] The name 'FileList' is not defined and cannot be used in an 'is' expression (dart:html_common/conversions.dart, line 105, col 14)
@ -328,40 +327,40 @@ severe: [INVALID_METHOD_OVERRIDE] Invalid override. The type of CssClassSetImpl.
severe: [AnalyzerMessage] The argument type 'List<Node>' cannot be assigned to the parameter type 'Iterable<Element>' (dart:html_common/filtered_element_list.dart, line 34, col 25)
severe: [STATIC_TYPE_ERROR] Type check failed: _childNodes (List<Node>) is not of type Iterable<Element> (dart:html_common/filtered_element_list.dart, line 34, col 25)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from Iterable<dynamic> to Iterable<CssStyleDeclaration> (dart:html, line 839, col 46)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from dynamic to List<Node> (dart:html, line 4554, col 31)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from List<dynamic> to Iterable<Element> (dart:html, line 4799, col 21)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from (dynamic) → bool to (Element) → bool (dart:html, line 5195, col 41)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from List<dynamic> to Iterable<Element> (dart:html, line 5818, col 21)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from dynamic to List<Node> (dart:html, line 7344, col 31)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from dynamic to List<Node> (dart:html, line 7646, col 26)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from Future<dynamic> to Future<String> (dart:html, line 8762, col 14)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from dynamic to List<Node> (dart:html, line 9683, col 28)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from List<dynamic> to Iterable<Node> (dart:html, line 11280, col 23)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from dynamic to List<Node> (dart:html, line 11362, col 32)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from dynamic to List<Node> (dart:html, line 11884, col 31)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from dynamic to List<Node> (dart:html, line 11892, col 53)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from dynamic to (num) → void (dart:html, line 12949, col 35)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from List<dynamic> to List<String> (dart:html, line 15123, col 32)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from List<dynamic> to List<String> (dart:html, line 15126, col 32)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from dynamic to List<Element> (dart:html, line 15179, col 20)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from List<dynamic> to List<String> (dart:html, line 15213, col 32)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from List<dynamic> to List<String> (dart:html, line 15215, col 32)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from List<dynamic> to List<String> (dart:html, line 15245, col 32)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from List<dynamic> to List<String> (dart:html, line 15247, col 55)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from ElementList<dynamic> to Iterable<Element> (dart:html, line 15792, col 44)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from Stream<dynamic> to Stream<T> (dart:html, line 15870, col 41)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from Stream<dynamic> to Stream<T> (dart:html, line 15894, col 41)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from StreamSubscription<dynamic> to StreamSubscription<T> (dart:html, line 15909, col 12)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from StreamSubscription<dynamic> to StreamSubscription<T> (dart:html, line 15918, col 12)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from dynamic to (Event) → dynamic (dart:html, line 15988, col 44)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from dynamic to (Event) → dynamic (dart:html, line 15994, col 47)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from ElementList<dynamic> to Iterable<Element> (dart:html, line 16138, col 44)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from dynamic to Iterable<String> (dart:html, line 18059, col 9)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from dynamic to Iterable<String> (dart:html, line 18060, col 9)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from dynamic to Iterable<String> (dart:html, line 18097, col 9)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from dynamic to Iterable<String> (dart:html, line 18098, col 9)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from dynamic to E (dart:html, line 18418, col 31)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from dynamic to E (dart:html, line 18432, col 28)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from List<dynamic> to List<Node> (dart:html, line 18448, col 29)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from dynamic to E (dart:html, line 18463, col 20)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from dynamic to List<Node> (dart:html, line 4631, col 31)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from List<dynamic> to Iterable<Element> (dart:html, line 4876, col 21)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from (dynamic) → bool to (Element) → bool (dart:html, line 5272, col 41)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from List<dynamic> to Iterable<Element> (dart:html, line 5895, col 21)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from dynamic to List<Node> (dart:html, line 7421, col 31)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from dynamic to List<Node> (dart:html, line 7723, col 26)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from Future<dynamic> to Future<String> (dart:html, line 8839, col 14)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from dynamic to List<Node> (dart:html, line 9760, col 28)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from List<dynamic> to Iterable<Node> (dart:html, line 11357, col 23)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from dynamic to List<Node> (dart:html, line 11439, col 32)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from dynamic to List<Node> (dart:html, line 11961, col 31)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from dynamic to List<Node> (dart:html, line 11969, col 53)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from dynamic to (num) → void (dart:html, line 13026, col 35)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from List<dynamic> to List<String> (dart:html, line 15200, col 32)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from List<dynamic> to List<String> (dart:html, line 15203, col 32)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from dynamic to List<Element> (dart:html, line 15256, col 20)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from List<dynamic> to List<String> (dart:html, line 15290, col 32)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from List<dynamic> to List<String> (dart:html, line 15292, col 32)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from List<dynamic> to List<String> (dart:html, line 15322, col 32)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from List<dynamic> to List<String> (dart:html, line 15324, col 55)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from ElementList<dynamic> to Iterable<Element> (dart:html, line 15869, col 44)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from Stream<dynamic> to Stream<T> (dart:html, line 15947, col 41)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from Stream<dynamic> to Stream<T> (dart:html, line 15971, col 41)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from StreamSubscription<dynamic> to StreamSubscription<T> (dart:html, line 15986, col 12)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from StreamSubscription<dynamic> to StreamSubscription<T> (dart:html, line 15995, col 12)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from dynamic to (Event) → dynamic (dart:html, line 16065, col 44)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from dynamic to (Event) → dynamic (dart:html, line 16071, col 47)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from ElementList<dynamic> to Iterable<Element> (dart:html, line 16215, col 44)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from dynamic to Iterable<String> (dart:html, line 18136, col 9)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from dynamic to Iterable<String> (dart:html, line 18137, col 9)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from dynamic to Iterable<String> (dart:html, line 18174, col 9)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from dynamic to Iterable<String> (dart:html, line 18175, col 9)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from dynamic to E (dart:html, line 18495, col 31)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from dynamic to E (dart:html, line 18509, col 28)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from List<dynamic> to List<Node> (dart:html, line 18525, col 29)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from dynamic to E (dart:html, line 18540, col 20)
warning: [DOWN_CAST_COMPOSITE] Unsound implicit cast from (String) → String to (Object) → String (dart:html_common/css_class_set.dart, line 148, col 44)