| Index: client/samples/swarm/swarm.dart.js
|
| diff --git a/client/samples/swarm/swarm.dart.js b/client/samples/swarm/swarm.dart.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f1d11c19e9e09b2193d6c1488c97d38dff9b5e5b
|
| --- /dev/null
|
| +++ b/client/samples/swarm/swarm.dart.js
|
| @@ -0,0 +1,19315 @@
|
| +// ********** Library dart:core **************
|
| +// ********** Natives dart:core **************
|
| +Object.defineProperty(Object.prototype, '$typeNameOf', { value: function() {
|
| + if ((typeof(window) != 'undefined' && window.constructor.name == 'DOMWindow')
|
| + || typeof(process) != 'undefined') { // fast-path for Chrome and Node
|
| + return this.constructor.name;
|
| + }
|
| + var str = Object.prototype.toString.call(this);
|
| + str = str.substring(8, str.length - 1);
|
| + if (str == 'Window') {
|
| + str = 'DOMWindow';
|
| + } else if (str == 'Document') {
|
| + str = 'HTMLDocument';
|
| + }
|
| + return str;
|
| +}, enumerable: false, writable: true, configurable: true});
|
| +function $throw(e) {
|
| + // If e is not a value, we can use V8's captureStackTrace utility method.
|
| + // TODO(jmesserly): capture the stack trace on other JS engines.
|
| + if (e && (typeof e == 'object') && Error.captureStackTrace) {
|
| + // TODO(jmesserly): this will clobber the e.stack property
|
| + Error.captureStackTrace(e, $throw);
|
| + }
|
| + throw e;
|
| +}
|
| +Object.defineProperty(Object.prototype, '$index', { value: function(i) {
|
| + var proto = Object.getPrototypeOf(this);
|
| + if (proto !== Object) {
|
| + proto.$index = function(i) { return this[i]; }
|
| + }
|
| + return this[i];
|
| +}, enumerable: false, writable: true, configurable: true});
|
| +Object.defineProperty(Array.prototype, '$index', { value: function(i) {
|
| + return this[i];
|
| +}, enumerable: false, writable: true, configurable: true});
|
| +Object.defineProperty(String.prototype, '$index', { value: function(i) {
|
| + return this[i];
|
| +}, enumerable: false, writable: true, configurable: true});
|
| +Object.defineProperty(Object.prototype, '$setindex', { value: function(i, value) {
|
| + var proto = Object.getPrototypeOf(this);
|
| + if (proto !== Object) {
|
| + proto.$setindex = function(i, value) { return this[i] = value; }
|
| + }
|
| + return this[i] = value;
|
| +}, enumerable: false, writable: true, configurable: true});
|
| +Object.defineProperty(Array.prototype, '$setindex', { value: function(i, value) {
|
| + return this[i] = value; }, enumerable: false, writable: true,
|
| + configurable: true});
|
| +function $wrap_call$0(fn) { return fn; }
|
| +function $wrap_call$1(fn) { return fn; }
|
| +function $add(x, y) {
|
| + return ((typeof(x) == 'number' && typeof(y) == 'number') ||
|
| + (typeof(x) == 'string'))
|
| + ? x + y : x.$add(y);
|
| +}
|
| +function $eq(x, y) {
|
| + if (x == null) return y == null;
|
| + return (typeof(x) == 'number' && typeof(y) == 'number') ||
|
| + (typeof(x) == 'boolean' && typeof(y) == 'boolean') ||
|
| + (typeof(x) == 'string' && typeof(y) == 'string')
|
| + ? x == y : x.$eq(y);
|
| +}
|
| +// TODO(jimhug): Should this or should it not match equals?
|
| +Object.defineProperty(Object.prototype, '$eq', { value: function(other) {
|
| + return this === other;
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +function $mod(x, y) {
|
| + if (typeof(x) == 'number' && typeof(y) == 'number') {
|
| + var result = x % y;
|
| + if (result == 0) {
|
| + return 0; // Make sure we don't return -0.0.
|
| + } else if (result < 0) {
|
| + if (y < 0) {
|
| + return result - y;
|
| + } else {
|
| + return result + y;
|
| + }
|
| + }
|
| + return result;
|
| + } else {
|
| + return x.$mod(y);
|
| + }
|
| +}
|
| +function $ne(x, y) {
|
| + if (x == null) return y != null;
|
| + return (typeof(x) == 'number' && typeof(y) == 'number') ||
|
| + (typeof(x) == 'boolean' && typeof(y) == 'boolean') ||
|
| + (typeof(x) == 'string' && typeof(y) == 'string')
|
| + ? x != y : !x.$eq(y);
|
| +}
|
| +function $truncdiv(x, y) {
|
| + if (typeof(x) == 'number' && typeof(y) == 'number') {
|
| + if (y == 0) $throw(new IntegerDivisionByZeroException());
|
| + var tmp = x / y;
|
| + return (tmp < 0) ? Math.ceil(tmp) : Math.floor(tmp);
|
| + } else {
|
| + return x.$truncdiv(y);
|
| + }
|
| +}
|
| +Object.defineProperty(Object.prototype, "get$typeName", { value: Object.prototype.$typeNameOf, enumerable: false, writable: true, configurable: true});
|
| +// ********** Code for Object **************
|
| +Object.defineProperty(Object.prototype, "get$dynamic", { value: function() {
|
| + "use strict"; return this;
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "noSuchMethod", { value: function(name, args) {
|
| + $throw(new NoSuchMethodException(this, name, args));
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "_applyLayout$0", { value: function() {
|
| + return this.noSuchMethod$2("_applyLayout", []);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "_asNonSentinelEntry$0", { value: function() {
|
| + return this.noSuchMethod$2("_asNonSentinelEntry", []);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "_eatEnd$0", { value: function() {
|
| + return this.noSuchMethod$2("_eatEnd", []);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "_enterDocument$0", { value: function() {
|
| + return this.noSuchMethod$2("_enterDocument", []);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "_exitDocument$0", { value: function() {
|
| + return this.noSuchMethod$2("_exitDocument", []);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "_maybeEatString$0", { value: function() {
|
| + return this.noSuchMethod$2("_maybeEatString", []);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "_measureLayoutHelper$1", { value: function($0) {
|
| + return this.noSuchMethod$2("_measureLayoutHelper", [$0]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "_notify$0", { value: function() {
|
| + return this.noSuchMethod$2("_notify", []);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "_parseTemplate$0", { value: function() {
|
| + return this.noSuchMethod$2("_parseTemplate", []);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "_parseTrack$1", { value: function($0) {
|
| + return this.noSuchMethod$2("_parseTrack", [$0]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "_parseTrackList$0", { value: function() {
|
| + return this.noSuchMethod$2("_parseTrackList", []);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "_parseTrackMinmax$0", { value: function() {
|
| + return this.noSuchMethod$2("_parseTrackMinmax", []);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "add$1", { value: function($0) {
|
| + return this.noSuchMethod$2("add", [$0]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "add$2", { value: function($0, $1) {
|
| + return this.noSuchMethod$2("add", [$0, $1]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "addAll$1", { value: function($0) {
|
| + return this.noSuchMethod$2("addAll", [$0]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "addClass$1", { value: function($0) {
|
| + return this.noSuchMethod$2("addClass", [$0]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "addEvent$1", { value: function($0) {
|
| + return this.noSuchMethod$2("addEvent", [$0]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "addEventListener$3", { value: function($0, $1, $2) {
|
| + return this.noSuchMethod$2("addEventListener", [$0, $1, $2]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "appendChild$1", { value: function($0) {
|
| + return this.noSuchMethod$2("appendChild", [$0]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "applyLayout$0", { value: function() {
|
| + return this.noSuchMethod$2("applyLayout", []);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "back$0", { value: function() {
|
| + return this.noSuchMethod$2("back", []);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "blur$0", { value: function() {
|
| + return this.noSuchMethod$2("blur", []);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "cacheExistingBrowserLayout$0", { value: function() {
|
| + return this.noSuchMethod$2("cacheExistingBrowserLayout", []);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "checkValid$0", { value: function() {
|
| + return this.noSuchMethod$2("checkValid", []);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "clear$0", { value: function() {
|
| + return this.noSuchMethod$2("clear", []);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "clear$1", { value: function($0) {
|
| + return this.noSuchMethod$2("clear", [$0]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "clearInterval$0", { value: function() {
|
| + return this.noSuchMethod$2("clearInterval", []);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "clearInterval$1", { value: function($0) {
|
| + return this.noSuchMethod$2("clearInterval", [$0]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "clearTimeout$0", { value: function() {
|
| + return this.noSuchMethod$2("clearTimeout", []);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "clearTimeout$1", { value: function($0) {
|
| + return this.noSuchMethod$2("clearTimeout", [$0]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "click$0", { value: function() {
|
| + return this.noSuchMethod$2("click", []);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "clone$0", { value: function() {
|
| + return this.noSuchMethod$2("clone", []);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "complete$1", { value: function($0) {
|
| + return this.noSuchMethod$2("complete", [$0]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "contains$1", { value: function($0) {
|
| + return this.noSuchMethod$2("contains", [$0]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "difference$1", { value: function($0) {
|
| + return this.noSuchMethod$2("difference", [$0]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "dispatchEvent$1", { value: function($0) {
|
| + return this.noSuchMethod$2("dispatchEvent", [$0]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "doLayout$0", { value: function() {
|
| + return this.noSuchMethod$2("doLayout", []);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "end$0", { value: function() {
|
| + return this.noSuchMethod$2("end", []);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "filter$1", { value: function($0) {
|
| + return this.noSuchMethod$2("filter", [$0]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "firstEntry$0", { value: function() {
|
| + return this.noSuchMethod$2("firstEntry", []);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "focus$0", { value: function() {
|
| + return this.noSuchMethod$2("focus", []);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "forEach$1", { value: function($0) {
|
| + return this.noSuchMethod$2("forEach", [$0]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "forward$0", { value: function() {
|
| + return this.noSuchMethod$2("forward", []);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "getAttribute$1", { value: function($0) {
|
| + return this.noSuchMethod$2("getAttribute", [$0]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "getContext$0", { value: function() {
|
| + return this.noSuchMethod$2("getContext", []);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "getContext$1", { value: function($0) {
|
| + return this.noSuchMethod$2("getContext", [$0]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "getPropertyValue$1", { value: function($0) {
|
| + return this.noSuchMethod$2("getPropertyValue", [$0]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "getRange$2", { value: function($0, $1) {
|
| + return this.noSuchMethod$2("getRange", [$0, $1]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "getValues$0", { value: function() {
|
| + return this.noSuchMethod$2("getValues", []);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "group$1", { value: function($0) {
|
| + return this.noSuchMethod$2("group", [$0]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "hasAttribute$1", { value: function($0) {
|
| + return this.noSuchMethod$2("hasAttribute", [$0]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "hasChildNodes$0", { value: function() {
|
| + return this.noSuchMethod$2("hasChildNodes", []);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "hasNext$0", { value: function() {
|
| + return this.noSuchMethod$2("hasNext", []);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "hashCode$0", { value: function() {
|
| + return this.noSuchMethod$2("hashCode", []);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "initEvent$3", { value: function($0, $1, $2) {
|
| + return this.noSuchMethod$2("initEvent", [$0, $1, $2]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "is$BodyElement", { value: function() {
|
| + return false;
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "is$DivElement", { value: function() {
|
| + return false;
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "is$Duration", { value: function() {
|
| + return false;
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "is$List", { value: function() {
|
| + return false;
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "is$Map_dart_core_String$Dynamic", { value: function() {
|
| + return false;
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "is$ObservableList_D", { value: function() {
|
| + return false;
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "is$RegExp", { value: function() {
|
| + return false;
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "is$html_html_Document", { value: function() {
|
| + return false;
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "is$html_html_Element", { value: function() {
|
| + return false;
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "item$1", { value: function($0) {
|
| + return this.noSuchMethod$2("item", [$0]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "iterator$0", { value: function() {
|
| + return this.noSuchMethod$2("iterator", []);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "last$0", { value: function() {
|
| + return this.noSuchMethod$2("last", []);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "load$0", { value: function() {
|
| + return this.noSuchMethod$2("load", []);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "measureContent$3", { value: function($0, $1, $2) {
|
| + return this.noSuchMethod$2("measureContent", [$0, $1, $2]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "measureText$1", { value: function($0) {
|
| + return this.noSuchMethod$2("measureText", [$0]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "next$0", { value: function() {
|
| + return this.noSuchMethod$2("next", []);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "nextEntry$0", { value: function() {
|
| + return this.noSuchMethod$2("nextEntry", []);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "noSuchMethod$2", { value: function($0, $1) {
|
| + return this.noSuchMethod($0, $1);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "notify$0", { value: function() {
|
| + return this.noSuchMethod$2("notify", []);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "onScrollerMoved$3", { value: function($0, $1, $2) {
|
| + return this.noSuchMethod$2("onScrollerMoved", [$0, $1, $2]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "open$2", { value: function($0, $1) {
|
| + return this.noSuchMethod$2("open", [$0, $1]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "open$3", { value: function($0, $1, $2) {
|
| + return this.noSuchMethod$2("open", [$0, $1, $2]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "open$4", { value: function($0, $1, $2, $3) {
|
| + return this.noSuchMethod$2("open", [$0, $1, $2, $3]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "open$5", { value: function($0, $1, $2, $3, $4) {
|
| + return this.noSuchMethod$2("open", [$0, $1, $2, $3, $4]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "postMessage$1", { value: function($0) {
|
| + return this.noSuchMethod$2("postMessage", [$0]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "postMessage$2", { value: function($0, $1) {
|
| + return this.noSuchMethod$2("postMessage", [$0, $1]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "postMessage$3", { value: function($0, $1, $2) {
|
| + return this.noSuchMethod$2("postMessage", [$0, $1, $2]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "preventDefault$0", { value: function() {
|
| + return this.noSuchMethod$2("preventDefault", []);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "pushState$2", { value: function($0, $1) {
|
| + return this.noSuchMethod$2("pushState", [$0, $1]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "pushState$3", { value: function($0, $1, $2) {
|
| + return this.noSuchMethod$2("pushState", [$0, $1, $2]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "putIfAbsent$2", { value: function($0, $1) {
|
| + return this.noSuchMethod$2("putIfAbsent", [$0, $1]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "query$1", { value: function($0) {
|
| + return this.noSuchMethod$2("query", [$0]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "queryAll$1", { value: function($0) {
|
| + return this.noSuchMethod$2("queryAll", [$0]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "querySelector$1", { value: function($0) {
|
| + return this.noSuchMethod$2("querySelector", [$0]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "querySelectorAll$1", { value: function($0) {
|
| + return this.noSuchMethod$2("querySelectorAll", [$0]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "readInt$0", { value: function() {
|
| + return this.noSuchMethod$2("readInt", []);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "ready$1", { value: function($0) {
|
| + return this.noSuchMethod$2("ready", [$0]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "reload$0", { value: function() {
|
| + return this.noSuchMethod$2("reload", []);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "remove$0", { value: function() {
|
| + return this.noSuchMethod$2("remove", []);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "remove$1", { value: function($0) {
|
| + return this.noSuchMethod$2("remove", [$0]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "remove$2", { value: function($0, $1) {
|
| + return this.noSuchMethod$2("remove", [$0, $1]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "removeAttribute$1", { value: function($0) {
|
| + return this.noSuchMethod$2("removeAttribute", [$0]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "removeChild$1", { value: function($0) {
|
| + return this.noSuchMethod$2("removeChild", [$0]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "removeEventListener$3", { value: function($0, $1, $2) {
|
| + return this.noSuchMethod$2("removeEventListener", [$0, $1, $2]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "removeLast$0", { value: function() {
|
| + return this.noSuchMethod$2("removeLast", []);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "removeProperty$1", { value: function($0) {
|
| + return this.noSuchMethod$2("removeProperty", [$0]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "replaceChild$2", { value: function($0, $1) {
|
| + return this.noSuchMethod$2("replaceChild", [$0, $1]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "replaceState$2", { value: function($0, $1) {
|
| + return this.noSuchMethod$2("replaceState", [$0, $1]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "replaceState$3", { value: function($0, $1, $2) {
|
| + return this.noSuchMethod$2("replaceState", [$0, $1, $2]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "replaceWith$1", { value: function($0) {
|
| + return this.noSuchMethod$2("replaceWith", [$0]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "resolveLength$1", { value: function($0) {
|
| + return this.noSuchMethod$2("resolveLength", [$0]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "round$0", { value: function() {
|
| + return this.noSuchMethod$2("round", []);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "send$0", { value: function() {
|
| + return this.noSuchMethod$2("send", []);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "send$1", { value: function($0) {
|
| + return this.noSuchMethod$2("send", [$0]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "setAttribute$2", { value: function($0, $1) {
|
| + return this.noSuchMethod$2("setAttribute", [$0, $1]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "setBounds$4", { value: function($0, $1, $2, $3) {
|
| + return this.noSuchMethod$2("setBounds", [$0, $1, $2, $3]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "setInterval$2", { value: function($0, $1) {
|
| + return this.noSuchMethod$2("setInterval", [$0, $1]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "setProperty$3", { value: function($0, $1, $2) {
|
| + return this.noSuchMethod$2("setProperty", [$0, $1, $2]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "setTimeout$2", { value: function($0, $1) {
|
| + return this.noSuchMethod$2("setTimeout", [$0, $1]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "start$0", { value: function() {
|
| + return this.noSuchMethod$2("start", []);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "stopPropagation$0", { value: function() {
|
| + return this.noSuchMethod$2("stopPropagation", []);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "swapCache$0", { value: function() {
|
| + return this.noSuchMethod$2("swapCache", []);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "time$1", { value: function($0) {
|
| + return this.noSuchMethod$2("time", [$0]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "timeStamp$0", { value: function() {
|
| + return this.noSuchMethod$2("timeStamp", []);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "toInt$0", { value: function() {
|
| + return this.noSuchMethod$2("toInt", []);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "toLowerCase$0", { value: function() {
|
| + return this.noSuchMethod$2("toLowerCase", []);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "toString$0", { value: function() {
|
| + return this.toString();
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "warn$1", { value: function($0) {
|
| + return this.noSuchMethod$2("warn", [$0]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "webkitConvertPointFromNodeToPage$0", { value: function() {
|
| + return this.noSuchMethod$2("webkitConvertPointFromNodeToPage", []);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "webkitConvertPointFromNodeToPage$1", { value: function($0) {
|
| + return this.noSuchMethod$2("webkitConvertPointFromNodeToPage", [$0]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "webkitConvertPointFromNodeToPage$2", { value: function($0, $1) {
|
| + return this.noSuchMethod$2("webkitConvertPointFromNodeToPage", [$0, $1]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "webkitConvertPointFromPageToNode$0", { value: function() {
|
| + return this.noSuchMethod$2("webkitConvertPointFromPageToNode", []);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "webkitConvertPointFromPageToNode$1", { value: function($0) {
|
| + return this.noSuchMethod$2("webkitConvertPointFromPageToNode", [$0]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "webkitConvertPointFromPageToNode$2", { value: function($0, $1) {
|
| + return this.noSuchMethod$2("webkitConvertPointFromPageToNode", [$0, $1]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(Object.prototype, "webkitRequestAnimationFrame$2", { value: function($0, $1) {
|
| + return this.noSuchMethod$2("webkitRequestAnimationFrame", [$0, $1]);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +// ********** Code for IndexOutOfRangeException **************
|
| +function IndexOutOfRangeException(_index) {
|
| + this._index = _index;
|
| +}
|
| +IndexOutOfRangeException.prototype.toString = function() {
|
| + return ("IndexOutOfRangeException: " + this._index);
|
| +}
|
| +IndexOutOfRangeException.prototype.toString$0 = IndexOutOfRangeException.prototype.toString;
|
| +// ********** Code for IllegalAccessException **************
|
| +function IllegalAccessException() {
|
| +
|
| +}
|
| +IllegalAccessException.prototype.toString = function() {
|
| + return "Attempt to modify an immutable object";
|
| +}
|
| +IllegalAccessException.prototype.toString$0 = IllegalAccessException.prototype.toString;
|
| +// ********** Code for NoSuchMethodException **************
|
| +function NoSuchMethodException(_receiver, _functionName, _arguments) {
|
| + this._receiver = _receiver;
|
| + this._functionName = _functionName;
|
| + this._arguments = _arguments;
|
| +}
|
| +NoSuchMethodException.prototype.toString = function() {
|
| + var sb = new StringBufferImpl("");
|
| + for (var i = (0);
|
| + i < this._arguments.get$length(); i++) {
|
| + if (i > (0)) {
|
| + sb.add(", ");
|
| + }
|
| + sb.add(this._arguments.$index(i));
|
| + }
|
| + sb.add("]");
|
| + return ("NoSuchMethodException - receiver: '" + this._receiver + "' ") + ("function name: '" + this._functionName + "' arguments: [" + sb + "]");
|
| +}
|
| +NoSuchMethodException.prototype.toString$0 = NoSuchMethodException.prototype.toString;
|
| +// ********** Code for ClosureArgumentMismatchException **************
|
| +function ClosureArgumentMismatchException() {
|
| +
|
| +}
|
| +ClosureArgumentMismatchException.prototype.toString = function() {
|
| + return "Closure argument mismatch";
|
| +}
|
| +ClosureArgumentMismatchException.prototype.toString$0 = ClosureArgumentMismatchException.prototype.toString;
|
| +// ********** Code for ObjectNotClosureException **************
|
| +function ObjectNotClosureException() {
|
| +
|
| +}
|
| +ObjectNotClosureException.prototype.toString = function() {
|
| + return "Object is not closure";
|
| +}
|
| +ObjectNotClosureException.prototype.toString$0 = ObjectNotClosureException.prototype.toString;
|
| +// ********** Code for IllegalArgumentException **************
|
| +function IllegalArgumentException(args) {
|
| + this._args = args;
|
| +}
|
| +IllegalArgumentException.prototype.toString = function() {
|
| + return ("Illegal argument(s): " + this._args);
|
| +}
|
| +IllegalArgumentException.prototype.toString$0 = IllegalArgumentException.prototype.toString;
|
| +// ********** Code for StackOverflowException **************
|
| +function StackOverflowException() {
|
| +
|
| +}
|
| +StackOverflowException.prototype.toString = function() {
|
| + return "Stack Overflow";
|
| +}
|
| +StackOverflowException.prototype.toString$0 = StackOverflowException.prototype.toString;
|
| +// ********** Code for BadNumberFormatException **************
|
| +function BadNumberFormatException(_s) {
|
| + this._s = _s;
|
| +}
|
| +BadNumberFormatException.prototype.toString = function() {
|
| + return ("BadNumberFormatException: '" + this._s + "'");
|
| +}
|
| +BadNumberFormatException.prototype.toString$0 = BadNumberFormatException.prototype.toString;
|
| +// ********** Code for NullPointerException **************
|
| +function NullPointerException() {
|
| +
|
| +}
|
| +NullPointerException.prototype.toString = function() {
|
| + return "NullPointerException";
|
| +}
|
| +NullPointerException.prototype.toString$0 = NullPointerException.prototype.toString;
|
| +// ********** Code for NoMoreElementsException **************
|
| +function NoMoreElementsException() {
|
| +
|
| +}
|
| +NoMoreElementsException.prototype.toString = function() {
|
| + return "NoMoreElementsException";
|
| +}
|
| +NoMoreElementsException.prototype.toString$0 = NoMoreElementsException.prototype.toString;
|
| +// ********** Code for EmptyQueueException **************
|
| +function EmptyQueueException() {
|
| +
|
| +}
|
| +EmptyQueueException.prototype.toString = function() {
|
| + return "EmptyQueueException";
|
| +}
|
| +EmptyQueueException.prototype.toString$0 = EmptyQueueException.prototype.toString;
|
| +// ********** Code for UnsupportedOperationException **************
|
| +function UnsupportedOperationException(_message) {
|
| + this._message = _message;
|
| +}
|
| +UnsupportedOperationException.prototype.toString = function() {
|
| + return ("UnsupportedOperationException: " + this._message);
|
| +}
|
| +UnsupportedOperationException.prototype.toString$0 = UnsupportedOperationException.prototype.toString;
|
| +// ********** Code for NotImplementedException **************
|
| +function NotImplementedException() {
|
| +
|
| +}
|
| +NotImplementedException.prototype.toString = function() {
|
| + return "NotImplementedException";
|
| +}
|
| +NotImplementedException.prototype.toString$0 = NotImplementedException.prototype.toString;
|
| +// ********** Code for dart_core_Function **************
|
| +Function.prototype.to$call$0 = function() {
|
| + this.call$0 = this._genStub(0);
|
| + this.to$call$0 = function() { return this.call$0; };
|
| + return this.call$0;
|
| +};
|
| +Function.prototype.call$0 = function() {
|
| + return this.to$call$0()();
|
| +};
|
| +function to$call$0(f) { return f && f.to$call$0(); }
|
| +Function.prototype.to$call$1 = function() {
|
| + this.call$1 = this._genStub(1);
|
| + this.to$call$1 = function() { return this.call$1; };
|
| + return this.call$1;
|
| +};
|
| +Function.prototype.call$1 = function($0) {
|
| + return this.to$call$1()($0);
|
| +};
|
| +function to$call$1(f) { return f && f.to$call$1(); }
|
| +Function.prototype.to$call$2 = function() {
|
| + this.call$2 = this._genStub(2);
|
| + this.to$call$2 = function() { return this.call$2; };
|
| + return this.call$2;
|
| +};
|
| +Function.prototype.call$2 = function($0, $1) {
|
| + return this.to$call$2()($0, $1);
|
| +};
|
| +function to$call$2(f) { return f && f.to$call$2(); }
|
| +Function.prototype.to$call$3 = function() {
|
| + this.call$3 = this._genStub(3);
|
| + this.to$call$3 = function() { return this.call$3; };
|
| + return this.call$3;
|
| +};
|
| +Function.prototype.call$3 = function($0, $1, $2) {
|
| + return this.to$call$3()($0, $1, $2);
|
| +};
|
| +function to$call$3(f) { return f && f.to$call$3(); }
|
| +// ********** Code for Math **************
|
| +Math.parseInt = function(str) {
|
| + var ret = parseInt(str);
|
| + if (isNaN(ret)) $throw(new BadNumberFormatException(str));
|
| + return ret;
|
| +}
|
| +Math.parseDouble = function(str) {
|
| + var ret = parseFloat(str);
|
| + if (isNaN(ret) && str != 'NaN') $throw(new BadNumberFormatException(str));
|
| + return ret;
|
| +}
|
| +Math.min = function(a, b) {
|
| + if (a == b) return a;
|
| + if (a < b) {
|
| + if (isNaN(b)) return b;
|
| + else return a;
|
| + }
|
| + if (isNaN(a)) return a;
|
| + else return b;
|
| +}
|
| +Math.max = function(a, b) {
|
| + return (a >= b) ? a : b;
|
| +}
|
| +// ********** Code for Strings **************
|
| +function Strings() {}
|
| +Strings.String$fromCharCodes$factory = function(charCodes) {
|
| + return StringBase.createFromCharCodes(charCodes);
|
| +}
|
| +Strings.join = function(strings, separator) {
|
| + return StringBase.join(strings, separator);
|
| +}
|
| +// ********** Code for top level **************
|
| +function dart_core_print(obj) {
|
| + return _print(obj);
|
| +}
|
| +function _print(obj) {
|
| + if (typeof console == 'object') {
|
| + if (obj) obj = obj.toString();
|
| + console.log(obj);
|
| + } else {
|
| + write(obj);
|
| + write('\n');
|
| + }
|
| +}
|
| +function _toDartException(e) {
|
| + function attachStack(dartEx) {
|
| + // TODO(jmesserly): setting the stack property is not a long term solution.
|
| + var stack = e.stack;
|
| + // The stack contains the error message, and the stack is all that is
|
| + // printed (the exception's toString() is never called). Make the Dart
|
| + // exception's toString() be the dominant message.
|
| + if (typeof stack == 'string') {
|
| + var message = dartEx.toString();
|
| + if (/^(Type|Range)Error:/.test(stack)) {
|
| + // Indent JS message (it can be helpful) so new message stands out.
|
| + stack = ' (' + stack.substring(0, stack.indexOf('\n')) + ')\n' +
|
| + stack.substring(stack.indexOf('\n') + 1);
|
| + }
|
| + stack = message + '\n' + stack;
|
| + }
|
| + dartEx.stack = stack;
|
| + return dartEx;
|
| + }
|
| +
|
| + if (e instanceof TypeError) {
|
| + switch(e.type) {
|
| + case 'property_not_function':
|
| + case 'called_non_callable':
|
| + if (e.arguments[0] == null) {
|
| + return attachStack(new NullPointerException());
|
| + } else {
|
| + return attachStack(new ObjectNotClosureException());
|
| + }
|
| + break;
|
| + case 'non_object_property_call':
|
| + case 'non_object_property_load':
|
| + return attachStack(new NullPointerException());
|
| + break;
|
| + case 'undefined_method':
|
| + var mname = e.arguments[0];
|
| + if (typeof(mname) == 'string' && (mname.indexOf('call$') == 0
|
| + || mname == 'call' || mname == 'apply')) {
|
| + return attachStack(new ObjectNotClosureException());
|
| + } else {
|
| + // TODO(jmesserly): fix noSuchMethod on operators so we don't hit this
|
| + return attachStack(new NoSuchMethodException('', e.arguments[0], []));
|
| + }
|
| + break;
|
| + }
|
| + } else if (e instanceof RangeError) {
|
| + if (e.message.indexOf('call stack') >= 0) {
|
| + return attachStack(new StackOverflowException());
|
| + }
|
| + }
|
| + return e;
|
| +}
|
| +// ********** Library dart:coreimpl **************
|
| +// ********** Code for ListFactory **************
|
| +ListFactory = Array;
|
| +Object.defineProperty(ListFactory.prototype, "is$List", { value: function(){return true}, enumerable: false, writable: true, configurable: true });
|
| +ListFactory.ListFactory$from$factory = function(other) {
|
| + var list = [];
|
| + for (var $$i = other.iterator$0(); $$i.hasNext$0(); ) {
|
| + var e = $$i.next$0();
|
| + list.add$1(e);
|
| + }
|
| + return list;
|
| +}
|
| +Object.defineProperty(ListFactory.prototype, "get$length", { value: function() { return this.length; }, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(ListFactory.prototype, "set$length", { value: function(value) { return this.length = value; }, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(ListFactory.prototype, "add", { value: function(value) {
|
| + this.push(value);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(ListFactory.prototype, "addAll", { value: function(collection) {
|
| + for (var $$i = collection.iterator$0(); $$i.hasNext$0(); ) {
|
| + var item = $$i.next$0();
|
| + this.add(item);
|
| + }
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(ListFactory.prototype, "clear", { value: function() {
|
| + this.set$length((0));
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(ListFactory.prototype, "get$clear", { value: function() {
|
| + return this.clear.bind(this);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(ListFactory.prototype, "removeLast", { value: function() {
|
| + return this.pop();
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(ListFactory.prototype, "last", { value: function() {
|
| + return this[this.get$length() - (1)];
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(ListFactory.prototype, "getRange", { value: function(start, length) {
|
| + return this.slice(start, start + length);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(ListFactory.prototype, "isEmpty", { value: function() {
|
| + return this.get$length() == (0);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(ListFactory.prototype, "iterator", { value: function() {
|
| + return new ListIterator(this);
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(ListFactory.prototype, "add$1", { value: ListFactory.prototype.add, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(ListFactory.prototype, "addAll$1", { value: ListFactory.prototype.addAll, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(ListFactory.prototype, "clear$0", { value: ListFactory.prototype.clear, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(ListFactory.prototype, "filter$1", { value: function($0) {
|
| + return this.filter(to$call$1($0));
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(ListFactory.prototype, "forEach$1", { value: function($0) {
|
| + return this.forEach(to$call$1($0));
|
| +}, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(ListFactory.prototype, "getRange$2", { value: ListFactory.prototype.getRange, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(ListFactory.prototype, "iterator$0", { value: ListFactory.prototype.iterator, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(ListFactory.prototype, "last$0", { value: ListFactory.prototype.last, enumerable: false, writable: true, configurable: true });
|
| +Object.defineProperty(ListFactory.prototype, "removeLast$0", { value: ListFactory.prototype.removeLast, enumerable: false, writable: true, configurable: true });
|
| +ListFactory_Article = ListFactory;
|
| +ListFactory_CallbackData = ListFactory;
|
| +ListFactory_ChangeEvent = ListFactory;
|
| +ListFactory_ChangeListener = ListFactory;
|
| +ListFactory_E = ListFactory;
|
| +ListFactory_EventListener = ListFactory;
|
| +ListFactory_Feed = ListFactory;
|
| +ListFactory_GridTrack = ListFactory;
|
| +ListFactory_K = ListFactory;
|
| +ListFactory_ScrollListener = ListFactory;
|
| +ListFactory_Section = ListFactory;
|
| +ListFactory_String = ListFactory;
|
| +ListFactory_T = ListFactory;
|
| +ListFactory_html_html_Touch = ListFactory;
|
| +ListFactory_V = ListFactory;
|
| +ListFactory_View = ListFactory;
|
| +ListFactory__EventListenerWrapper = ListFactory;
|
| +ListFactory_int = ListFactory;
|
| +// ********** Code for ListIterator **************
|
| +function ListIterator(array) {
|
| + this._array = array;
|
| + this._pos = (0);
|
| +}
|
| +ListIterator.prototype.hasNext = function() {
|
| + return this._array.get$length() > this._pos;
|
| +}
|
| +ListIterator.prototype.next = function() {
|
| + if (!this.hasNext()) {
|
| + $throw(const$0001);
|
| + }
|
| + return this._array.$index(this._pos++);
|
| +}
|
| +ListIterator.prototype.hasNext$0 = ListIterator.prototype.hasNext;
|
| +ListIterator.prototype.next$0 = ListIterator.prototype.next;
|
| +// ********** Code for ImmutableList **************
|
| +/** Implements extends for Dart classes on JavaScript prototypes. */
|
| +function $inherits(child, parent) {
|
| + if (child.prototype.__proto__) {
|
| + child.prototype.__proto__ = parent.prototype;
|
| + } else {
|
| + function tmp() {};
|
| + tmp.prototype = parent.prototype;
|
| + child.prototype = new tmp();
|
| + child.prototype.constructor = child;
|
| + }
|
| +}
|
| +$inherits(ImmutableList, ListFactory_E);
|
| +function ImmutableList(length) {
|
| + Array.call(this, length);
|
| +}
|
| +ImmutableList.ImmutableList$from$factory = function(other) {
|
| + return _constList(other);
|
| +}
|
| +ImmutableList.prototype.get$length = function() {
|
| + return this.length;
|
| +}
|
| +ImmutableList.prototype.set$length = function(length) {
|
| + $throw(const$0003);
|
| +}
|
| +ImmutableList.prototype.$setindex = function(index, value) {
|
| + $throw(const$0003);
|
| +}
|
| +ImmutableList.prototype.sort = function(compare) {
|
| + $throw(const$0003);
|
| +}
|
| +ImmutableList.prototype.add = function(element) {
|
| + $throw(const$0003);
|
| +}
|
| +ImmutableList.prototype.addAll = function(elements) {
|
| + $throw(const$0003);
|
| +}
|
| +ImmutableList.prototype.clear = function() {
|
| + $throw(const$0003);
|
| +}
|
| +ImmutableList.prototype.get$clear = function() {
|
| + return this.clear.bind(this);
|
| +}
|
| +ImmutableList.prototype.removeLast = function() {
|
| + $throw(const$0003);
|
| +}
|
| +ImmutableList.prototype.toString = function() {
|
| + return ListFactory.ListFactory$from$factory(this).toString$0();
|
| +}
|
| +ImmutableList.prototype.add$1 = ImmutableList.prototype.add;
|
| +ImmutableList.prototype.addAll$1 = ImmutableList.prototype.addAll;
|
| +ImmutableList.prototype.clear$0 = ImmutableList.prototype.clear;
|
| +ImmutableList.prototype.removeLast$0 = ImmutableList.prototype.removeLast;
|
| +ImmutableList.prototype.toString$0 = ImmutableList.prototype.toString;
|
| +// ********** Code for ImmutableMap **************
|
| +function ImmutableMap(keyValuePairs) {
|
| + this._dart_coreimpl_internal = _map(keyValuePairs);
|
| +}
|
| +ImmutableMap.prototype.is$Map_dart_core_String$Dynamic = function(){return true};
|
| +ImmutableMap.prototype.$index = function(key) {
|
| + return this._dart_coreimpl_internal.$index(key);
|
| +}
|
| +ImmutableMap.prototype.get$length = function() {
|
| + return this._dart_coreimpl_internal.get$length();
|
| +}
|
| +ImmutableMap.prototype.forEach = function(f) {
|
| + this._dart_coreimpl_internal.forEach(f);
|
| +}
|
| +ImmutableMap.prototype.getValues = function() {
|
| + return this._dart_coreimpl_internal.getValues$0();
|
| +}
|
| +ImmutableMap.prototype.containsKey = function(key) {
|
| + return this._dart_coreimpl_internal.containsKey(key);
|
| +}
|
| +ImmutableMap.prototype.$setindex = function(key, value) {
|
| + $throw(const$0003);
|
| +}
|
| +ImmutableMap.prototype.putIfAbsent = function(key, ifAbsent) {
|
| + $throw(const$0003);
|
| +}
|
| +ImmutableMap.prototype.clear = function() {
|
| + $throw(const$0003);
|
| +}
|
| +ImmutableMap.prototype.get$clear = function() {
|
| + return this.clear.bind(this);
|
| +}
|
| +ImmutableMap.prototype.remove = function(key) {
|
| + $throw(const$0003);
|
| +}
|
| +ImmutableMap.prototype.clear$0 = ImmutableMap.prototype.clear;
|
| +ImmutableMap.prototype.forEach$1 = function($0) {
|
| + return this.forEach(to$call$2($0));
|
| +};
|
| +ImmutableMap.prototype.getValues$0 = ImmutableMap.prototype.getValues;
|
| +ImmutableMap.prototype.putIfAbsent$2 = function($0, $1) {
|
| + return this.putIfAbsent($0, to$call$0($1));
|
| +};
|
| +ImmutableMap.prototype.remove$1 = ImmutableMap.prototype.remove;
|
| +// ********** Code for JSSyntaxRegExp **************
|
| +function JSSyntaxRegExp(pattern, multiLine, ignoreCase) {
|
| + JSSyntaxRegExp._create$ctor.call(this, pattern, ($eq(multiLine, true) ? "m" : "") + ($eq(ignoreCase, true) ? "i" : ""));
|
| +}
|
| +JSSyntaxRegExp._create$ctor = function(pattern, flags) {
|
| + this.re = new RegExp(pattern, flags);
|
| + this.pattern = pattern;
|
| + this.multiLine = this.re.multiline;
|
| + this.ignoreCase = this.re.ignoreCase;
|
| +}
|
| +JSSyntaxRegExp._create$ctor.prototype = JSSyntaxRegExp.prototype;
|
| +JSSyntaxRegExp.prototype.is$RegExp = function(){return true};
|
| +JSSyntaxRegExp.prototype.firstMatch = function(str) {
|
| + var m = this._exec(str);
|
| + return m == null ? null : new MatchImplementation(this.pattern, str, this._matchStart(m), this.get$_lastIndex(), m);
|
| +}
|
| +JSSyntaxRegExp.prototype._exec = function(str) {
|
| + return this.re.exec(str);
|
| +}
|
| +JSSyntaxRegExp.prototype._matchStart = function(m) {
|
| + return m.index;
|
| +}
|
| +JSSyntaxRegExp.prototype.get$_lastIndex = function() {
|
| + return this.re.lastIndex;
|
| +}
|
| +JSSyntaxRegExp.prototype.hasMatch = function(str) {
|
| + return this.re.test(str);
|
| +}
|
| +JSSyntaxRegExp.prototype.allMatches = function(str) {
|
| + return new _AllMatchesIterable(this, str);
|
| +}
|
| +JSSyntaxRegExp.prototype.get$_global = function() {
|
| + return new JSSyntaxRegExp._create$ctor(this.pattern, "g" + (this.multiLine ? "m" : "") + (this.ignoreCase ? "i" : ""));
|
| +}
|
| +// ********** Code for MatchImplementation **************
|
| +function MatchImplementation(pattern, str, _start, _end, _groups) {
|
| + this.str = str;
|
| + this._start = _start;
|
| + this._groups = _groups;
|
| + this.pattern = pattern;
|
| + this._end = _end;
|
| +}
|
| +MatchImplementation.prototype.start = function() {
|
| + return this._start;
|
| +}
|
| +MatchImplementation.prototype.get$start = function() {
|
| + return this.start.bind(this);
|
| +}
|
| +MatchImplementation.prototype.end = function() {
|
| + return this._end;
|
| +}
|
| +MatchImplementation.prototype.get$end = function() {
|
| + return this.end.bind(this);
|
| +}
|
| +MatchImplementation.prototype.group = function(group) {
|
| + return this._groups.$index(group);
|
| +}
|
| +MatchImplementation.prototype.$index = function(group) {
|
| + return this._groups.$index(group);
|
| +}
|
| +MatchImplementation.prototype.end$0 = MatchImplementation.prototype.end;
|
| +MatchImplementation.prototype.group$1 = MatchImplementation.prototype.group;
|
| +MatchImplementation.prototype.start$0 = MatchImplementation.prototype.start;
|
| +// ********** Code for _AllMatchesIterable **************
|
| +function _AllMatchesIterable(_re, _str) {
|
| + this._re = _re;
|
| + this._str = _str;
|
| +}
|
| +_AllMatchesIterable.prototype.iterator = function() {
|
| + return new _AllMatchesIterator(this._re, this._str);
|
| +}
|
| +_AllMatchesIterable.prototype.iterator$0 = _AllMatchesIterable.prototype.iterator;
|
| +// ********** Code for _AllMatchesIterator **************
|
| +function _AllMatchesIterator(re, _str) {
|
| + this._dart_coreimpl_done = false;
|
| + this._re = re.get$_global();
|
| + this._str = _str;
|
| +}
|
| +_AllMatchesIterator.prototype.next = function() {
|
| + if (!this.hasNext()) {
|
| + $throw(const$0001);
|
| + }
|
| + var next = this._next;
|
| + this._next = null;
|
| + return next;
|
| +}
|
| +_AllMatchesIterator.prototype.hasNext = function() {
|
| + if (this._dart_coreimpl_done) {
|
| + return false;
|
| + }
|
| + else if (this._next != null) {
|
| + return true;
|
| + }
|
| + this._next = this._re.firstMatch(this._str);
|
| + if (this._next == null) {
|
| + this._dart_coreimpl_done = true;
|
| + return false;
|
| + }
|
| + else {
|
| + return true;
|
| + }
|
| +}
|
| +_AllMatchesIterator.prototype.hasNext$0 = _AllMatchesIterator.prototype.hasNext;
|
| +_AllMatchesIterator.prototype.next$0 = _AllMatchesIterator.prototype.next;
|
| +// ********** Code for NumImplementation **************
|
| +NumImplementation = Number;
|
| +NumImplementation.prototype.$negate = function() {
|
| + 'use strict'; return -this;
|
| +}
|
| +NumImplementation.prototype.remainder = function(other) {
|
| + 'use strict'; return this % other;
|
| +}
|
| +NumImplementation.prototype.isNegative = function() {
|
| + 'use strict'; return this == 0 ? (1 / this) < 0 : this < 0;
|
| +}
|
| +NumImplementation.prototype.abs = function() {
|
| + 'use strict'; return Math.abs(this);
|
| +}
|
| +NumImplementation.prototype.round = function() {
|
| + 'use strict'; return Math.round(this);
|
| +}
|
| +NumImplementation.prototype.floor = function() {
|
| + 'use strict'; return Math.floor(this);
|
| +}
|
| +NumImplementation.prototype.ceil = function() {
|
| + 'use strict'; return Math.ceil(this);
|
| +}
|
| +NumImplementation.prototype.hashCode = function() {
|
| + 'use strict'; return this & 0x1FFFFFFF;
|
| +}
|
| +NumImplementation.prototype.toInt = function() {
|
| + 'use strict';
|
| + if (isNaN(this)) $throw(new BadNumberFormatException("NaN"));
|
| + if ((this == Infinity) || (this == -Infinity)) {
|
| + $throw(new BadNumberFormatException("Infinity"));
|
| + }
|
| + var truncated = (this < 0) ? Math.ceil(this) : Math.floor(this);
|
| + if (truncated == -0.0) return 0;
|
| + return truncated;
|
| +}
|
| +NumImplementation.prototype.hashCode$0 = NumImplementation.prototype.hashCode;
|
| +NumImplementation.prototype.round$0 = NumImplementation.prototype.round;
|
| +NumImplementation.prototype.toInt$0 = NumImplementation.prototype.toInt;
|
| +// ********** Code for DurationImplementation **************
|
| +function DurationImplementation(days, hours, minutes, seconds, milliseconds) {
|
| + this.inMilliseconds = days * (86400000) + hours * (3600000) + minutes * (60000) + seconds * (1000) + milliseconds;
|
| +}
|
| +DurationImplementation.prototype.is$Duration = function(){return true};
|
| +DurationImplementation.prototype.get$inMilliseconds = function() { return this.inMilliseconds; };
|
| +DurationImplementation.prototype.get$inDays = function() {
|
| + return $truncdiv(this.inMilliseconds, (86400000));
|
| +}
|
| +DurationImplementation.prototype.get$inHours = function() {
|
| + return $truncdiv(this.inMilliseconds, (3600000));
|
| +}
|
| +DurationImplementation.prototype.get$inMinutes = function() {
|
| + return $truncdiv(this.inMilliseconds, (60000));
|
| +}
|
| +DurationImplementation.prototype.get$inSeconds = function() {
|
| + return $truncdiv(this.inMilliseconds, (1000));
|
| +}
|
| +DurationImplementation.prototype.$eq = function(other) {
|
| + if (!(other && other.is$Duration())) return false;
|
| + return this.inMilliseconds == other.get$inMilliseconds();
|
| +}
|
| +DurationImplementation.prototype.hashCode = function() {
|
| + return this.inMilliseconds.hashCode();
|
| +}
|
| +DurationImplementation.prototype.toString = function() {
|
| + function threeDigits(n) {
|
| + if (n >= (100)) return ("" + n);
|
| + if (n > (10)) return ("0" + n);
|
| + return ("00" + n);
|
| + }
|
| + function twoDigits(n) {
|
| + if (n >= (10)) return ("" + n);
|
| + return ("0" + n);
|
| + }
|
| + if (this.inMilliseconds < (0)) {
|
| + var duration = new DurationImplementation((0), (0), (0), (0), -this.inMilliseconds);
|
| + return ("-" + duration);
|
| + }
|
| + var twoDigitMinutes = twoDigits.call$1(this.get$inMinutes().remainder((60)));
|
| + var twoDigitSeconds = twoDigits.call$1(this.get$inSeconds().remainder((60)));
|
| + var threeDigitMs = threeDigits.call$1(this.inMilliseconds.remainder((1000)));
|
| + return ("" + this.get$inHours() + ":" + twoDigitMinutes + ":" + twoDigitSeconds + "." + threeDigitMs);
|
| +}
|
| +DurationImplementation.prototype.hashCode$0 = DurationImplementation.prototype.hashCode;
|
| +DurationImplementation.prototype.toString$0 = DurationImplementation.prototype.toString;
|
| +// ********** Code for FutureNotCompleteException **************
|
| +function FutureNotCompleteException() {
|
| +
|
| +}
|
| +FutureNotCompleteException.prototype.toString = function() {
|
| + return "Exception: future has not been completed";
|
| +}
|
| +FutureNotCompleteException.prototype.toString$0 = FutureNotCompleteException.prototype.toString;
|
| +// ********** Code for FutureAlreadyCompleteException **************
|
| +function FutureAlreadyCompleteException() {
|
| +
|
| +}
|
| +FutureAlreadyCompleteException.prototype.toString = function() {
|
| + return "Exception: future already completed";
|
| +}
|
| +FutureAlreadyCompleteException.prototype.toString$0 = FutureAlreadyCompleteException.prototype.toString;
|
| +// ********** Code for FutureImpl **************
|
| +function FutureImpl() {
|
| + this._exceptionHandlers = new Array();
|
| + this._dart_coreimpl_listeners = new Array();
|
| + this._isComplete = false;
|
| + this._exceptionHandled = false;
|
| +}
|
| +FutureImpl.prototype.get$value = function() {
|
| + if (!this.get$isComplete()) {
|
| + $throw(new FutureNotCompleteException());
|
| + }
|
| + if (this._exception != null) {
|
| + $throw(this._exception);
|
| + }
|
| + return this._dart_coreimpl_value;
|
| +}
|
| +FutureImpl.prototype.get$isComplete = function() {
|
| + return this._isComplete;
|
| +}
|
| +FutureImpl.prototype.get$hasValue = function() {
|
| + return this.get$isComplete() && this._exception == null;
|
| +}
|
| +FutureImpl.prototype.then = function(onComplete) {
|
| + if (this.get$hasValue()) {
|
| + onComplete.call$1(this.get$value());
|
| + }
|
| + else if (!this.get$isComplete()) {
|
| + this._dart_coreimpl_listeners.add$1(onComplete);
|
| + }
|
| + else if (!this._exceptionHandled) {
|
| + $throw(this._exception);
|
| + }
|
| +}
|
| +FutureImpl.prototype._complete = function() {
|
| + this._isComplete = true;
|
| + if (this._exception != null) {
|
| + var $$list = this._exceptionHandlers;
|
| + for (var $$i = 0;$$i < $$list.get$length(); $$i++) {
|
| + var handler = $$list.$index($$i);
|
| + if (handler.call$1(this._exception)) {
|
| + this._exceptionHandled = true;
|
| + break;
|
| + }
|
| + }
|
| + }
|
| + if (this.get$hasValue()) {
|
| + var $$list = this._dart_coreimpl_listeners;
|
| + for (var $$i = 0;$$i < $$list.get$length(); $$i++) {
|
| + var listener = $$list.$index($$i);
|
| + listener.call$1(this.get$value());
|
| + }
|
| + }
|
| + else {
|
| + if (!this._exceptionHandled && this._dart_coreimpl_listeners.get$length() > (0)) {
|
| + $throw(this._exception);
|
| + }
|
| + }
|
| +}
|
| +FutureImpl.prototype._setValue = function(value) {
|
| + if (this._isComplete) {
|
| + $throw(new FutureAlreadyCompleteException());
|
| + }
|
| + this._dart_coreimpl_value = value;
|
| + this._complete();
|
| +}
|
| +FutureImpl.prototype._setException = function(exception) {
|
| + if (exception == null) {
|
| + $throw(new IllegalArgumentException(null));
|
| + }
|
| + if (this._isComplete) {
|
| + $throw(new FutureAlreadyCompleteException());
|
| + }
|
| + this._exception = exception;
|
| + this._complete();
|
| +}
|
| +// ********** Code for FutureImpl_T **************
|
| +$inherits(FutureImpl_T, FutureImpl);
|
| +function FutureImpl_T() {}
|
| +FutureImpl_T.prototype._complete = function() {
|
| + this._isComplete = true;
|
| + if (this._exception != null) {
|
| + var $$list = this._exceptionHandlers;
|
| + for (var $$i = 0;$$i < $$list.get$length(); $$i++) {
|
| + var handler = $$list.$index($$i);
|
| + if (handler.call$1(this._exception)) {
|
| + this._exceptionHandled = true;
|
| + break;
|
| + }
|
| + }
|
| + }
|
| + if (this.get$hasValue()) {
|
| + var $$list = this._dart_coreimpl_listeners;
|
| + for (var $$i = 0;$$i < $$list.get$length(); $$i++) {
|
| + var listener = $$list.$index($$i);
|
| + listener.call$1(this.get$value());
|
| + }
|
| + }
|
| + else {
|
| + if (!this._exceptionHandled && this._dart_coreimpl_listeners.get$length() > (0)) {
|
| + $throw(this._exception);
|
| + }
|
| + }
|
| +}
|
| +FutureImpl_T.prototype._setValue = function(value) {
|
| + if (this._isComplete) {
|
| + $throw(new FutureAlreadyCompleteException());
|
| + }
|
| + this._dart_coreimpl_value = value;
|
| + this._complete();
|
| +}
|
| +FutureImpl_T.prototype._setException = function(exception) {
|
| + if (exception == null) {
|
| + $throw(new IllegalArgumentException(null));
|
| + }
|
| + if (this._isComplete) {
|
| + $throw(new FutureAlreadyCompleteException());
|
| + }
|
| + this._exception = exception;
|
| + this._complete();
|
| +}
|
| +// ********** Code for CompleterImpl **************
|
| +function CompleterImpl() {
|
| + this._futureImpl = new FutureImpl();
|
| +}
|
| +CompleterImpl.prototype.get$future = function() {
|
| + return this._futureImpl;
|
| +}
|
| +CompleterImpl.prototype.complete = function(value) {
|
| + this._futureImpl._setValue(value);
|
| +}
|
| +CompleterImpl.prototype.get$complete = function() {
|
| + return this.complete.bind(this);
|
| +}
|
| +CompleterImpl.prototype.completeException = function(exception) {
|
| + this._futureImpl._setException(exception);
|
| +}
|
| +CompleterImpl.prototype.complete$1 = CompleterImpl.prototype.complete;
|
| +// ********** Code for CompleterImpl_html_html_CSSStyleDeclaration **************
|
| +$inherits(CompleterImpl_html_html_CSSStyleDeclaration, CompleterImpl);
|
| +function CompleterImpl_html_html_CSSStyleDeclaration() {}
|
| +// ********** Code for CompleterImpl_ElementRect **************
|
| +$inherits(CompleterImpl_ElementRect, CompleterImpl);
|
| +function CompleterImpl_ElementRect() {}
|
| +// ********** Code for CompleterImpl_Size **************
|
| +$inherits(CompleterImpl_Size, CompleterImpl);
|
| +function CompleterImpl_Size() {}
|
| +// ********** Code for CompleterImpl_bool **************
|
| +$inherits(CompleterImpl_bool, CompleterImpl);
|
| +function CompleterImpl_bool() {}
|
| +// ********** Code for HashMapImplementation **************
|
| +function HashMapImplementation() {
|
| + this._numberOfEntries = (0);
|
| + this._numberOfDeleted = (0);
|
| + this._loadLimit = HashMapImplementation._computeLoadLimit((8));
|
| + this._keys = new Array((8));
|
| + this._values = new Array((8));
|
| +}
|
| +HashMapImplementation.prototype.is$Map_dart_core_String$Dynamic = function(){return true};
|
| +HashMapImplementation._computeLoadLimit = function(capacity) {
|
| + return $truncdiv((capacity * (3)), (4));
|
| +}
|
| +HashMapImplementation._firstProbe = function(hashCode, length) {
|
| + return hashCode & (length - (1));
|
| +}
|
| +HashMapImplementation._nextProbe = function(currentProbe, numberOfProbes, length) {
|
| + return (currentProbe + numberOfProbes) & (length - (1));
|
| +}
|
| +HashMapImplementation.prototype._probeForAdding = function(key) {
|
| + var hash = HashMapImplementation._firstProbe(key.hashCode$0(), this._keys.get$length());
|
| + var numberOfProbes = (1);
|
| + var initialHash = hash;
|
| + var insertionIndex = (-1);
|
| + while (true) {
|
| + var existingKey = this._keys.$index(hash);
|
| + if (existingKey == null) {
|
| + if (insertionIndex < (0)) return hash;
|
| + return insertionIndex;
|
| + }
|
| + else if ($eq(existingKey, key)) {
|
| + return hash;
|
| + }
|
| + else if ((insertionIndex < (0)) && (const$0000 == existingKey)) {
|
| + insertionIndex = hash;
|
| + }
|
| + hash = HashMapImplementation._nextProbe(hash, numberOfProbes++, this._keys.get$length());
|
| + }
|
| +}
|
| +HashMapImplementation.prototype._probeForLookup = function(key) {
|
| + var hash = HashMapImplementation._firstProbe(key.hashCode$0(), this._keys.get$length());
|
| + var numberOfProbes = (1);
|
| + var initialHash = hash;
|
| + while (true) {
|
| + var existingKey = this._keys.$index(hash);
|
| + if (existingKey == null) return (-1);
|
| + if ($eq(existingKey, key)) return hash;
|
| + hash = HashMapImplementation._nextProbe(hash, numberOfProbes++, this._keys.get$length());
|
| + }
|
| +}
|
| +HashMapImplementation.prototype._ensureCapacity = function() {
|
| + var newNumberOfEntries = this._numberOfEntries + (1);
|
| + if (newNumberOfEntries >= this._loadLimit) {
|
| + this._grow(this._keys.get$length() * (2));
|
| + return;
|
| + }
|
| + var capacity = this._keys.get$length();
|
| + var numberOfFreeOrDeleted = capacity - newNumberOfEntries;
|
| + var numberOfFree = numberOfFreeOrDeleted - this._numberOfDeleted;
|
| + if (this._numberOfDeleted > numberOfFree) {
|
| + this._grow(this._keys.get$length());
|
| + }
|
| +}
|
| +HashMapImplementation._isPowerOfTwo = function(x) {
|
| + return ((x & (x - (1))) == (0));
|
| +}
|
| +HashMapImplementation.prototype._grow = function(newCapacity) {
|
| + var capacity = this._keys.get$length();
|
| + this._loadLimit = HashMapImplementation._computeLoadLimit(newCapacity);
|
| + var oldKeys = this._keys;
|
| + var oldValues = this._values;
|
| + this._keys = new Array(newCapacity);
|
| + this._values = new Array(newCapacity);
|
| + for (var i = (0);
|
| + i < capacity; i++) {
|
| + var key = oldKeys.$index(i);
|
| + if (key == null || key == const$0000) {
|
| + continue;
|
| + }
|
| + var value = oldValues.$index(i);
|
| + var newIndex = this._probeForAdding(key);
|
| + this._keys.$setindex(newIndex, key);
|
| + this._values.$setindex(newIndex, value);
|
| + }
|
| + this._numberOfDeleted = (0);
|
| +}
|
| +HashMapImplementation.prototype.clear = function() {
|
| + this._numberOfEntries = (0);
|
| + this._numberOfDeleted = (0);
|
| + var length = this._keys.get$length();
|
| + for (var i = (0);
|
| + i < length; i++) {
|
| + this._keys.$setindex(i);
|
| + this._values.$setindex(i);
|
| + }
|
| +}
|
| +HashMapImplementation.prototype.get$clear = function() {
|
| + return this.clear.bind(this);
|
| +}
|
| +HashMapImplementation.prototype.$setindex = function(key, value) {
|
| + this._ensureCapacity();
|
| + var index = this._probeForAdding(key);
|
| + if ((this._keys.$index(index) == null) || (this._keys.$index(index) == const$0000)) {
|
| + this._numberOfEntries++;
|
| + }
|
| + this._keys.$setindex(index, key);
|
| + this._values.$setindex(index, value);
|
| +}
|
| +HashMapImplementation.prototype.$index = function(key) {
|
| + var index = this._probeForLookup(key);
|
| + if (index < (0)) return null;
|
| + return this._values.$index(index);
|
| +}
|
| +HashMapImplementation.prototype.putIfAbsent = function(key, ifAbsent) {
|
| + var index = this._probeForLookup(key);
|
| + if (index >= (0)) return this._values.$index(index);
|
| + var value = ifAbsent.call$0();
|
| + this.$setindex(key, value);
|
| + return value;
|
| +}
|
| +HashMapImplementation.prototype.remove = function(key) {
|
| + var index = this._probeForLookup(key);
|
| + if (index >= (0)) {
|
| + this._numberOfEntries--;
|
| + var value = this._values.$index(index);
|
| + this._values.$setindex(index);
|
| + this._keys.$setindex(index, const$0000);
|
| + this._numberOfDeleted++;
|
| + return value;
|
| + }
|
| + return null;
|
| +}
|
| +HashMapImplementation.prototype.isEmpty = function() {
|
| + return this._numberOfEntries == (0);
|
| +}
|
| +HashMapImplementation.prototype.get$length = function() {
|
| + return this._numberOfEntries;
|
| +}
|
| +HashMapImplementation.prototype.forEach = function(f) {
|
| + var length = this._keys.get$length();
|
| + for (var i = (0);
|
| + i < length; i++) {
|
| + var key = this._keys.$index(i);
|
| + if ((key != null) && (key != const$0000)) {
|
| + f.call$2(key, this._values.$index(i));
|
| + }
|
| + }
|
| +}
|
| +HashMapImplementation.prototype.getKeys = function() {
|
| + var list = new Array(this.get$length());
|
| + var i = (0);
|
| + this.forEach(function _(key, value) {
|
| + list.$setindex(i++, key);
|
| + }
|
| + );
|
| + return list;
|
| +}
|
| +HashMapImplementation.prototype.getValues = function() {
|
| + var list = new Array(this.get$length());
|
| + var i = (0);
|
| + this.forEach(function _(key, value) {
|
| + list.$setindex(i++, value);
|
| + }
|
| + );
|
| + return list;
|
| +}
|
| +HashMapImplementation.prototype.containsKey = function(key) {
|
| + return (this._probeForLookup(key) != (-1));
|
| +}
|
| +HashMapImplementation.prototype.clear$0 = HashMapImplementation.prototype.clear;
|
| +HashMapImplementation.prototype.forEach$1 = function($0) {
|
| + return this.forEach(to$call$2($0));
|
| +};
|
| +HashMapImplementation.prototype.getValues$0 = HashMapImplementation.prototype.getValues;
|
| +HashMapImplementation.prototype.putIfAbsent$2 = function($0, $1) {
|
| + return this.putIfAbsent($0, to$call$0($1));
|
| +};
|
| +HashMapImplementation.prototype.remove$1 = HashMapImplementation.prototype.remove;
|
| +// ********** Code for HashMapImplementation_E$E **************
|
| +$inherits(HashMapImplementation_E$E, HashMapImplementation);
|
| +function HashMapImplementation_E$E() {
|
| + this._numberOfEntries = (0);
|
| + this._numberOfDeleted = (0);
|
| + this._loadLimit = HashMapImplementation._computeLoadLimit((8));
|
| + this._keys = new Array((8));
|
| + this._values = new Array((8));
|
| +}
|
| +HashMapImplementation_E$E.prototype.is$Map_dart_core_String$Dynamic = function(){return true};
|
| +HashMapImplementation_E$E._computeLoadLimit = function(capacity) {
|
| + return $truncdiv((capacity * (3)), (4));
|
| +}
|
| +HashMapImplementation_E$E._firstProbe = function(hashCode, length) {
|
| + return hashCode & (length - (1));
|
| +}
|
| +HashMapImplementation_E$E._nextProbe = function(currentProbe, numberOfProbes, length) {
|
| + return (currentProbe + numberOfProbes) & (length - (1));
|
| +}
|
| +HashMapImplementation_E$E.prototype._probeForAdding = function(key) {
|
| + var hash = HashMapImplementation._firstProbe(key.hashCode$0(), this._keys.get$length());
|
| + var numberOfProbes = (1);
|
| + var initialHash = hash;
|
| + var insertionIndex = (-1);
|
| + while (true) {
|
| + var existingKey = this._keys.$index(hash);
|
| + if (existingKey == null) {
|
| + if (insertionIndex < (0)) return hash;
|
| + return insertionIndex;
|
| + }
|
| + else if ($eq(existingKey, key)) {
|
| + return hash;
|
| + }
|
| + else if ((insertionIndex < (0)) && (const$0000 == existingKey)) {
|
| + insertionIndex = hash;
|
| + }
|
| + hash = HashMapImplementation._nextProbe(hash, numberOfProbes++, this._keys.get$length());
|
| + }
|
| +}
|
| +HashMapImplementation_E$E.prototype._probeForLookup = function(key) {
|
| + var hash = HashMapImplementation._firstProbe(key.hashCode$0(), this._keys.get$length());
|
| + var numberOfProbes = (1);
|
| + var initialHash = hash;
|
| + while (true) {
|
| + var existingKey = this._keys.$index(hash);
|
| + if (existingKey == null) return (-1);
|
| + if ($eq(existingKey, key)) return hash;
|
| + hash = HashMapImplementation._nextProbe(hash, numberOfProbes++, this._keys.get$length());
|
| + }
|
| +}
|
| +HashMapImplementation_E$E.prototype._ensureCapacity = function() {
|
| + var newNumberOfEntries = this._numberOfEntries + (1);
|
| + if (newNumberOfEntries >= this._loadLimit) {
|
| + this._grow(this._keys.get$length() * (2));
|
| + return;
|
| + }
|
| + var capacity = this._keys.get$length();
|
| + var numberOfFreeOrDeleted = capacity - newNumberOfEntries;
|
| + var numberOfFree = numberOfFreeOrDeleted - this._numberOfDeleted;
|
| + if (this._numberOfDeleted > numberOfFree) {
|
| + this._grow(this._keys.get$length());
|
| + }
|
| +}
|
| +HashMapImplementation_E$E._isPowerOfTwo = function(x) {
|
| + return ((x & (x - (1))) == (0));
|
| +}
|
| +HashMapImplementation_E$E.prototype._grow = function(newCapacity) {
|
| + var capacity = this._keys.get$length();
|
| + this._loadLimit = HashMapImplementation._computeLoadLimit(newCapacity);
|
| + var oldKeys = this._keys;
|
| + var oldValues = this._values;
|
| + this._keys = new Array(newCapacity);
|
| + this._values = new Array(newCapacity);
|
| + for (var i = (0);
|
| + i < capacity; i++) {
|
| + var key = oldKeys.$index(i);
|
| + if (key == null || key == const$0000) {
|
| + continue;
|
| + }
|
| + var value = oldValues.$index(i);
|
| + var newIndex = this._probeForAdding(key);
|
| + this._keys.$setindex(newIndex, key);
|
| + this._values.$setindex(newIndex, value);
|
| + }
|
| + this._numberOfDeleted = (0);
|
| +}
|
| +HashMapImplementation_E$E.prototype.clear = function() {
|
| + this._numberOfEntries = (0);
|
| + this._numberOfDeleted = (0);
|
| + var length = this._keys.get$length();
|
| + for (var i = (0);
|
| + i < length; i++) {
|
| + this._keys.$setindex(i);
|
| + this._values.$setindex(i);
|
| + }
|
| +}
|
| +HashMapImplementation_E$E.prototype.$setindex = function(key, value) {
|
| + this._ensureCapacity();
|
| + var index = this._probeForAdding(key);
|
| + if ((this._keys.$index(index) == null) || (this._keys.$index(index) == const$0000)) {
|
| + this._numberOfEntries++;
|
| + }
|
| + this._keys.$setindex(index, key);
|
| + this._values.$setindex(index, value);
|
| +}
|
| +HashMapImplementation_E$E.prototype.remove = function(key) {
|
| + var index = this._probeForLookup(key);
|
| + if (index >= (0)) {
|
| + this._numberOfEntries--;
|
| + var value = this._values.$index(index);
|
| + this._values.$setindex(index);
|
| + this._keys.$setindex(index, const$0000);
|
| + this._numberOfDeleted++;
|
| + return value;
|
| + }
|
| + return null;
|
| +}
|
| +HashMapImplementation_E$E.prototype.isEmpty = function() {
|
| + return this._numberOfEntries == (0);
|
| +}
|
| +HashMapImplementation_E$E.prototype.forEach = function(f) {
|
| + var length = this._keys.get$length();
|
| + for (var i = (0);
|
| + i < length; i++) {
|
| + var key = this._keys.$index(i);
|
| + if ((key != null) && (key != const$0000)) {
|
| + f.call$2(key, this._values.$index(i));
|
| + }
|
| + }
|
| +}
|
| +HashMapImplementation_E$E.prototype.getKeys = function() {
|
| + var list = new Array(this.get$length());
|
| + var i = (0);
|
| + this.forEach(function _(key, value) {
|
| + list.$setindex(i++, key);
|
| + }
|
| + );
|
| + return list;
|
| +}
|
| +HashMapImplementation_E$E.prototype.containsKey = function(key) {
|
| + return (this._probeForLookup(key) != (-1));
|
| +}
|
| +// ********** Code for HashMapImplementation_K$DoubleLinkedQueueEntry_KeyValuePair_K$V **************
|
| +$inherits(HashMapImplementation_K$DoubleLinkedQueueEntry_KeyValuePair_K$V, HashMapImplementation);
|
| +function HashMapImplementation_K$DoubleLinkedQueueEntry_KeyValuePair_K$V() {}
|
| +HashMapImplementation_K$DoubleLinkedQueueEntry_KeyValuePair_K$V.prototype.is$Map_dart_core_String$Dynamic = function(){return true};
|
| +// ********** Code for HashMapImplementation_dart_core_String$dart_core_String **************
|
| +$inherits(HashMapImplementation_dart_core_String$dart_core_String, HashMapImplementation);
|
| +function HashMapImplementation_dart_core_String$dart_core_String() {}
|
| +HashMapImplementation_dart_core_String$dart_core_String.prototype.is$Map_dart_core_String$Dynamic = function(){return true};
|
| +// ********** Code for HashMapImplementation_dart_core_String$int **************
|
| +$inherits(HashMapImplementation_dart_core_String$int, HashMapImplementation);
|
| +function HashMapImplementation_dart_core_String$int() {}
|
| +HashMapImplementation_dart_core_String$int.prototype.is$Map_dart_core_String$Dynamic = function(){return true};
|
| +// ********** Code for HashMapImplementation_dart_core_String$num **************
|
| +$inherits(HashMapImplementation_dart_core_String$num, HashMapImplementation);
|
| +function HashMapImplementation_dart_core_String$num() {}
|
| +HashMapImplementation_dart_core_String$num.prototype.is$Map_dart_core_String$Dynamic = function(){return true};
|
| +// ********** Code for HashMapImplementation_int$EventSummary **************
|
| +$inherits(HashMapImplementation_int$EventSummary, HashMapImplementation);
|
| +function HashMapImplementation_int$EventSummary() {}
|
| +HashMapImplementation_int$EventSummary.prototype.is$Map_dart_core_String$Dynamic = function(){return false};
|
| +// ********** Code for HashMapImplementation_int$View **************
|
| +$inherits(HashMapImplementation_int$View, HashMapImplementation);
|
| +function HashMapImplementation_int$View() {}
|
| +HashMapImplementation_int$View.prototype.is$Map_dart_core_String$Dynamic = function(){return false};
|
| +// ********** Code for HashMapImplementation_int$_GridTemplateRect **************
|
| +$inherits(HashMapImplementation_int$_GridTemplateRect, HashMapImplementation);
|
| +function HashMapImplementation_int$_GridTemplateRect() {}
|
| +HashMapImplementation_int$_GridTemplateRect.prototype.is$Map_dart_core_String$Dynamic = function(){return false};
|
| +// ********** Code for HashSetImplementation **************
|
| +function HashSetImplementation() {
|
| + this._backingMap = new HashMapImplementation_E$E();
|
| +}
|
| +HashSetImplementation.HashSetImplementation$from$factory = function(other) {
|
| + var set = new HashSetImplementation_E();
|
| + for (var $$i = other.iterator$0(); $$i.hasNext$0(); ) {
|
| + var e = $$i.next$0();
|
| + set.add(e);
|
| + }
|
| + return set;
|
| +}
|
| +HashSetImplementation.prototype.clear = function() {
|
| + this._backingMap.clear();
|
| +}
|
| +HashSetImplementation.prototype.get$clear = function() {
|
| + return this.clear.bind(this);
|
| +}
|
| +HashSetImplementation.prototype.add = function(value) {
|
| + this._backingMap.$setindex(value, value);
|
| +}
|
| +HashSetImplementation.prototype.contains = function(value) {
|
| + return this._backingMap.containsKey(value);
|
| +}
|
| +HashSetImplementation.prototype.remove = function(value) {
|
| + if (!this._backingMap.containsKey(value)) return false;
|
| + this._backingMap.remove(value);
|
| + return true;
|
| +}
|
| +HashSetImplementation.prototype.addAll = function(collection) {
|
| + var $this = this; // closure support
|
| + collection.forEach(function _(value) {
|
| + $this.add(value);
|
| + }
|
| + );
|
| +}
|
| +HashSetImplementation.prototype.forEach = function(f) {
|
| + this._backingMap.forEach(function _(key, value) {
|
| + f.call$1(key);
|
| + }
|
| + );
|
| +}
|
| +HashSetImplementation.prototype.filter = function(f) {
|
| + var result = new HashSetImplementation();
|
| + this._backingMap.forEach(function _(key, value) {
|
| + if (f.call$1(key)) result.add(key);
|
| + }
|
| + );
|
| + return result;
|
| +}
|
| +HashSetImplementation.prototype.some = function(f) {
|
| + var keys = this._backingMap.getKeys();
|
| + return keys.some(f);
|
| +}
|
| +HashSetImplementation.prototype.isEmpty = function() {
|
| + return this._backingMap.isEmpty();
|
| +}
|
| +HashSetImplementation.prototype.get$length = function() {
|
| + return this._backingMap.get$length();
|
| +}
|
| +HashSetImplementation.prototype.iterator = function() {
|
| + return new HashSetIterator_E(this);
|
| +}
|
| +HashSetImplementation.prototype.add$1 = HashSetImplementation.prototype.add;
|
| +HashSetImplementation.prototype.addAll$1 = HashSetImplementation.prototype.addAll;
|
| +HashSetImplementation.prototype.clear$0 = HashSetImplementation.prototype.clear;
|
| +HashSetImplementation.prototype.contains$1 = HashSetImplementation.prototype.contains;
|
| +HashSetImplementation.prototype.filter$1 = function($0) {
|
| + return this.filter(to$call$1($0));
|
| +};
|
| +HashSetImplementation.prototype.forEach$1 = function($0) {
|
| + return this.forEach(to$call$1($0));
|
| +};
|
| +HashSetImplementation.prototype.iterator$0 = HashSetImplementation.prototype.iterator;
|
| +HashSetImplementation.prototype.remove$1 = HashSetImplementation.prototype.remove;
|
| +// ********** Code for HashSetImplementation_E **************
|
| +$inherits(HashSetImplementation_E, HashSetImplementation);
|
| +function HashSetImplementation_E() {
|
| + this._backingMap = new HashMapImplementation_E$E();
|
| +}
|
| +// ********** Code for HashSetImplementation_dart_core_String **************
|
| +$inherits(HashSetImplementation_dart_core_String, HashSetImplementation);
|
| +function HashSetImplementation_dart_core_String() {}
|
| +// ********** Code for HashSetIterator **************
|
| +function HashSetIterator(set_) {
|
| + this._entries = set_._backingMap._keys;
|
| + this._nextValidIndex = (-1);
|
| + this._advance();
|
| +}
|
| +HashSetIterator.prototype.hasNext = function() {
|
| + if (this._nextValidIndex >= this._entries.get$length()) return false;
|
| + if (this._entries.$index(this._nextValidIndex) == const$0000) {
|
| + this._advance();
|
| + }
|
| + return this._nextValidIndex < this._entries.get$length();
|
| +}
|
| +HashSetIterator.prototype.next = function() {
|
| + if (!this.hasNext()) {
|
| + $throw(const$0001);
|
| + }
|
| + var res = this._entries.$index(this._nextValidIndex);
|
| + this._advance();
|
| + return res;
|
| +}
|
| +HashSetIterator.prototype._advance = function() {
|
| + var length = this._entries.get$length();
|
| + var entry;
|
| + var deletedKey = const$0000;
|
| + do {
|
| + if (++this._nextValidIndex >= length) break;
|
| + entry = this._entries.$index(this._nextValidIndex);
|
| + }
|
| + while ((entry == null) || (entry == deletedKey))
|
| +}
|
| +HashSetIterator.prototype.hasNext$0 = HashSetIterator.prototype.hasNext;
|
| +HashSetIterator.prototype.next$0 = HashSetIterator.prototype.next;
|
| +// ********** Code for HashSetIterator_E **************
|
| +$inherits(HashSetIterator_E, HashSetIterator);
|
| +function HashSetIterator_E(set_) {
|
| + this._nextValidIndex = (-1);
|
| + this._entries = set_._backingMap._keys;
|
| + this._advance();
|
| +}
|
| +HashSetIterator_E.prototype._advance = function() {
|
| + var length = this._entries.get$length();
|
| + var entry;
|
| + var deletedKey = const$0000;
|
| + do {
|
| + if (++this._nextValidIndex >= length) break;
|
| + entry = this._entries.$index(this._nextValidIndex);
|
| + }
|
| + while ((entry == null) || (entry == deletedKey))
|
| +}
|
| +// ********** Code for _DeletedKeySentinel **************
|
| +function _DeletedKeySentinel() {
|
| +
|
| +}
|
| +// ********** Code for KeyValuePair **************
|
| +function KeyValuePair(key, value) {
|
| + this.value = value;
|
| + this.key = key;
|
| +}
|
| +KeyValuePair.prototype.get$value = function() { return this.value; };
|
| +KeyValuePair.prototype.set$value = function(value) { return this.value = value; };
|
| +// ********** Code for KeyValuePair_K$V **************
|
| +$inherits(KeyValuePair_K$V, KeyValuePair);
|
| +function KeyValuePair_K$V(key, value) {
|
| + this.key = key;
|
| + this.value = value;
|
| +}
|
| +// ********** Code for LinkedHashMapImplementation **************
|
| +function LinkedHashMapImplementation() {
|
| + this._map = new HashMapImplementation();
|
| + this._list = new DoubleLinkedQueue_KeyValuePair_K$V();
|
| +}
|
| +LinkedHashMapImplementation.prototype.is$Map_dart_core_String$Dynamic = function(){return true};
|
| +LinkedHashMapImplementation.prototype.$setindex = function(key, value) {
|
| + if (this._map.containsKey(key)) {
|
| + this._map.$index(key).get$element().set$value(value);
|
| + }
|
| + else {
|
| + this._list.addLast(new KeyValuePair_K$V(key, value));
|
| + this._map.$setindex(key, this._list.lastEntry());
|
| + }
|
| +}
|
| +LinkedHashMapImplementation.prototype.$index = function(key) {
|
| + var entry = this._map.$index(key);
|
| + if (entry == null) return null;
|
| + return entry.get$element().get$value();
|
| +}
|
| +LinkedHashMapImplementation.prototype.remove = function(key) {
|
| + var entry = this._map.remove$1(key);
|
| + if (entry == null) return null;
|
| + entry.remove$0();
|
| + return entry.get$element().get$value();
|
| +}
|
| +LinkedHashMapImplementation.prototype.putIfAbsent = function(key, ifAbsent) {
|
| + var value = this.$index(key);
|
| + if ((this.$index(key) == null) && !(this.containsKey(key))) {
|
| + value = ifAbsent.call$0();
|
| + this.$setindex(key, value);
|
| + }
|
| + return value;
|
| +}
|
| +LinkedHashMapImplementation.prototype.getValues = function() {
|
| + var list = new Array(this.get$length());
|
| + var index = (0);
|
| + this._list.forEach(function _(entry) {
|
| + list.$setindex(index++, entry.value);
|
| + }
|
| + );
|
| + return list;
|
| +}
|
| +LinkedHashMapImplementation.prototype.forEach = function(f) {
|
| + this._list.forEach(function _(entry) {
|
| + f.call$2(entry.key, entry.value);
|
| + }
|
| + );
|
| +}
|
| +LinkedHashMapImplementation.prototype.containsKey = function(key) {
|
| + return this._map.containsKey(key);
|
| +}
|
| +LinkedHashMapImplementation.prototype.get$length = function() {
|
| + return this._map.get$length();
|
| +}
|
| +LinkedHashMapImplementation.prototype.clear = function() {
|
| + this._map.clear();
|
| + this._list.clear();
|
| +}
|
| +LinkedHashMapImplementation.prototype.get$clear = function() {
|
| + return this.clear.bind(this);
|
| +}
|
| +LinkedHashMapImplementation.prototype.clear$0 = LinkedHashMapImplementation.prototype.clear;
|
| +LinkedHashMapImplementation.prototype.forEach$1 = function($0) {
|
| + return this.forEach(to$call$2($0));
|
| +};
|
| +LinkedHashMapImplementation.prototype.getValues$0 = LinkedHashMapImplementation.prototype.getValues;
|
| +LinkedHashMapImplementation.prototype.putIfAbsent$2 = function($0, $1) {
|
| + return this.putIfAbsent($0, to$call$0($1));
|
| +};
|
| +LinkedHashMapImplementation.prototype.remove$1 = LinkedHashMapImplementation.prototype.remove;
|
| +// ********** Code for DoubleLinkedQueueEntry **************
|
| +function DoubleLinkedQueueEntry(e) {
|
| + this._dart_coreimpl_element = e;
|
| +}
|
| +DoubleLinkedQueueEntry.prototype._link = function(p, n) {
|
| + this._next = n;
|
| + this._previous = p;
|
| + p._next = this;
|
| + n._previous = this;
|
| +}
|
| +DoubleLinkedQueueEntry.prototype.prepend = function(e) {
|
| + new DoubleLinkedQueueEntry_E(e)._link(this._previous, this);
|
| +}
|
| +DoubleLinkedQueueEntry.prototype.remove = function() {
|
| + this._previous._next = this._next;
|
| + this._next._previous = this._previous;
|
| + this._next = null;
|
| + this._previous = null;
|
| + return this._dart_coreimpl_element;
|
| +}
|
| +DoubleLinkedQueueEntry.prototype._asNonSentinelEntry = function() {
|
| + return this;
|
| +}
|
| +DoubleLinkedQueueEntry.prototype.previousEntry = function() {
|
| + return this._previous._asNonSentinelEntry();
|
| +}
|
| +DoubleLinkedQueueEntry.prototype.nextEntry = function() {
|
| + return this._next._asNonSentinelEntry();
|
| +}
|
| +DoubleLinkedQueueEntry.prototype.get$element = function() {
|
| + return this._dart_coreimpl_element;
|
| +}
|
| +DoubleLinkedQueueEntry.prototype._asNonSentinelEntry$0 = DoubleLinkedQueueEntry.prototype._asNonSentinelEntry;
|
| +DoubleLinkedQueueEntry.prototype.nextEntry$0 = DoubleLinkedQueueEntry.prototype.nextEntry;
|
| +DoubleLinkedQueueEntry.prototype.remove$0 = DoubleLinkedQueueEntry.prototype.remove;
|
| +// ********** Code for DoubleLinkedQueueEntry_E **************
|
| +$inherits(DoubleLinkedQueueEntry_E, DoubleLinkedQueueEntry);
|
| +function DoubleLinkedQueueEntry_E(e) {
|
| + this._dart_coreimpl_element = e;
|
| +}
|
| +DoubleLinkedQueueEntry_E.prototype._link = function(p, n) {
|
| + this._next = n;
|
| + this._previous = p;
|
| + p._next = this;
|
| + n._previous = this;
|
| +}
|
| +DoubleLinkedQueueEntry_E.prototype.prepend = function(e) {
|
| + new DoubleLinkedQueueEntry_E(e)._link(this._previous, this);
|
| +}
|
| +DoubleLinkedQueueEntry_E.prototype.remove = function() {
|
| + this._previous._next = this._next;
|
| + this._next._previous = this._previous;
|
| + this._next = null;
|
| + this._previous = null;
|
| + return this._dart_coreimpl_element;
|
| +}
|
| +DoubleLinkedQueueEntry_E.prototype._asNonSentinelEntry = function() {
|
| + return this;
|
| +}
|
| +DoubleLinkedQueueEntry_E.prototype.nextEntry = function() {
|
| + return this._next._asNonSentinelEntry();
|
| +}
|
| +// ********** Code for DoubleLinkedQueueEntry_KeyValuePair_K$V **************
|
| +$inherits(DoubleLinkedQueueEntry_KeyValuePair_K$V, DoubleLinkedQueueEntry);
|
| +function DoubleLinkedQueueEntry_KeyValuePair_K$V(e) {
|
| + this._dart_coreimpl_element = e;
|
| +}
|
| +DoubleLinkedQueueEntry_KeyValuePair_K$V.prototype._link = function(p, n) {
|
| + this._next = n;
|
| + this._previous = p;
|
| + p._next = this;
|
| + n._previous = this;
|
| +}
|
| +DoubleLinkedQueueEntry_KeyValuePair_K$V.prototype.prepend = function(e) {
|
| + new DoubleLinkedQueueEntry_KeyValuePair_K$V(e)._link(this._previous, this);
|
| +}
|
| +DoubleLinkedQueueEntry_KeyValuePair_K$V.prototype.remove = function() {
|
| + this._previous._next = this._next;
|
| + this._next._previous = this._previous;
|
| + this._next = null;
|
| + this._previous = null;
|
| + return this._dart_coreimpl_element;
|
| +}
|
| +DoubleLinkedQueueEntry_KeyValuePair_K$V.prototype._asNonSentinelEntry = function() {
|
| + return this;
|
| +}
|
| +DoubleLinkedQueueEntry_KeyValuePair_K$V.prototype.previousEntry = function() {
|
| + return this._previous._asNonSentinelEntry$0();
|
| +}
|
| +// ********** Code for _DoubleLinkedQueueEntrySentinel **************
|
| +$inherits(_DoubleLinkedQueueEntrySentinel, DoubleLinkedQueueEntry_E);
|
| +function _DoubleLinkedQueueEntrySentinel() {
|
| + DoubleLinkedQueueEntry_E.call(this, null);
|
| + this._link(this, this);
|
| +}
|
| +_DoubleLinkedQueueEntrySentinel.prototype.remove = function() {
|
| + $throw(const$0004);
|
| +}
|
| +_DoubleLinkedQueueEntrySentinel.prototype._asNonSentinelEntry = function() {
|
| + return null;
|
| +}
|
| +_DoubleLinkedQueueEntrySentinel.prototype.get$element = function() {
|
| + $throw(const$0004);
|
| +}
|
| +_DoubleLinkedQueueEntrySentinel.prototype._asNonSentinelEntry$0 = _DoubleLinkedQueueEntrySentinel.prototype._asNonSentinelEntry;
|
| +_DoubleLinkedQueueEntrySentinel.prototype.remove$0 = _DoubleLinkedQueueEntrySentinel.prototype.remove;
|
| +// ********** Code for _DoubleLinkedQueueEntrySentinel_E **************
|
| +$inherits(_DoubleLinkedQueueEntrySentinel_E, _DoubleLinkedQueueEntrySentinel);
|
| +function _DoubleLinkedQueueEntrySentinel_E() {
|
| + DoubleLinkedQueueEntry_E.call(this, null);
|
| + this._link(this, this);
|
| +}
|
| +// ********** Code for _DoubleLinkedQueueEntrySentinel_KeyValuePair_K$V **************
|
| +$inherits(_DoubleLinkedQueueEntrySentinel_KeyValuePair_K$V, _DoubleLinkedQueueEntrySentinel);
|
| +function _DoubleLinkedQueueEntrySentinel_KeyValuePair_K$V() {
|
| + DoubleLinkedQueueEntry_KeyValuePair_K$V.call(this, null);
|
| + this._link(this, this);
|
| +}
|
| +// ********** Code for DoubleLinkedQueue **************
|
| +function DoubleLinkedQueue() {
|
| + this._sentinel = new _DoubleLinkedQueueEntrySentinel_E();
|
| +}
|
| +DoubleLinkedQueue.prototype.addLast = function(value) {
|
| + this._sentinel.prepend(value);
|
| +}
|
| +DoubleLinkedQueue.prototype.add = function(value) {
|
| + this.addLast(value);
|
| +}
|
| +DoubleLinkedQueue.prototype.addAll = function(collection) {
|
| + for (var $$i = collection.iterator$0(); $$i.hasNext$0(); ) {
|
| + var e = $$i.next$0();
|
| + this.add(e);
|
| + }
|
| +}
|
| +DoubleLinkedQueue.prototype.removeLast = function() {
|
| + return this._sentinel._previous.remove();
|
| +}
|
| +DoubleLinkedQueue.prototype.removeFirst = function() {
|
| + return this._sentinel._next.remove();
|
| +}
|
| +DoubleLinkedQueue.prototype.first = function() {
|
| + return this._sentinel._next.get$element();
|
| +}
|
| +DoubleLinkedQueue.prototype.get$first = function() {
|
| + return this.first.bind(this);
|
| +}
|
| +DoubleLinkedQueue.prototype.last = function() {
|
| + return this._sentinel._previous.get$element();
|
| +}
|
| +DoubleLinkedQueue.prototype.firstEntry = function() {
|
| + return this._sentinel.nextEntry();
|
| +}
|
| +DoubleLinkedQueue.prototype.get$length = function() {
|
| + var counter = (0);
|
| + this.forEach(function _(element) {
|
| + counter++;
|
| + }
|
| + );
|
| + return counter;
|
| +}
|
| +DoubleLinkedQueue.prototype.isEmpty = function() {
|
| + return (this._sentinel._next == this._sentinel);
|
| +}
|
| +DoubleLinkedQueue.prototype.clear = function() {
|
| + this._sentinel._next = this._sentinel;
|
| + this._sentinel._previous = this._sentinel;
|
| +}
|
| +DoubleLinkedQueue.prototype.get$clear = function() {
|
| + return this.clear.bind(this);
|
| +}
|
| +DoubleLinkedQueue.prototype.forEach = function(f) {
|
| + var entry = this._sentinel._next;
|
| + while (entry != this._sentinel) {
|
| + var nextEntry = entry._next;
|
| + f.call$1(entry._dart_coreimpl_element);
|
| + entry = nextEntry;
|
| + }
|
| +}
|
| +DoubleLinkedQueue.prototype.some = function(f) {
|
| + var entry = this._sentinel._next;
|
| + while (entry != this._sentinel) {
|
| + var nextEntry = entry._next;
|
| + if (f.call$1(entry._dart_coreimpl_element)) return true;
|
| + entry = nextEntry;
|
| + }
|
| + return false;
|
| +}
|
| +DoubleLinkedQueue.prototype.filter = function(f) {
|
| + var other = new DoubleLinkedQueue();
|
| + var entry = this._sentinel._next;
|
| + while (entry != this._sentinel) {
|
| + var nextEntry = entry._next;
|
| + if (f.call$1(entry._dart_coreimpl_element)) other.addLast(entry._dart_coreimpl_element);
|
| + entry = nextEntry;
|
| + }
|
| + return other;
|
| +}
|
| +DoubleLinkedQueue.prototype.iterator = function() {
|
| + return new _DoubleLinkedQueueIterator_E(this._sentinel);
|
| +}
|
| +DoubleLinkedQueue.prototype.add$1 = DoubleLinkedQueue.prototype.add;
|
| +DoubleLinkedQueue.prototype.addAll$1 = DoubleLinkedQueue.prototype.addAll;
|
| +DoubleLinkedQueue.prototype.clear$0 = DoubleLinkedQueue.prototype.clear;
|
| +DoubleLinkedQueue.prototype.filter$1 = function($0) {
|
| + return this.filter(to$call$1($0));
|
| +};
|
| +DoubleLinkedQueue.prototype.firstEntry$0 = DoubleLinkedQueue.prototype.firstEntry;
|
| +DoubleLinkedQueue.prototype.forEach$1 = function($0) {
|
| + return this.forEach(to$call$1($0));
|
| +};
|
| +DoubleLinkedQueue.prototype.iterator$0 = DoubleLinkedQueue.prototype.iterator;
|
| +DoubleLinkedQueue.prototype.last$0 = DoubleLinkedQueue.prototype.last;
|
| +DoubleLinkedQueue.prototype.removeLast$0 = DoubleLinkedQueue.prototype.removeLast;
|
| +// ********** Code for DoubleLinkedQueue_E **************
|
| +$inherits(DoubleLinkedQueue_E, DoubleLinkedQueue);
|
| +function DoubleLinkedQueue_E() {}
|
| +// ********** Code for DoubleLinkedQueue_KeyValuePair_K$V **************
|
| +$inherits(DoubleLinkedQueue_KeyValuePair_K$V, DoubleLinkedQueue);
|
| +function DoubleLinkedQueue_KeyValuePair_K$V() {
|
| + this._sentinel = new _DoubleLinkedQueueEntrySentinel_KeyValuePair_K$V();
|
| +}
|
| +DoubleLinkedQueue_KeyValuePair_K$V.prototype.addLast = function(value) {
|
| + this._sentinel.prepend(value);
|
| +}
|
| +DoubleLinkedQueue_KeyValuePair_K$V.prototype.lastEntry = function() {
|
| + return this._sentinel.previousEntry();
|
| +}
|
| +DoubleLinkedQueue_KeyValuePair_K$V.prototype.clear = function() {
|
| + this._sentinel._next = this._sentinel;
|
| + this._sentinel._previous = this._sentinel;
|
| +}
|
| +DoubleLinkedQueue_KeyValuePair_K$V.prototype.forEach = function(f) {
|
| + var entry = this._sentinel._next;
|
| + while (entry != this._sentinel) {
|
| + var nextEntry = entry._next;
|
| + f.call$1(entry._dart_coreimpl_element);
|
| + entry = nextEntry;
|
| + }
|
| +}
|
| +// ********** Code for DoubleLinkedQueue__Move **************
|
| +$inherits(DoubleLinkedQueue__Move, DoubleLinkedQueue);
|
| +function DoubleLinkedQueue__Move() {}
|
| +// ********** Code for DoubleLinkedQueue_num **************
|
| +$inherits(DoubleLinkedQueue_num, DoubleLinkedQueue);
|
| +function DoubleLinkedQueue_num() {}
|
| +// ********** Code for _DoubleLinkedQueueIterator **************
|
| +function _DoubleLinkedQueueIterator(_sentinel) {
|
| + this._sentinel = _sentinel;
|
| + this._currentEntry = this._sentinel;
|
| +}
|
| +_DoubleLinkedQueueIterator.prototype.hasNext = function() {
|
| + return this._currentEntry._next != this._sentinel;
|
| +}
|
| +_DoubleLinkedQueueIterator.prototype.next = function() {
|
| + if (!this.hasNext()) {
|
| + $throw(const$0001);
|
| + }
|
| + this._currentEntry = this._currentEntry._next;
|
| + return this._currentEntry.get$element();
|
| +}
|
| +_DoubleLinkedQueueIterator.prototype.hasNext$0 = _DoubleLinkedQueueIterator.prototype.hasNext;
|
| +_DoubleLinkedQueueIterator.prototype.next$0 = _DoubleLinkedQueueIterator.prototype.next;
|
| +// ********** Code for _DoubleLinkedQueueIterator_E **************
|
| +$inherits(_DoubleLinkedQueueIterator_E, _DoubleLinkedQueueIterator);
|
| +function _DoubleLinkedQueueIterator_E(_sentinel) {
|
| + this._sentinel = _sentinel;
|
| + this._currentEntry = this._sentinel;
|
| +}
|
| +// ********** Code for StringBufferImpl **************
|
| +function StringBufferImpl(content) {
|
| + this.clear();
|
| + this.add(content);
|
| +}
|
| +StringBufferImpl.prototype.get$length = function() {
|
| + return this._length;
|
| +}
|
| +StringBufferImpl.prototype.add = function(obj) {
|
| + var str = obj.toString$0();
|
| + if (str == null || str.isEmpty()) return this;
|
| + this._buffer.add$1(str);
|
| + this._length = this._length + str.length;
|
| + return this;
|
| +}
|
| +StringBufferImpl.prototype.addAll = function(objects) {
|
| + for (var $$i = objects.iterator$0(); $$i.hasNext$0(); ) {
|
| + var obj = $$i.next$0();
|
| + this.add(obj);
|
| + }
|
| + return this;
|
| +}
|
| +StringBufferImpl.prototype.clear = function() {
|
| + this._buffer = new Array();
|
| + this._length = (0);
|
| + return this;
|
| +}
|
| +StringBufferImpl.prototype.get$clear = function() {
|
| + return this.clear.bind(this);
|
| +}
|
| +StringBufferImpl.prototype.toString = function() {
|
| + if (this._buffer.get$length() == (0)) return "";
|
| + if (this._buffer.get$length() == (1)) return this._buffer.$index((0));
|
| + var result = StringBase.concatAll(this._buffer);
|
| + this._buffer.clear$0();
|
| + this._buffer.add$1(result);
|
| + return result;
|
| +}
|
| +StringBufferImpl.prototype.add$1 = StringBufferImpl.prototype.add;
|
| +StringBufferImpl.prototype.addAll$1 = StringBufferImpl.prototype.addAll;
|
| +StringBufferImpl.prototype.clear$0 = StringBufferImpl.prototype.clear;
|
| +StringBufferImpl.prototype.toString$0 = StringBufferImpl.prototype.toString;
|
| +// ********** Code for StringBase **************
|
| +function StringBase() {}
|
| +StringBase.createFromCharCodes = function(charCodes) {
|
| + if (Object.getPrototypeOf(charCodes) !== Array.prototype) {
|
| + charCodes = new ListFactory.ListFactory$from$factory(charCodes);
|
| + }
|
| + return String.fromCharCode.apply(null, charCodes);
|
| +}
|
| +StringBase.join = function(strings, separator) {
|
| + if (strings.get$length() == (0)) return "";
|
| + var s = strings.$index((0));
|
| + for (var i = (1);
|
| + i < strings.get$length(); i++) {
|
| + s = s + separator + strings.$index(i);
|
| + }
|
| + return s;
|
| +}
|
| +StringBase.concatAll = function(strings) {
|
| + return StringBase.join(strings, "");
|
| +}
|
| +// ********** Code for StringImplementation **************
|
| +StringImplementation = String;
|
| +StringImplementation.prototype.get$length = function() { return this.length; };
|
| +StringImplementation.prototype.endsWith = function(other) {
|
| + 'use strict';
|
| + if (other.length > this.length) return false;
|
| + return other == this.substring(this.length - other.length);
|
| +}
|
| +StringImplementation.prototype.startsWith = function(other) {
|
| + 'use strict';
|
| + if (other.length > this.length) return false;
|
| + return other == this.substring(0, other.length);
|
| +}
|
| +StringImplementation.prototype.isEmpty = function() {
|
| + return this.length == (0);
|
| +}
|
| +StringImplementation.prototype.contains = function(pattern, startIndex) {
|
| + 'use strict'; return this.indexOf(pattern, startIndex) >= 0;
|
| +}
|
| +StringImplementation.prototype._replaceFirst = function(from, to) {
|
| + 'use strict';return this.replace(from, to);
|
| +}
|
| +StringImplementation.prototype._replaceRegExp = function(from, to) {
|
| + 'use strict';return this.replace(from.re, to);
|
| +}
|
| +StringImplementation.prototype.replaceFirst = function(from, to) {
|
| + if ((typeof(from) == 'string')) return this._replaceFirst(from, to);
|
| + if (!!(from && from.is$RegExp())) return this._replaceRegExp(from, to);
|
| + var $$list = from.allMatches(this);
|
| + for (var $$i = $$list.iterator$0(); $$i.hasNext$0(); ) {
|
| + var match = $$i.next$0();
|
| + return this.substring((0), match.start$0()) + to + this.substring(match.end$0());
|
| + }
|
| +}
|
| +StringImplementation.prototype._replaceAll = function(from, to) {
|
| + 'use strict';
|
| + from = new RegExp(from.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), 'g');
|
| + to = to.replace(/\$/g, '$$$$'); // Escape sequences are fun!
|
| + return this.replace(from, to);
|
| +}
|
| +StringImplementation.prototype.replaceAll = function(from, to) {
|
| + if ((typeof(from) == 'string')) return this._replaceAll(from, to);
|
| + if (!!(from && from.is$RegExp())) return this._replaceRegExp(from.get$dynamic().get$_global(), to);
|
| + var buffer = new StringBufferImpl("");
|
| + var lastMatchEnd = (0);
|
| + var $$list = from.allMatches(this);
|
| + for (var $$i = $$list.iterator$0(); $$i.hasNext$0(); ) {
|
| + var match = $$i.next$0();
|
| + buffer.add$1(this.substring(lastMatchEnd, match.start$0()));
|
| + buffer.add$1(to);
|
| + lastMatchEnd = match.end$0();
|
| + }
|
| + buffer.add$1(this.substring(lastMatchEnd));
|
| +}
|
| +StringImplementation.prototype.hashCode = function() {
|
| + 'use strict';
|
| + var hash = 0;
|
| + for (var i = 0; i < this.length; i++) {
|
| + hash = 0x1fffffff & (hash + this.charCodeAt(i));
|
| + hash = 0x1fffffff & (hash + ((0x0007ffff & hash) << 10));
|
| + hash ^= hash >> 6;
|
| + }
|
| +
|
| + hash = 0x1fffffff & (hash + ((0x03ffffff & hash) << 3));
|
| + hash ^= hash >> 11;
|
| + return 0x1fffffff & (hash + ((0x00003fff & hash) << 15));
|
| +}
|
| +StringImplementation.prototype.contains$1 = StringImplementation.prototype.contains;
|
| +StringImplementation.prototype.hashCode$0 = StringImplementation.prototype.hashCode;
|
| +StringImplementation.prototype.toLowerCase$0 = StringImplementation.prototype.toLowerCase;
|
| +// ********** Code for Collections **************
|
| +function Collections() {}
|
| +Collections.forEach = function(iterable, f) {
|
| + for (var $$i = iterable.iterator$0(); $$i.hasNext$0(); ) {
|
| + var e = $$i.next$0();
|
| + f.call$1(e);
|
| + }
|
| +}
|
| +Collections.some = function(iterable, f) {
|
| + for (var $$i = iterable.iterator$0(); $$i.hasNext$0(); ) {
|
| + var e = $$i.next$0();
|
| + if (f.call$1(e)) return true;
|
| + }
|
| + return false;
|
| +}
|
| +Collections.filter = function(source, destination, f) {
|
| + for (var $$i = source.iterator$0(); $$i.hasNext$0(); ) {
|
| + var e = $$i.next$0();
|
| + if (f.call$1(e)) destination.add$1(e);
|
| + }
|
| + return destination;
|
| +}
|
| +// ********** Code for DateImplementation **************
|
| +function DateImplementation() {}
|
| +DateImplementation.now$ctor = function() {
|
| + this.timeZone = new TimeZoneImplementation.local$ctor();
|
| + this.value = DateImplementation._now();
|
| + this._asJs();
|
| +}
|
| +DateImplementation.now$ctor.prototype = DateImplementation.prototype;
|
| +DateImplementation.withTimeZone$ctor = function(years, month, day, hours, minutes, seconds, milliseconds, timeZone) {
|
| + this.timeZone = timeZone;
|
| + this.value = DateImplementation._valueFromDecomposed(years, month, day, hours, minutes, seconds, milliseconds, timeZone.isUtc);
|
| + this._asJs();
|
| +}
|
| +DateImplementation.withTimeZone$ctor.prototype = DateImplementation.prototype;
|
| +DateImplementation.fromEpoch$ctor = function(value, timeZone) {
|
| + this.timeZone = timeZone;
|
| + this.value = value;
|
| +}
|
| +DateImplementation.fromEpoch$ctor.prototype = DateImplementation.prototype;
|
| +DateImplementation.DateImplementation$factory = function(years, month, day, hours, minutes, seconds, milliseconds) {
|
| + return new DateImplementation.withTimeZone$ctor(years, month, day, hours, minutes, seconds, milliseconds, new TimeZoneImplementation.local$ctor());
|
| +}
|
| +DateImplementation.prototype.get$value = function() { return this.value; };
|
| +DateImplementation.prototype.get$timeZone = function() { return this.timeZone; };
|
| +DateImplementation.prototype.$eq = function(other) {
|
| + if (!((other instanceof DateImplementation))) return false;
|
| + return (this.value == other.get$value()) && ($eq(this.timeZone, other.get$timeZone()));
|
| +}
|
| +DateImplementation.prototype.get$year = function() {
|
| + return this.isUtc ? this._asJs().getUTCFullYear() :
|
| + this._asJs().getFullYear();
|
| +}
|
| +DateImplementation.prototype.get$month = function() {
|
| + return this.isUtc ? this._asJs().getMonth() + 1 :
|
| + this._asJs().getMonth() + 1;
|
| +}
|
| +DateImplementation.prototype.get$day = function() {
|
| + return this.isUtc ? this._asJs().getUTCDate() : this._asJs().getDate()
|
| +}
|
| +DateImplementation.prototype.get$hours = function() {
|
| + return this.isUtc ? this._asJs().getUTCHours() : this._asJs().getHours()
|
| +}
|
| +DateImplementation.prototype.get$minutes = function() {
|
| + return this.isUtc ? this._asJs().getUTCMinutes() : this._asJs().getMinutes()
|
| +}
|
| +DateImplementation.prototype.get$seconds = function() {
|
| + return this.isUtc ? this._asJs().getUTCSeconds() : this._asJs().getSeconds()
|
| +}
|
| +DateImplementation.prototype.get$milliseconds = function() {
|
| + return this.isUtc ? this._asJs().getUTCMilliseconds() :
|
| + this._asJs().getMilliseconds();
|
| +}
|
| +DateImplementation.prototype.isUtc = function() {
|
| + return this.timeZone.isUtc;
|
| +}
|
| +DateImplementation.prototype.get$isUtc = function() {
|
| + return this.isUtc.bind(this);
|
| +}
|
| +DateImplementation.prototype.toString = function() {
|
| + function threeDigits(n) {
|
| + if (n >= (100)) return ("" + n);
|
| + if (n > (10)) return ("0" + n);
|
| + return ("00" + n);
|
| + }
|
| + function twoDigits(n) {
|
| + if (n >= (10)) return ("" + n);
|
| + return ("0" + n);
|
| + }
|
| + var m = twoDigits.call$1(this.get$month());
|
| + var d = twoDigits.call$1(this.get$day());
|
| + var h = twoDigits.call$1(this.get$hours());
|
| + var min = twoDigits.call$1(this.get$minutes());
|
| + var sec = twoDigits.call$1(this.get$seconds());
|
| + var ms = threeDigits.call$1(this.get$milliseconds());
|
| + if (this.timeZone.isUtc) {
|
| + return ("" + this.get$year() + "-" + m + "-" + d + " " + h + ":" + min + ":" + sec + "." + ms + "Z");
|
| + }
|
| + else {
|
| + return ("" + this.get$year() + "-" + m + "-" + d + " " + h + ":" + min + ":" + sec + "." + ms);
|
| + }
|
| +}
|
| +DateImplementation.prototype.add = function(duration) {
|
| + return new DateImplementation.fromEpoch$ctor(this.value + duration.inMilliseconds, this.timeZone);
|
| +}
|
| +DateImplementation.prototype.difference = function(other) {
|
| + return new DurationImplementation((0), (0), (0), (0), this.value - other.value);
|
| +}
|
| +DateImplementation._valueFromDecomposed = function(years, month, day, hours, minutes, seconds, milliseconds, isUtc) {
|
| + var jsMonth = month - 1;
|
| + var value = isUtc ?
|
| + Date.UTC(years, jsMonth, day,
|
| + hours, minutes, seconds, milliseconds) :
|
| + new Date(years, jsMonth, day,
|
| + hours, minutes, seconds, milliseconds).valueOf();
|
| + if (isNaN(value)) throw Error("Invalid Date");
|
| + return value;
|
| +}
|
| +DateImplementation._now = function() {
|
| + return new Date().valueOf();
|
| +}
|
| +DateImplementation.prototype._asJs = function() {
|
| + if (!this.date) {
|
| + this.date = new Date(this.value);
|
| + }
|
| + return this.date;
|
| +}
|
| +DateImplementation.prototype.add$1 = DateImplementation.prototype.add;
|
| +DateImplementation.prototype.difference$1 = DateImplementation.prototype.difference;
|
| +DateImplementation.prototype.toString$0 = DateImplementation.prototype.toString;
|
| +// ********** Code for TimeZoneImplementation **************
|
| +function TimeZoneImplementation() {}
|
| +TimeZoneImplementation.utc$ctor = function() {
|
| + this.isUtc = true;
|
| +}
|
| +TimeZoneImplementation.utc$ctor.prototype = TimeZoneImplementation.prototype;
|
| +TimeZoneImplementation.local$ctor = function() {
|
| + this.isUtc = false;
|
| +}
|
| +TimeZoneImplementation.local$ctor.prototype = TimeZoneImplementation.prototype;
|
| +TimeZoneImplementation.prototype.$eq = function(other) {
|
| + if (!((other instanceof TimeZoneImplementation))) return false;
|
| + return $eq(this.isUtc, other.get$isUtc());
|
| +}
|
| +TimeZoneImplementation.prototype.toString = function() {
|
| + if (this.isUtc) return "TimeZone (UTC)";
|
| + return "TimeZone (Local)";
|
| +}
|
| +TimeZoneImplementation.prototype.get$isUtc = function() { return this.isUtc; };
|
| +TimeZoneImplementation.prototype.toString$0 = TimeZoneImplementation.prototype.toString;
|
| +// ********** Code for _Worker **************
|
| +function $dynamic(name) {
|
| + var f = Object.prototype[name];
|
| + if (f && f.methods) return f.methods;
|
| +
|
| + var methods = {};
|
| + if (f) methods.Object = f;
|
| + function $dynamicBind() {
|
| + // Find the target method
|
| + var obj = this;
|
| + var tag = obj.$typeNameOf();
|
| + var method = methods[tag];
|
| + if (!method) {
|
| + var table = $dynamicMetadata;
|
| + for (var i = 0; i < table.length; i++) {
|
| + var entry = table[i];
|
| + if (entry.map.hasOwnProperty(tag)) {
|
| + method = methods[entry.tag];
|
| + if (method) break;
|
| + }
|
| + }
|
| + }
|
| + method = method || methods.Object;
|
| + var proto = Object.getPrototypeOf(obj);
|
| + if (!proto.hasOwnProperty(name)) {
|
| + Object.defineProperty(proto, name,
|
| + { value: method, enumerable: false, writable: true,
|
| + configurable: true });
|
| + }
|
| +
|
| + return method.apply(this, Array.prototype.slice.call(arguments));
|
| + };
|
| + $dynamicBind.methods = methods;
|
| + Object.defineProperty(Object.prototype, name, { value: $dynamicBind,
|
| + enumerable: false, writable: true, configurable: true});
|
| + return methods;
|
| +}
|
| +if (typeof $dynamicMetadata == 'undefined') $dynamicMetadata = [];
|
| +
|
| +function $dynamicSetMetadata(inputTable) {
|
| + // TODO: Deal with light isolates.
|
| + var table = [];
|
| + for (var i = 0; i < inputTable.length; i++) {
|
| + var tag = inputTable[i][0];
|
| + var tags = inputTable[i][1];
|
| + var map = {};
|
| + var tagNames = tags.split('|');
|
| + for (var j = 0; j < tagNames.length; j++) {
|
| + map[tagNames[j]] = true;
|
| + }
|
| + table.push({tag: tag, tags: tags, map: map});
|
| + }
|
| + $dynamicMetadata = table;
|
| +}
|
| +$dynamic("get$id").Worker = function() {
|
| + return this.id;
|
| +}
|
| +$dynamic("postMessage").Worker = function(msg) {
|
| + return this.postMessage(msg);
|
| +}
|
| +$dynamic("postMessage$1").Worker = function($0) {
|
| + return this.postMessage($0);
|
| +};
|
| +// ********** Code for _ArgumentMismatchException **************
|
| +$inherits(_ArgumentMismatchException, ClosureArgumentMismatchException);
|
| +function _ArgumentMismatchException(_message) {
|
| + this._dart_coreimpl_message = _message;
|
| + ClosureArgumentMismatchException.call(this);
|
| +}
|
| +_ArgumentMismatchException.prototype.toString = function() {
|
| + return ("Closure argument mismatch: " + this._dart_coreimpl_message);
|
| +}
|
| +_ArgumentMismatchException.prototype.toString$0 = _ArgumentMismatchException.prototype.toString;
|
| +// ********** Code for _FunctionImplementation **************
|
| +_FunctionImplementation = Function;
|
| +_FunctionImplementation.prototype._genStub = function(argsLength, names) {
|
| + // Fast path #1: if no named arguments and arg count matches
|
| + if (this.length == argsLength && !names) {
|
| + return this;
|
| + }
|
| +
|
| + var paramsNamed = this.$optional ? (this.$optional.length / 2) : 0;
|
| + var paramsBare = this.length - paramsNamed;
|
| + var argsNamed = names ? names.length : 0;
|
| + var argsBare = argsLength - argsNamed;
|
| +
|
| + // Check we got the right number of arguments
|
| + if (argsBare < paramsBare || argsLength > this.length ||
|
| + argsNamed > paramsNamed) {
|
| + return function() {
|
| + $throw(new _ArgumentMismatchException(
|
| + 'Wrong number of arguments to function. Expected ' + paramsBare +
|
| + ' positional arguments and at most ' + paramsNamed +
|
| + ' named arguments, but got ' + argsBare +
|
| + ' positional arguments and ' + argsNamed + ' named arguments.'));
|
| + };
|
| + }
|
| +
|
| + // First, fill in all of the default values
|
| + var p = new Array(paramsBare);
|
| + if (paramsNamed) {
|
| + p = p.concat(this.$optional.slice(paramsNamed));
|
| + }
|
| + // Fill in positional args
|
| + var a = new Array(argsLength);
|
| + for (var i = 0; i < argsBare; i++) {
|
| + p[i] = a[i] = '$' + i;
|
| + }
|
| + // Then overwrite with supplied values for optional args
|
| + var lastParameterIndex;
|
| + var namesInOrder = true;
|
| + for (var i = 0; i < argsNamed; i++) {
|
| + var name = names[i];
|
| + a[i + argsBare] = name;
|
| + var j = this.$optional.indexOf(name);
|
| + if (j < 0 || j >= paramsNamed) {
|
| + return function() {
|
| + $throw(new _ArgumentMismatchException(
|
| + 'Named argument "' + name + '" was not expected by function.' +
|
| + ' Did you forget to mark the function parameter [optional]?'));
|
| + };
|
| + } else if (lastParameterIndex && lastParameterIndex > j) {
|
| + namesInOrder = false;
|
| + }
|
| + p[j + paramsBare] = name;
|
| + lastParameterIndex = j;
|
| + }
|
| +
|
| + if (this.length == argsLength && namesInOrder) {
|
| + // Fast path #2: named arguments, but they're in order and all supplied.
|
| + return this;
|
| + }
|
| +
|
| + // Note: using Function instead of 'eval' to get a clean scope.
|
| + // TODO(jmesserly): evaluate the performance of these stubs.
|
| + var f = 'function(' + a.join(',') + '){return $f(' + p.join(',') + ');}';
|
| + return new Function('$f', 'return ' + f + '').call(null, this);
|
| +
|
| +}
|
| +// ********** Code for top level **************
|
| +function _constList(other) {
|
| + other.__proto__ = ImmutableList.prototype;
|
| + return other;
|
| +}
|
| +function _map(itemsAndKeys) {
|
| + var ret = new LinkedHashMapImplementation();
|
| + for (var i = (0);
|
| + i < itemsAndKeys.get$length(); ) {
|
| + ret.$setindex(itemsAndKeys.$index(i++), itemsAndKeys.$index(i++));
|
| + }
|
| + return ret;
|
| +}
|
| +function _constMap(itemsAndKeys) {
|
| + return new ImmutableMap(itemsAndKeys);
|
| +}
|
| +// ********** Library json **************
|
| +// ********** Code for _JSON **************
|
| +_JSON = JSON;
|
| +// ********** Code for json_JSON **************
|
| +function json_JSON() {}
|
| +json_JSON.parse = function(str) {
|
| + return _JSON.parse(str, (function (_, obj) {
|
| + var keys = _jsKeys(obj);
|
| + if (keys == null) return obj;
|
| + var map = new HashMapImplementation();
|
| + for (var $$i = keys.iterator$0(); $$i.hasNext$0(); ) {
|
| + var key = $$i.next$0();
|
| + map.$setindex(key, _getValue(obj, key));
|
| + }
|
| + return map;
|
| + })
|
| + );
|
| +}
|
| +json_JSON.stringify = function(value) {
|
| + return _JSON.stringify(value, (function (_, obj) {
|
| + if (_directToJson(obj)) return obj;
|
| + if (!!(obj && obj.is$Map_dart_core_String$Dynamic())) {
|
| + var map = obj;
|
| + obj = new Object();
|
| + map.forEach((function (k, v) {
|
| + return _setValue(obj, k, v);
|
| + })
|
| + );
|
| + return obj;
|
| + }
|
| + $throw(new IllegalArgumentException(("cannot convert \"" + value + "\" to JSON")));
|
| + })
|
| + );
|
| +}
|
| +// ********** Code for top level **************
|
| +function _getValue(obj, key) {
|
| + return obj[key]
|
| +}
|
| +function _setValue(obj, key, value) {
|
| + obj[key] = value
|
| +}
|
| +function _directToJson(obj) {
|
| + return typeof obj != 'object' || obj == null || obj instanceof Array
|
| +}
|
| +function _jsKeys(obj) {
|
| + if (obj != null && typeof obj == 'object' && !(obj instanceof Array)) {
|
| + return Object.keys(obj);
|
| + }
|
| + return null;
|
| +}
|
| +// ********** Library dom **************
|
| +// ********** Code for Window **************
|
| +// ********** Code for AbstractWorker **************
|
| +$dynamic("get$dartObjectLocalStorage").AbstractWorker = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").AbstractWorker = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("addEventListener$3").AbstractWorker = function($0, $1, $2) {
|
| + return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2);
|
| +};
|
| +$dynamic("dispatchEvent$1").AbstractWorker = function($0) {
|
| + return this.dispatchEvent($0);
|
| +};
|
| +$dynamic("removeEventListener$3").AbstractWorker = function($0, $1, $2) {
|
| + return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2);
|
| +};
|
| +// ********** Code for ArrayBuffer **************
|
| +$dynamic("get$dartObjectLocalStorage").ArrayBuffer = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").ArrayBuffer = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for ArrayBufferView **************
|
| +$dynamic("get$dartObjectLocalStorage").ArrayBufferView = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").ArrayBufferView = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for dom_Attr **************
|
| +$dynamic("get$name").Attr = function() { return this.name; };
|
| +$dynamic("set$name").Attr = function(value) { return this.name = value; };
|
| +$dynamic("get$value").Attr = function() { return this.value; };
|
| +$dynamic("set$value").Attr = function(value) { return this.value = value; };
|
| +// ********** Code for AudioBuffer **************
|
| +$dynamic("get$length").AudioBuffer = function() { return this.length; };
|
| +$dynamic("set$length").AudioBuffer = function(value) { return this.length = value; };
|
| +$dynamic("get$dartObjectLocalStorage").AudioBuffer = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").AudioBuffer = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for AudioBufferSourceNode **************
|
| +// ********** Code for AudioChannelMerger **************
|
| +// ********** Code for AudioChannelSplitter **************
|
| +// ********** Code for AudioContext **************
|
| +$dynamic("get$dartObjectLocalStorage").AudioContext = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").AudioContext = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for AudioDestinationNode **************
|
| +// ********** Code for AudioGain **************
|
| +// ********** Code for AudioGainNode **************
|
| +// ********** Code for AudioListener **************
|
| +$dynamic("get$dartObjectLocalStorage").AudioListener = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").AudioListener = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for AudioNode **************
|
| +$dynamic("get$dartObjectLocalStorage").AudioNode = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").AudioNode = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for AudioPannerNode **************
|
| +// ********** Code for AudioParam **************
|
| +$dynamic("get$name").AudioParam = function() { return this.name; };
|
| +$dynamic("set$name").AudioParam = function(value) { return this.name = value; };
|
| +$dynamic("get$value").AudioParam = function() { return this.value; };
|
| +$dynamic("set$value").AudioParam = function(value) { return this.value = value; };
|
| +$dynamic("get$dartObjectLocalStorage").AudioParam = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").AudioParam = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for AudioProcessingEvent **************
|
| +// ********** Code for AudioSourceNode **************
|
| +// ********** Code for BarInfo **************
|
| +$dynamic("get$dartObjectLocalStorage").BarInfo = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").BarInfo = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for BeforeLoadEvent **************
|
| +// ********** Code for BiquadFilterNode **************
|
| +$dynamic("get$type").BiquadFilterNode = function() { return this.type; };
|
| +$dynamic("set$type").BiquadFilterNode = function(value) { return this.type = value; };
|
| +// ********** Code for Blob **************
|
| +$dynamic("get$type").Blob = function() { return this.type; };
|
| +$dynamic("set$type").Blob = function(value) { return this.type = value; };
|
| +$dynamic("get$dartObjectLocalStorage").Blob = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").Blob = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for CDATASection **************
|
| +// ********** Code for CSSCharsetRule **************
|
| +// ********** Code for CSSFontFaceRule **************
|
| +$dynamic("get$style").CSSFontFaceRule = function() { return this.style; };
|
| +$dynamic("set$style").CSSFontFaceRule = function(value) { return this.style = value; };
|
| +// ********** Code for CSSImportRule **************
|
| +// ********** Code for CSSMediaRule **************
|
| +// ********** Code for CSSPageRule **************
|
| +$dynamic("get$style").CSSPageRule = function() { return this.style; };
|
| +$dynamic("set$style").CSSPageRule = function(value) { return this.style = value; };
|
| +// ********** Code for CSSPrimitiveValue **************
|
| +// ********** Code for CSSRule **************
|
| +$dynamic("get$type").CSSRule = function() { return this.type; };
|
| +$dynamic("set$type").CSSRule = function(value) { return this.type = value; };
|
| +$dynamic("get$dartObjectLocalStorage").CSSRule = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").CSSRule = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for CSSRuleList **************
|
| +$dynamic("get$length").CSSRuleList = function() { return this.length; };
|
| +$dynamic("set$length").CSSRuleList = function(value) { return this.length = value; };
|
| +$dynamic("get$dartObjectLocalStorage").CSSRuleList = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").CSSRuleList = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("item$1").CSSRuleList = function($0) {
|
| + return this.item($0);
|
| +};
|
| +// ********** Code for CSSStyleDeclaration **************
|
| +$dynamic("get$length").CSSStyleDeclaration = function() { return this.length; };
|
| +$dynamic("set$length").CSSStyleDeclaration = function(value) { return this.length = value; };
|
| +$dynamic("get$dartObjectLocalStorage").CSSStyleDeclaration = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").CSSStyleDeclaration = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("getPropertyValue$1").CSSStyleDeclaration = function($0) {
|
| + return this.getPropertyValue($0);
|
| +};
|
| +$dynamic("item$1").CSSStyleDeclaration = function($0) {
|
| + return this.item($0);
|
| +};
|
| +$dynamic("removeProperty$1").CSSStyleDeclaration = function($0) {
|
| + return this.removeProperty($0);
|
| +};
|
| +$dynamic("setProperty$3").CSSStyleDeclaration = function($0, $1, $2) {
|
| + return this.setProperty($0, $1, $2);
|
| +};
|
| +// ********** Code for CSSStyleRule **************
|
| +$dynamic("get$style").CSSStyleRule = function() { return this.style; };
|
| +$dynamic("set$style").CSSStyleRule = function(value) { return this.style = value; };
|
| +// ********** Code for CSSStyleSheet **************
|
| +// ********** Code for CSSUnknownRule **************
|
| +// ********** Code for CSSValue **************
|
| +$dynamic("get$dartObjectLocalStorage").CSSValue = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").CSSValue = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for CSSValueList **************
|
| +$dynamic("get$length").CSSValueList = function() { return this.length; };
|
| +$dynamic("set$length").CSSValueList = function(value) { return this.length = value; };
|
| +$dynamic("item$1").CSSValueList = function($0) {
|
| + return this.item($0);
|
| +};
|
| +// ********** Code for CanvasGradient **************
|
| +$dynamic("get$dartObjectLocalStorage").CanvasGradient = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").CanvasGradient = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for CanvasPattern **************
|
| +$dynamic("get$dartObjectLocalStorage").CanvasPattern = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").CanvasPattern = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for CanvasPixelArray **************
|
| +$dynamic("get$length").CanvasPixelArray = function() { return this.length; };
|
| +$dynamic("set$length").CanvasPixelArray = function(value) { return this.length = value; };
|
| +$dynamic("get$dartObjectLocalStorage").CanvasPixelArray = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").CanvasPixelArray = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for CanvasRenderingContext **************
|
| +$dynamic("get$dartObjectLocalStorage").CanvasRenderingContext = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").CanvasRenderingContext = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for CanvasRenderingContext2D **************
|
| +$dynamic("get$font").CanvasRenderingContext2D = function() { return this.font; };
|
| +$dynamic("set$font").CanvasRenderingContext2D = function(value) { return this.font = value; };
|
| +$dynamic("get$transform").CanvasRenderingContext2D = function() {
|
| + return this.transform.bind(this);
|
| +}
|
| +$dynamic("measureText$1").CanvasRenderingContext2D = function($0) {
|
| + return this.measureText($0);
|
| +};
|
| +// ********** Code for CharacterData **************
|
| +$dynamic("get$length").CharacterData = function() { return this.length; };
|
| +$dynamic("set$length").CharacterData = function(value) { return this.length = value; };
|
| +// ********** Code for ClientRect **************
|
| +$dynamic("get$height").ClientRect = function() { return this.height; };
|
| +$dynamic("set$height").ClientRect = function(value) { return this.height = value; };
|
| +$dynamic("get$left").ClientRect = function() { return this.left; };
|
| +$dynamic("set$left").ClientRect = function(value) { return this.left = value; };
|
| +$dynamic("get$top").ClientRect = function() { return this.top; };
|
| +$dynamic("set$top").ClientRect = function(value) { return this.top = value; };
|
| +$dynamic("get$width").ClientRect = function() { return this.width; };
|
| +$dynamic("set$width").ClientRect = function(value) { return this.width = value; };
|
| +$dynamic("get$dartObjectLocalStorage").ClientRect = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").ClientRect = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for ClientRectList **************
|
| +$dynamic("get$length").ClientRectList = function() { return this.length; };
|
| +$dynamic("set$length").ClientRectList = function(value) { return this.length = value; };
|
| +$dynamic("get$dartObjectLocalStorage").ClientRectList = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").ClientRectList = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("item$1").ClientRectList = function($0) {
|
| + return this.item($0);
|
| +};
|
| +// ********** Code for Clipboard **************
|
| +$dynamic("get$dartObjectLocalStorage").Clipboard = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").Clipboard = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for CloseEvent **************
|
| +// ********** Code for Comment **************
|
| +// ********** Code for CompositionEvent **************
|
| +// ********** Code for Console **************
|
| +Console = (typeof console == 'undefined' ? {} : console);
|
| +Console.get$time = function() {
|
| + return this.time.bind(this);
|
| +}
|
| +Console.get$timeStamp = function() {
|
| + return this.timeStamp.bind(this);
|
| +}
|
| +Console.get$dartObjectLocalStorage = function() { return this.dartObjectLocalStorage; };
|
| +Console.set$dartObjectLocalStorage = function(value) { return this.dartObjectLocalStorage = value; };
|
| +Console.time$1 = Console.time;
|
| +Console.timeStamp$0 = Console.timeStamp;
|
| +Console.warn$1 = Console.warn;
|
| +// ********** Code for ConvolverNode **************
|
| +// ********** Code for Coordinates **************
|
| +$dynamic("get$dartObjectLocalStorage").Coordinates = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").Coordinates = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for Counter **************
|
| +$dynamic("get$dartObjectLocalStorage").Counter = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").Counter = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for Crypto **************
|
| +$dynamic("get$dartObjectLocalStorage").Crypto = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").Crypto = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for CustomEvent **************
|
| +// ********** Code for DOMApplicationCache **************
|
| +$dynamic("get$status").DOMApplicationCache = function() { return this.status; };
|
| +$dynamic("set$status").DOMApplicationCache = function(value) { return this.status = value; };
|
| +$dynamic("get$dartObjectLocalStorage").DOMApplicationCache = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").DOMApplicationCache = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("addEventListener$3").DOMApplicationCache = function($0, $1, $2) {
|
| + return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2);
|
| +};
|
| +$dynamic("dispatchEvent$1").DOMApplicationCache = function($0) {
|
| + return this.dispatchEvent($0);
|
| +};
|
| +$dynamic("removeEventListener$3").DOMApplicationCache = function($0, $1, $2) {
|
| + return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2);
|
| +};
|
| +$dynamic("swapCache$0").DOMApplicationCache = function() {
|
| + return this.swapCache();
|
| +};
|
| +// ********** Code for DOMException **************
|
| +$dynamic("get$name").DOMException = function() { return this.name; };
|
| +$dynamic("set$name").DOMException = function(value) { return this.name = value; };
|
| +$dynamic("get$dartObjectLocalStorage").DOMException = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").DOMException = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("toString$0").DOMException = function() {
|
| + return this.toString();
|
| +};
|
| +// ********** Code for DOMFileSystem **************
|
| +$dynamic("get$name").DOMFileSystem = function() { return this.name; };
|
| +$dynamic("set$name").DOMFileSystem = function(value) { return this.name = value; };
|
| +$dynamic("get$dartObjectLocalStorage").DOMFileSystem = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").DOMFileSystem = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for DOMFileSystemSync **************
|
| +$dynamic("get$name").DOMFileSystemSync = function() { return this.name; };
|
| +$dynamic("set$name").DOMFileSystemSync = function(value) { return this.name = value; };
|
| +$dynamic("get$dartObjectLocalStorage").DOMFileSystemSync = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").DOMFileSystemSync = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for DOMFormData **************
|
| +$dynamic("get$dartObjectLocalStorage").DOMFormData = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").DOMFormData = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for dom_DOMImplementation **************
|
| +$dynamic("get$dartObjectLocalStorage").DOMImplementation = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").DOMImplementation = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for DOMMimeType **************
|
| +$dynamic("get$type").DOMMimeType = function() { return this.type; };
|
| +$dynamic("set$type").DOMMimeType = function(value) { return this.type = value; };
|
| +$dynamic("get$dartObjectLocalStorage").DOMMimeType = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").DOMMimeType = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for DOMMimeTypeArray **************
|
| +$dynamic("get$length").DOMMimeTypeArray = function() { return this.length; };
|
| +$dynamic("set$length").DOMMimeTypeArray = function(value) { return this.length = value; };
|
| +$dynamic("get$dartObjectLocalStorage").DOMMimeTypeArray = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").DOMMimeTypeArray = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("item$1").DOMMimeTypeArray = function($0) {
|
| + return this.item($0);
|
| +};
|
| +// ********** Code for DOMParser **************
|
| +$dynamic("get$dartObjectLocalStorage").DOMParser = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").DOMParser = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for DOMPlugin **************
|
| +$dynamic("get$length").DOMPlugin = function() { return this.length; };
|
| +$dynamic("set$length").DOMPlugin = function(value) { return this.length = value; };
|
| +$dynamic("get$name").DOMPlugin = function() { return this.name; };
|
| +$dynamic("set$name").DOMPlugin = function(value) { return this.name = value; };
|
| +$dynamic("get$dartObjectLocalStorage").DOMPlugin = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").DOMPlugin = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("item$1").DOMPlugin = function($0) {
|
| + return this.item($0);
|
| +};
|
| +// ********** Code for DOMPluginArray **************
|
| +$dynamic("get$length").DOMPluginArray = function() { return this.length; };
|
| +$dynamic("set$length").DOMPluginArray = function(value) { return this.length = value; };
|
| +$dynamic("get$dartObjectLocalStorage").DOMPluginArray = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").DOMPluginArray = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("item$1").DOMPluginArray = function($0) {
|
| + return this.item($0);
|
| +};
|
| +// ********** Code for DOMSelection **************
|
| +$dynamic("get$type").DOMSelection = function() { return this.type; };
|
| +$dynamic("set$type").DOMSelection = function(value) { return this.type = value; };
|
| +$dynamic("get$dartObjectLocalStorage").DOMSelection = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").DOMSelection = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("toString$0").DOMSelection = function() {
|
| + return this.toString();
|
| +};
|
| +// ********** Code for DOMSettableTokenList **************
|
| +$dynamic("get$value").DOMSettableTokenList = function() { return this.value; };
|
| +$dynamic("set$value").DOMSettableTokenList = function(value) { return this.value = value; };
|
| +// ********** Code for DOMTokenList **************
|
| +$dynamic("get$length").DOMTokenList = function() { return this.length; };
|
| +$dynamic("set$length").DOMTokenList = function(value) { return this.length = value; };
|
| +$dynamic("get$dartObjectLocalStorage").DOMTokenList = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").DOMTokenList = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("add$1").DOMTokenList = function($0) {
|
| + return this.add($0);
|
| +};
|
| +$dynamic("contains$1").DOMTokenList = function($0) {
|
| + return this.contains($0);
|
| +};
|
| +$dynamic("item$1").DOMTokenList = function($0) {
|
| + return this.item($0);
|
| +};
|
| +$dynamic("remove$1").DOMTokenList = function($0) {
|
| + return this.remove($0);
|
| +};
|
| +$dynamic("toString$0").DOMTokenList = function() {
|
| + return this.toString();
|
| +};
|
| +// ********** Code for DOMURL **************
|
| +$dynamic("get$dartObjectLocalStorage").DOMURL = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").DOMURL = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for dom_DOMWindow **************
|
| +$dynamic("get$applicationCache").DOMWindow = function() { return this.applicationCache; };
|
| +$dynamic("set$applicationCache").DOMWindow = function(value) { return this.applicationCache = value; };
|
| +$dynamic("get$console").DOMWindow = function() { return this.console; };
|
| +$dynamic("set$console").DOMWindow = function(value) { return this.console = value; };
|
| +$dynamic("get$history").DOMWindow = function() { return this.history; };
|
| +$dynamic("set$history").DOMWindow = function(value) { return this.history = value; };
|
| +$dynamic("get$length").DOMWindow = function() { return this.length; };
|
| +$dynamic("set$length").DOMWindow = function(value) { return this.length = value; };
|
| +$dynamic("get$location").DOMWindow = function() { return this.location; };
|
| +$dynamic("set$location").DOMWindow = function(value) { return this.location = value; };
|
| +$dynamic("get$name").DOMWindow = function() { return this.name; };
|
| +$dynamic("set$name").DOMWindow = function(value) { return this.name = value; };
|
| +$dynamic("get$navigator").DOMWindow = function() { return this.navigator; };
|
| +$dynamic("set$navigator").DOMWindow = function(value) { return this.navigator = value; };
|
| +$dynamic("get$screen").DOMWindow = function() { return this.screen; };
|
| +$dynamic("set$screen").DOMWindow = function(value) { return this.screen = value; };
|
| +$dynamic("get$status").DOMWindow = function() { return this.status; };
|
| +$dynamic("set$status").DOMWindow = function(value) { return this.status = value; };
|
| +$dynamic("get$top").DOMWindow = function() { return this.top; };
|
| +$dynamic("set$top").DOMWindow = function(value) { return this.top = value; };
|
| +$dynamic("get$blur").DOMWindow = function() {
|
| + return this.blur.bind(this);
|
| +}
|
| +$dynamic("get$focus").DOMWindow = function() {
|
| + return this.focus.bind(this);
|
| +}
|
| +$dynamic("get$open").DOMWindow = function() {
|
| + return this.open.bind(this);
|
| +}
|
| +$dynamic("get$dartObjectLocalStorage").DOMWindow = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").DOMWindow = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("addEventListener$3").DOMWindow = function($0, $1, $2) {
|
| + return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2);
|
| +};
|
| +$dynamic("blur$0").DOMWindow = function() {
|
| + return this.blur();
|
| +};
|
| +$dynamic("clearInterval$1").DOMWindow = function($0) {
|
| + return this.clearInterval($0);
|
| +};
|
| +$dynamic("clearTimeout$1").DOMWindow = function($0) {
|
| + return this.clearTimeout($0);
|
| +};
|
| +$dynamic("dispatchEvent$1").DOMWindow = function($0) {
|
| + return this.dispatchEvent($0);
|
| +};
|
| +$dynamic("focus$0").DOMWindow = function() {
|
| + return this.focus();
|
| +};
|
| +$dynamic("open$2").DOMWindow = function($0, $1) {
|
| + return this.open($0, $1);
|
| +};
|
| +$dynamic("open$3").DOMWindow = function($0, $1, $2) {
|
| + return this.open($0, $1, $2);
|
| +};
|
| +$dynamic("postMessage$2").DOMWindow = function($0, $1) {
|
| + return this.postMessage($0, $1);
|
| +};
|
| +$dynamic("postMessage$3").DOMWindow = function($0, $1, $2) {
|
| + return this.postMessage($0, $1, $2);
|
| +};
|
| +$dynamic("removeEventListener$3").DOMWindow = function($0, $1, $2) {
|
| + return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2);
|
| +};
|
| +$dynamic("setInterval$2").DOMWindow = function($0, $1) {
|
| + return this.setInterval($wrap_call$0(to$call$0($0)), $1);
|
| +};
|
| +$dynamic("setTimeout$2").DOMWindow = function($0, $1) {
|
| + return this.setTimeout($wrap_call$0(to$call$0($0)), $1);
|
| +};
|
| +$dynamic("webkitConvertPointFromNodeToPage$2").DOMWindow = function($0, $1) {
|
| + return this.webkitConvertPointFromNodeToPage($0, $1);
|
| +};
|
| +$dynamic("webkitConvertPointFromPageToNode$2").DOMWindow = function($0, $1) {
|
| + return this.webkitConvertPointFromPageToNode($0, $1);
|
| +};
|
| +$dynamic("webkitRequestAnimationFrame$2").DOMWindow = function($0, $1) {
|
| + return this.webkitRequestAnimationFrame($wrap_call$1(to$call$1($0)), $1);
|
| +};
|
| +// ********** Code for DataTransferItem **************
|
| +$dynamic("get$type").DataTransferItem = function() { return this.type; };
|
| +$dynamic("set$type").DataTransferItem = function(value) { return this.type = value; };
|
| +$dynamic("get$dartObjectLocalStorage").DataTransferItem = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").DataTransferItem = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for DataTransferItemList **************
|
| +$dynamic("get$length").DataTransferItemList = function() { return this.length; };
|
| +$dynamic("set$length").DataTransferItemList = function(value) { return this.length = value; };
|
| +$dynamic("get$clear").DataTransferItemList = function() {
|
| + return this.clear.bind(this);
|
| +}
|
| +$dynamic("get$dartObjectLocalStorage").DataTransferItemList = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").DataTransferItemList = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("add$2").DataTransferItemList = function($0, $1) {
|
| + return this.add($0, $1);
|
| +};
|
| +$dynamic("clear$0").DataTransferItemList = function() {
|
| + return this.clear();
|
| +};
|
| +$dynamic("item$1").DataTransferItemList = function($0) {
|
| + return this.item($0);
|
| +};
|
| +// ********** Code for DataView **************
|
| +// ********** Code for dom_Database **************
|
| +$dynamic("get$dartObjectLocalStorage").Database = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").Database = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for dom_DatabaseSync **************
|
| +$dynamic("get$dartObjectLocalStorage").DatabaseSync = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").DatabaseSync = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for dom_DedicatedWorkerContext **************
|
| +$dynamic("postMessage$1").DedicatedWorkerContext = function($0) {
|
| + return this.postMessage($0);
|
| +};
|
| +$dynamic("postMessage$2").DedicatedWorkerContext = function($0, $1) {
|
| + return this.postMessage($0, $1);
|
| +};
|
| +// ********** Code for DelayNode **************
|
| +// ********** Code for DeviceMotionEvent **************
|
| +// ********** Code for DeviceOrientationEvent **************
|
| +// ********** Code for DirectoryEntry **************
|
| +// ********** Code for DirectoryEntrySync **************
|
| +// ********** Code for DirectoryReader **************
|
| +$dynamic("get$dartObjectLocalStorage").DirectoryReader = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").DirectoryReader = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for DirectoryReaderSync **************
|
| +$dynamic("get$dartObjectLocalStorage").DirectoryReaderSync = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").DirectoryReaderSync = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for Document **************
|
| +$dynamic("get$body").Document = function() { return this.body; };
|
| +$dynamic("set$body").Document = function(value) { return this.body = value; };
|
| +$dynamic("get$documentElement").Document = function() { return this.documentElement; };
|
| +$dynamic("set$documentElement").Document = function(value) { return this.documentElement = value; };
|
| +$dynamic("get$location").Document = function() { return this.location; };
|
| +$dynamic("set$location").Document = function(value) { return this.location = value; };
|
| +$dynamic("get$readyState").Document = function() { return this.readyState; };
|
| +$dynamic("set$readyState").Document = function(value) { return this.readyState = value; };
|
| +$dynamic("get$title").Document = function() { return this.title; };
|
| +$dynamic("set$title").Document = function(value) { return this.title = value; };
|
| +$dynamic("querySelector$1").Document = function($0) {
|
| + return this.querySelector($0);
|
| +};
|
| +$dynamic("querySelectorAll$1").Document = function($0) {
|
| + return this.querySelectorAll($0);
|
| +};
|
| +// ********** Code for DocumentFragment **************
|
| +$dynamic("querySelector$1").DocumentFragment = function($0) {
|
| + return this.querySelector($0);
|
| +};
|
| +$dynamic("querySelectorAll$1").DocumentFragment = function($0) {
|
| + return this.querySelectorAll($0);
|
| +};
|
| +// ********** Code for dom_DocumentType **************
|
| +$dynamic("get$name").DocumentType = function() { return this.name; };
|
| +$dynamic("set$name").DocumentType = function(value) { return this.name = value; };
|
| +// ********** Code for DynamicsCompressorNode **************
|
| +// ********** Code for Element **************
|
| +$dynamic("get$childElementCount").Element = function() { return this.childElementCount; };
|
| +$dynamic("set$childElementCount").Element = function(value) { return this.childElementCount = value; };
|
| +$dynamic("get$firstElementChild").Element = function() { return this.firstElementChild; };
|
| +$dynamic("set$firstElementChild").Element = function(value) { return this.firstElementChild = value; };
|
| +$dynamic("get$lastElementChild").Element = function() { return this.lastElementChild; };
|
| +$dynamic("set$lastElementChild").Element = function(value) { return this.lastElementChild = value; };
|
| +$dynamic("get$nextElementSibling").Element = function() { return this.nextElementSibling; };
|
| +$dynamic("set$nextElementSibling").Element = function(value) { return this.nextElementSibling = value; };
|
| +$dynamic("get$previousElementSibling").Element = function() { return this.previousElementSibling; };
|
| +$dynamic("set$previousElementSibling").Element = function(value) { return this.previousElementSibling = value; };
|
| +$dynamic("get$style").Element = function() { return this.style; };
|
| +$dynamic("set$style").Element = function(value) { return this.style = value; };
|
| +$dynamic("get$blur").Element = function() {
|
| + return this.blur.bind(this);
|
| +}
|
| +$dynamic("get$focus").Element = function() {
|
| + return this.focus.bind(this);
|
| +}
|
| +$dynamic("blur$0").Element = function() {
|
| + return this.blur();
|
| +};
|
| +$dynamic("focus$0").Element = function() {
|
| + return this.focus();
|
| +};
|
| +$dynamic("getAttribute$1").Element = function($0) {
|
| + return this.getAttribute($0);
|
| +};
|
| +$dynamic("hasAttribute$1").Element = function($0) {
|
| + return this.hasAttribute($0);
|
| +};
|
| +$dynamic("querySelector$1").Element = function($0) {
|
| + return this.querySelector($0);
|
| +};
|
| +$dynamic("querySelectorAll$1").Element = function($0) {
|
| + return this.querySelectorAll($0);
|
| +};
|
| +$dynamic("removeAttribute$1").Element = function($0) {
|
| + return this.removeAttribute($0);
|
| +};
|
| +$dynamic("setAttribute$2").Element = function($0, $1) {
|
| + return this.setAttribute($0, $1);
|
| +};
|
| +// ********** Code for ElementTimeControl **************
|
| +$dynamic("get$dartObjectLocalStorage").ElementTimeControl = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").ElementTimeControl = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for dom_ElementTraversal **************
|
| +$dynamic("get$childElementCount").ElementTraversal = function() { return this.childElementCount; };
|
| +$dynamic("set$childElementCount").ElementTraversal = function(value) { return this.childElementCount = value; };
|
| +$dynamic("get$firstElementChild").ElementTraversal = function() { return this.firstElementChild; };
|
| +$dynamic("set$firstElementChild").ElementTraversal = function(value) { return this.firstElementChild = value; };
|
| +$dynamic("get$lastElementChild").ElementTraversal = function() { return this.lastElementChild; };
|
| +$dynamic("set$lastElementChild").ElementTraversal = function(value) { return this.lastElementChild = value; };
|
| +$dynamic("get$nextElementSibling").ElementTraversal = function() { return this.nextElementSibling; };
|
| +$dynamic("set$nextElementSibling").ElementTraversal = function(value) { return this.nextElementSibling = value; };
|
| +$dynamic("get$previousElementSibling").ElementTraversal = function() { return this.previousElementSibling; };
|
| +$dynamic("set$previousElementSibling").ElementTraversal = function(value) { return this.previousElementSibling = value; };
|
| +$dynamic("get$dartObjectLocalStorage").ElementTraversal = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").ElementTraversal = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for Entity **************
|
| +// ********** Code for EntityReference **************
|
| +// ********** Code for Entry **************
|
| +$dynamic("get$name").Entry = function() { return this.name; };
|
| +$dynamic("set$name").Entry = function(value) { return this.name = value; };
|
| +$dynamic("get$dartObjectLocalStorage").Entry = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").Entry = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("remove$1").Entry = function($0) {
|
| + return this.remove($wrap_call$0(to$call$0($0)), $wrap_call$1(to$call$1(null)));
|
| +};
|
| +$dynamic("remove$2").Entry = function($0, $1) {
|
| + return this.remove($wrap_call$0(to$call$0($0)), $wrap_call$1(to$call$1($1)));
|
| +};
|
| +// ********** Code for EntryArray **************
|
| +$dynamic("get$length").EntryArray = function() { return this.length; };
|
| +$dynamic("set$length").EntryArray = function(value) { return this.length = value; };
|
| +$dynamic("get$dartObjectLocalStorage").EntryArray = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").EntryArray = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("item$1").EntryArray = function($0) {
|
| + return this.item($0);
|
| +};
|
| +// ********** Code for EntryArraySync **************
|
| +$dynamic("get$length").EntryArraySync = function() { return this.length; };
|
| +$dynamic("set$length").EntryArraySync = function(value) { return this.length = value; };
|
| +$dynamic("get$dartObjectLocalStorage").EntryArraySync = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").EntryArraySync = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("item$1").EntryArraySync = function($0) {
|
| + return this.item($0);
|
| +};
|
| +// ********** Code for EntrySync **************
|
| +$dynamic("get$name").EntrySync = function() { return this.name; };
|
| +$dynamic("set$name").EntrySync = function(value) { return this.name = value; };
|
| +$dynamic("get$dartObjectLocalStorage").EntrySync = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").EntrySync = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("remove$0").EntrySync = function() {
|
| + return this.remove();
|
| +};
|
| +// ********** Code for ErrorEvent **************
|
| +// ********** Code for Event **************
|
| +$dynamic("get$target").Event = function() { return this.target; };
|
| +$dynamic("set$target").Event = function(value) { return this.target = value; };
|
| +$dynamic("get$timeStamp").Event = function() { return this.timeStamp; };
|
| +$dynamic("set$timeStamp").Event = function(value) { return this.timeStamp = value; };
|
| +$dynamic("get$type").Event = function() { return this.type; };
|
| +$dynamic("set$type").Event = function(value) { return this.type = value; };
|
| +$dynamic("get$dartObjectLocalStorage").Event = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").Event = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("initEvent$3").Event = function($0, $1, $2) {
|
| + return this.initEvent($0, $1, $2);
|
| +};
|
| +$dynamic("preventDefault$0").Event = function() {
|
| + return this.preventDefault();
|
| +};
|
| +$dynamic("stopPropagation$0").Event = function() {
|
| + return this.stopPropagation();
|
| +};
|
| +$dynamic("timeStamp$0").Event = function() {
|
| + return this.timeStamp.call$0();
|
| +};
|
| +// ********** Code for EventException **************
|
| +$dynamic("get$name").EventException = function() { return this.name; };
|
| +$dynamic("set$name").EventException = function(value) { return this.name = value; };
|
| +$dynamic("get$dartObjectLocalStorage").EventException = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").EventException = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("toString$0").EventException = function() {
|
| + return this.toString();
|
| +};
|
| +// ********** Code for EventSource **************
|
| +$dynamic("get$readyState").EventSource = function() { return this.readyState; };
|
| +$dynamic("set$readyState").EventSource = function(value) { return this.readyState = value; };
|
| +$dynamic("get$dartObjectLocalStorage").EventSource = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").EventSource = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("addEventListener$3").EventSource = function($0, $1, $2) {
|
| + return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2);
|
| +};
|
| +$dynamic("dispatchEvent$1").EventSource = function($0) {
|
| + return this.dispatchEvent($0);
|
| +};
|
| +$dynamic("removeEventListener$3").EventSource = function($0, $1, $2) {
|
| + return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2);
|
| +};
|
| +// ********** Code for EventTarget **************
|
| +$dynamic("get$dartObjectLocalStorage").EventTarget = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").EventTarget = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("addEventListener$3").EventTarget = function($0, $1, $2) {
|
| + return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2);
|
| +};
|
| +$dynamic("dispatchEvent$1").EventTarget = function($0) {
|
| + return this.dispatchEvent($0);
|
| +};
|
| +$dynamic("removeEventListener$3").EventTarget = function($0, $1, $2) {
|
| + return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2);
|
| +};
|
| +// ********** Code for File **************
|
| +$dynamic("get$name").File = function() { return this.name; };
|
| +$dynamic("set$name").File = function(value) { return this.name = value; };
|
| +// ********** Code for FileEntry **************
|
| +// ********** Code for FileEntrySync **************
|
| +// ********** Code for FileError **************
|
| +$dynamic("get$dartObjectLocalStorage").FileError = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").FileError = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for FileException **************
|
| +$dynamic("get$name").FileException = function() { return this.name; };
|
| +$dynamic("set$name").FileException = function(value) { return this.name = value; };
|
| +$dynamic("get$dartObjectLocalStorage").FileException = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").FileException = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("toString$0").FileException = function() {
|
| + return this.toString();
|
| +};
|
| +// ********** Code for FileList **************
|
| +$dynamic("get$length").FileList = function() { return this.length; };
|
| +$dynamic("set$length").FileList = function(value) { return this.length = value; };
|
| +$dynamic("get$dartObjectLocalStorage").FileList = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").FileList = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("item$1").FileList = function($0) {
|
| + return this.item($0);
|
| +};
|
| +// ********** Code for FileReader **************
|
| +$dynamic("get$readyState").FileReader = function() { return this.readyState; };
|
| +$dynamic("set$readyState").FileReader = function(value) { return this.readyState = value; };
|
| +$dynamic("get$dartObjectLocalStorage").FileReader = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").FileReader = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("addEventListener$3").FileReader = function($0, $1, $2) {
|
| + return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2);
|
| +};
|
| +$dynamic("dispatchEvent$1").FileReader = function($0) {
|
| + return this.dispatchEvent($0);
|
| +};
|
| +$dynamic("removeEventListener$3").FileReader = function($0, $1, $2) {
|
| + return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2);
|
| +};
|
| +// ********** Code for FileReaderSync **************
|
| +$dynamic("get$dartObjectLocalStorage").FileReaderSync = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").FileReaderSync = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for FileWriter **************
|
| +$dynamic("get$length").FileWriter = function() { return this.length; };
|
| +$dynamic("set$length").FileWriter = function(value) { return this.length = value; };
|
| +$dynamic("get$position").FileWriter = function() { return this.position; };
|
| +$dynamic("set$position").FileWriter = function(value) { return this.position = value; };
|
| +$dynamic("get$readyState").FileWriter = function() { return this.readyState; };
|
| +$dynamic("set$readyState").FileWriter = function(value) { return this.readyState = value; };
|
| +$dynamic("get$dartObjectLocalStorage").FileWriter = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").FileWriter = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for FileWriterSync **************
|
| +$dynamic("get$length").FileWriterSync = function() { return this.length; };
|
| +$dynamic("set$length").FileWriterSync = function(value) { return this.length = value; };
|
| +$dynamic("get$position").FileWriterSync = function() { return this.position; };
|
| +$dynamic("set$position").FileWriterSync = function(value) { return this.position = value; };
|
| +$dynamic("get$dartObjectLocalStorage").FileWriterSync = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").FileWriterSync = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for Float32Array **************
|
| +$dynamic("is$List").Float32Array = function(){return true};
|
| +$dynamic("get$length").Float32Array = function() { return this.length; };
|
| +$dynamic("set$length").Float32Array = function(value) { return this.length = value; };
|
| +// ********** Code for Float64Array **************
|
| +$dynamic("is$List").Float64Array = function(){return true};
|
| +$dynamic("get$length").Float64Array = function() { return this.length; };
|
| +$dynamic("set$length").Float64Array = function(value) { return this.length = value; };
|
| +// ********** Code for Geolocation **************
|
| +$dynamic("get$dartObjectLocalStorage").Geolocation = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").Geolocation = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for Geoposition **************
|
| +$dynamic("get$dartObjectLocalStorage").Geoposition = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").Geoposition = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for HTMLAllCollection **************
|
| +$dynamic("get$length").HTMLAllCollection = function() { return this.length; };
|
| +$dynamic("set$length").HTMLAllCollection = function(value) { return this.length = value; };
|
| +$dynamic("get$dartObjectLocalStorage").HTMLAllCollection = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").HTMLAllCollection = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("item$1").HTMLAllCollection = function($0) {
|
| + return this.item($0);
|
| +};
|
| +// ********** Code for dom_HTMLAnchorElement **************
|
| +$dynamic("get$hash").HTMLAnchorElement = function() { return this.hash; };
|
| +$dynamic("set$hash").HTMLAnchorElement = function(value) { return this.hash = value; };
|
| +$dynamic("get$host").HTMLAnchorElement = function() { return this.host; };
|
| +$dynamic("set$host").HTMLAnchorElement = function(value) { return this.host = value; };
|
| +$dynamic("get$name").HTMLAnchorElement = function() { return this.name; };
|
| +$dynamic("set$name").HTMLAnchorElement = function(value) { return this.name = value; };
|
| +$dynamic("get$protocol").HTMLAnchorElement = function() { return this.protocol; };
|
| +$dynamic("set$protocol").HTMLAnchorElement = function(value) { return this.protocol = value; };
|
| +$dynamic("get$target").HTMLAnchorElement = function() { return this.target; };
|
| +$dynamic("set$target").HTMLAnchorElement = function(value) { return this.target = value; };
|
| +$dynamic("get$text").HTMLAnchorElement = function() { return this.text; };
|
| +$dynamic("set$text").HTMLAnchorElement = function(value) { return this.text = value; };
|
| +$dynamic("get$type").HTMLAnchorElement = function() { return this.type; };
|
| +$dynamic("set$type").HTMLAnchorElement = function(value) { return this.type = value; };
|
| +$dynamic("toString$0").HTMLAnchorElement = function() {
|
| + return this.toString();
|
| +};
|
| +// ********** Code for dom_HTMLAppletElement **************
|
| +$dynamic("get$height").HTMLAppletElement = function() { return this.height; };
|
| +$dynamic("set$height").HTMLAppletElement = function(value) { return this.height = value; };
|
| +$dynamic("get$name").HTMLAppletElement = function() { return this.name; };
|
| +$dynamic("set$name").HTMLAppletElement = function(value) { return this.name = value; };
|
| +$dynamic("get$width").HTMLAppletElement = function() { return this.width; };
|
| +$dynamic("set$width").HTMLAppletElement = function(value) { return this.width = value; };
|
| +// ********** Code for dom_HTMLAreaElement **************
|
| +$dynamic("get$hash").HTMLAreaElement = function() { return this.hash; };
|
| +$dynamic("set$hash").HTMLAreaElement = function(value) { return this.hash = value; };
|
| +$dynamic("get$host").HTMLAreaElement = function() { return this.host; };
|
| +$dynamic("set$host").HTMLAreaElement = function(value) { return this.host = value; };
|
| +$dynamic("get$protocol").HTMLAreaElement = function() { return this.protocol; };
|
| +$dynamic("set$protocol").HTMLAreaElement = function(value) { return this.protocol = value; };
|
| +$dynamic("get$target").HTMLAreaElement = function() { return this.target; };
|
| +$dynamic("set$target").HTMLAreaElement = function(value) { return this.target = value; };
|
| +// ********** Code for dom_HTMLAudioElement **************
|
| +// ********** Code for dom_HTMLBRElement **************
|
| +$dynamic("get$clear").HTMLBRElement = function() { return this.clear; };
|
| +$dynamic("set$clear").HTMLBRElement = function(value) { return this.clear = value; };
|
| +$dynamic("clear$0").HTMLBRElement = function() {
|
| + return this.clear.call$0();
|
| +};
|
| +$dynamic("clear$1").HTMLBRElement = function($0) {
|
| + return this.clear.call$1($0);
|
| +};
|
| +// ********** Code for dom_HTMLBaseElement **************
|
| +$dynamic("get$target").HTMLBaseElement = function() { return this.target; };
|
| +$dynamic("set$target").HTMLBaseElement = function(value) { return this.target = value; };
|
| +// ********** Code for dom_HTMLBaseFontElement **************
|
| +// ********** Code for dom_HTMLBodyElement **************
|
| +$dynamic("get$text").HTMLBodyElement = function() { return this.text; };
|
| +$dynamic("set$text").HTMLBodyElement = function(value) { return this.text = value; };
|
| +// ********** Code for dom_HTMLButtonElement **************
|
| +$dynamic("get$name").HTMLButtonElement = function() { return this.name; };
|
| +$dynamic("set$name").HTMLButtonElement = function(value) { return this.name = value; };
|
| +$dynamic("get$type").HTMLButtonElement = function() { return this.type; };
|
| +$dynamic("set$type").HTMLButtonElement = function(value) { return this.type = value; };
|
| +$dynamic("get$value").HTMLButtonElement = function() { return this.value; };
|
| +$dynamic("set$value").HTMLButtonElement = function(value) { return this.value = value; };
|
| +$dynamic("get$click").HTMLButtonElement = function() {
|
| + return this.click.bind(this);
|
| +}
|
| +$dynamic("click$0").HTMLButtonElement = function() {
|
| + return this.click();
|
| +};
|
| +// ********** Code for dom_HTMLCanvasElement **************
|
| +$dynamic("get$height").HTMLCanvasElement = function() { return this.height; };
|
| +$dynamic("set$height").HTMLCanvasElement = function(value) { return this.height = value; };
|
| +$dynamic("get$width").HTMLCanvasElement = function() { return this.width; };
|
| +$dynamic("set$width").HTMLCanvasElement = function(value) { return this.width = value; };
|
| +$dynamic("getContext$1").HTMLCanvasElement = function($0) {
|
| + return this.getContext($0);
|
| +};
|
| +// ********** Code for dom_HTMLCollection **************
|
| +$dynamic("get$length").HTMLCollection = function() { return this.length; };
|
| +$dynamic("set$length").HTMLCollection = function(value) { return this.length = value; };
|
| +$dynamic("$setindex").HTMLCollection = function(index, value) {
|
| + $throw(new UnsupportedOperationException("Cannot assign element of immutable List."));
|
| +}
|
| +$dynamic("get$dartObjectLocalStorage").HTMLCollection = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").HTMLCollection = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("item$1").HTMLCollection = function($0) {
|
| + if (Object.getPrototypeOf(this).hasOwnProperty("item$1")) {
|
| + return this.item($0);
|
| + }
|
| + return Object.prototype.item$1.call(this, $0);
|
| +};
|
| +// ********** Code for dom_HTMLDListElement **************
|
| +// ********** Code for dom_HTMLDataListElement **************
|
| +// ********** Code for dom_HTMLDetailsElement **************
|
| +$dynamic("get$open").HTMLDetailsElement = function() { return this.open; };
|
| +$dynamic("set$open").HTMLDetailsElement = function(value) { return this.open = value; };
|
| +$dynamic("open$2").HTMLDetailsElement = function($0, $1) {
|
| + return this.open.call$2($0, $1);
|
| +};
|
| +$dynamic("open$3").HTMLDetailsElement = function($0, $1, $2) {
|
| + return this.open($0, $1, $2);
|
| +};
|
| +$dynamic("open$4").HTMLDetailsElement = function($0, $1, $2, $3) {
|
| + return this.open($0, $1, $2, $3);
|
| +};
|
| +$dynamic("open$5").HTMLDetailsElement = function($0, $1, $2, $3, $4) {
|
| + return this.open($0, $1, $2, $3, $4);
|
| +};
|
| +// ********** Code for dom_HTMLDirectoryElement **************
|
| +// ********** Code for dom_HTMLDivElement **************
|
| +// ********** Code for dom_HTMLDocument **************
|
| +$dynamic("get$activeElement").HTMLDocument = function() { return this.activeElement; };
|
| +$dynamic("set$activeElement").HTMLDocument = function(value) { return this.activeElement = value; };
|
| +$dynamic("get$clear").HTMLDocument = function() {
|
| + return this.clear.bind(this);
|
| +}
|
| +$dynamic("get$open").HTMLDocument = function() {
|
| + return this.open.bind(this);
|
| +}
|
| +$dynamic("clear$0").HTMLDocument = function() {
|
| + return this.clear();
|
| +};
|
| +// ********** Code for dom_HTMLElement **************
|
| +$dynamic("get$children").HTMLElement = function() { return this.children; };
|
| +$dynamic("set$children").HTMLElement = function(value) { return this.children = value; };
|
| +$dynamic("get$className").HTMLElement = function() { return this.className; };
|
| +$dynamic("set$className").HTMLElement = function(value) { return this.className = value; };
|
| +$dynamic("get$id").HTMLElement = function() { return this.id; };
|
| +$dynamic("set$id").HTMLElement = function(value) { return this.id = value; };
|
| +$dynamic("get$innerHTML").HTMLElement = function() { return this.innerHTML; };
|
| +$dynamic("set$innerHTML").HTMLElement = function(value) { return this.innerHTML = value; };
|
| +$dynamic("get$tabIndex").HTMLElement = function() { return this.tabIndex; };
|
| +$dynamic("set$tabIndex").HTMLElement = function(value) { return this.tabIndex = value; };
|
| +$dynamic("get$title").HTMLElement = function() { return this.title; };
|
| +$dynamic("set$title").HTMLElement = function(value) { return this.title = value; };
|
| +// ********** Code for dom_HTMLEmbedElement **************
|
| +$dynamic("get$height").HTMLEmbedElement = function() { return this.height; };
|
| +$dynamic("set$height").HTMLEmbedElement = function(value) { return this.height = value; };
|
| +$dynamic("get$name").HTMLEmbedElement = function() { return this.name; };
|
| +$dynamic("set$name").HTMLEmbedElement = function(value) { return this.name = value; };
|
| +$dynamic("get$type").HTMLEmbedElement = function() { return this.type; };
|
| +$dynamic("set$type").HTMLEmbedElement = function(value) { return this.type = value; };
|
| +$dynamic("get$width").HTMLEmbedElement = function() { return this.width; };
|
| +$dynamic("set$width").HTMLEmbedElement = function(value) { return this.width = value; };
|
| +// ********** Code for dom_HTMLFieldSetElement **************
|
| +// ********** Code for dom_HTMLFontElement **************
|
| +// ********** Code for dom_HTMLFormElement **************
|
| +$dynamic("get$elements").HTMLFormElement = function() { return this.elements; };
|
| +$dynamic("set$elements").HTMLFormElement = function(value) { return this.elements = value; };
|
| +$dynamic("get$length").HTMLFormElement = function() { return this.length; };
|
| +$dynamic("set$length").HTMLFormElement = function(value) { return this.length = value; };
|
| +$dynamic("get$name").HTMLFormElement = function() { return this.name; };
|
| +$dynamic("set$name").HTMLFormElement = function(value) { return this.name = value; };
|
| +$dynamic("get$target").HTMLFormElement = function() { return this.target; };
|
| +$dynamic("set$target").HTMLFormElement = function(value) { return this.target = value; };
|
| +// ********** Code for dom_HTMLFrameElement **************
|
| +$dynamic("get$height").HTMLFrameElement = function() { return this.height; };
|
| +$dynamic("set$height").HTMLFrameElement = function(value) { return this.height = value; };
|
| +$dynamic("get$location").HTMLFrameElement = function() { return this.location; };
|
| +$dynamic("set$location").HTMLFrameElement = function(value) { return this.location = value; };
|
| +$dynamic("get$name").HTMLFrameElement = function() { return this.name; };
|
| +$dynamic("set$name").HTMLFrameElement = function(value) { return this.name = value; };
|
| +$dynamic("get$width").HTMLFrameElement = function() { return this.width; };
|
| +$dynamic("set$width").HTMLFrameElement = function(value) { return this.width = value; };
|
| +// ********** Code for dom_HTMLFrameSetElement **************
|
| +// ********** Code for dom_HTMLHRElement **************
|
| +$dynamic("get$width").HTMLHRElement = function() { return this.width; };
|
| +$dynamic("set$width").HTMLHRElement = function(value) { return this.width = value; };
|
| +// ********** Code for dom_HTMLHeadElement **************
|
| +// ********** Code for dom_HTMLHeadingElement **************
|
| +// ********** Code for dom_HTMLHtmlElement **************
|
| +// ********** Code for dom_HTMLIFrameElement **************
|
| +$dynamic("get$height").HTMLIFrameElement = function() { return this.height; };
|
| +$dynamic("set$height").HTMLIFrameElement = function(value) { return this.height = value; };
|
| +$dynamic("get$name").HTMLIFrameElement = function() { return this.name; };
|
| +$dynamic("set$name").HTMLIFrameElement = function(value) { return this.name = value; };
|
| +$dynamic("get$width").HTMLIFrameElement = function() { return this.width; };
|
| +$dynamic("set$width").HTMLIFrameElement = function(value) { return this.width = value; };
|
| +// ********** Code for dom_HTMLImageElement **************
|
| +$dynamic("get$complete").HTMLImageElement = function() { return this.complete; };
|
| +$dynamic("set$complete").HTMLImageElement = function(value) { return this.complete = value; };
|
| +$dynamic("get$height").HTMLImageElement = function() { return this.height; };
|
| +$dynamic("set$height").HTMLImageElement = function(value) { return this.height = value; };
|
| +$dynamic("get$name").HTMLImageElement = function() { return this.name; };
|
| +$dynamic("set$name").HTMLImageElement = function(value) { return this.name = value; };
|
| +$dynamic("get$width").HTMLImageElement = function() { return this.width; };
|
| +$dynamic("set$width").HTMLImageElement = function(value) { return this.width = value; };
|
| +$dynamic("get$x").HTMLImageElement = function() { return this.x; };
|
| +$dynamic("set$x").HTMLImageElement = function(value) { return this.x = value; };
|
| +$dynamic("get$y").HTMLImageElement = function() { return this.y; };
|
| +$dynamic("set$y").HTMLImageElement = function(value) { return this.y = value; };
|
| +$dynamic("complete$1").HTMLImageElement = function($0) {
|
| + return this.complete.call$1($0);
|
| +};
|
| +// ********** Code for dom_HTMLInputElement **************
|
| +$dynamic("get$name").HTMLInputElement = function() { return this.name; };
|
| +$dynamic("set$name").HTMLInputElement = function(value) { return this.name = value; };
|
| +$dynamic("get$type").HTMLInputElement = function() { return this.type; };
|
| +$dynamic("set$type").HTMLInputElement = function(value) { return this.type = value; };
|
| +$dynamic("get$value").HTMLInputElement = function() { return this.value; };
|
| +$dynamic("set$value").HTMLInputElement = function(value) { return this.value = value; };
|
| +$dynamic("get$click").HTMLInputElement = function() {
|
| + return this.click.bind(this);
|
| +}
|
| +$dynamic("click$0").HTMLInputElement = function() {
|
| + return this.click();
|
| +};
|
| +// ********** Code for dom_HTMLIsIndexElement **************
|
| +// ********** Code for dom_HTMLKeygenElement **************
|
| +$dynamic("get$name").HTMLKeygenElement = function() { return this.name; };
|
| +$dynamic("set$name").HTMLKeygenElement = function(value) { return this.name = value; };
|
| +$dynamic("get$type").HTMLKeygenElement = function() { return this.type; };
|
| +$dynamic("set$type").HTMLKeygenElement = function(value) { return this.type = value; };
|
| +// ********** Code for dom_HTMLLIElement **************
|
| +$dynamic("get$type").HTMLLIElement = function() { return this.type; };
|
| +$dynamic("set$type").HTMLLIElement = function(value) { return this.type = value; };
|
| +$dynamic("get$value").HTMLLIElement = function() { return this.value; };
|
| +$dynamic("set$value").HTMLLIElement = function(value) { return this.value = value; };
|
| +// ********** Code for dom_HTMLLabelElement **************
|
| +// ********** Code for dom_HTMLLegendElement **************
|
| +// ********** Code for dom_HTMLLinkElement **************
|
| +$dynamic("get$target").HTMLLinkElement = function() { return this.target; };
|
| +$dynamic("set$target").HTMLLinkElement = function(value) { return this.target = value; };
|
| +$dynamic("get$type").HTMLLinkElement = function() { return this.type; };
|
| +$dynamic("set$type").HTMLLinkElement = function(value) { return this.type = value; };
|
| +// ********** Code for dom_HTMLMapElement **************
|
| +$dynamic("get$name").HTMLMapElement = function() { return this.name; };
|
| +$dynamic("set$name").HTMLMapElement = function(value) { return this.name = value; };
|
| +// ********** Code for dom_HTMLMarqueeElement **************
|
| +$dynamic("get$height").HTMLMarqueeElement = function() { return this.height; };
|
| +$dynamic("set$height").HTMLMarqueeElement = function(value) { return this.height = value; };
|
| +$dynamic("get$width").HTMLMarqueeElement = function() { return this.width; };
|
| +$dynamic("set$width").HTMLMarqueeElement = function(value) { return this.width = value; };
|
| +$dynamic("get$start").HTMLMarqueeElement = function() {
|
| + return this.start.bind(this);
|
| +}
|
| +$dynamic("start$0").HTMLMarqueeElement = function() {
|
| + return this.start();
|
| +};
|
| +// ********** Code for dom_HTMLMediaElement **************
|
| +$dynamic("get$readyState").HTMLMediaElement = function() { return this.readyState; };
|
| +$dynamic("set$readyState").HTMLMediaElement = function(value) { return this.readyState = value; };
|
| +$dynamic("get$load").HTMLMediaElement = function() {
|
| + return this.load.bind(this);
|
| +}
|
| +$dynamic("load$0").HTMLMediaElement = function() {
|
| + return this.load();
|
| +};
|
| +// ********** Code for dom_HTMLMenuElement **************
|
| +// ********** Code for dom_HTMLMetaElement **************
|
| +$dynamic("get$name").HTMLMetaElement = function() { return this.name; };
|
| +$dynamic("set$name").HTMLMetaElement = function(value) { return this.name = value; };
|
| +// ********** Code for dom_HTMLMeterElement **************
|
| +$dynamic("get$value").HTMLMeterElement = function() { return this.value; };
|
| +$dynamic("set$value").HTMLMeterElement = function(value) { return this.value = value; };
|
| +// ********** Code for dom_HTMLModElement **************
|
| +// ********** Code for dom_HTMLOListElement **************
|
| +$dynamic("get$start").HTMLOListElement = function() { return this.start; };
|
| +$dynamic("set$start").HTMLOListElement = function(value) { return this.start = value; };
|
| +$dynamic("get$type").HTMLOListElement = function() { return this.type; };
|
| +$dynamic("set$type").HTMLOListElement = function(value) { return this.type = value; };
|
| +$dynamic("start$0").HTMLOListElement = function() {
|
| + return this.start.call$0();
|
| +};
|
| +// ********** Code for dom_HTMLObjectElement **************
|
| +$dynamic("get$height").HTMLObjectElement = function() { return this.height; };
|
| +$dynamic("set$height").HTMLObjectElement = function(value) { return this.height = value; };
|
| +$dynamic("get$name").HTMLObjectElement = function() { return this.name; };
|
| +$dynamic("set$name").HTMLObjectElement = function(value) { return this.name = value; };
|
| +$dynamic("get$type").HTMLObjectElement = function() { return this.type; };
|
| +$dynamic("set$type").HTMLObjectElement = function(value) { return this.type = value; };
|
| +$dynamic("get$width").HTMLObjectElement = function() { return this.width; };
|
| +$dynamic("set$width").HTMLObjectElement = function(value) { return this.width = value; };
|
| +// ********** Code for dom_HTMLOptGroupElement **************
|
| +// ********** Code for dom_HTMLOptionElement **************
|
| +$dynamic("get$text").HTMLOptionElement = function() { return this.text; };
|
| +$dynamic("set$text").HTMLOptionElement = function(value) { return this.text = value; };
|
| +$dynamic("get$value").HTMLOptionElement = function() { return this.value; };
|
| +$dynamic("set$value").HTMLOptionElement = function(value) { return this.value = value; };
|
| +// ********** Code for dom_HTMLOptionsCollection **************
|
| +$dynamic("get$length").HTMLOptionsCollection = function() { return this.length; };
|
| +$dynamic("set$length").HTMLOptionsCollection = function(value) { return this.length = value; };
|
| +$dynamic("remove$1").HTMLOptionsCollection = function($0) {
|
| + return this.remove($0);
|
| +};
|
| +// ********** Code for dom_HTMLOutputElement **************
|
| +$dynamic("get$name").HTMLOutputElement = function() { return this.name; };
|
| +$dynamic("set$name").HTMLOutputElement = function(value) { return this.name = value; };
|
| +$dynamic("get$type").HTMLOutputElement = function() { return this.type; };
|
| +$dynamic("set$type").HTMLOutputElement = function(value) { return this.type = value; };
|
| +$dynamic("get$value").HTMLOutputElement = function() { return this.value; };
|
| +$dynamic("set$value").HTMLOutputElement = function(value) { return this.value = value; };
|
| +// ********** Code for dom_HTMLParagraphElement **************
|
| +// ********** Code for dom_HTMLParamElement **************
|
| +$dynamic("get$name").HTMLParamElement = function() { return this.name; };
|
| +$dynamic("set$name").HTMLParamElement = function(value) { return this.name = value; };
|
| +$dynamic("get$type").HTMLParamElement = function() { return this.type; };
|
| +$dynamic("set$type").HTMLParamElement = function(value) { return this.type = value; };
|
| +$dynamic("get$value").HTMLParamElement = function() { return this.value; };
|
| +$dynamic("set$value").HTMLParamElement = function(value) { return this.value = value; };
|
| +// ********** Code for dom_HTMLPreElement **************
|
| +$dynamic("get$width").HTMLPreElement = function() { return this.width; };
|
| +$dynamic("set$width").HTMLPreElement = function(value) { return this.width = value; };
|
| +// ********** Code for dom_HTMLProgressElement **************
|
| +$dynamic("get$position").HTMLProgressElement = function() { return this.position; };
|
| +$dynamic("set$position").HTMLProgressElement = function(value) { return this.position = value; };
|
| +$dynamic("get$value").HTMLProgressElement = function() { return this.value; };
|
| +$dynamic("set$value").HTMLProgressElement = function(value) { return this.value = value; };
|
| +// ********** Code for dom_HTMLPropertiesCollection **************
|
| +$dynamic("get$length").HTMLPropertiesCollection = function() { return this.length; };
|
| +$dynamic("set$length").HTMLPropertiesCollection = function(value) { return this.length = value; };
|
| +$dynamic("item$1").HTMLPropertiesCollection = function($0) {
|
| + return this.item($0);
|
| +};
|
| +// ********** Code for dom_HTMLQuoteElement **************
|
| +// ********** Code for dom_HTMLScriptElement **************
|
| +$dynamic("get$text").HTMLScriptElement = function() { return this.text; };
|
| +$dynamic("set$text").HTMLScriptElement = function(value) { return this.text = value; };
|
| +$dynamic("get$type").HTMLScriptElement = function() { return this.type; };
|
| +$dynamic("set$type").HTMLScriptElement = function(value) { return this.type = value; };
|
| +// ********** Code for dom_HTMLSelectElement **************
|
| +$dynamic("get$length").HTMLSelectElement = function() { return this.length; };
|
| +$dynamic("set$length").HTMLSelectElement = function(value) { return this.length = value; };
|
| +$dynamic("get$name").HTMLSelectElement = function() { return this.name; };
|
| +$dynamic("set$name").HTMLSelectElement = function(value) { return this.name = value; };
|
| +$dynamic("get$type").HTMLSelectElement = function() { return this.type; };
|
| +$dynamic("set$type").HTMLSelectElement = function(value) { return this.type = value; };
|
| +$dynamic("get$value").HTMLSelectElement = function() { return this.value; };
|
| +$dynamic("set$value").HTMLSelectElement = function(value) { return this.value = value; };
|
| +$dynamic("add$2").HTMLSelectElement = function($0, $1) {
|
| + return this.add($0, $1);
|
| +};
|
| +$dynamic("item$1").HTMLSelectElement = function($0) {
|
| + return this.item($0);
|
| +};
|
| +$dynamic("remove$1").HTMLSelectElement = function($0) {
|
| + return this.remove($0);
|
| +};
|
| +// ********** Code for dom_HTMLSourceElement **************
|
| +$dynamic("get$type").HTMLSourceElement = function() { return this.type; };
|
| +$dynamic("set$type").HTMLSourceElement = function(value) { return this.type = value; };
|
| +// ********** Code for dom_HTMLSpanElement **************
|
| +// ********** Code for dom_HTMLStyleElement **************
|
| +$dynamic("get$type").HTMLStyleElement = function() { return this.type; };
|
| +$dynamic("set$type").HTMLStyleElement = function(value) { return this.type = value; };
|
| +// ********** Code for dom_HTMLTableCaptionElement **************
|
| +// ********** Code for dom_HTMLTableCellElement **************
|
| +$dynamic("get$height").HTMLTableCellElement = function() { return this.height; };
|
| +$dynamic("set$height").HTMLTableCellElement = function(value) { return this.height = value; };
|
| +$dynamic("get$rowSpan").HTMLTableCellElement = function() { return this.rowSpan; };
|
| +$dynamic("set$rowSpan").HTMLTableCellElement = function(value) { return this.rowSpan = value; };
|
| +$dynamic("get$width").HTMLTableCellElement = function() { return this.width; };
|
| +$dynamic("set$width").HTMLTableCellElement = function(value) { return this.width = value; };
|
| +// ********** Code for dom_HTMLTableColElement **************
|
| +$dynamic("get$width").HTMLTableColElement = function() { return this.width; };
|
| +$dynamic("set$width").HTMLTableColElement = function(value) { return this.width = value; };
|
| +// ********** Code for dom_HTMLTableElement **************
|
| +$dynamic("get$width").HTMLTableElement = function() { return this.width; };
|
| +$dynamic("set$width").HTMLTableElement = function(value) { return this.width = value; };
|
| +// ********** Code for dom_HTMLTableRowElement **************
|
| +// ********** Code for dom_HTMLTableSectionElement **************
|
| +// ********** Code for dom_HTMLTextAreaElement **************
|
| +$dynamic("get$name").HTMLTextAreaElement = function() { return this.name; };
|
| +$dynamic("set$name").HTMLTextAreaElement = function(value) { return this.name = value; };
|
| +$dynamic("get$type").HTMLTextAreaElement = function() { return this.type; };
|
| +$dynamic("set$type").HTMLTextAreaElement = function(value) { return this.type = value; };
|
| +$dynamic("get$value").HTMLTextAreaElement = function() { return this.value; };
|
| +$dynamic("set$value").HTMLTextAreaElement = function(value) { return this.value = value; };
|
| +// ********** Code for dom_HTMLTitleElement **************
|
| +$dynamic("get$text").HTMLTitleElement = function() { return this.text; };
|
| +$dynamic("set$text").HTMLTitleElement = function(value) { return this.text = value; };
|
| +// ********** Code for dom_HTMLTrackElement **************
|
| +$dynamic("get$readyState").HTMLTrackElement = function() { return this.readyState; };
|
| +$dynamic("set$readyState").HTMLTrackElement = function(value) { return this.readyState = value; };
|
| +// ********** Code for dom_HTMLUListElement **************
|
| +$dynamic("get$type").HTMLUListElement = function() { return this.type; };
|
| +$dynamic("set$type").HTMLUListElement = function(value) { return this.type = value; };
|
| +// ********** Code for dom_HTMLUnknownElement **************
|
| +// ********** Code for dom_HTMLVideoElement **************
|
| +$dynamic("get$height").HTMLVideoElement = function() { return this.height; };
|
| +$dynamic("set$height").HTMLVideoElement = function(value) { return this.height = value; };
|
| +$dynamic("get$width").HTMLVideoElement = function() { return this.width; };
|
| +$dynamic("set$width").HTMLVideoElement = function(value) { return this.width = value; };
|
| +// ********** Code for HashChangeEvent **************
|
| +// ********** Code for HighPass2FilterNode **************
|
| +// ********** Code for History **************
|
| +$dynamic("get$length").History = function() { return this.length; };
|
| +$dynamic("set$length").History = function(value) { return this.length = value; };
|
| +$dynamic("get$dartObjectLocalStorage").History = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").History = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("back$0").History = function() {
|
| + return this.back();
|
| +};
|
| +$dynamic("forward$0").History = function() {
|
| + return this.forward();
|
| +};
|
| +$dynamic("pushState$2").History = function($0, $1) {
|
| + return this.pushState($0, $1);
|
| +};
|
| +$dynamic("pushState$3").History = function($0, $1, $2) {
|
| + return this.pushState($0, $1, $2);
|
| +};
|
| +$dynamic("replaceState$2").History = function($0, $1) {
|
| + return this.replaceState($0, $1);
|
| +};
|
| +$dynamic("replaceState$3").History = function($0, $1, $2) {
|
| + return this.replaceState($0, $1, $2);
|
| +};
|
| +// ********** Code for IDBAny **************
|
| +$dynamic("get$dartObjectLocalStorage").IDBAny = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").IDBAny = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for IDBCursor **************
|
| +$dynamic("get$source").IDBCursor = function() { return this.source; };
|
| +$dynamic("set$source").IDBCursor = function(value) { return this.source = value; };
|
| +$dynamic("get$dartObjectLocalStorage").IDBCursor = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").IDBCursor = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for IDBCursorWithValue **************
|
| +$dynamic("get$value").IDBCursorWithValue = function() { return this.value; };
|
| +$dynamic("set$value").IDBCursorWithValue = function(value) { return this.value = value; };
|
| +// ********** Code for IDBDatabase **************
|
| +$dynamic("get$name").IDBDatabase = function() { return this.name; };
|
| +$dynamic("set$name").IDBDatabase = function(value) { return this.name = value; };
|
| +$dynamic("get$dartObjectLocalStorage").IDBDatabase = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").IDBDatabase = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("addEventListener$3").IDBDatabase = function($0, $1, $2) {
|
| + return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2);
|
| +};
|
| +$dynamic("dispatchEvent$1").IDBDatabase = function($0) {
|
| + return this.dispatchEvent($0);
|
| +};
|
| +$dynamic("removeEventListener$3").IDBDatabase = function($0, $1, $2) {
|
| + return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2);
|
| +};
|
| +// ********** Code for IDBDatabaseError **************
|
| +$dynamic("get$dartObjectLocalStorage").IDBDatabaseError = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").IDBDatabaseError = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for IDBDatabaseException **************
|
| +$dynamic("get$name").IDBDatabaseException = function() { return this.name; };
|
| +$dynamic("set$name").IDBDatabaseException = function(value) { return this.name = value; };
|
| +$dynamic("get$dartObjectLocalStorage").IDBDatabaseException = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").IDBDatabaseException = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("toString$0").IDBDatabaseException = function() {
|
| + return this.toString();
|
| +};
|
| +// ********** Code for IDBFactory **************
|
| +$dynamic("get$open").IDBFactory = function() {
|
| + return this.open.bind(this);
|
| +}
|
| +$dynamic("get$dartObjectLocalStorage").IDBFactory = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").IDBFactory = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for IDBIndex **************
|
| +$dynamic("get$name").IDBIndex = function() { return this.name; };
|
| +$dynamic("set$name").IDBIndex = function(value) { return this.name = value; };
|
| +$dynamic("get$dartObjectLocalStorage").IDBIndex = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").IDBIndex = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for IDBKey **************
|
| +$dynamic("get$dartObjectLocalStorage").IDBKey = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").IDBKey = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for IDBKeyRange **************
|
| +$dynamic("get$dartObjectLocalStorage").IDBKeyRange = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").IDBKeyRange = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for IDBObjectStore **************
|
| +$dynamic("get$name").IDBObjectStore = function() { return this.name; };
|
| +$dynamic("set$name").IDBObjectStore = function(value) { return this.name = value; };
|
| +$dynamic("get$clear").IDBObjectStore = function() {
|
| + return this.clear.bind(this);
|
| +}
|
| +$dynamic("get$dartObjectLocalStorage").IDBObjectStore = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").IDBObjectStore = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("add$1").IDBObjectStore = function($0) {
|
| + return this.add($0);
|
| +};
|
| +$dynamic("add$2").IDBObjectStore = function($0, $1) {
|
| + return this.add($0, $1);
|
| +};
|
| +$dynamic("clear$0").IDBObjectStore = function() {
|
| + return this.clear();
|
| +};
|
| +// ********** Code for IDBRequest **************
|
| +$dynamic("get$readyState").IDBRequest = function() { return this.readyState; };
|
| +$dynamic("set$readyState").IDBRequest = function(value) { return this.readyState = value; };
|
| +$dynamic("get$source").IDBRequest = function() { return this.source; };
|
| +$dynamic("set$source").IDBRequest = function(value) { return this.source = value; };
|
| +$dynamic("get$dartObjectLocalStorage").IDBRequest = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").IDBRequest = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("addEventListener$3").IDBRequest = function($0, $1, $2) {
|
| + return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2);
|
| +};
|
| +$dynamic("dispatchEvent$1").IDBRequest = function($0) {
|
| + return this.dispatchEvent($0);
|
| +};
|
| +$dynamic("removeEventListener$3").IDBRequest = function($0, $1, $2) {
|
| + return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2);
|
| +};
|
| +// ********** Code for IDBTransaction **************
|
| +$dynamic("get$dartObjectLocalStorage").IDBTransaction = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").IDBTransaction = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("addEventListener$3").IDBTransaction = function($0, $1, $2) {
|
| + return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2);
|
| +};
|
| +$dynamic("dispatchEvent$1").IDBTransaction = function($0) {
|
| + return this.dispatchEvent($0);
|
| +};
|
| +$dynamic("removeEventListener$3").IDBTransaction = function($0, $1, $2) {
|
| + return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2);
|
| +};
|
| +// ********** Code for IDBVersionChangeEvent **************
|
| +// ********** Code for IDBVersionChangeRequest **************
|
| +// ********** Code for ImageData **************
|
| +$dynamic("get$height").ImageData = function() { return this.height; };
|
| +$dynamic("set$height").ImageData = function(value) { return this.height = value; };
|
| +$dynamic("get$width").ImageData = function() { return this.width; };
|
| +$dynamic("set$width").ImageData = function(value) { return this.width = value; };
|
| +$dynamic("get$dartObjectLocalStorage").ImageData = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").ImageData = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for dom_InjectedScriptHost **************
|
| +$dynamic("get$type").InjectedScriptHost = function() {
|
| + return this.type.bind(this);
|
| +}
|
| +$dynamic("get$dartObjectLocalStorage").InjectedScriptHost = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").InjectedScriptHost = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for dom_InspectorFrontendHost **************
|
| +$dynamic("get$dartObjectLocalStorage").InspectorFrontendHost = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").InspectorFrontendHost = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for Int16Array **************
|
| +$dynamic("is$List").Int16Array = function(){return true};
|
| +$dynamic("get$length").Int16Array = function() { return this.length; };
|
| +$dynamic("set$length").Int16Array = function(value) { return this.length = value; };
|
| +// ********** Code for Int32Array **************
|
| +$dynamic("is$List").Int32Array = function(){return true};
|
| +$dynamic("get$length").Int32Array = function() { return this.length; };
|
| +$dynamic("set$length").Int32Array = function(value) { return this.length = value; };
|
| +// ********** Code for Int8Array **************
|
| +$dynamic("is$List").Int8Array = function(){return true};
|
| +$dynamic("get$length").Int8Array = function() { return this.length; };
|
| +$dynamic("set$length").Int8Array = function(value) { return this.length = value; };
|
| +// ********** Code for JavaScriptAudioNode **************
|
| +// ********** Code for dom_JavaScriptCallFrame **************
|
| +$dynamic("get$column").JavaScriptCallFrame = function() { return this.column; };
|
| +$dynamic("set$column").JavaScriptCallFrame = function(value) { return this.column = value; };
|
| +$dynamic("get$type").JavaScriptCallFrame = function() { return this.type; };
|
| +$dynamic("set$type").JavaScriptCallFrame = function(value) { return this.type = value; };
|
| +$dynamic("get$dartObjectLocalStorage").JavaScriptCallFrame = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").JavaScriptCallFrame = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for KeyboardEvent **************
|
| +// ********** Code for Location **************
|
| +$dynamic("get$hash").Location = function() { return this.hash; };
|
| +$dynamic("set$hash").Location = function(value) { return this.hash = value; };
|
| +$dynamic("get$host").Location = function() { return this.host; };
|
| +$dynamic("set$host").Location = function(value) { return this.host = value; };
|
| +$dynamic("get$protocol").Location = function() { return this.protocol; };
|
| +$dynamic("set$protocol").Location = function(value) { return this.protocol = value; };
|
| +$dynamic("get$dartObjectLocalStorage").Location = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").Location = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("reload$0").Location = function() {
|
| + return this.reload();
|
| +};
|
| +$dynamic("toString$0").Location = function() {
|
| + return this.toString();
|
| +};
|
| +// ********** Code for LowPass2FilterNode **************
|
| +// ********** Code for dom_MediaController **************
|
| +$dynamic("get$dartObjectLocalStorage").MediaController = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").MediaController = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("addEventListener$3").MediaController = function($0, $1, $2) {
|
| + return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2);
|
| +};
|
| +$dynamic("dispatchEvent$1").MediaController = function($0) {
|
| + return this.dispatchEvent($0);
|
| +};
|
| +$dynamic("removeEventListener$3").MediaController = function($0, $1, $2) {
|
| + return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2);
|
| +};
|
| +// ********** Code for MediaElementAudioSourceNode **************
|
| +// ********** Code for MediaError **************
|
| +$dynamic("get$dartObjectLocalStorage").MediaError = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").MediaError = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for MediaList **************
|
| +$dynamic("get$length").MediaList = function() { return this.length; };
|
| +$dynamic("set$length").MediaList = function(value) { return this.length = value; };
|
| +$dynamic("$setindex").MediaList = function(index, value) {
|
| + $throw(new UnsupportedOperationException("Cannot assign element of immutable List."));
|
| +}
|
| +$dynamic("get$dartObjectLocalStorage").MediaList = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").MediaList = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("item$1").MediaList = function($0) {
|
| + return this.item($0);
|
| +};
|
| +// ********** Code for MediaQueryList **************
|
| +$dynamic("get$dartObjectLocalStorage").MediaQueryList = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").MediaQueryList = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for MediaQueryListListener **************
|
| +$dynamic("get$dartObjectLocalStorage").MediaQueryListListener = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").MediaQueryListListener = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for dom_MemoryInfo **************
|
| +$dynamic("get$dartObjectLocalStorage").MemoryInfo = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").MemoryInfo = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for MessageChannel **************
|
| +$dynamic("get$dartObjectLocalStorage").MessageChannel = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").MessageChannel = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for MessageEvent **************
|
| +$dynamic("get$source").MessageEvent = function() { return this.source; };
|
| +$dynamic("set$source").MessageEvent = function(value) { return this.source = value; };
|
| +// ********** Code for MessagePort **************
|
| +$dynamic("get$start").MessagePort = function() {
|
| + return this.start.bind(this);
|
| +}
|
| +$dynamic("get$dartObjectLocalStorage").MessagePort = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").MessagePort = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("addEventListener$3").MessagePort = function($0, $1, $2) {
|
| + return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2);
|
| +};
|
| +$dynamic("dispatchEvent$1").MessagePort = function($0) {
|
| + return this.dispatchEvent($0);
|
| +};
|
| +$dynamic("postMessage$1").MessagePort = function($0) {
|
| + return this.postMessage($0);
|
| +};
|
| +$dynamic("postMessage$2").MessagePort = function($0, $1) {
|
| + return this.postMessage($0, $1);
|
| +};
|
| +$dynamic("removeEventListener$3").MessagePort = function($0, $1, $2) {
|
| + return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2);
|
| +};
|
| +$dynamic("start$0").MessagePort = function() {
|
| + return this.start();
|
| +};
|
| +// ********** Code for Metadata **************
|
| +$dynamic("get$dartObjectLocalStorage").Metadata = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").Metadata = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for MouseEvent **************
|
| +$dynamic("get$clientX").MouseEvent = function() { return this.clientX; };
|
| +$dynamic("set$clientX").MouseEvent = function(value) { return this.clientX = value; };
|
| +$dynamic("get$clientY").MouseEvent = function() { return this.clientY; };
|
| +$dynamic("set$clientY").MouseEvent = function(value) { return this.clientY = value; };
|
| +$dynamic("get$x").MouseEvent = function() { return this.x; };
|
| +$dynamic("set$x").MouseEvent = function(value) { return this.x = value; };
|
| +$dynamic("get$y").MouseEvent = function() { return this.y; };
|
| +$dynamic("set$y").MouseEvent = function(value) { return this.y = value; };
|
| +// ********** Code for MutationCallback **************
|
| +$dynamic("get$dartObjectLocalStorage").MutationCallback = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").MutationCallback = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for MutationEvent **************
|
| +// ********** Code for MutationRecord **************
|
| +$dynamic("get$target").MutationRecord = function() { return this.target; };
|
| +$dynamic("set$target").MutationRecord = function(value) { return this.target = value; };
|
| +$dynamic("get$type").MutationRecord = function() { return this.type; };
|
| +$dynamic("set$type").MutationRecord = function(value) { return this.type = value; };
|
| +$dynamic("get$dartObjectLocalStorage").MutationRecord = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").MutationRecord = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for dom_NamedNodeMap **************
|
| +$dynamic("get$length").NamedNodeMap = function() { return this.length; };
|
| +$dynamic("set$length").NamedNodeMap = function(value) { return this.length = value; };
|
| +$dynamic("$setindex").NamedNodeMap = function(index, value) {
|
| + $throw(new UnsupportedOperationException("Cannot assign element of immutable List."));
|
| +}
|
| +$dynamic("get$dartObjectLocalStorage").NamedNodeMap = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").NamedNodeMap = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("item$1").NamedNodeMap = function($0) {
|
| + return this.item($0);
|
| +};
|
| +// ********** Code for Navigator **************
|
| +$dynamic("get$userAgent").Navigator = function() { return this.userAgent; };
|
| +$dynamic("set$userAgent").Navigator = function(value) { return this.userAgent = value; };
|
| +$dynamic("get$dartObjectLocalStorage").Navigator = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").Navigator = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for Node **************
|
| +$dynamic("get$attributes").Node = function() { return this.attributes; };
|
| +$dynamic("set$attributes").Node = function(value) { return this.attributes = value; };
|
| +$dynamic("get$childNodes").Node = function() { return this.childNodes; };
|
| +$dynamic("set$childNodes").Node = function(value) { return this.childNodes = value; };
|
| +$dynamic("get$firstChild").Node = function() { return this.firstChild; };
|
| +$dynamic("set$firstChild").Node = function(value) { return this.firstChild = value; };
|
| +$dynamic("get$lastChild").Node = function() { return this.lastChild; };
|
| +$dynamic("set$lastChild").Node = function(value) { return this.lastChild = value; };
|
| +$dynamic("get$ownerDocument").Node = function() { return this.ownerDocument; };
|
| +$dynamic("set$ownerDocument").Node = function(value) { return this.ownerDocument = value; };
|
| +$dynamic("get$parentNode").Node = function() { return this.parentNode; };
|
| +$dynamic("set$parentNode").Node = function(value) { return this.parentNode = value; };
|
| +$dynamic("get$textContent").Node = function() { return this.textContent; };
|
| +$dynamic("set$textContent").Node = function(value) { return this.textContent = value; };
|
| +$dynamic("get$dartObjectLocalStorage").Node = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").Node = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("addEventListener$3").Node = function($0, $1, $2) {
|
| + return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2);
|
| +};
|
| +$dynamic("appendChild$1").Node = function($0) {
|
| + return this.appendChild($0);
|
| +};
|
| +$dynamic("contains$1").Node = function($0) {
|
| + return this.contains($0);
|
| +};
|
| +$dynamic("dispatchEvent$1").Node = function($0) {
|
| + return this.dispatchEvent($0);
|
| +};
|
| +$dynamic("hasChildNodes$0").Node = function() {
|
| + return this.hasChildNodes();
|
| +};
|
| +$dynamic("removeChild$1").Node = function($0) {
|
| + return this.removeChild($0);
|
| +};
|
| +$dynamic("removeEventListener$3").Node = function($0, $1, $2) {
|
| + return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2);
|
| +};
|
| +$dynamic("replaceChild$2").Node = function($0, $1) {
|
| + return this.replaceChild($0, $1);
|
| +};
|
| +// ********** Code for dom_NodeFilter **************
|
| +$dynamic("get$dartObjectLocalStorage").NodeFilter = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").NodeFilter = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for dom_NodeIterator **************
|
| +$dynamic("get$dartObjectLocalStorage").NodeIterator = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").NodeIterator = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("filter$1").NodeIterator = function($0) {
|
| + return this.filter.call$1($0);
|
| +};
|
| +// ********** Code for NodeList **************
|
| +$dynamic("get$length").NodeList = function() { return this.length; };
|
| +$dynamic("set$length").NodeList = function(value) { return this.length = value; };
|
| +$dynamic("$setindex").NodeList = function(index, value) {
|
| + $throw(new UnsupportedOperationException("Cannot assign element of immutable List."));
|
| +}
|
| +$dynamic("get$dartObjectLocalStorage").NodeList = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").NodeList = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("item$1").NodeList = function($0) {
|
| + return this.item($0);
|
| +};
|
| +// ********** Code for dom_NodeSelector **************
|
| +$dynamic("get$dartObjectLocalStorage").NodeSelector = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").NodeSelector = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("querySelector$1").NodeSelector = function($0) {
|
| + return this.querySelector($0);
|
| +};
|
| +$dynamic("querySelectorAll$1").NodeSelector = function($0) {
|
| + return this.querySelectorAll($0);
|
| +};
|
| +// ********** Code for Notation **************
|
| +// ********** Code for Notification **************
|
| +$dynamic("get$dartObjectLocalStorage").Notification = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").Notification = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("addEventListener$3").Notification = function($0, $1, $2) {
|
| + return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2);
|
| +};
|
| +$dynamic("dispatchEvent$1").Notification = function($0) {
|
| + return this.dispatchEvent($0);
|
| +};
|
| +$dynamic("removeEventListener$3").Notification = function($0, $1, $2) {
|
| + return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2);
|
| +};
|
| +// ********** Code for NotificationCenter **************
|
| +$dynamic("get$dartObjectLocalStorage").NotificationCenter = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").NotificationCenter = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for OESStandardDerivatives **************
|
| +$dynamic("get$dartObjectLocalStorage").OESStandardDerivatives = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").OESStandardDerivatives = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for OESTextureFloat **************
|
| +$dynamic("get$dartObjectLocalStorage").OESTextureFloat = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").OESTextureFloat = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for OESVertexArrayObject **************
|
| +$dynamic("get$dartObjectLocalStorage").OESVertexArrayObject = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").OESVertexArrayObject = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for OfflineAudioCompletionEvent **************
|
| +// ********** Code for OperationNotAllowedException **************
|
| +$dynamic("get$name").OperationNotAllowedException = function() { return this.name; };
|
| +$dynamic("set$name").OperationNotAllowedException = function(value) { return this.name = value; };
|
| +$dynamic("get$dartObjectLocalStorage").OperationNotAllowedException = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").OperationNotAllowedException = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("toString$0").OperationNotAllowedException = function() {
|
| + return this.toString();
|
| +};
|
| +// ********** Code for OverflowEvent **************
|
| +// ********** Code for PageTransitionEvent **************
|
| +// ********** Code for dom_Performance **************
|
| +$dynamic("get$dartObjectLocalStorage").Performance = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").Performance = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for dom_PerformanceNavigation **************
|
| +$dynamic("get$type").PerformanceNavigation = function() { return this.type; };
|
| +$dynamic("set$type").PerformanceNavigation = function(value) { return this.type = value; };
|
| +$dynamic("get$dartObjectLocalStorage").PerformanceNavigation = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").PerformanceNavigation = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for dom_PerformanceTiming **************
|
| +$dynamic("get$dartObjectLocalStorage").PerformanceTiming = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").PerformanceTiming = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for dom_PointerLock **************
|
| +$dynamic("get$dartObjectLocalStorage").PointerLock = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").PointerLock = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for PopStateEvent **************
|
| +// ********** Code for PositionError **************
|
| +$dynamic("get$dartObjectLocalStorage").PositionError = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").PositionError = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for ProcessingInstruction **************
|
| +$dynamic("get$target").ProcessingInstruction = function() { return this.target; };
|
| +$dynamic("set$target").ProcessingInstruction = function(value) { return this.target = value; };
|
| +// ********** Code for ProgressEvent **************
|
| +// ********** Code for RGBColor **************
|
| +$dynamic("get$dartObjectLocalStorage").RGBColor = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").RGBColor = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for Range **************
|
| +$dynamic("get$dartObjectLocalStorage").Range = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").Range = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("toString$0").Range = function() {
|
| + return this.toString();
|
| +};
|
| +// ********** Code for RangeException **************
|
| +$dynamic("get$name").RangeException = function() { return this.name; };
|
| +$dynamic("set$name").RangeException = function(value) { return this.name = value; };
|
| +$dynamic("get$dartObjectLocalStorage").RangeException = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").RangeException = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("toString$0").RangeException = function() {
|
| + return this.toString();
|
| +};
|
| +// ********** Code for RealtimeAnalyserNode **************
|
| +// ********** Code for Rect **************
|
| +$dynamic("get$left").Rect = function() { return this.left; };
|
| +$dynamic("set$left").Rect = function(value) { return this.left = value; };
|
| +$dynamic("get$top").Rect = function() { return this.top; };
|
| +$dynamic("set$top").Rect = function(value) { return this.top = value; };
|
| +$dynamic("get$dartObjectLocalStorage").Rect = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").Rect = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for dom_SQLError **************
|
| +$dynamic("get$dartObjectLocalStorage").SQLError = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").SQLError = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for dom_SQLException **************
|
| +$dynamic("get$dartObjectLocalStorage").SQLException = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").SQLException = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for dom_SQLResultSet **************
|
| +$dynamic("get$dartObjectLocalStorage").SQLResultSet = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").SQLResultSet = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for dom_SQLResultSetRowList **************
|
| +$dynamic("get$length").SQLResultSetRowList = function() { return this.length; };
|
| +$dynamic("set$length").SQLResultSetRowList = function(value) { return this.length = value; };
|
| +$dynamic("get$dartObjectLocalStorage").SQLResultSetRowList = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").SQLResultSetRowList = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("item$1").SQLResultSetRowList = function($0) {
|
| + return this.item($0);
|
| +};
|
| +// ********** Code for dom_SQLTransaction **************
|
| +$dynamic("get$dartObjectLocalStorage").SQLTransaction = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").SQLTransaction = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for dom_SQLTransactionSync **************
|
| +$dynamic("get$dartObjectLocalStorage").SQLTransactionSync = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").SQLTransactionSync = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for SVGAElement **************
|
| +$dynamic("get$target").SVGAElement = function() { return this.target; };
|
| +$dynamic("set$target").SVGAElement = function(value) { return this.target = value; };
|
| +$dynamic("get$className").SVGAElement = function() { return this.className; };
|
| +$dynamic("set$className").SVGAElement = function(value) { return this.className = value; };
|
| +$dynamic("get$style").SVGAElement = function() { return this.style; };
|
| +$dynamic("set$style").SVGAElement = function(value) { return this.style = value; };
|
| +$dynamic("get$transform").SVGAElement = function() { return this.transform; };
|
| +$dynamic("set$transform").SVGAElement = function(value) { return this.transform = value; };
|
| +// ********** Code for SVGAltGlyphDefElement **************
|
| +// ********** Code for SVGAltGlyphElement **************
|
| +// ********** Code for SVGAltGlyphItemElement **************
|
| +// ********** Code for SVGAngle **************
|
| +$dynamic("get$value").SVGAngle = function() { return this.value; };
|
| +$dynamic("set$value").SVGAngle = function(value) { return this.value = value; };
|
| +$dynamic("get$dartObjectLocalStorage").SVGAngle = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").SVGAngle = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for SVGAnimateColorElement **************
|
| +// ********** Code for SVGAnimateElement **************
|
| +// ********** Code for SVGAnimateMotionElement **************
|
| +// ********** Code for SVGAnimateTransformElement **************
|
| +// ********** Code for SVGAnimatedAngle **************
|
| +$dynamic("get$baseVal").SVGAnimatedAngle = function() { return this.baseVal; };
|
| +$dynamic("set$baseVal").SVGAnimatedAngle = function(value) { return this.baseVal = value; };
|
| +$dynamic("get$dartObjectLocalStorage").SVGAnimatedAngle = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").SVGAnimatedAngle = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for SVGAnimatedBoolean **************
|
| +$dynamic("get$baseVal").SVGAnimatedBoolean = function() { return this.baseVal; };
|
| +$dynamic("set$baseVal").SVGAnimatedBoolean = function(value) { return this.baseVal = value; };
|
| +$dynamic("get$dartObjectLocalStorage").SVGAnimatedBoolean = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").SVGAnimatedBoolean = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for SVGAnimatedEnumeration **************
|
| +$dynamic("get$baseVal").SVGAnimatedEnumeration = function() { return this.baseVal; };
|
| +$dynamic("set$baseVal").SVGAnimatedEnumeration = function(value) { return this.baseVal = value; };
|
| +$dynamic("get$dartObjectLocalStorage").SVGAnimatedEnumeration = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").SVGAnimatedEnumeration = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for SVGAnimatedInteger **************
|
| +$dynamic("get$baseVal").SVGAnimatedInteger = function() { return this.baseVal; };
|
| +$dynamic("set$baseVal").SVGAnimatedInteger = function(value) { return this.baseVal = value; };
|
| +$dynamic("get$dartObjectLocalStorage").SVGAnimatedInteger = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").SVGAnimatedInteger = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for SVGAnimatedLength **************
|
| +$dynamic("get$baseVal").SVGAnimatedLength = function() { return this.baseVal; };
|
| +$dynamic("set$baseVal").SVGAnimatedLength = function(value) { return this.baseVal = value; };
|
| +$dynamic("get$dartObjectLocalStorage").SVGAnimatedLength = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").SVGAnimatedLength = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for SVGAnimatedLengthList **************
|
| +$dynamic("get$baseVal").SVGAnimatedLengthList = function() { return this.baseVal; };
|
| +$dynamic("set$baseVal").SVGAnimatedLengthList = function(value) { return this.baseVal = value; };
|
| +$dynamic("get$dartObjectLocalStorage").SVGAnimatedLengthList = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").SVGAnimatedLengthList = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for SVGAnimatedNumber **************
|
| +$dynamic("get$baseVal").SVGAnimatedNumber = function() { return this.baseVal; };
|
| +$dynamic("set$baseVal").SVGAnimatedNumber = function(value) { return this.baseVal = value; };
|
| +$dynamic("get$dartObjectLocalStorage").SVGAnimatedNumber = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").SVGAnimatedNumber = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for SVGAnimatedNumberList **************
|
| +$dynamic("get$baseVal").SVGAnimatedNumberList = function() { return this.baseVal; };
|
| +$dynamic("set$baseVal").SVGAnimatedNumberList = function(value) { return this.baseVal = value; };
|
| +$dynamic("get$dartObjectLocalStorage").SVGAnimatedNumberList = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").SVGAnimatedNumberList = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for SVGAnimatedPreserveAspectRatio **************
|
| +$dynamic("get$baseVal").SVGAnimatedPreserveAspectRatio = function() { return this.baseVal; };
|
| +$dynamic("set$baseVal").SVGAnimatedPreserveAspectRatio = function(value) { return this.baseVal = value; };
|
| +$dynamic("get$dartObjectLocalStorage").SVGAnimatedPreserveAspectRatio = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").SVGAnimatedPreserveAspectRatio = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for SVGAnimatedRect **************
|
| +$dynamic("get$baseVal").SVGAnimatedRect = function() { return this.baseVal; };
|
| +$dynamic("set$baseVal").SVGAnimatedRect = function(value) { return this.baseVal = value; };
|
| +$dynamic("get$dartObjectLocalStorage").SVGAnimatedRect = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").SVGAnimatedRect = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for SVGAnimatedString **************
|
| +$dynamic("get$baseVal").SVGAnimatedString = function() { return this.baseVal; };
|
| +$dynamic("set$baseVal").SVGAnimatedString = function(value) { return this.baseVal = value; };
|
| +$dynamic("get$dartObjectLocalStorage").SVGAnimatedString = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").SVGAnimatedString = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for SVGAnimatedTransformList **************
|
| +$dynamic("get$baseVal").SVGAnimatedTransformList = function() { return this.baseVal; };
|
| +$dynamic("set$baseVal").SVGAnimatedTransformList = function(value) { return this.baseVal = value; };
|
| +$dynamic("get$dartObjectLocalStorage").SVGAnimatedTransformList = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").SVGAnimatedTransformList = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for SVGAnimationElement **************
|
| +// ********** Code for SVGCircleElement **************
|
| +$dynamic("get$className").SVGCircleElement = function() { return this.className; };
|
| +$dynamic("set$className").SVGCircleElement = function(value) { return this.className = value; };
|
| +$dynamic("get$style").SVGCircleElement = function() { return this.style; };
|
| +$dynamic("set$style").SVGCircleElement = function(value) { return this.style = value; };
|
| +$dynamic("get$transform").SVGCircleElement = function() { return this.transform; };
|
| +$dynamic("set$transform").SVGCircleElement = function(value) { return this.transform = value; };
|
| +// ********** Code for SVGClipPathElement **************
|
| +$dynamic("get$className").SVGClipPathElement = function() { return this.className; };
|
| +$dynamic("set$className").SVGClipPathElement = function(value) { return this.className = value; };
|
| +$dynamic("get$style").SVGClipPathElement = function() { return this.style; };
|
| +$dynamic("set$style").SVGClipPathElement = function(value) { return this.style = value; };
|
| +$dynamic("get$transform").SVGClipPathElement = function() { return this.transform; };
|
| +$dynamic("set$transform").SVGClipPathElement = function(value) { return this.transform = value; };
|
| +// ********** Code for SVGColor **************
|
| +// ********** Code for SVGComponentTransferFunctionElement **************
|
| +$dynamic("get$offset").SVGComponentTransferFunctionElement = function() { return this.offset; };
|
| +$dynamic("set$offset").SVGComponentTransferFunctionElement = function(value) { return this.offset = value; };
|
| +$dynamic("get$type").SVGComponentTransferFunctionElement = function() { return this.type; };
|
| +$dynamic("set$type").SVGComponentTransferFunctionElement = function(value) { return this.type = value; };
|
| +// ********** Code for SVGCursorElement **************
|
| +$dynamic("get$x").SVGCursorElement = function() { return this.x; };
|
| +$dynamic("set$x").SVGCursorElement = function(value) { return this.x = value; };
|
| +$dynamic("get$y").SVGCursorElement = function() { return this.y; };
|
| +$dynamic("set$y").SVGCursorElement = function(value) { return this.y = value; };
|
| +// ********** Code for SVGDefsElement **************
|
| +$dynamic("get$className").SVGDefsElement = function() { return this.className; };
|
| +$dynamic("set$className").SVGDefsElement = function(value) { return this.className = value; };
|
| +$dynamic("get$style").SVGDefsElement = function() { return this.style; };
|
| +$dynamic("set$style").SVGDefsElement = function(value) { return this.style = value; };
|
| +$dynamic("get$transform").SVGDefsElement = function() { return this.transform; };
|
| +$dynamic("set$transform").SVGDefsElement = function(value) { return this.transform = value; };
|
| +// ********** Code for SVGDescElement **************
|
| +$dynamic("get$className").SVGDescElement = function() { return this.className; };
|
| +$dynamic("set$className").SVGDescElement = function(value) { return this.className = value; };
|
| +$dynamic("get$style").SVGDescElement = function() { return this.style; };
|
| +$dynamic("set$style").SVGDescElement = function(value) { return this.style = value; };
|
| +// ********** Code for SVGDocument **************
|
| +// ********** Code for SVGElement **************
|
| +$dynamic("get$id").SVGElement = function() { return this.id; };
|
| +$dynamic("set$id").SVGElement = function(value) { return this.id = value; };
|
| +// ********** Code for SVGElementInstance **************
|
| +$dynamic("get$childNodes").SVGElementInstance = function() { return this.childNodes; };
|
| +$dynamic("set$childNodes").SVGElementInstance = function(value) { return this.childNodes = value; };
|
| +$dynamic("get$firstChild").SVGElementInstance = function() { return this.firstChild; };
|
| +$dynamic("set$firstChild").SVGElementInstance = function(value) { return this.firstChild = value; };
|
| +$dynamic("get$lastChild").SVGElementInstance = function() { return this.lastChild; };
|
| +$dynamic("set$lastChild").SVGElementInstance = function(value) { return this.lastChild = value; };
|
| +$dynamic("get$parentNode").SVGElementInstance = function() { return this.parentNode; };
|
| +$dynamic("set$parentNode").SVGElementInstance = function(value) { return this.parentNode = value; };
|
| +$dynamic("get$dartObjectLocalStorage").SVGElementInstance = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").SVGElementInstance = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("addEventListener$3").SVGElementInstance = function($0, $1, $2) {
|
| + return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2);
|
| +};
|
| +$dynamic("dispatchEvent$1").SVGElementInstance = function($0) {
|
| + return this.dispatchEvent($0);
|
| +};
|
| +$dynamic("removeEventListener$3").SVGElementInstance = function($0, $1, $2) {
|
| + return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2);
|
| +};
|
| +// ********** Code for SVGElementInstanceList **************
|
| +$dynamic("get$length").SVGElementInstanceList = function() { return this.length; };
|
| +$dynamic("set$length").SVGElementInstanceList = function(value) { return this.length = value; };
|
| +$dynamic("get$dartObjectLocalStorage").SVGElementInstanceList = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").SVGElementInstanceList = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("item$1").SVGElementInstanceList = function($0) {
|
| + return this.item($0);
|
| +};
|
| +// ********** Code for SVGEllipseElement **************
|
| +$dynamic("get$className").SVGEllipseElement = function() { return this.className; };
|
| +$dynamic("set$className").SVGEllipseElement = function(value) { return this.className = value; };
|
| +$dynamic("get$style").SVGEllipseElement = function() { return this.style; };
|
| +$dynamic("set$style").SVGEllipseElement = function(value) { return this.style = value; };
|
| +$dynamic("get$transform").SVGEllipseElement = function() { return this.transform; };
|
| +$dynamic("set$transform").SVGEllipseElement = function(value) { return this.transform = value; };
|
| +// ********** Code for SVGException **************
|
| +$dynamic("get$name").SVGException = function() { return this.name; };
|
| +$dynamic("set$name").SVGException = function(value) { return this.name = value; };
|
| +$dynamic("get$dartObjectLocalStorage").SVGException = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").SVGException = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("toString$0").SVGException = function() {
|
| + return this.toString();
|
| +};
|
| +// ********** Code for SVGExternalResourcesRequired **************
|
| +$dynamic("get$dartObjectLocalStorage").SVGExternalResourcesRequired = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").SVGExternalResourcesRequired = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for SVGFEBlendElement **************
|
| +$dynamic("get$height").SVGFEBlendElement = function() { return this.height; };
|
| +$dynamic("set$height").SVGFEBlendElement = function(value) { return this.height = value; };
|
| +$dynamic("get$width").SVGFEBlendElement = function() { return this.width; };
|
| +$dynamic("set$width").SVGFEBlendElement = function(value) { return this.width = value; };
|
| +$dynamic("get$x").SVGFEBlendElement = function() { return this.x; };
|
| +$dynamic("set$x").SVGFEBlendElement = function(value) { return this.x = value; };
|
| +$dynamic("get$y").SVGFEBlendElement = function() { return this.y; };
|
| +$dynamic("set$y").SVGFEBlendElement = function(value) { return this.y = value; };
|
| +$dynamic("get$className").SVGFEBlendElement = function() { return this.className; };
|
| +$dynamic("set$className").SVGFEBlendElement = function(value) { return this.className = value; };
|
| +$dynamic("get$style").SVGFEBlendElement = function() { return this.style; };
|
| +$dynamic("set$style").SVGFEBlendElement = function(value) { return this.style = value; };
|
| +// ********** Code for SVGFEColorMatrixElement **************
|
| +$dynamic("get$type").SVGFEColorMatrixElement = function() { return this.type; };
|
| +$dynamic("set$type").SVGFEColorMatrixElement = function(value) { return this.type = value; };
|
| +$dynamic("get$height").SVGFEColorMatrixElement = function() { return this.height; };
|
| +$dynamic("set$height").SVGFEColorMatrixElement = function(value) { return this.height = value; };
|
| +$dynamic("get$width").SVGFEColorMatrixElement = function() { return this.width; };
|
| +$dynamic("set$width").SVGFEColorMatrixElement = function(value) { return this.width = value; };
|
| +$dynamic("get$x").SVGFEColorMatrixElement = function() { return this.x; };
|
| +$dynamic("set$x").SVGFEColorMatrixElement = function(value) { return this.x = value; };
|
| +$dynamic("get$y").SVGFEColorMatrixElement = function() { return this.y; };
|
| +$dynamic("set$y").SVGFEColorMatrixElement = function(value) { return this.y = value; };
|
| +$dynamic("get$className").SVGFEColorMatrixElement = function() { return this.className; };
|
| +$dynamic("set$className").SVGFEColorMatrixElement = function(value) { return this.className = value; };
|
| +$dynamic("get$style").SVGFEColorMatrixElement = function() { return this.style; };
|
| +$dynamic("set$style").SVGFEColorMatrixElement = function(value) { return this.style = value; };
|
| +// ********** Code for SVGFEComponentTransferElement **************
|
| +$dynamic("get$height").SVGFEComponentTransferElement = function() { return this.height; };
|
| +$dynamic("set$height").SVGFEComponentTransferElement = function(value) { return this.height = value; };
|
| +$dynamic("get$width").SVGFEComponentTransferElement = function() { return this.width; };
|
| +$dynamic("set$width").SVGFEComponentTransferElement = function(value) { return this.width = value; };
|
| +$dynamic("get$x").SVGFEComponentTransferElement = function() { return this.x; };
|
| +$dynamic("set$x").SVGFEComponentTransferElement = function(value) { return this.x = value; };
|
| +$dynamic("get$y").SVGFEComponentTransferElement = function() { return this.y; };
|
| +$dynamic("set$y").SVGFEComponentTransferElement = function(value) { return this.y = value; };
|
| +$dynamic("get$className").SVGFEComponentTransferElement = function() { return this.className; };
|
| +$dynamic("set$className").SVGFEComponentTransferElement = function(value) { return this.className = value; };
|
| +$dynamic("get$style").SVGFEComponentTransferElement = function() { return this.style; };
|
| +$dynamic("set$style").SVGFEComponentTransferElement = function(value) { return this.style = value; };
|
| +// ********** Code for dom_SVGFECompositeElement **************
|
| +$dynamic("get$height").SVGFECompositeElement = function() { return this.height; };
|
| +$dynamic("set$height").SVGFECompositeElement = function(value) { return this.height = value; };
|
| +$dynamic("get$width").SVGFECompositeElement = function() { return this.width; };
|
| +$dynamic("set$width").SVGFECompositeElement = function(value) { return this.width = value; };
|
| +$dynamic("get$x").SVGFECompositeElement = function() { return this.x; };
|
| +$dynamic("set$x").SVGFECompositeElement = function(value) { return this.x = value; };
|
| +$dynamic("get$y").SVGFECompositeElement = function() { return this.y; };
|
| +$dynamic("set$y").SVGFECompositeElement = function(value) { return this.y = value; };
|
| +$dynamic("get$className").SVGFECompositeElement = function() { return this.className; };
|
| +$dynamic("set$className").SVGFECompositeElement = function(value) { return this.className = value; };
|
| +$dynamic("get$style").SVGFECompositeElement = function() { return this.style; };
|
| +$dynamic("set$style").SVGFECompositeElement = function(value) { return this.style = value; };
|
| +// ********** Code for SVGFEConvolveMatrixElement **************
|
| +$dynamic("get$height").SVGFEConvolveMatrixElement = function() { return this.height; };
|
| +$dynamic("set$height").SVGFEConvolveMatrixElement = function(value) { return this.height = value; };
|
| +$dynamic("get$width").SVGFEConvolveMatrixElement = function() { return this.width; };
|
| +$dynamic("set$width").SVGFEConvolveMatrixElement = function(value) { return this.width = value; };
|
| +$dynamic("get$x").SVGFEConvolveMatrixElement = function() { return this.x; };
|
| +$dynamic("set$x").SVGFEConvolveMatrixElement = function(value) { return this.x = value; };
|
| +$dynamic("get$y").SVGFEConvolveMatrixElement = function() { return this.y; };
|
| +$dynamic("set$y").SVGFEConvolveMatrixElement = function(value) { return this.y = value; };
|
| +$dynamic("get$className").SVGFEConvolveMatrixElement = function() { return this.className; };
|
| +$dynamic("set$className").SVGFEConvolveMatrixElement = function(value) { return this.className = value; };
|
| +$dynamic("get$style").SVGFEConvolveMatrixElement = function() { return this.style; };
|
| +$dynamic("set$style").SVGFEConvolveMatrixElement = function(value) { return this.style = value; };
|
| +// ********** Code for SVGFEDiffuseLightingElement **************
|
| +$dynamic("get$height").SVGFEDiffuseLightingElement = function() { return this.height; };
|
| +$dynamic("set$height").SVGFEDiffuseLightingElement = function(value) { return this.height = value; };
|
| +$dynamic("get$width").SVGFEDiffuseLightingElement = function() { return this.width; };
|
| +$dynamic("set$width").SVGFEDiffuseLightingElement = function(value) { return this.width = value; };
|
| +$dynamic("get$x").SVGFEDiffuseLightingElement = function() { return this.x; };
|
| +$dynamic("set$x").SVGFEDiffuseLightingElement = function(value) { return this.x = value; };
|
| +$dynamic("get$y").SVGFEDiffuseLightingElement = function() { return this.y; };
|
| +$dynamic("set$y").SVGFEDiffuseLightingElement = function(value) { return this.y = value; };
|
| +$dynamic("get$className").SVGFEDiffuseLightingElement = function() { return this.className; };
|
| +$dynamic("set$className").SVGFEDiffuseLightingElement = function(value) { return this.className = value; };
|
| +$dynamic("get$style").SVGFEDiffuseLightingElement = function() { return this.style; };
|
| +$dynamic("set$style").SVGFEDiffuseLightingElement = function(value) { return this.style = value; };
|
| +// ********** Code for SVGFEDisplacementMapElement **************
|
| +$dynamic("get$height").SVGFEDisplacementMapElement = function() { return this.height; };
|
| +$dynamic("set$height").SVGFEDisplacementMapElement = function(value) { return this.height = value; };
|
| +$dynamic("get$width").SVGFEDisplacementMapElement = function() { return this.width; };
|
| +$dynamic("set$width").SVGFEDisplacementMapElement = function(value) { return this.width = value; };
|
| +$dynamic("get$x").SVGFEDisplacementMapElement = function() { return this.x; };
|
| +$dynamic("set$x").SVGFEDisplacementMapElement = function(value) { return this.x = value; };
|
| +$dynamic("get$y").SVGFEDisplacementMapElement = function() { return this.y; };
|
| +$dynamic("set$y").SVGFEDisplacementMapElement = function(value) { return this.y = value; };
|
| +$dynamic("get$className").SVGFEDisplacementMapElement = function() { return this.className; };
|
| +$dynamic("set$className").SVGFEDisplacementMapElement = function(value) { return this.className = value; };
|
| +$dynamic("get$style").SVGFEDisplacementMapElement = function() { return this.style; };
|
| +$dynamic("set$style").SVGFEDisplacementMapElement = function(value) { return this.style = value; };
|
| +// ********** Code for SVGFEDistantLightElement **************
|
| +// ********** Code for SVGFEDropShadowElement **************
|
| +$dynamic("get$height").SVGFEDropShadowElement = function() { return this.height; };
|
| +$dynamic("set$height").SVGFEDropShadowElement = function(value) { return this.height = value; };
|
| +$dynamic("get$width").SVGFEDropShadowElement = function() { return this.width; };
|
| +$dynamic("set$width").SVGFEDropShadowElement = function(value) { return this.width = value; };
|
| +$dynamic("get$x").SVGFEDropShadowElement = function() { return this.x; };
|
| +$dynamic("set$x").SVGFEDropShadowElement = function(value) { return this.x = value; };
|
| +$dynamic("get$y").SVGFEDropShadowElement = function() { return this.y; };
|
| +$dynamic("set$y").SVGFEDropShadowElement = function(value) { return this.y = value; };
|
| +$dynamic("get$className").SVGFEDropShadowElement = function() { return this.className; };
|
| +$dynamic("set$className").SVGFEDropShadowElement = function(value) { return this.className = value; };
|
| +$dynamic("get$style").SVGFEDropShadowElement = function() { return this.style; };
|
| +$dynamic("set$style").SVGFEDropShadowElement = function(value) { return this.style = value; };
|
| +// ********** Code for SVGFEFloodElement **************
|
| +$dynamic("get$height").SVGFEFloodElement = function() { return this.height; };
|
| +$dynamic("set$height").SVGFEFloodElement = function(value) { return this.height = value; };
|
| +$dynamic("get$width").SVGFEFloodElement = function() { return this.width; };
|
| +$dynamic("set$width").SVGFEFloodElement = function(value) { return this.width = value; };
|
| +$dynamic("get$x").SVGFEFloodElement = function() { return this.x; };
|
| +$dynamic("set$x").SVGFEFloodElement = function(value) { return this.x = value; };
|
| +$dynamic("get$y").SVGFEFloodElement = function() { return this.y; };
|
| +$dynamic("set$y").SVGFEFloodElement = function(value) { return this.y = value; };
|
| +$dynamic("get$className").SVGFEFloodElement = function() { return this.className; };
|
| +$dynamic("set$className").SVGFEFloodElement = function(value) { return this.className = value; };
|
| +$dynamic("get$style").SVGFEFloodElement = function() { return this.style; };
|
| +$dynamic("set$style").SVGFEFloodElement = function(value) { return this.style = value; };
|
| +// ********** Code for SVGFEFuncAElement **************
|
| +// ********** Code for SVGFEFuncBElement **************
|
| +// ********** Code for SVGFEFuncGElement **************
|
| +// ********** Code for SVGFEFuncRElement **************
|
| +// ********** Code for SVGFEGaussianBlurElement **************
|
| +$dynamic("get$height").SVGFEGaussianBlurElement = function() { return this.height; };
|
| +$dynamic("set$height").SVGFEGaussianBlurElement = function(value) { return this.height = value; };
|
| +$dynamic("get$width").SVGFEGaussianBlurElement = function() { return this.width; };
|
| +$dynamic("set$width").SVGFEGaussianBlurElement = function(value) { return this.width = value; };
|
| +$dynamic("get$x").SVGFEGaussianBlurElement = function() { return this.x; };
|
| +$dynamic("set$x").SVGFEGaussianBlurElement = function(value) { return this.x = value; };
|
| +$dynamic("get$y").SVGFEGaussianBlurElement = function() { return this.y; };
|
| +$dynamic("set$y").SVGFEGaussianBlurElement = function(value) { return this.y = value; };
|
| +$dynamic("get$className").SVGFEGaussianBlurElement = function() { return this.className; };
|
| +$dynamic("set$className").SVGFEGaussianBlurElement = function(value) { return this.className = value; };
|
| +$dynamic("get$style").SVGFEGaussianBlurElement = function() { return this.style; };
|
| +$dynamic("set$style").SVGFEGaussianBlurElement = function(value) { return this.style = value; };
|
| +// ********** Code for SVGFEImageElement **************
|
| +$dynamic("get$height").SVGFEImageElement = function() { return this.height; };
|
| +$dynamic("set$height").SVGFEImageElement = function(value) { return this.height = value; };
|
| +$dynamic("get$width").SVGFEImageElement = function() { return this.width; };
|
| +$dynamic("set$width").SVGFEImageElement = function(value) { return this.width = value; };
|
| +$dynamic("get$x").SVGFEImageElement = function() { return this.x; };
|
| +$dynamic("set$x").SVGFEImageElement = function(value) { return this.x = value; };
|
| +$dynamic("get$y").SVGFEImageElement = function() { return this.y; };
|
| +$dynamic("set$y").SVGFEImageElement = function(value) { return this.y = value; };
|
| +$dynamic("get$className").SVGFEImageElement = function() { return this.className; };
|
| +$dynamic("set$className").SVGFEImageElement = function(value) { return this.className = value; };
|
| +$dynamic("get$style").SVGFEImageElement = function() { return this.style; };
|
| +$dynamic("set$style").SVGFEImageElement = function(value) { return this.style = value; };
|
| +// ********** Code for SVGFEMergeElement **************
|
| +$dynamic("get$height").SVGFEMergeElement = function() { return this.height; };
|
| +$dynamic("set$height").SVGFEMergeElement = function(value) { return this.height = value; };
|
| +$dynamic("get$width").SVGFEMergeElement = function() { return this.width; };
|
| +$dynamic("set$width").SVGFEMergeElement = function(value) { return this.width = value; };
|
| +$dynamic("get$x").SVGFEMergeElement = function() { return this.x; };
|
| +$dynamic("set$x").SVGFEMergeElement = function(value) { return this.x = value; };
|
| +$dynamic("get$y").SVGFEMergeElement = function() { return this.y; };
|
| +$dynamic("set$y").SVGFEMergeElement = function(value) { return this.y = value; };
|
| +$dynamic("get$className").SVGFEMergeElement = function() { return this.className; };
|
| +$dynamic("set$className").SVGFEMergeElement = function(value) { return this.className = value; };
|
| +$dynamic("get$style").SVGFEMergeElement = function() { return this.style; };
|
| +$dynamic("set$style").SVGFEMergeElement = function(value) { return this.style = value; };
|
| +// ********** Code for SVGFEMergeNodeElement **************
|
| +// ********** Code for dom_SVGFEMorphologyElement **************
|
| +$dynamic("get$height").SVGFEMorphologyElement = function() { return this.height; };
|
| +$dynamic("set$height").SVGFEMorphologyElement = function(value) { return this.height = value; };
|
| +$dynamic("get$width").SVGFEMorphologyElement = function() { return this.width; };
|
| +$dynamic("set$width").SVGFEMorphologyElement = function(value) { return this.width = value; };
|
| +$dynamic("get$x").SVGFEMorphologyElement = function() { return this.x; };
|
| +$dynamic("set$x").SVGFEMorphologyElement = function(value) { return this.x = value; };
|
| +$dynamic("get$y").SVGFEMorphologyElement = function() { return this.y; };
|
| +$dynamic("set$y").SVGFEMorphologyElement = function(value) { return this.y = value; };
|
| +$dynamic("get$className").SVGFEMorphologyElement = function() { return this.className; };
|
| +$dynamic("set$className").SVGFEMorphologyElement = function(value) { return this.className = value; };
|
| +$dynamic("get$style").SVGFEMorphologyElement = function() { return this.style; };
|
| +$dynamic("set$style").SVGFEMorphologyElement = function(value) { return this.style = value; };
|
| +// ********** Code for SVGFEOffsetElement **************
|
| +$dynamic("get$height").SVGFEOffsetElement = function() { return this.height; };
|
| +$dynamic("set$height").SVGFEOffsetElement = function(value) { return this.height = value; };
|
| +$dynamic("get$width").SVGFEOffsetElement = function() { return this.width; };
|
| +$dynamic("set$width").SVGFEOffsetElement = function(value) { return this.width = value; };
|
| +$dynamic("get$x").SVGFEOffsetElement = function() { return this.x; };
|
| +$dynamic("set$x").SVGFEOffsetElement = function(value) { return this.x = value; };
|
| +$dynamic("get$y").SVGFEOffsetElement = function() { return this.y; };
|
| +$dynamic("set$y").SVGFEOffsetElement = function(value) { return this.y = value; };
|
| +$dynamic("get$className").SVGFEOffsetElement = function() { return this.className; };
|
| +$dynamic("set$className").SVGFEOffsetElement = function(value) { return this.className = value; };
|
| +$dynamic("get$style").SVGFEOffsetElement = function() { return this.style; };
|
| +$dynamic("set$style").SVGFEOffsetElement = function(value) { return this.style = value; };
|
| +// ********** Code for SVGFEPointLightElement **************
|
| +$dynamic("get$x").SVGFEPointLightElement = function() { return this.x; };
|
| +$dynamic("set$x").SVGFEPointLightElement = function(value) { return this.x = value; };
|
| +$dynamic("get$y").SVGFEPointLightElement = function() { return this.y; };
|
| +$dynamic("set$y").SVGFEPointLightElement = function(value) { return this.y = value; };
|
| +// ********** Code for SVGFESpecularLightingElement **************
|
| +$dynamic("get$height").SVGFESpecularLightingElement = function() { return this.height; };
|
| +$dynamic("set$height").SVGFESpecularLightingElement = function(value) { return this.height = value; };
|
| +$dynamic("get$width").SVGFESpecularLightingElement = function() { return this.width; };
|
| +$dynamic("set$width").SVGFESpecularLightingElement = function(value) { return this.width = value; };
|
| +$dynamic("get$x").SVGFESpecularLightingElement = function() { return this.x; };
|
| +$dynamic("set$x").SVGFESpecularLightingElement = function(value) { return this.x = value; };
|
| +$dynamic("get$y").SVGFESpecularLightingElement = function() { return this.y; };
|
| +$dynamic("set$y").SVGFESpecularLightingElement = function(value) { return this.y = value; };
|
| +$dynamic("get$className").SVGFESpecularLightingElement = function() { return this.className; };
|
| +$dynamic("set$className").SVGFESpecularLightingElement = function(value) { return this.className = value; };
|
| +$dynamic("get$style").SVGFESpecularLightingElement = function() { return this.style; };
|
| +$dynamic("set$style").SVGFESpecularLightingElement = function(value) { return this.style = value; };
|
| +// ********** Code for SVGFESpotLightElement **************
|
| +$dynamic("get$x").SVGFESpotLightElement = function() { return this.x; };
|
| +$dynamic("set$x").SVGFESpotLightElement = function(value) { return this.x = value; };
|
| +$dynamic("get$y").SVGFESpotLightElement = function() { return this.y; };
|
| +$dynamic("set$y").SVGFESpotLightElement = function(value) { return this.y = value; };
|
| +// ********** Code for SVGFETileElement **************
|
| +$dynamic("get$height").SVGFETileElement = function() { return this.height; };
|
| +$dynamic("set$height").SVGFETileElement = function(value) { return this.height = value; };
|
| +$dynamic("get$width").SVGFETileElement = function() { return this.width; };
|
| +$dynamic("set$width").SVGFETileElement = function(value) { return this.width = value; };
|
| +$dynamic("get$x").SVGFETileElement = function() { return this.x; };
|
| +$dynamic("set$x").SVGFETileElement = function(value) { return this.x = value; };
|
| +$dynamic("get$y").SVGFETileElement = function() { return this.y; };
|
| +$dynamic("set$y").SVGFETileElement = function(value) { return this.y = value; };
|
| +$dynamic("get$className").SVGFETileElement = function() { return this.className; };
|
| +$dynamic("set$className").SVGFETileElement = function(value) { return this.className = value; };
|
| +$dynamic("get$style").SVGFETileElement = function() { return this.style; };
|
| +$dynamic("set$style").SVGFETileElement = function(value) { return this.style = value; };
|
| +// ********** Code for SVGFETurbulenceElement **************
|
| +$dynamic("get$type").SVGFETurbulenceElement = function() { return this.type; };
|
| +$dynamic("set$type").SVGFETurbulenceElement = function(value) { return this.type = value; };
|
| +$dynamic("get$height").SVGFETurbulenceElement = function() { return this.height; };
|
| +$dynamic("set$height").SVGFETurbulenceElement = function(value) { return this.height = value; };
|
| +$dynamic("get$width").SVGFETurbulenceElement = function() { return this.width; };
|
| +$dynamic("set$width").SVGFETurbulenceElement = function(value) { return this.width = value; };
|
| +$dynamic("get$x").SVGFETurbulenceElement = function() { return this.x; };
|
| +$dynamic("set$x").SVGFETurbulenceElement = function(value) { return this.x = value; };
|
| +$dynamic("get$y").SVGFETurbulenceElement = function() { return this.y; };
|
| +$dynamic("set$y").SVGFETurbulenceElement = function(value) { return this.y = value; };
|
| +$dynamic("get$className").SVGFETurbulenceElement = function() { return this.className; };
|
| +$dynamic("set$className").SVGFETurbulenceElement = function(value) { return this.className = value; };
|
| +$dynamic("get$style").SVGFETurbulenceElement = function() { return this.style; };
|
| +$dynamic("set$style").SVGFETurbulenceElement = function(value) { return this.style = value; };
|
| +// ********** Code for SVGFilterElement **************
|
| +$dynamic("get$height").SVGFilterElement = function() { return this.height; };
|
| +$dynamic("set$height").SVGFilterElement = function(value) { return this.height = value; };
|
| +$dynamic("get$width").SVGFilterElement = function() { return this.width; };
|
| +$dynamic("set$width").SVGFilterElement = function(value) { return this.width = value; };
|
| +$dynamic("get$x").SVGFilterElement = function() { return this.x; };
|
| +$dynamic("set$x").SVGFilterElement = function(value) { return this.x = value; };
|
| +$dynamic("get$y").SVGFilterElement = function() { return this.y; };
|
| +$dynamic("set$y").SVGFilterElement = function(value) { return this.y = value; };
|
| +$dynamic("get$className").SVGFilterElement = function() { return this.className; };
|
| +$dynamic("set$className").SVGFilterElement = function(value) { return this.className = value; };
|
| +$dynamic("get$style").SVGFilterElement = function() { return this.style; };
|
| +$dynamic("set$style").SVGFilterElement = function(value) { return this.style = value; };
|
| +// ********** Code for SVGFilterPrimitiveStandardAttributes **************
|
| +$dynamic("get$height").SVGFilterPrimitiveStandardAttributes = function() { return this.height; };
|
| +$dynamic("set$height").SVGFilterPrimitiveStandardAttributes = function(value) { return this.height = value; };
|
| +$dynamic("get$width").SVGFilterPrimitiveStandardAttributes = function() { return this.width; };
|
| +$dynamic("set$width").SVGFilterPrimitiveStandardAttributes = function(value) { return this.width = value; };
|
| +$dynamic("get$x").SVGFilterPrimitiveStandardAttributes = function() { return this.x; };
|
| +$dynamic("set$x").SVGFilterPrimitiveStandardAttributes = function(value) { return this.x = value; };
|
| +$dynamic("get$y").SVGFilterPrimitiveStandardAttributes = function() { return this.y; };
|
| +$dynamic("set$y").SVGFilterPrimitiveStandardAttributes = function(value) { return this.y = value; };
|
| +// ********** Code for SVGFitToViewBox **************
|
| +$dynamic("get$dartObjectLocalStorage").SVGFitToViewBox = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").SVGFitToViewBox = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for SVGFontElement **************
|
| +// ********** Code for SVGFontFaceElement **************
|
| +// ********** Code for SVGFontFaceFormatElement **************
|
| +// ********** Code for SVGFontFaceNameElement **************
|
| +// ********** Code for SVGFontFaceSrcElement **************
|
| +// ********** Code for SVGFontFaceUriElement **************
|
| +// ********** Code for SVGForeignObjectElement **************
|
| +$dynamic("get$height").SVGForeignObjectElement = function() { return this.height; };
|
| +$dynamic("set$height").SVGForeignObjectElement = function(value) { return this.height = value; };
|
| +$dynamic("get$width").SVGForeignObjectElement = function() { return this.width; };
|
| +$dynamic("set$width").SVGForeignObjectElement = function(value) { return this.width = value; };
|
| +$dynamic("get$x").SVGForeignObjectElement = function() { return this.x; };
|
| +$dynamic("set$x").SVGForeignObjectElement = function(value) { return this.x = value; };
|
| +$dynamic("get$y").SVGForeignObjectElement = function() { return this.y; };
|
| +$dynamic("set$y").SVGForeignObjectElement = function(value) { return this.y = value; };
|
| +$dynamic("get$className").SVGForeignObjectElement = function() { return this.className; };
|
| +$dynamic("set$className").SVGForeignObjectElement = function(value) { return this.className = value; };
|
| +$dynamic("get$style").SVGForeignObjectElement = function() { return this.style; };
|
| +$dynamic("set$style").SVGForeignObjectElement = function(value) { return this.style = value; };
|
| +$dynamic("get$transform").SVGForeignObjectElement = function() { return this.transform; };
|
| +$dynamic("set$transform").SVGForeignObjectElement = function(value) { return this.transform = value; };
|
| +// ********** Code for SVGGElement **************
|
| +$dynamic("get$className").SVGGElement = function() { return this.className; };
|
| +$dynamic("set$className").SVGGElement = function(value) { return this.className = value; };
|
| +$dynamic("get$style").SVGGElement = function() { return this.style; };
|
| +$dynamic("set$style").SVGGElement = function(value) { return this.style = value; };
|
| +$dynamic("get$transform").SVGGElement = function() { return this.transform; };
|
| +$dynamic("set$transform").SVGGElement = function(value) { return this.transform = value; };
|
| +// ********** Code for SVGGlyphElement **************
|
| +// ********** Code for SVGGlyphRefElement **************
|
| +$dynamic("get$x").SVGGlyphRefElement = function() { return this.x; };
|
| +$dynamic("set$x").SVGGlyphRefElement = function(value) { return this.x = value; };
|
| +$dynamic("get$y").SVGGlyphRefElement = function() { return this.y; };
|
| +$dynamic("set$y").SVGGlyphRefElement = function(value) { return this.y = value; };
|
| +$dynamic("get$className").SVGGlyphRefElement = function() { return this.className; };
|
| +$dynamic("set$className").SVGGlyphRefElement = function(value) { return this.className = value; };
|
| +$dynamic("get$style").SVGGlyphRefElement = function() { return this.style; };
|
| +$dynamic("set$style").SVGGlyphRefElement = function(value) { return this.style = value; };
|
| +// ********** Code for SVGGradientElement **************
|
| +$dynamic("get$className").SVGGradientElement = function() { return this.className; };
|
| +$dynamic("set$className").SVGGradientElement = function(value) { return this.className = value; };
|
| +$dynamic("get$style").SVGGradientElement = function() { return this.style; };
|
| +$dynamic("set$style").SVGGradientElement = function(value) { return this.style = value; };
|
| +// ********** Code for SVGHKernElement **************
|
| +// ********** Code for SVGImageElement **************
|
| +$dynamic("get$height").SVGImageElement = function() { return this.height; };
|
| +$dynamic("set$height").SVGImageElement = function(value) { return this.height = value; };
|
| +$dynamic("get$width").SVGImageElement = function() { return this.width; };
|
| +$dynamic("set$width").SVGImageElement = function(value) { return this.width = value; };
|
| +$dynamic("get$x").SVGImageElement = function() { return this.x; };
|
| +$dynamic("set$x").SVGImageElement = function(value) { return this.x = value; };
|
| +$dynamic("get$y").SVGImageElement = function() { return this.y; };
|
| +$dynamic("set$y").SVGImageElement = function(value) { return this.y = value; };
|
| +$dynamic("get$className").SVGImageElement = function() { return this.className; };
|
| +$dynamic("set$className").SVGImageElement = function(value) { return this.className = value; };
|
| +$dynamic("get$style").SVGImageElement = function() { return this.style; };
|
| +$dynamic("set$style").SVGImageElement = function(value) { return this.style = value; };
|
| +$dynamic("get$transform").SVGImageElement = function() { return this.transform; };
|
| +$dynamic("set$transform").SVGImageElement = function(value) { return this.transform = value; };
|
| +// ********** Code for SVGLangSpace **************
|
| +$dynamic("get$dartObjectLocalStorage").SVGLangSpace = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").SVGLangSpace = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for SVGLength **************
|
| +$dynamic("get$value").SVGLength = function() { return this.value; };
|
| +$dynamic("set$value").SVGLength = function(value) { return this.value = value; };
|
| +$dynamic("get$dartObjectLocalStorage").SVGLength = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").SVGLength = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for SVGLengthList **************
|
| +$dynamic("get$clear").SVGLengthList = function() {
|
| + return this.clear.bind(this);
|
| +}
|
| +$dynamic("get$dartObjectLocalStorage").SVGLengthList = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").SVGLengthList = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("clear$0").SVGLengthList = function() {
|
| + return this.clear();
|
| +};
|
| +// ********** Code for SVGLineElement **************
|
| +$dynamic("get$className").SVGLineElement = function() { return this.className; };
|
| +$dynamic("set$className").SVGLineElement = function(value) { return this.className = value; };
|
| +$dynamic("get$style").SVGLineElement = function() { return this.style; };
|
| +$dynamic("set$style").SVGLineElement = function(value) { return this.style = value; };
|
| +$dynamic("get$transform").SVGLineElement = function() { return this.transform; };
|
| +$dynamic("set$transform").SVGLineElement = function(value) { return this.transform = value; };
|
| +// ********** Code for SVGLinearGradientElement **************
|
| +// ********** Code for SVGLocatable **************
|
| +$dynamic("get$dartObjectLocalStorage").SVGLocatable = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").SVGLocatable = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for SVGMPathElement **************
|
| +// ********** Code for SVGMarkerElement **************
|
| +$dynamic("get$className").SVGMarkerElement = function() { return this.className; };
|
| +$dynamic("set$className").SVGMarkerElement = function(value) { return this.className = value; };
|
| +$dynamic("get$style").SVGMarkerElement = function() { return this.style; };
|
| +$dynamic("set$style").SVGMarkerElement = function(value) { return this.style = value; };
|
| +// ********** Code for SVGMaskElement **************
|
| +$dynamic("get$height").SVGMaskElement = function() { return this.height; };
|
| +$dynamic("set$height").SVGMaskElement = function(value) { return this.height = value; };
|
| +$dynamic("get$width").SVGMaskElement = function() { return this.width; };
|
| +$dynamic("set$width").SVGMaskElement = function(value) { return this.width = value; };
|
| +$dynamic("get$x").SVGMaskElement = function() { return this.x; };
|
| +$dynamic("set$x").SVGMaskElement = function(value) { return this.x = value; };
|
| +$dynamic("get$y").SVGMaskElement = function() { return this.y; };
|
| +$dynamic("set$y").SVGMaskElement = function(value) { return this.y = value; };
|
| +$dynamic("get$className").SVGMaskElement = function() { return this.className; };
|
| +$dynamic("set$className").SVGMaskElement = function(value) { return this.className = value; };
|
| +$dynamic("get$style").SVGMaskElement = function() { return this.style; };
|
| +$dynamic("set$style").SVGMaskElement = function(value) { return this.style = value; };
|
| +// ********** Code for SVGMatrix **************
|
| +$dynamic("get$dartObjectLocalStorage").SVGMatrix = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").SVGMatrix = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for SVGMetadataElement **************
|
| +// ********** Code for SVGMissingGlyphElement **************
|
| +// ********** Code for SVGNumber **************
|
| +$dynamic("get$value").SVGNumber = function() { return this.value; };
|
| +$dynamic("set$value").SVGNumber = function(value) { return this.value = value; };
|
| +$dynamic("get$dartObjectLocalStorage").SVGNumber = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").SVGNumber = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for SVGNumberList **************
|
| +$dynamic("get$clear").SVGNumberList = function() {
|
| + return this.clear.bind(this);
|
| +}
|
| +$dynamic("get$dartObjectLocalStorage").SVGNumberList = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").SVGNumberList = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("clear$0").SVGNumberList = function() {
|
| + return this.clear();
|
| +};
|
| +// ********** Code for SVGPaint **************
|
| +// ********** Code for SVGPathElement **************
|
| +$dynamic("get$className").SVGPathElement = function() { return this.className; };
|
| +$dynamic("set$className").SVGPathElement = function(value) { return this.className = value; };
|
| +$dynamic("get$style").SVGPathElement = function() { return this.style; };
|
| +$dynamic("set$style").SVGPathElement = function(value) { return this.style = value; };
|
| +$dynamic("get$transform").SVGPathElement = function() { return this.transform; };
|
| +$dynamic("set$transform").SVGPathElement = function(value) { return this.transform = value; };
|
| +// ********** Code for SVGPathSeg **************
|
| +$dynamic("get$dartObjectLocalStorage").SVGPathSeg = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").SVGPathSeg = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for SVGPathSegArcAbs **************
|
| +$dynamic("get$x").SVGPathSegArcAbs = function() { return this.x; };
|
| +$dynamic("set$x").SVGPathSegArcAbs = function(value) { return this.x = value; };
|
| +$dynamic("get$y").SVGPathSegArcAbs = function() { return this.y; };
|
| +$dynamic("set$y").SVGPathSegArcAbs = function(value) { return this.y = value; };
|
| +// ********** Code for SVGPathSegArcRel **************
|
| +$dynamic("get$x").SVGPathSegArcRel = function() { return this.x; };
|
| +$dynamic("set$x").SVGPathSegArcRel = function(value) { return this.x = value; };
|
| +$dynamic("get$y").SVGPathSegArcRel = function() { return this.y; };
|
| +$dynamic("set$y").SVGPathSegArcRel = function(value) { return this.y = value; };
|
| +// ********** Code for SVGPathSegClosePath **************
|
| +// ********** Code for SVGPathSegCurvetoCubicAbs **************
|
| +$dynamic("get$x").SVGPathSegCurvetoCubicAbs = function() { return this.x; };
|
| +$dynamic("set$x").SVGPathSegCurvetoCubicAbs = function(value) { return this.x = value; };
|
| +$dynamic("get$y").SVGPathSegCurvetoCubicAbs = function() { return this.y; };
|
| +$dynamic("set$y").SVGPathSegCurvetoCubicAbs = function(value) { return this.y = value; };
|
| +// ********** Code for SVGPathSegCurvetoCubicRel **************
|
| +$dynamic("get$x").SVGPathSegCurvetoCubicRel = function() { return this.x; };
|
| +$dynamic("set$x").SVGPathSegCurvetoCubicRel = function(value) { return this.x = value; };
|
| +$dynamic("get$y").SVGPathSegCurvetoCubicRel = function() { return this.y; };
|
| +$dynamic("set$y").SVGPathSegCurvetoCubicRel = function(value) { return this.y = value; };
|
| +// ********** Code for SVGPathSegCurvetoCubicSmoothAbs **************
|
| +$dynamic("get$x").SVGPathSegCurvetoCubicSmoothAbs = function() { return this.x; };
|
| +$dynamic("set$x").SVGPathSegCurvetoCubicSmoothAbs = function(value) { return this.x = value; };
|
| +$dynamic("get$y").SVGPathSegCurvetoCubicSmoothAbs = function() { return this.y; };
|
| +$dynamic("set$y").SVGPathSegCurvetoCubicSmoothAbs = function(value) { return this.y = value; };
|
| +// ********** Code for SVGPathSegCurvetoCubicSmoothRel **************
|
| +$dynamic("get$x").SVGPathSegCurvetoCubicSmoothRel = function() { return this.x; };
|
| +$dynamic("set$x").SVGPathSegCurvetoCubicSmoothRel = function(value) { return this.x = value; };
|
| +$dynamic("get$y").SVGPathSegCurvetoCubicSmoothRel = function() { return this.y; };
|
| +$dynamic("set$y").SVGPathSegCurvetoCubicSmoothRel = function(value) { return this.y = value; };
|
| +// ********** Code for SVGPathSegCurvetoQuadraticAbs **************
|
| +$dynamic("get$x").SVGPathSegCurvetoQuadraticAbs = function() { return this.x; };
|
| +$dynamic("set$x").SVGPathSegCurvetoQuadraticAbs = function(value) { return this.x = value; };
|
| +$dynamic("get$y").SVGPathSegCurvetoQuadraticAbs = function() { return this.y; };
|
| +$dynamic("set$y").SVGPathSegCurvetoQuadraticAbs = function(value) { return this.y = value; };
|
| +// ********** Code for SVGPathSegCurvetoQuadraticRel **************
|
| +$dynamic("get$x").SVGPathSegCurvetoQuadraticRel = function() { return this.x; };
|
| +$dynamic("set$x").SVGPathSegCurvetoQuadraticRel = function(value) { return this.x = value; };
|
| +$dynamic("get$y").SVGPathSegCurvetoQuadraticRel = function() { return this.y; };
|
| +$dynamic("set$y").SVGPathSegCurvetoQuadraticRel = function(value) { return this.y = value; };
|
| +// ********** Code for SVGPathSegCurvetoQuadraticSmoothAbs **************
|
| +$dynamic("get$x").SVGPathSegCurvetoQuadraticSmoothAbs = function() { return this.x; };
|
| +$dynamic("set$x").SVGPathSegCurvetoQuadraticSmoothAbs = function(value) { return this.x = value; };
|
| +$dynamic("get$y").SVGPathSegCurvetoQuadraticSmoothAbs = function() { return this.y; };
|
| +$dynamic("set$y").SVGPathSegCurvetoQuadraticSmoothAbs = function(value) { return this.y = value; };
|
| +// ********** Code for SVGPathSegCurvetoQuadraticSmoothRel **************
|
| +$dynamic("get$x").SVGPathSegCurvetoQuadraticSmoothRel = function() { return this.x; };
|
| +$dynamic("set$x").SVGPathSegCurvetoQuadraticSmoothRel = function(value) { return this.x = value; };
|
| +$dynamic("get$y").SVGPathSegCurvetoQuadraticSmoothRel = function() { return this.y; };
|
| +$dynamic("set$y").SVGPathSegCurvetoQuadraticSmoothRel = function(value) { return this.y = value; };
|
| +// ********** Code for SVGPathSegLinetoAbs **************
|
| +$dynamic("get$x").SVGPathSegLinetoAbs = function() { return this.x; };
|
| +$dynamic("set$x").SVGPathSegLinetoAbs = function(value) { return this.x = value; };
|
| +$dynamic("get$y").SVGPathSegLinetoAbs = function() { return this.y; };
|
| +$dynamic("set$y").SVGPathSegLinetoAbs = function(value) { return this.y = value; };
|
| +// ********** Code for SVGPathSegLinetoHorizontalAbs **************
|
| +$dynamic("get$x").SVGPathSegLinetoHorizontalAbs = function() { return this.x; };
|
| +$dynamic("set$x").SVGPathSegLinetoHorizontalAbs = function(value) { return this.x = value; };
|
| +// ********** Code for SVGPathSegLinetoHorizontalRel **************
|
| +$dynamic("get$x").SVGPathSegLinetoHorizontalRel = function() { return this.x; };
|
| +$dynamic("set$x").SVGPathSegLinetoHorizontalRel = function(value) { return this.x = value; };
|
| +// ********** Code for SVGPathSegLinetoRel **************
|
| +$dynamic("get$x").SVGPathSegLinetoRel = function() { return this.x; };
|
| +$dynamic("set$x").SVGPathSegLinetoRel = function(value) { return this.x = value; };
|
| +$dynamic("get$y").SVGPathSegLinetoRel = function() { return this.y; };
|
| +$dynamic("set$y").SVGPathSegLinetoRel = function(value) { return this.y = value; };
|
| +// ********** Code for SVGPathSegLinetoVerticalAbs **************
|
| +$dynamic("get$y").SVGPathSegLinetoVerticalAbs = function() { return this.y; };
|
| +$dynamic("set$y").SVGPathSegLinetoVerticalAbs = function(value) { return this.y = value; };
|
| +// ********** Code for SVGPathSegLinetoVerticalRel **************
|
| +$dynamic("get$y").SVGPathSegLinetoVerticalRel = function() { return this.y; };
|
| +$dynamic("set$y").SVGPathSegLinetoVerticalRel = function(value) { return this.y = value; };
|
| +// ********** Code for SVGPathSegList **************
|
| +$dynamic("get$clear").SVGPathSegList = function() {
|
| + return this.clear.bind(this);
|
| +}
|
| +$dynamic("get$dartObjectLocalStorage").SVGPathSegList = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").SVGPathSegList = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("clear$0").SVGPathSegList = function() {
|
| + return this.clear();
|
| +};
|
| +// ********** Code for SVGPathSegMovetoAbs **************
|
| +$dynamic("get$x").SVGPathSegMovetoAbs = function() { return this.x; };
|
| +$dynamic("set$x").SVGPathSegMovetoAbs = function(value) { return this.x = value; };
|
| +$dynamic("get$y").SVGPathSegMovetoAbs = function() { return this.y; };
|
| +$dynamic("set$y").SVGPathSegMovetoAbs = function(value) { return this.y = value; };
|
| +// ********** Code for SVGPathSegMovetoRel **************
|
| +$dynamic("get$x").SVGPathSegMovetoRel = function() { return this.x; };
|
| +$dynamic("set$x").SVGPathSegMovetoRel = function(value) { return this.x = value; };
|
| +$dynamic("get$y").SVGPathSegMovetoRel = function() { return this.y; };
|
| +$dynamic("set$y").SVGPathSegMovetoRel = function(value) { return this.y = value; };
|
| +// ********** Code for SVGPatternElement **************
|
| +$dynamic("get$height").SVGPatternElement = function() { return this.height; };
|
| +$dynamic("set$height").SVGPatternElement = function(value) { return this.height = value; };
|
| +$dynamic("get$width").SVGPatternElement = function() { return this.width; };
|
| +$dynamic("set$width").SVGPatternElement = function(value) { return this.width = value; };
|
| +$dynamic("get$x").SVGPatternElement = function() { return this.x; };
|
| +$dynamic("set$x").SVGPatternElement = function(value) { return this.x = value; };
|
| +$dynamic("get$y").SVGPatternElement = function() { return this.y; };
|
| +$dynamic("set$y").SVGPatternElement = function(value) { return this.y = value; };
|
| +$dynamic("get$className").SVGPatternElement = function() { return this.className; };
|
| +$dynamic("set$className").SVGPatternElement = function(value) { return this.className = value; };
|
| +$dynamic("get$style").SVGPatternElement = function() { return this.style; };
|
| +$dynamic("set$style").SVGPatternElement = function(value) { return this.style = value; };
|
| +// ********** Code for SVGPoint **************
|
| +$dynamic("get$x").SVGPoint = function() { return this.x; };
|
| +$dynamic("set$x").SVGPoint = function(value) { return this.x = value; };
|
| +$dynamic("get$y").SVGPoint = function() { return this.y; };
|
| +$dynamic("set$y").SVGPoint = function(value) { return this.y = value; };
|
| +$dynamic("get$dartObjectLocalStorage").SVGPoint = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").SVGPoint = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for SVGPointList **************
|
| +$dynamic("get$clear").SVGPointList = function() {
|
| + return this.clear.bind(this);
|
| +}
|
| +$dynamic("get$dartObjectLocalStorage").SVGPointList = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").SVGPointList = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("clear$0").SVGPointList = function() {
|
| + return this.clear();
|
| +};
|
| +// ********** Code for SVGPolygonElement **************
|
| +$dynamic("get$className").SVGPolygonElement = function() { return this.className; };
|
| +$dynamic("set$className").SVGPolygonElement = function(value) { return this.className = value; };
|
| +$dynamic("get$style").SVGPolygonElement = function() { return this.style; };
|
| +$dynamic("set$style").SVGPolygonElement = function(value) { return this.style = value; };
|
| +$dynamic("get$transform").SVGPolygonElement = function() { return this.transform; };
|
| +$dynamic("set$transform").SVGPolygonElement = function(value) { return this.transform = value; };
|
| +// ********** Code for SVGPolylineElement **************
|
| +$dynamic("get$className").SVGPolylineElement = function() { return this.className; };
|
| +$dynamic("set$className").SVGPolylineElement = function(value) { return this.className = value; };
|
| +$dynamic("get$style").SVGPolylineElement = function() { return this.style; };
|
| +$dynamic("set$style").SVGPolylineElement = function(value) { return this.style = value; };
|
| +$dynamic("get$transform").SVGPolylineElement = function() { return this.transform; };
|
| +$dynamic("set$transform").SVGPolylineElement = function(value) { return this.transform = value; };
|
| +// ********** Code for SVGPreserveAspectRatio **************
|
| +$dynamic("get$dartObjectLocalStorage").SVGPreserveAspectRatio = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").SVGPreserveAspectRatio = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for SVGRadialGradientElement **************
|
| +// ********** Code for SVGRect **************
|
| +$dynamic("get$height").SVGRect = function() { return this.height; };
|
| +$dynamic("set$height").SVGRect = function(value) { return this.height = value; };
|
| +$dynamic("get$width").SVGRect = function() { return this.width; };
|
| +$dynamic("set$width").SVGRect = function(value) { return this.width = value; };
|
| +$dynamic("get$x").SVGRect = function() { return this.x; };
|
| +$dynamic("set$x").SVGRect = function(value) { return this.x = value; };
|
| +$dynamic("get$y").SVGRect = function() { return this.y; };
|
| +$dynamic("set$y").SVGRect = function(value) { return this.y = value; };
|
| +$dynamic("get$dartObjectLocalStorage").SVGRect = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").SVGRect = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for SVGRectElement **************
|
| +$dynamic("get$height").SVGRectElement = function() { return this.height; };
|
| +$dynamic("set$height").SVGRectElement = function(value) { return this.height = value; };
|
| +$dynamic("get$width").SVGRectElement = function() { return this.width; };
|
| +$dynamic("set$width").SVGRectElement = function(value) { return this.width = value; };
|
| +$dynamic("get$x").SVGRectElement = function() { return this.x; };
|
| +$dynamic("set$x").SVGRectElement = function(value) { return this.x = value; };
|
| +$dynamic("get$y").SVGRectElement = function() { return this.y; };
|
| +$dynamic("set$y").SVGRectElement = function(value) { return this.y = value; };
|
| +$dynamic("get$className").SVGRectElement = function() { return this.className; };
|
| +$dynamic("set$className").SVGRectElement = function(value) { return this.className = value; };
|
| +$dynamic("get$style").SVGRectElement = function() { return this.style; };
|
| +$dynamic("set$style").SVGRectElement = function(value) { return this.style = value; };
|
| +$dynamic("get$transform").SVGRectElement = function() { return this.transform; };
|
| +$dynamic("set$transform").SVGRectElement = function(value) { return this.transform = value; };
|
| +// ********** Code for SVGRenderingIntent **************
|
| +$dynamic("get$dartObjectLocalStorage").SVGRenderingIntent = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").SVGRenderingIntent = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for SVGSVGElement **************
|
| +$dynamic("get$height").SVGSVGElement = function() { return this.height; };
|
| +$dynamic("set$height").SVGSVGElement = function(value) { return this.height = value; };
|
| +$dynamic("get$width").SVGSVGElement = function() { return this.width; };
|
| +$dynamic("set$width").SVGSVGElement = function(value) { return this.width = value; };
|
| +$dynamic("get$x").SVGSVGElement = function() { return this.x; };
|
| +$dynamic("set$x").SVGSVGElement = function(value) { return this.x = value; };
|
| +$dynamic("get$y").SVGSVGElement = function() { return this.y; };
|
| +$dynamic("set$y").SVGSVGElement = function(value) { return this.y = value; };
|
| +$dynamic("get$className").SVGSVGElement = function() { return this.className; };
|
| +$dynamic("set$className").SVGSVGElement = function(value) { return this.className = value; };
|
| +$dynamic("get$style").SVGSVGElement = function() { return this.style; };
|
| +$dynamic("set$style").SVGSVGElement = function(value) { return this.style = value; };
|
| +// ********** Code for SVGScriptElement **************
|
| +$dynamic("get$type").SVGScriptElement = function() { return this.type; };
|
| +$dynamic("set$type").SVGScriptElement = function(value) { return this.type = value; };
|
| +// ********** Code for SVGSetElement **************
|
| +// ********** Code for SVGStopElement **************
|
| +$dynamic("get$offset").SVGStopElement = function() { return this.offset; };
|
| +$dynamic("set$offset").SVGStopElement = function(value) { return this.offset = value; };
|
| +$dynamic("get$className").SVGStopElement = function() { return this.className; };
|
| +$dynamic("set$className").SVGStopElement = function(value) { return this.className = value; };
|
| +$dynamic("get$style").SVGStopElement = function() { return this.style; };
|
| +$dynamic("set$style").SVGStopElement = function(value) { return this.style = value; };
|
| +// ********** Code for SVGStringList **************
|
| +$dynamic("get$clear").SVGStringList = function() {
|
| + return this.clear.bind(this);
|
| +}
|
| +$dynamic("get$dartObjectLocalStorage").SVGStringList = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").SVGStringList = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("clear$0").SVGStringList = function() {
|
| + return this.clear();
|
| +};
|
| +// ********** Code for SVGStylable **************
|
| +$dynamic("get$className").SVGStylable = function() { return this.className; };
|
| +$dynamic("set$className").SVGStylable = function(value) { return this.className = value; };
|
| +$dynamic("get$style").SVGStylable = function() { return this.style; };
|
| +$dynamic("set$style").SVGStylable = function(value) { return this.style = value; };
|
| +$dynamic("get$dartObjectLocalStorage").SVGStylable = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").SVGStylable = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for SVGStyleElement **************
|
| +$dynamic("get$title").SVGStyleElement = function() { return this.title; };
|
| +$dynamic("set$title").SVGStyleElement = function(value) { return this.title = value; };
|
| +$dynamic("get$type").SVGStyleElement = function() { return this.type; };
|
| +$dynamic("set$type").SVGStyleElement = function(value) { return this.type = value; };
|
| +// ********** Code for SVGSwitchElement **************
|
| +$dynamic("get$className").SVGSwitchElement = function() { return this.className; };
|
| +$dynamic("set$className").SVGSwitchElement = function(value) { return this.className = value; };
|
| +$dynamic("get$style").SVGSwitchElement = function() { return this.style; };
|
| +$dynamic("set$style").SVGSwitchElement = function(value) { return this.style = value; };
|
| +$dynamic("get$transform").SVGSwitchElement = function() { return this.transform; };
|
| +$dynamic("set$transform").SVGSwitchElement = function(value) { return this.transform = value; };
|
| +// ********** Code for SVGSymbolElement **************
|
| +$dynamic("get$className").SVGSymbolElement = function() { return this.className; };
|
| +$dynamic("set$className").SVGSymbolElement = function(value) { return this.className = value; };
|
| +$dynamic("get$style").SVGSymbolElement = function() { return this.style; };
|
| +$dynamic("set$style").SVGSymbolElement = function(value) { return this.style = value; };
|
| +// ********** Code for SVGTRefElement **************
|
| +// ********** Code for SVGTSpanElement **************
|
| +// ********** Code for SVGTests **************
|
| +$dynamic("get$dartObjectLocalStorage").SVGTests = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").SVGTests = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for SVGTextContentElement **************
|
| +$dynamic("get$className").SVGTextContentElement = function() { return this.className; };
|
| +$dynamic("set$className").SVGTextContentElement = function(value) { return this.className = value; };
|
| +$dynamic("get$style").SVGTextContentElement = function() { return this.style; };
|
| +$dynamic("set$style").SVGTextContentElement = function(value) { return this.style = value; };
|
| +// ********** Code for SVGTextElement **************
|
| +$dynamic("get$transform").SVGTextElement = function() { return this.transform; };
|
| +$dynamic("set$transform").SVGTextElement = function(value) { return this.transform = value; };
|
| +// ********** Code for SVGTextPathElement **************
|
| +// ********** Code for SVGTextPositioningElement **************
|
| +$dynamic("get$x").SVGTextPositioningElement = function() { return this.x; };
|
| +$dynamic("set$x").SVGTextPositioningElement = function(value) { return this.x = value; };
|
| +$dynamic("get$y").SVGTextPositioningElement = function() { return this.y; };
|
| +$dynamic("set$y").SVGTextPositioningElement = function(value) { return this.y = value; };
|
| +// ********** Code for SVGTitleElement **************
|
| +$dynamic("get$className").SVGTitleElement = function() { return this.className; };
|
| +$dynamic("set$className").SVGTitleElement = function(value) { return this.className = value; };
|
| +$dynamic("get$style").SVGTitleElement = function() { return this.style; };
|
| +$dynamic("set$style").SVGTitleElement = function(value) { return this.style = value; };
|
| +// ********** Code for SVGTransform **************
|
| +$dynamic("get$type").SVGTransform = function() { return this.type; };
|
| +$dynamic("set$type").SVGTransform = function(value) { return this.type = value; };
|
| +$dynamic("get$dartObjectLocalStorage").SVGTransform = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").SVGTransform = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for SVGTransformList **************
|
| +$dynamic("get$clear").SVGTransformList = function() {
|
| + return this.clear.bind(this);
|
| +}
|
| +$dynamic("get$dartObjectLocalStorage").SVGTransformList = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").SVGTransformList = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("clear$0").SVGTransformList = function() {
|
| + return this.clear();
|
| +};
|
| +// ********** Code for SVGTransformable **************
|
| +$dynamic("get$transform").SVGTransformable = function() { return this.transform; };
|
| +$dynamic("set$transform").SVGTransformable = function(value) { return this.transform = value; };
|
| +// ********** Code for SVGURIReference **************
|
| +$dynamic("get$dartObjectLocalStorage").SVGURIReference = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").SVGURIReference = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for SVGUnitTypes **************
|
| +$dynamic("get$dartObjectLocalStorage").SVGUnitTypes = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").SVGUnitTypes = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for SVGUseElement **************
|
| +$dynamic("get$height").SVGUseElement = function() { return this.height; };
|
| +$dynamic("set$height").SVGUseElement = function(value) { return this.height = value; };
|
| +$dynamic("get$width").SVGUseElement = function() { return this.width; };
|
| +$dynamic("set$width").SVGUseElement = function(value) { return this.width = value; };
|
| +$dynamic("get$x").SVGUseElement = function() { return this.x; };
|
| +$dynamic("set$x").SVGUseElement = function(value) { return this.x = value; };
|
| +$dynamic("get$y").SVGUseElement = function() { return this.y; };
|
| +$dynamic("set$y").SVGUseElement = function(value) { return this.y = value; };
|
| +$dynamic("get$className").SVGUseElement = function() { return this.className; };
|
| +$dynamic("set$className").SVGUseElement = function(value) { return this.className = value; };
|
| +$dynamic("get$style").SVGUseElement = function() { return this.style; };
|
| +$dynamic("set$style").SVGUseElement = function(value) { return this.style = value; };
|
| +$dynamic("get$transform").SVGUseElement = function() { return this.transform; };
|
| +$dynamic("set$transform").SVGUseElement = function(value) { return this.transform = value; };
|
| +// ********** Code for SVGVKernElement **************
|
| +// ********** Code for SVGViewElement **************
|
| +// ********** Code for SVGViewSpec **************
|
| +$dynamic("get$transform").SVGViewSpec = function() { return this.transform; };
|
| +$dynamic("set$transform").SVGViewSpec = function(value) { return this.transform = value; };
|
| +// ********** Code for SVGZoomAndPan **************
|
| +$dynamic("get$dartObjectLocalStorage").SVGZoomAndPan = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").SVGZoomAndPan = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for SVGZoomEvent **************
|
| +// ********** Code for Screen **************
|
| +$dynamic("get$height").Screen = function() { return this.height; };
|
| +$dynamic("set$height").Screen = function(value) { return this.height = value; };
|
| +$dynamic("get$width").Screen = function() { return this.width; };
|
| +$dynamic("set$width").Screen = function(value) { return this.width = value; };
|
| +$dynamic("get$dartObjectLocalStorage").Screen = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").Screen = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for dom_ScriptProfile **************
|
| +$dynamic("get$title").ScriptProfile = function() { return this.title; };
|
| +$dynamic("set$title").ScriptProfile = function(value) { return this.title = value; };
|
| +$dynamic("get$dartObjectLocalStorage").ScriptProfile = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").ScriptProfile = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for dom_ScriptProfileNode **************
|
| +$dynamic("get$children").ScriptProfileNode = function() { return this.children; };
|
| +$dynamic("set$children").ScriptProfileNode = function(value) { return this.children = value; };
|
| +$dynamic("get$dartObjectLocalStorage").ScriptProfileNode = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").ScriptProfileNode = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for SharedWorker **************
|
| +// ********** Code for dom_SharedWorkercontext **************
|
| +$dynamic("get$name").SharedWorkercontext = function() { return this.name; };
|
| +$dynamic("set$name").SharedWorkercontext = function(value) { return this.name = value; };
|
| +// ********** Code for SpeechInputEvent **************
|
| +// ********** Code for SpeechInputResult **************
|
| +$dynamic("get$dartObjectLocalStorage").SpeechInputResult = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").SpeechInputResult = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for SpeechInputResultList **************
|
| +$dynamic("get$length").SpeechInputResultList = function() { return this.length; };
|
| +$dynamic("set$length").SpeechInputResultList = function(value) { return this.length = value; };
|
| +$dynamic("get$dartObjectLocalStorage").SpeechInputResultList = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").SpeechInputResultList = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("item$1").SpeechInputResultList = function($0) {
|
| + return this.item($0);
|
| +};
|
| +// ********** Code for Storage **************
|
| +$dynamic("get$length").Storage = function() { return this.length; };
|
| +$dynamic("set$length").Storage = function(value) { return this.length = value; };
|
| +$dynamic("get$clear").Storage = function() {
|
| + return this.clear.bind(this);
|
| +}
|
| +$dynamic("get$dartObjectLocalStorage").Storage = function() {
|
| +
|
| + if (this === window.localStorage)
|
| + return window._dartLocalStorageLocalStorage;
|
| + else if (this === window.sessionStorage)
|
| + return window._dartSessionStorageLocalStorage;
|
| + else
|
| + throw new UnsupportedOperationException('Cannot dartObjectLocalStorage for unknown Storage object.');
|
| +
|
| +}
|
| +$dynamic("set$dartObjectLocalStorage").Storage = function(value) {
|
| +
|
| + if (this === window.localStorage)
|
| + window._dartLocalStorageLocalStorage = value;
|
| + else if (this === window.sessionStorage)
|
| + window._dartSessionStorageLocalStorage = value;
|
| + else
|
| + throw new UnsupportedOperationException('Cannot dartObjectLocalStorage for unknown Storage object.');
|
| +
|
| +}
|
| +$dynamic("clear$0").Storage = function() {
|
| + return this.clear();
|
| +};
|
| +// ********** Code for StorageEvent **************
|
| +// ********** Code for StorageInfo **************
|
| +$dynamic("get$dartObjectLocalStorage").StorageInfo = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").StorageInfo = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for StyleMedia **************
|
| +$dynamic("get$type").StyleMedia = function() { return this.type; };
|
| +$dynamic("set$type").StyleMedia = function(value) { return this.type = value; };
|
| +$dynamic("get$dartObjectLocalStorage").StyleMedia = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").StyleMedia = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for StyleSheet **************
|
| +$dynamic("get$title").StyleSheet = function() { return this.title; };
|
| +$dynamic("set$title").StyleSheet = function(value) { return this.title = value; };
|
| +$dynamic("get$type").StyleSheet = function() { return this.type; };
|
| +$dynamic("set$type").StyleSheet = function(value) { return this.type = value; };
|
| +$dynamic("get$dartObjectLocalStorage").StyleSheet = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").StyleSheet = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for StyleSheetList **************
|
| +$dynamic("get$length").StyleSheetList = function() { return this.length; };
|
| +$dynamic("set$length").StyleSheetList = function(value) { return this.length = value; };
|
| +$dynamic("$setindex").StyleSheetList = function(index, value) {
|
| + $throw(new UnsupportedOperationException("Cannot assign element of immutable List."));
|
| +}
|
| +$dynamic("get$dartObjectLocalStorage").StyleSheetList = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").StyleSheetList = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("item$1").StyleSheetList = function($0) {
|
| + return this.item($0);
|
| +};
|
| +// ********** Code for Text **************
|
| +// ********** Code for TextEvent **************
|
| +// ********** Code for TextMetrics **************
|
| +$dynamic("get$width").TextMetrics = function() { return this.width; };
|
| +$dynamic("set$width").TextMetrics = function(value) { return this.width = value; };
|
| +$dynamic("get$dartObjectLocalStorage").TextMetrics = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").TextMetrics = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for TextTrack **************
|
| +$dynamic("get$dartObjectLocalStorage").TextTrack = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").TextTrack = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("addEventListener$3").TextTrack = function($0, $1, $2) {
|
| + return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2);
|
| +};
|
| +$dynamic("dispatchEvent$1").TextTrack = function($0) {
|
| + return this.dispatchEvent($0);
|
| +};
|
| +$dynamic("removeEventListener$3").TextTrack = function($0, $1, $2) {
|
| + return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2);
|
| +};
|
| +// ********** Code for TextTrackCue **************
|
| +$dynamic("get$id").TextTrackCue = function() { return this.id; };
|
| +$dynamic("set$id").TextTrackCue = function(value) { return this.id = value; };
|
| +$dynamic("get$text").TextTrackCue = function() { return this.text; };
|
| +$dynamic("set$text").TextTrackCue = function(value) { return this.text = value; };
|
| +$dynamic("get$dartObjectLocalStorage").TextTrackCue = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").TextTrackCue = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("addEventListener$3").TextTrackCue = function($0, $1, $2) {
|
| + return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2);
|
| +};
|
| +$dynamic("dispatchEvent$1").TextTrackCue = function($0) {
|
| + return this.dispatchEvent($0);
|
| +};
|
| +$dynamic("removeEventListener$3").TextTrackCue = function($0, $1, $2) {
|
| + return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2);
|
| +};
|
| +// ********** Code for TextTrackCueList **************
|
| +$dynamic("get$length").TextTrackCueList = function() { return this.length; };
|
| +$dynamic("set$length").TextTrackCueList = function(value) { return this.length = value; };
|
| +$dynamic("get$dartObjectLocalStorage").TextTrackCueList = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").TextTrackCueList = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("item$1").TextTrackCueList = function($0) {
|
| + return this.item($0);
|
| +};
|
| +// ********** Code for dom_TextTrackList **************
|
| +$dynamic("get$length").TextTrackList = function() { return this.length; };
|
| +$dynamic("set$length").TextTrackList = function(value) { return this.length = value; };
|
| +$dynamic("get$dartObjectLocalStorage").TextTrackList = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").TextTrackList = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("addEventListener$3").TextTrackList = function($0, $1, $2) {
|
| + return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2);
|
| +};
|
| +$dynamic("dispatchEvent$1").TextTrackList = function($0) {
|
| + return this.dispatchEvent($0);
|
| +};
|
| +$dynamic("item$1").TextTrackList = function($0) {
|
| + return this.item($0);
|
| +};
|
| +$dynamic("removeEventListener$3").TextTrackList = function($0, $1, $2) {
|
| + return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2);
|
| +};
|
| +// ********** Code for TimeRanges **************
|
| +$dynamic("get$length").TimeRanges = function() { return this.length; };
|
| +$dynamic("set$length").TimeRanges = function(value) { return this.length = value; };
|
| +$dynamic("get$end").TimeRanges = function() {
|
| + return this.end.bind(this);
|
| +}
|
| +$dynamic("get$start").TimeRanges = function() {
|
| + return this.start.bind(this);
|
| +}
|
| +$dynamic("get$dartObjectLocalStorage").TimeRanges = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").TimeRanges = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for Touch **************
|
| +$dynamic("get$clientX").Touch = function() { return this.clientX; };
|
| +$dynamic("set$clientX").Touch = function(value) { return this.clientX = value; };
|
| +$dynamic("get$clientY").Touch = function() { return this.clientY; };
|
| +$dynamic("set$clientY").Touch = function(value) { return this.clientY = value; };
|
| +$dynamic("get$pageX").Touch = function() { return this.pageX; };
|
| +$dynamic("set$pageX").Touch = function(value) { return this.pageX = value; };
|
| +$dynamic("get$pageY").Touch = function() { return this.pageY; };
|
| +$dynamic("set$pageY").Touch = function(value) { return this.pageY = value; };
|
| +$dynamic("get$target").Touch = function() { return this.target; };
|
| +$dynamic("set$target").Touch = function(value) { return this.target = value; };
|
| +$dynamic("get$dartObjectLocalStorage").Touch = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").Touch = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for TouchEvent **************
|
| +$dynamic("get$changedTouches").TouchEvent = function() { return this.changedTouches; };
|
| +$dynamic("set$changedTouches").TouchEvent = function(value) { return this.changedTouches = value; };
|
| +$dynamic("get$touches").TouchEvent = function() { return this.touches; };
|
| +$dynamic("set$touches").TouchEvent = function(value) { return this.touches = value; };
|
| +// ********** Code for TouchList **************
|
| +$dynamic("get$length").TouchList = function() { return this.length; };
|
| +$dynamic("set$length").TouchList = function(value) { return this.length = value; };
|
| +$dynamic("$setindex").TouchList = function(index, value) {
|
| + $throw(new UnsupportedOperationException("Cannot assign element of immutable List."));
|
| +}
|
| +$dynamic("get$dartObjectLocalStorage").TouchList = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").TouchList = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("item$1").TouchList = function($0) {
|
| + return this.item($0);
|
| +};
|
| +// ********** Code for dom_TrackEvent **************
|
| +// ********** Code for dom_TreeWalker **************
|
| +$dynamic("get$firstChild").TreeWalker = function() {
|
| + return this.firstChild.bind(this);
|
| +}
|
| +$dynamic("get$lastChild").TreeWalker = function() {
|
| + return this.lastChild.bind(this);
|
| +}
|
| +$dynamic("get$parentNode").TreeWalker = function() {
|
| + return this.parentNode.bind(this);
|
| +}
|
| +$dynamic("get$dartObjectLocalStorage").TreeWalker = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").TreeWalker = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("filter$1").TreeWalker = function($0) {
|
| + return this.filter.call$1($0);
|
| +};
|
| +// ********** Code for UIEvent **************
|
| +$dynamic("get$keyCode").UIEvent = function() { return this.keyCode; };
|
| +$dynamic("set$keyCode").UIEvent = function(value) { return this.keyCode = value; };
|
| +$dynamic("get$pageX").UIEvent = function() { return this.pageX; };
|
| +$dynamic("set$pageX").UIEvent = function(value) { return this.pageX = value; };
|
| +$dynamic("get$pageY").UIEvent = function() { return this.pageY; };
|
| +$dynamic("set$pageY").UIEvent = function(value) { return this.pageY = value; };
|
| +$dynamic("get$view").UIEvent = function() { return this.view; };
|
| +$dynamic("set$view").UIEvent = function(value) { return this.view = value; };
|
| +// ********** Code for Uint16Array **************
|
| +$dynamic("is$List").Uint16Array = function(){return true};
|
| +$dynamic("get$length").Uint16Array = function() { return this.length; };
|
| +$dynamic("set$length").Uint16Array = function(value) { return this.length = value; };
|
| +// ********** Code for Uint32Array **************
|
| +$dynamic("is$List").Uint32Array = function(){return true};
|
| +$dynamic("get$length").Uint32Array = function() { return this.length; };
|
| +$dynamic("set$length").Uint32Array = function(value) { return this.length = value; };
|
| +// ********** Code for Uint8Array **************
|
| +$dynamic("is$List").Uint8Array = function(){return true};
|
| +$dynamic("get$length").Uint8Array = function() { return this.length; };
|
| +$dynamic("set$length").Uint8Array = function(value) { return this.length = value; };
|
| +// ********** Code for ValidityState **************
|
| +$dynamic("get$dartObjectLocalStorage").ValidityState = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").ValidityState = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for WaveShaperNode **************
|
| +// ********** Code for WebGLActiveInfo **************
|
| +$dynamic("get$name").WebGLActiveInfo = function() { return this.name; };
|
| +$dynamic("set$name").WebGLActiveInfo = function(value) { return this.name = value; };
|
| +$dynamic("get$type").WebGLActiveInfo = function() { return this.type; };
|
| +$dynamic("set$type").WebGLActiveInfo = function(value) { return this.type = value; };
|
| +$dynamic("get$dartObjectLocalStorage").WebGLActiveInfo = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").WebGLActiveInfo = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for WebGLBuffer **************
|
| +$dynamic("get$dartObjectLocalStorage").WebGLBuffer = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").WebGLBuffer = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for dom_WebGLCompressedTextures **************
|
| +$dynamic("get$dartObjectLocalStorage").WebGLCompressedTextures = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").WebGLCompressedTextures = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for WebGLContextAttributes **************
|
| +$dynamic("get$dartObjectLocalStorage").WebGLContextAttributes = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").WebGLContextAttributes = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for WebGLContextEvent **************
|
| +// ********** Code for WebGLDebugRendererInfo **************
|
| +$dynamic("get$dartObjectLocalStorage").WebGLDebugRendererInfo = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").WebGLDebugRendererInfo = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for WebGLDebugShaders **************
|
| +$dynamic("get$dartObjectLocalStorage").WebGLDebugShaders = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").WebGLDebugShaders = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for WebGLFramebuffer **************
|
| +$dynamic("get$dartObjectLocalStorage").WebGLFramebuffer = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").WebGLFramebuffer = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for dom_WebGLLoseContext **************
|
| +$dynamic("get$dartObjectLocalStorage").WebGLLoseContext = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").WebGLLoseContext = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for WebGLProgram **************
|
| +$dynamic("get$dartObjectLocalStorage").WebGLProgram = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").WebGLProgram = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for WebGLRenderbuffer **************
|
| +$dynamic("get$dartObjectLocalStorage").WebGLRenderbuffer = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").WebGLRenderbuffer = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for WebGLRenderingContext **************
|
| +$dynamic("get$clear").WebGLRenderingContext = function() {
|
| + return this.clear.bind(this);
|
| +}
|
| +$dynamic("clear$1").WebGLRenderingContext = function($0) {
|
| + return this.clear($0);
|
| +};
|
| +// ********** Code for WebGLShader **************
|
| +$dynamic("get$dartObjectLocalStorage").WebGLShader = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").WebGLShader = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for WebGLTexture **************
|
| +$dynamic("get$dartObjectLocalStorage").WebGLTexture = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").WebGLTexture = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for WebGLUniformLocation **************
|
| +$dynamic("get$dartObjectLocalStorage").WebGLUniformLocation = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").WebGLUniformLocation = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for WebGLVertexArrayObjectOES **************
|
| +$dynamic("get$dartObjectLocalStorage").WebGLVertexArrayObjectOES = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").WebGLVertexArrayObjectOES = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for dom_WebKitAnimation **************
|
| +$dynamic("get$name").WebKitAnimation = function() { return this.name; };
|
| +$dynamic("set$name").WebKitAnimation = function(value) { return this.name = value; };
|
| +$dynamic("get$dartObjectLocalStorage").WebKitAnimation = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").WebKitAnimation = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for dom_WebKitAnimationEvent **************
|
| +// ********** Code for dom_WebKitAnimationList **************
|
| +$dynamic("get$length").WebKitAnimationList = function() { return this.length; };
|
| +$dynamic("set$length").WebKitAnimationList = function(value) { return this.length = value; };
|
| +$dynamic("get$dartObjectLocalStorage").WebKitAnimationList = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").WebKitAnimationList = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("item$1").WebKitAnimationList = function($0) {
|
| + return this.item($0);
|
| +};
|
| +// ********** Code for dom_WebKitBlobBuilder **************
|
| +$dynamic("get$dartObjectLocalStorage").WebKitBlobBuilder = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").WebKitBlobBuilder = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for WebKitCSSFilterValue **************
|
| +// ********** Code for dom_WebKitCSSKeyframeRule **************
|
| +$dynamic("get$style").WebKitCSSKeyframeRule = function() { return this.style; };
|
| +$dynamic("set$style").WebKitCSSKeyframeRule = function(value) { return this.style = value; };
|
| +// ********** Code for dom_WebKitCSSKeyframesRule **************
|
| +$dynamic("get$name").WebKitCSSKeyframesRule = function() { return this.name; };
|
| +$dynamic("set$name").WebKitCSSKeyframesRule = function(value) { return this.name = value; };
|
| +// ********** Code for dom_WebKitCSSMatrix **************
|
| +$dynamic("get$dartObjectLocalStorage").WebKitCSSMatrix = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").WebKitCSSMatrix = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("toString$0").WebKitCSSMatrix = function() {
|
| + return this.toString();
|
| +};
|
| +// ********** Code for dom_WebKitCSSTransformValue **************
|
| +// ********** Code for WebKitMutationObserver **************
|
| +$dynamic("get$dartObjectLocalStorage").WebKitMutationObserver = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").WebKitMutationObserver = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for dom_WebKitNamedFlow **************
|
| +$dynamic("get$dartObjectLocalStorage").WebKitNamedFlow = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").WebKitNamedFlow = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for dom_WebKitPoint **************
|
| +$dynamic("get$x").WebKitPoint = function() { return this.x; };
|
| +$dynamic("set$x").WebKitPoint = function(value) { return this.x = value; };
|
| +$dynamic("get$y").WebKitPoint = function() { return this.y; };
|
| +$dynamic("set$y").WebKitPoint = function(value) { return this.y = value; };
|
| +$dynamic("get$dartObjectLocalStorage").WebKitPoint = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").WebKitPoint = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for dom_WebKitTransitionEvent **************
|
| +// ********** Code for WebSocket **************
|
| +$dynamic("get$protocol").WebSocket = function() { return this.protocol; };
|
| +$dynamic("set$protocol").WebSocket = function(value) { return this.protocol = value; };
|
| +$dynamic("get$readyState").WebSocket = function() { return this.readyState; };
|
| +$dynamic("set$readyState").WebSocket = function(value) { return this.readyState = value; };
|
| +$dynamic("get$dartObjectLocalStorage").WebSocket = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").WebSocket = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("addEventListener$3").WebSocket = function($0, $1, $2) {
|
| + return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2);
|
| +};
|
| +$dynamic("dispatchEvent$1").WebSocket = function($0) {
|
| + return this.dispatchEvent($0);
|
| +};
|
| +$dynamic("removeEventListener$3").WebSocket = function($0, $1, $2) {
|
| + return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2);
|
| +};
|
| +$dynamic("send$1").WebSocket = function($0) {
|
| + return this.send($0);
|
| +};
|
| +// ********** Code for WheelEvent **************
|
| +$dynamic("get$clientX").WheelEvent = function() { return this.clientX; };
|
| +$dynamic("set$clientX").WheelEvent = function(value) { return this.clientX = value; };
|
| +$dynamic("get$clientY").WheelEvent = function() { return this.clientY; };
|
| +$dynamic("set$clientY").WheelEvent = function(value) { return this.clientY = value; };
|
| +$dynamic("get$wheelDeltaX").WheelEvent = function() { return this.wheelDeltaX; };
|
| +$dynamic("set$wheelDeltaX").WheelEvent = function(value) { return this.wheelDeltaX = value; };
|
| +$dynamic("get$wheelDeltaY").WheelEvent = function() { return this.wheelDeltaY; };
|
| +$dynamic("set$wheelDeltaY").WheelEvent = function(value) { return this.wheelDeltaY = value; };
|
| +$dynamic("get$x").WheelEvent = function() { return this.x; };
|
| +$dynamic("set$x").WheelEvent = function(value) { return this.x = value; };
|
| +$dynamic("get$y").WheelEvent = function() { return this.y; };
|
| +$dynamic("set$y").WheelEvent = function(value) { return this.y = value; };
|
| +// ********** Code for Worker **************
|
| +$dynamic("postMessage$1").Worker = function($0) {
|
| + return this.postMessage($0);
|
| +};
|
| +$dynamic("postMessage$2").Worker = function($0, $1) {
|
| + return this.postMessage($0, $1);
|
| +};
|
| +// ********** Code for dom_WorkerContext **************
|
| +$dynamic("get$location").WorkerContext = function() { return this.location; };
|
| +$dynamic("set$location").WorkerContext = function(value) { return this.location = value; };
|
| +$dynamic("get$navigator").WorkerContext = function() { return this.navigator; };
|
| +$dynamic("set$navigator").WorkerContext = function(value) { return this.navigator = value; };
|
| +$dynamic("get$dartObjectLocalStorage").WorkerContext = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").WorkerContext = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("addEventListener$3").WorkerContext = function($0, $1, $2) {
|
| + return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2);
|
| +};
|
| +$dynamic("clearInterval$1").WorkerContext = function($0) {
|
| + return this.clearInterval($0);
|
| +};
|
| +$dynamic("clearTimeout$1").WorkerContext = function($0) {
|
| + return this.clearTimeout($0);
|
| +};
|
| +$dynamic("dispatchEvent$1").WorkerContext = function($0) {
|
| + return this.dispatchEvent($0);
|
| +};
|
| +$dynamic("removeEventListener$3").WorkerContext = function($0, $1, $2) {
|
| + return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2);
|
| +};
|
| +$dynamic("setInterval$2").WorkerContext = function($0, $1) {
|
| + return this.setInterval($wrap_call$0(to$call$0($0)), $1);
|
| +};
|
| +$dynamic("setTimeout$2").WorkerContext = function($0, $1) {
|
| + return this.setTimeout($wrap_call$0(to$call$0($0)), $1);
|
| +};
|
| +// ********** Code for dom_WorkerLocation **************
|
| +$dynamic("get$hash").WorkerLocation = function() { return this.hash; };
|
| +$dynamic("set$hash").WorkerLocation = function(value) { return this.hash = value; };
|
| +$dynamic("get$host").WorkerLocation = function() { return this.host; };
|
| +$dynamic("set$host").WorkerLocation = function(value) { return this.host = value; };
|
| +$dynamic("get$protocol").WorkerLocation = function() { return this.protocol; };
|
| +$dynamic("set$protocol").WorkerLocation = function(value) { return this.protocol = value; };
|
| +$dynamic("get$dartObjectLocalStorage").WorkerLocation = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").WorkerLocation = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("toString$0").WorkerLocation = function() {
|
| + return this.toString();
|
| +};
|
| +// ********** Code for dom_WorkerNavigator **************
|
| +$dynamic("get$userAgent").WorkerNavigator = function() { return this.userAgent; };
|
| +$dynamic("set$userAgent").WorkerNavigator = function(value) { return this.userAgent = value; };
|
| +$dynamic("get$dartObjectLocalStorage").WorkerNavigator = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").WorkerNavigator = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for XMLHttpRequest **************
|
| +$dynamic("get$readyState").XMLHttpRequest = function() { return this.readyState; };
|
| +$dynamic("set$readyState").XMLHttpRequest = function(value) { return this.readyState = value; };
|
| +$dynamic("get$responseText").XMLHttpRequest = function() { return this.responseText; };
|
| +$dynamic("set$responseText").XMLHttpRequest = function(value) { return this.responseText = value; };
|
| +$dynamic("get$status").XMLHttpRequest = function() { return this.status; };
|
| +$dynamic("set$status").XMLHttpRequest = function(value) { return this.status = value; };
|
| +$dynamic("get$withCredentials").XMLHttpRequest = function() { return this.withCredentials; };
|
| +$dynamic("set$withCredentials").XMLHttpRequest = function(value) { return this.withCredentials = value; };
|
| +$dynamic("get$open").XMLHttpRequest = function() {
|
| + return this.open.bind(this);
|
| +}
|
| +$dynamic("get$dartObjectLocalStorage").XMLHttpRequest = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").XMLHttpRequest = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("addEventListener$3").XMLHttpRequest = function($0, $1, $2) {
|
| + return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2);
|
| +};
|
| +$dynamic("dispatchEvent$1").XMLHttpRequest = function($0) {
|
| + return this.dispatchEvent($0);
|
| +};
|
| +$dynamic("open$2").XMLHttpRequest = function($0, $1) {
|
| + return this.open($0, $1);
|
| +};
|
| +$dynamic("open$3").XMLHttpRequest = function($0, $1, $2) {
|
| + return this.open($0, $1, $2);
|
| +};
|
| +$dynamic("open$4").XMLHttpRequest = function($0, $1, $2, $3) {
|
| + return this.open($0, $1, $2, $3);
|
| +};
|
| +$dynamic("open$5").XMLHttpRequest = function($0, $1, $2, $3, $4) {
|
| + return this.open($0, $1, $2, $3, $4);
|
| +};
|
| +$dynamic("removeEventListener$3").XMLHttpRequest = function($0, $1, $2) {
|
| + return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2);
|
| +};
|
| +$dynamic("send$0").XMLHttpRequest = function() {
|
| + return this.send();
|
| +};
|
| +$dynamic("send$1").XMLHttpRequest = function($0) {
|
| + return this.send($0);
|
| +};
|
| +// ********** Code for XMLHttpRequestException **************
|
| +$dynamic("get$name").XMLHttpRequestException = function() { return this.name; };
|
| +$dynamic("set$name").XMLHttpRequestException = function(value) { return this.name = value; };
|
| +$dynamic("get$dartObjectLocalStorage").XMLHttpRequestException = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").XMLHttpRequestException = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("toString$0").XMLHttpRequestException = function() {
|
| + return this.toString();
|
| +};
|
| +// ********** Code for XMLHttpRequestProgressEvent **************
|
| +$dynamic("get$position").XMLHttpRequestProgressEvent = function() { return this.position; };
|
| +$dynamic("set$position").XMLHttpRequestProgressEvent = function(value) { return this.position = value; };
|
| +// ********** Code for XMLHttpRequestUpload **************
|
| +$dynamic("get$dartObjectLocalStorage").XMLHttpRequestUpload = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").XMLHttpRequestUpload = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("addEventListener$3").XMLHttpRequestUpload = function($0, $1, $2) {
|
| + return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2);
|
| +};
|
| +$dynamic("dispatchEvent$1").XMLHttpRequestUpload = function($0) {
|
| + return this.dispatchEvent($0);
|
| +};
|
| +$dynamic("removeEventListener$3").XMLHttpRequestUpload = function($0, $1, $2) {
|
| + return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2);
|
| +};
|
| +// ********** Code for dom_XMLSerializer **************
|
| +$dynamic("get$dartObjectLocalStorage").XMLSerializer = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").XMLSerializer = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for dom_XPathEvaluator **************
|
| +$dynamic("get$dartObjectLocalStorage").XPathEvaluator = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").XPathEvaluator = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for dom_XPathException **************
|
| +$dynamic("get$name").XPathException = function() { return this.name; };
|
| +$dynamic("set$name").XPathException = function(value) { return this.name = value; };
|
| +$dynamic("get$dartObjectLocalStorage").XPathException = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").XPathException = function(value) { return this.dartObjectLocalStorage = value; };
|
| +$dynamic("toString$0").XPathException = function() {
|
| + return this.toString();
|
| +};
|
| +// ********** Code for dom_XPathExpression **************
|
| +$dynamic("get$dartObjectLocalStorage").XPathExpression = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").XPathExpression = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for dom_XPathNSResolver **************
|
| +$dynamic("get$dartObjectLocalStorage").XPathNSResolver = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").XPathNSResolver = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for dom_XPathResult **************
|
| +$dynamic("get$dartObjectLocalStorage").XPathResult = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").XPathResult = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for dom_XSLTProcessor **************
|
| +$dynamic("get$dartObjectLocalStorage").XSLTProcessor = function() { return this.dartObjectLocalStorage; };
|
| +$dynamic("set$dartObjectLocalStorage").XSLTProcessor = function(value) { return this.dartObjectLocalStorage = value; };
|
| +// ********** Code for dom__Collections **************
|
| +function dom__Collections() {}
|
| +// ********** Code for _VariableSizeListIterator_T **************
|
| +$inherits(_VariableSizeListIterator_T, dom__VariableSizeListIterator);
|
| +function _VariableSizeListIterator_T() {}
|
| +// ********** Code for dom__FixedSizeListIterator **************
|
| +$inherits(dom__FixedSizeListIterator, _VariableSizeListIterator_T);
|
| +function dom__FixedSizeListIterator() {}
|
| +dom__FixedSizeListIterator.prototype.hasNext = function() {
|
| + return this._dom_length > this._dom_pos;
|
| +}
|
| +dom__FixedSizeListIterator.prototype.hasNext$0 = dom__FixedSizeListIterator.prototype.hasNext;
|
| +// ********** Code for dom__VariableSizeListIterator **************
|
| +function dom__VariableSizeListIterator() {}
|
| +dom__VariableSizeListIterator.prototype.hasNext = function() {
|
| + return this._dom_array.get$length() > this._dom_pos;
|
| +}
|
| +dom__VariableSizeListIterator.prototype.next = function() {
|
| + if (!this.hasNext()) {
|
| + $throw(const$0001);
|
| + }
|
| + return this._dom_array.$index(this._dom_pos++);
|
| +}
|
| +dom__VariableSizeListIterator.prototype.hasNext$0 = dom__VariableSizeListIterator.prototype.hasNext;
|
| +dom__VariableSizeListIterator.prototype.next$0 = dom__VariableSizeListIterator.prototype.next;
|
| +// ********** Code for _Lists **************
|
| +function _Lists() {}
|
| +// ********** Code for top level **************
|
| +function get$window() {
|
| + return window;
|
| +}
|
| +function get$document() {
|
| + return window.document;
|
| +}
|
| +// ********** Library htmlimpl **************
|
| +// ********** Code for DOMWrapperBase **************
|
| +function DOMWrapperBase() {}
|
| +DOMWrapperBase._wrap$ctor = function(_ptr) {
|
| + this._ptr = _ptr;
|
| + this._ptr.set$dartObjectLocalStorage(this);
|
| +}
|
| +DOMWrapperBase._wrap$ctor.prototype = DOMWrapperBase.prototype;
|
| +DOMWrapperBase.prototype.get$_ptr = function() { return this._ptr; };
|
| +// ********** Code for EventTargetWrappingImplementation **************
|
| +$inherits(EventTargetWrappingImplementation, DOMWrapperBase);
|
| +function EventTargetWrappingImplementation() {}
|
| +EventTargetWrappingImplementation._wrap$ctor = function(ptr) {
|
| + DOMWrapperBase._wrap$ctor.call(this, ptr);
|
| +}
|
| +EventTargetWrappingImplementation._wrap$ctor.prototype = EventTargetWrappingImplementation.prototype;
|
| +EventTargetWrappingImplementation.prototype.get$on = function() {
|
| + if (this._on == null) {
|
| + this._on = new EventsImplementation._wrap$ctor(this._ptr);
|
| + }
|
| + return this._on;
|
| +}
|
| +// ********** Code for NodeWrappingImplementation **************
|
| +$inherits(NodeWrappingImplementation, EventTargetWrappingImplementation);
|
| +function NodeWrappingImplementation() {}
|
| +NodeWrappingImplementation._wrap$ctor = function(ptr) {
|
| + EventTargetWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +NodeWrappingImplementation._wrap$ctor.prototype = NodeWrappingImplementation.prototype;
|
| +NodeWrappingImplementation.prototype.get$nodes = function() {
|
| + if (this._nodes == null) {
|
| + this._nodes = new _ChildrenNodeList._wrap$ctor(this._ptr);
|
| + }
|
| + return this._nodes;
|
| +}
|
| +NodeWrappingImplementation.prototype.get$document = function() {
|
| + return LevelDom.wrapDocument(this._ptr.get$ownerDocument());
|
| +}
|
| +NodeWrappingImplementation.prototype.get$parent = function() {
|
| + return LevelDom.wrapNode(this._ptr.get$parentNode());
|
| +}
|
| +NodeWrappingImplementation.prototype.get$text = function() {
|
| + return this._ptr.get$textContent();
|
| +}
|
| +NodeWrappingImplementation.prototype.set$text = function(value) {
|
| + this._ptr.set$textContent(value);
|
| +}
|
| +NodeWrappingImplementation.prototype.replaceWith = function(otherNode) {
|
| + try {
|
| + this._ptr.get$parentNode().replaceChild$2(LevelDom.unwrap(otherNode), this._ptr);
|
| + } catch (e) {
|
| + e = _toDartException(e);
|
| + }
|
| + return this;
|
| +}
|
| +NodeWrappingImplementation.prototype.remove = function() {
|
| + if (this._ptr.get$parentNode() != null) {
|
| + this._ptr.get$parentNode().removeChild$1(this._ptr);
|
| + }
|
| + return this;
|
| +}
|
| +NodeWrappingImplementation.prototype.contains = function(otherNode) {
|
| + while (otherNode != null && $ne(otherNode, this)) {
|
| + otherNode = otherNode.get$parent();
|
| + }
|
| + return $eq(otherNode, this);
|
| +}
|
| +NodeWrappingImplementation.prototype.contains$1 = NodeWrappingImplementation.prototype.contains;
|
| +NodeWrappingImplementation.prototype.remove$0 = NodeWrappingImplementation.prototype.remove;
|
| +NodeWrappingImplementation.prototype.replaceWith$1 = NodeWrappingImplementation.prototype.replaceWith;
|
| +// ********** Code for ElementWrappingImplementation **************
|
| +$inherits(ElementWrappingImplementation, NodeWrappingImplementation);
|
| +function ElementWrappingImplementation() {}
|
| +ElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + NodeWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +ElementWrappingImplementation._wrap$ctor.prototype = ElementWrappingImplementation.prototype;
|
| +ElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +ElementWrappingImplementation.ElementWrappingImplementation$html$factory = function(html) {
|
| + var parentTag = "div";
|
| + var tag;
|
| + var match = const$0002.firstMatch(html);
|
| + if (match != null) {
|
| + tag = match.group$1((1)).toLowerCase$0();
|
| + if (const$0005.containsKey(tag)) {
|
| + parentTag = const$0005.$index(tag);
|
| + }
|
| + }
|
| + var temp = get$document().createElement(parentTag);
|
| + temp.set$innerHTML(html);
|
| + if ($eq(temp.get$childElementCount(), (1))) {
|
| + return LevelDom.wrapElement(temp.get$firstElementChild());
|
| + }
|
| + else if (parentTag == "html" && $eq(temp.get$childElementCount(), (2))) {
|
| + return LevelDom.wrapElement(temp.get$children().item$1(tag == "head" ? (0) : (1)));
|
| + }
|
| + else {
|
| + $throw(new IllegalArgumentException(("HTML had " + temp.get$childElementCount() + " ") + "top level elements but 1 expected"));
|
| + }
|
| +}
|
| +ElementWrappingImplementation.ElementWrappingImplementation$tag$factory = function(tag) {
|
| + return LevelDom.wrapElement(get$document().createElement(tag));
|
| +}
|
| +ElementWrappingImplementation.prototype.get$attributes = function() {
|
| + if (this._elementAttributeMap == null) {
|
| + this._elementAttributeMap = new ElementAttributeMap._wrap$ctor(this._ptr);
|
| + }
|
| + return this._elementAttributeMap;
|
| +}
|
| +ElementWrappingImplementation.prototype.get$elements = function() {
|
| + if (this._elements == null) {
|
| + this._elements = new _ChildrenElementList._wrap$ctor(this._ptr);
|
| + }
|
| + return this._elements;
|
| +}
|
| +ElementWrappingImplementation.prototype.get$classes = function() {
|
| + if (this._cssClassSet == null) {
|
| + this._cssClassSet = new _CssClassSet(this._ptr);
|
| + }
|
| + return this._cssClassSet;
|
| +}
|
| +ElementWrappingImplementation.prototype.get$firstElementChild = function() {
|
| + return LevelDom.wrapElement(this._ptr.get$firstElementChild());
|
| +}
|
| +ElementWrappingImplementation.prototype.get$id = function() {
|
| + return this._ptr.get$id();
|
| +}
|
| +ElementWrappingImplementation.prototype.set$innerHTML = function(value) {
|
| + this._ptr.set$innerHTML(value);
|
| +}
|
| +ElementWrappingImplementation.prototype.get$lastElementChild = function() {
|
| + return LevelDom.wrapElement(this._ptr.get$lastElementChild());
|
| +}
|
| +ElementWrappingImplementation.prototype.get$nextElementSibling = function() {
|
| + return LevelDom.wrapElement(this._ptr.get$nextElementSibling());
|
| +}
|
| +ElementWrappingImplementation.prototype.get$previousElementSibling = function() {
|
| + return LevelDom.wrapElement(this._ptr.get$previousElementSibling());
|
| +}
|
| +ElementWrappingImplementation.prototype.get$style = function() {
|
| + return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style());
|
| +}
|
| +ElementWrappingImplementation.prototype.set$tabIndex = function(value) {
|
| + this._ptr.set$tabIndex(value);
|
| +}
|
| +ElementWrappingImplementation.prototype.get$title = function() {
|
| + return this._ptr.get$title();
|
| +}
|
| +ElementWrappingImplementation.prototype.blur = function() {
|
| + this._ptr.blur$0();
|
| +}
|
| +ElementWrappingImplementation.prototype.get$blur = function() {
|
| + return this.blur.bind(this);
|
| +}
|
| +ElementWrappingImplementation.prototype.contains = function(element) {
|
| + return this._ptr.contains$1(LevelDom.unwrap(element));
|
| +}
|
| +ElementWrappingImplementation.prototype.focus = function() {
|
| + this._ptr.focus$0();
|
| +}
|
| +ElementWrappingImplementation.prototype.get$focus = function() {
|
| + return this.focus.bind(this);
|
| +}
|
| +ElementWrappingImplementation.prototype.query = function(selectors) {
|
| + return LevelDom.wrapElement(this._ptr.querySelector$1(selectors));
|
| +}
|
| +ElementWrappingImplementation.prototype.queryAll = function(selectors) {
|
| + return new FrozenElementList._wrap$ctor(this._ptr.querySelectorAll$1(selectors));
|
| +}
|
| +ElementWrappingImplementation.prototype.get$rect = function() {
|
| + var $this = this; // closure support
|
| + return _createMeasurementFuture((function () {
|
| + return new ElementRectWrappingImplementation($this._ptr);
|
| + })
|
| + , new CompleterImpl());
|
| +}
|
| +ElementWrappingImplementation.prototype.get$computedStyle = function() {
|
| + return this.getComputedStyle("");
|
| +}
|
| +ElementWrappingImplementation.prototype.getComputedStyle = function(pseudoElement) {
|
| + var $this = this; // closure support
|
| + return _createMeasurementFuture((function () {
|
| + return LevelDom.wrapCSSStyleDeclaration(get$window().getComputedStyle($this._ptr, pseudoElement));
|
| + })
|
| + , new CompleterImpl());
|
| +}
|
| +ElementWrappingImplementation.prototype.get$on = function() {
|
| + if (this._on == null) {
|
| + this._on = new ElementEventsImplementation._wrap$ctor(this._ptr);
|
| + }
|
| + return this._on;
|
| +}
|
| +ElementWrappingImplementation.prototype.blur$0 = ElementWrappingImplementation.prototype.blur;
|
| +ElementWrappingImplementation.prototype.contains$1 = ElementWrappingImplementation.prototype.contains;
|
| +ElementWrappingImplementation.prototype.focus$0 = ElementWrappingImplementation.prototype.focus;
|
| +ElementWrappingImplementation.prototype.query$1 = ElementWrappingImplementation.prototype.query;
|
| +ElementWrappingImplementation.prototype.queryAll$1 = ElementWrappingImplementation.prototype.queryAll;
|
| +// ********** Code for AnchorElementWrappingImplementation **************
|
| +$inherits(AnchorElementWrappingImplementation, ElementWrappingImplementation);
|
| +function AnchorElementWrappingImplementation() {}
|
| +AnchorElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +AnchorElementWrappingImplementation._wrap$ctor.prototype = AnchorElementWrappingImplementation.prototype;
|
| +AnchorElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +AnchorElementWrappingImplementation.prototype.get$hash = function() {
|
| + return this._ptr.get$hash();
|
| +}
|
| +AnchorElementWrappingImplementation.prototype.get$host = function() {
|
| + return this._ptr.get$host();
|
| +}
|
| +AnchorElementWrappingImplementation.prototype.get$name = function() {
|
| + return this._ptr.get$name();
|
| +}
|
| +AnchorElementWrappingImplementation.prototype.get$protocol = function() {
|
| + return this._ptr.get$protocol();
|
| +}
|
| +AnchorElementWrappingImplementation.prototype.get$target = function() {
|
| + return this._ptr.get$target();
|
| +}
|
| +AnchorElementWrappingImplementation.prototype.set$target = function(value) {
|
| + this._ptr.set$target(value);
|
| +}
|
| +AnchorElementWrappingImplementation.prototype.get$text = function() {
|
| + return this._ptr.get$text();
|
| +}
|
| +AnchorElementWrappingImplementation.prototype.get$type = function() {
|
| + return this._ptr.get$type();
|
| +}
|
| +AnchorElementWrappingImplementation.prototype.toString = function() {
|
| + return this._ptr.toString$0();
|
| +}
|
| +AnchorElementWrappingImplementation.prototype.toString$0 = AnchorElementWrappingImplementation.prototype.toString;
|
| +// ********** Code for AreaElementWrappingImplementation **************
|
| +$inherits(AreaElementWrappingImplementation, ElementWrappingImplementation);
|
| +function AreaElementWrappingImplementation() {}
|
| +AreaElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +AreaElementWrappingImplementation._wrap$ctor.prototype = AreaElementWrappingImplementation.prototype;
|
| +AreaElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +AreaElementWrappingImplementation.prototype.get$hash = function() {
|
| + return this._ptr.get$hash();
|
| +}
|
| +AreaElementWrappingImplementation.prototype.get$host = function() {
|
| + return this._ptr.get$host();
|
| +}
|
| +AreaElementWrappingImplementation.prototype.get$protocol = function() {
|
| + return this._ptr.get$protocol();
|
| +}
|
| +AreaElementWrappingImplementation.prototype.get$target = function() {
|
| + return this._ptr.get$target();
|
| +}
|
| +AreaElementWrappingImplementation.prototype.set$target = function(value) {
|
| + this._ptr.set$target(value);
|
| +}
|
| +// ********** Code for MediaElementWrappingImplementation **************
|
| +$inherits(MediaElementWrappingImplementation, ElementWrappingImplementation);
|
| +function MediaElementWrappingImplementation() {}
|
| +MediaElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +MediaElementWrappingImplementation._wrap$ctor.prototype = MediaElementWrappingImplementation.prototype;
|
| +MediaElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +MediaElementWrappingImplementation.prototype.get$readyState = function() {
|
| + return this._ptr.get$readyState();
|
| +}
|
| +MediaElementWrappingImplementation.prototype.load = function() {
|
| + this._ptr.load$0();
|
| + return;
|
| +}
|
| +MediaElementWrappingImplementation.prototype.get$load = function() {
|
| + return this.load.bind(this);
|
| +}
|
| +MediaElementWrappingImplementation.prototype.load$0 = MediaElementWrappingImplementation.prototype.load;
|
| +// ********** Code for AudioElementWrappingImplementation **************
|
| +$inherits(AudioElementWrappingImplementation, MediaElementWrappingImplementation);
|
| +function AudioElementWrappingImplementation() {}
|
| +AudioElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + MediaElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +AudioElementWrappingImplementation._wrap$ctor.prototype = AudioElementWrappingImplementation.prototype;
|
| +AudioElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for EventWrappingImplementation **************
|
| +$inherits(EventWrappingImplementation, DOMWrapperBase);
|
| +function EventWrappingImplementation() {}
|
| +EventWrappingImplementation._wrap$ctor = function(ptr) {
|
| + DOMWrapperBase._wrap$ctor.call(this, ptr);
|
| +}
|
| +EventWrappingImplementation._wrap$ctor.prototype = EventWrappingImplementation.prototype;
|
| +EventWrappingImplementation.EventWrappingImplementation$factory = function(type, canBubble, cancelable) {
|
| + var e = get$document().createEvent("Event");
|
| + e.initEvent$3(type, canBubble, cancelable);
|
| + return LevelDom.wrapEvent(e);
|
| +}
|
| +EventWrappingImplementation.prototype.get$target = function() {
|
| + return LevelDom.wrapEventTarget(this._ptr.get$target());
|
| +}
|
| +EventWrappingImplementation.prototype.get$timeStamp = function() {
|
| + return this._ptr.get$timeStamp();
|
| +}
|
| +EventWrappingImplementation.prototype.get$type = function() {
|
| + return this._ptr.get$type();
|
| +}
|
| +EventWrappingImplementation.prototype.preventDefault = function() {
|
| + this._ptr.preventDefault$0();
|
| + return;
|
| +}
|
| +EventWrappingImplementation.prototype.stopPropagation = function() {
|
| + this._ptr.stopPropagation$0();
|
| + return;
|
| +}
|
| +EventWrappingImplementation.prototype.preventDefault$0 = EventWrappingImplementation.prototype.preventDefault;
|
| +EventWrappingImplementation.prototype.stopPropagation$0 = EventWrappingImplementation.prototype.stopPropagation;
|
| +EventWrappingImplementation.prototype.timeStamp$0 = function() {
|
| + return this.get$timeStamp().call$0();
|
| +};
|
| +// ********** Code for AudioProcessingEventWrappingImplementation **************
|
| +$inherits(AudioProcessingEventWrappingImplementation, EventWrappingImplementation);
|
| +function AudioProcessingEventWrappingImplementation() {}
|
| +AudioProcessingEventWrappingImplementation._wrap$ctor = function(ptr) {
|
| + EventWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +AudioProcessingEventWrappingImplementation._wrap$ctor.prototype = AudioProcessingEventWrappingImplementation.prototype;
|
| +// ********** Code for BRElementWrappingImplementation **************
|
| +$inherits(BRElementWrappingImplementation, ElementWrappingImplementation);
|
| +function BRElementWrappingImplementation() {}
|
| +BRElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +BRElementWrappingImplementation._wrap$ctor.prototype = BRElementWrappingImplementation.prototype;
|
| +BRElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +BRElementWrappingImplementation.prototype.get$clear = function() {
|
| + return this._ptr.get$clear();
|
| +}
|
| +BRElementWrappingImplementation.prototype.clear$0 = function() {
|
| + return this.get$clear().call$0();
|
| +};
|
| +BRElementWrappingImplementation.prototype.clear$1 = function($0) {
|
| + return this.get$clear().call$1($0);
|
| +};
|
| +// ********** Code for BaseElementWrappingImplementation **************
|
| +$inherits(BaseElementWrappingImplementation, ElementWrappingImplementation);
|
| +function BaseElementWrappingImplementation() {}
|
| +BaseElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +BaseElementWrappingImplementation._wrap$ctor.prototype = BaseElementWrappingImplementation.prototype;
|
| +BaseElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +BaseElementWrappingImplementation.prototype.get$target = function() {
|
| + return this._ptr.get$target();
|
| +}
|
| +BaseElementWrappingImplementation.prototype.set$target = function(value) {
|
| + this._ptr.set$target(value);
|
| +}
|
| +// ********** Code for ButtonElementWrappingImplementation **************
|
| +$inherits(ButtonElementWrappingImplementation, ElementWrappingImplementation);
|
| +function ButtonElementWrappingImplementation() {}
|
| +ButtonElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +ButtonElementWrappingImplementation._wrap$ctor.prototype = ButtonElementWrappingImplementation.prototype;
|
| +ButtonElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +ButtonElementWrappingImplementation.prototype.get$name = function() {
|
| + return this._ptr.get$name();
|
| +}
|
| +ButtonElementWrappingImplementation.prototype.get$type = function() {
|
| + return this._ptr.get$type();
|
| +}
|
| +ButtonElementWrappingImplementation.prototype.get$value = function() {
|
| + return this._ptr.get$value();
|
| +}
|
| +ButtonElementWrappingImplementation.prototype.set$value = function(value) {
|
| + this._ptr.set$value(value);
|
| +}
|
| +ButtonElementWrappingImplementation.prototype.click = function() {
|
| + this._ptr.click$0();
|
| + return;
|
| +}
|
| +ButtonElementWrappingImplementation.prototype.get$click = function() {
|
| + return this.click.bind(this);
|
| +}
|
| +ButtonElementWrappingImplementation.prototype.click$0 = ButtonElementWrappingImplementation.prototype.click;
|
| +// ********** Code for CharacterDataWrappingImplementation **************
|
| +$inherits(CharacterDataWrappingImplementation, NodeWrappingImplementation);
|
| +function CharacterDataWrappingImplementation() {}
|
| +CharacterDataWrappingImplementation._wrap$ctor = function(ptr) {
|
| + NodeWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +CharacterDataWrappingImplementation._wrap$ctor.prototype = CharacterDataWrappingImplementation.prototype;
|
| +CharacterDataWrappingImplementation.prototype.get$length = function() {
|
| + return this._ptr.get$length();
|
| +}
|
| +// ********** Code for TextWrappingImplementation **************
|
| +$inherits(TextWrappingImplementation, CharacterDataWrappingImplementation);
|
| +function TextWrappingImplementation() {}
|
| +TextWrappingImplementation._wrap$ctor = function(ptr) {
|
| + CharacterDataWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +TextWrappingImplementation._wrap$ctor.prototype = TextWrappingImplementation.prototype;
|
| +// ********** Code for CDATASectionWrappingImplementation **************
|
| +$inherits(CDATASectionWrappingImplementation, TextWrappingImplementation);
|
| +function CDATASectionWrappingImplementation() {}
|
| +CDATASectionWrappingImplementation._wrap$ctor = function(ptr) {
|
| + TextWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +CDATASectionWrappingImplementation._wrap$ctor.prototype = CDATASectionWrappingImplementation.prototype;
|
| +// ********** Code for CanvasElementWrappingImplementation **************
|
| +$inherits(CanvasElementWrappingImplementation, ElementWrappingImplementation);
|
| +function CanvasElementWrappingImplementation() {}
|
| +CanvasElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +CanvasElementWrappingImplementation._wrap$ctor.prototype = CanvasElementWrappingImplementation.prototype;
|
| +CanvasElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +CanvasElementWrappingImplementation.prototype.get$height = function() {
|
| + return this._ptr.get$height();
|
| +}
|
| +CanvasElementWrappingImplementation.prototype.set$height = function(value) {
|
| + this._ptr.set$height(value);
|
| +}
|
| +CanvasElementWrappingImplementation.prototype.get$width = function() {
|
| + return this._ptr.get$width();
|
| +}
|
| +CanvasElementWrappingImplementation.prototype.set$width = function(value) {
|
| + this._ptr.set$width(value);
|
| +}
|
| +CanvasElementWrappingImplementation.prototype.getContext = function(contextId) {
|
| + if (contextId == null) {
|
| + return LevelDom.wrapCanvasRenderingContext(this._ptr.getContext$0());
|
| + }
|
| + else {
|
| + return LevelDom.wrapCanvasRenderingContext(this._ptr.getContext$1(contextId));
|
| + }
|
| +}
|
| +CanvasElementWrappingImplementation.prototype.getContext$0 = CanvasElementWrappingImplementation.prototype.getContext;
|
| +CanvasElementWrappingImplementation.prototype.getContext$1 = CanvasElementWrappingImplementation.prototype.getContext;
|
| +// ********** Code for CanvasRenderingContextWrappingImplementation **************
|
| +$inherits(CanvasRenderingContextWrappingImplementation, DOMWrapperBase);
|
| +function CanvasRenderingContextWrappingImplementation() {}
|
| +CanvasRenderingContextWrappingImplementation._wrap$ctor = function(ptr) {
|
| + DOMWrapperBase._wrap$ctor.call(this, ptr);
|
| +}
|
| +CanvasRenderingContextWrappingImplementation._wrap$ctor.prototype = CanvasRenderingContextWrappingImplementation.prototype;
|
| +// ********** Code for CanvasRenderingContext2DWrappingImplementation **************
|
| +$inherits(CanvasRenderingContext2DWrappingImplementation, CanvasRenderingContextWrappingImplementation);
|
| +function CanvasRenderingContext2DWrappingImplementation() {}
|
| +CanvasRenderingContext2DWrappingImplementation._wrap$ctor = function(ptr) {
|
| + CanvasRenderingContextWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +CanvasRenderingContext2DWrappingImplementation._wrap$ctor.prototype = CanvasRenderingContext2DWrappingImplementation.prototype;
|
| +CanvasRenderingContext2DWrappingImplementation.prototype.set$font = function(value) {
|
| + this._ptr.set$font(value);
|
| +}
|
| +CanvasRenderingContext2DWrappingImplementation.prototype.measureText = function(text) {
|
| + return LevelDom.wrapTextMetrics(this._ptr.measureText$1(text));
|
| +}
|
| +CanvasRenderingContext2DWrappingImplementation.prototype.measureText$1 = CanvasRenderingContext2DWrappingImplementation.prototype.measureText;
|
| +// ********** Code for CommentWrappingImplementation **************
|
| +$inherits(CommentWrappingImplementation, CharacterDataWrappingImplementation);
|
| +function CommentWrappingImplementation() {}
|
| +CommentWrappingImplementation._wrap$ctor = function(ptr) {
|
| + CharacterDataWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +CommentWrappingImplementation._wrap$ctor.prototype = CommentWrappingImplementation.prototype;
|
| +// ********** Code for ConsoleWrappingImplementation **************
|
| +$inherits(ConsoleWrappingImplementation, DOMWrapperBase);
|
| +function ConsoleWrappingImplementation() {}
|
| +ConsoleWrappingImplementation._wrap$ctor = function(ptr) {
|
| + DOMWrapperBase._wrap$ctor.call(this, ptr);
|
| +}
|
| +ConsoleWrappingImplementation._wrap$ctor.prototype = ConsoleWrappingImplementation.prototype;
|
| +ConsoleWrappingImplementation.prototype.time = function(title) {
|
| + this._ptr.time$1(title);
|
| + return;
|
| +}
|
| +ConsoleWrappingImplementation.prototype.get$time = function() {
|
| + return this.time.bind(this);
|
| +}
|
| +ConsoleWrappingImplementation.prototype.timeStamp = function() {
|
| + this._ptr.timeStamp$0();
|
| + return;
|
| +}
|
| +ConsoleWrappingImplementation.prototype.get$timeStamp = function() {
|
| + return this.timeStamp.bind(this);
|
| +}
|
| +ConsoleWrappingImplementation.prototype.warn = function(arg) {
|
| + this._ptr.warn$1(LevelDom.unwrapMaybePrimitive(arg));
|
| + return;
|
| +}
|
| +ConsoleWrappingImplementation.prototype.time$1 = ConsoleWrappingImplementation.prototype.time;
|
| +ConsoleWrappingImplementation.prototype.timeStamp$0 = ConsoleWrappingImplementation.prototype.timeStamp;
|
| +ConsoleWrappingImplementation.prototype.warn$1 = ConsoleWrappingImplementation.prototype.warn;
|
| +// ********** Code for DListElementWrappingImplementation **************
|
| +$inherits(DListElementWrappingImplementation, ElementWrappingImplementation);
|
| +function DListElementWrappingImplementation() {}
|
| +DListElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +DListElementWrappingImplementation._wrap$ctor.prototype = DListElementWrappingImplementation.prototype;
|
| +DListElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for DataListElementWrappingImplementation **************
|
| +$inherits(DataListElementWrappingImplementation, ElementWrappingImplementation);
|
| +function DataListElementWrappingImplementation() {}
|
| +DataListElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +DataListElementWrappingImplementation._wrap$ctor.prototype = DataListElementWrappingImplementation.prototype;
|
| +DataListElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for DetailsElementWrappingImplementation **************
|
| +$inherits(DetailsElementWrappingImplementation, ElementWrappingImplementation);
|
| +function DetailsElementWrappingImplementation() {}
|
| +DetailsElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +DetailsElementWrappingImplementation._wrap$ctor.prototype = DetailsElementWrappingImplementation.prototype;
|
| +DetailsElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +DetailsElementWrappingImplementation.prototype.get$open = function() {
|
| + return this._ptr.get$open();
|
| +}
|
| +DetailsElementWrappingImplementation.prototype.open$2 = function($0, $1) {
|
| + return this.get$open().call$2($0, $1);
|
| +};
|
| +DetailsElementWrappingImplementation.prototype.open$3 = function($0, $1, $2) {
|
| + return this.get$open()($0, $1, $2);
|
| +};
|
| +DetailsElementWrappingImplementation.prototype.open$4 = function($0, $1, $2, $3) {
|
| + return this.get$open()($0, $1, $2, $3);
|
| +};
|
| +DetailsElementWrappingImplementation.prototype.open$5 = function($0, $1, $2, $3, $4) {
|
| + return this.get$open()($0, $1, $2, $3, $4);
|
| +};
|
| +// ********** Code for DivElementWrappingImplementation **************
|
| +$inherits(DivElementWrappingImplementation, ElementWrappingImplementation);
|
| +function DivElementWrappingImplementation() {}
|
| +DivElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +DivElementWrappingImplementation._wrap$ctor.prototype = DivElementWrappingImplementation.prototype;
|
| +DivElementWrappingImplementation.prototype.is$DivElement = function(){return true};
|
| +DivElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for EmbedElementWrappingImplementation **************
|
| +$inherits(EmbedElementWrappingImplementation, ElementWrappingImplementation);
|
| +function EmbedElementWrappingImplementation() {}
|
| +EmbedElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +EmbedElementWrappingImplementation._wrap$ctor.prototype = EmbedElementWrappingImplementation.prototype;
|
| +EmbedElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +EmbedElementWrappingImplementation.prototype.get$height = function() {
|
| + return this._ptr.get$height();
|
| +}
|
| +EmbedElementWrappingImplementation.prototype.set$height = function(value) {
|
| + this._ptr.set$height(value);
|
| +}
|
| +EmbedElementWrappingImplementation.prototype.get$name = function() {
|
| + return this._ptr.get$name();
|
| +}
|
| +EmbedElementWrappingImplementation.prototype.get$type = function() {
|
| + return this._ptr.get$type();
|
| +}
|
| +EmbedElementWrappingImplementation.prototype.get$width = function() {
|
| + return this._ptr.get$width();
|
| +}
|
| +EmbedElementWrappingImplementation.prototype.set$width = function(value) {
|
| + this._ptr.set$width(value);
|
| +}
|
| +// ********** Code for EntityReferenceWrappingImplementation **************
|
| +$inherits(EntityReferenceWrappingImplementation, NodeWrappingImplementation);
|
| +function EntityReferenceWrappingImplementation() {}
|
| +EntityReferenceWrappingImplementation._wrap$ctor = function(ptr) {
|
| + NodeWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +EntityReferenceWrappingImplementation._wrap$ctor.prototype = EntityReferenceWrappingImplementation.prototype;
|
| +// ********** Code for EntityWrappingImplementation **************
|
| +$inherits(EntityWrappingImplementation, NodeWrappingImplementation);
|
| +function EntityWrappingImplementation() {}
|
| +EntityWrappingImplementation._wrap$ctor = function(ptr) {
|
| + NodeWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +EntityWrappingImplementation._wrap$ctor.prototype = EntityWrappingImplementation.prototype;
|
| +// ********** Code for FieldSetElementWrappingImplementation **************
|
| +$inherits(FieldSetElementWrappingImplementation, ElementWrappingImplementation);
|
| +function FieldSetElementWrappingImplementation() {}
|
| +FieldSetElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +FieldSetElementWrappingImplementation._wrap$ctor.prototype = FieldSetElementWrappingImplementation.prototype;
|
| +FieldSetElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for FontElementWrappingImplementation **************
|
| +$inherits(FontElementWrappingImplementation, ElementWrappingImplementation);
|
| +function FontElementWrappingImplementation() {}
|
| +FontElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +FontElementWrappingImplementation._wrap$ctor.prototype = FontElementWrappingImplementation.prototype;
|
| +FontElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for FormElementWrappingImplementation **************
|
| +$inherits(FormElementWrappingImplementation, ElementWrappingImplementation);
|
| +function FormElementWrappingImplementation() {}
|
| +FormElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +FormElementWrappingImplementation._wrap$ctor.prototype = FormElementWrappingImplementation.prototype;
|
| +FormElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +FormElementWrappingImplementation.prototype.get$length = function() {
|
| + return this._ptr.get$length();
|
| +}
|
| +FormElementWrappingImplementation.prototype.get$name = function() {
|
| + return this._ptr.get$name();
|
| +}
|
| +FormElementWrappingImplementation.prototype.get$target = function() {
|
| + return this._ptr.get$target();
|
| +}
|
| +FormElementWrappingImplementation.prototype.set$target = function(value) {
|
| + this._ptr.set$target(value);
|
| +}
|
| +// ********** Code for HRElementWrappingImplementation **************
|
| +$inherits(HRElementWrappingImplementation, ElementWrappingImplementation);
|
| +function HRElementWrappingImplementation() {}
|
| +HRElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +HRElementWrappingImplementation._wrap$ctor.prototype = HRElementWrappingImplementation.prototype;
|
| +HRElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +HRElementWrappingImplementation.prototype.get$width = function() {
|
| + return this._ptr.get$width();
|
| +}
|
| +HRElementWrappingImplementation.prototype.set$width = function(value) {
|
| + this._ptr.set$width(value);
|
| +}
|
| +// ********** Code for HeadElementWrappingImplementation **************
|
| +$inherits(HeadElementWrappingImplementation, ElementWrappingImplementation);
|
| +function HeadElementWrappingImplementation() {}
|
| +HeadElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +HeadElementWrappingImplementation._wrap$ctor.prototype = HeadElementWrappingImplementation.prototype;
|
| +HeadElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for HeadingElementWrappingImplementation **************
|
| +$inherits(HeadingElementWrappingImplementation, ElementWrappingImplementation);
|
| +function HeadingElementWrappingImplementation() {}
|
| +HeadingElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +HeadingElementWrappingImplementation._wrap$ctor.prototype = HeadingElementWrappingImplementation.prototype;
|
| +HeadingElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for HistoryWrappingImplementation **************
|
| +$inherits(HistoryWrappingImplementation, DOMWrapperBase);
|
| +function HistoryWrappingImplementation() {}
|
| +HistoryWrappingImplementation._wrap$ctor = function(ptr) {
|
| + DOMWrapperBase._wrap$ctor.call(this, ptr);
|
| +}
|
| +HistoryWrappingImplementation._wrap$ctor.prototype = HistoryWrappingImplementation.prototype;
|
| +HistoryWrappingImplementation.prototype.get$length = function() {
|
| + return this._ptr.get$length();
|
| +}
|
| +HistoryWrappingImplementation.prototype.back = function() {
|
| + this._ptr.back$0();
|
| + return;
|
| +}
|
| +HistoryWrappingImplementation.prototype.forward = function() {
|
| + this._ptr.forward$0();
|
| + return;
|
| +}
|
| +HistoryWrappingImplementation.prototype.pushState = function(data, title, url) {
|
| + if (url == null) {
|
| + this._ptr.pushState$2(LevelDom.unwrapMaybePrimitive(data), title);
|
| + return;
|
| + }
|
| + else {
|
| + this._ptr.pushState$3(LevelDom.unwrapMaybePrimitive(data), title, url);
|
| + return;
|
| + }
|
| +}
|
| +HistoryWrappingImplementation.prototype.replaceState = function(data, title, url) {
|
| + if (url == null) {
|
| + this._ptr.replaceState$2(LevelDom.unwrapMaybePrimitive(data), title);
|
| + return;
|
| + }
|
| + else {
|
| + this._ptr.replaceState$3(LevelDom.unwrapMaybePrimitive(data), title, url);
|
| + return;
|
| + }
|
| +}
|
| +HistoryWrappingImplementation.prototype.back$0 = HistoryWrappingImplementation.prototype.back;
|
| +HistoryWrappingImplementation.prototype.forward$0 = HistoryWrappingImplementation.prototype.forward;
|
| +HistoryWrappingImplementation.prototype.pushState$2 = HistoryWrappingImplementation.prototype.pushState;
|
| +HistoryWrappingImplementation.prototype.pushState$3 = HistoryWrappingImplementation.prototype.pushState;
|
| +HistoryWrappingImplementation.prototype.replaceState$2 = HistoryWrappingImplementation.prototype.replaceState;
|
| +HistoryWrappingImplementation.prototype.replaceState$3 = HistoryWrappingImplementation.prototype.replaceState;
|
| +// ********** Code for IDBVersionChangeEventWrappingImplementation **************
|
| +$inherits(IDBVersionChangeEventWrappingImplementation, EventWrappingImplementation);
|
| +function IDBVersionChangeEventWrappingImplementation() {}
|
| +IDBVersionChangeEventWrappingImplementation._wrap$ctor = function(ptr) {
|
| + EventWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +IDBVersionChangeEventWrappingImplementation._wrap$ctor.prototype = IDBVersionChangeEventWrappingImplementation.prototype;
|
| +// ********** Code for IFrameElementWrappingImplementation **************
|
| +$inherits(IFrameElementWrappingImplementation, ElementWrappingImplementation);
|
| +function IFrameElementWrappingImplementation() {}
|
| +IFrameElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +IFrameElementWrappingImplementation._wrap$ctor.prototype = IFrameElementWrappingImplementation.prototype;
|
| +IFrameElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +IFrameElementWrappingImplementation.prototype.get$height = function() {
|
| + return this._ptr.get$height();
|
| +}
|
| +IFrameElementWrappingImplementation.prototype.set$height = function(value) {
|
| + this._ptr.set$height(value);
|
| +}
|
| +IFrameElementWrappingImplementation.prototype.get$name = function() {
|
| + return this._ptr.get$name();
|
| +}
|
| +IFrameElementWrappingImplementation.prototype.get$width = function() {
|
| + return this._ptr.get$width();
|
| +}
|
| +IFrameElementWrappingImplementation.prototype.set$width = function(value) {
|
| + this._ptr.set$width(value);
|
| +}
|
| +// ********** Code for ImageElementWrappingImplementation **************
|
| +$inherits(ImageElementWrappingImplementation, ElementWrappingImplementation);
|
| +function ImageElementWrappingImplementation() {}
|
| +ImageElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +ImageElementWrappingImplementation._wrap$ctor.prototype = ImageElementWrappingImplementation.prototype;
|
| +ImageElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +ImageElementWrappingImplementation.prototype.get$complete = function() {
|
| + return this._ptr.get$complete();
|
| +}
|
| +ImageElementWrappingImplementation.prototype.get$height = function() {
|
| + return this._ptr.get$height();
|
| +}
|
| +ImageElementWrappingImplementation.prototype.set$height = function(value) {
|
| + this._ptr.set$height(value);
|
| +}
|
| +ImageElementWrappingImplementation.prototype.get$name = function() {
|
| + return this._ptr.get$name();
|
| +}
|
| +ImageElementWrappingImplementation.prototype.get$width = function() {
|
| + return this._ptr.get$width();
|
| +}
|
| +ImageElementWrappingImplementation.prototype.set$width = function(value) {
|
| + this._ptr.set$width(value);
|
| +}
|
| +ImageElementWrappingImplementation.prototype.get$x = function() {
|
| + return this._ptr.get$x();
|
| +}
|
| +ImageElementWrappingImplementation.prototype.get$y = function() {
|
| + return this._ptr.get$y();
|
| +}
|
| +ImageElementWrappingImplementation.prototype.complete$1 = function($0) {
|
| + return this.get$complete().call$1($0);
|
| +};
|
| +// ********** Code for InputElementWrappingImplementation **************
|
| +$inherits(InputElementWrappingImplementation, ElementWrappingImplementation);
|
| +function InputElementWrappingImplementation() {}
|
| +InputElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +InputElementWrappingImplementation._wrap$ctor.prototype = InputElementWrappingImplementation.prototype;
|
| +InputElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +InputElementWrappingImplementation.prototype.get$name = function() {
|
| + return this._ptr.get$name();
|
| +}
|
| +InputElementWrappingImplementation.prototype.get$type = function() {
|
| + return this._ptr.get$type();
|
| +}
|
| +InputElementWrappingImplementation.prototype.get$value = function() {
|
| + return this._ptr.get$value();
|
| +}
|
| +InputElementWrappingImplementation.prototype.set$value = function(value) {
|
| + this._ptr.set$value(value);
|
| +}
|
| +InputElementWrappingImplementation.prototype.click = function() {
|
| + this._ptr.click$0();
|
| + return;
|
| +}
|
| +InputElementWrappingImplementation.prototype.get$click = function() {
|
| + return this.click.bind(this);
|
| +}
|
| +InputElementWrappingImplementation.prototype.click$0 = InputElementWrappingImplementation.prototype.click;
|
| +// ********** Code for KeygenElementWrappingImplementation **************
|
| +$inherits(KeygenElementWrappingImplementation, ElementWrappingImplementation);
|
| +function KeygenElementWrappingImplementation() {}
|
| +KeygenElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +KeygenElementWrappingImplementation._wrap$ctor.prototype = KeygenElementWrappingImplementation.prototype;
|
| +KeygenElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +KeygenElementWrappingImplementation.prototype.get$name = function() {
|
| + return this._ptr.get$name();
|
| +}
|
| +KeygenElementWrappingImplementation.prototype.get$type = function() {
|
| + return this._ptr.get$type();
|
| +}
|
| +// ********** Code for LIElementWrappingImplementation **************
|
| +$inherits(LIElementWrappingImplementation, ElementWrappingImplementation);
|
| +function LIElementWrappingImplementation() {}
|
| +LIElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +LIElementWrappingImplementation._wrap$ctor.prototype = LIElementWrappingImplementation.prototype;
|
| +LIElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +LIElementWrappingImplementation.prototype.get$type = function() {
|
| + return this._ptr.get$type();
|
| +}
|
| +LIElementWrappingImplementation.prototype.get$value = function() {
|
| + return this._ptr.get$value();
|
| +}
|
| +LIElementWrappingImplementation.prototype.set$value = function(value) {
|
| + this._ptr.set$value(value);
|
| +}
|
| +// ********** Code for LabelElementWrappingImplementation **************
|
| +$inherits(LabelElementWrappingImplementation, ElementWrappingImplementation);
|
| +function LabelElementWrappingImplementation() {}
|
| +LabelElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +LabelElementWrappingImplementation._wrap$ctor.prototype = LabelElementWrappingImplementation.prototype;
|
| +LabelElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for LegendElementWrappingImplementation **************
|
| +$inherits(LegendElementWrappingImplementation, ElementWrappingImplementation);
|
| +function LegendElementWrappingImplementation() {}
|
| +LegendElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +LegendElementWrappingImplementation._wrap$ctor.prototype = LegendElementWrappingImplementation.prototype;
|
| +LegendElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for LinkElementWrappingImplementation **************
|
| +$inherits(LinkElementWrappingImplementation, ElementWrappingImplementation);
|
| +function LinkElementWrappingImplementation() {}
|
| +LinkElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +LinkElementWrappingImplementation._wrap$ctor.prototype = LinkElementWrappingImplementation.prototype;
|
| +LinkElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +LinkElementWrappingImplementation.prototype.get$target = function() {
|
| + return this._ptr.get$target();
|
| +}
|
| +LinkElementWrappingImplementation.prototype.set$target = function(value) {
|
| + this._ptr.set$target(value);
|
| +}
|
| +LinkElementWrappingImplementation.prototype.get$type = function() {
|
| + return this._ptr.get$type();
|
| +}
|
| +// ********** Code for LocationWrappingImplementation **************
|
| +$inherits(LocationWrappingImplementation, DOMWrapperBase);
|
| +function LocationWrappingImplementation() {}
|
| +LocationWrappingImplementation._wrap$ctor = function(ptr) {
|
| + DOMWrapperBase._wrap$ctor.call(this, ptr);
|
| +}
|
| +LocationWrappingImplementation._wrap$ctor.prototype = LocationWrappingImplementation.prototype;
|
| +LocationWrappingImplementation.prototype.get$hash = function() {
|
| + return this._ptr.get$hash();
|
| +}
|
| +LocationWrappingImplementation.prototype.get$host = function() {
|
| + return this._ptr.get$host();
|
| +}
|
| +LocationWrappingImplementation.prototype.get$protocol = function() {
|
| + return this._ptr.get$protocol();
|
| +}
|
| +LocationWrappingImplementation.prototype.reload = function() {
|
| + this._ptr.reload$0();
|
| + return;
|
| +}
|
| +LocationWrappingImplementation.prototype.toString = function() {
|
| + return this._ptr.toString$0();
|
| +}
|
| +LocationWrappingImplementation.prototype.reload$0 = LocationWrappingImplementation.prototype.reload;
|
| +LocationWrappingImplementation.prototype.toString$0 = LocationWrappingImplementation.prototype.toString;
|
| +// ********** Code for MapElementWrappingImplementation **************
|
| +$inherits(MapElementWrappingImplementation, ElementWrappingImplementation);
|
| +function MapElementWrappingImplementation() {}
|
| +MapElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +MapElementWrappingImplementation._wrap$ctor.prototype = MapElementWrappingImplementation.prototype;
|
| +MapElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +MapElementWrappingImplementation.prototype.get$name = function() {
|
| + return this._ptr.get$name();
|
| +}
|
| +// ********** Code for MarqueeElementWrappingImplementation **************
|
| +$inherits(MarqueeElementWrappingImplementation, ElementWrappingImplementation);
|
| +function MarqueeElementWrappingImplementation() {}
|
| +MarqueeElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +MarqueeElementWrappingImplementation._wrap$ctor.prototype = MarqueeElementWrappingImplementation.prototype;
|
| +MarqueeElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +MarqueeElementWrappingImplementation.prototype.get$height = function() {
|
| + return this._ptr.get$height();
|
| +}
|
| +MarqueeElementWrappingImplementation.prototype.set$height = function(value) {
|
| + this._ptr.set$height(value);
|
| +}
|
| +MarqueeElementWrappingImplementation.prototype.get$width = function() {
|
| + return this._ptr.get$width();
|
| +}
|
| +MarqueeElementWrappingImplementation.prototype.set$width = function(value) {
|
| + this._ptr.set$width(value);
|
| +}
|
| +MarqueeElementWrappingImplementation.prototype.start = function() {
|
| + this._ptr.start$0();
|
| + return;
|
| +}
|
| +MarqueeElementWrappingImplementation.prototype.get$start = function() {
|
| + return this.start.bind(this);
|
| +}
|
| +MarqueeElementWrappingImplementation.prototype.start$0 = MarqueeElementWrappingImplementation.prototype.start;
|
| +// ********** Code for MenuElementWrappingImplementation **************
|
| +$inherits(MenuElementWrappingImplementation, ElementWrappingImplementation);
|
| +function MenuElementWrappingImplementation() {}
|
| +MenuElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +MenuElementWrappingImplementation._wrap$ctor.prototype = MenuElementWrappingImplementation.prototype;
|
| +MenuElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for MetaElementWrappingImplementation **************
|
| +$inherits(MetaElementWrappingImplementation, ElementWrappingImplementation);
|
| +function MetaElementWrappingImplementation() {}
|
| +MetaElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +MetaElementWrappingImplementation._wrap$ctor.prototype = MetaElementWrappingImplementation.prototype;
|
| +MetaElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +MetaElementWrappingImplementation.prototype.get$name = function() {
|
| + return this._ptr.get$name();
|
| +}
|
| +// ********** Code for MeterElementWrappingImplementation **************
|
| +$inherits(MeterElementWrappingImplementation, ElementWrappingImplementation);
|
| +function MeterElementWrappingImplementation() {}
|
| +MeterElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +MeterElementWrappingImplementation._wrap$ctor.prototype = MeterElementWrappingImplementation.prototype;
|
| +MeterElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +MeterElementWrappingImplementation.prototype.get$value = function() {
|
| + return this._ptr.get$value();
|
| +}
|
| +MeterElementWrappingImplementation.prototype.set$value = function(value) {
|
| + this._ptr.set$value(value);
|
| +}
|
| +// ********** Code for ModElementWrappingImplementation **************
|
| +$inherits(ModElementWrappingImplementation, ElementWrappingImplementation);
|
| +function ModElementWrappingImplementation() {}
|
| +ModElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +ModElementWrappingImplementation._wrap$ctor.prototype = ModElementWrappingImplementation.prototype;
|
| +ModElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for NavigatorWrappingImplementation **************
|
| +$inherits(NavigatorWrappingImplementation, DOMWrapperBase);
|
| +function NavigatorWrappingImplementation() {}
|
| +NavigatorWrappingImplementation._wrap$ctor = function(ptr) {
|
| + DOMWrapperBase._wrap$ctor.call(this, ptr);
|
| +}
|
| +NavigatorWrappingImplementation._wrap$ctor.prototype = NavigatorWrappingImplementation.prototype;
|
| +NavigatorWrappingImplementation.prototype.get$userAgent = function() {
|
| + return this._ptr.get$userAgent();
|
| +}
|
| +// ********** Code for NotationWrappingImplementation **************
|
| +$inherits(NotationWrappingImplementation, NodeWrappingImplementation);
|
| +function NotationWrappingImplementation() {}
|
| +NotationWrappingImplementation._wrap$ctor = function(ptr) {
|
| + NodeWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +NotationWrappingImplementation._wrap$ctor.prototype = NotationWrappingImplementation.prototype;
|
| +// ********** Code for OListElementWrappingImplementation **************
|
| +$inherits(OListElementWrappingImplementation, ElementWrappingImplementation);
|
| +function OListElementWrappingImplementation() {}
|
| +OListElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +OListElementWrappingImplementation._wrap$ctor.prototype = OListElementWrappingImplementation.prototype;
|
| +OListElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +OListElementWrappingImplementation.prototype.get$start = function() {
|
| + return this._ptr.get$start();
|
| +}
|
| +OListElementWrappingImplementation.prototype.set$start = function(value) {
|
| + this._ptr.set$start(value);
|
| +}
|
| +OListElementWrappingImplementation.prototype.get$type = function() {
|
| + return this._ptr.get$type();
|
| +}
|
| +OListElementWrappingImplementation.prototype.start$0 = function() {
|
| + return this.get$start().call$0();
|
| +};
|
| +// ********** Code for OfflineAudioCompletionEventWrappingImplementation **************
|
| +$inherits(OfflineAudioCompletionEventWrappingImplementation, EventWrappingImplementation);
|
| +function OfflineAudioCompletionEventWrappingImplementation() {}
|
| +OfflineAudioCompletionEventWrappingImplementation._wrap$ctor = function(ptr) {
|
| + EventWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +OfflineAudioCompletionEventWrappingImplementation._wrap$ctor.prototype = OfflineAudioCompletionEventWrappingImplementation.prototype;
|
| +// ********** Code for OptGroupElementWrappingImplementation **************
|
| +$inherits(OptGroupElementWrappingImplementation, ElementWrappingImplementation);
|
| +function OptGroupElementWrappingImplementation() {}
|
| +OptGroupElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +OptGroupElementWrappingImplementation._wrap$ctor.prototype = OptGroupElementWrappingImplementation.prototype;
|
| +OptGroupElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for OptionElementWrappingImplementation **************
|
| +$inherits(OptionElementWrappingImplementation, ElementWrappingImplementation);
|
| +function OptionElementWrappingImplementation() {}
|
| +OptionElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +OptionElementWrappingImplementation._wrap$ctor.prototype = OptionElementWrappingImplementation.prototype;
|
| +OptionElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +OptionElementWrappingImplementation.prototype.get$text = function() {
|
| + return this._ptr.get$text();
|
| +}
|
| +OptionElementWrappingImplementation.prototype.set$text = function(value) {
|
| + this._ptr.set$text(value);
|
| +}
|
| +OptionElementWrappingImplementation.prototype.get$value = function() {
|
| + return this._ptr.get$value();
|
| +}
|
| +OptionElementWrappingImplementation.prototype.set$value = function(value) {
|
| + this._ptr.set$value(value);
|
| +}
|
| +// ********** Code for OutputElementWrappingImplementation **************
|
| +$inherits(OutputElementWrappingImplementation, ElementWrappingImplementation);
|
| +function OutputElementWrappingImplementation() {}
|
| +OutputElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +OutputElementWrappingImplementation._wrap$ctor.prototype = OutputElementWrappingImplementation.prototype;
|
| +OutputElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +OutputElementWrappingImplementation.prototype.get$name = function() {
|
| + return this._ptr.get$name();
|
| +}
|
| +OutputElementWrappingImplementation.prototype.get$type = function() {
|
| + return this._ptr.get$type();
|
| +}
|
| +OutputElementWrappingImplementation.prototype.get$value = function() {
|
| + return this._ptr.get$value();
|
| +}
|
| +OutputElementWrappingImplementation.prototype.set$value = function(value) {
|
| + this._ptr.set$value(value);
|
| +}
|
| +// ********** Code for ParagraphElementWrappingImplementation **************
|
| +$inherits(ParagraphElementWrappingImplementation, ElementWrappingImplementation);
|
| +function ParagraphElementWrappingImplementation() {}
|
| +ParagraphElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +ParagraphElementWrappingImplementation._wrap$ctor.prototype = ParagraphElementWrappingImplementation.prototype;
|
| +ParagraphElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for ParamElementWrappingImplementation **************
|
| +$inherits(ParamElementWrappingImplementation, ElementWrappingImplementation);
|
| +function ParamElementWrappingImplementation() {}
|
| +ParamElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +ParamElementWrappingImplementation._wrap$ctor.prototype = ParamElementWrappingImplementation.prototype;
|
| +ParamElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +ParamElementWrappingImplementation.prototype.get$name = function() {
|
| + return this._ptr.get$name();
|
| +}
|
| +ParamElementWrappingImplementation.prototype.get$type = function() {
|
| + return this._ptr.get$type();
|
| +}
|
| +ParamElementWrappingImplementation.prototype.get$value = function() {
|
| + return this._ptr.get$value();
|
| +}
|
| +ParamElementWrappingImplementation.prototype.set$value = function(value) {
|
| + this._ptr.set$value(value);
|
| +}
|
| +// ********** Code for PointWrappingImplementation **************
|
| +$inherits(PointWrappingImplementation, DOMWrapperBase);
|
| +function PointWrappingImplementation() {}
|
| +PointWrappingImplementation._wrap$ctor = function(ptr) {
|
| + DOMWrapperBase._wrap$ctor.call(this, ptr);
|
| +}
|
| +PointWrappingImplementation._wrap$ctor.prototype = PointWrappingImplementation.prototype;
|
| +PointWrappingImplementation.prototype.get$x = function() {
|
| + return this._ptr.get$x();
|
| +}
|
| +PointWrappingImplementation.prototype.get$y = function() {
|
| + return this._ptr.get$y();
|
| +}
|
| +// ********** Code for PreElementWrappingImplementation **************
|
| +$inherits(PreElementWrappingImplementation, ElementWrappingImplementation);
|
| +function PreElementWrappingImplementation() {}
|
| +PreElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +PreElementWrappingImplementation._wrap$ctor.prototype = PreElementWrappingImplementation.prototype;
|
| +PreElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +PreElementWrappingImplementation.prototype.get$width = function() {
|
| + return this._ptr.get$width();
|
| +}
|
| +PreElementWrappingImplementation.prototype.set$width = function(value) {
|
| + this._ptr.set$width(value);
|
| +}
|
| +// ********** Code for ProcessingInstructionWrappingImplementation **************
|
| +$inherits(ProcessingInstructionWrappingImplementation, NodeWrappingImplementation);
|
| +function ProcessingInstructionWrappingImplementation() {}
|
| +ProcessingInstructionWrappingImplementation._wrap$ctor = function(ptr) {
|
| + NodeWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +ProcessingInstructionWrappingImplementation._wrap$ctor.prototype = ProcessingInstructionWrappingImplementation.prototype;
|
| +ProcessingInstructionWrappingImplementation.prototype.get$target = function() {
|
| + return this._ptr.get$target();
|
| +}
|
| +// ********** Code for ProgressElementWrappingImplementation **************
|
| +$inherits(ProgressElementWrappingImplementation, ElementWrappingImplementation);
|
| +function ProgressElementWrappingImplementation() {}
|
| +ProgressElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +ProgressElementWrappingImplementation._wrap$ctor.prototype = ProgressElementWrappingImplementation.prototype;
|
| +ProgressElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +ProgressElementWrappingImplementation.prototype.get$value = function() {
|
| + return this._ptr.get$value();
|
| +}
|
| +ProgressElementWrappingImplementation.prototype.set$value = function(value) {
|
| + this._ptr.set$value(value);
|
| +}
|
| +// ********** Code for QuoteElementWrappingImplementation **************
|
| +$inherits(QuoteElementWrappingImplementation, ElementWrappingImplementation);
|
| +function QuoteElementWrappingImplementation() {}
|
| +QuoteElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +QuoteElementWrappingImplementation._wrap$ctor.prototype = QuoteElementWrappingImplementation.prototype;
|
| +QuoteElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for SVGElementWrappingImplementation **************
|
| +$inherits(SVGElementWrappingImplementation, ElementWrappingImplementation);
|
| +function SVGElementWrappingImplementation() {}
|
| +SVGElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGElementWrappingImplementation._wrap$ctor.prototype = SVGElementWrappingImplementation.prototype;
|
| +SVGElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +SVGElementWrappingImplementation.prototype.get$classes = function() {
|
| + if (this._cssClassSet == null) {
|
| + this._cssClassSet = new _SVGClassSet(this._ptr);
|
| + }
|
| + return this._cssClassSet;
|
| +}
|
| +SVGElementWrappingImplementation.prototype.get$id = function() {
|
| + return this._ptr.get$id();
|
| +}
|
| +SVGElementWrappingImplementation.prototype.get$elements = function() {
|
| + if (this._elements == null) {
|
| + this._elements = new FilteredElementList(this);
|
| + }
|
| + return this._elements;
|
| +}
|
| +SVGElementWrappingImplementation.prototype.set$elements = function(value) {
|
| + var elements = this.get$elements();
|
| + elements.clear$0();
|
| + elements.addAll$1(value);
|
| +}
|
| +SVGElementWrappingImplementation.prototype.set$innerHTML = function(svg) {
|
| + var container = ElementWrappingImplementation.ElementWrappingImplementation$tag$factory("div");
|
| + container.set$innerHTML(("<svg version=\"1.1\">" + svg + "</svg>"));
|
| + this.set$elements(container.get$elements().get$first().get$elements());
|
| +}
|
| +// ********** Code for SVGAElementWrappingImplementation **************
|
| +$inherits(SVGAElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGAElementWrappingImplementation() {}
|
| +SVGAElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGAElementWrappingImplementation._wrap$ctor.prototype = SVGAElementWrappingImplementation.prototype;
|
| +SVGAElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +SVGAElementWrappingImplementation.prototype.get$target = function() {
|
| + return LevelDom.wrapSVGAnimatedString(this._ptr.get$target());
|
| +}
|
| +SVGAElementWrappingImplementation.prototype.get$className = function() {
|
| + return LevelDom.wrapSVGAnimatedString(this._ptr.get$className());
|
| +}
|
| +SVGAElementWrappingImplementation.prototype.get$style = function() {
|
| + return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style());
|
| +}
|
| +// ********** Code for SVGAltGlyphDefElementWrappingImplementation **************
|
| +$inherits(SVGAltGlyphDefElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGAltGlyphDefElementWrappingImplementation() {}
|
| +SVGAltGlyphDefElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGAltGlyphDefElementWrappingImplementation._wrap$ctor.prototype = SVGAltGlyphDefElementWrappingImplementation.prototype;
|
| +SVGAltGlyphDefElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for SVGTextContentElementWrappingImplementation **************
|
| +$inherits(SVGTextContentElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGTextContentElementWrappingImplementation() {}
|
| +SVGTextContentElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGTextContentElementWrappingImplementation._wrap$ctor.prototype = SVGTextContentElementWrappingImplementation.prototype;
|
| +SVGTextContentElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +SVGTextContentElementWrappingImplementation.prototype.get$className = function() {
|
| + return LevelDom.wrapSVGAnimatedString(this._ptr.get$className());
|
| +}
|
| +SVGTextContentElementWrappingImplementation.prototype.get$style = function() {
|
| + return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style());
|
| +}
|
| +// ********** Code for SVGTextPositioningElementWrappingImplementation **************
|
| +$inherits(SVGTextPositioningElementWrappingImplementation, SVGTextContentElementWrappingImplementation);
|
| +function SVGTextPositioningElementWrappingImplementation() {}
|
| +SVGTextPositioningElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGTextContentElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGTextPositioningElementWrappingImplementation._wrap$ctor.prototype = SVGTextPositioningElementWrappingImplementation.prototype;
|
| +SVGTextPositioningElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +SVGTextPositioningElementWrappingImplementation.prototype.get$x = function() {
|
| + return LevelDom.wrapSVGAnimatedLengthList(this._ptr.get$x());
|
| +}
|
| +SVGTextPositioningElementWrappingImplementation.prototype.get$y = function() {
|
| + return LevelDom.wrapSVGAnimatedLengthList(this._ptr.get$y());
|
| +}
|
| +// ********** Code for SVGAltGlyphElementWrappingImplementation **************
|
| +$inherits(SVGAltGlyphElementWrappingImplementation, SVGTextPositioningElementWrappingImplementation);
|
| +function SVGAltGlyphElementWrappingImplementation() {}
|
| +SVGAltGlyphElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGTextPositioningElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGAltGlyphElementWrappingImplementation._wrap$ctor.prototype = SVGAltGlyphElementWrappingImplementation.prototype;
|
| +SVGAltGlyphElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for SVGAltGlyphItemElementWrappingImplementation **************
|
| +$inherits(SVGAltGlyphItemElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGAltGlyphItemElementWrappingImplementation() {}
|
| +SVGAltGlyphItemElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGAltGlyphItemElementWrappingImplementation._wrap$ctor.prototype = SVGAltGlyphItemElementWrappingImplementation.prototype;
|
| +SVGAltGlyphItemElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for SVGAnimationElementWrappingImplementation **************
|
| +$inherits(SVGAnimationElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGAnimationElementWrappingImplementation() {}
|
| +SVGAnimationElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGAnimationElementWrappingImplementation._wrap$ctor.prototype = SVGAnimationElementWrappingImplementation.prototype;
|
| +SVGAnimationElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for SVGAnimateColorElementWrappingImplementation **************
|
| +$inherits(SVGAnimateColorElementWrappingImplementation, SVGAnimationElementWrappingImplementation);
|
| +function SVGAnimateColorElementWrappingImplementation() {}
|
| +SVGAnimateColorElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGAnimationElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGAnimateColorElementWrappingImplementation._wrap$ctor.prototype = SVGAnimateColorElementWrappingImplementation.prototype;
|
| +SVGAnimateColorElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for SVGAnimateElementWrappingImplementation **************
|
| +$inherits(SVGAnimateElementWrappingImplementation, SVGAnimationElementWrappingImplementation);
|
| +function SVGAnimateElementWrappingImplementation() {}
|
| +SVGAnimateElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGAnimationElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGAnimateElementWrappingImplementation._wrap$ctor.prototype = SVGAnimateElementWrappingImplementation.prototype;
|
| +SVGAnimateElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for SVGAnimateMotionElementWrappingImplementation **************
|
| +$inherits(SVGAnimateMotionElementWrappingImplementation, SVGAnimationElementWrappingImplementation);
|
| +function SVGAnimateMotionElementWrappingImplementation() {}
|
| +SVGAnimateMotionElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGAnimationElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGAnimateMotionElementWrappingImplementation._wrap$ctor.prototype = SVGAnimateMotionElementWrappingImplementation.prototype;
|
| +SVGAnimateMotionElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for SVGAnimateTransformElementWrappingImplementation **************
|
| +$inherits(SVGAnimateTransformElementWrappingImplementation, SVGAnimationElementWrappingImplementation);
|
| +function SVGAnimateTransformElementWrappingImplementation() {}
|
| +SVGAnimateTransformElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGAnimationElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGAnimateTransformElementWrappingImplementation._wrap$ctor.prototype = SVGAnimateTransformElementWrappingImplementation.prototype;
|
| +SVGAnimateTransformElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for SVGAnimatedEnumerationWrappingImplementation **************
|
| +$inherits(SVGAnimatedEnumerationWrappingImplementation, DOMWrapperBase);
|
| +function SVGAnimatedEnumerationWrappingImplementation() {}
|
| +SVGAnimatedEnumerationWrappingImplementation._wrap$ctor = function(ptr) {
|
| + DOMWrapperBase._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGAnimatedEnumerationWrappingImplementation._wrap$ctor.prototype = SVGAnimatedEnumerationWrappingImplementation.prototype;
|
| +SVGAnimatedEnumerationWrappingImplementation.prototype.get$baseVal = function() {
|
| + return this._ptr.get$baseVal();
|
| +}
|
| +SVGAnimatedEnumerationWrappingImplementation.prototype.set$baseVal = function(value) {
|
| + this._ptr.set$baseVal(value);
|
| +}
|
| +// ********** Code for SVGAnimatedLengthListWrappingImplementation **************
|
| +$inherits(SVGAnimatedLengthListWrappingImplementation, DOMWrapperBase);
|
| +function SVGAnimatedLengthListWrappingImplementation() {}
|
| +SVGAnimatedLengthListWrappingImplementation._wrap$ctor = function(ptr) {
|
| + DOMWrapperBase._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGAnimatedLengthListWrappingImplementation._wrap$ctor.prototype = SVGAnimatedLengthListWrappingImplementation.prototype;
|
| +SVGAnimatedLengthListWrappingImplementation.prototype.get$baseVal = function() {
|
| + return LevelDom.wrapSVGLengthList(this._ptr.get$baseVal());
|
| +}
|
| +// ********** Code for SVGAnimatedLengthWrappingImplementation **************
|
| +$inherits(SVGAnimatedLengthWrappingImplementation, DOMWrapperBase);
|
| +function SVGAnimatedLengthWrappingImplementation() {}
|
| +SVGAnimatedLengthWrappingImplementation._wrap$ctor = function(ptr) {
|
| + DOMWrapperBase._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGAnimatedLengthWrappingImplementation._wrap$ctor.prototype = SVGAnimatedLengthWrappingImplementation.prototype;
|
| +SVGAnimatedLengthWrappingImplementation.prototype.get$baseVal = function() {
|
| + return LevelDom.wrapSVGLength(this._ptr.get$baseVal());
|
| +}
|
| +// ********** Code for SVGAnimatedNumberWrappingImplementation **************
|
| +$inherits(SVGAnimatedNumberWrappingImplementation, DOMWrapperBase);
|
| +function SVGAnimatedNumberWrappingImplementation() {}
|
| +SVGAnimatedNumberWrappingImplementation._wrap$ctor = function(ptr) {
|
| + DOMWrapperBase._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGAnimatedNumberWrappingImplementation._wrap$ctor.prototype = SVGAnimatedNumberWrappingImplementation.prototype;
|
| +SVGAnimatedNumberWrappingImplementation.prototype.get$baseVal = function() {
|
| + return this._ptr.get$baseVal();
|
| +}
|
| +SVGAnimatedNumberWrappingImplementation.prototype.set$baseVal = function(value) {
|
| + this._ptr.set$baseVal(value);
|
| +}
|
| +// ********** Code for SVGAnimatedStringWrappingImplementation **************
|
| +$inherits(SVGAnimatedStringWrappingImplementation, DOMWrapperBase);
|
| +function SVGAnimatedStringWrappingImplementation() {}
|
| +SVGAnimatedStringWrappingImplementation._wrap$ctor = function(ptr) {
|
| + DOMWrapperBase._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGAnimatedStringWrappingImplementation._wrap$ctor.prototype = SVGAnimatedStringWrappingImplementation.prototype;
|
| +SVGAnimatedStringWrappingImplementation.prototype.get$baseVal = function() {
|
| + return this._ptr.get$baseVal();
|
| +}
|
| +SVGAnimatedStringWrappingImplementation.prototype.set$baseVal = function(value) {
|
| + this._ptr.set$baseVal(value);
|
| +}
|
| +// ********** Code for SVGCircleElementWrappingImplementation **************
|
| +$inherits(SVGCircleElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGCircleElementWrappingImplementation() {}
|
| +SVGCircleElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGCircleElementWrappingImplementation._wrap$ctor.prototype = SVGCircleElementWrappingImplementation.prototype;
|
| +SVGCircleElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +SVGCircleElementWrappingImplementation.prototype.get$className = function() {
|
| + return LevelDom.wrapSVGAnimatedString(this._ptr.get$className());
|
| +}
|
| +SVGCircleElementWrappingImplementation.prototype.get$style = function() {
|
| + return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style());
|
| +}
|
| +// ********** Code for SVGClipPathElementWrappingImplementation **************
|
| +$inherits(SVGClipPathElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGClipPathElementWrappingImplementation() {}
|
| +SVGClipPathElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGClipPathElementWrappingImplementation._wrap$ctor.prototype = SVGClipPathElementWrappingImplementation.prototype;
|
| +SVGClipPathElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +SVGClipPathElementWrappingImplementation.prototype.get$className = function() {
|
| + return LevelDom.wrapSVGAnimatedString(this._ptr.get$className());
|
| +}
|
| +SVGClipPathElementWrappingImplementation.prototype.get$style = function() {
|
| + return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style());
|
| +}
|
| +// ********** Code for SVGComponentTransferFunctionElementWrappingImplementation **************
|
| +$inherits(SVGComponentTransferFunctionElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGComponentTransferFunctionElementWrappingImplementation() {}
|
| +SVGComponentTransferFunctionElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGComponentTransferFunctionElementWrappingImplementation._wrap$ctor.prototype = SVGComponentTransferFunctionElementWrappingImplementation.prototype;
|
| +SVGComponentTransferFunctionElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +SVGComponentTransferFunctionElementWrappingImplementation.prototype.get$offset = function() {
|
| + return LevelDom.wrapSVGAnimatedNumber(this._ptr.get$offset());
|
| +}
|
| +SVGComponentTransferFunctionElementWrappingImplementation.prototype.get$type = function() {
|
| + return LevelDom.wrapSVGAnimatedEnumeration(this._ptr.get$type());
|
| +}
|
| +// ********** Code for SVGCursorElementWrappingImplementation **************
|
| +$inherits(SVGCursorElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGCursorElementWrappingImplementation() {}
|
| +SVGCursorElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGCursorElementWrappingImplementation._wrap$ctor.prototype = SVGCursorElementWrappingImplementation.prototype;
|
| +SVGCursorElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +SVGCursorElementWrappingImplementation.prototype.get$x = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$x());
|
| +}
|
| +SVGCursorElementWrappingImplementation.prototype.get$y = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$y());
|
| +}
|
| +// ********** Code for SVGDefsElementWrappingImplementation **************
|
| +$inherits(SVGDefsElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGDefsElementWrappingImplementation() {}
|
| +SVGDefsElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGDefsElementWrappingImplementation._wrap$ctor.prototype = SVGDefsElementWrappingImplementation.prototype;
|
| +SVGDefsElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +SVGDefsElementWrappingImplementation.prototype.get$className = function() {
|
| + return LevelDom.wrapSVGAnimatedString(this._ptr.get$className());
|
| +}
|
| +SVGDefsElementWrappingImplementation.prototype.get$style = function() {
|
| + return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style());
|
| +}
|
| +// ********** Code for SVGDescElementWrappingImplementation **************
|
| +$inherits(SVGDescElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGDescElementWrappingImplementation() {}
|
| +SVGDescElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGDescElementWrappingImplementation._wrap$ctor.prototype = SVGDescElementWrappingImplementation.prototype;
|
| +SVGDescElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +SVGDescElementWrappingImplementation.prototype.get$className = function() {
|
| + return LevelDom.wrapSVGAnimatedString(this._ptr.get$className());
|
| +}
|
| +SVGDescElementWrappingImplementation.prototype.get$style = function() {
|
| + return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style());
|
| +}
|
| +// ********** Code for SVGElementInstanceListWrappingImplementation **************
|
| +$inherits(SVGElementInstanceListWrappingImplementation, DOMWrapperBase);
|
| +function SVGElementInstanceListWrappingImplementation() {}
|
| +SVGElementInstanceListWrappingImplementation._wrap$ctor = function(ptr) {
|
| + DOMWrapperBase._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGElementInstanceListWrappingImplementation._wrap$ctor.prototype = SVGElementInstanceListWrappingImplementation.prototype;
|
| +SVGElementInstanceListWrappingImplementation.prototype.get$length = function() {
|
| + return this._ptr.get$length();
|
| +}
|
| +SVGElementInstanceListWrappingImplementation.prototype.item = function(index) {
|
| + return LevelDom.wrapSVGElementInstance(this._ptr.item$1(index));
|
| +}
|
| +SVGElementInstanceListWrappingImplementation.prototype.item$1 = SVGElementInstanceListWrappingImplementation.prototype.item;
|
| +// ********** Code for SVGEllipseElementWrappingImplementation **************
|
| +$inherits(SVGEllipseElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGEllipseElementWrappingImplementation() {}
|
| +SVGEllipseElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGEllipseElementWrappingImplementation._wrap$ctor.prototype = SVGEllipseElementWrappingImplementation.prototype;
|
| +SVGEllipseElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +SVGEllipseElementWrappingImplementation.prototype.get$className = function() {
|
| + return LevelDom.wrapSVGAnimatedString(this._ptr.get$className());
|
| +}
|
| +SVGEllipseElementWrappingImplementation.prototype.get$style = function() {
|
| + return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style());
|
| +}
|
| +// ********** Code for SVGFEBlendElementWrappingImplementation **************
|
| +$inherits(SVGFEBlendElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGFEBlendElementWrappingImplementation() {}
|
| +SVGFEBlendElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGFEBlendElementWrappingImplementation._wrap$ctor.prototype = SVGFEBlendElementWrappingImplementation.prototype;
|
| +SVGFEBlendElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +SVGFEBlendElementWrappingImplementation.prototype.get$height = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$height());
|
| +}
|
| +SVGFEBlendElementWrappingImplementation.prototype.get$width = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$width());
|
| +}
|
| +SVGFEBlendElementWrappingImplementation.prototype.get$x = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$x());
|
| +}
|
| +SVGFEBlendElementWrappingImplementation.prototype.get$y = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$y());
|
| +}
|
| +SVGFEBlendElementWrappingImplementation.prototype.get$className = function() {
|
| + return LevelDom.wrapSVGAnimatedString(this._ptr.get$className());
|
| +}
|
| +SVGFEBlendElementWrappingImplementation.prototype.get$style = function() {
|
| + return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style());
|
| +}
|
| +// ********** Code for SVGFEColorMatrixElementWrappingImplementation **************
|
| +$inherits(SVGFEColorMatrixElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGFEColorMatrixElementWrappingImplementation() {}
|
| +SVGFEColorMatrixElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGFEColorMatrixElementWrappingImplementation._wrap$ctor.prototype = SVGFEColorMatrixElementWrappingImplementation.prototype;
|
| +SVGFEColorMatrixElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +SVGFEColorMatrixElementWrappingImplementation.prototype.get$type = function() {
|
| + return LevelDom.wrapSVGAnimatedEnumeration(this._ptr.get$type());
|
| +}
|
| +SVGFEColorMatrixElementWrappingImplementation.prototype.get$height = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$height());
|
| +}
|
| +SVGFEColorMatrixElementWrappingImplementation.prototype.get$width = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$width());
|
| +}
|
| +SVGFEColorMatrixElementWrappingImplementation.prototype.get$x = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$x());
|
| +}
|
| +SVGFEColorMatrixElementWrappingImplementation.prototype.get$y = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$y());
|
| +}
|
| +SVGFEColorMatrixElementWrappingImplementation.prototype.get$className = function() {
|
| + return LevelDom.wrapSVGAnimatedString(this._ptr.get$className());
|
| +}
|
| +SVGFEColorMatrixElementWrappingImplementation.prototype.get$style = function() {
|
| + return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style());
|
| +}
|
| +// ********** Code for SVGFEComponentTransferElementWrappingImplementation **************
|
| +$inherits(SVGFEComponentTransferElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGFEComponentTransferElementWrappingImplementation() {}
|
| +SVGFEComponentTransferElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGFEComponentTransferElementWrappingImplementation._wrap$ctor.prototype = SVGFEComponentTransferElementWrappingImplementation.prototype;
|
| +SVGFEComponentTransferElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +SVGFEComponentTransferElementWrappingImplementation.prototype.get$height = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$height());
|
| +}
|
| +SVGFEComponentTransferElementWrappingImplementation.prototype.get$width = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$width());
|
| +}
|
| +SVGFEComponentTransferElementWrappingImplementation.prototype.get$x = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$x());
|
| +}
|
| +SVGFEComponentTransferElementWrappingImplementation.prototype.get$y = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$y());
|
| +}
|
| +SVGFEComponentTransferElementWrappingImplementation.prototype.get$className = function() {
|
| + return LevelDom.wrapSVGAnimatedString(this._ptr.get$className());
|
| +}
|
| +SVGFEComponentTransferElementWrappingImplementation.prototype.get$style = function() {
|
| + return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style());
|
| +}
|
| +// ********** Code for SVGFEConvolveMatrixElementWrappingImplementation **************
|
| +$inherits(SVGFEConvolveMatrixElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGFEConvolveMatrixElementWrappingImplementation() {}
|
| +SVGFEConvolveMatrixElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGFEConvolveMatrixElementWrappingImplementation._wrap$ctor.prototype = SVGFEConvolveMatrixElementWrappingImplementation.prototype;
|
| +SVGFEConvolveMatrixElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +SVGFEConvolveMatrixElementWrappingImplementation.prototype.get$height = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$height());
|
| +}
|
| +SVGFEConvolveMatrixElementWrappingImplementation.prototype.get$width = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$width());
|
| +}
|
| +SVGFEConvolveMatrixElementWrappingImplementation.prototype.get$x = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$x());
|
| +}
|
| +SVGFEConvolveMatrixElementWrappingImplementation.prototype.get$y = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$y());
|
| +}
|
| +SVGFEConvolveMatrixElementWrappingImplementation.prototype.get$className = function() {
|
| + return LevelDom.wrapSVGAnimatedString(this._ptr.get$className());
|
| +}
|
| +SVGFEConvolveMatrixElementWrappingImplementation.prototype.get$style = function() {
|
| + return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style());
|
| +}
|
| +// ********** Code for SVGFEDiffuseLightingElementWrappingImplementation **************
|
| +$inherits(SVGFEDiffuseLightingElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGFEDiffuseLightingElementWrappingImplementation() {}
|
| +SVGFEDiffuseLightingElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGFEDiffuseLightingElementWrappingImplementation._wrap$ctor.prototype = SVGFEDiffuseLightingElementWrappingImplementation.prototype;
|
| +SVGFEDiffuseLightingElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +SVGFEDiffuseLightingElementWrappingImplementation.prototype.get$height = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$height());
|
| +}
|
| +SVGFEDiffuseLightingElementWrappingImplementation.prototype.get$width = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$width());
|
| +}
|
| +SVGFEDiffuseLightingElementWrappingImplementation.prototype.get$x = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$x());
|
| +}
|
| +SVGFEDiffuseLightingElementWrappingImplementation.prototype.get$y = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$y());
|
| +}
|
| +SVGFEDiffuseLightingElementWrappingImplementation.prototype.get$className = function() {
|
| + return LevelDom.wrapSVGAnimatedString(this._ptr.get$className());
|
| +}
|
| +SVGFEDiffuseLightingElementWrappingImplementation.prototype.get$style = function() {
|
| + return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style());
|
| +}
|
| +// ********** Code for SVGFEDisplacementMapElementWrappingImplementation **************
|
| +$inherits(SVGFEDisplacementMapElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGFEDisplacementMapElementWrappingImplementation() {}
|
| +SVGFEDisplacementMapElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGFEDisplacementMapElementWrappingImplementation._wrap$ctor.prototype = SVGFEDisplacementMapElementWrappingImplementation.prototype;
|
| +SVGFEDisplacementMapElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +SVGFEDisplacementMapElementWrappingImplementation.prototype.get$height = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$height());
|
| +}
|
| +SVGFEDisplacementMapElementWrappingImplementation.prototype.get$width = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$width());
|
| +}
|
| +SVGFEDisplacementMapElementWrappingImplementation.prototype.get$x = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$x());
|
| +}
|
| +SVGFEDisplacementMapElementWrappingImplementation.prototype.get$y = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$y());
|
| +}
|
| +SVGFEDisplacementMapElementWrappingImplementation.prototype.get$className = function() {
|
| + return LevelDom.wrapSVGAnimatedString(this._ptr.get$className());
|
| +}
|
| +SVGFEDisplacementMapElementWrappingImplementation.prototype.get$style = function() {
|
| + return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style());
|
| +}
|
| +// ********** Code for SVGFEDistantLightElementWrappingImplementation **************
|
| +$inherits(SVGFEDistantLightElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGFEDistantLightElementWrappingImplementation() {}
|
| +SVGFEDistantLightElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGFEDistantLightElementWrappingImplementation._wrap$ctor.prototype = SVGFEDistantLightElementWrappingImplementation.prototype;
|
| +SVGFEDistantLightElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for SVGFEDropShadowElementWrappingImplementation **************
|
| +$inherits(SVGFEDropShadowElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGFEDropShadowElementWrappingImplementation() {}
|
| +SVGFEDropShadowElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGFEDropShadowElementWrappingImplementation._wrap$ctor.prototype = SVGFEDropShadowElementWrappingImplementation.prototype;
|
| +SVGFEDropShadowElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +SVGFEDropShadowElementWrappingImplementation.prototype.get$height = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$height());
|
| +}
|
| +SVGFEDropShadowElementWrappingImplementation.prototype.get$width = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$width());
|
| +}
|
| +SVGFEDropShadowElementWrappingImplementation.prototype.get$x = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$x());
|
| +}
|
| +SVGFEDropShadowElementWrappingImplementation.prototype.get$y = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$y());
|
| +}
|
| +SVGFEDropShadowElementWrappingImplementation.prototype.get$className = function() {
|
| + return LevelDom.wrapSVGAnimatedString(this._ptr.get$className());
|
| +}
|
| +SVGFEDropShadowElementWrappingImplementation.prototype.get$style = function() {
|
| + return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style());
|
| +}
|
| +// ********** Code for SVGFEFloodElementWrappingImplementation **************
|
| +$inherits(SVGFEFloodElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGFEFloodElementWrappingImplementation() {}
|
| +SVGFEFloodElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGFEFloodElementWrappingImplementation._wrap$ctor.prototype = SVGFEFloodElementWrappingImplementation.prototype;
|
| +SVGFEFloodElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +SVGFEFloodElementWrappingImplementation.prototype.get$height = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$height());
|
| +}
|
| +SVGFEFloodElementWrappingImplementation.prototype.get$width = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$width());
|
| +}
|
| +SVGFEFloodElementWrappingImplementation.prototype.get$x = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$x());
|
| +}
|
| +SVGFEFloodElementWrappingImplementation.prototype.get$y = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$y());
|
| +}
|
| +SVGFEFloodElementWrappingImplementation.prototype.get$className = function() {
|
| + return LevelDom.wrapSVGAnimatedString(this._ptr.get$className());
|
| +}
|
| +SVGFEFloodElementWrappingImplementation.prototype.get$style = function() {
|
| + return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style());
|
| +}
|
| +// ********** Code for SVGFEFuncAElementWrappingImplementation **************
|
| +$inherits(SVGFEFuncAElementWrappingImplementation, SVGComponentTransferFunctionElementWrappingImplementation);
|
| +function SVGFEFuncAElementWrappingImplementation() {}
|
| +SVGFEFuncAElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGComponentTransferFunctionElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGFEFuncAElementWrappingImplementation._wrap$ctor.prototype = SVGFEFuncAElementWrappingImplementation.prototype;
|
| +SVGFEFuncAElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for SVGFEFuncBElementWrappingImplementation **************
|
| +$inherits(SVGFEFuncBElementWrappingImplementation, SVGComponentTransferFunctionElementWrappingImplementation);
|
| +function SVGFEFuncBElementWrappingImplementation() {}
|
| +SVGFEFuncBElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGComponentTransferFunctionElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGFEFuncBElementWrappingImplementation._wrap$ctor.prototype = SVGFEFuncBElementWrappingImplementation.prototype;
|
| +SVGFEFuncBElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for SVGFEFuncGElementWrappingImplementation **************
|
| +$inherits(SVGFEFuncGElementWrappingImplementation, SVGComponentTransferFunctionElementWrappingImplementation);
|
| +function SVGFEFuncGElementWrappingImplementation() {}
|
| +SVGFEFuncGElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGComponentTransferFunctionElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGFEFuncGElementWrappingImplementation._wrap$ctor.prototype = SVGFEFuncGElementWrappingImplementation.prototype;
|
| +SVGFEFuncGElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for SVGFEFuncRElementWrappingImplementation **************
|
| +$inherits(SVGFEFuncRElementWrappingImplementation, SVGComponentTransferFunctionElementWrappingImplementation);
|
| +function SVGFEFuncRElementWrappingImplementation() {}
|
| +SVGFEFuncRElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGComponentTransferFunctionElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGFEFuncRElementWrappingImplementation._wrap$ctor.prototype = SVGFEFuncRElementWrappingImplementation.prototype;
|
| +SVGFEFuncRElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for SVGFEGaussianBlurElementWrappingImplementation **************
|
| +$inherits(SVGFEGaussianBlurElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGFEGaussianBlurElementWrappingImplementation() {}
|
| +SVGFEGaussianBlurElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGFEGaussianBlurElementWrappingImplementation._wrap$ctor.prototype = SVGFEGaussianBlurElementWrappingImplementation.prototype;
|
| +SVGFEGaussianBlurElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +SVGFEGaussianBlurElementWrappingImplementation.prototype.get$height = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$height());
|
| +}
|
| +SVGFEGaussianBlurElementWrappingImplementation.prototype.get$width = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$width());
|
| +}
|
| +SVGFEGaussianBlurElementWrappingImplementation.prototype.get$x = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$x());
|
| +}
|
| +SVGFEGaussianBlurElementWrappingImplementation.prototype.get$y = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$y());
|
| +}
|
| +SVGFEGaussianBlurElementWrappingImplementation.prototype.get$className = function() {
|
| + return LevelDom.wrapSVGAnimatedString(this._ptr.get$className());
|
| +}
|
| +SVGFEGaussianBlurElementWrappingImplementation.prototype.get$style = function() {
|
| + return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style());
|
| +}
|
| +// ********** Code for SVGFEImageElementWrappingImplementation **************
|
| +$inherits(SVGFEImageElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGFEImageElementWrappingImplementation() {}
|
| +SVGFEImageElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGFEImageElementWrappingImplementation._wrap$ctor.prototype = SVGFEImageElementWrappingImplementation.prototype;
|
| +SVGFEImageElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +SVGFEImageElementWrappingImplementation.prototype.get$height = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$height());
|
| +}
|
| +SVGFEImageElementWrappingImplementation.prototype.get$width = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$width());
|
| +}
|
| +SVGFEImageElementWrappingImplementation.prototype.get$x = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$x());
|
| +}
|
| +SVGFEImageElementWrappingImplementation.prototype.get$y = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$y());
|
| +}
|
| +SVGFEImageElementWrappingImplementation.prototype.get$className = function() {
|
| + return LevelDom.wrapSVGAnimatedString(this._ptr.get$className());
|
| +}
|
| +SVGFEImageElementWrappingImplementation.prototype.get$style = function() {
|
| + return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style());
|
| +}
|
| +// ********** Code for SVGFEMergeElementWrappingImplementation **************
|
| +$inherits(SVGFEMergeElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGFEMergeElementWrappingImplementation() {}
|
| +SVGFEMergeElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGFEMergeElementWrappingImplementation._wrap$ctor.prototype = SVGFEMergeElementWrappingImplementation.prototype;
|
| +SVGFEMergeElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +SVGFEMergeElementWrappingImplementation.prototype.get$height = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$height());
|
| +}
|
| +SVGFEMergeElementWrappingImplementation.prototype.get$width = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$width());
|
| +}
|
| +SVGFEMergeElementWrappingImplementation.prototype.get$x = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$x());
|
| +}
|
| +SVGFEMergeElementWrappingImplementation.prototype.get$y = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$y());
|
| +}
|
| +SVGFEMergeElementWrappingImplementation.prototype.get$className = function() {
|
| + return LevelDom.wrapSVGAnimatedString(this._ptr.get$className());
|
| +}
|
| +SVGFEMergeElementWrappingImplementation.prototype.get$style = function() {
|
| + return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style());
|
| +}
|
| +// ********** Code for SVGFEMergeNodeElementWrappingImplementation **************
|
| +$inherits(SVGFEMergeNodeElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGFEMergeNodeElementWrappingImplementation() {}
|
| +SVGFEMergeNodeElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGFEMergeNodeElementWrappingImplementation._wrap$ctor.prototype = SVGFEMergeNodeElementWrappingImplementation.prototype;
|
| +SVGFEMergeNodeElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for SVGFEOffsetElementWrappingImplementation **************
|
| +$inherits(SVGFEOffsetElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGFEOffsetElementWrappingImplementation() {}
|
| +SVGFEOffsetElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGFEOffsetElementWrappingImplementation._wrap$ctor.prototype = SVGFEOffsetElementWrappingImplementation.prototype;
|
| +SVGFEOffsetElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +SVGFEOffsetElementWrappingImplementation.prototype.get$height = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$height());
|
| +}
|
| +SVGFEOffsetElementWrappingImplementation.prototype.get$width = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$width());
|
| +}
|
| +SVGFEOffsetElementWrappingImplementation.prototype.get$x = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$x());
|
| +}
|
| +SVGFEOffsetElementWrappingImplementation.prototype.get$y = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$y());
|
| +}
|
| +SVGFEOffsetElementWrappingImplementation.prototype.get$className = function() {
|
| + return LevelDom.wrapSVGAnimatedString(this._ptr.get$className());
|
| +}
|
| +SVGFEOffsetElementWrappingImplementation.prototype.get$style = function() {
|
| + return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style());
|
| +}
|
| +// ********** Code for SVGFEPointLightElementWrappingImplementation **************
|
| +$inherits(SVGFEPointLightElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGFEPointLightElementWrappingImplementation() {}
|
| +SVGFEPointLightElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGFEPointLightElementWrappingImplementation._wrap$ctor.prototype = SVGFEPointLightElementWrappingImplementation.prototype;
|
| +SVGFEPointLightElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +SVGFEPointLightElementWrappingImplementation.prototype.get$x = function() {
|
| + return LevelDom.wrapSVGAnimatedNumber(this._ptr.get$x());
|
| +}
|
| +SVGFEPointLightElementWrappingImplementation.prototype.get$y = function() {
|
| + return LevelDom.wrapSVGAnimatedNumber(this._ptr.get$y());
|
| +}
|
| +// ********** Code for SVGFESpecularLightingElementWrappingImplementation **************
|
| +$inherits(SVGFESpecularLightingElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGFESpecularLightingElementWrappingImplementation() {}
|
| +SVGFESpecularLightingElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGFESpecularLightingElementWrappingImplementation._wrap$ctor.prototype = SVGFESpecularLightingElementWrappingImplementation.prototype;
|
| +SVGFESpecularLightingElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +SVGFESpecularLightingElementWrappingImplementation.prototype.get$height = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$height());
|
| +}
|
| +SVGFESpecularLightingElementWrappingImplementation.prototype.get$width = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$width());
|
| +}
|
| +SVGFESpecularLightingElementWrappingImplementation.prototype.get$x = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$x());
|
| +}
|
| +SVGFESpecularLightingElementWrappingImplementation.prototype.get$y = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$y());
|
| +}
|
| +SVGFESpecularLightingElementWrappingImplementation.prototype.get$className = function() {
|
| + return LevelDom.wrapSVGAnimatedString(this._ptr.get$className());
|
| +}
|
| +SVGFESpecularLightingElementWrappingImplementation.prototype.get$style = function() {
|
| + return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style());
|
| +}
|
| +// ********** Code for SVGFESpotLightElementWrappingImplementation **************
|
| +$inherits(SVGFESpotLightElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGFESpotLightElementWrappingImplementation() {}
|
| +SVGFESpotLightElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGFESpotLightElementWrappingImplementation._wrap$ctor.prototype = SVGFESpotLightElementWrappingImplementation.prototype;
|
| +SVGFESpotLightElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +SVGFESpotLightElementWrappingImplementation.prototype.get$x = function() {
|
| + return LevelDom.wrapSVGAnimatedNumber(this._ptr.get$x());
|
| +}
|
| +SVGFESpotLightElementWrappingImplementation.prototype.get$y = function() {
|
| + return LevelDom.wrapSVGAnimatedNumber(this._ptr.get$y());
|
| +}
|
| +// ********** Code for SVGFETileElementWrappingImplementation **************
|
| +$inherits(SVGFETileElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGFETileElementWrappingImplementation() {}
|
| +SVGFETileElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGFETileElementWrappingImplementation._wrap$ctor.prototype = SVGFETileElementWrappingImplementation.prototype;
|
| +SVGFETileElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +SVGFETileElementWrappingImplementation.prototype.get$height = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$height());
|
| +}
|
| +SVGFETileElementWrappingImplementation.prototype.get$width = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$width());
|
| +}
|
| +SVGFETileElementWrappingImplementation.prototype.get$x = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$x());
|
| +}
|
| +SVGFETileElementWrappingImplementation.prototype.get$y = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$y());
|
| +}
|
| +SVGFETileElementWrappingImplementation.prototype.get$className = function() {
|
| + return LevelDom.wrapSVGAnimatedString(this._ptr.get$className());
|
| +}
|
| +SVGFETileElementWrappingImplementation.prototype.get$style = function() {
|
| + return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style());
|
| +}
|
| +// ********** Code for SVGFETurbulenceElementWrappingImplementation **************
|
| +$inherits(SVGFETurbulenceElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGFETurbulenceElementWrappingImplementation() {}
|
| +SVGFETurbulenceElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGFETurbulenceElementWrappingImplementation._wrap$ctor.prototype = SVGFETurbulenceElementWrappingImplementation.prototype;
|
| +SVGFETurbulenceElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +SVGFETurbulenceElementWrappingImplementation.prototype.get$type = function() {
|
| + return LevelDom.wrapSVGAnimatedEnumeration(this._ptr.get$type());
|
| +}
|
| +SVGFETurbulenceElementWrappingImplementation.prototype.get$height = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$height());
|
| +}
|
| +SVGFETurbulenceElementWrappingImplementation.prototype.get$width = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$width());
|
| +}
|
| +SVGFETurbulenceElementWrappingImplementation.prototype.get$x = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$x());
|
| +}
|
| +SVGFETurbulenceElementWrappingImplementation.prototype.get$y = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$y());
|
| +}
|
| +SVGFETurbulenceElementWrappingImplementation.prototype.get$className = function() {
|
| + return LevelDom.wrapSVGAnimatedString(this._ptr.get$className());
|
| +}
|
| +SVGFETurbulenceElementWrappingImplementation.prototype.get$style = function() {
|
| + return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style());
|
| +}
|
| +// ********** Code for SVGFilterElementWrappingImplementation **************
|
| +$inherits(SVGFilterElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGFilterElementWrappingImplementation() {}
|
| +SVGFilterElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGFilterElementWrappingImplementation._wrap$ctor.prototype = SVGFilterElementWrappingImplementation.prototype;
|
| +SVGFilterElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +SVGFilterElementWrappingImplementation.prototype.get$height = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$height());
|
| +}
|
| +SVGFilterElementWrappingImplementation.prototype.get$width = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$width());
|
| +}
|
| +SVGFilterElementWrappingImplementation.prototype.get$x = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$x());
|
| +}
|
| +SVGFilterElementWrappingImplementation.prototype.get$y = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$y());
|
| +}
|
| +SVGFilterElementWrappingImplementation.prototype.get$className = function() {
|
| + return LevelDom.wrapSVGAnimatedString(this._ptr.get$className());
|
| +}
|
| +SVGFilterElementWrappingImplementation.prototype.get$style = function() {
|
| + return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style());
|
| +}
|
| +// ********** Code for SVGFontElementWrappingImplementation **************
|
| +$inherits(SVGFontElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGFontElementWrappingImplementation() {}
|
| +SVGFontElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGFontElementWrappingImplementation._wrap$ctor.prototype = SVGFontElementWrappingImplementation.prototype;
|
| +SVGFontElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for SVGFontFaceElementWrappingImplementation **************
|
| +$inherits(SVGFontFaceElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGFontFaceElementWrappingImplementation() {}
|
| +SVGFontFaceElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGFontFaceElementWrappingImplementation._wrap$ctor.prototype = SVGFontFaceElementWrappingImplementation.prototype;
|
| +SVGFontFaceElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for SVGFontFaceFormatElementWrappingImplementation **************
|
| +$inherits(SVGFontFaceFormatElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGFontFaceFormatElementWrappingImplementation() {}
|
| +SVGFontFaceFormatElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGFontFaceFormatElementWrappingImplementation._wrap$ctor.prototype = SVGFontFaceFormatElementWrappingImplementation.prototype;
|
| +SVGFontFaceFormatElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for SVGFontFaceNameElementWrappingImplementation **************
|
| +$inherits(SVGFontFaceNameElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGFontFaceNameElementWrappingImplementation() {}
|
| +SVGFontFaceNameElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGFontFaceNameElementWrappingImplementation._wrap$ctor.prototype = SVGFontFaceNameElementWrappingImplementation.prototype;
|
| +SVGFontFaceNameElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for SVGFontFaceSrcElementWrappingImplementation **************
|
| +$inherits(SVGFontFaceSrcElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGFontFaceSrcElementWrappingImplementation() {}
|
| +SVGFontFaceSrcElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGFontFaceSrcElementWrappingImplementation._wrap$ctor.prototype = SVGFontFaceSrcElementWrappingImplementation.prototype;
|
| +SVGFontFaceSrcElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for SVGFontFaceUriElementWrappingImplementation **************
|
| +$inherits(SVGFontFaceUriElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGFontFaceUriElementWrappingImplementation() {}
|
| +SVGFontFaceUriElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGFontFaceUriElementWrappingImplementation._wrap$ctor.prototype = SVGFontFaceUriElementWrappingImplementation.prototype;
|
| +SVGFontFaceUriElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for SVGForeignObjectElementWrappingImplementation **************
|
| +$inherits(SVGForeignObjectElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGForeignObjectElementWrappingImplementation() {}
|
| +SVGForeignObjectElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGForeignObjectElementWrappingImplementation._wrap$ctor.prototype = SVGForeignObjectElementWrappingImplementation.prototype;
|
| +SVGForeignObjectElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +SVGForeignObjectElementWrappingImplementation.prototype.get$height = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$height());
|
| +}
|
| +SVGForeignObjectElementWrappingImplementation.prototype.get$width = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$width());
|
| +}
|
| +SVGForeignObjectElementWrappingImplementation.prototype.get$x = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$x());
|
| +}
|
| +SVGForeignObjectElementWrappingImplementation.prototype.get$y = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$y());
|
| +}
|
| +SVGForeignObjectElementWrappingImplementation.prototype.get$className = function() {
|
| + return LevelDom.wrapSVGAnimatedString(this._ptr.get$className());
|
| +}
|
| +SVGForeignObjectElementWrappingImplementation.prototype.get$style = function() {
|
| + return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style());
|
| +}
|
| +// ********** Code for SVGGElementWrappingImplementation **************
|
| +$inherits(SVGGElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGGElementWrappingImplementation() {}
|
| +SVGGElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGGElementWrappingImplementation._wrap$ctor.prototype = SVGGElementWrappingImplementation.prototype;
|
| +SVGGElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +SVGGElementWrappingImplementation.prototype.get$className = function() {
|
| + return LevelDom.wrapSVGAnimatedString(this._ptr.get$className());
|
| +}
|
| +SVGGElementWrappingImplementation.prototype.get$style = function() {
|
| + return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style());
|
| +}
|
| +// ********** Code for SVGGlyphElementWrappingImplementation **************
|
| +$inherits(SVGGlyphElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGGlyphElementWrappingImplementation() {}
|
| +SVGGlyphElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGGlyphElementWrappingImplementation._wrap$ctor.prototype = SVGGlyphElementWrappingImplementation.prototype;
|
| +SVGGlyphElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for SVGGlyphRefElementWrappingImplementation **************
|
| +$inherits(SVGGlyphRefElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGGlyphRefElementWrappingImplementation() {}
|
| +SVGGlyphRefElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGGlyphRefElementWrappingImplementation._wrap$ctor.prototype = SVGGlyphRefElementWrappingImplementation.prototype;
|
| +SVGGlyphRefElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +SVGGlyphRefElementWrappingImplementation.prototype.get$x = function() {
|
| + return this._ptr.get$x();
|
| +}
|
| +SVGGlyphRefElementWrappingImplementation.prototype.get$y = function() {
|
| + return this._ptr.get$y();
|
| +}
|
| +SVGGlyphRefElementWrappingImplementation.prototype.get$className = function() {
|
| + return LevelDom.wrapSVGAnimatedString(this._ptr.get$className());
|
| +}
|
| +SVGGlyphRefElementWrappingImplementation.prototype.get$style = function() {
|
| + return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style());
|
| +}
|
| +// ********** Code for SVGGradientElementWrappingImplementation **************
|
| +$inherits(SVGGradientElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGGradientElementWrappingImplementation() {}
|
| +SVGGradientElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGGradientElementWrappingImplementation._wrap$ctor.prototype = SVGGradientElementWrappingImplementation.prototype;
|
| +SVGGradientElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +SVGGradientElementWrappingImplementation.prototype.get$className = function() {
|
| + return LevelDom.wrapSVGAnimatedString(this._ptr.get$className());
|
| +}
|
| +SVGGradientElementWrappingImplementation.prototype.get$style = function() {
|
| + return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style());
|
| +}
|
| +// ********** Code for SVGHKernElementWrappingImplementation **************
|
| +$inherits(SVGHKernElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGHKernElementWrappingImplementation() {}
|
| +SVGHKernElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGHKernElementWrappingImplementation._wrap$ctor.prototype = SVGHKernElementWrappingImplementation.prototype;
|
| +SVGHKernElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for SVGImageElementWrappingImplementation **************
|
| +$inherits(SVGImageElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGImageElementWrappingImplementation() {}
|
| +SVGImageElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGImageElementWrappingImplementation._wrap$ctor.prototype = SVGImageElementWrappingImplementation.prototype;
|
| +SVGImageElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +SVGImageElementWrappingImplementation.prototype.get$height = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$height());
|
| +}
|
| +SVGImageElementWrappingImplementation.prototype.get$width = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$width());
|
| +}
|
| +SVGImageElementWrappingImplementation.prototype.get$x = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$x());
|
| +}
|
| +SVGImageElementWrappingImplementation.prototype.get$y = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$y());
|
| +}
|
| +SVGImageElementWrappingImplementation.prototype.get$className = function() {
|
| + return LevelDom.wrapSVGAnimatedString(this._ptr.get$className());
|
| +}
|
| +SVGImageElementWrappingImplementation.prototype.get$style = function() {
|
| + return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style());
|
| +}
|
| +// ********** Code for SVGLengthListWrappingImplementation **************
|
| +$inherits(SVGLengthListWrappingImplementation, DOMWrapperBase);
|
| +function SVGLengthListWrappingImplementation() {}
|
| +SVGLengthListWrappingImplementation._wrap$ctor = function(ptr) {
|
| + DOMWrapperBase._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGLengthListWrappingImplementation._wrap$ctor.prototype = SVGLengthListWrappingImplementation.prototype;
|
| +SVGLengthListWrappingImplementation.prototype.clear = function() {
|
| + this._ptr.clear$0();
|
| + return;
|
| +}
|
| +SVGLengthListWrappingImplementation.prototype.get$clear = function() {
|
| + return this.clear.bind(this);
|
| +}
|
| +SVGLengthListWrappingImplementation.prototype.clear$0 = SVGLengthListWrappingImplementation.prototype.clear;
|
| +// ********** Code for SVGLengthWrappingImplementation **************
|
| +$inherits(SVGLengthWrappingImplementation, DOMWrapperBase);
|
| +function SVGLengthWrappingImplementation() {}
|
| +SVGLengthWrappingImplementation._wrap$ctor = function(ptr) {
|
| + DOMWrapperBase._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGLengthWrappingImplementation._wrap$ctor.prototype = SVGLengthWrappingImplementation.prototype;
|
| +SVGLengthWrappingImplementation.prototype.get$value = function() {
|
| + return this._ptr.get$value();
|
| +}
|
| +SVGLengthWrappingImplementation.prototype.set$value = function(value) {
|
| + this._ptr.set$value(value);
|
| +}
|
| +// ********** Code for SVGLineElementWrappingImplementation **************
|
| +$inherits(SVGLineElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGLineElementWrappingImplementation() {}
|
| +SVGLineElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGLineElementWrappingImplementation._wrap$ctor.prototype = SVGLineElementWrappingImplementation.prototype;
|
| +SVGLineElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +SVGLineElementWrappingImplementation.prototype.get$className = function() {
|
| + return LevelDom.wrapSVGAnimatedString(this._ptr.get$className());
|
| +}
|
| +SVGLineElementWrappingImplementation.prototype.get$style = function() {
|
| + return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style());
|
| +}
|
| +// ********** Code for SVGLinearGradientElementWrappingImplementation **************
|
| +$inherits(SVGLinearGradientElementWrappingImplementation, SVGGradientElementWrappingImplementation);
|
| +function SVGLinearGradientElementWrappingImplementation() {}
|
| +SVGLinearGradientElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGGradientElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGLinearGradientElementWrappingImplementation._wrap$ctor.prototype = SVGLinearGradientElementWrappingImplementation.prototype;
|
| +SVGLinearGradientElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for SVGMPathElementWrappingImplementation **************
|
| +$inherits(SVGMPathElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGMPathElementWrappingImplementation() {}
|
| +SVGMPathElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGMPathElementWrappingImplementation._wrap$ctor.prototype = SVGMPathElementWrappingImplementation.prototype;
|
| +SVGMPathElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for SVGMarkerElementWrappingImplementation **************
|
| +$inherits(SVGMarkerElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGMarkerElementWrappingImplementation() {}
|
| +SVGMarkerElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGMarkerElementWrappingImplementation._wrap$ctor.prototype = SVGMarkerElementWrappingImplementation.prototype;
|
| +SVGMarkerElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +SVGMarkerElementWrappingImplementation.prototype.get$className = function() {
|
| + return LevelDom.wrapSVGAnimatedString(this._ptr.get$className());
|
| +}
|
| +SVGMarkerElementWrappingImplementation.prototype.get$style = function() {
|
| + return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style());
|
| +}
|
| +// ********** Code for SVGMaskElementWrappingImplementation **************
|
| +$inherits(SVGMaskElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGMaskElementWrappingImplementation() {}
|
| +SVGMaskElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGMaskElementWrappingImplementation._wrap$ctor.prototype = SVGMaskElementWrappingImplementation.prototype;
|
| +SVGMaskElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +SVGMaskElementWrappingImplementation.prototype.get$height = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$height());
|
| +}
|
| +SVGMaskElementWrappingImplementation.prototype.get$width = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$width());
|
| +}
|
| +SVGMaskElementWrappingImplementation.prototype.get$x = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$x());
|
| +}
|
| +SVGMaskElementWrappingImplementation.prototype.get$y = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$y());
|
| +}
|
| +SVGMaskElementWrappingImplementation.prototype.get$className = function() {
|
| + return LevelDom.wrapSVGAnimatedString(this._ptr.get$className());
|
| +}
|
| +SVGMaskElementWrappingImplementation.prototype.get$style = function() {
|
| + return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style());
|
| +}
|
| +// ********** Code for SVGMetadataElementWrappingImplementation **************
|
| +$inherits(SVGMetadataElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGMetadataElementWrappingImplementation() {}
|
| +SVGMetadataElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGMetadataElementWrappingImplementation._wrap$ctor.prototype = SVGMetadataElementWrappingImplementation.prototype;
|
| +SVGMetadataElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for SVGMissingGlyphElementWrappingImplementation **************
|
| +$inherits(SVGMissingGlyphElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGMissingGlyphElementWrappingImplementation() {}
|
| +SVGMissingGlyphElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGMissingGlyphElementWrappingImplementation._wrap$ctor.prototype = SVGMissingGlyphElementWrappingImplementation.prototype;
|
| +SVGMissingGlyphElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for SVGPathElementWrappingImplementation **************
|
| +$inherits(SVGPathElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGPathElementWrappingImplementation() {}
|
| +SVGPathElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGPathElementWrappingImplementation._wrap$ctor.prototype = SVGPathElementWrappingImplementation.prototype;
|
| +SVGPathElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +SVGPathElementWrappingImplementation.prototype.get$className = function() {
|
| + return LevelDom.wrapSVGAnimatedString(this._ptr.get$className());
|
| +}
|
| +SVGPathElementWrappingImplementation.prototype.get$style = function() {
|
| + return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style());
|
| +}
|
| +// ********** Code for SVGPatternElementWrappingImplementation **************
|
| +$inherits(SVGPatternElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGPatternElementWrappingImplementation() {}
|
| +SVGPatternElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGPatternElementWrappingImplementation._wrap$ctor.prototype = SVGPatternElementWrappingImplementation.prototype;
|
| +SVGPatternElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +SVGPatternElementWrappingImplementation.prototype.get$height = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$height());
|
| +}
|
| +SVGPatternElementWrappingImplementation.prototype.get$width = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$width());
|
| +}
|
| +SVGPatternElementWrappingImplementation.prototype.get$x = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$x());
|
| +}
|
| +SVGPatternElementWrappingImplementation.prototype.get$y = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$y());
|
| +}
|
| +SVGPatternElementWrappingImplementation.prototype.get$className = function() {
|
| + return LevelDom.wrapSVGAnimatedString(this._ptr.get$className());
|
| +}
|
| +SVGPatternElementWrappingImplementation.prototype.get$style = function() {
|
| + return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style());
|
| +}
|
| +// ********** Code for SVGPolygonElementWrappingImplementation **************
|
| +$inherits(SVGPolygonElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGPolygonElementWrappingImplementation() {}
|
| +SVGPolygonElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGPolygonElementWrappingImplementation._wrap$ctor.prototype = SVGPolygonElementWrappingImplementation.prototype;
|
| +SVGPolygonElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +SVGPolygonElementWrappingImplementation.prototype.get$className = function() {
|
| + return LevelDom.wrapSVGAnimatedString(this._ptr.get$className());
|
| +}
|
| +SVGPolygonElementWrappingImplementation.prototype.get$style = function() {
|
| + return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style());
|
| +}
|
| +// ********** Code for SVGPolylineElementWrappingImplementation **************
|
| +$inherits(SVGPolylineElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGPolylineElementWrappingImplementation() {}
|
| +SVGPolylineElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGPolylineElementWrappingImplementation._wrap$ctor.prototype = SVGPolylineElementWrappingImplementation.prototype;
|
| +SVGPolylineElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +SVGPolylineElementWrappingImplementation.prototype.get$className = function() {
|
| + return LevelDom.wrapSVGAnimatedString(this._ptr.get$className());
|
| +}
|
| +SVGPolylineElementWrappingImplementation.prototype.get$style = function() {
|
| + return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style());
|
| +}
|
| +// ********** Code for SVGRadialGradientElementWrappingImplementation **************
|
| +$inherits(SVGRadialGradientElementWrappingImplementation, SVGGradientElementWrappingImplementation);
|
| +function SVGRadialGradientElementWrappingImplementation() {}
|
| +SVGRadialGradientElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGGradientElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGRadialGradientElementWrappingImplementation._wrap$ctor.prototype = SVGRadialGradientElementWrappingImplementation.prototype;
|
| +SVGRadialGradientElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for SVGRectElementWrappingImplementation **************
|
| +$inherits(SVGRectElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGRectElementWrappingImplementation() {}
|
| +SVGRectElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGRectElementWrappingImplementation._wrap$ctor.prototype = SVGRectElementWrappingImplementation.prototype;
|
| +SVGRectElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +SVGRectElementWrappingImplementation.prototype.get$height = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$height());
|
| +}
|
| +SVGRectElementWrappingImplementation.prototype.get$width = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$width());
|
| +}
|
| +SVGRectElementWrappingImplementation.prototype.get$x = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$x());
|
| +}
|
| +SVGRectElementWrappingImplementation.prototype.get$y = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$y());
|
| +}
|
| +SVGRectElementWrappingImplementation.prototype.get$className = function() {
|
| + return LevelDom.wrapSVGAnimatedString(this._ptr.get$className());
|
| +}
|
| +SVGRectElementWrappingImplementation.prototype.get$style = function() {
|
| + return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style());
|
| +}
|
| +// ********** Code for SVGScriptElementWrappingImplementation **************
|
| +$inherits(SVGScriptElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGScriptElementWrappingImplementation() {}
|
| +SVGScriptElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGScriptElementWrappingImplementation._wrap$ctor.prototype = SVGScriptElementWrappingImplementation.prototype;
|
| +SVGScriptElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +SVGScriptElementWrappingImplementation.prototype.get$type = function() {
|
| + return this._ptr.get$type();
|
| +}
|
| +// ********** Code for SVGSetElementWrappingImplementation **************
|
| +$inherits(SVGSetElementWrappingImplementation, SVGAnimationElementWrappingImplementation);
|
| +function SVGSetElementWrappingImplementation() {}
|
| +SVGSetElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGAnimationElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGSetElementWrappingImplementation._wrap$ctor.prototype = SVGSetElementWrappingImplementation.prototype;
|
| +SVGSetElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for SVGStopElementWrappingImplementation **************
|
| +$inherits(SVGStopElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGStopElementWrappingImplementation() {}
|
| +SVGStopElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGStopElementWrappingImplementation._wrap$ctor.prototype = SVGStopElementWrappingImplementation.prototype;
|
| +SVGStopElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +SVGStopElementWrappingImplementation.prototype.get$offset = function() {
|
| + return LevelDom.wrapSVGAnimatedNumber(this._ptr.get$offset());
|
| +}
|
| +SVGStopElementWrappingImplementation.prototype.get$className = function() {
|
| + return LevelDom.wrapSVGAnimatedString(this._ptr.get$className());
|
| +}
|
| +SVGStopElementWrappingImplementation.prototype.get$style = function() {
|
| + return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style());
|
| +}
|
| +// ********** Code for SVGStyleElementWrappingImplementation **************
|
| +$inherits(SVGStyleElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGStyleElementWrappingImplementation() {}
|
| +SVGStyleElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGStyleElementWrappingImplementation._wrap$ctor.prototype = SVGStyleElementWrappingImplementation.prototype;
|
| +SVGStyleElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +SVGStyleElementWrappingImplementation.prototype.get$title = function() {
|
| + return this._ptr.get$title();
|
| +}
|
| +SVGStyleElementWrappingImplementation.prototype.get$type = function() {
|
| + return this._ptr.get$type();
|
| +}
|
| +// ********** Code for SVGSwitchElementWrappingImplementation **************
|
| +$inherits(SVGSwitchElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGSwitchElementWrappingImplementation() {}
|
| +SVGSwitchElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGSwitchElementWrappingImplementation._wrap$ctor.prototype = SVGSwitchElementWrappingImplementation.prototype;
|
| +SVGSwitchElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +SVGSwitchElementWrappingImplementation.prototype.get$className = function() {
|
| + return LevelDom.wrapSVGAnimatedString(this._ptr.get$className());
|
| +}
|
| +SVGSwitchElementWrappingImplementation.prototype.get$style = function() {
|
| + return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style());
|
| +}
|
| +// ********** Code for SVGSymbolElementWrappingImplementation **************
|
| +$inherits(SVGSymbolElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGSymbolElementWrappingImplementation() {}
|
| +SVGSymbolElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGSymbolElementWrappingImplementation._wrap$ctor.prototype = SVGSymbolElementWrappingImplementation.prototype;
|
| +SVGSymbolElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +SVGSymbolElementWrappingImplementation.prototype.get$className = function() {
|
| + return LevelDom.wrapSVGAnimatedString(this._ptr.get$className());
|
| +}
|
| +SVGSymbolElementWrappingImplementation.prototype.get$style = function() {
|
| + return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style());
|
| +}
|
| +// ********** Code for SVGTRefElementWrappingImplementation **************
|
| +$inherits(SVGTRefElementWrappingImplementation, SVGTextPositioningElementWrappingImplementation);
|
| +function SVGTRefElementWrappingImplementation() {}
|
| +SVGTRefElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGTextPositioningElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGTRefElementWrappingImplementation._wrap$ctor.prototype = SVGTRefElementWrappingImplementation.prototype;
|
| +SVGTRefElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for SVGTSpanElementWrappingImplementation **************
|
| +$inherits(SVGTSpanElementWrappingImplementation, SVGTextPositioningElementWrappingImplementation);
|
| +function SVGTSpanElementWrappingImplementation() {}
|
| +SVGTSpanElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGTextPositioningElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGTSpanElementWrappingImplementation._wrap$ctor.prototype = SVGTSpanElementWrappingImplementation.prototype;
|
| +SVGTSpanElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for SVGTextElementWrappingImplementation **************
|
| +$inherits(SVGTextElementWrappingImplementation, SVGTextPositioningElementWrappingImplementation);
|
| +function SVGTextElementWrappingImplementation() {}
|
| +SVGTextElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGTextPositioningElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGTextElementWrappingImplementation._wrap$ctor.prototype = SVGTextElementWrappingImplementation.prototype;
|
| +SVGTextElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for SVGTextPathElementWrappingImplementation **************
|
| +$inherits(SVGTextPathElementWrappingImplementation, SVGTextContentElementWrappingImplementation);
|
| +function SVGTextPathElementWrappingImplementation() {}
|
| +SVGTextPathElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGTextContentElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGTextPathElementWrappingImplementation._wrap$ctor.prototype = SVGTextPathElementWrappingImplementation.prototype;
|
| +SVGTextPathElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for SVGTitleElementWrappingImplementation **************
|
| +$inherits(SVGTitleElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGTitleElementWrappingImplementation() {}
|
| +SVGTitleElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGTitleElementWrappingImplementation._wrap$ctor.prototype = SVGTitleElementWrappingImplementation.prototype;
|
| +SVGTitleElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +SVGTitleElementWrappingImplementation.prototype.get$className = function() {
|
| + return LevelDom.wrapSVGAnimatedString(this._ptr.get$className());
|
| +}
|
| +SVGTitleElementWrappingImplementation.prototype.get$style = function() {
|
| + return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style());
|
| +}
|
| +// ********** Code for SVGUseElementWrappingImplementation **************
|
| +$inherits(SVGUseElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGUseElementWrappingImplementation() {}
|
| +SVGUseElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGUseElementWrappingImplementation._wrap$ctor.prototype = SVGUseElementWrappingImplementation.prototype;
|
| +SVGUseElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +SVGUseElementWrappingImplementation.prototype.get$height = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$height());
|
| +}
|
| +SVGUseElementWrappingImplementation.prototype.get$width = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$width());
|
| +}
|
| +SVGUseElementWrappingImplementation.prototype.get$x = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$x());
|
| +}
|
| +SVGUseElementWrappingImplementation.prototype.get$y = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$y());
|
| +}
|
| +SVGUseElementWrappingImplementation.prototype.get$className = function() {
|
| + return LevelDom.wrapSVGAnimatedString(this._ptr.get$className());
|
| +}
|
| +SVGUseElementWrappingImplementation.prototype.get$style = function() {
|
| + return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style());
|
| +}
|
| +// ********** Code for SVGVKernElementWrappingImplementation **************
|
| +$inherits(SVGVKernElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGVKernElementWrappingImplementation() {}
|
| +SVGVKernElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGVKernElementWrappingImplementation._wrap$ctor.prototype = SVGVKernElementWrappingImplementation.prototype;
|
| +SVGVKernElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for SVGViewElementWrappingImplementation **************
|
| +$inherits(SVGViewElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGViewElementWrappingImplementation() {}
|
| +SVGViewElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGViewElementWrappingImplementation._wrap$ctor.prototype = SVGViewElementWrappingImplementation.prototype;
|
| +SVGViewElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for UIEventWrappingImplementation **************
|
| +$inherits(UIEventWrappingImplementation, EventWrappingImplementation);
|
| +function UIEventWrappingImplementation() {}
|
| +UIEventWrappingImplementation._wrap$ctor = function(ptr) {
|
| + EventWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +UIEventWrappingImplementation._wrap$ctor.prototype = UIEventWrappingImplementation.prototype;
|
| +UIEventWrappingImplementation.prototype.get$keyCode = function() {
|
| + return this._ptr.get$keyCode();
|
| +}
|
| +UIEventWrappingImplementation.prototype.get$pageX = function() {
|
| + return this._ptr.get$pageX();
|
| +}
|
| +UIEventWrappingImplementation.prototype.get$pageY = function() {
|
| + return this._ptr.get$pageY();
|
| +}
|
| +UIEventWrappingImplementation.prototype.get$view = function() {
|
| + return LevelDom.wrapWindow(this._ptr.get$view());
|
| +}
|
| +// ********** Code for SVGZoomEventWrappingImplementation **************
|
| +$inherits(SVGZoomEventWrappingImplementation, UIEventWrappingImplementation);
|
| +function SVGZoomEventWrappingImplementation() {}
|
| +SVGZoomEventWrappingImplementation._wrap$ctor = function(ptr) {
|
| + UIEventWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGZoomEventWrappingImplementation._wrap$ctor.prototype = SVGZoomEventWrappingImplementation.prototype;
|
| +// ********** Code for ScreenWrappingImplementation **************
|
| +$inherits(ScreenWrappingImplementation, DOMWrapperBase);
|
| +function ScreenWrappingImplementation() {}
|
| +ScreenWrappingImplementation._wrap$ctor = function(ptr) {
|
| + DOMWrapperBase._wrap$ctor.call(this, ptr);
|
| +}
|
| +ScreenWrappingImplementation._wrap$ctor.prototype = ScreenWrappingImplementation.prototype;
|
| +ScreenWrappingImplementation.prototype.get$height = function() {
|
| + return this._ptr.get$height();
|
| +}
|
| +ScreenWrappingImplementation.prototype.get$width = function() {
|
| + return this._ptr.get$width();
|
| +}
|
| +// ********** Code for ScriptElementWrappingImplementation **************
|
| +$inherits(ScriptElementWrappingImplementation, ElementWrappingImplementation);
|
| +function ScriptElementWrappingImplementation() {}
|
| +ScriptElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +ScriptElementWrappingImplementation._wrap$ctor.prototype = ScriptElementWrappingImplementation.prototype;
|
| +ScriptElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +ScriptElementWrappingImplementation.prototype.get$text = function() {
|
| + return this._ptr.get$text();
|
| +}
|
| +ScriptElementWrappingImplementation.prototype.set$text = function(value) {
|
| + this._ptr.set$text(value);
|
| +}
|
| +ScriptElementWrappingImplementation.prototype.get$type = function() {
|
| + return this._ptr.get$type();
|
| +}
|
| +// ********** Code for SelectElementWrappingImplementation **************
|
| +$inherits(SelectElementWrappingImplementation, ElementWrappingImplementation);
|
| +function SelectElementWrappingImplementation() {}
|
| +SelectElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SelectElementWrappingImplementation._wrap$ctor.prototype = SelectElementWrappingImplementation.prototype;
|
| +SelectElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +SelectElementWrappingImplementation.prototype.get$length = function() {
|
| + return this._ptr.get$length();
|
| +}
|
| +SelectElementWrappingImplementation.prototype.get$name = function() {
|
| + return this._ptr.get$name();
|
| +}
|
| +SelectElementWrappingImplementation.prototype.get$type = function() {
|
| + return this._ptr.get$type();
|
| +}
|
| +SelectElementWrappingImplementation.prototype.get$value = function() {
|
| + return this._ptr.get$value();
|
| +}
|
| +SelectElementWrappingImplementation.prototype.set$value = function(value) {
|
| + this._ptr.set$value(value);
|
| +}
|
| +SelectElementWrappingImplementation.prototype.add = function(element, before) {
|
| + this._ptr.add$2(LevelDom.unwrap(element), LevelDom.unwrap(before));
|
| + return;
|
| +}
|
| +SelectElementWrappingImplementation.prototype.item = function(index) {
|
| + return LevelDom.wrapNode(this._ptr.item$1(index));
|
| +}
|
| +SelectElementWrappingImplementation.prototype.add$2 = SelectElementWrappingImplementation.prototype.add;
|
| +SelectElementWrappingImplementation.prototype.item$1 = SelectElementWrappingImplementation.prototype.item;
|
| +// ********** Code for SourceElementWrappingImplementation **************
|
| +$inherits(SourceElementWrappingImplementation, ElementWrappingImplementation);
|
| +function SourceElementWrappingImplementation() {}
|
| +SourceElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SourceElementWrappingImplementation._wrap$ctor.prototype = SourceElementWrappingImplementation.prototype;
|
| +SourceElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +SourceElementWrappingImplementation.prototype.get$type = function() {
|
| + return this._ptr.get$type();
|
| +}
|
| +// ********** Code for SpanElementWrappingImplementation **************
|
| +$inherits(SpanElementWrappingImplementation, ElementWrappingImplementation);
|
| +function SpanElementWrappingImplementation() {}
|
| +SpanElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SpanElementWrappingImplementation._wrap$ctor.prototype = SpanElementWrappingImplementation.prototype;
|
| +SpanElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for SpeechInputEventWrappingImplementation **************
|
| +$inherits(SpeechInputEventWrappingImplementation, EventWrappingImplementation);
|
| +function SpeechInputEventWrappingImplementation() {}
|
| +SpeechInputEventWrappingImplementation._wrap$ctor = function(ptr) {
|
| + EventWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SpeechInputEventWrappingImplementation._wrap$ctor.prototype = SpeechInputEventWrappingImplementation.prototype;
|
| +// ********** Code for StyleElementWrappingImplementation **************
|
| +$inherits(StyleElementWrappingImplementation, ElementWrappingImplementation);
|
| +function StyleElementWrappingImplementation() {}
|
| +StyleElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +StyleElementWrappingImplementation._wrap$ctor.prototype = StyleElementWrappingImplementation.prototype;
|
| +StyleElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +StyleElementWrappingImplementation.prototype.get$type = function() {
|
| + return this._ptr.get$type();
|
| +}
|
| +// ********** Code for TableCaptionElementWrappingImplementation **************
|
| +$inherits(TableCaptionElementWrappingImplementation, ElementWrappingImplementation);
|
| +function TableCaptionElementWrappingImplementation() {}
|
| +TableCaptionElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +TableCaptionElementWrappingImplementation._wrap$ctor.prototype = TableCaptionElementWrappingImplementation.prototype;
|
| +TableCaptionElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for TableCellElementWrappingImplementation **************
|
| +$inherits(TableCellElementWrappingImplementation, ElementWrappingImplementation);
|
| +function TableCellElementWrappingImplementation() {}
|
| +TableCellElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +TableCellElementWrappingImplementation._wrap$ctor.prototype = TableCellElementWrappingImplementation.prototype;
|
| +TableCellElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +TableCellElementWrappingImplementation.prototype.get$height = function() {
|
| + return this._ptr.get$height();
|
| +}
|
| +TableCellElementWrappingImplementation.prototype.set$height = function(value) {
|
| + this._ptr.set$height(value);
|
| +}
|
| +TableCellElementWrappingImplementation.prototype.get$rowSpan = function() {
|
| + return this._ptr.get$rowSpan();
|
| +}
|
| +TableCellElementWrappingImplementation.prototype.get$width = function() {
|
| + return this._ptr.get$width();
|
| +}
|
| +TableCellElementWrappingImplementation.prototype.set$width = function(value) {
|
| + this._ptr.set$width(value);
|
| +}
|
| +// ********** Code for TableColElementWrappingImplementation **************
|
| +$inherits(TableColElementWrappingImplementation, ElementWrappingImplementation);
|
| +function TableColElementWrappingImplementation() {}
|
| +TableColElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +TableColElementWrappingImplementation._wrap$ctor.prototype = TableColElementWrappingImplementation.prototype;
|
| +TableColElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +TableColElementWrappingImplementation.prototype.get$width = function() {
|
| + return this._ptr.get$width();
|
| +}
|
| +TableColElementWrappingImplementation.prototype.set$width = function(value) {
|
| + this._ptr.set$width(value);
|
| +}
|
| +// ********** Code for TableElementWrappingImplementation **************
|
| +$inherits(TableElementWrappingImplementation, ElementWrappingImplementation);
|
| +function TableElementWrappingImplementation() {}
|
| +TableElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +TableElementWrappingImplementation._wrap$ctor.prototype = TableElementWrappingImplementation.prototype;
|
| +TableElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +TableElementWrappingImplementation.prototype.get$width = function() {
|
| + return this._ptr.get$width();
|
| +}
|
| +TableElementWrappingImplementation.prototype.set$width = function(value) {
|
| + this._ptr.set$width(value);
|
| +}
|
| +// ********** Code for TableRowElementWrappingImplementation **************
|
| +$inherits(TableRowElementWrappingImplementation, ElementWrappingImplementation);
|
| +function TableRowElementWrappingImplementation() {}
|
| +TableRowElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +TableRowElementWrappingImplementation._wrap$ctor.prototype = TableRowElementWrappingImplementation.prototype;
|
| +TableRowElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for TableSectionElementWrappingImplementation **************
|
| +$inherits(TableSectionElementWrappingImplementation, ElementWrappingImplementation);
|
| +function TableSectionElementWrappingImplementation() {}
|
| +TableSectionElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +TableSectionElementWrappingImplementation._wrap$ctor.prototype = TableSectionElementWrappingImplementation.prototype;
|
| +TableSectionElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for TextAreaElementWrappingImplementation **************
|
| +$inherits(TextAreaElementWrappingImplementation, ElementWrappingImplementation);
|
| +function TextAreaElementWrappingImplementation() {}
|
| +TextAreaElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +TextAreaElementWrappingImplementation._wrap$ctor.prototype = TextAreaElementWrappingImplementation.prototype;
|
| +TextAreaElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +TextAreaElementWrappingImplementation.prototype.get$name = function() {
|
| + return this._ptr.get$name();
|
| +}
|
| +TextAreaElementWrappingImplementation.prototype.get$type = function() {
|
| + return this._ptr.get$type();
|
| +}
|
| +TextAreaElementWrappingImplementation.prototype.get$value = function() {
|
| + return this._ptr.get$value();
|
| +}
|
| +TextAreaElementWrappingImplementation.prototype.set$value = function(value) {
|
| + this._ptr.set$value(value);
|
| +}
|
| +// ********** Code for TextMetricsWrappingImplementation **************
|
| +$inherits(TextMetricsWrappingImplementation, DOMWrapperBase);
|
| +function TextMetricsWrappingImplementation() {}
|
| +TextMetricsWrappingImplementation._wrap$ctor = function(ptr) {
|
| + DOMWrapperBase._wrap$ctor.call(this, ptr);
|
| +}
|
| +TextMetricsWrappingImplementation._wrap$ctor.prototype = TextMetricsWrappingImplementation.prototype;
|
| +TextMetricsWrappingImplementation.prototype.get$width = function() {
|
| + return this._ptr.get$width();
|
| +}
|
| +// ********** Code for TitleElementWrappingImplementation **************
|
| +$inherits(TitleElementWrappingImplementation, ElementWrappingImplementation);
|
| +function TitleElementWrappingImplementation() {}
|
| +TitleElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +TitleElementWrappingImplementation._wrap$ctor.prototype = TitleElementWrappingImplementation.prototype;
|
| +TitleElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +TitleElementWrappingImplementation.prototype.get$text = function() {
|
| + return this._ptr.get$text();
|
| +}
|
| +TitleElementWrappingImplementation.prototype.set$text = function(value) {
|
| + this._ptr.set$text(value);
|
| +}
|
| +// ********** Code for TouchListWrappingImplementation **************
|
| +$inherits(TouchListWrappingImplementation, DOMWrapperBase);
|
| +function TouchListWrappingImplementation() {}
|
| +TouchListWrappingImplementation._wrap$ctor = function(ptr) {
|
| + DOMWrapperBase._wrap$ctor.call(this, ptr);
|
| +}
|
| +TouchListWrappingImplementation._wrap$ctor.prototype = TouchListWrappingImplementation.prototype;
|
| +TouchListWrappingImplementation.prototype.is$List = function(){return true};
|
| +TouchListWrappingImplementation.prototype.get$length = function() {
|
| + return this._ptr.get$length();
|
| +}
|
| +TouchListWrappingImplementation.prototype.$index = function(index) {
|
| + return LevelDom.wrapTouch(this._ptr.$index(index));
|
| +}
|
| +TouchListWrappingImplementation.prototype.$setindex = function(index, value) {
|
| + this._ptr.$setindex(index, LevelDom.unwrap(value));
|
| +}
|
| +TouchListWrappingImplementation.prototype.add = function(value) {
|
| + $throw(new UnsupportedOperationException("Cannot add to immutable List."));
|
| +}
|
| +TouchListWrappingImplementation.prototype.addAll = function(collection) {
|
| + $throw(new UnsupportedOperationException("Cannot add to immutable List."));
|
| +}
|
| +TouchListWrappingImplementation.prototype.sort = function(compare) {
|
| + $throw(new UnsupportedOperationException("Cannot sort immutable List."));
|
| +}
|
| +TouchListWrappingImplementation.prototype.indexOf = function(element, start) {
|
| + return Lists.indexOf(this, element, start, this.get$length());
|
| +}
|
| +TouchListWrappingImplementation.prototype.clear = function() {
|
| + $throw(new UnsupportedOperationException("Cannot clear immutable List."));
|
| +}
|
| +TouchListWrappingImplementation.prototype.get$clear = function() {
|
| + return this.clear.bind(this);
|
| +}
|
| +TouchListWrappingImplementation.prototype.removeLast = function() {
|
| + $throw(new UnsupportedOperationException("Cannot removeLast on immutable List."));
|
| +}
|
| +TouchListWrappingImplementation.prototype.last = function() {
|
| + return this.$index(this.get$length() - (1));
|
| +}
|
| +TouchListWrappingImplementation.prototype.forEach = function(f) {
|
| + _Collections.forEach(this, f);
|
| +}
|
| +TouchListWrappingImplementation.prototype.filter = function(f) {
|
| + return _Collections.filter(this, new Array(), f);
|
| +}
|
| +TouchListWrappingImplementation.prototype.some = function(f) {
|
| + return _Collections.some(this, f);
|
| +}
|
| +TouchListWrappingImplementation.prototype.getRange = function(start, length) {
|
| + $throw(new NotImplementedException());
|
| +}
|
| +TouchListWrappingImplementation.prototype.isEmpty = function() {
|
| + return this.get$length() == (0);
|
| +}
|
| +TouchListWrappingImplementation.prototype.iterator = function() {
|
| + return new _FixedSizeListIterator_html_html_Touch(this);
|
| +}
|
| +TouchListWrappingImplementation.prototype.item = function(index) {
|
| + return LevelDom.wrapTouch(this._ptr.item$1(index));
|
| +}
|
| +TouchListWrappingImplementation.prototype.add$1 = TouchListWrappingImplementation.prototype.add;
|
| +TouchListWrappingImplementation.prototype.addAll$1 = TouchListWrappingImplementation.prototype.addAll;
|
| +TouchListWrappingImplementation.prototype.clear$0 = TouchListWrappingImplementation.prototype.clear;
|
| +TouchListWrappingImplementation.prototype.filter$1 = function($0) {
|
| + return this.filter(to$call$1($0));
|
| +};
|
| +TouchListWrappingImplementation.prototype.forEach$1 = function($0) {
|
| + return this.forEach(to$call$1($0));
|
| +};
|
| +TouchListWrappingImplementation.prototype.getRange$2 = TouchListWrappingImplementation.prototype.getRange;
|
| +TouchListWrappingImplementation.prototype.item$1 = TouchListWrappingImplementation.prototype.item;
|
| +TouchListWrappingImplementation.prototype.iterator$0 = TouchListWrappingImplementation.prototype.iterator;
|
| +TouchListWrappingImplementation.prototype.last$0 = TouchListWrappingImplementation.prototype.last;
|
| +TouchListWrappingImplementation.prototype.removeLast$0 = TouchListWrappingImplementation.prototype.removeLast;
|
| +// ********** Code for TouchWrappingImplementation **************
|
| +$inherits(TouchWrappingImplementation, DOMWrapperBase);
|
| +function TouchWrappingImplementation() {}
|
| +TouchWrappingImplementation._wrap$ctor = function(ptr) {
|
| + DOMWrapperBase._wrap$ctor.call(this, ptr);
|
| +}
|
| +TouchWrappingImplementation._wrap$ctor.prototype = TouchWrappingImplementation.prototype;
|
| +TouchWrappingImplementation.prototype.get$clientX = function() {
|
| + return this._ptr.get$clientX();
|
| +}
|
| +TouchWrappingImplementation.prototype.get$clientY = function() {
|
| + return this._ptr.get$clientY();
|
| +}
|
| +TouchWrappingImplementation.prototype.get$pageX = function() {
|
| + return this._ptr.get$pageX();
|
| +}
|
| +TouchWrappingImplementation.prototype.get$pageY = function() {
|
| + return this._ptr.get$pageY();
|
| +}
|
| +TouchWrappingImplementation.prototype.get$target = function() {
|
| + return LevelDom.wrapEventTarget(this._ptr.get$target());
|
| +}
|
| +// ********** Code for TrackElementWrappingImplementation **************
|
| +$inherits(TrackElementWrappingImplementation, ElementWrappingImplementation);
|
| +function TrackElementWrappingImplementation() {}
|
| +TrackElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +TrackElementWrappingImplementation._wrap$ctor.prototype = TrackElementWrappingImplementation.prototype;
|
| +TrackElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for UListElementWrappingImplementation **************
|
| +$inherits(UListElementWrappingImplementation, ElementWrappingImplementation);
|
| +function UListElementWrappingImplementation() {}
|
| +UListElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +UListElementWrappingImplementation._wrap$ctor.prototype = UListElementWrappingImplementation.prototype;
|
| +UListElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +UListElementWrappingImplementation.prototype.get$type = function() {
|
| + return this._ptr.get$type();
|
| +}
|
| +// ********** Code for UnknownElementWrappingImplementation **************
|
| +$inherits(UnknownElementWrappingImplementation, ElementWrappingImplementation);
|
| +function UnknownElementWrappingImplementation() {}
|
| +UnknownElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +UnknownElementWrappingImplementation._wrap$ctor.prototype = UnknownElementWrappingImplementation.prototype;
|
| +UnknownElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for VideoElementWrappingImplementation **************
|
| +$inherits(VideoElementWrappingImplementation, MediaElementWrappingImplementation);
|
| +function VideoElementWrappingImplementation() {}
|
| +VideoElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + MediaElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +VideoElementWrappingImplementation._wrap$ctor.prototype = VideoElementWrappingImplementation.prototype;
|
| +VideoElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +VideoElementWrappingImplementation.prototype.get$height = function() {
|
| + return this._ptr.get$height();
|
| +}
|
| +VideoElementWrappingImplementation.prototype.set$height = function(value) {
|
| + this._ptr.set$height(value);
|
| +}
|
| +VideoElementWrappingImplementation.prototype.get$width = function() {
|
| + return this._ptr.get$width();
|
| +}
|
| +VideoElementWrappingImplementation.prototype.set$width = function(value) {
|
| + this._ptr.set$width(value);
|
| +}
|
| +// ********** Code for WebGLContextEventWrappingImplementation **************
|
| +$inherits(WebGLContextEventWrappingImplementation, EventWrappingImplementation);
|
| +function WebGLContextEventWrappingImplementation() {}
|
| +WebGLContextEventWrappingImplementation._wrap$ctor = function(ptr) {
|
| + EventWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +WebGLContextEventWrappingImplementation._wrap$ctor.prototype = WebGLContextEventWrappingImplementation.prototype;
|
| +// ********** Code for WebGLRenderingContextWrappingImplementation **************
|
| +$inherits(WebGLRenderingContextWrappingImplementation, CanvasRenderingContextWrappingImplementation);
|
| +function WebGLRenderingContextWrappingImplementation() {}
|
| +WebGLRenderingContextWrappingImplementation._wrap$ctor = function(ptr) {
|
| + CanvasRenderingContextWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +WebGLRenderingContextWrappingImplementation._wrap$ctor.prototype = WebGLRenderingContextWrappingImplementation.prototype;
|
| +WebGLRenderingContextWrappingImplementation.prototype.clear = function(mask) {
|
| + this._ptr.clear$1(mask);
|
| + return;
|
| +}
|
| +WebGLRenderingContextWrappingImplementation.prototype.get$clear = function() {
|
| + return this.clear.bind(this);
|
| +}
|
| +WebGLRenderingContextWrappingImplementation.prototype.clear$1 = WebGLRenderingContextWrappingImplementation.prototype.clear;
|
| +// ********** Code for LevelDom **************
|
| +function LevelDom() {}
|
| +LevelDom.wrapCSSStyleDeclaration = function(raw) {
|
| + return raw == null ? null : raw.get$dartObjectLocalStorage() != null ? raw.get$dartObjectLocalStorage() : new CSSStyleDeclarationWrappingImplementation._wrap$ctor(raw);
|
| +}
|
| +LevelDom.wrapCanvasRenderingContext = function(raw) {
|
| + if (raw == null) {
|
| + return null;
|
| + }
|
| + if (raw.get$dartObjectLocalStorage() != null) {
|
| + return raw.get$dartObjectLocalStorage();
|
| + }
|
| + switch (raw.get$typeName()) {
|
| + case "CanvasRenderingContext":
|
| +
|
| + return new CanvasRenderingContextWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "CanvasRenderingContext2D":
|
| +
|
| + return new CanvasRenderingContext2DWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "WebGLRenderingContext":
|
| +
|
| + return new WebGLRenderingContextWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + default:
|
| +
|
| + $throw(new UnsupportedOperationException("Unknown type:" + raw.toString$0()));
|
| +
|
| + }
|
| +}
|
| +LevelDom.wrapConsole = function(raw) {
|
| + return raw == null ? null : raw.get$dartObjectLocalStorage() != null ? raw.get$dartObjectLocalStorage() : new ConsoleWrappingImplementation._wrap$ctor(raw);
|
| +}
|
| +LevelDom.wrapDOMApplicationCache = function(raw) {
|
| + return raw == null ? null : raw.get$dartObjectLocalStorage() != null ? raw.get$dartObjectLocalStorage() : new DOMApplicationCacheWrappingImplementation._wrap$ctor(raw);
|
| +}
|
| +LevelDom.wrapDocument = function(raw) {
|
| + if (raw == null) {
|
| + return null;
|
| + }
|
| + if (raw.get$dartObjectLocalStorage() != null) {
|
| + return raw.get$dartObjectLocalStorage();
|
| + }
|
| + switch (raw.get$typeName()) {
|
| + case "HTMLDocument":
|
| +
|
| + return new DocumentWrappingImplementation._wrap$ctor(raw, raw.get$documentElement());
|
| +
|
| + case "SVGDocument":
|
| +
|
| + return new SVGDocumentWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + default:
|
| +
|
| + $throw(new UnsupportedOperationException("Unknown type:" + raw.toString$0()));
|
| +
|
| + }
|
| +}
|
| +LevelDom.wrapElement = function(raw) {
|
| + if (raw == null) {
|
| + return null;
|
| + }
|
| + if (raw.get$dartObjectLocalStorage() != null) {
|
| + return raw.get$dartObjectLocalStorage();
|
| + }
|
| + switch (raw.get$typeName()) {
|
| + case "HTMLAnchorElement":
|
| +
|
| + return new AnchorElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLAreaElement":
|
| +
|
| + return new AreaElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLAudioElement":
|
| +
|
| + return new AudioElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLBRElement":
|
| +
|
| + return new BRElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLBaseElement":
|
| +
|
| + return new BaseElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLBodyElement":
|
| +
|
| + return new BodyElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLButtonElement":
|
| +
|
| + return new ButtonElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLCanvasElement":
|
| +
|
| + return new CanvasElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLDListElement":
|
| +
|
| + return new DListElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLDataListElement":
|
| +
|
| + return new DataListElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLDetailsElement":
|
| +
|
| + return new DetailsElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLDivElement":
|
| +
|
| + return new DivElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLElement":
|
| +
|
| + return new ElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLEmbedElement":
|
| +
|
| + return new EmbedElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLFieldSetElement":
|
| +
|
| + return new FieldSetElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLFontElement":
|
| +
|
| + return new FontElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLFormElement":
|
| +
|
| + return new FormElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLHRElement":
|
| +
|
| + return new HRElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLHeadElement":
|
| +
|
| + return new HeadElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLHeadingElement":
|
| +
|
| + return new HeadingElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLHtmlElement":
|
| +
|
| + return new DocumentWrappingImplementation._wrap$ctor(raw.get$parentNode(), raw);
|
| +
|
| + case "HTMLIFrameElement":
|
| +
|
| + return new IFrameElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLImageElement":
|
| +
|
| + return new ImageElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLInputElement":
|
| +
|
| + return new InputElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLKeygenElement":
|
| +
|
| + return new KeygenElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLLIElement":
|
| +
|
| + return new LIElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLLabelElement":
|
| +
|
| + return new LabelElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLLegendElement":
|
| +
|
| + return new LegendElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLLinkElement":
|
| +
|
| + return new LinkElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLMapElement":
|
| +
|
| + return new MapElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLMarqueeElement":
|
| +
|
| + return new MarqueeElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLMediaElement":
|
| +
|
| + return new MediaElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLMenuElement":
|
| +
|
| + return new MenuElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLMetaElement":
|
| +
|
| + return new MetaElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLMeterElement":
|
| +
|
| + return new MeterElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLModElement":
|
| +
|
| + return new ModElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLOListElement":
|
| +
|
| + return new OListElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLObjectElement":
|
| +
|
| + return new ObjectElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLOptGroupElement":
|
| +
|
| + return new OptGroupElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLOptionElement":
|
| +
|
| + return new OptionElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLOutputElement":
|
| +
|
| + return new OutputElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLParagraphElement":
|
| +
|
| + return new ParagraphElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLParamElement":
|
| +
|
| + return new ParamElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLPreElement":
|
| +
|
| + return new PreElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLProgressElement":
|
| +
|
| + return new ProgressElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLQuoteElement":
|
| +
|
| + return new QuoteElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGAElement":
|
| +
|
| + return new SVGAElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGAltGlyphDefElement":
|
| +
|
| + return new SVGAltGlyphDefElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGAltGlyphElement":
|
| +
|
| + return new SVGAltGlyphElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGAltGlyphItemElement":
|
| +
|
| + return new SVGAltGlyphItemElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGAnimateColorElement":
|
| +
|
| + return new SVGAnimateColorElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGAnimateElement":
|
| +
|
| + return new SVGAnimateElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGAnimateMotionElement":
|
| +
|
| + return new SVGAnimateMotionElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGAnimateTransformElement":
|
| +
|
| + return new SVGAnimateTransformElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGAnimationElement":
|
| +
|
| + return new SVGAnimationElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGCircleElement":
|
| +
|
| + return new SVGCircleElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGClipPathElement":
|
| +
|
| + return new SVGClipPathElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGComponentTransferFunctionElement":
|
| +
|
| + return new SVGComponentTransferFunctionElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGCursorElement":
|
| +
|
| + return new SVGCursorElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGDefsElement":
|
| +
|
| + return new SVGDefsElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGDescElement":
|
| +
|
| + return new SVGDescElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGElement":
|
| +
|
| + return new SVGElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGEllipseElement":
|
| +
|
| + return new SVGEllipseElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEBlendElement":
|
| +
|
| + return new SVGFEBlendElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEColorMatrixElement":
|
| +
|
| + return new SVGFEColorMatrixElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEComponentTransferElement":
|
| +
|
| + return new SVGFEComponentTransferElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEConvolveMatrixElement":
|
| +
|
| + return new SVGFEConvolveMatrixElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEDiffuseLightingElement":
|
| +
|
| + return new SVGFEDiffuseLightingElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEDisplacementMapElement":
|
| +
|
| + return new SVGFEDisplacementMapElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEDistantLightElement":
|
| +
|
| + return new SVGFEDistantLightElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEDropShadowElement":
|
| +
|
| + return new SVGFEDropShadowElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEFloodElement":
|
| +
|
| + return new SVGFEFloodElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEFuncAElement":
|
| +
|
| + return new SVGFEFuncAElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEFuncBElement":
|
| +
|
| + return new SVGFEFuncBElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEFuncGElement":
|
| +
|
| + return new SVGFEFuncGElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEFuncRElement":
|
| +
|
| + return new SVGFEFuncRElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEGaussianBlurElement":
|
| +
|
| + return new SVGFEGaussianBlurElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEImageElement":
|
| +
|
| + return new SVGFEImageElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEMergeElement":
|
| +
|
| + return new SVGFEMergeElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEMergeNodeElement":
|
| +
|
| + return new SVGFEMergeNodeElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEOffsetElement":
|
| +
|
| + return new SVGFEOffsetElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEPointLightElement":
|
| +
|
| + return new SVGFEPointLightElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFESpecularLightingElement":
|
| +
|
| + return new SVGFESpecularLightingElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFESpotLightElement":
|
| +
|
| + return new SVGFESpotLightElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFETileElement":
|
| +
|
| + return new SVGFETileElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFETurbulenceElement":
|
| +
|
| + return new SVGFETurbulenceElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFilterElement":
|
| +
|
| + return new SVGFilterElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFontElement":
|
| +
|
| + return new SVGFontElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFontFaceElement":
|
| +
|
| + return new SVGFontFaceElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFontFaceFormatElement":
|
| +
|
| + return new SVGFontFaceFormatElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFontFaceNameElement":
|
| +
|
| + return new SVGFontFaceNameElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFontFaceSrcElement":
|
| +
|
| + return new SVGFontFaceSrcElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFontFaceUriElement":
|
| +
|
| + return new SVGFontFaceUriElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGForeignObjectElement":
|
| +
|
| + return new SVGForeignObjectElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGGElement":
|
| +
|
| + return new SVGGElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGGlyphElement":
|
| +
|
| + return new SVGGlyphElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGGlyphRefElement":
|
| +
|
| + return new SVGGlyphRefElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGGradientElement":
|
| +
|
| + return new SVGGradientElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGHKernElement":
|
| +
|
| + return new SVGHKernElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGImageElement":
|
| +
|
| + return new SVGImageElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGLineElement":
|
| +
|
| + return new SVGLineElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGLinearGradientElement":
|
| +
|
| + return new SVGLinearGradientElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGMPathElement":
|
| +
|
| + return new SVGMPathElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGMarkerElement":
|
| +
|
| + return new SVGMarkerElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGMaskElement":
|
| +
|
| + return new SVGMaskElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGMetadataElement":
|
| +
|
| + return new SVGMetadataElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGMissingGlyphElement":
|
| +
|
| + return new SVGMissingGlyphElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGPathElement":
|
| +
|
| + return new SVGPathElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGPatternElement":
|
| +
|
| + return new SVGPatternElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGPolygonElement":
|
| +
|
| + return new SVGPolygonElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGPolylineElement":
|
| +
|
| + return new SVGPolylineElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGRadialGradientElement":
|
| +
|
| + return new SVGRadialGradientElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGRectElement":
|
| +
|
| + return new SVGRectElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGSVGElement":
|
| +
|
| + return new SVGSVGElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGScriptElement":
|
| +
|
| + return new SVGScriptElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGSetElement":
|
| +
|
| + return new SVGSetElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGStopElement":
|
| +
|
| + return new SVGStopElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGStyleElement":
|
| +
|
| + return new SVGStyleElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGSwitchElement":
|
| +
|
| + return new SVGSwitchElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGSymbolElement":
|
| +
|
| + return new SVGSymbolElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGTRefElement":
|
| +
|
| + return new SVGTRefElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGTSpanElement":
|
| +
|
| + return new SVGTSpanElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGTextContentElement":
|
| +
|
| + return new SVGTextContentElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGTextElement":
|
| +
|
| + return new SVGTextElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGTextPathElement":
|
| +
|
| + return new SVGTextPathElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGTextPositioningElement":
|
| +
|
| + return new SVGTextPositioningElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGTitleElement":
|
| +
|
| + return new SVGTitleElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGUseElement":
|
| +
|
| + return new SVGUseElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGVKernElement":
|
| +
|
| + return new SVGVKernElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGViewElement":
|
| +
|
| + return new SVGViewElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLScriptElement":
|
| +
|
| + return new ScriptElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLSelectElement":
|
| +
|
| + return new SelectElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLSourceElement":
|
| +
|
| + return new SourceElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLSpanElement":
|
| +
|
| + return new SpanElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLStyleElement":
|
| +
|
| + return new StyleElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLTableCaptionElement":
|
| +
|
| + return new TableCaptionElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLTableCellElement":
|
| +
|
| + return new TableCellElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLTableColElement":
|
| +
|
| + return new TableColElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLTableElement":
|
| +
|
| + return new TableElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLTableRowElement":
|
| +
|
| + return new TableRowElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLTableSectionElement":
|
| +
|
| + return new TableSectionElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLTextAreaElement":
|
| +
|
| + return new TextAreaElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLTitleElement":
|
| +
|
| + return new TitleElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLTrackElement":
|
| +
|
| + return new TrackElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLUListElement":
|
| +
|
| + return new UListElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLUnknownElement":
|
| +
|
| + return new UnknownElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLVideoElement":
|
| +
|
| + return new VideoElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + default:
|
| +
|
| + $throw(new UnsupportedOperationException("Unknown type:" + raw.toString$0()));
|
| +
|
| + }
|
| +}
|
| +LevelDom.wrapElementList = function(raw) {
|
| + return raw == null ? null : new FrozenElementList._wrap$ctor(raw);
|
| +}
|
| +LevelDom.wrapEvent = function(raw) {
|
| + if (raw == null) {
|
| + return null;
|
| + }
|
| + if (raw.get$dartObjectLocalStorage() != null) {
|
| + return raw.get$dartObjectLocalStorage();
|
| + }
|
| + switch (raw.get$typeName()) {
|
| + case "WebKitAnimationEvent":
|
| +
|
| + return new AnimationEventWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "AudioProcessingEvent":
|
| +
|
| + return new AudioProcessingEventWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "BeforeLoadEvent":
|
| +
|
| + return new BeforeLoadEventWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "CloseEvent":
|
| +
|
| + return new CloseEventWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "CompositionEvent":
|
| +
|
| + return new CompositionEventWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "CustomEvent":
|
| +
|
| + return new CustomEventWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "DeviceMotionEvent":
|
| +
|
| + return new DeviceMotionEventWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "DeviceOrientationEvent":
|
| +
|
| + return new DeviceOrientationEventWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "ErrorEvent":
|
| +
|
| + return new ErrorEventWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "Event":
|
| +
|
| + return new EventWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HashChangeEvent":
|
| +
|
| + return new HashChangeEventWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "IDBVersionChangeEvent":
|
| +
|
| + return new IDBVersionChangeEventWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "KeyboardEvent":
|
| +
|
| + return new KeyboardEventWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "MessageEvent":
|
| +
|
| + return new MessageEventWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "MouseEvent":
|
| +
|
| + return new MouseEventWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "MutationEvent":
|
| +
|
| + return new MutationEventWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "OfflineAudioCompletionEvent":
|
| +
|
| + return new OfflineAudioCompletionEventWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "OverflowEvent":
|
| +
|
| + return new OverflowEventWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "PageTransitionEvent":
|
| +
|
| + return new PageTransitionEventWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "PopStateEvent":
|
| +
|
| + return new PopStateEventWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "ProgressEvent":
|
| +
|
| + return new ProgressEventWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGZoomEvent":
|
| +
|
| + return new SVGZoomEventWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SpeechInputEvent":
|
| +
|
| + return new SpeechInputEventWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "StorageEvent":
|
| +
|
| + return new StorageEventWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "TextEvent":
|
| +
|
| + return new TextEventWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "TouchEvent":
|
| +
|
| + return new TouchEventWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "WebKitTransitionEvent":
|
| +
|
| + return new TransitionEventWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "UIEvent":
|
| +
|
| + return new UIEventWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "WebGLContextEvent":
|
| +
|
| + return new WebGLContextEventWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "WheelEvent":
|
| +
|
| + return new WheelEventWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "XMLHttpRequestProgressEvent":
|
| +
|
| + return new XMLHttpRequestProgressEventWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + default:
|
| +
|
| + $throw(new UnsupportedOperationException("Unknown type:" + raw.toString$0()));
|
| +
|
| + }
|
| +}
|
| +LevelDom.wrapEventTarget = function(raw) {
|
| + if (raw == null) {
|
| + return null;
|
| + }
|
| + if (raw.get$dartObjectLocalStorage() != null) {
|
| + return raw.get$dartObjectLocalStorage();
|
| + }
|
| + switch (raw.get$typeName()) {
|
| + case "HTMLAnchorElement":
|
| +
|
| + return new AnchorElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLAreaElement":
|
| +
|
| + return new AreaElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLAudioElement":
|
| +
|
| + return new AudioElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLBRElement":
|
| +
|
| + return new BRElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLBaseElement":
|
| +
|
| + return new BaseElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLBodyElement":
|
| +
|
| + return new BodyElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLButtonElement":
|
| +
|
| + return new ButtonElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "CDATASection":
|
| +
|
| + return new CDATASectionWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLCanvasElement":
|
| +
|
| + return new CanvasElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "CharacterData":
|
| +
|
| + return new CharacterDataWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "Comment":
|
| +
|
| + return new CommentWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLDListElement":
|
| +
|
| + return new DListElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "DOMApplicationCache":
|
| +
|
| + return new DOMApplicationCacheWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLDataListElement":
|
| +
|
| + return new DataListElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLDetailsElement":
|
| +
|
| + return new DetailsElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLDivElement":
|
| +
|
| + return new DivElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLDocument":
|
| +
|
| + return new DocumentWrappingImplementation._wrap$ctor(raw, raw.get$documentElement());
|
| +
|
| + case "DocumentFragment":
|
| +
|
| + return new DocumentFragmentWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLElement":
|
| +
|
| + return new ElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLEmbedElement":
|
| +
|
| + return new EmbedElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "Entity":
|
| +
|
| + return new EntityWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "EntityReference":
|
| +
|
| + return new EntityReferenceWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "EventSource":
|
| +
|
| + return new EventSourceWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "EventTarget":
|
| +
|
| + return new EventTargetWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLFieldSetElement":
|
| +
|
| + return new FieldSetElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLFontElement":
|
| +
|
| + return new FontElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLFormElement":
|
| +
|
| + return new FormElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLHRElement":
|
| +
|
| + return new HRElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLHeadElement":
|
| +
|
| + return new HeadElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLHeadingElement":
|
| +
|
| + return new HeadingElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLHtmlElement":
|
| +
|
| + return new DocumentWrappingImplementation._wrap$ctor(raw.get$parentNode(), raw);
|
| +
|
| + case "HTMLIFrameElement":
|
| +
|
| + return new IFrameElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLImageElement":
|
| +
|
| + return new ImageElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLInputElement":
|
| +
|
| + return new InputElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLKeygenElement":
|
| +
|
| + return new KeygenElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLLIElement":
|
| +
|
| + return new LIElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLLabelElement":
|
| +
|
| + return new LabelElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLLegendElement":
|
| +
|
| + return new LegendElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLLinkElement":
|
| +
|
| + return new LinkElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLMapElement":
|
| +
|
| + return new MapElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLMarqueeElement":
|
| +
|
| + return new MarqueeElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLMediaElement":
|
| +
|
| + return new MediaElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLMenuElement":
|
| +
|
| + return new MenuElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "MessagePort":
|
| +
|
| + return new MessagePortWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLMetaElement":
|
| +
|
| + return new MetaElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLMeterElement":
|
| +
|
| + return new MeterElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLModElement":
|
| +
|
| + return new ModElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "Node":
|
| +
|
| + return new NodeWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "Notation":
|
| +
|
| + return new NotationWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "Notification":
|
| +
|
| + return new NotificationWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLOListElement":
|
| +
|
| + return new OListElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLObjectElement":
|
| +
|
| + return new ObjectElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLOptGroupElement":
|
| +
|
| + return new OptGroupElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLOptionElement":
|
| +
|
| + return new OptionElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLOutputElement":
|
| +
|
| + return new OutputElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLParagraphElement":
|
| +
|
| + return new ParagraphElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLParamElement":
|
| +
|
| + return new ParamElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLPreElement":
|
| +
|
| + return new PreElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "ProcessingInstruction":
|
| +
|
| + return new ProcessingInstructionWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLProgressElement":
|
| +
|
| + return new ProgressElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLQuoteElement":
|
| +
|
| + return new QuoteElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGAElement":
|
| +
|
| + return new SVGAElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGAltGlyphDefElement":
|
| +
|
| + return new SVGAltGlyphDefElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGAltGlyphElement":
|
| +
|
| + return new SVGAltGlyphElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGAltGlyphItemElement":
|
| +
|
| + return new SVGAltGlyphItemElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGAnimateColorElement":
|
| +
|
| + return new SVGAnimateColorElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGAnimateElement":
|
| +
|
| + return new SVGAnimateElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGAnimateMotionElement":
|
| +
|
| + return new SVGAnimateMotionElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGAnimateTransformElement":
|
| +
|
| + return new SVGAnimateTransformElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGAnimationElement":
|
| +
|
| + return new SVGAnimationElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGCircleElement":
|
| +
|
| + return new SVGCircleElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGClipPathElement":
|
| +
|
| + return new SVGClipPathElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGComponentTransferFunctionElement":
|
| +
|
| + return new SVGComponentTransferFunctionElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGCursorElement":
|
| +
|
| + return new SVGCursorElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGDefsElement":
|
| +
|
| + return new SVGDefsElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGDescElement":
|
| +
|
| + return new SVGDescElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGDocument":
|
| +
|
| + return new SVGDocumentWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGElement":
|
| +
|
| + return new SVGElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGElementInstance":
|
| +
|
| + return new SVGElementInstanceWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGEllipseElement":
|
| +
|
| + return new SVGEllipseElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEBlendElement":
|
| +
|
| + return new SVGFEBlendElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEColorMatrixElement":
|
| +
|
| + return new SVGFEColorMatrixElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEComponentTransferElement":
|
| +
|
| + return new SVGFEComponentTransferElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEConvolveMatrixElement":
|
| +
|
| + return new SVGFEConvolveMatrixElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEDiffuseLightingElement":
|
| +
|
| + return new SVGFEDiffuseLightingElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEDisplacementMapElement":
|
| +
|
| + return new SVGFEDisplacementMapElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEDistantLightElement":
|
| +
|
| + return new SVGFEDistantLightElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEDropShadowElement":
|
| +
|
| + return new SVGFEDropShadowElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEFloodElement":
|
| +
|
| + return new SVGFEFloodElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEFuncAElement":
|
| +
|
| + return new SVGFEFuncAElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEFuncBElement":
|
| +
|
| + return new SVGFEFuncBElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEFuncGElement":
|
| +
|
| + return new SVGFEFuncGElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEFuncRElement":
|
| +
|
| + return new SVGFEFuncRElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEGaussianBlurElement":
|
| +
|
| + return new SVGFEGaussianBlurElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEImageElement":
|
| +
|
| + return new SVGFEImageElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEMergeElement":
|
| +
|
| + return new SVGFEMergeElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEMergeNodeElement":
|
| +
|
| + return new SVGFEMergeNodeElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEOffsetElement":
|
| +
|
| + return new SVGFEOffsetElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEPointLightElement":
|
| +
|
| + return new SVGFEPointLightElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFESpecularLightingElement":
|
| +
|
| + return new SVGFESpecularLightingElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFESpotLightElement":
|
| +
|
| + return new SVGFESpotLightElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFETileElement":
|
| +
|
| + return new SVGFETileElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFETurbulenceElement":
|
| +
|
| + return new SVGFETurbulenceElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFilterElement":
|
| +
|
| + return new SVGFilterElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFontElement":
|
| +
|
| + return new SVGFontElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFontFaceElement":
|
| +
|
| + return new SVGFontFaceElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFontFaceFormatElement":
|
| +
|
| + return new SVGFontFaceFormatElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFontFaceNameElement":
|
| +
|
| + return new SVGFontFaceNameElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFontFaceSrcElement":
|
| +
|
| + return new SVGFontFaceSrcElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFontFaceUriElement":
|
| +
|
| + return new SVGFontFaceUriElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGForeignObjectElement":
|
| +
|
| + return new SVGForeignObjectElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGGElement":
|
| +
|
| + return new SVGGElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGGlyphElement":
|
| +
|
| + return new SVGGlyphElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGGlyphRefElement":
|
| +
|
| + return new SVGGlyphRefElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGGradientElement":
|
| +
|
| + return new SVGGradientElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGHKernElement":
|
| +
|
| + return new SVGHKernElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGImageElement":
|
| +
|
| + return new SVGImageElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGLineElement":
|
| +
|
| + return new SVGLineElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGLinearGradientElement":
|
| +
|
| + return new SVGLinearGradientElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGMPathElement":
|
| +
|
| + return new SVGMPathElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGMarkerElement":
|
| +
|
| + return new SVGMarkerElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGMaskElement":
|
| +
|
| + return new SVGMaskElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGMetadataElement":
|
| +
|
| + return new SVGMetadataElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGMissingGlyphElement":
|
| +
|
| + return new SVGMissingGlyphElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGPathElement":
|
| +
|
| + return new SVGPathElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGPatternElement":
|
| +
|
| + return new SVGPatternElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGPolygonElement":
|
| +
|
| + return new SVGPolygonElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGPolylineElement":
|
| +
|
| + return new SVGPolylineElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGRadialGradientElement":
|
| +
|
| + return new SVGRadialGradientElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGRectElement":
|
| +
|
| + return new SVGRectElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGSVGElement":
|
| +
|
| + return new SVGSVGElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGScriptElement":
|
| +
|
| + return new SVGScriptElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGSetElement":
|
| +
|
| + return new SVGSetElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGStopElement":
|
| +
|
| + return new SVGStopElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGStyleElement":
|
| +
|
| + return new SVGStyleElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGSwitchElement":
|
| +
|
| + return new SVGSwitchElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGSymbolElement":
|
| +
|
| + return new SVGSymbolElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGTRefElement":
|
| +
|
| + return new SVGTRefElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGTSpanElement":
|
| +
|
| + return new SVGTSpanElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGTextContentElement":
|
| +
|
| + return new SVGTextContentElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGTextElement":
|
| +
|
| + return new SVGTextElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGTextPathElement":
|
| +
|
| + return new SVGTextPathElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGTextPositioningElement":
|
| +
|
| + return new SVGTextPositioningElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGTitleElement":
|
| +
|
| + return new SVGTitleElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGUseElement":
|
| +
|
| + return new SVGUseElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGVKernElement":
|
| +
|
| + return new SVGVKernElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGViewElement":
|
| +
|
| + return new SVGViewElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLScriptElement":
|
| +
|
| + return new ScriptElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLSelectElement":
|
| +
|
| + return new SelectElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SharedWorker":
|
| +
|
| + return new SharedWorkerWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLSourceElement":
|
| +
|
| + return new SourceElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLSpanElement":
|
| +
|
| + return new SpanElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLStyleElement":
|
| +
|
| + return new StyleElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLTableCaptionElement":
|
| +
|
| + return new TableCaptionElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLTableCellElement":
|
| +
|
| + return new TableCellElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLTableColElement":
|
| +
|
| + return new TableColElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLTableElement":
|
| +
|
| + return new TableElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLTableRowElement":
|
| +
|
| + return new TableRowElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLTableSectionElement":
|
| +
|
| + return new TableSectionElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "Text":
|
| +
|
| + return new TextWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLTextAreaElement":
|
| +
|
| + return new TextAreaElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLTitleElement":
|
| +
|
| + return new TitleElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLTrackElement":
|
| +
|
| + return new TrackElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLUListElement":
|
| +
|
| + return new UListElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLUnknownElement":
|
| +
|
| + return new UnknownElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLVideoElement":
|
| +
|
| + return new VideoElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "WebSocket":
|
| +
|
| + return new WebSocketWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "Window":
|
| +
|
| + return new WindowWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "Worker":
|
| +
|
| + return new WorkerWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "XMLHttpRequest":
|
| +
|
| + return new XMLHttpRequestWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "XMLHttpRequestUpload":
|
| +
|
| + return new XMLHttpRequestUploadWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + default:
|
| +
|
| + $throw(new UnsupportedOperationException("Unknown type:" + raw.toString$0()));
|
| +
|
| + }
|
| +}
|
| +LevelDom.wrapHistory = function(raw) {
|
| + return raw == null ? null : raw.get$dartObjectLocalStorage() != null ? raw.get$dartObjectLocalStorage() : new HistoryWrappingImplementation._wrap$ctor(raw);
|
| +}
|
| +LevelDom.wrapLocation = function(raw) {
|
| + return raw == null ? null : raw.get$dartObjectLocalStorage() != null ? raw.get$dartObjectLocalStorage() : new LocationWrappingImplementation._wrap$ctor(raw);
|
| +}
|
| +LevelDom.wrapNavigator = function(raw) {
|
| + return raw == null ? null : raw.get$dartObjectLocalStorage() != null ? raw.get$dartObjectLocalStorage() : new NavigatorWrappingImplementation._wrap$ctor(raw);
|
| +}
|
| +LevelDom.wrapNode = function(raw) {
|
| + if (raw == null) {
|
| + return null;
|
| + }
|
| + if (raw.get$dartObjectLocalStorage() != null) {
|
| + return raw.get$dartObjectLocalStorage();
|
| + }
|
| + switch (raw.get$typeName()) {
|
| + case "HTMLAnchorElement":
|
| +
|
| + return new AnchorElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLAreaElement":
|
| +
|
| + return new AreaElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLAudioElement":
|
| +
|
| + return new AudioElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLBRElement":
|
| +
|
| + return new BRElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLBaseElement":
|
| +
|
| + return new BaseElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLBodyElement":
|
| +
|
| + return new BodyElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLButtonElement":
|
| +
|
| + return new ButtonElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "CDATASection":
|
| +
|
| + return new CDATASectionWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLCanvasElement":
|
| +
|
| + return new CanvasElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "CharacterData":
|
| +
|
| + return new CharacterDataWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "Comment":
|
| +
|
| + return new CommentWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLDListElement":
|
| +
|
| + return new DListElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLDataListElement":
|
| +
|
| + return new DataListElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLDetailsElement":
|
| +
|
| + return new DetailsElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLDivElement":
|
| +
|
| + return new DivElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLDocument":
|
| +
|
| + return new DocumentWrappingImplementation._wrap$ctor(raw, raw.get$documentElement());
|
| +
|
| + case "DocumentFragment":
|
| +
|
| + return new DocumentFragmentWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLElement":
|
| +
|
| + return new ElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLEmbedElement":
|
| +
|
| + return new EmbedElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "Entity":
|
| +
|
| + return new EntityWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "EntityReference":
|
| +
|
| + return new EntityReferenceWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLFieldSetElement":
|
| +
|
| + return new FieldSetElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLFontElement":
|
| +
|
| + return new FontElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLFormElement":
|
| +
|
| + return new FormElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLHRElement":
|
| +
|
| + return new HRElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLHeadElement":
|
| +
|
| + return new HeadElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLHeadingElement":
|
| +
|
| + return new HeadingElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLHtmlElement":
|
| +
|
| + return new DocumentWrappingImplementation._wrap$ctor(raw.get$parentNode(), raw);
|
| +
|
| + case "HTMLIFrameElement":
|
| +
|
| + return new IFrameElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLImageElement":
|
| +
|
| + return new ImageElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLInputElement":
|
| +
|
| + return new InputElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLKeygenElement":
|
| +
|
| + return new KeygenElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLLIElement":
|
| +
|
| + return new LIElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLLabelElement":
|
| +
|
| + return new LabelElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLLegendElement":
|
| +
|
| + return new LegendElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLLinkElement":
|
| +
|
| + return new LinkElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLMapElement":
|
| +
|
| + return new MapElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLMarqueeElement":
|
| +
|
| + return new MarqueeElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLMediaElement":
|
| +
|
| + return new MediaElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLMenuElement":
|
| +
|
| + return new MenuElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLMetaElement":
|
| +
|
| + return new MetaElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLMeterElement":
|
| +
|
| + return new MeterElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLModElement":
|
| +
|
| + return new ModElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "Node":
|
| +
|
| + return new NodeWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "Notation":
|
| +
|
| + return new NotationWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLOListElement":
|
| +
|
| + return new OListElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLObjectElement":
|
| +
|
| + return new ObjectElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLOptGroupElement":
|
| +
|
| + return new OptGroupElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLOptionElement":
|
| +
|
| + return new OptionElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLOutputElement":
|
| +
|
| + return new OutputElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLParagraphElement":
|
| +
|
| + return new ParagraphElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLParamElement":
|
| +
|
| + return new ParamElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLPreElement":
|
| +
|
| + return new PreElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "ProcessingInstruction":
|
| +
|
| + return new ProcessingInstructionWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLProgressElement":
|
| +
|
| + return new ProgressElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLQuoteElement":
|
| +
|
| + return new QuoteElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGAElement":
|
| +
|
| + return new SVGAElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGAltGlyphDefElement":
|
| +
|
| + return new SVGAltGlyphDefElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGAltGlyphElement":
|
| +
|
| + return new SVGAltGlyphElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGAltGlyphItemElement":
|
| +
|
| + return new SVGAltGlyphItemElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGAnimateColorElement":
|
| +
|
| + return new SVGAnimateColorElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGAnimateElement":
|
| +
|
| + return new SVGAnimateElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGAnimateMotionElement":
|
| +
|
| + return new SVGAnimateMotionElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGAnimateTransformElement":
|
| +
|
| + return new SVGAnimateTransformElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGAnimationElement":
|
| +
|
| + return new SVGAnimationElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGCircleElement":
|
| +
|
| + return new SVGCircleElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGClipPathElement":
|
| +
|
| + return new SVGClipPathElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGComponentTransferFunctionElement":
|
| +
|
| + return new SVGComponentTransferFunctionElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGCursorElement":
|
| +
|
| + return new SVGCursorElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGDefsElement":
|
| +
|
| + return new SVGDefsElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGDescElement":
|
| +
|
| + return new SVGDescElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGDocument":
|
| +
|
| + return new SVGDocumentWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGElement":
|
| +
|
| + return new SVGElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGEllipseElement":
|
| +
|
| + return new SVGEllipseElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEBlendElement":
|
| +
|
| + return new SVGFEBlendElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEColorMatrixElement":
|
| +
|
| + return new SVGFEColorMatrixElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEComponentTransferElement":
|
| +
|
| + return new SVGFEComponentTransferElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEConvolveMatrixElement":
|
| +
|
| + return new SVGFEConvolveMatrixElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEDiffuseLightingElement":
|
| +
|
| + return new SVGFEDiffuseLightingElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEDisplacementMapElement":
|
| +
|
| + return new SVGFEDisplacementMapElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEDistantLightElement":
|
| +
|
| + return new SVGFEDistantLightElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEDropShadowElement":
|
| +
|
| + return new SVGFEDropShadowElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEFloodElement":
|
| +
|
| + return new SVGFEFloodElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEFuncAElement":
|
| +
|
| + return new SVGFEFuncAElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEFuncBElement":
|
| +
|
| + return new SVGFEFuncBElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEFuncGElement":
|
| +
|
| + return new SVGFEFuncGElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEFuncRElement":
|
| +
|
| + return new SVGFEFuncRElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEGaussianBlurElement":
|
| +
|
| + return new SVGFEGaussianBlurElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEImageElement":
|
| +
|
| + return new SVGFEImageElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEMergeElement":
|
| +
|
| + return new SVGFEMergeElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEMergeNodeElement":
|
| +
|
| + return new SVGFEMergeNodeElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEOffsetElement":
|
| +
|
| + return new SVGFEOffsetElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFEPointLightElement":
|
| +
|
| + return new SVGFEPointLightElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFESpecularLightingElement":
|
| +
|
| + return new SVGFESpecularLightingElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFESpotLightElement":
|
| +
|
| + return new SVGFESpotLightElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFETileElement":
|
| +
|
| + return new SVGFETileElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFETurbulenceElement":
|
| +
|
| + return new SVGFETurbulenceElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFilterElement":
|
| +
|
| + return new SVGFilterElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFontElement":
|
| +
|
| + return new SVGFontElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFontFaceElement":
|
| +
|
| + return new SVGFontFaceElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFontFaceFormatElement":
|
| +
|
| + return new SVGFontFaceFormatElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFontFaceNameElement":
|
| +
|
| + return new SVGFontFaceNameElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFontFaceSrcElement":
|
| +
|
| + return new SVGFontFaceSrcElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGFontFaceUriElement":
|
| +
|
| + return new SVGFontFaceUriElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGForeignObjectElement":
|
| +
|
| + return new SVGForeignObjectElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGGElement":
|
| +
|
| + return new SVGGElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGGlyphElement":
|
| +
|
| + return new SVGGlyphElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGGlyphRefElement":
|
| +
|
| + return new SVGGlyphRefElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGGradientElement":
|
| +
|
| + return new SVGGradientElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGHKernElement":
|
| +
|
| + return new SVGHKernElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGImageElement":
|
| +
|
| + return new SVGImageElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGLineElement":
|
| +
|
| + return new SVGLineElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGLinearGradientElement":
|
| +
|
| + return new SVGLinearGradientElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGMPathElement":
|
| +
|
| + return new SVGMPathElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGMarkerElement":
|
| +
|
| + return new SVGMarkerElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGMaskElement":
|
| +
|
| + return new SVGMaskElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGMetadataElement":
|
| +
|
| + return new SVGMetadataElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGMissingGlyphElement":
|
| +
|
| + return new SVGMissingGlyphElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGPathElement":
|
| +
|
| + return new SVGPathElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGPatternElement":
|
| +
|
| + return new SVGPatternElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGPolygonElement":
|
| +
|
| + return new SVGPolygonElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGPolylineElement":
|
| +
|
| + return new SVGPolylineElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGRadialGradientElement":
|
| +
|
| + return new SVGRadialGradientElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGRectElement":
|
| +
|
| + return new SVGRectElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGSVGElement":
|
| +
|
| + return new SVGSVGElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGScriptElement":
|
| +
|
| + return new SVGScriptElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGSetElement":
|
| +
|
| + return new SVGSetElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGStopElement":
|
| +
|
| + return new SVGStopElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGStyleElement":
|
| +
|
| + return new SVGStyleElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGSwitchElement":
|
| +
|
| + return new SVGSwitchElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGSymbolElement":
|
| +
|
| + return new SVGSymbolElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGTRefElement":
|
| +
|
| + return new SVGTRefElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGTSpanElement":
|
| +
|
| + return new SVGTSpanElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGTextContentElement":
|
| +
|
| + return new SVGTextContentElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGTextElement":
|
| +
|
| + return new SVGTextElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGTextPathElement":
|
| +
|
| + return new SVGTextPathElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGTextPositioningElement":
|
| +
|
| + return new SVGTextPositioningElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGTitleElement":
|
| +
|
| + return new SVGTitleElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGUseElement":
|
| +
|
| + return new SVGUseElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGVKernElement":
|
| +
|
| + return new SVGVKernElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "SVGViewElement":
|
| +
|
| + return new SVGViewElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLScriptElement":
|
| +
|
| + return new ScriptElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLSelectElement":
|
| +
|
| + return new SelectElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLSourceElement":
|
| +
|
| + return new SourceElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLSpanElement":
|
| +
|
| + return new SpanElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLStyleElement":
|
| +
|
| + return new StyleElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLTableCaptionElement":
|
| +
|
| + return new TableCaptionElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLTableCellElement":
|
| +
|
| + return new TableCellElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLTableColElement":
|
| +
|
| + return new TableColElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLTableElement":
|
| +
|
| + return new TableElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLTableRowElement":
|
| +
|
| + return new TableRowElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLTableSectionElement":
|
| +
|
| + return new TableSectionElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "Text":
|
| +
|
| + return new TextWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLTextAreaElement":
|
| +
|
| + return new TextAreaElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLTitleElement":
|
| +
|
| + return new TitleElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLTrackElement":
|
| +
|
| + return new TrackElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLUListElement":
|
| +
|
| + return new UListElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLUnknownElement":
|
| +
|
| + return new UnknownElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + case "HTMLVideoElement":
|
| +
|
| + return new VideoElementWrappingImplementation._wrap$ctor(raw);
|
| +
|
| + default:
|
| +
|
| + $throw(new UnsupportedOperationException("Unknown type:" + raw.toString$0()));
|
| +
|
| + }
|
| +}
|
| +LevelDom.wrapPoint = function(raw) {
|
| + return raw == null ? null : raw.get$dartObjectLocalStorage() != null ? raw.get$dartObjectLocalStorage() : new PointWrappingImplementation._wrap$ctor(raw);
|
| +}
|
| +LevelDom.wrapSVGAnimatedEnumeration = function(raw) {
|
| + return raw == null ? null : raw.get$dartObjectLocalStorage() != null ? raw.get$dartObjectLocalStorage() : new SVGAnimatedEnumerationWrappingImplementation._wrap$ctor(raw);
|
| +}
|
| +LevelDom.wrapSVGAnimatedLength = function(raw) {
|
| + return raw == null ? null : raw.get$dartObjectLocalStorage() != null ? raw.get$dartObjectLocalStorage() : new SVGAnimatedLengthWrappingImplementation._wrap$ctor(raw);
|
| +}
|
| +LevelDom.wrapSVGAnimatedLengthList = function(raw) {
|
| + return raw == null ? null : raw.get$dartObjectLocalStorage() != null ? raw.get$dartObjectLocalStorage() : new SVGAnimatedLengthListWrappingImplementation._wrap$ctor(raw);
|
| +}
|
| +LevelDom.wrapSVGAnimatedNumber = function(raw) {
|
| + return raw == null ? null : raw.get$dartObjectLocalStorage() != null ? raw.get$dartObjectLocalStorage() : new SVGAnimatedNumberWrappingImplementation._wrap$ctor(raw);
|
| +}
|
| +LevelDom.wrapSVGAnimatedString = function(raw) {
|
| + return raw == null ? null : raw.get$dartObjectLocalStorage() != null ? raw.get$dartObjectLocalStorage() : new SVGAnimatedStringWrappingImplementation._wrap$ctor(raw);
|
| +}
|
| +LevelDom.wrapSVGElementInstance = function(raw) {
|
| + return raw == null ? null : raw.get$dartObjectLocalStorage() != null ? raw.get$dartObjectLocalStorage() : new SVGElementInstanceWrappingImplementation._wrap$ctor(raw);
|
| +}
|
| +LevelDom.wrapSVGElementInstanceList = function(raw) {
|
| + return raw == null ? null : raw.get$dartObjectLocalStorage() != null ? raw.get$dartObjectLocalStorage() : new SVGElementInstanceListWrappingImplementation._wrap$ctor(raw);
|
| +}
|
| +LevelDom.wrapSVGLength = function(raw) {
|
| + return raw == null ? null : raw.get$dartObjectLocalStorage() != null ? raw.get$dartObjectLocalStorage() : new SVGLengthWrappingImplementation._wrap$ctor(raw);
|
| +}
|
| +LevelDom.wrapSVGLengthList = function(raw) {
|
| + return raw == null ? null : raw.get$dartObjectLocalStorage() != null ? raw.get$dartObjectLocalStorage() : new SVGLengthListWrappingImplementation._wrap$ctor(raw);
|
| +}
|
| +LevelDom.wrapScreen = function(raw) {
|
| + return raw == null ? null : raw.get$dartObjectLocalStorage() != null ? raw.get$dartObjectLocalStorage() : new ScreenWrappingImplementation._wrap$ctor(raw);
|
| +}
|
| +LevelDom.wrapTextMetrics = function(raw) {
|
| + return raw == null ? null : raw.get$dartObjectLocalStorage() != null ? raw.get$dartObjectLocalStorage() : new TextMetricsWrappingImplementation._wrap$ctor(raw);
|
| +}
|
| +LevelDom.wrapTouch = function(raw) {
|
| + return raw == null ? null : raw.get$dartObjectLocalStorage() != null ? raw.get$dartObjectLocalStorage() : new TouchWrappingImplementation._wrap$ctor(raw);
|
| +}
|
| +LevelDom.wrapTouchList = function(raw) {
|
| + return raw == null ? null : raw.get$dartObjectLocalStorage() != null ? raw.get$dartObjectLocalStorage() : new TouchListWrappingImplementation._wrap$ctor(raw);
|
| +}
|
| +LevelDom.wrapWindow = function(raw) {
|
| + return raw == null ? null : raw.get$dartObjectLocalStorage() != null ? raw.get$dartObjectLocalStorage() : new WindowWrappingImplementation._wrap$ctor(raw);
|
| +}
|
| +LevelDom.unwrapMaybePrimitive = function(raw) {
|
| + return (raw == null || (typeof(raw) == 'string') || (typeof(raw) == 'number') || (typeof(raw) == 'boolean')) ? raw : raw.get$_ptr();
|
| +}
|
| +LevelDom.unwrap = function(raw) {
|
| + return raw == null ? null : raw.get$_ptr();
|
| +}
|
| +LevelDom.initialize = function() {
|
| + $globals.secretWindow = LevelDom.wrapWindow(get$window());
|
| + $globals.secretDocument = LevelDom.wrapDocument(get$document());
|
| +}
|
| +// ********** Code for _Collections **************
|
| +function _Collections() {}
|
| +_Collections.forEach = function(iterable, f) {
|
| + for (var $$i = iterable.iterator$0(); $$i.hasNext$0(); ) {
|
| + var e = $$i.next$0();
|
| + f.call$1(e);
|
| + }
|
| +}
|
| +_Collections.some = function(iterable, f) {
|
| + for (var $$i = iterable.iterator$0(); $$i.hasNext$0(); ) {
|
| + var e = $$i.next$0();
|
| + if (f.call$1(e)) return true;
|
| + }
|
| + return false;
|
| +}
|
| +_Collections.filter = function(source, destination, f) {
|
| + for (var $$i = source.iterator$0(); $$i.hasNext$0(); ) {
|
| + var e = $$i.next$0();
|
| + if (f.call$1(e)) destination.add$1(e);
|
| + }
|
| + return destination;
|
| +}
|
| +// ********** Code for PointFactoryProvider **************
|
| +function PointFactoryProvider() {}
|
| +PointFactoryProvider.Point$factory = function(x, y) {
|
| + return new PointWrappingImplementation._wrap$ctor(new WebKitPoint(x, y));
|
| +}
|
| +// ********** Code for _VariableSizeListIterator_T **************
|
| +$inherits(_VariableSizeListIterator_T, _VariableSizeListIterator);
|
| +function _VariableSizeListIterator_T(list) {
|
| + this._htmlimpl_list = list;
|
| + this._htmlimpl_pos = (0);
|
| +}
|
| +_VariableSizeListIterator_T.prototype.hasNext = function() {
|
| + return this._htmlimpl_list.get$length() > this._htmlimpl_pos;
|
| +}
|
| +_VariableSizeListIterator_T.prototype.next = function() {
|
| + if (!this.hasNext()) {
|
| + $throw(const$0001);
|
| + }
|
| + return this._htmlimpl_list.$index(this._htmlimpl_pos++);
|
| +}
|
| +// ********** Code for _FixedSizeListIterator **************
|
| +$inherits(_FixedSizeListIterator, _VariableSizeListIterator_T);
|
| +function _FixedSizeListIterator(list) {
|
| + this._htmlimpl_length = list.get$length();
|
| + _VariableSizeListIterator_T.call(this, list);
|
| +}
|
| +_FixedSizeListIterator.prototype.hasNext = function() {
|
| + return this._htmlimpl_length > this._htmlimpl_pos;
|
| +}
|
| +_FixedSizeListIterator.prototype.hasNext$0 = _FixedSizeListIterator.prototype.hasNext;
|
| +// ********** Code for _VariableSizeListIterator_html_html_Touch **************
|
| +$inherits(_VariableSizeListIterator_html_html_Touch, _VariableSizeListIterator);
|
| +function _VariableSizeListIterator_html_html_Touch(list) {
|
| + this._htmlimpl_list = list;
|
| + this._htmlimpl_pos = (0);
|
| +}
|
| +// ********** Code for _FixedSizeListIterator_html_html_Touch **************
|
| +$inherits(_FixedSizeListIterator_html_html_Touch, _FixedSizeListIterator);
|
| +function _FixedSizeListIterator_html_html_Touch(list) {
|
| + this._htmlimpl_length = list.get$length();
|
| + _VariableSizeListIterator_html_html_Touch.call(this, list);
|
| +}
|
| +// ********** Code for _VariableSizeListIterator **************
|
| +function _VariableSizeListIterator(list) {
|
| + this._htmlimpl_list = list;
|
| + this._htmlimpl_pos = (0);
|
| +}
|
| +_VariableSizeListIterator.prototype.hasNext = function() {
|
| + return this._htmlimpl_list.get$length() > this._htmlimpl_pos;
|
| +}
|
| +_VariableSizeListIterator.prototype.next = function() {
|
| + if (!this.hasNext()) {
|
| + $throw(const$0001);
|
| + }
|
| + return this._htmlimpl_list.$index(this._htmlimpl_pos++);
|
| +}
|
| +_VariableSizeListIterator.prototype.hasNext$0 = _VariableSizeListIterator.prototype.hasNext;
|
| +_VariableSizeListIterator.prototype.next$0 = _VariableSizeListIterator.prototype.next;
|
| +// ********** Code for Lists **************
|
| +function Lists() {}
|
| +Lists.indexOf = function(a, element, startIndex, endIndex) {
|
| + if (startIndex >= a.get$length()) {
|
| + return (-1);
|
| + }
|
| + if (startIndex < (0)) {
|
| + startIndex = (0);
|
| + }
|
| + for (var i = startIndex;
|
| + i < endIndex; i++) {
|
| + if ($eq(a.$index(i), element)) {
|
| + return i;
|
| + }
|
| + }
|
| + return (-1);
|
| +}
|
| +Lists.getRange = function(a, start, length) {
|
| + if (start < (0)) {
|
| + $throw(new IndexOutOfRangeException(start));
|
| + }
|
| + else if (length < (0)) {
|
| + $throw(new IllegalArgumentException(("negative length " + length)));
|
| + }
|
| + else if (start + length > a.get$length()) {
|
| + $throw(new IndexOutOfRangeException(Math.min(a.get$length(), start)));
|
| + }
|
| + var result = [];
|
| + for (var i = (0);
|
| + i < length; i = $add(i, (1))) {
|
| + result.add$1(a.$index(start + i));
|
| + }
|
| + return result;
|
| +}
|
| +// ********** Code for EventsImplementation **************
|
| +function EventsImplementation() {}
|
| +EventsImplementation._wrap$ctor = function(_ptr) {
|
| + this._ptr = _ptr;
|
| + this._listenerMap = new HashMapImplementation();
|
| +}
|
| +EventsImplementation._wrap$ctor.prototype = EventsImplementation.prototype;
|
| +EventsImplementation.prototype.get$_ptr = function() { return this._ptr; };
|
| +EventsImplementation.prototype.set$_ptr = function(value) { return this._ptr = value; };
|
| +EventsImplementation.prototype.$index = function(type) {
|
| + return this._get(type.toLowerCase());
|
| +}
|
| +EventsImplementation.prototype._get = function(type) {
|
| + var $this = this; // closure support
|
| + return this._listenerMap.putIfAbsent$2(type, (function () {
|
| + return new EventListenerListImplementation($this._ptr, type);
|
| + })
|
| + );
|
| +}
|
| +// ********** Code for AbstractWorkerEventsImplementation **************
|
| +$inherits(AbstractWorkerEventsImplementation, EventsImplementation);
|
| +function AbstractWorkerEventsImplementation() {}
|
| +AbstractWorkerEventsImplementation._wrap$ctor = function(_ptr) {
|
| + EventsImplementation._wrap$ctor.call(this, _ptr);
|
| +}
|
| +AbstractWorkerEventsImplementation._wrap$ctor.prototype = AbstractWorkerEventsImplementation.prototype;
|
| +// ********** Code for AbstractWorkerWrappingImplementation **************
|
| +$inherits(AbstractWorkerWrappingImplementation, EventTargetWrappingImplementation);
|
| +function AbstractWorkerWrappingImplementation() {}
|
| +AbstractWorkerWrappingImplementation._wrap$ctor = function(ptr) {
|
| + EventTargetWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +AbstractWorkerWrappingImplementation._wrap$ctor.prototype = AbstractWorkerWrappingImplementation.prototype;
|
| +AbstractWorkerWrappingImplementation.prototype.get$on = function() {
|
| + if (this._on == null) {
|
| + this._on = new AbstractWorkerEventsImplementation._wrap$ctor(this._ptr);
|
| + }
|
| + return this._on;
|
| +}
|
| +// ********** Code for AnimationEventWrappingImplementation **************
|
| +$inherits(AnimationEventWrappingImplementation, EventWrappingImplementation);
|
| +function AnimationEventWrappingImplementation() {}
|
| +AnimationEventWrappingImplementation._wrap$ctor = function(ptr) {
|
| + EventWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +AnimationEventWrappingImplementation._wrap$ctor.prototype = AnimationEventWrappingImplementation.prototype;
|
| +// ********** Code for BeforeLoadEventWrappingImplementation **************
|
| +$inherits(BeforeLoadEventWrappingImplementation, EventWrappingImplementation);
|
| +function BeforeLoadEventWrappingImplementation() {}
|
| +BeforeLoadEventWrappingImplementation._wrap$ctor = function(ptr) {
|
| + EventWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +BeforeLoadEventWrappingImplementation._wrap$ctor.prototype = BeforeLoadEventWrappingImplementation.prototype;
|
| +// ********** Code for ElementEventsImplementation **************
|
| +$inherits(ElementEventsImplementation, EventsImplementation);
|
| +function ElementEventsImplementation() {}
|
| +ElementEventsImplementation._wrap$ctor = function(_ptr) {
|
| + EventsImplementation._wrap$ctor.call(this, _ptr);
|
| +}
|
| +ElementEventsImplementation._wrap$ctor.prototype = ElementEventsImplementation.prototype;
|
| +ElementEventsImplementation.prototype.get$blur = function() {
|
| + return this._get("blur");
|
| +}
|
| +ElementEventsImplementation.prototype.get$click = function() {
|
| + return this._get("click");
|
| +}
|
| +ElementEventsImplementation.prototype.get$focus = function() {
|
| + return this._get("focus");
|
| +}
|
| +ElementEventsImplementation.prototype.get$keyDown = function() {
|
| + return this._get("keydown");
|
| +}
|
| +ElementEventsImplementation.prototype.get$keyUp = function() {
|
| + return this._get("keyup");
|
| +}
|
| +ElementEventsImplementation.prototype.get$load = function() {
|
| + return this._get("load");
|
| +}
|
| +ElementEventsImplementation.prototype.get$mouseDown = function() {
|
| + return this._get("mousedown");
|
| +}
|
| +ElementEventsImplementation.prototype.get$mouseMove = function() {
|
| + return this._get("mousemove");
|
| +}
|
| +ElementEventsImplementation.prototype.get$mouseOut = function() {
|
| + return this._get("mouseout");
|
| +}
|
| +ElementEventsImplementation.prototype.get$mouseOver = function() {
|
| + return this._get("mouseover");
|
| +}
|
| +ElementEventsImplementation.prototype.get$mouseUp = function() {
|
| + return this._get("mouseup");
|
| +}
|
| +ElementEventsImplementation.prototype.get$mouseWheel = function() {
|
| + return this._get("mousewheel");
|
| +}
|
| +ElementEventsImplementation.prototype.get$touchCancel = function() {
|
| + return this._get("touchcancel");
|
| +}
|
| +ElementEventsImplementation.prototype.get$touchEnd = function() {
|
| + return this._get("touchend");
|
| +}
|
| +ElementEventsImplementation.prototype.get$touchLeave = function() {
|
| + return this._get("touchleave");
|
| +}
|
| +ElementEventsImplementation.prototype.get$touchMove = function() {
|
| + return this._get("touchmove");
|
| +}
|
| +ElementEventsImplementation.prototype.get$touchStart = function() {
|
| + return this._get("touchstart");
|
| +}
|
| +ElementEventsImplementation.prototype.get$transitionEnd = function() {
|
| + return this._get("webkitTransitionEnd");
|
| +}
|
| +ElementEventsImplementation.prototype.blur$0 = function() {
|
| + return this.get$blur().call$0();
|
| +};
|
| +ElementEventsImplementation.prototype.click$0 = function() {
|
| + return this.get$click().call$0();
|
| +};
|
| +ElementEventsImplementation.prototype.focus$0 = function() {
|
| + return this.get$focus().call$0();
|
| +};
|
| +ElementEventsImplementation.prototype.load$0 = function() {
|
| + return this.get$load().call$0();
|
| +};
|
| +// ********** Code for BodyElementEventsImplementation **************
|
| +$inherits(BodyElementEventsImplementation, ElementEventsImplementation);
|
| +function BodyElementEventsImplementation() {}
|
| +BodyElementEventsImplementation._wrap$ctor = function(_ptr) {
|
| + ElementEventsImplementation._wrap$ctor.call(this, _ptr);
|
| +}
|
| +BodyElementEventsImplementation._wrap$ctor.prototype = BodyElementEventsImplementation.prototype;
|
| +// ********** Code for BodyElementWrappingImplementation **************
|
| +$inherits(BodyElementWrappingImplementation, ElementWrappingImplementation);
|
| +function BodyElementWrappingImplementation() {}
|
| +BodyElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +BodyElementWrappingImplementation._wrap$ctor.prototype = BodyElementWrappingImplementation.prototype;
|
| +BodyElementWrappingImplementation.prototype.is$BodyElement = function(){return true};
|
| +BodyElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +BodyElementWrappingImplementation.prototype.get$on = function() {
|
| + if (this._on == null) {
|
| + this._on = new BodyElementEventsImplementation._wrap$ctor(this._ptr);
|
| + }
|
| + return this._on;
|
| +}
|
| +// ********** Code for CloseEventWrappingImplementation **************
|
| +$inherits(CloseEventWrappingImplementation, EventWrappingImplementation);
|
| +function CloseEventWrappingImplementation() {}
|
| +CloseEventWrappingImplementation._wrap$ctor = function(ptr) {
|
| + EventWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +CloseEventWrappingImplementation._wrap$ctor.prototype = CloseEventWrappingImplementation.prototype;
|
| +// ********** Code for CompositionEventWrappingImplementation **************
|
| +$inherits(CompositionEventWrappingImplementation, UIEventWrappingImplementation);
|
| +function CompositionEventWrappingImplementation() {}
|
| +CompositionEventWrappingImplementation._wrap$ctor = function(ptr) {
|
| + UIEventWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +CompositionEventWrappingImplementation._wrap$ctor.prototype = CompositionEventWrappingImplementation.prototype;
|
| +// ********** Code for _CssClassSet **************
|
| +function _CssClassSet(_element) {
|
| + this._htmlimpl_element = _element;
|
| +}
|
| +_CssClassSet.prototype.toString = function() {
|
| + return this._formatSet(this._read());
|
| +}
|
| +_CssClassSet.prototype.iterator = function() {
|
| + return this._read().iterator$0();
|
| +}
|
| +_CssClassSet.prototype.forEach = function(f) {
|
| + this._read().forEach(f);
|
| +}
|
| +_CssClassSet.prototype.filter = function(f) {
|
| + return this._read().filter$1(f);
|
| +}
|
| +_CssClassSet.prototype.some = function(f) {
|
| + return this._read().some(f);
|
| +}
|
| +_CssClassSet.prototype.isEmpty = function() {
|
| + return this._read().isEmpty();
|
| +}
|
| +_CssClassSet.prototype.get$length = function() {
|
| + return this._read().get$length();
|
| +}
|
| +_CssClassSet.prototype.contains = function(value) {
|
| + return this._read().contains(value);
|
| +}
|
| +_CssClassSet.prototype.add = function(value) {
|
| + this._modify((function (s) {
|
| + return s.add$1(value);
|
| + })
|
| + );
|
| +}
|
| +_CssClassSet.prototype.remove = function(value) {
|
| + var s = this._read();
|
| + var result = s.remove(value);
|
| + this._write(s);
|
| + return result;
|
| +}
|
| +_CssClassSet.prototype.addAll = function(collection) {
|
| + this._modify((function (s) {
|
| + return s.addAll$1(collection);
|
| + })
|
| + );
|
| +}
|
| +_CssClassSet.prototype.clear = function() {
|
| + this._modify((function (s) {
|
| + return s.clear$0();
|
| + })
|
| + );
|
| +}
|
| +_CssClassSet.prototype.get$clear = function() {
|
| + return this.clear.bind(this);
|
| +}
|
| +_CssClassSet.prototype._modify = function(f) {
|
| + var s = this._read();
|
| + f.call$1(s);
|
| + this._write(s);
|
| +}
|
| +_CssClassSet.prototype._read = function() {
|
| + var s = new HashSetImplementation();
|
| + var $$list = this._className().split(" ");
|
| + for (var $$i = 0;$$i < $$list.get$length(); $$i++) {
|
| + var name = $$list.$index($$i);
|
| + var trimmed = name.trim();
|
| + if (!trimmed.isEmpty()) {
|
| + s.add(trimmed);
|
| + }
|
| + }
|
| + return s;
|
| +}
|
| +_CssClassSet.prototype._className = function() {
|
| + return this._htmlimpl_element.get$className();
|
| +}
|
| +_CssClassSet.prototype._write = function(s) {
|
| + this._htmlimpl_element.set$className(this._formatSet(s));
|
| +}
|
| +_CssClassSet.prototype._formatSet = function(s) {
|
| + var list = ListFactory.ListFactory$from$factory(s);
|
| + return Strings.join(list, " ");
|
| +}
|
| +_CssClassSet.prototype.add$1 = _CssClassSet.prototype.add;
|
| +_CssClassSet.prototype.addAll$1 = _CssClassSet.prototype.addAll;
|
| +_CssClassSet.prototype.clear$0 = _CssClassSet.prototype.clear;
|
| +_CssClassSet.prototype.contains$1 = _CssClassSet.prototype.contains;
|
| +_CssClassSet.prototype.filter$1 = function($0) {
|
| + return this.filter(to$call$1($0));
|
| +};
|
| +_CssClassSet.prototype.forEach$1 = function($0) {
|
| + return this.forEach(to$call$1($0));
|
| +};
|
| +_CssClassSet.prototype.iterator$0 = _CssClassSet.prototype.iterator;
|
| +_CssClassSet.prototype.remove$1 = _CssClassSet.prototype.remove;
|
| +_CssClassSet.prototype.toString$0 = _CssClassSet.prototype.toString;
|
| +// ********** Code for CSSStyleDeclarationWrappingImplementation **************
|
| +$inherits(CSSStyleDeclarationWrappingImplementation, DOMWrapperBase);
|
| +function CSSStyleDeclarationWrappingImplementation() {}
|
| +CSSStyleDeclarationWrappingImplementation._wrap$ctor = function(ptr) {
|
| + DOMWrapperBase._wrap$ctor.call(this, ptr);
|
| +}
|
| +CSSStyleDeclarationWrappingImplementation._wrap$ctor.prototype = CSSStyleDeclarationWrappingImplementation.prototype;
|
| +CSSStyleDeclarationWrappingImplementation.get$_browserPrefix = function() {
|
| + if ($globals.CSSStyleDeclarationWrappingImplementation__cachedBrowserPrefix == null) {
|
| + if (_Device.get$isFirefox()) {
|
| + $globals.CSSStyleDeclarationWrappingImplementation__cachedBrowserPrefix = "-moz-";
|
| + }
|
| + else {
|
| + $globals.CSSStyleDeclarationWrappingImplementation__cachedBrowserPrefix = "-webkit-";
|
| + }
|
| + }
|
| + return $globals.CSSStyleDeclarationWrappingImplementation__cachedBrowserPrefix;
|
| +}
|
| +CSSStyleDeclarationWrappingImplementation.prototype.get$length = function() {
|
| + return this._ptr.get$length();
|
| +}
|
| +CSSStyleDeclarationWrappingImplementation.prototype.getPropertyValue = function(propertyName) {
|
| + return this._ptr.getPropertyValue$1(propertyName);
|
| +}
|
| +CSSStyleDeclarationWrappingImplementation.prototype.item = function(index) {
|
| + return this._ptr.item$1(index);
|
| +}
|
| +CSSStyleDeclarationWrappingImplementation.prototype.removeProperty = function(propertyName) {
|
| + return this._ptr.removeProperty$1(propertyName);
|
| +}
|
| +CSSStyleDeclarationWrappingImplementation.prototype.setProperty = function(propertyName, value, priority) {
|
| + this._ptr.setProperty$3(propertyName, ("" + value), priority);
|
| +}
|
| +CSSStyleDeclarationWrappingImplementation.prototype.get$typeName = function() {
|
| + return "CSSStyleDeclaration";
|
| +}
|
| +CSSStyleDeclarationWrappingImplementation.prototype.get$borderBottomWidth = function() {
|
| + return this.getPropertyValue("border-bottom-width");
|
| +}
|
| +CSSStyleDeclarationWrappingImplementation.prototype.get$borderLeftWidth = function() {
|
| + return this.getPropertyValue("border-left-width");
|
| +}
|
| +CSSStyleDeclarationWrappingImplementation.prototype.get$borderRightWidth = function() {
|
| + return this.getPropertyValue("border-right-width");
|
| +}
|
| +CSSStyleDeclarationWrappingImplementation.prototype.get$borderTopWidth = function() {
|
| + return this.getPropertyValue("border-top-width");
|
| +}
|
| +CSSStyleDeclarationWrappingImplementation.prototype.get$clear = function() {
|
| + return this.getPropertyValue("clear");
|
| +}
|
| +CSSStyleDeclarationWrappingImplementation.prototype.get$columnGap = function() {
|
| + return this.getPropertyValue(("" + CSSStyleDeclarationWrappingImplementation.get$_browserPrefix() + "column-gap"));
|
| +}
|
| +CSSStyleDeclarationWrappingImplementation.prototype.get$columnSpan = function() {
|
| + return this.getPropertyValue(("" + CSSStyleDeclarationWrappingImplementation.get$_browserPrefix() + "column-span"));
|
| +}
|
| +CSSStyleDeclarationWrappingImplementation.prototype.get$columnWidth = function() {
|
| + return this.getPropertyValue(("" + CSSStyleDeclarationWrappingImplementation.get$_browserPrefix() + "column-width"));
|
| +}
|
| +CSSStyleDeclarationWrappingImplementation.prototype.set$display = function(value) {
|
| + this.setProperty("display", value, "");
|
| +}
|
| +CSSStyleDeclarationWrappingImplementation.prototype.get$filter = function() {
|
| + return this.getPropertyValue(("" + CSSStyleDeclarationWrappingImplementation.get$_browserPrefix() + "filter"));
|
| +}
|
| +CSSStyleDeclarationWrappingImplementation.prototype.set$font = function(value) {
|
| + this.setProperty("font", value, "");
|
| +}
|
| +CSSStyleDeclarationWrappingImplementation.prototype.get$fontSize = function() {
|
| + return this.getPropertyValue("font-size");
|
| +}
|
| +CSSStyleDeclarationWrappingImplementation.prototype.get$height = function() {
|
| + return this.getPropertyValue("height");
|
| +}
|
| +CSSStyleDeclarationWrappingImplementation.prototype.set$height = function(value) {
|
| + this.setProperty("height", value, "");
|
| +}
|
| +CSSStyleDeclarationWrappingImplementation.prototype.set$left = function(value) {
|
| + this.setProperty("left", value, "");
|
| +}
|
| +CSSStyleDeclarationWrappingImplementation.prototype.get$maxHeight = function() {
|
| + return this.getPropertyValue("max-height");
|
| +}
|
| +CSSStyleDeclarationWrappingImplementation.prototype.get$maxWidth = function() {
|
| + return this.getPropertyValue("max-width");
|
| +}
|
| +CSSStyleDeclarationWrappingImplementation.prototype.get$minHeight = function() {
|
| + return this.getPropertyValue("min-height");
|
| +}
|
| +CSSStyleDeclarationWrappingImplementation.prototype.get$minWidth = function() {
|
| + return this.getPropertyValue("min-width");
|
| +}
|
| +CSSStyleDeclarationWrappingImplementation.prototype.set$opacity = function(value) {
|
| + this.setProperty("opacity", value, "");
|
| +}
|
| +CSSStyleDeclarationWrappingImplementation.prototype.set$overflow = function(value) {
|
| + this.setProperty("overflow", value, "");
|
| +}
|
| +CSSStyleDeclarationWrappingImplementation.prototype.get$position = function() {
|
| + return this.getPropertyValue("position");
|
| +}
|
| +CSSStyleDeclarationWrappingImplementation.prototype.set$position = function(value) {
|
| + this.setProperty("position", value, "");
|
| +}
|
| +CSSStyleDeclarationWrappingImplementation.prototype.set$top = function(value) {
|
| + this.setProperty("top", value, "");
|
| +}
|
| +CSSStyleDeclarationWrappingImplementation.prototype.set$transform = function(value) {
|
| + this.setProperty(("" + CSSStyleDeclarationWrappingImplementation.get$_browserPrefix() + "transform"), value, "");
|
| +}
|
| +CSSStyleDeclarationWrappingImplementation.prototype.set$transformOrigin = function(value) {
|
| + this.setProperty(("" + CSSStyleDeclarationWrappingImplementation.get$_browserPrefix() + "transform-origin"), value, "");
|
| +}
|
| +CSSStyleDeclarationWrappingImplementation.prototype.set$transitionDuration = function(value) {
|
| + this.setProperty(("" + CSSStyleDeclarationWrappingImplementation.get$_browserPrefix() + "transition-duration"), value, "");
|
| +}
|
| +CSSStyleDeclarationWrappingImplementation.prototype.get$width = function() {
|
| + return this.getPropertyValue("width");
|
| +}
|
| +CSSStyleDeclarationWrappingImplementation.prototype.set$width = function(value) {
|
| + this.setProperty("width", value, "");
|
| +}
|
| +CSSStyleDeclarationWrappingImplementation.prototype.set$zIndex = function(value) {
|
| + this.setProperty("z-index", value, "");
|
| +}
|
| +CSSStyleDeclarationWrappingImplementation.prototype.clear$0 = function() {
|
| + return this.get$clear().call$0();
|
| +};
|
| +CSSStyleDeclarationWrappingImplementation.prototype.clear$1 = function($0) {
|
| + return this.get$clear().call$1($0);
|
| +};
|
| +CSSStyleDeclarationWrappingImplementation.prototype.filter$1 = function($0) {
|
| + return this.get$filter().call$1($0);
|
| +};
|
| +CSSStyleDeclarationWrappingImplementation.prototype.getPropertyValue$1 = CSSStyleDeclarationWrappingImplementation.prototype.getPropertyValue;
|
| +CSSStyleDeclarationWrappingImplementation.prototype.item$1 = CSSStyleDeclarationWrappingImplementation.prototype.item;
|
| +CSSStyleDeclarationWrappingImplementation.prototype.removeProperty$1 = CSSStyleDeclarationWrappingImplementation.prototype.removeProperty;
|
| +CSSStyleDeclarationWrappingImplementation.prototype.setProperty$3 = CSSStyleDeclarationWrappingImplementation.prototype.setProperty;
|
| +// ********** Code for CustomEventWrappingImplementation **************
|
| +$inherits(CustomEventWrappingImplementation, EventWrappingImplementation);
|
| +function CustomEventWrappingImplementation() {}
|
| +CustomEventWrappingImplementation._wrap$ctor = function(ptr) {
|
| + EventWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +CustomEventWrappingImplementation._wrap$ctor.prototype = CustomEventWrappingImplementation.prototype;
|
| +// ********** Code for _Device **************
|
| +function _Device() {}
|
| +_Device.get$userAgent = function() {
|
| + return get$window().navigator.userAgent;
|
| +}
|
| +_Device.get$isFirefox = function() {
|
| + return _Device.get$userAgent().contains("Firefox", (0));
|
| +}
|
| +// ********** Code for DeviceMotionEventWrappingImplementation **************
|
| +$inherits(DeviceMotionEventWrappingImplementation, EventWrappingImplementation);
|
| +function DeviceMotionEventWrappingImplementation() {}
|
| +DeviceMotionEventWrappingImplementation._wrap$ctor = function(ptr) {
|
| + EventWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +DeviceMotionEventWrappingImplementation._wrap$ctor.prototype = DeviceMotionEventWrappingImplementation.prototype;
|
| +// ********** Code for DeviceOrientationEventWrappingImplementation **************
|
| +$inherits(DeviceOrientationEventWrappingImplementation, EventWrappingImplementation);
|
| +function DeviceOrientationEventWrappingImplementation() {}
|
| +DeviceOrientationEventWrappingImplementation._wrap$ctor = function(ptr) {
|
| + EventWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +DeviceOrientationEventWrappingImplementation._wrap$ctor.prototype = DeviceOrientationEventWrappingImplementation.prototype;
|
| +// ********** Code for FilteredElementList **************
|
| +function FilteredElementList(node) {
|
| + this._htmlimpl_node = node;
|
| + this._childNodes = node.get$nodes();
|
| +}
|
| +FilteredElementList.prototype.is$List = function(){return true};
|
| +FilteredElementList.prototype.get$_filtered = function() {
|
| + return ListFactory.ListFactory$from$factory(this._childNodes.filter$1((function (n) {
|
| + return !!(n && n.is$html_html_Element());
|
| + })
|
| + ));
|
| +}
|
| +FilteredElementList.prototype.get$first = function() {
|
| + var $$list = this._childNodes;
|
| + for (var $$i = $$list.iterator$0(); $$i.hasNext$0(); ) {
|
| + var node = $$i.next$0();
|
| + if (!!(node && node.is$html_html_Element())) {
|
| + return node;
|
| + }
|
| + }
|
| + return null;
|
| +}
|
| +FilteredElementList.prototype.forEach = function(f) {
|
| + this.get$_filtered().forEach(f);
|
| +}
|
| +FilteredElementList.prototype.$setindex = function(index, value) {
|
| + this.$index(index).replaceWith(value);
|
| +}
|
| +FilteredElementList.prototype.add = function(value) {
|
| + this._childNodes.add$1(value);
|
| +}
|
| +FilteredElementList.prototype.get$add = function() {
|
| + return this.add.bind(this);
|
| +}
|
| +FilteredElementList.prototype.addAll = function(collection) {
|
| + collection.forEach(this.get$add());
|
| +}
|
| +FilteredElementList.prototype.sort = function(compare) {
|
| + $throw(const$0022);
|
| +}
|
| +FilteredElementList.prototype.removeRange = function(start, length) {
|
| + this.get$_filtered().getRange$2(start, length).forEach$1((function (el) {
|
| + return el.remove$0();
|
| + })
|
| + );
|
| +}
|
| +FilteredElementList.prototype.clear = function() {
|
| + this._childNodes.clear$0();
|
| +}
|
| +FilteredElementList.prototype.get$clear = function() {
|
| + return this.clear.bind(this);
|
| +}
|
| +FilteredElementList.prototype.removeLast = function() {
|
| + var last = this.last();
|
| + if (last != null) {
|
| + last.remove$0();
|
| + }
|
| + return last;
|
| +}
|
| +FilteredElementList.prototype.filter = function(f) {
|
| + return this.get$_filtered().filter$1(f);
|
| +}
|
| +FilteredElementList.prototype.some = function(f) {
|
| + return this.get$_filtered().some(f);
|
| +}
|
| +FilteredElementList.prototype.isEmpty = function() {
|
| + return this.get$_filtered().isEmpty();
|
| +}
|
| +FilteredElementList.prototype.get$length = function() {
|
| + return this.get$_filtered().get$length();
|
| +}
|
| +FilteredElementList.prototype.set$length = function(newLength) {
|
| + var len = this.get$length();
|
| + if (newLength >= len) {
|
| + return;
|
| + }
|
| + else if (newLength < (0)) {
|
| + $throw(const$0020);
|
| + }
|
| + this.removeRange(newLength - (1), len - newLength);
|
| +}
|
| +FilteredElementList.prototype.$index = function(index) {
|
| + return this.get$_filtered().$index(index);
|
| +}
|
| +FilteredElementList.prototype.iterator = function() {
|
| + return this.get$_filtered().iterator$0();
|
| +}
|
| +FilteredElementList.prototype.getRange = function(start, length) {
|
| + return this.get$_filtered().getRange$2(start, length);
|
| +}
|
| +FilteredElementList.prototype.indexOf = function(element, start) {
|
| + return this.get$_filtered().indexOf(element, start);
|
| +}
|
| +FilteredElementList.prototype.last = function() {
|
| + return this.get$_filtered().last$0();
|
| +}
|
| +FilteredElementList.prototype.add$1 = FilteredElementList.prototype.add;
|
| +FilteredElementList.prototype.addAll$1 = FilteredElementList.prototype.addAll;
|
| +FilteredElementList.prototype.clear$0 = FilteredElementList.prototype.clear;
|
| +FilteredElementList.prototype.filter$1 = function($0) {
|
| + return this.filter(to$call$1($0));
|
| +};
|
| +FilteredElementList.prototype.forEach$1 = function($0) {
|
| + return this.forEach(to$call$1($0));
|
| +};
|
| +FilteredElementList.prototype.getRange$2 = FilteredElementList.prototype.getRange;
|
| +FilteredElementList.prototype.iterator$0 = FilteredElementList.prototype.iterator;
|
| +FilteredElementList.prototype.last$0 = FilteredElementList.prototype.last;
|
| +FilteredElementList.prototype.removeLast$0 = FilteredElementList.prototype.removeLast;
|
| +// ********** Code for EmptyStyleDeclaration **************
|
| +$inherits(EmptyStyleDeclaration, CSSStyleDeclarationWrappingImplementation);
|
| +function EmptyStyleDeclaration() {
|
| + CSSStyleDeclarationWrappingImplementation._wrap$ctor.call(this, get$document().createElement("div").style);
|
| +}
|
| +EmptyStyleDeclaration.prototype.removeProperty = function(propertyName) {
|
| + $throw(new UnsupportedOperationException("Can't modify a frozen style declaration."));
|
| +}
|
| +EmptyStyleDeclaration.prototype.setProperty = function(propertyName, value, priority) {
|
| + $throw(new UnsupportedOperationException("Can't modify a frozen style declaration."));
|
| +}
|
| +EmptyStyleDeclaration.prototype.removeProperty$1 = EmptyStyleDeclaration.prototype.removeProperty;
|
| +EmptyStyleDeclaration.prototype.setProperty$3 = EmptyStyleDeclaration.prototype.setProperty;
|
| +// ********** Code for EmptyElementRect **************
|
| +function EmptyElementRect() {
|
| + this.client = const$0010;
|
| + this.scroll = const$0010;
|
| + this.bounding = const$0010;
|
| + this.clientRects = const$0011;
|
| + this.offset = const$0010;
|
| +}
|
| +EmptyElementRect.prototype.get$offset = function() { return this.offset; };
|
| +// ********** Code for DocumentFragmentWrappingImplementation **************
|
| +$inherits(DocumentFragmentWrappingImplementation, NodeWrappingImplementation);
|
| +function DocumentFragmentWrappingImplementation() {}
|
| +DocumentFragmentWrappingImplementation._wrap$ctor = function(ptr) {
|
| + NodeWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +DocumentFragmentWrappingImplementation._wrap$ctor.prototype = DocumentFragmentWrappingImplementation.prototype;
|
| +DocumentFragmentWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +DocumentFragmentWrappingImplementation.prototype.get$elements = function() {
|
| + if (this._elements == null) {
|
| + this._elements = new FilteredElementList(this);
|
| + }
|
| + return this._elements;
|
| +}
|
| +DocumentFragmentWrappingImplementation.prototype.set$innerHTML = function(value) {
|
| + this.get$nodes().clear$0();
|
| + var e = ElementWrappingImplementation.ElementWrappingImplementation$tag$factory("div");
|
| + e.set$innerHTML(value);
|
| + var nodes = ListFactory.ListFactory$from$factory(e.get$nodes());
|
| + this.get$nodes().addAll(nodes);
|
| +}
|
| +DocumentFragmentWrappingImplementation.prototype.get$on = function() {
|
| + if (this._on == null) {
|
| + this._on = new ElementEventsImplementation._wrap$ctor(this._ptr);
|
| + }
|
| + return this._on;
|
| +}
|
| +DocumentFragmentWrappingImplementation.prototype.get$rect = function() {
|
| + return _createMeasurementFuture((function () {
|
| + return const$0012;
|
| + })
|
| + , new CompleterImpl());
|
| +}
|
| +DocumentFragmentWrappingImplementation.prototype.query = function(selectors) {
|
| + return LevelDom.wrapElement(this._ptr.querySelector$1(selectors));
|
| +}
|
| +DocumentFragmentWrappingImplementation.prototype.queryAll = function(selectors) {
|
| + return LevelDom.wrapElementList(this._ptr.querySelectorAll$1(selectors));
|
| +}
|
| +DocumentFragmentWrappingImplementation.prototype.set$tabIndex = function(value) {
|
| + $throw(new UnsupportedOperationException("Tab index can't be set for document fragments."));
|
| +}
|
| +DocumentFragmentWrappingImplementation.prototype.get$id = function() {
|
| + return "";
|
| +}
|
| +DocumentFragmentWrappingImplementation.prototype.get$title = function() {
|
| + return "";
|
| +}
|
| +DocumentFragmentWrappingImplementation.prototype.get$firstElementChild = function() {
|
| + return this.get$elements().get$first().call$0();
|
| +}
|
| +DocumentFragmentWrappingImplementation.prototype.get$lastElementChild = function() {
|
| + return this.get$elements().last$0();
|
| +}
|
| +DocumentFragmentWrappingImplementation.prototype.get$nextElementSibling = function() {
|
| + return null;
|
| +}
|
| +DocumentFragmentWrappingImplementation.prototype.get$previousElementSibling = function() {
|
| + return null;
|
| +}
|
| +DocumentFragmentWrappingImplementation.prototype.get$parent = function() {
|
| + return null;
|
| +}
|
| +DocumentFragmentWrappingImplementation.prototype.get$attributes = function() {
|
| + return const$0028;
|
| +}
|
| +DocumentFragmentWrappingImplementation.prototype.get$classes = function() {
|
| + return new HashSetImplementation();
|
| +}
|
| +DocumentFragmentWrappingImplementation.prototype.get$style = function() {
|
| + return new EmptyStyleDeclaration();
|
| +}
|
| +DocumentFragmentWrappingImplementation.prototype.get$computedStyle = function() {
|
| + return _emptyStyleFuture();
|
| +}
|
| +DocumentFragmentWrappingImplementation.prototype.blur = function() {
|
| +
|
| +}
|
| +DocumentFragmentWrappingImplementation.prototype.get$blur = function() {
|
| + return this.blur.bind(this);
|
| +}
|
| +DocumentFragmentWrappingImplementation.prototype.focus = function() {
|
| +
|
| +}
|
| +DocumentFragmentWrappingImplementation.prototype.get$focus = function() {
|
| + return this.focus.bind(this);
|
| +}
|
| +DocumentFragmentWrappingImplementation.prototype.blur$0 = DocumentFragmentWrappingImplementation.prototype.blur;
|
| +DocumentFragmentWrappingImplementation.prototype.focus$0 = DocumentFragmentWrappingImplementation.prototype.focus;
|
| +DocumentFragmentWrappingImplementation.prototype.query$1 = DocumentFragmentWrappingImplementation.prototype.query;
|
| +DocumentFragmentWrappingImplementation.prototype.queryAll$1 = DocumentFragmentWrappingImplementation.prototype.queryAll;
|
| +// ********** Code for DocumentEventsImplementation **************
|
| +$inherits(DocumentEventsImplementation, ElementEventsImplementation);
|
| +function DocumentEventsImplementation() {}
|
| +DocumentEventsImplementation._wrap$ctor = function(_ptr) {
|
| + ElementEventsImplementation._wrap$ctor.call(this, _ptr);
|
| +}
|
| +DocumentEventsImplementation._wrap$ctor.prototype = DocumentEventsImplementation.prototype;
|
| +DocumentEventsImplementation.prototype.get$readyStateChange = function() {
|
| + return this._get("readystatechange");
|
| +}
|
| +// ********** Code for DocumentWrappingImplementation **************
|
| +$inherits(DocumentWrappingImplementation, ElementWrappingImplementation);
|
| +function DocumentWrappingImplementation() {}
|
| +DocumentWrappingImplementation._wrap$ctor = function(_documentPtr, ptr) {
|
| + this._documentPtr = _documentPtr;
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| + this._documentPtr.get$dynamic().set$dartObjectLocalStorage(this);
|
| +}
|
| +DocumentWrappingImplementation._wrap$ctor.prototype = DocumentWrappingImplementation.prototype;
|
| +DocumentWrappingImplementation.prototype.is$html_html_Document = function(){return true};
|
| +DocumentWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +DocumentWrappingImplementation.prototype.get$activeElement = function() {
|
| + return LevelDom.wrapElement(this._documentPtr.get$dynamic().get$activeElement());
|
| +}
|
| +DocumentWrappingImplementation.prototype.get$parent = function() {
|
| + return null;
|
| +}
|
| +DocumentWrappingImplementation.prototype.get$body = function() {
|
| + return LevelDom.wrapElement(this._documentPtr.get$body());
|
| +}
|
| +DocumentWrappingImplementation.prototype.get$readyState = function() {
|
| + return this._documentPtr.get$readyState();
|
| +}
|
| +DocumentWrappingImplementation.prototype.get$title = function() {
|
| + return this._documentPtr.get$title();
|
| +}
|
| +DocumentWrappingImplementation.prototype.get$on = function() {
|
| + if (this._on == null) {
|
| + this._on = new DocumentEventsImplementation._wrap$ctor(this._documentPtr);
|
| + }
|
| + return this._on;
|
| +}
|
| +// ********** Code for DOMApplicationCacheEventsImplementation **************
|
| +$inherits(DOMApplicationCacheEventsImplementation, EventsImplementation);
|
| +function DOMApplicationCacheEventsImplementation() {}
|
| +DOMApplicationCacheEventsImplementation._wrap$ctor = function(ptr) {
|
| + EventsImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +DOMApplicationCacheEventsImplementation._wrap$ctor.prototype = DOMApplicationCacheEventsImplementation.prototype;
|
| +DOMApplicationCacheEventsImplementation.prototype.get$updateReady = function() {
|
| + return this._get("updateready");
|
| +}
|
| +// ********** Code for DOMApplicationCacheWrappingImplementation **************
|
| +$inherits(DOMApplicationCacheWrappingImplementation, EventTargetWrappingImplementation);
|
| +function DOMApplicationCacheWrappingImplementation() {}
|
| +DOMApplicationCacheWrappingImplementation._wrap$ctor = function(ptr) {
|
| + EventTargetWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +DOMApplicationCacheWrappingImplementation._wrap$ctor.prototype = DOMApplicationCacheWrappingImplementation.prototype;
|
| +DOMApplicationCacheWrappingImplementation.prototype.get$status = function() {
|
| + return this._ptr.get$status();
|
| +}
|
| +DOMApplicationCacheWrappingImplementation.prototype.swapCache = function() {
|
| + this._ptr.swapCache$0();
|
| +}
|
| +DOMApplicationCacheWrappingImplementation.prototype.get$on = function() {
|
| + if (this._on == null) {
|
| + this._on = new DOMApplicationCacheEventsImplementation._wrap$ctor(this._ptr);
|
| + }
|
| + return this._on;
|
| +}
|
| +DOMApplicationCacheWrappingImplementation.prototype.swapCache$0 = DOMApplicationCacheWrappingImplementation.prototype.swapCache;
|
| +// ********** Code for _ChildrenElementList **************
|
| +function _ChildrenElementList() {}
|
| +_ChildrenElementList._wrap$ctor = function(element) {
|
| + this._childElements = element.get$children();
|
| + this._element = element;
|
| +}
|
| +_ChildrenElementList._wrap$ctor.prototype = _ChildrenElementList.prototype;
|
| +_ChildrenElementList.prototype.is$List = function(){return true};
|
| +_ChildrenElementList.prototype._toList = function() {
|
| + var output = new Array(this._childElements.get$length());
|
| + for (var i = (0), len = this._childElements.get$length();
|
| + i < len; i++) {
|
| + output.$setindex(i, LevelDom.wrapElement(this._childElements.$index(i)));
|
| + }
|
| + return output;
|
| +}
|
| +_ChildrenElementList.prototype.get$first = function() {
|
| + return LevelDom.wrapElement(this._element.get$firstElementChild());
|
| +}
|
| +_ChildrenElementList.prototype.forEach = function(f) {
|
| + return this._toList().forEach(f);
|
| +}
|
| +_ChildrenElementList.prototype.filter = function(f) {
|
| + return this._toList().filter$1(f);
|
| +}
|
| +_ChildrenElementList.prototype.some = function(f) {
|
| + for (var $$i = this.iterator(); $$i.hasNext(); ) {
|
| + var element = $$i.next$0();
|
| + if (f.call$1(element)) {
|
| + return true;
|
| + }
|
| + }
|
| + ;
|
| + return false;
|
| +}
|
| +_ChildrenElementList.prototype.isEmpty = function() {
|
| + return this._element.get$firstElementChild() == null;
|
| +}
|
| +_ChildrenElementList.prototype.get$length = function() {
|
| + return this._childElements.get$length();
|
| +}
|
| +_ChildrenElementList.prototype.set$length = function(newLength) {
|
| + $throw(const$0013);
|
| +}
|
| +_ChildrenElementList.prototype.$index = function(index) {
|
| + return LevelDom.wrapElement(this._childElements.$index(index));
|
| +}
|
| +_ChildrenElementList.prototype.$setindex = function(index, value) {
|
| + this._element.replaceChild$2(LevelDom.unwrap(value), this._childElements.item$1(index));
|
| +}
|
| +_ChildrenElementList.prototype.add = function(value) {
|
| + this._element.appendChild$1(LevelDom.unwrap(value));
|
| + return value;
|
| +}
|
| +_ChildrenElementList.prototype.iterator = function() {
|
| + return this._toList().iterator$0();
|
| +}
|
| +_ChildrenElementList.prototype.addAll = function(collection) {
|
| + for (var $$i = collection.iterator$0(); $$i.hasNext$0(); ) {
|
| + var element = $$i.next$0();
|
| + this._element.appendChild$1(LevelDom.unwrap(element));
|
| + }
|
| +}
|
| +_ChildrenElementList.prototype.sort = function(compare) {
|
| + $throw(const$0022);
|
| +}
|
| +_ChildrenElementList.prototype.getRange = function(start, length) {
|
| + return Lists.getRange(this, start, length);
|
| +}
|
| +_ChildrenElementList.prototype.indexOf = function(element, start) {
|
| + return Lists.indexOf(this, element, start, this.get$length());
|
| +}
|
| +_ChildrenElementList.prototype.clear = function() {
|
| + this._element.set$textContent("");
|
| +}
|
| +_ChildrenElementList.prototype.get$clear = function() {
|
| + return this.clear.bind(this);
|
| +}
|
| +_ChildrenElementList.prototype.removeLast = function() {
|
| + var last = this.last();
|
| + if (last != null) {
|
| + this._element.removeChild$1(LevelDom.unwrap(last));
|
| + }
|
| + return last;
|
| +}
|
| +_ChildrenElementList.prototype.last = function() {
|
| + return LevelDom.wrapElement(this._element.get$lastElementChild());
|
| +}
|
| +_ChildrenElementList.prototype.add$1 = _ChildrenElementList.prototype.add;
|
| +_ChildrenElementList.prototype.addAll$1 = _ChildrenElementList.prototype.addAll;
|
| +_ChildrenElementList.prototype.clear$0 = _ChildrenElementList.prototype.clear;
|
| +_ChildrenElementList.prototype.filter$1 = function($0) {
|
| + return this.filter(to$call$1($0));
|
| +};
|
| +_ChildrenElementList.prototype.forEach$1 = function($0) {
|
| + return this.forEach(to$call$1($0));
|
| +};
|
| +_ChildrenElementList.prototype.getRange$2 = _ChildrenElementList.prototype.getRange;
|
| +_ChildrenElementList.prototype.iterator$0 = _ChildrenElementList.prototype.iterator;
|
| +_ChildrenElementList.prototype.last$0 = _ChildrenElementList.prototype.last;
|
| +_ChildrenElementList.prototype.removeLast$0 = _ChildrenElementList.prototype.removeLast;
|
| +// ********** Code for FrozenElementList **************
|
| +function FrozenElementList() {}
|
| +FrozenElementList._wrap$ctor = function(_ptr) {
|
| + this._ptr = _ptr;
|
| +}
|
| +FrozenElementList._wrap$ctor.prototype = FrozenElementList.prototype;
|
| +FrozenElementList.prototype.is$List = function(){return true};
|
| +FrozenElementList.prototype.get$_ptr = function() { return this._ptr; };
|
| +FrozenElementList.prototype.get$first = function() {
|
| + return this.$index((0));
|
| +}
|
| +FrozenElementList.prototype.forEach = function(f) {
|
| + var length = this._ptr.get$length();
|
| + for (var i = (0);
|
| + i < length; i = $add(i, (1))) {
|
| + f.call$1(LevelDom.wrapElement(this._ptr.$index(i)));
|
| + }
|
| +}
|
| +FrozenElementList.prototype.filter = function(f) {
|
| + $throw("Not implemented yet.");
|
| +}
|
| +FrozenElementList.prototype.some = function(f) {
|
| + $throw("Not impl yet. todo(jacobr)");
|
| +}
|
| +FrozenElementList.prototype.isEmpty = function() {
|
| + return $eq(this._ptr.get$length(), (0));
|
| +}
|
| +FrozenElementList.prototype.get$length = function() {
|
| + return this._ptr.get$length();
|
| +}
|
| +FrozenElementList.prototype.set$length = function(newLength) {
|
| + $throw(const$0013);
|
| +}
|
| +FrozenElementList.prototype.$index = function(index) {
|
| + return LevelDom.wrapElement(this._ptr.$index(index));
|
| +}
|
| +FrozenElementList.prototype.$setindex = function(index, value) {
|
| + $throw(const$0013);
|
| +}
|
| +FrozenElementList.prototype.add = function(value) {
|
| + $throw(const$0013);
|
| +}
|
| +FrozenElementList.prototype.iterator = function() {
|
| + return new FrozenElementListIterator(this);
|
| +}
|
| +FrozenElementList.prototype.addAll = function(collection) {
|
| + $throw(const$0013);
|
| +}
|
| +FrozenElementList.prototype.sort = function(compare) {
|
| + $throw(const$0013);
|
| +}
|
| +FrozenElementList.prototype.getRange = function(start, length) {
|
| + $throw(const$0014);
|
| +}
|
| +FrozenElementList.prototype.indexOf = function(element, start) {
|
| + $throw("Not impl yet. todo(jacobr)");
|
| +}
|
| +FrozenElementList.prototype.clear = function() {
|
| + $throw("Not impl yet. todo(jacobr)");
|
| +}
|
| +FrozenElementList.prototype.get$clear = function() {
|
| + return this.clear.bind(this);
|
| +}
|
| +FrozenElementList.prototype.removeLast = function() {
|
| + $throw("Not impl yet. todo(jacobr)");
|
| +}
|
| +FrozenElementList.prototype.last = function() {
|
| + return this.$index(this.get$length() - (1));
|
| +}
|
| +FrozenElementList.prototype.add$1 = FrozenElementList.prototype.add;
|
| +FrozenElementList.prototype.addAll$1 = FrozenElementList.prototype.addAll;
|
| +FrozenElementList.prototype.clear$0 = FrozenElementList.prototype.clear;
|
| +FrozenElementList.prototype.filter$1 = function($0) {
|
| + return this.filter(to$call$1($0));
|
| +};
|
| +FrozenElementList.prototype.forEach$1 = function($0) {
|
| + return this.forEach(to$call$1($0));
|
| +};
|
| +FrozenElementList.prototype.getRange$2 = FrozenElementList.prototype.getRange;
|
| +FrozenElementList.prototype.iterator$0 = FrozenElementList.prototype.iterator;
|
| +FrozenElementList.prototype.last$0 = FrozenElementList.prototype.last;
|
| +FrozenElementList.prototype.removeLast$0 = FrozenElementList.prototype.removeLast;
|
| +// ********** Code for FrozenElementListIterator **************
|
| +function FrozenElementListIterator(_list) {
|
| + this._htmlimpl_index = (0);
|
| + this._list = _list;
|
| +}
|
| +FrozenElementListIterator.prototype.next = function() {
|
| + if (!this.hasNext()) {
|
| + $throw(const$0001);
|
| + }
|
| + return this._list.$index(this._htmlimpl_index++);
|
| +}
|
| +FrozenElementListIterator.prototype.hasNext = function() {
|
| + return this._htmlimpl_index < this._list.get$length();
|
| +}
|
| +FrozenElementListIterator.prototype.hasNext$0 = FrozenElementListIterator.prototype.hasNext;
|
| +FrozenElementListIterator.prototype.next$0 = FrozenElementListIterator.prototype.next;
|
| +// ********** Code for ElementAttributeMap **************
|
| +function ElementAttributeMap() {}
|
| +ElementAttributeMap._wrap$ctor = function(_element) {
|
| + this._element = _element;
|
| +}
|
| +ElementAttributeMap._wrap$ctor.prototype = ElementAttributeMap.prototype;
|
| +ElementAttributeMap.prototype.is$Map_dart_core_String$Dynamic = function(){return true};
|
| +ElementAttributeMap.prototype.containsKey = function(key) {
|
| + return this._element.hasAttribute$1(key);
|
| +}
|
| +ElementAttributeMap.prototype.$index = function(key) {
|
| + return this._element.getAttribute$1(key);
|
| +}
|
| +ElementAttributeMap.prototype.$setindex = function(key, value) {
|
| + this._element.setAttribute$2(key, value);
|
| +}
|
| +ElementAttributeMap.prototype.putIfAbsent = function(key, ifAbsent) {
|
| + if (!this.containsKey(key)) {
|
| + this.$setindex(key, ifAbsent.call$0());
|
| + }
|
| +}
|
| +ElementAttributeMap.prototype.remove = function(key) {
|
| + this._element.removeAttribute$1(key);
|
| +}
|
| +ElementAttributeMap.prototype.clear = function() {
|
| + var attributes = this._element.get$attributes();
|
| + for (var i = attributes.get$length() - (1);
|
| + i >= (0); i--) {
|
| + this._element.removeAttribute$1(attributes.item$1(i).get$name());
|
| + }
|
| +}
|
| +ElementAttributeMap.prototype.get$clear = function() {
|
| + return this.clear.bind(this);
|
| +}
|
| +ElementAttributeMap.prototype.forEach = function(f) {
|
| + var attributes = this._element.get$attributes();
|
| + for (var i = (0), len = attributes.get$length();
|
| + i < len; i++) {
|
| + var item = attributes.item$1(i);
|
| + f.call$2(item.get$name(), item.get$value());
|
| + }
|
| +}
|
| +ElementAttributeMap.prototype.getValues = function() {
|
| + var attributes = this._element.get$attributes();
|
| + var values = new Array(attributes.get$length());
|
| + for (var i = (0), len = attributes.get$length();
|
| + i < len; i++) {
|
| + values.$setindex(i, attributes.item$1(i).get$value());
|
| + }
|
| + return values;
|
| +}
|
| +ElementAttributeMap.prototype.get$length = function() {
|
| + return this._element.get$attributes().get$length();
|
| +}
|
| +ElementAttributeMap.prototype.clear$0 = ElementAttributeMap.prototype.clear;
|
| +ElementAttributeMap.prototype.forEach$1 = function($0) {
|
| + return this.forEach(to$call$2($0));
|
| +};
|
| +ElementAttributeMap.prototype.getValues$0 = ElementAttributeMap.prototype.getValues;
|
| +ElementAttributeMap.prototype.putIfAbsent$2 = function($0, $1) {
|
| + return this.putIfAbsent($0, to$call$0($1));
|
| +};
|
| +ElementAttributeMap.prototype.remove$1 = ElementAttributeMap.prototype.remove;
|
| +// ********** Code for SimpleClientRect **************
|
| +function SimpleClientRect(left, top, width, height) {
|
| + this.left = left;
|
| + this.top = top;
|
| + this.width = width;
|
| + this.height = height;
|
| +}
|
| +SimpleClientRect.prototype.get$left = function() { return this.left; };
|
| +SimpleClientRect.prototype.get$top = function() { return this.top; };
|
| +SimpleClientRect.prototype.get$width = function() { return this.width; };
|
| +SimpleClientRect.prototype.get$height = function() { return this.height; };
|
| +SimpleClientRect.prototype.$eq = function(other) {
|
| + return other != null && this.left == other.get$left() && this.top == other.get$top() && this.width == other.get$width() && this.height == other.get$height();
|
| +}
|
| +SimpleClientRect.prototype.toString = function() {
|
| + return ("(" + this.left + ", " + this.top + ", " + this.width + ", " + this.height + ")");
|
| +}
|
| +SimpleClientRect.prototype.toString$0 = SimpleClientRect.prototype.toString;
|
| +// ********** Code for ElementRectWrappingImplementation **************
|
| +function ElementRectWrappingImplementation(element) {
|
| + this.client = new SimpleClientRect(element.clientLeft, element.clientTop, element.clientWidth, element.clientHeight);
|
| + this.scroll = new SimpleClientRect(element.scrollLeft, element.scrollTop, element.scrollWidth, element.scrollHeight);
|
| + this._clientRects = element.getClientRects();
|
| + this.offset = new SimpleClientRect(element.offsetLeft, element.offsetTop, element.offsetWidth, element.offsetHeight);
|
| + this._boundingClientRect = element.getBoundingClientRect();
|
| +}
|
| +ElementRectWrappingImplementation.prototype.get$offset = function() { return this.offset; };
|
| +// ********** Code for ErrorEventWrappingImplementation **************
|
| +$inherits(ErrorEventWrappingImplementation, EventWrappingImplementation);
|
| +function ErrorEventWrappingImplementation() {}
|
| +ErrorEventWrappingImplementation._wrap$ctor = function(ptr) {
|
| + EventWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +ErrorEventWrappingImplementation._wrap$ctor.prototype = ErrorEventWrappingImplementation.prototype;
|
| +// ********** Code for EventSourceEventsImplementation **************
|
| +$inherits(EventSourceEventsImplementation, EventsImplementation);
|
| +function EventSourceEventsImplementation() {}
|
| +EventSourceEventsImplementation._wrap$ctor = function(_ptr) {
|
| + EventsImplementation._wrap$ctor.call(this, _ptr);
|
| +}
|
| +EventSourceEventsImplementation._wrap$ctor.prototype = EventSourceEventsImplementation.prototype;
|
| +EventSourceEventsImplementation.prototype.get$open = function() {
|
| + return this._get("open");
|
| +}
|
| +EventSourceEventsImplementation.prototype.open$2 = function($0, $1) {
|
| + return this.get$open().call$2($0, $1);
|
| +};
|
| +EventSourceEventsImplementation.prototype.open$3 = function($0, $1, $2) {
|
| + return this.get$open()($0, $1, $2);
|
| +};
|
| +EventSourceEventsImplementation.prototype.open$4 = function($0, $1, $2, $3) {
|
| + return this.get$open()($0, $1, $2, $3);
|
| +};
|
| +EventSourceEventsImplementation.prototype.open$5 = function($0, $1, $2, $3, $4) {
|
| + return this.get$open()($0, $1, $2, $3, $4);
|
| +};
|
| +// ********** Code for EventSourceWrappingImplementation **************
|
| +$inherits(EventSourceWrappingImplementation, EventTargetWrappingImplementation);
|
| +function EventSourceWrappingImplementation() {}
|
| +EventSourceWrappingImplementation._wrap$ctor = function(ptr) {
|
| + EventTargetWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +EventSourceWrappingImplementation._wrap$ctor.prototype = EventSourceWrappingImplementation.prototype;
|
| +EventSourceWrappingImplementation.prototype.get$readyState = function() {
|
| + return this._ptr.get$readyState();
|
| +}
|
| +EventSourceWrappingImplementation.prototype.get$on = function() {
|
| + if (this._on == null) {
|
| + this._on = new EventSourceEventsImplementation._wrap$ctor(this._ptr);
|
| + }
|
| + return this._on;
|
| +}
|
| +// ********** Code for _EventListenerWrapper **************
|
| +function _EventListenerWrapper(raw, wrapped, useCapture) {
|
| + this.wrapped = wrapped;
|
| + this.useCapture = useCapture;
|
| + this.raw = raw;
|
| +}
|
| +// ********** Code for EventListenerListImplementation **************
|
| +function EventListenerListImplementation(_ptr, _type) {
|
| + this._ptr = _ptr;
|
| + this._type = _type;
|
| + this._wrappers = new Array();
|
| +}
|
| +EventListenerListImplementation.prototype.get$_ptr = function() { return this._ptr; };
|
| +EventListenerListImplementation.prototype.add = function(listener, useCapture) {
|
| + this._htmlimpl_add(listener, useCapture);
|
| + return this;
|
| +}
|
| +EventListenerListImplementation.prototype.remove = function(listener, useCapture) {
|
| + this._htmlimpl_remove(listener, useCapture);
|
| + return this;
|
| +}
|
| +EventListenerListImplementation.prototype.dispatch = function(evt) {
|
| + return this._ptr.dispatchEvent$1(LevelDom.unwrap(evt));
|
| +}
|
| +EventListenerListImplementation.prototype._htmlimpl_add = function(listener, useCapture) {
|
| + this._ptr.addEventListener$3(this._type, this._findOrAddWrapper(listener, useCapture), useCapture);
|
| +}
|
| +EventListenerListImplementation.prototype._htmlimpl_remove = function(listener, useCapture) {
|
| + var wrapper = this._removeWrapper(listener, useCapture);
|
| + if (wrapper != null) {
|
| + this._ptr.removeEventListener$3(this._type, wrapper, useCapture);
|
| + }
|
| +}
|
| +EventListenerListImplementation.prototype._removeWrapper = function(listener, useCapture) {
|
| + if (this._wrappers == null) {
|
| + return null;
|
| + }
|
| + for (var i = (0);
|
| + i < this._wrappers.get$length(); i++) {
|
| + var wrapper = this._wrappers.$index(i);
|
| + if (wrapper.raw == listener && $eq(wrapper.useCapture, useCapture)) {
|
| + if (i + (1) != this._wrappers.get$length()) {
|
| + this._wrappers.$setindex(i, this._wrappers.removeLast$0());
|
| + }
|
| + else {
|
| + this._wrappers.removeLast$0();
|
| + }
|
| + return wrapper.wrapped;
|
| + }
|
| + }
|
| + return null;
|
| +}
|
| +EventListenerListImplementation.prototype._findOrAddWrapper = function(listener, useCapture) {
|
| + if (this._wrappers == null) {
|
| + this._wrappers = [];
|
| + }
|
| + else {
|
| + var $$list = this._wrappers;
|
| + for (var $$i = 0;$$i < $$list.get$length(); $$i++) {
|
| + var wrapper = $$list.$index($$i);
|
| + if (wrapper.raw == listener && $eq(wrapper.useCapture, useCapture)) {
|
| + return wrapper.wrapped;
|
| + }
|
| + }
|
| + }
|
| + var wrapped = (function (e) {
|
| + listener.call$1(LevelDom.wrapEvent(e));
|
| + })
|
| + ;
|
| + this._wrappers.add$1(new _EventListenerWrapper(listener, wrapped, useCapture));
|
| + return wrapped;
|
| +}
|
| +EventListenerListImplementation.prototype.add$1 = function($0) {
|
| + return this.add(to$call$1($0), false);
|
| +};
|
| +EventListenerListImplementation.prototype.add$2 = function($0, $1) {
|
| + return this.add(to$call$1($0), $1);
|
| +};
|
| +EventListenerListImplementation.prototype.remove$1 = function($0) {
|
| + return this.remove(to$call$1($0), false);
|
| +};
|
| +EventListenerListImplementation.prototype.remove$2 = function($0, $1) {
|
| + return this.remove(to$call$1($0), $1);
|
| +};
|
| +// ********** Code for HashChangeEventWrappingImplementation **************
|
| +$inherits(HashChangeEventWrappingImplementation, EventWrappingImplementation);
|
| +function HashChangeEventWrappingImplementation() {}
|
| +HashChangeEventWrappingImplementation._wrap$ctor = function(ptr) {
|
| + EventWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +HashChangeEventWrappingImplementation._wrap$ctor.prototype = HashChangeEventWrappingImplementation.prototype;
|
| +// ********** Code for KeyboardEventWrappingImplementation **************
|
| +$inherits(KeyboardEventWrappingImplementation, UIEventWrappingImplementation);
|
| +function KeyboardEventWrappingImplementation() {}
|
| +KeyboardEventWrappingImplementation._wrap$ctor = function(ptr) {
|
| + UIEventWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +KeyboardEventWrappingImplementation._wrap$ctor.prototype = KeyboardEventWrappingImplementation.prototype;
|
| +// ********** Code for _MeasurementRequest **************
|
| +function _MeasurementRequest(computeValue, completer) {
|
| + this.computeValue = computeValue;
|
| + this.exception = false;
|
| + this.completer = completer;
|
| +}
|
| +_MeasurementRequest.prototype.get$value = function() { return this.value; };
|
| +_MeasurementRequest.prototype.set$value = function(value) { return this.value = value; };
|
| +// ********** Code for MessageEventWrappingImplementation **************
|
| +$inherits(MessageEventWrappingImplementation, EventWrappingImplementation);
|
| +function MessageEventWrappingImplementation() {}
|
| +MessageEventWrappingImplementation._wrap$ctor = function(ptr) {
|
| + EventWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +MessageEventWrappingImplementation._wrap$ctor.prototype = MessageEventWrappingImplementation.prototype;
|
| +MessageEventWrappingImplementation.prototype.get$source = function() {
|
| + return LevelDom.wrapWindow(this._ptr.get$source());
|
| +}
|
| +// ********** Code for MessagePortWrappingImplementation **************
|
| +$inherits(MessagePortWrappingImplementation, EventTargetWrappingImplementation);
|
| +function MessagePortWrappingImplementation() {}
|
| +MessagePortWrappingImplementation._wrap$ctor = function(ptr) {
|
| + EventTargetWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +MessagePortWrappingImplementation._wrap$ctor.prototype = MessagePortWrappingImplementation.prototype;
|
| +// ********** Code for MouseEventWrappingImplementation **************
|
| +$inherits(MouseEventWrappingImplementation, UIEventWrappingImplementation);
|
| +function MouseEventWrappingImplementation() {}
|
| +MouseEventWrappingImplementation._wrap$ctor = function(ptr) {
|
| + UIEventWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +MouseEventWrappingImplementation._wrap$ctor.prototype = MouseEventWrappingImplementation.prototype;
|
| +MouseEventWrappingImplementation.prototype.get$clientX = function() {
|
| + return this._ptr.get$clientX();
|
| +}
|
| +MouseEventWrappingImplementation.prototype.get$clientY = function() {
|
| + return this._ptr.get$clientY();
|
| +}
|
| +MouseEventWrappingImplementation.prototype.get$x = function() {
|
| + return this._ptr.get$x();
|
| +}
|
| +MouseEventWrappingImplementation.prototype.get$y = function() {
|
| + return this._ptr.get$y();
|
| +}
|
| +// ********** Code for MutationEventWrappingImplementation **************
|
| +$inherits(MutationEventWrappingImplementation, EventWrappingImplementation);
|
| +function MutationEventWrappingImplementation() {}
|
| +MutationEventWrappingImplementation._wrap$ctor = function(ptr) {
|
| + EventWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +MutationEventWrappingImplementation._wrap$ctor.prototype = MutationEventWrappingImplementation.prototype;
|
| +// ********** Code for _ChildrenNodeList **************
|
| +function _ChildrenNodeList() {}
|
| +_ChildrenNodeList._wrap$ctor = function(node) {
|
| + this._node = node;
|
| + this._childNodes = node.get$childNodes();
|
| +}
|
| +_ChildrenNodeList._wrap$ctor.prototype = _ChildrenNodeList.prototype;
|
| +_ChildrenNodeList.prototype.is$List = function(){return true};
|
| +_ChildrenNodeList.prototype._toList = function() {
|
| + var output = new Array(this._childNodes.get$length());
|
| + for (var i = (0), len = this._childNodes.get$length();
|
| + i < len; i++) {
|
| + output.$setindex(i, LevelDom.wrapNode(this._childNodes.$index(i)));
|
| + }
|
| + return output;
|
| +}
|
| +_ChildrenNodeList.prototype.get$first = function() {
|
| + return LevelDom.wrapNode(this._node.get$firstChild());
|
| +}
|
| +_ChildrenNodeList.prototype.forEach = function(f) {
|
| + return this._toList().forEach(f);
|
| +}
|
| +_ChildrenNodeList.prototype.filter = function(f) {
|
| + return this._toList().filter$1(f);
|
| +}
|
| +_ChildrenNodeList.prototype.some = function(f) {
|
| + for (var $$i = this.iterator(); $$i.hasNext(); ) {
|
| + var element = $$i.next$0();
|
| + if (f.call$1(element)) {
|
| + return true;
|
| + }
|
| + }
|
| + ;
|
| + return false;
|
| +}
|
| +_ChildrenNodeList.prototype.isEmpty = function() {
|
| + return !this._node.hasChildNodes$0();
|
| +}
|
| +_ChildrenNodeList.prototype.get$length = function() {
|
| + return this._childNodes.get$length();
|
| +}
|
| +_ChildrenNodeList.prototype.set$length = function(newLength) {
|
| + $throw(new UnsupportedOperationException(""));
|
| +}
|
| +_ChildrenNodeList.prototype.$index = function(index) {
|
| + return LevelDom.wrapNode(this._childNodes.$index(index));
|
| +}
|
| +_ChildrenNodeList.prototype.$setindex = function(index, value) {
|
| + this._node.replaceChild$2(LevelDom.unwrap(value), this._childNodes.$index(index));
|
| +}
|
| +_ChildrenNodeList.prototype.add = function(value) {
|
| + this._node.appendChild$1(LevelDom.unwrap(value));
|
| + return value;
|
| +}
|
| +_ChildrenNodeList.prototype.iterator = function() {
|
| + return this._toList().iterator$0();
|
| +}
|
| +_ChildrenNodeList.prototype.addAll = function(collection) {
|
| + for (var $$i = collection.iterator$0(); $$i.hasNext$0(); ) {
|
| + var node = $$i.next$0();
|
| + this._node.appendChild$1(LevelDom.unwrap(node));
|
| + }
|
| +}
|
| +_ChildrenNodeList.prototype.sort = function(compare) {
|
| + $throw(const$0022);
|
| +}
|
| +_ChildrenNodeList.prototype.getRange = function(start, length) {
|
| + return Lists.getRange(this, start, length);
|
| +}
|
| +_ChildrenNodeList.prototype.indexOf = function(element, start) {
|
| + return Lists.indexOf(this, element, start, this.get$length());
|
| +}
|
| +_ChildrenNodeList.prototype.clear = function() {
|
| + this._node.set$textContent("");
|
| +}
|
| +_ChildrenNodeList.prototype.get$clear = function() {
|
| + return this.clear.bind(this);
|
| +}
|
| +_ChildrenNodeList.prototype.removeLast = function() {
|
| + var last = this.last();
|
| + if (last != null) {
|
| + this._node.removeChild$1(LevelDom.unwrap(last));
|
| + }
|
| + return last;
|
| +}
|
| +_ChildrenNodeList.prototype.last = function() {
|
| + return LevelDom.wrapNode(this._node.get$lastChild());
|
| +}
|
| +_ChildrenNodeList.prototype.add$1 = _ChildrenNodeList.prototype.add;
|
| +_ChildrenNodeList.prototype.addAll$1 = _ChildrenNodeList.prototype.addAll;
|
| +_ChildrenNodeList.prototype.clear$0 = _ChildrenNodeList.prototype.clear;
|
| +_ChildrenNodeList.prototype.filter$1 = function($0) {
|
| + return this.filter(to$call$1($0));
|
| +};
|
| +_ChildrenNodeList.prototype.forEach$1 = function($0) {
|
| + return this.forEach(to$call$1($0));
|
| +};
|
| +_ChildrenNodeList.prototype.getRange$2 = _ChildrenNodeList.prototype.getRange;
|
| +_ChildrenNodeList.prototype.iterator$0 = _ChildrenNodeList.prototype.iterator;
|
| +_ChildrenNodeList.prototype.last$0 = _ChildrenNodeList.prototype.last;
|
| +_ChildrenNodeList.prototype.removeLast$0 = _ChildrenNodeList.prototype.removeLast;
|
| +// ********** Code for NotificationWrappingImplementation **************
|
| +$inherits(NotificationWrappingImplementation, EventTargetWrappingImplementation);
|
| +function NotificationWrappingImplementation() {}
|
| +NotificationWrappingImplementation._wrap$ctor = function(ptr) {
|
| + EventTargetWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +NotificationWrappingImplementation._wrap$ctor.prototype = NotificationWrappingImplementation.prototype;
|
| +NotificationWrappingImplementation.prototype.get$typeName = function() {
|
| + return "Notification";
|
| +}
|
| +// ********** Code for ObjectElementWrappingImplementation **************
|
| +$inherits(ObjectElementWrappingImplementation, ElementWrappingImplementation);
|
| +function ObjectElementWrappingImplementation() {}
|
| +ObjectElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +ObjectElementWrappingImplementation._wrap$ctor.prototype = ObjectElementWrappingImplementation.prototype;
|
| +ObjectElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +ObjectElementWrappingImplementation.prototype.get$height = function() {
|
| + return this._ptr.get$height();
|
| +}
|
| +ObjectElementWrappingImplementation.prototype.set$height = function(value) {
|
| + this._ptr.set$height(value);
|
| +}
|
| +ObjectElementWrappingImplementation.prototype.get$name = function() {
|
| + return this._ptr.get$name();
|
| +}
|
| +ObjectElementWrappingImplementation.prototype.get$type = function() {
|
| + return this._ptr.get$type();
|
| +}
|
| +ObjectElementWrappingImplementation.prototype.get$width = function() {
|
| + return this._ptr.get$width();
|
| +}
|
| +ObjectElementWrappingImplementation.prototype.set$width = function(value) {
|
| + this._ptr.set$width(value);
|
| +}
|
| +// ********** Code for OverflowEventWrappingImplementation **************
|
| +$inherits(OverflowEventWrappingImplementation, EventWrappingImplementation);
|
| +function OverflowEventWrappingImplementation() {}
|
| +OverflowEventWrappingImplementation._wrap$ctor = function(ptr) {
|
| + EventWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +OverflowEventWrappingImplementation._wrap$ctor.prototype = OverflowEventWrappingImplementation.prototype;
|
| +// ********** Code for PageTransitionEventWrappingImplementation **************
|
| +$inherits(PageTransitionEventWrappingImplementation, EventWrappingImplementation);
|
| +function PageTransitionEventWrappingImplementation() {}
|
| +PageTransitionEventWrappingImplementation._wrap$ctor = function(ptr) {
|
| + EventWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +PageTransitionEventWrappingImplementation._wrap$ctor.prototype = PageTransitionEventWrappingImplementation.prototype;
|
| +// ********** Code for PopStateEventWrappingImplementation **************
|
| +$inherits(PopStateEventWrappingImplementation, EventWrappingImplementation);
|
| +function PopStateEventWrappingImplementation() {}
|
| +PopStateEventWrappingImplementation._wrap$ctor = function(ptr) {
|
| + EventWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +PopStateEventWrappingImplementation._wrap$ctor.prototype = PopStateEventWrappingImplementation.prototype;
|
| +// ********** Code for ProgressEventWrappingImplementation **************
|
| +$inherits(ProgressEventWrappingImplementation, EventWrappingImplementation);
|
| +function ProgressEventWrappingImplementation() {}
|
| +ProgressEventWrappingImplementation._wrap$ctor = function(ptr) {
|
| + EventWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +ProgressEventWrappingImplementation._wrap$ctor.prototype = ProgressEventWrappingImplementation.prototype;
|
| +// ********** Code for SharedWorkerWrappingImplementation **************
|
| +$inherits(SharedWorkerWrappingImplementation, AbstractWorkerWrappingImplementation);
|
| +function SharedWorkerWrappingImplementation() {}
|
| +SharedWorkerWrappingImplementation._wrap$ctor = function(ptr) {
|
| + AbstractWorkerWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SharedWorkerWrappingImplementation._wrap$ctor.prototype = SharedWorkerWrappingImplementation.prototype;
|
| +// ********** Code for StorageEventWrappingImplementation **************
|
| +$inherits(StorageEventWrappingImplementation, EventWrappingImplementation);
|
| +function StorageEventWrappingImplementation() {}
|
| +StorageEventWrappingImplementation._wrap$ctor = function(ptr) {
|
| + EventWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +StorageEventWrappingImplementation._wrap$ctor.prototype = StorageEventWrappingImplementation.prototype;
|
| +// ********** Code for SVGDocumentWrappingImplementation **************
|
| +$inherits(SVGDocumentWrappingImplementation, DocumentWrappingImplementation);
|
| +function SVGDocumentWrappingImplementation() {}
|
| +SVGDocumentWrappingImplementation._wrap$ctor = function(ptr) {
|
| + DocumentWrappingImplementation._wrap$ctor.call(this, ptr, ptr.rootElement);
|
| +}
|
| +SVGDocumentWrappingImplementation._wrap$ctor.prototype = SVGDocumentWrappingImplementation.prototype;
|
| +SVGDocumentWrappingImplementation.prototype.is$html_html_Document = function(){return true};
|
| +SVGDocumentWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +// ********** Code for _SVGClassSet **************
|
| +$inherits(_SVGClassSet, _CssClassSet);
|
| +function _SVGClassSet(element) {
|
| + _CssClassSet.call(this, element);
|
| +}
|
| +_SVGClassSet.prototype._className = function() {
|
| + return this._htmlimpl_element.get$className().get$baseVal();
|
| +}
|
| +_SVGClassSet.prototype._write = function(s) {
|
| + this._htmlimpl_element.get$className().set$baseVal(this._formatSet(s));
|
| +}
|
| +// ********** Code for SVGElementInstanceWrappingImplementation **************
|
| +$inherits(SVGElementInstanceWrappingImplementation, EventTargetWrappingImplementation);
|
| +function SVGElementInstanceWrappingImplementation() {}
|
| +SVGElementInstanceWrappingImplementation._wrap$ctor = function(ptr) {
|
| + EventTargetWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGElementInstanceWrappingImplementation._wrap$ctor.prototype = SVGElementInstanceWrappingImplementation.prototype;
|
| +SVGElementInstanceWrappingImplementation.prototype.get$childNodes = function() {
|
| + return LevelDom.wrapSVGElementInstanceList(this._ptr.get$childNodes());
|
| +}
|
| +SVGElementInstanceWrappingImplementation.prototype.get$firstChild = function() {
|
| + return LevelDom.wrapSVGElementInstance(this._ptr.get$firstChild());
|
| +}
|
| +SVGElementInstanceWrappingImplementation.prototype.get$lastChild = function() {
|
| + return LevelDom.wrapSVGElementInstance(this._ptr.get$lastChild());
|
| +}
|
| +SVGElementInstanceWrappingImplementation.prototype.get$parentNode = function() {
|
| + return LevelDom.wrapSVGElementInstance(this._ptr.get$parentNode());
|
| +}
|
| +// ********** Code for SVGSVGElementWrappingImplementation **************
|
| +$inherits(SVGSVGElementWrappingImplementation, SVGElementWrappingImplementation);
|
| +function SVGSVGElementWrappingImplementation() {}
|
| +SVGSVGElementWrappingImplementation._wrap$ctor = function(ptr) {
|
| + SVGElementWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +SVGSVGElementWrappingImplementation._wrap$ctor.prototype = SVGSVGElementWrappingImplementation.prototype;
|
| +SVGSVGElementWrappingImplementation.prototype.is$html_html_Element = function(){return true};
|
| +SVGSVGElementWrappingImplementation.prototype.get$height = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$height());
|
| +}
|
| +SVGSVGElementWrappingImplementation.prototype.get$width = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$width());
|
| +}
|
| +SVGSVGElementWrappingImplementation.prototype.get$x = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$x());
|
| +}
|
| +SVGSVGElementWrappingImplementation.prototype.get$y = function() {
|
| + return LevelDom.wrapSVGAnimatedLength(this._ptr.get$y());
|
| +}
|
| +SVGSVGElementWrappingImplementation.prototype.get$className = function() {
|
| + return LevelDom.wrapSVGAnimatedString(this._ptr.get$className());
|
| +}
|
| +SVGSVGElementWrappingImplementation.prototype.get$style = function() {
|
| + return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style());
|
| +}
|
| +// ********** Code for TextEventWrappingImplementation **************
|
| +$inherits(TextEventWrappingImplementation, UIEventWrappingImplementation);
|
| +function TextEventWrappingImplementation() {}
|
| +TextEventWrappingImplementation._wrap$ctor = function(ptr) {
|
| + UIEventWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +TextEventWrappingImplementation._wrap$ctor.prototype = TextEventWrappingImplementation.prototype;
|
| +// ********** Code for TouchEventWrappingImplementation **************
|
| +$inherits(TouchEventWrappingImplementation, UIEventWrappingImplementation);
|
| +function TouchEventWrappingImplementation() {}
|
| +TouchEventWrappingImplementation._wrap$ctor = function(ptr) {
|
| + UIEventWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +TouchEventWrappingImplementation._wrap$ctor.prototype = TouchEventWrappingImplementation.prototype;
|
| +TouchEventWrappingImplementation.prototype.get$changedTouches = function() {
|
| + return LevelDom.wrapTouchList(this._ptr.get$changedTouches());
|
| +}
|
| +TouchEventWrappingImplementation.prototype.get$touches = function() {
|
| + return LevelDom.wrapTouchList(this._ptr.get$touches());
|
| +}
|
| +// ********** Code for TransitionEventWrappingImplementation **************
|
| +$inherits(TransitionEventWrappingImplementation, EventWrappingImplementation);
|
| +function TransitionEventWrappingImplementation() {}
|
| +TransitionEventWrappingImplementation._wrap$ctor = function(ptr) {
|
| + EventWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +TransitionEventWrappingImplementation._wrap$ctor.prototype = TransitionEventWrappingImplementation.prototype;
|
| +// ********** Code for WebSocketWrappingImplementation **************
|
| +$inherits(WebSocketWrappingImplementation, EventTargetWrappingImplementation);
|
| +function WebSocketWrappingImplementation() {}
|
| +WebSocketWrappingImplementation._wrap$ctor = function(ptr) {
|
| + EventTargetWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +WebSocketWrappingImplementation._wrap$ctor.prototype = WebSocketWrappingImplementation.prototype;
|
| +WebSocketWrappingImplementation.prototype.get$protocol = function() {
|
| + return this._ptr.get$protocol();
|
| +}
|
| +WebSocketWrappingImplementation.prototype.get$readyState = function() {
|
| + return this._ptr.get$readyState();
|
| +}
|
| +WebSocketWrappingImplementation.prototype.send = function(data) {
|
| + return this._ptr.send$1(data);
|
| +}
|
| +WebSocketWrappingImplementation.prototype.get$typeName = function() {
|
| + return "WebSocket";
|
| +}
|
| +WebSocketWrappingImplementation.prototype.send$1 = WebSocketWrappingImplementation.prototype.send;
|
| +// ********** Code for WheelEventWrappingImplementation **************
|
| +$inherits(WheelEventWrappingImplementation, UIEventWrappingImplementation);
|
| +function WheelEventWrappingImplementation() {}
|
| +WheelEventWrappingImplementation._wrap$ctor = function(ptr) {
|
| + UIEventWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +WheelEventWrappingImplementation._wrap$ctor.prototype = WheelEventWrappingImplementation.prototype;
|
| +WheelEventWrappingImplementation.prototype.get$clientX = function() {
|
| + return this._ptr.get$clientX();
|
| +}
|
| +WheelEventWrappingImplementation.prototype.get$clientY = function() {
|
| + return this._ptr.get$clientY();
|
| +}
|
| +WheelEventWrappingImplementation.prototype.get$wheelDeltaX = function() {
|
| + return this._ptr.get$wheelDeltaX();
|
| +}
|
| +WheelEventWrappingImplementation.prototype.get$wheelDeltaY = function() {
|
| + return this._ptr.get$wheelDeltaY();
|
| +}
|
| +WheelEventWrappingImplementation.prototype.get$x = function() {
|
| + return this._ptr.get$x();
|
| +}
|
| +WheelEventWrappingImplementation.prototype.get$y = function() {
|
| + return this._ptr.get$y();
|
| +}
|
| +// ********** Code for WindowEventsImplementation **************
|
| +$inherits(WindowEventsImplementation, EventsImplementation);
|
| +function WindowEventsImplementation() {}
|
| +WindowEventsImplementation._wrap$ctor = function(_ptr) {
|
| + EventsImplementation._wrap$ctor.call(this, _ptr);
|
| +}
|
| +WindowEventsImplementation._wrap$ctor.prototype = WindowEventsImplementation.prototype;
|
| +WindowEventsImplementation.prototype.get$blur = function() {
|
| + return this._get("blur");
|
| +}
|
| +WindowEventsImplementation.prototype.get$click = function() {
|
| + return this._get("click");
|
| +}
|
| +WindowEventsImplementation.prototype.get$focus = function() {
|
| + return this._get("focus");
|
| +}
|
| +WindowEventsImplementation.prototype.get$keyDown = function() {
|
| + return this._get("keydown");
|
| +}
|
| +WindowEventsImplementation.prototype.get$load = function() {
|
| + return this._get("load");
|
| +}
|
| +WindowEventsImplementation.prototype.get$message = function() {
|
| + return this._get("message");
|
| +}
|
| +WindowEventsImplementation.prototype.get$mouseDown = function() {
|
| + return this._get("mousedown");
|
| +}
|
| +WindowEventsImplementation.prototype.get$mouseOut = function() {
|
| + return this._get("mouseout");
|
| +}
|
| +WindowEventsImplementation.prototype.get$mouseOver = function() {
|
| + return this._get("mouseover");
|
| +}
|
| +WindowEventsImplementation.prototype.get$mouseWheel = function() {
|
| + return this._get("mousewheel");
|
| +}
|
| +WindowEventsImplementation.prototype.get$popState = function() {
|
| + return this._get("popstate");
|
| +}
|
| +WindowEventsImplementation.prototype.get$resize = function() {
|
| + return this._get("resize");
|
| +}
|
| +WindowEventsImplementation.prototype.get$touchEnd = function() {
|
| + return this._get("touchend");
|
| +}
|
| +WindowEventsImplementation.prototype.get$touchStart = function() {
|
| + return this._get("touchstart");
|
| +}
|
| +WindowEventsImplementation.prototype.get$transitionEnd = function() {
|
| + return this._get("webkitTransitionEnd");
|
| +}
|
| +WindowEventsImplementation.prototype.get$contentLoaded = function() {
|
| + return this._get("DOMContentLoaded");
|
| +}
|
| +WindowEventsImplementation.prototype.blur$0 = function() {
|
| + return this.get$blur().call$0();
|
| +};
|
| +WindowEventsImplementation.prototype.click$0 = function() {
|
| + return this.get$click().call$0();
|
| +};
|
| +WindowEventsImplementation.prototype.focus$0 = function() {
|
| + return this.get$focus().call$0();
|
| +};
|
| +WindowEventsImplementation.prototype.load$0 = function() {
|
| + return this.get$load().call$0();
|
| +};
|
| +// ********** Code for WindowWrappingImplementation **************
|
| +$inherits(WindowWrappingImplementation, EventTargetWrappingImplementation);
|
| +function WindowWrappingImplementation() {}
|
| +WindowWrappingImplementation._wrap$ctor = function(ptr) {
|
| + EventTargetWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +WindowWrappingImplementation._wrap$ctor.prototype = WindowWrappingImplementation.prototype;
|
| +WindowWrappingImplementation.prototype.get$applicationCache = function() {
|
| + return LevelDom.wrapDOMApplicationCache(this._ptr.get$applicationCache());
|
| +}
|
| +WindowWrappingImplementation.prototype.get$console = function() {
|
| + return LevelDom.wrapConsole(this._ptr.get$console());
|
| +}
|
| +WindowWrappingImplementation.prototype.get$history = function() {
|
| + return LevelDom.wrapHistory(this._ptr.get$history());
|
| +}
|
| +WindowWrappingImplementation.prototype.get$length = function() {
|
| + return this._ptr.get$length();
|
| +}
|
| +WindowWrappingImplementation.prototype.get$location = function() {
|
| + return LevelDom.wrapLocation(this._ptr.get$location());
|
| +}
|
| +WindowWrappingImplementation.prototype.get$name = function() {
|
| + return this._ptr.get$name();
|
| +}
|
| +WindowWrappingImplementation.prototype.get$navigator = function() {
|
| + return LevelDom.wrapNavigator(this._ptr.get$navigator());
|
| +}
|
| +WindowWrappingImplementation.prototype.get$screen = function() {
|
| + return LevelDom.wrapScreen(this._ptr.get$screen());
|
| +}
|
| +WindowWrappingImplementation.prototype.get$status = function() {
|
| + return this._ptr.get$status();
|
| +}
|
| +WindowWrappingImplementation.prototype.set$top = function(value) {
|
| + this._ptr.set$top(LevelDom.unwrap(value));
|
| +}
|
| +WindowWrappingImplementation.prototype.blur = function() {
|
| + this._ptr.blur$0();
|
| +}
|
| +WindowWrappingImplementation.prototype.get$blur = function() {
|
| + return this.blur.bind(this);
|
| +}
|
| +WindowWrappingImplementation.prototype.clearInterval = function(handle) {
|
| + if (handle == null) {
|
| + this._ptr.clearInterval$0();
|
| + }
|
| + else {
|
| + this._ptr.clearInterval$1(handle);
|
| + }
|
| +}
|
| +WindowWrappingImplementation.prototype.clearTimeout = function(handle) {
|
| + if (handle == null) {
|
| + this._ptr.clearTimeout$0();
|
| + }
|
| + else {
|
| + this._ptr.clearTimeout$1(handle);
|
| + }
|
| +}
|
| +WindowWrappingImplementation.prototype.focus = function() {
|
| + this._ptr.focus$0();
|
| +}
|
| +WindowWrappingImplementation.prototype.get$focus = function() {
|
| + return this.focus.bind(this);
|
| +}
|
| +WindowWrappingImplementation.prototype.open = function(url, target, features) {
|
| + if (features == null) {
|
| + return LevelDom.wrapWindow(this._ptr.open$2(url, target));
|
| + }
|
| + else {
|
| + return LevelDom.wrapWindow(this._ptr.open$3(url, target, features));
|
| + }
|
| +}
|
| +WindowWrappingImplementation.prototype.open.$optional = ['features', 'null']
|
| +WindowWrappingImplementation.prototype.get$open = function() {
|
| + return this.open.bind(this);
|
| +}
|
| +WindowWrappingImplementation.prototype.postMessage = function(message, messagePort, targetOrigin) {
|
| + if (targetOrigin == null) {
|
| + if (messagePort == null) {
|
| + this._ptr.postMessage$1(message);
|
| + return;
|
| + }
|
| + else {
|
| + this._ptr.postMessage$2(message, messagePort);
|
| + return;
|
| + }
|
| + }
|
| + else {
|
| + this._ptr.postMessage$3(message, LevelDom.unwrap(messagePort), targetOrigin);
|
| + return;
|
| + }
|
| + $throw("Incorrect number or type of arguments");
|
| +}
|
| +WindowWrappingImplementation.prototype.setInterval = function(handler, timeout) {
|
| + return this._ptr.setInterval$2(handler, timeout);
|
| +}
|
| +WindowWrappingImplementation.prototype.setTimeout = function(handler, timeout) {
|
| + return this._ptr.setTimeout$2(handler, timeout);
|
| +}
|
| +WindowWrappingImplementation.prototype.webkitConvertPointFromNodeToPage = function(node, p) {
|
| + if (node == null) {
|
| + if (p == null) {
|
| + return LevelDom.wrapPoint(this._ptr.webkitConvertPointFromNodeToPage$0());
|
| + }
|
| + }
|
| + else {
|
| + if (p == null) {
|
| + return LevelDom.wrapPoint(this._ptr.webkitConvertPointFromNodeToPage$1(LevelDom.unwrap(node)));
|
| + }
|
| + else {
|
| + return LevelDom.wrapPoint(this._ptr.webkitConvertPointFromNodeToPage$2(LevelDom.unwrap(node), LevelDom.unwrap(p)));
|
| + }
|
| + }
|
| + $throw("Incorrect number or type of arguments");
|
| +}
|
| +WindowWrappingImplementation.prototype.webkitConvertPointFromPageToNode = function(node, p) {
|
| + if (node == null) {
|
| + if (p == null) {
|
| + return LevelDom.wrapPoint(this._ptr.webkitConvertPointFromPageToNode$0());
|
| + }
|
| + }
|
| + else {
|
| + if (p == null) {
|
| + return LevelDom.wrapPoint(this._ptr.webkitConvertPointFromPageToNode$1(LevelDom.unwrap(node)));
|
| + }
|
| + else {
|
| + return LevelDom.wrapPoint(this._ptr.webkitConvertPointFromPageToNode$2(LevelDom.unwrap(node), LevelDom.unwrap(p)));
|
| + }
|
| + }
|
| + $throw("Incorrect number or type of arguments");
|
| +}
|
| +WindowWrappingImplementation.prototype.webkitRequestAnimationFrame = function(callback, element) {
|
| + return this._ptr.webkitRequestAnimationFrame$2(callback, LevelDom.unwrap(element));
|
| +}
|
| +WindowWrappingImplementation.prototype.requestLayoutFrame = function(callback) {
|
| + _addMeasurementFrameCallback(callback);
|
| +}
|
| +WindowWrappingImplementation.prototype.get$on = function() {
|
| + if (this._on == null) {
|
| + this._on = new WindowEventsImplementation._wrap$ctor(this._ptr);
|
| + }
|
| + return this._on;
|
| +}
|
| +WindowWrappingImplementation.prototype.blur$0 = WindowWrappingImplementation.prototype.blur;
|
| +WindowWrappingImplementation.prototype.clearInterval$0 = WindowWrappingImplementation.prototype.clearInterval;
|
| +WindowWrappingImplementation.prototype.clearInterval$1 = WindowWrappingImplementation.prototype.clearInterval;
|
| +WindowWrappingImplementation.prototype.clearTimeout$0 = WindowWrappingImplementation.prototype.clearTimeout;
|
| +WindowWrappingImplementation.prototype.clearTimeout$1 = WindowWrappingImplementation.prototype.clearTimeout;
|
| +WindowWrappingImplementation.prototype.focus$0 = WindowWrappingImplementation.prototype.focus;
|
| +WindowWrappingImplementation.prototype.open$2 = WindowWrappingImplementation.prototype.open;
|
| +WindowWrappingImplementation.prototype.open$3 = WindowWrappingImplementation.prototype.open;
|
| +WindowWrappingImplementation.prototype.postMessage$1 = WindowWrappingImplementation.prototype.postMessage;
|
| +WindowWrappingImplementation.prototype.postMessage$2 = WindowWrappingImplementation.prototype.postMessage;
|
| +WindowWrappingImplementation.prototype.postMessage$3 = WindowWrappingImplementation.prototype.postMessage;
|
| +WindowWrappingImplementation.prototype.setInterval$2 = function($0, $1) {
|
| + return this.setInterval(to$call$0($0), $1);
|
| +};
|
| +WindowWrappingImplementation.prototype.setTimeout$2 = function($0, $1) {
|
| + return this.setTimeout(to$call$0($0), $1);
|
| +};
|
| +WindowWrappingImplementation.prototype.webkitConvertPointFromNodeToPage$0 = WindowWrappingImplementation.prototype.webkitConvertPointFromNodeToPage;
|
| +WindowWrappingImplementation.prototype.webkitConvertPointFromNodeToPage$1 = WindowWrappingImplementation.prototype.webkitConvertPointFromNodeToPage;
|
| +WindowWrappingImplementation.prototype.webkitConvertPointFromNodeToPage$2 = WindowWrappingImplementation.prototype.webkitConvertPointFromNodeToPage;
|
| +WindowWrappingImplementation.prototype.webkitConvertPointFromPageToNode$0 = WindowWrappingImplementation.prototype.webkitConvertPointFromPageToNode;
|
| +WindowWrappingImplementation.prototype.webkitConvertPointFromPageToNode$1 = WindowWrappingImplementation.prototype.webkitConvertPointFromPageToNode;
|
| +WindowWrappingImplementation.prototype.webkitConvertPointFromPageToNode$2 = WindowWrappingImplementation.prototype.webkitConvertPointFromPageToNode;
|
| +WindowWrappingImplementation.prototype.webkitRequestAnimationFrame$2 = function($0, $1) {
|
| + return this.webkitRequestAnimationFrame(to$call$1($0), $1);
|
| +};
|
| +// ********** Code for WorkerEventsImplementation **************
|
| +$inherits(WorkerEventsImplementation, AbstractWorkerEventsImplementation);
|
| +function WorkerEventsImplementation() {}
|
| +WorkerEventsImplementation._wrap$ctor = function(_ptr) {
|
| + AbstractWorkerEventsImplementation._wrap$ctor.call(this, _ptr);
|
| +}
|
| +WorkerEventsImplementation._wrap$ctor.prototype = WorkerEventsImplementation.prototype;
|
| +// ********** Code for WorkerWrappingImplementation **************
|
| +$inherits(WorkerWrappingImplementation, EventTargetWrappingImplementation);
|
| +function WorkerWrappingImplementation() {}
|
| +WorkerWrappingImplementation._wrap$ctor = function(ptr) {
|
| + EventTargetWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +WorkerWrappingImplementation._wrap$ctor.prototype = WorkerWrappingImplementation.prototype;
|
| +WorkerWrappingImplementation.prototype.postMessage = function(message, messagePort) {
|
| + if (messagePort == null) {
|
| + this._ptr.postMessage$1(message);
|
| + return;
|
| + }
|
| + else {
|
| + this._ptr.postMessage$2(message, LevelDom.unwrap(messagePort));
|
| + return;
|
| + }
|
| +}
|
| +WorkerWrappingImplementation.prototype.get$on = function() {
|
| + if (this._on == null) {
|
| + this._on = new WorkerEventsImplementation._wrap$ctor(this._ptr);
|
| + }
|
| + return this._on;
|
| +}
|
| +WorkerWrappingImplementation.prototype.postMessage$1 = WorkerWrappingImplementation.prototype.postMessage;
|
| +WorkerWrappingImplementation.prototype.postMessage$2 = WorkerWrappingImplementation.prototype.postMessage;
|
| +// ********** Code for XMLHttpRequestProgressEventWrappingImplementation **************
|
| +$inherits(XMLHttpRequestProgressEventWrappingImplementation, ProgressEventWrappingImplementation);
|
| +function XMLHttpRequestProgressEventWrappingImplementation() {}
|
| +XMLHttpRequestProgressEventWrappingImplementation._wrap$ctor = function(ptr) {
|
| + ProgressEventWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +XMLHttpRequestProgressEventWrappingImplementation._wrap$ctor.prototype = XMLHttpRequestProgressEventWrappingImplementation.prototype;
|
| +// ********** Code for XMLHttpRequestUploadEventsImplementation **************
|
| +$inherits(XMLHttpRequestUploadEventsImplementation, EventsImplementation);
|
| +function XMLHttpRequestUploadEventsImplementation() {}
|
| +XMLHttpRequestUploadEventsImplementation._wrap$ctor = function(_ptr) {
|
| + EventsImplementation._wrap$ctor.call(this, _ptr);
|
| +}
|
| +XMLHttpRequestUploadEventsImplementation._wrap$ctor.prototype = XMLHttpRequestUploadEventsImplementation.prototype;
|
| +XMLHttpRequestUploadEventsImplementation.prototype.get$load = function() {
|
| + return this._get("load");
|
| +}
|
| +XMLHttpRequestUploadEventsImplementation.prototype.load$0 = function() {
|
| + return this.get$load().call$0();
|
| +};
|
| +// ********** Code for XMLHttpRequestUploadWrappingImplementation **************
|
| +$inherits(XMLHttpRequestUploadWrappingImplementation, EventTargetWrappingImplementation);
|
| +function XMLHttpRequestUploadWrappingImplementation() {}
|
| +XMLHttpRequestUploadWrappingImplementation._wrap$ctor = function(ptr) {
|
| + EventTargetWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +XMLHttpRequestUploadWrappingImplementation._wrap$ctor.prototype = XMLHttpRequestUploadWrappingImplementation.prototype;
|
| +XMLHttpRequestUploadWrappingImplementation.prototype.get$on = function() {
|
| + if (this._on == null) {
|
| + this._on = new XMLHttpRequestUploadEventsImplementation._wrap$ctor(this._ptr);
|
| + }
|
| + return this._on;
|
| +}
|
| +// ********** Code for XMLHttpRequestEventsImplementation **************
|
| +$inherits(XMLHttpRequestEventsImplementation, EventsImplementation);
|
| +function XMLHttpRequestEventsImplementation() {}
|
| +XMLHttpRequestEventsImplementation._wrap$ctor = function(_ptr) {
|
| + EventsImplementation._wrap$ctor.call(this, _ptr);
|
| +}
|
| +XMLHttpRequestEventsImplementation._wrap$ctor.prototype = XMLHttpRequestEventsImplementation.prototype;
|
| +XMLHttpRequestEventsImplementation.prototype.get$load = function() {
|
| + return this._get("load");
|
| +}
|
| +XMLHttpRequestEventsImplementation.prototype.get$readyStateChange = function() {
|
| + return this._get("readystatechange");
|
| +}
|
| +XMLHttpRequestEventsImplementation.prototype.load$0 = function() {
|
| + return this.get$load().call$0();
|
| +};
|
| +// ********** Code for XMLHttpRequestWrappingImplementation **************
|
| +$inherits(XMLHttpRequestWrappingImplementation, EventTargetWrappingImplementation);
|
| +function XMLHttpRequestWrappingImplementation() {}
|
| +XMLHttpRequestWrappingImplementation._wrap$ctor = function(ptr) {
|
| + EventTargetWrappingImplementation._wrap$ctor.call(this, ptr);
|
| +}
|
| +XMLHttpRequestWrappingImplementation._wrap$ctor.prototype = XMLHttpRequestWrappingImplementation.prototype;
|
| +XMLHttpRequestWrappingImplementation.XMLHttpRequestWrappingImplementation$factory = function() {
|
| + return new XMLHttpRequestWrappingImplementation._wrap$ctor(new XMLHttpRequest());
|
| +}
|
| +XMLHttpRequestWrappingImplementation.XMLHttpRequestWrappingImplementation$getTEMPNAME$factory = function(url, onSuccess) {
|
| + var request = XMLHttpRequestWrappingImplementation.XMLHttpRequestWrappingImplementation$factory();
|
| + request.open$3("GET", url, true);
|
| + request.set$withCredentials(true);
|
| + request.get$on().get$readyStateChange().add$1((function (e) {
|
| + if ($eq(request.get$readyState(), (4)) && ($eq(request.get$status(), (200)) || $eq(request.get$status(), (0)))) {
|
| + onSuccess.call$1(request);
|
| + }
|
| + })
|
| + );
|
| + request.send$0();
|
| + return request;
|
| +}
|
| +XMLHttpRequestWrappingImplementation.prototype.get$readyState = function() {
|
| + return this._ptr.get$readyState();
|
| +}
|
| +XMLHttpRequestWrappingImplementation.prototype.get$responseText = function() {
|
| + return this._ptr.get$responseText();
|
| +}
|
| +XMLHttpRequestWrappingImplementation.prototype.get$status = function() {
|
| + return this._ptr.get$status();
|
| +}
|
| +XMLHttpRequestWrappingImplementation.prototype.set$withCredentials = function(value) {
|
| + this._ptr.set$withCredentials(value);
|
| +}
|
| +XMLHttpRequestWrappingImplementation.prototype.open = function(method, url, async, user, password) {
|
| + if (user == null) {
|
| + if (password == null) {
|
| + this._ptr.open$3(method, url, async);
|
| + return;
|
| + }
|
| + }
|
| + else {
|
| + if (password == null) {
|
| + this._ptr.open$4(method, url, async, user);
|
| + return;
|
| + }
|
| + else {
|
| + this._ptr.open$5(method, url, async, user, password);
|
| + return;
|
| + }
|
| + }
|
| + $throw("Incorrect number or type of arguments");
|
| +}
|
| +XMLHttpRequestWrappingImplementation.prototype.open.$optional = ['user', 'password', 'null', 'null']
|
| +XMLHttpRequestWrappingImplementation.prototype.get$open = function() {
|
| + return this.open.bind(this);
|
| +}
|
| +XMLHttpRequestWrappingImplementation.prototype.send = function(data) {
|
| + if (data == null) {
|
| + this._ptr.send$0();
|
| + return;
|
| + }
|
| + else {
|
| + if (!!(data && data.is$html_html_Document())) {
|
| + this._ptr.send$1(LevelDom.unwrapMaybePrimitive(data));
|
| + return;
|
| + }
|
| + else {
|
| + if ((typeof(data) == 'string')) {
|
| + this._ptr.send$1(LevelDom.unwrapMaybePrimitive(data));
|
| + return;
|
| + }
|
| + }
|
| + }
|
| + $throw("Incorrect number or type of arguments");
|
| +}
|
| +XMLHttpRequestWrappingImplementation.prototype.get$on = function() {
|
| + if (this._on == null) {
|
| + this._on = new XMLHttpRequestEventsImplementation._wrap$ctor(this._ptr);
|
| + }
|
| + return this._on;
|
| +}
|
| +XMLHttpRequestWrappingImplementation.prototype.open$3 = XMLHttpRequestWrappingImplementation.prototype.open;
|
| +XMLHttpRequestWrappingImplementation.prototype.open$4 = XMLHttpRequestWrappingImplementation.prototype.open;
|
| +XMLHttpRequestWrappingImplementation.prototype.open$5 = XMLHttpRequestWrappingImplementation.prototype.open;
|
| +XMLHttpRequestWrappingImplementation.prototype.send$0 = XMLHttpRequestWrappingImplementation.prototype.send;
|
| +XMLHttpRequestWrappingImplementation.prototype.send$1 = XMLHttpRequestWrappingImplementation.prototype.send;
|
| +// ********** Code for top level **************
|
| +function _emptyStyleFuture() {
|
| + return _createMeasurementFuture((function () {
|
| + return new EmptyStyleDeclaration();
|
| + })
|
| + , new CompleterImpl());
|
| +}
|
| +var _pendingRequests;
|
| +var _pendingMeasurementFrameCallbacks;
|
| +function _maybeScheduleMeasurementFrame() {
|
| + if ($globals._nextMeasurementFrameScheduled) return;
|
| + $globals._nextMeasurementFrameScheduled = true;
|
| + if ($globals._firstMeasurementRequest) {
|
| + html_get$window().get$on().get$message().add((function (e) {
|
| + return _completeMeasurementFutures();
|
| + })
|
| + , false);
|
| + $globals._firstMeasurementRequest = false;
|
| + }
|
| + html_get$window().postMessage("DART-MEASURE", "*");
|
| +}
|
| +function _addMeasurementFrameCallback(callback) {
|
| + if ($globals._pendingMeasurementFrameCallbacks == null) {
|
| + $globals._pendingMeasurementFrameCallbacks = [];
|
| + _maybeScheduleMeasurementFrame();
|
| + }
|
| + $globals._pendingMeasurementFrameCallbacks.add$1(callback);
|
| +}
|
| +function _createMeasurementFuture(computeValue, completer) {
|
| + if ($globals._pendingRequests == null) {
|
| + $globals._pendingRequests = [];
|
| + _maybeScheduleMeasurementFrame();
|
| + }
|
| + $globals._pendingRequests.add$1(new _MeasurementRequest(computeValue, completer));
|
| + return completer.get$future();
|
| +}
|
| +function _completeMeasurementFutures() {
|
| + if ($eq($globals._nextMeasurementFrameScheduled, false)) {
|
| + return;
|
| + }
|
| + $globals._nextMeasurementFrameScheduled = false;
|
| + if ($globals._pendingRequests != null) {
|
| + var $$list = $globals._pendingRequests;
|
| + for (var $$i = 0;$$i < $$list.get$length(); $$i++) {
|
| + var request = $$list.$index($$i);
|
| + try {
|
| + request.value = request.computeValue.call$0();
|
| + } catch (e) {
|
| + e = _toDartException(e);
|
| + request.value = e;
|
| + request.exception = true;
|
| + }
|
| + }
|
| + }
|
| + var completedRequests = $globals._pendingRequests;
|
| + var readyMeasurementFrameCallbacks = $globals._pendingMeasurementFrameCallbacks;
|
| + $globals._pendingRequests = null;
|
| + $globals._pendingMeasurementFrameCallbacks = null;
|
| + if (completedRequests != null) {
|
| + for (var $$i = completedRequests.iterator$0(); $$i.hasNext$0(); ) {
|
| + var request = $$i.next$0();
|
| + if (request.exception) {
|
| + request.completer.completeException(request.value);
|
| + }
|
| + else {
|
| + request.completer.complete(request.value);
|
| + }
|
| + }
|
| + }
|
| + if (readyMeasurementFrameCallbacks != null) {
|
| + for (var $$i = readyMeasurementFrameCallbacks.iterator$0(); $$i.hasNext$0(); ) {
|
| + var handler = $$i.next$0();
|
| + handler.call$0();
|
| + }
|
| + }
|
| +}
|
| +// ********** Library html **************
|
| +// ********** Code for top level **************
|
| +var secretWindow;
|
| +var secretDocument;
|
| +function html_get$window() {
|
| + if ($globals.secretWindow == null) {
|
| + LevelDom.initialize();
|
| + }
|
| + return $globals.secretWindow;
|
| +}
|
| +function html_get$document() {
|
| + if ($globals.secretWindow == null) {
|
| + LevelDom.initialize();
|
| + }
|
| + return $globals.secretDocument;
|
| +}
|
| +// ********** Library observable **************
|
| +// ********** Code for AbstractObservable **************
|
| +function AbstractObservable(parent) {
|
| + this.uid = EventBatch.genUid();
|
| + this.listeners = new Array();
|
| + this.parent = parent;
|
| +}
|
| +AbstractObservable.prototype.get$isObserved = function() {
|
| + for (var obj = this;
|
| + obj != null; obj = obj.parent) {
|
| + if (this.listeners.get$length() > (0)) {
|
| + return true;
|
| + }
|
| + }
|
| + return false;
|
| +}
|
| +AbstractObservable.prototype.addChangeListener = function(listener) {
|
| + if (this.listeners.indexOf(listener, (0)) == (-1)) {
|
| + this.listeners.add$1(listener);
|
| + return true;
|
| + }
|
| + return false;
|
| +}
|
| +AbstractObservable.prototype.recordPropertyUpdate = function(propertyName, newValue, oldValue) {
|
| + this.recordEvent(new ChangeEvent.property$ctor(this, propertyName, newValue, oldValue));
|
| +}
|
| +AbstractObservable.prototype.recordListUpdate = function(index, newValue, oldValue) {
|
| + this.recordEvent(new ChangeEvent.list$ctor(this, (0), index, newValue, oldValue));
|
| +}
|
| +AbstractObservable.prototype.recordListInsert = function(index, newValue) {
|
| + this.recordEvent(new ChangeEvent.list$ctor(this, (1), index, newValue, null));
|
| +}
|
| +AbstractObservable.prototype.recordListRemove = function(index, oldValue) {
|
| + this.recordEvent(new ChangeEvent.list$ctor(this, (2), index, null, oldValue));
|
| +}
|
| +AbstractObservable.prototype.recordGlobalChange = function() {
|
| + this.recordEvent(new ChangeEvent.global$ctor(this));
|
| +}
|
| +AbstractObservable.prototype.recordEvent = function(event) {
|
| + var $this = this; // closure support
|
| + if (!this.get$isObserved()) {
|
| + return;
|
| + }
|
| + if ($globals.EventBatch_current != null) {
|
| + var summary = $globals.EventBatch_current.getEvents(this);
|
| + summary.addEvent$1(event);
|
| + }
|
| + else {
|
| + EventBatch.wrap((function (ignore) {
|
| + $this.recordEvent(event);
|
| + })
|
| + ).call$1();
|
| + }
|
| +}
|
| +// ********** Code for ObservableList **************
|
| +$inherits(ObservableList, AbstractObservable);
|
| +function ObservableList(parent) {
|
| + this._internal = new Array();
|
| + AbstractObservable.call(this, parent);
|
| +}
|
| +ObservableList.prototype.is$ObservableList_D = function(){return true};
|
| +ObservableList.prototype.is$List = function(){return true};
|
| +ObservableList.prototype.$index = function(index) {
|
| + return this._internal.$index(index);
|
| +}
|
| +ObservableList.prototype.$setindex = function(index, value) {
|
| + this.recordListUpdate(index, value, this._internal.$index(index));
|
| + this._internal.$setindex(index, value);
|
| +}
|
| +ObservableList.prototype.get$length = function() {
|
| + return this._internal.get$length();
|
| +}
|
| +ObservableList.prototype.set$length = function(value) {
|
| + this._internal.set$length(value);
|
| + this.recordGlobalChange();
|
| +}
|
| +ObservableList.prototype.clear = function() {
|
| + this._internal.clear$0();
|
| + this.recordGlobalChange();
|
| +}
|
| +ObservableList.prototype.get$clear = function() {
|
| + return this.clear.bind(this);
|
| +}
|
| +ObservableList.prototype.sort = function(compare) {
|
| + this._internal.sort(compare);
|
| + this.recordGlobalChange();
|
| +}
|
| +ObservableList.prototype.add = function(element) {
|
| + this.recordListInsert(this.get$length(), element);
|
| + this._internal.add$1(element);
|
| +}
|
| +ObservableList.prototype.addAll = function(elements) {
|
| + for (var $$i = elements.iterator$0(); $$i.hasNext$0(); ) {
|
| + var element = $$i.next$0();
|
| + this.add(element);
|
| + }
|
| +}
|
| +ObservableList.prototype.last = function() {
|
| + return this._internal.last$0();
|
| +}
|
| +ObservableList.prototype.removeLast = function() {
|
| + var result = this._internal.removeLast$0();
|
| + this.recordListRemove(this.get$length(), result);
|
| + return result;
|
| +}
|
| +ObservableList.prototype.indexOf = function(element, start) {
|
| + return this._internal.indexOf(element, start);
|
| +}
|
| +ObservableList.prototype.getRange = function(start, length) {
|
| + $throw(const$0014);
|
| +}
|
| +ObservableList.prototype.iterator = function() {
|
| + return this._internal.iterator$0();
|
| +}
|
| +ObservableList.prototype.filter = function(f) {
|
| + return this._internal.filter$1(f);
|
| +}
|
| +ObservableList.prototype.some = function(f) {
|
| + return this._internal.some(f);
|
| +}
|
| +ObservableList.prototype.forEach = function(f) {
|
| + this._internal.forEach(f);
|
| +}
|
| +ObservableList.prototype.isEmpty = function() {
|
| + return this.get$length() == (0);
|
| +}
|
| +ObservableList.prototype.add$1 = ObservableList.prototype.add;
|
| +ObservableList.prototype.addAll$1 = ObservableList.prototype.addAll;
|
| +ObservableList.prototype.clear$0 = ObservableList.prototype.clear;
|
| +ObservableList.prototype.filter$1 = function($0) {
|
| + return this.filter(to$call$1($0));
|
| +};
|
| +ObservableList.prototype.forEach$1 = function($0) {
|
| + return this.forEach(to$call$1($0));
|
| +};
|
| +ObservableList.prototype.getRange$2 = ObservableList.prototype.getRange;
|
| +ObservableList.prototype.iterator$0 = ObservableList.prototype.iterator;
|
| +ObservableList.prototype.last$0 = ObservableList.prototype.last;
|
| +ObservableList.prototype.removeLast$0 = ObservableList.prototype.removeLast;
|
| +// ********** Code for ObservableList_Article **************
|
| +$inherits(ObservableList_Article, ObservableList);
|
| +function ObservableList_Article(parent) {
|
| + this._internal = new Array();
|
| + AbstractObservable.call(this, parent);
|
| +}
|
| +ObservableList_Article.prototype.is$ObservableList_D = function(){return true};
|
| +ObservableList_Article.prototype.is$List = function(){return true};
|
| +// ********** Code for ObservableList_D **************
|
| +$inherits(ObservableList_D, ObservableList);
|
| +function ObservableList_D() {}
|
| +ObservableList_D.prototype.is$ObservableList_D = function(){return true};
|
| +ObservableList_D.prototype.is$List = function(){return true};
|
| +// ********** Code for ObservableList_Feed **************
|
| +$inherits(ObservableList_Feed, ObservableList);
|
| +function ObservableList_Feed(parent) {
|
| + this._internal = new Array();
|
| + AbstractObservable.call(this, parent);
|
| +}
|
| +ObservableList_Feed.prototype.is$ObservableList_D = function(){return true};
|
| +ObservableList_Feed.prototype.is$List = function(){return true};
|
| +// ********** Code for ObservableValue **************
|
| +$inherits(ObservableValue, AbstractObservable);
|
| +function ObservableValue(value, parent) {
|
| + this._value = value;
|
| + AbstractObservable.call(this, parent);
|
| +}
|
| +ObservableValue.prototype.get$value = function() {
|
| + return this._value;
|
| +}
|
| +ObservableValue.prototype.set$value = function(newValue) {
|
| + if (newValue != this._value) {
|
| + var oldValue = this._value;
|
| + this._value = newValue;
|
| + this.recordPropertyUpdate("value", newValue, oldValue);
|
| + }
|
| +}
|
| +// ********** Code for ObservableValue_Article **************
|
| +$inherits(ObservableValue_Article, ObservableValue);
|
| +function ObservableValue_Article(value, parent) {
|
| + this._value = value;
|
| + AbstractObservable.call(this, parent);
|
| +}
|
| +// ********** Code for ObservableValue_D **************
|
| +$inherits(ObservableValue_D, ObservableValue);
|
| +function ObservableValue_D() {}
|
| +// ********** Code for ObservableValue_Feed **************
|
| +$inherits(ObservableValue_Feed, ObservableValue);
|
| +function ObservableValue_Feed() {}
|
| +// ********** Code for ObservableValue_bool **************
|
| +$inherits(ObservableValue_bool, ObservableValue);
|
| +function ObservableValue_bool(value, parent) {
|
| + this._value = value;
|
| + AbstractObservable.call(this, parent);
|
| +}
|
| +// ********** Code for ObservableValue_int **************
|
| +$inherits(ObservableValue_int, ObservableValue);
|
| +function ObservableValue_int(value, parent) {
|
| + this._value = value;
|
| + AbstractObservable.call(this, parent);
|
| +}
|
| +// ********** Code for ChangeEvent **************
|
| +function ChangeEvent() {}
|
| +ChangeEvent.property$ctor = function(target, propertyName, newValue, oldValue) {
|
| + this.target = target;
|
| + this.oldValue = oldValue;
|
| + this.index = null;
|
| + this.propertyName = propertyName;
|
| + this.type = (0);
|
| + this.newValue = newValue;
|
| +}
|
| +ChangeEvent.property$ctor.prototype = ChangeEvent.prototype;
|
| +ChangeEvent.global$ctor = function(target) {
|
| + this.target = target;
|
| + this.oldValue = null;
|
| + this.index = null;
|
| + this.propertyName = null;
|
| + this.type = (3);
|
| + this.newValue = null;
|
| +}
|
| +ChangeEvent.global$ctor.prototype = ChangeEvent.prototype;
|
| +ChangeEvent.list$ctor = function(target, type, index, newValue, oldValue) {
|
| + this.target = target;
|
| + this.oldValue = oldValue;
|
| + this.index = index;
|
| + this.propertyName = null;
|
| + this.type = type;
|
| + this.newValue = newValue;
|
| +}
|
| +ChangeEvent.list$ctor.prototype = ChangeEvent.prototype;
|
| +ChangeEvent.prototype.get$target = function() { return this.target; };
|
| +ChangeEvent.prototype.get$type = function() { return this.type; };
|
| +// ********** Code for EventSummary **************
|
| +function EventSummary(target) {
|
| + this.target = target;
|
| + this.events = new Array();
|
| +}
|
| +EventSummary.prototype.get$target = function() { return this.target; };
|
| +EventSummary.prototype.addEvent = function(e) {
|
| + this.events.add$1(e);
|
| +}
|
| +EventSummary.prototype.notify = function() {
|
| + if (!this.events.isEmpty()) {
|
| + for (var obj = this.target;
|
| + obj != null; obj = obj.parent) {
|
| + var $$list = obj.listeners;
|
| + for (var $$i = 0;$$i < $$list.get$length(); $$i++) {
|
| + var listener = $$list.$index($$i);
|
| + listener.call$1(this);
|
| + }
|
| + }
|
| + }
|
| +}
|
| +EventSummary.prototype.addEvent$1 = EventSummary.prototype.addEvent;
|
| +EventSummary.prototype.notify$0 = EventSummary.prototype.notify;
|
| +// ********** Code for EventBatch **************
|
| +function EventBatch() {}
|
| +EventBatch._internal$ctor = function() {
|
| + this.sealed = false;
|
| + this.summaries = new HashMapImplementation();
|
| +}
|
| +EventBatch._internal$ctor.prototype = EventBatch.prototype;
|
| +EventBatch.wrap = function(userFunction) {
|
| + return (function (e) {
|
| + if ($globals.EventBatch_current == null) {
|
| + var batch = new EventBatch._internal$ctor();
|
| + $globals.EventBatch_current = batch;
|
| + var result = null;
|
| + try {
|
| + result = userFunction.call$1(e);
|
| + } finally {
|
| + $globals.EventBatch_current = null;
|
| + batch._notify$0();
|
| + }
|
| + return result;
|
| + }
|
| + else {
|
| + return userFunction.call$1(e);
|
| + }
|
| + })
|
| + ;
|
| +}
|
| +EventBatch.genUid = function() {
|
| + if ($globals.EventBatch_nextUid == null) {
|
| + $globals.EventBatch_nextUid = (1);
|
| + }
|
| + return $globals.EventBatch_nextUid++;
|
| +}
|
| +EventBatch.prototype.getEvents = function(obj) {
|
| + var uid = obj.uid;
|
| + var summary = this.summaries.$index(uid);
|
| + if (summary == null) {
|
| + summary = new EventSummary(obj);
|
| + this.summaries.$setindex(uid, summary);
|
| + }
|
| + return summary;
|
| +}
|
| +EventBatch.prototype._notify = function() {
|
| + this.sealed = true;
|
| + var $$list = this.summaries.getValues$0();
|
| + for (var $$i = $$list.iterator$0(); $$i.hasNext$0(); ) {
|
| + var summary = $$i.next$0();
|
| + summary.notify$0();
|
| + }
|
| +}
|
| +EventBatch.prototype._notify$0 = EventBatch.prototype._notify;
|
| +// ********** Code for top level **************
|
| +// ********** Library utilslib **************
|
| +// ********** Code for CollectionUtils **************
|
| +function CollectionUtils() {}
|
| +CollectionUtils.map = function(source, mapper) {
|
| + var result = new Array(!!(source && source.is$List()) ? source.get$dynamic().get$length() : null);
|
| + var i = (0);
|
| + for (var $$i = source.iterator$0(); $$i.hasNext$0(); ) {
|
| + var item = $$i.next$0();
|
| + result.$setindex(i++, mapper.call$1(item));
|
| + }
|
| + return result;
|
| +}
|
| +CollectionUtils.find = function(source, test) {
|
| + for (var $$i = source.iterator$0(); $$i.hasNext$0(); ) {
|
| + var item = $$i.next$0();
|
| + if (test.call$1(item)) return item;
|
| + }
|
| + return null;
|
| +}
|
| +CollectionUtils.orderBy = function(source, selector) {
|
| + var result = ListFactory.ListFactory$from$factory(source);
|
| + CollectionUtils.sortBy(result, selector);
|
| + return result;
|
| +}
|
| +CollectionUtils.sortBy = function(list, selector) {
|
| + if (selector != null) {
|
| + list.sort((function (x, y) {
|
| + return selector.call$1(x) - selector.call$1(y);
|
| + })
|
| + );
|
| + }
|
| + else {
|
| + list.sort((function (x, y) {
|
| + return x - y;
|
| + })
|
| + );
|
| + }
|
| +}
|
| +CollectionUtils.sum = function(source, selector) {
|
| + var iter = source.iterator$0();
|
| + var total = (0);
|
| + if (selector != null) {
|
| + do {
|
| + total = total + selector.call$1(iter.next$0());
|
| + }
|
| + while (iter.hasNext$0())
|
| + }
|
| + else {
|
| + do {
|
| + total = total + iter.next$0();
|
| + }
|
| + while (iter.hasNext$0())
|
| + }
|
| + return total;
|
| +}
|
| +// ********** Code for DateUtils **************
|
| +function DateUtils() {}
|
| +DateUtils.toRecentTimeString = function(then) {
|
| + function datesAreEqual(d1, d2) {
|
| + return (d1.get$year() == d2.get$year()) && (d1.get$month() == d2.get$month()) && (d1.get$day() == d2.get$day());
|
| + }
|
| + var now = new DateImplementation.now$ctor();
|
| + if (datesAreEqual.call$2(then, now)) {
|
| + return DateUtils.toHourMinutesString(new DurationImplementation((0), then.get$hours(), then.get$minutes(), then.get$seconds(), then.get$milliseconds()));
|
| + }
|
| + var today = DateImplementation.DateImplementation$factory(now.get$year(), now.get$month(), now.get$day(), (0), (0), (0), (0));
|
| + var delta = today.difference$1(then);
|
| + if (delta.inMilliseconds < (86400000)) {
|
| + return "Yesterday";
|
| + }
|
| + else if (delta.inMilliseconds < (604800000)) {
|
| + return const$0015.$index(DateUtils.getWeekday(then));
|
| + }
|
| + else {
|
| + function twoDigits(n) {
|
| + if (n >= (10)) return ("" + n);
|
| + return ("0" + n);
|
| + }
|
| + var twoDigitMonth = twoDigits.call$1(then.get$month());
|
| + var twoDigitDay = twoDigits.call$1(then.get$day());
|
| + return ("" + then.get$year() + "-" + twoDigitMonth + "-" + twoDigitDay);
|
| + }
|
| +}
|
| +DateUtils.getWeekday = function(dateTime) {
|
| + var unixTimeStart = DateImplementation.DateImplementation$factory((1970), (1), (1), (0), (0), (0), (0));
|
| + var msSince1970 = dateTime.difference(unixTimeStart).inMilliseconds;
|
| + var daysSince1970 = $truncdiv(msSince1970, (86400000));
|
| + return ($mod((daysSince1970 + (3)), (7)));
|
| +}
|
| +DateUtils.toHourMinutesString = function(duration) {
|
| + var hours = duration.get$inHours();
|
| + var a;
|
| + if (hours >= (12)) {
|
| + a = "pm";
|
| + if (hours != (12)) {
|
| + hours -= (12);
|
| + }
|
| + }
|
| + else {
|
| + a = "am";
|
| + if (hours == (0)) {
|
| + hours += (12);
|
| + }
|
| + }
|
| + function twoDigits(n) {
|
| + if (n >= (10)) return ("" + n);
|
| + return ("0" + n);
|
| + }
|
| + var mm = twoDigits.call$1(duration.get$inMinutes().remainder((60)));
|
| + return ("" + hours + ":" + mm + " " + a);
|
| +}
|
| +// ********** Code for StringUtils **************
|
| +function StringUtils() {}
|
| +StringUtils.parseInt = function(str, ifNull) {
|
| + return (str == null) ? ifNull : Math.parseInt(str);
|
| +}
|
| +// ********** Code for Uri **************
|
| +function Uri() {}
|
| +Uri.encodeComponent = function(component) {
|
| + if (component == null) return component;
|
| + return component.replaceAll(":", "%3A").replaceAll("/", "%2F").replaceAll("?", "%3F").replaceAll("=", "%3D").replaceAll("&", "%26").replaceAll(" ", "%20");
|
| +}
|
| +Uri.prototype.query$1 = function($0) {
|
| + return this.query.call$1($0);
|
| +};
|
| +// ********** Code for top level **************
|
| +// ********** Library base **************
|
| +// ********** Code for CallbackData **************
|
| +function CallbackData(callback, minTime) {
|
| + this.callback = callback;
|
| + this.minTime = minTime;
|
| + if ($globals.CallbackData__nextId == null) {
|
| + $globals.CallbackData__nextId = (1);
|
| + }
|
| + this.id = $globals.CallbackData__nextId++;
|
| +}
|
| +CallbackData.prototype.get$callback = function() { return this.callback; };
|
| +CallbackData.prototype.get$id = function() { return this.id; };
|
| +CallbackData.prototype.set$id = function(value) { return this.id = value; };
|
| +CallbackData.prototype.ready = function(time) {
|
| + return this.minTime == null || this.minTime <= time;
|
| +}
|
| +CallbackData.prototype.ready$1 = CallbackData.prototype.ready;
|
| +// ********** Code for AnimationScheduler **************
|
| +function AnimationScheduler() {
|
| + this._frameCount = (0);
|
| + this._webkitAnimationFrameMaybeAvailable = true;
|
| + this._isMobileSafari = false;
|
| + this._callbacks = new Array();
|
| + if (this._isMobileSafari) {
|
| + var element = ElementWrappingImplementation.ElementWrappingImplementation$tag$factory("div");
|
| + html_get$document().get$body().get$nodes().add$1(element);
|
| + this._safariHackStyle = element.get$style();
|
| + this._safariHackStyle.set$position("absolute");
|
| + }
|
| +}
|
| +AnimationScheduler.prototype.cancelRequestAnimationFrame = function(id) {
|
| + this._callbacks = this._callbacks.filter$1((function (e) {
|
| + return e.id != id;
|
| + })
|
| + );
|
| +}
|
| +AnimationScheduler.prototype.requestAnimationFrame = function(callback, element, minTime) {
|
| + var callbackData = new CallbackData(callback, minTime);
|
| + this._requestAnimationFrameHelper(callbackData);
|
| + return callbackData.get$id();
|
| +}
|
| +AnimationScheduler.prototype._requestAnimationFrameHelper = function(callbackData) {
|
| + this._callbacks.add$1(callbackData);
|
| + if (this._intervalId == null) {
|
| + this._setupInterval();
|
| + }
|
| +}
|
| +AnimationScheduler.prototype._setupInterval = function() {
|
| + var $this = this; // closure support
|
| + if (false) {
|
| + this._intervalId = html_get$window().setInterval(this.get$_base_step(), (16));
|
| + }
|
| + else {
|
| + if (this._webkitAnimationFrameMaybeAvailable) {
|
| + try {
|
| + this._intervalId = html_get$window().webkitRequestAnimationFrame((function (ignored) {
|
| + $this._base_step();
|
| + })
|
| + , html_get$document());
|
| + } catch (e) {
|
| + e = _toDartException(e);
|
| + this._webkitAnimationFrameMaybeAvailable = false;
|
| + }
|
| + }
|
| + if (!this._webkitAnimationFrameMaybeAvailable) {
|
| + this._intervalId = html_get$window().setTimeout((function () {
|
| + $this._base_step();
|
| + })
|
| + , (16));
|
| + }
|
| + }
|
| +}
|
| +AnimationScheduler.prototype._base_step = function() {
|
| + if (this._callbacks.isEmpty()) {
|
| + if (false) {
|
| + html_get$window().clearInterval(this._intervalId);
|
| + }
|
| + this._intervalId = null;
|
| + }
|
| + else if (true) {
|
| + this._intervalId = null;
|
| + this._setupInterval();
|
| + }
|
| + var numRemaining = (0);
|
| + var minTime = new DateImplementation.now$ctor().value + (16);
|
| + var len = this._callbacks.get$length();
|
| + var $$list = this._callbacks;
|
| + for (var $$i = 0;$$i < $$list.get$length(); $$i++) {
|
| + var callback = $$list.$index($$i);
|
| + if (!callback.ready$1(minTime)) {
|
| + numRemaining++;
|
| + }
|
| + }
|
| + if (numRemaining == len) {
|
| + return;
|
| + }
|
| + var currentCallbacks = this._callbacks;
|
| + this._callbacks = new Array();
|
| + for (var $$i = currentCallbacks.iterator$0(); $$i.hasNext$0(); ) {
|
| + var callbackData = $$i.next$0();
|
| + if (callbackData.ready$1(minTime)) {
|
| + try {
|
| + (callbackData.get$callback()).call$1(minTime);
|
| + } catch (e) {
|
| + e = _toDartException(e);
|
| + var msg = e.toString$0();
|
| + dart_core_print(("Suppressed exception " + msg + " triggered by callback"));
|
| + }
|
| + }
|
| + else {
|
| + this._callbacks.add$1(callbackData);
|
| + }
|
| + }
|
| + this._frameCount++;
|
| + if (this._isMobileSafari) {
|
| + var offset = $mod(this._frameCount, (2));
|
| + this._safariHackStyle.set$left(("" + offset + "px"));
|
| + }
|
| +}
|
| +AnimationScheduler.prototype.get$_base_step = function() {
|
| + return this._base_step.bind(this);
|
| +}
|
| +// ********** Code for Device **************
|
| +function Device() {}
|
| +Device.get$userAgent = function() {
|
| + return html_get$window().get$navigator().get$userAgent();
|
| +}
|
| +Device.get$isMobileSafari = function() {
|
| + return const$0007.hasMatch(Device.get$userAgent());
|
| +}
|
| +Device.get$isAndroid = function() {
|
| + return Device.get$userAgent().contains("Android", (0));
|
| +}
|
| +Device.get$supportsTouch = function() {
|
| + if ($globals.Device__supportsTouch == null) {
|
| + $globals.Device__supportsTouch = Device.get$isMobileSafari() || Device.get$isAndroid();
|
| + }
|
| + return $globals.Device__supportsTouch;
|
| +}
|
| +// ********** Code for Env **************
|
| +function Env() {}
|
| +Env.requestAnimationFrame = function(callback, element, minTime) {
|
| + if ($globals.Env__animationScheduler == null) {
|
| + $globals.Env__animationScheduler = new AnimationScheduler();
|
| + }
|
| + return $globals.Env__animationScheduler.requestAnimationFrame(callback, element, minTime);
|
| +}
|
| +Env.cancelRequestAnimationFrame = function(id) {
|
| + html_get$window().clearTimeout(id);
|
| + $globals.Env__animationScheduler.cancelRequestAnimationFrame(id);
|
| +}
|
| +// ********** Code for Size **************
|
| +function Size(width, height) {
|
| + this.width = width;
|
| + this.height = height;
|
| +}
|
| +Size.prototype.get$width = function() { return this.width; };
|
| +Size.prototype.set$width = function(value) { return this.width = value; };
|
| +Size.prototype.get$height = function() { return this.height; };
|
| +Size.prototype.set$height = function(value) { return this.height = value; };
|
| +Size.prototype.$eq = function(other) {
|
| + return other != null && this.width == other.width && this.height == other.height;
|
| +}
|
| +Size.prototype.clone = function() {
|
| + return new Size(this.width, this.height);
|
| +}
|
| +Size.prototype.round = function() {
|
| + this.width = this.width.round();
|
| + this.height = this.height.round();
|
| + return this;
|
| +}
|
| +Size.prototype.toString = function() {
|
| + return ("(" + this.width + " x " + this.height + ")");
|
| +}
|
| +Size.prototype.clone$0 = Size.prototype.clone;
|
| +Size.prototype.round$0 = Size.prototype.round;
|
| +Size.prototype.toString$0 = Size.prototype.toString;
|
| +// ********** Code for top level **************
|
| +// ********** Library touch **************
|
| +// ********** Code for FxUtil **************
|
| +function FxUtil() {}
|
| +FxUtil.setPosition = function(el, point) {
|
| + var x = point.x;
|
| + var y = point.y;
|
| + el.get$style().set$transform(("" + "translate3d" + "(" + x + "px," + y + "px,0px)"));
|
| +}
|
| +FxUtil.setTranslate = function(el, x, y, z) {
|
| + el.get$style().set$transform(("" + "translate3d" + "(" + x + "px," + y + "px," + z + "px)"));
|
| +}
|
| +FxUtil.setWebkitTransform = function(el, x, y, z, rotation, scale, originX, originY) {
|
| + var style = el.get$style();
|
| + var transform = ("" + "translate3d" + "(" + x + "px," + y + "px," + z + "px)");
|
| + if (rotation != null) {
|
| + transform = transform.concat((" " + "rotate" + "(" + rotation + "deg)"));
|
| + }
|
| + if (scale != null) {
|
| + transform = transform.concat((" " + "scale" + "(" + scale + ")"));
|
| + }
|
| + style.set$transform(transform);
|
| + if (originX != null || originY != null) {
|
| + style.set$transformOrigin(("" + originX + "px " + originY + "px"));
|
| + }
|
| +}
|
| +FxUtil.computeRelativePosition = function(element, target) {
|
| + var testPoint = PointFactoryProvider.Point$factory((0), (0));
|
| + var pagePoint = html_get$window().webkitConvertPointFromNodeToPage(element, testPoint);
|
| + var pointRelativeToTarget = html_get$window().webkitConvertPointFromPageToNode(target, pagePoint);
|
| + return new Coordinate(pointRelativeToTarget.get$x(), pointRelativeToTarget.get$y());
|
| +}
|
| +FxUtil.setLeftAndTop = function(el, x, y) {
|
| + var style = el.get$style();
|
| + style.set$left(("" + x + "px"));
|
| + style.set$top(("" + y + "px"));
|
| +}
|
| +// ********** Code for BouncingState **************
|
| +function BouncingState() {}
|
| +// ********** Code for _Move **************
|
| +function _Move(x, y, vx, vy, time) {
|
| + this.time = time;
|
| + this.x = x;
|
| + this.vx = vx;
|
| + this.y = y;
|
| + this.vy = vy;
|
| +}
|
| +_Move.prototype.get$x = function() { return this.x; };
|
| +_Move.prototype.get$y = function() { return this.y; };
|
| +_Move.prototype.get$vx = function() { return this.vx; };
|
| +_Move.prototype.get$vy = function() { return this.vy; };
|
| +_Move.prototype.get$time = function() { return this.time; };
|
| +_Move.prototype.time$1 = function($0) {
|
| + return this.time.call$1($0);
|
| +};
|
| +// ********** Code for Solver **************
|
| +function Solver() {}
|
| +Solver.solve = function(fn, targetY, startX, maxIterations) {
|
| + var lastX = (0);
|
| + var lastY = fn.call$1(lastX);
|
| + var deltaX;
|
| + var deltaY;
|
| + var minX = null;
|
| + var maxX = null;
|
| + var x = startX;
|
| + var delta = startX;
|
| + for (var i = (0);
|
| + i < maxIterations; i++) {
|
| + var y = fn.call$1(x);
|
| + if (y.round() == targetY.round()) {
|
| + return x;
|
| + }
|
| + if (y > targetY) {
|
| + maxX = x;
|
| + }
|
| + else {
|
| + minX = x;
|
| + }
|
| + var errorY = targetY - y;
|
| + deltaX = x - lastX;
|
| + deltaY = y - lastY;
|
| + lastX = x;
|
| + lastY = y;
|
| + if (deltaY != (0)) {
|
| + delta = errorY * deltaX / deltaY;
|
| + }
|
| + x += delta;
|
| + if (minX != null && maxX != null && (x > minX || x < maxX)) {
|
| + x = (minX + maxX) / (2);
|
| + }
|
| + }
|
| + html_get$window().get$console().warn(("Could not find an exact solution. LastY=" + lastY + ",\n targetY=" + targetY + " lastX=" + lastX + " delta=" + delta + " deltaX=" + deltaX + "\n deltaY=" + deltaY));
|
| + return x;
|
| +}
|
| +// ********** Code for SingleDimensionPhysics **************
|
| +function SingleDimensionPhysics() {
|
| + this._bouncingState = (0);
|
| + this.customDecelerationFactor = (1);
|
| +}
|
| +SingleDimensionPhysics.prototype.configure = function(minCoord, maxCoord, initialOffset, customDecelerationFactor_, velocity_) {
|
| + this._bouncingState = (0);
|
| + this._minCoord = minCoord;
|
| + this._maxCoord = maxCoord;
|
| + this._currentOffset = initialOffset;
|
| + this.customDecelerationFactor = customDecelerationFactor_;
|
| + this._adjustInitialVelocityAndBouncingState(velocity_);
|
| +}
|
| +SingleDimensionPhysics.prototype.solve = function(initialOffset, targetOffset, customDecelerationFactor_) {
|
| + var $this = this; // closure support
|
| + initialOffset = initialOffset.round();
|
| + targetOffset = targetOffset.round();
|
| + if (initialOffset == targetOffset) {
|
| + return (0);
|
| + }
|
| + return Solver.solve((function (velocity_) {
|
| + $this.configure(null, null, initialOffset.round(), customDecelerationFactor_, velocity_);
|
| + $this.stepAll();
|
| + return $this._currentOffset;
|
| + })
|
| + , targetOffset, targetOffset > initialOffset ? (20) : (-20), (50));
|
| +}
|
| +SingleDimensionPhysics.prototype._adjustInitialVelocityAndBouncingState = function(v) {
|
| + this.velocity = v * (16.666666666666668) * (1.25);
|
| + if (this.velocity.abs() < (4.166666666666667)) {
|
| + if (this._minCoord != null && this._currentOffset < this._minCoord) {
|
| + this.velocity = (this._minCoord - this._currentOffset) * (0.11666666666666667);
|
| + this.velocity = Math.max(this.velocity, (0.16666666666666669));
|
| + this._bouncingState = (2);
|
| + }
|
| + else if (this._maxCoord != null && this._currentOffset > this._maxCoord) {
|
| + this.velocity = (this._currentOffset - this._maxCoord) * (0.11666666666666667);
|
| + this.velocity = -Math.max(this.velocity, (0.16666666666666669));
|
| + this._bouncingState = (2);
|
| + }
|
| + }
|
| +}
|
| +SingleDimensionPhysics.prototype._adjustVelocity = function() {
|
| + var speed = this.velocity.abs();
|
| + this.velocity = this.velocity * (0.97);
|
| + if (this.customDecelerationFactor != null) {
|
| + this.velocity = this.velocity * this.customDecelerationFactor;
|
| + }
|
| + if (speed < (1.3333333333333335)) {
|
| + this.velocity = this.velocity * (0.92);
|
| + }
|
| + var stretchDistance;
|
| + if (this._minCoord != null && this._currentOffset < this._minCoord) {
|
| + stretchDistance = this._minCoord - this._currentOffset;
|
| + }
|
| + else {
|
| + if (this._maxCoord != null && this._currentOffset > this._maxCoord) {
|
| + stretchDistance = this._maxCoord - this._currentOffset;
|
| + }
|
| + }
|
| + if (stretchDistance != null) {
|
| + if (stretchDistance * this.velocity < (0)) {
|
| + this._bouncingState = this._bouncingState == (2) ? (0) : (1);
|
| + this.velocity = this.velocity + (stretchDistance * (0.11666666666666667));
|
| + }
|
| + else {
|
| + this._bouncingState = (2);
|
| + this.velocity = stretchDistance > (0) ? Math.max(stretchDistance * (0.11666666666666667), (0.16666666666666669)) : Math.min(stretchDistance * (0.11666666666666667), (-0.16666666666666669));
|
| + }
|
| + }
|
| + else {
|
| + this._bouncingState = (0);
|
| + }
|
| +}
|
| +SingleDimensionPhysics.prototype.step = function() {
|
| + if (this.velocity != null) {
|
| + this._currentOffset = this._currentOffset + this.velocity;
|
| + this._adjustVelocity();
|
| + }
|
| +}
|
| +SingleDimensionPhysics.prototype.stepAll = function() {
|
| + while (!this.isDone()) {
|
| + this.step();
|
| + }
|
| +}
|
| +SingleDimensionPhysics.prototype.isVelocityAboveThreshold = function(threshold) {
|
| + return this.velocity.abs() >= threshold;
|
| +}
|
| +SingleDimensionPhysics.prototype.isDone = function() {
|
| + return this._bouncingState == (0) && !this.isVelocityAboveThreshold((0.16666666666666669));
|
| +}
|
| +// ********** Code for TimeoutMomentum **************
|
| +function TimeoutMomentum(_delegate, defaultDecelerationFactor) {
|
| + this.physicsX = new SingleDimensionPhysics();
|
| + this._defaultDecelerationFactor = defaultDecelerationFactor;
|
| + this._decelerating = false;
|
| + this._moves = new DoubleLinkedQueue();
|
| + this._delegate = _delegate;
|
| + this.physicsY = new SingleDimensionPhysics();
|
| +}
|
| +TimeoutMomentum.prototype._calculateMoves = function() {
|
| + this._moves.clear();
|
| + var time = TimeUtil.now();
|
| + while (!this.physicsX.isDone() || !this.physicsY.isDone()) {
|
| + this._stepWithoutAnimation();
|
| + time += (16.666666666666668);
|
| + if (this._isStepNecessary()) {
|
| + this._moves.add(new _Move(this._nextX, this._nextY, this.physicsX.velocity, this.physicsY.velocity, time));
|
| + this._previousOffset.y = this._nextY;
|
| + this._previousOffset.x = this._nextX;
|
| + }
|
| + }
|
| +}
|
| +TimeoutMomentum.prototype.get$decelerating = function() {
|
| + return this._decelerating;
|
| +}
|
| +TimeoutMomentum.prototype.get$decelerationFactor = function() {
|
| + return this._customDecelerationFactor;
|
| +}
|
| +TimeoutMomentum.prototype._isStepNecessary = function() {
|
| + return this._nextY != this._previousOffset.y || this._nextX != this._previousOffset.x;
|
| +}
|
| +TimeoutMomentum.prototype.calculateVelocity = function(start_, target, decelerationFactor) {
|
| + return new Coordinate(this.physicsX.solve(start_.x, target.x, decelerationFactor), this.physicsY.solve(start_.y, target.y, decelerationFactor));
|
| +}
|
| +TimeoutMomentum.prototype.start = function(velocity, minCoord, maxCoord, initialOffset, decelerationFactor) {
|
| + this._customDecelerationFactor = this._defaultDecelerationFactor;
|
| + if (decelerationFactor != null) {
|
| + this._customDecelerationFactor = decelerationFactor;
|
| + }
|
| + if (this._stepTimeout != null) {
|
| + Env.cancelRequestAnimationFrame(this._stepTimeout);
|
| + this._stepTimeout = null;
|
| + }
|
| + this._previousOffset = initialOffset.clone();
|
| + this.physicsX.configure(minCoord.x, maxCoord.x, initialOffset.x, this._customDecelerationFactor, velocity.x);
|
| + this.physicsY.configure(minCoord.y, maxCoord.y, initialOffset.y, this._customDecelerationFactor, velocity.y);
|
| + if (!this.physicsX.isDone() || !this.physicsY.isDone()) {
|
| + this._calculateMoves();
|
| + if (!this._moves.isEmpty()) {
|
| + var firstTime = this._moves.first().get$time();
|
| + this._stepTimeout = Env.requestAnimationFrame(this.get$_step(), null, firstTime);
|
| + this._decelerating = true;
|
| + return true;
|
| + }
|
| + }
|
| + this._decelerating = false;
|
| + return false;
|
| +}
|
| +TimeoutMomentum.prototype.start.$optional = ['decelerationFactor', 'null']
|
| +TimeoutMomentum.prototype.get$start = function() {
|
| + return this.start.bind(this);
|
| +}
|
| +TimeoutMomentum.prototype._stepWithoutAnimation = function() {
|
| + this.physicsX.step();
|
| + this.physicsY.step();
|
| + this._nextX = this.physicsX._currentOffset.round().toInt();
|
| + this._nextY = this.physicsY._currentOffset.round().toInt();
|
| +}
|
| +TimeoutMomentum.prototype._step = function(timestamp) {
|
| + this._stepTimeout = null;
|
| + var lastEpoch = timestamp - (16.666666666666668);
|
| + while (!this._moves.isEmpty() && this._moves.first() != this._moves.last() && this._moves.first().get$time() < lastEpoch) {
|
| + this._moves.removeFirst();
|
| + }
|
| + if (!this._moves.isEmpty()) {
|
| + var move = this._moves.removeFirst();
|
| + this._delegate.onDecelerate(move.get$x(), move.get$y());
|
| + if (!this._moves.isEmpty()) {
|
| + var nextTime = this._moves.first().get$time();
|
| + this._stepTimeout = Env.requestAnimationFrame(this.get$_step(), null, nextTime);
|
| + }
|
| + else {
|
| + this.stop();
|
| + }
|
| + }
|
| +}
|
| +TimeoutMomentum.prototype.get$_step = function() {
|
| + return this._step.bind(this);
|
| +}
|
| +TimeoutMomentum.prototype.abort = function() {
|
| + this._decelerating = false;
|
| + this._moves.clear();
|
| + if (this._stepTimeout != null) {
|
| + Env.cancelRequestAnimationFrame(this._stepTimeout);
|
| + this._stepTimeout = null;
|
| + }
|
| +}
|
| +TimeoutMomentum.prototype.stop = function() {
|
| + var wasDecelerating = this._decelerating;
|
| + this._decelerating = false;
|
| + var velocity;
|
| + if (!this._moves.isEmpty()) {
|
| + var move = this._moves.first();
|
| + var velocityScale = (20.833333333333336);
|
| + velocity = new Coordinate(move.get$vx() / velocityScale, move.get$vy() / velocityScale);
|
| + }
|
| + else {
|
| + velocity = new Coordinate((0), (0));
|
| + }
|
| + this._moves.clear();
|
| + if (this._stepTimeout != null) {
|
| + Env.cancelRequestAnimationFrame(this._stepTimeout);
|
| + this._stepTimeout = null;
|
| + }
|
| + if (wasDecelerating) {
|
| + this._delegate.onDecelerationEnd();
|
| + }
|
| + return velocity;
|
| +}
|
| +TimeoutMomentum.prototype.get$destination = function() {
|
| + if (!this._moves.isEmpty()) {
|
| + var lastMove = this._moves.last();
|
| + return new Coordinate(lastMove.get$x(), lastMove.get$y());
|
| + }
|
| + else {
|
| + return null;
|
| + }
|
| +}
|
| +// ********** Code for Scroller **************
|
| +function Scroller(scrollableElem, verticalEnabled, horizontalEnabled, momentumEnabled, lookupContentSizeDelegate, defaultDecelerationFactor, scrollTechnique, capture) {
|
| + var $this = this; // closure support
|
| + this._scrollTechnique = scrollTechnique != null ? scrollTechnique : (1);
|
| + this.horizontalEnabled = horizontalEnabled;
|
| + this._minPoint = new Coordinate((0), (0));
|
| + this._minOffset = new Coordinate((0), (0));
|
| + this._maxPoint = new Coordinate((0), (0));
|
| + this._maxOffset = new Coordinate((0), (0));
|
| + this._lookupContentSizeDelegate = lookupContentSizeDelegate;
|
| + this._frame = scrollableElem.get$parent();
|
| + this._element = scrollableElem;
|
| + this._contentOffset = new Coordinate((0), (0));
|
| + this._activeGesture = false;
|
| + this._isStopping = false;
|
| + this.verticalEnabled = verticalEnabled;
|
| + this._started = false;
|
| + this._momentumEnabled = momentumEnabled;
|
| + this._touchHandler = new TouchHandler(this, scrollableElem.get$parent());
|
| + this._momentum = new TimeoutMomentum(this, defaultDecelerationFactor);
|
| + var parentElem = scrollableElem.get$parent();
|
| + this._setOffsetFunction = Scroller._getOffsetFunction(this._scrollTechnique);
|
| + this._touchHandler.setDraggable(this);
|
| + this._touchHandler.enable(capture);
|
| + this._frame.get$on().get$mouseWheel().add$1((function (e) {
|
| + if ($ne(e.get$wheelDeltaY(), (0)) && $this.verticalEnabled || $ne(e.get$wheelDeltaX(), (0)) && $this.horizontalEnabled) {
|
| + var x = $this.horizontalEnabled ? e.get$wheelDeltaX() : (0);
|
| + var y = $this.verticalEnabled ? e.get$wheelDeltaY() : (0);
|
| + $this.throwDelta(x, y, (0.84));
|
| + e.preventDefault$0();
|
| + }
|
| + })
|
| + );
|
| + this._frame.get$on().get$keyDown().add$1((function (e) {
|
| + var handled = false;
|
| + switch (e.get$keyCode()) {
|
| + case (33):
|
| +
|
| + $this.throwDelta((0), $this._scrollSize.height * (0.85));
|
| + handled = true;
|
| + break;
|
| +
|
| + case (34):
|
| +
|
| + $this.throwDelta((0), -$this._scrollSize.height * (0.85));
|
| + handled = true;
|
| + break;
|
| +
|
| + case (35):
|
| +
|
| + $this.throwTo($this._maxPoint.x, $this._minPoint.y, (0.84));
|
| + handled = true;
|
| + break;
|
| +
|
| + case (36):
|
| +
|
| + $this.throwTo($this._maxPoint.x, $this._maxPoint.y, (0.84));
|
| + handled = true;
|
| + break;
|
| +
|
| + }
|
| + if (handled) {
|
| + e.preventDefault();
|
| + }
|
| + })
|
| + );
|
| + if (this._scrollTechnique == (2)) {
|
| + this._element.get$computedStyle().then((function (style) {
|
| +
|
| + })
|
| + );
|
| + }
|
| + this._initLayer();
|
| +}
|
| +Scroller.prototype.get$onScrollerStart = function() {
|
| + if (this._onScrollerStart == null) {
|
| + this._onScrollerStart = new SimpleEventListenerList();
|
| + }
|
| + return this._onScrollerStart;
|
| +}
|
| +Scroller.prototype.get$onScrollerEnd = function() {
|
| + if (this._onScrollerEnd == null) {
|
| + this._onScrollerEnd = new SimpleEventListenerList();
|
| + }
|
| + return this._onScrollerEnd;
|
| +}
|
| +Scroller.prototype.get$onScrollerDragEnd = function() {
|
| + if (this._onScrollerDragEnd == null) {
|
| + this._onScrollerDragEnd = new SimpleEventListenerList();
|
| + }
|
| + return this._onScrollerDragEnd;
|
| +}
|
| +Scroller.prototype.get$onContentMoved = function() {
|
| + if (this._touch_onContentMoved == null) {
|
| + this._touch_onContentMoved = new SimpleEventListenerList();
|
| + }
|
| + return this._touch_onContentMoved;
|
| +}
|
| +Scroller.prototype.get$onDecelStart = function() {
|
| + if (this._onDecelStart == null) {
|
| + this._onDecelStart = new SimpleEventListenerList();
|
| + }
|
| + return this._onDecelStart;
|
| +}
|
| +Scroller.prototype.addScrollListener = function(listener) {
|
| + if (this._scrollWatcher == null) {
|
| + this._scrollWatcher = new ScrollWatcher(this);
|
| + this._scrollWatcher.initialize();
|
| + }
|
| + this._scrollWatcher.addListener(listener);
|
| +}
|
| +Scroller.prototype._adjustValue = function(newPosition, minPosition, maxPosition) {
|
| + if (newPosition < minPosition) {
|
| + newPosition -= ((newPosition - minPosition) / (2));
|
| + }
|
| + else {
|
| + if (newPosition > maxPosition) {
|
| + newPosition -= ((newPosition - maxPosition) / (2));
|
| + }
|
| + }
|
| + return newPosition;
|
| +}
|
| +Scroller.prototype.get$currentTarget = function() {
|
| + var end = this._momentum.get$destination();
|
| + if (end == null) {
|
| + end = this._contentOffset;
|
| + }
|
| + return end;
|
| +}
|
| +Scroller.prototype.get$contentOffset = function() {
|
| + return this._contentOffset;
|
| +}
|
| +Scroller.prototype.throwTo = function(x, y, decelerationFactor) {
|
| + var $this = this; // closure support
|
| + this.reconfigure((function () {
|
| + var snappedTarget = $this._snapToBounds(x, y);
|
| + if (decelerationFactor == null) {
|
| + decelerationFactor = $this._momentum.get$decelerationFactor();
|
| + }
|
| + if ($ne(snappedTarget, $this.get$currentTarget())) {
|
| + $this._momentum.abort();
|
| + $this._startDeceleration($this._momentum.calculateVelocity($this._contentOffset, snappedTarget, decelerationFactor), decelerationFactor);
|
| + $this.get$onDecelStart().dispatch(EventWrappingImplementation.EventWrappingImplementation$factory("scroller:decel_start", true, true));
|
| + }
|
| + })
|
| + );
|
| +}
|
| +Scroller.prototype.throwDelta = function(deltaX, deltaY, decelerationFactor) {
|
| + var start = this._contentOffset;
|
| + var end = this.get$currentTarget();
|
| + var x = end.x.toInt();
|
| + var y = end.y.toInt();
|
| + if (deltaX != (0) && $ne(deltaX.isNegative(), (end.x - start.x).isNegative())) {
|
| + x = start.x;
|
| + }
|
| + if (deltaY != (0) && $ne(deltaY.isNegative(), (end.y - start.y).isNegative())) {
|
| + y = start.y;
|
| + }
|
| + x += deltaX.toInt();
|
| + y += deltaY.toInt();
|
| + this.throwTo(x, y, decelerationFactor);
|
| +}
|
| +Scroller.prototype.setPosition = function(x, y) {
|
| + this._momentum.abort();
|
| + this._contentOffset.x = x;
|
| + this._contentOffset.y = y;
|
| + this._snapContentOffsetToBounds();
|
| + this._setContentOffset(this._contentOffset.x, this._contentOffset.y);
|
| +}
|
| +Scroller.prototype._getAdjustedContentSize = function() {
|
| + return new Size(Math.max(this._scrollSize.width, this._contentSize.width), Math.max(this._scrollSize.height, this._contentSize.height));
|
| +}
|
| +Scroller.prototype.getElement = function() {
|
| + return this._element;
|
| +}
|
| +Scroller.prototype.getFrame = function() {
|
| + return this._frame;
|
| +}
|
| +Scroller.prototype.getHorizontalOffset = function() {
|
| + return this._contentOffset.x;
|
| +}
|
| +Scroller.prototype.getHorizontalScrollPercent = function(x) {
|
| + x = x != null ? x : this._contentOffset.x;
|
| + return (x - this._minPoint.x) / (this._maxPoint.x - this._minPoint.x);
|
| +}
|
| +Scroller.prototype.getVerticalOffset = function() {
|
| + return this._contentOffset.y;
|
| +}
|
| +Scroller.prototype.getVerticalScrollPercent = function(y) {
|
| + y = y != null ? y : this._contentOffset.y;
|
| + return (y - this._minPoint.y) / Math.max((1), this._maxPoint.y - this._minPoint.y);
|
| +}
|
| +Scroller.prototype._initLayer = function() {
|
| + this._setContentOffset(this._maxPoint.x, this._maxPoint.y);
|
| +}
|
| +Scroller.prototype.onDecelerate = function(x, y) {
|
| + this._setContentOffset(x, y);
|
| +}
|
| +Scroller.prototype.onDecelerationEnd = function() {
|
| + this.get$onScrollerEnd().dispatch(EventWrappingImplementation.EventWrappingImplementation$factory("scroller:scroll_end", true, true));
|
| + this._started = false;
|
| +}
|
| +Scroller.prototype.onDragEnd = function() {
|
| + $globals.Scroller__dragInProgress = false;
|
| + var decelerating = false;
|
| + if (this._activeGesture) {
|
| + if (this._momentumEnabled) {
|
| + decelerating = this._startDeceleration(this._touchHandler.getEndVelocity());
|
| + }
|
| + }
|
| + this.get$onScrollerDragEnd().dispatch(EventWrappingImplementation.EventWrappingImplementation$factory("scroller:drag_end", true, true));
|
| + if (!decelerating) {
|
| + this._snapContentOffsetToBounds();
|
| + this.get$onScrollerEnd().dispatch(EventWrappingImplementation.EventWrappingImplementation$factory("scroller:scroll_end", true, true));
|
| + this._started = false;
|
| + }
|
| + else {
|
| + this.get$onDecelStart().dispatch(EventWrappingImplementation.EventWrappingImplementation$factory("scroller:decel_start", true, true));
|
| + }
|
| + this._activeGesture = false;
|
| +}
|
| +Scroller.prototype.onDragMove = function() {
|
| + if (this._isStopping || (!this._activeGesture && $globals.Scroller__dragInProgress)) {
|
| + return;
|
| + }
|
| + var contentStart = this._contentStartOffset;
|
| + var newX = contentStart.x + this._touchHandler.getDragDeltaX();
|
| + var newY = contentStart.y + this._touchHandler.getDragDeltaY();
|
| + newY = this._shouldScrollVertically() ? this._adjustValue(newY, this._minPoint.y, this._maxPoint.y) : (0);
|
| + newX = this._shouldScrollHorizontally() ? this._adjustValue(newX, this._minPoint.x, this._maxPoint.x) : (0);
|
| + if (!this._activeGesture) {
|
| + this._activeGesture = true;
|
| + $globals.Scroller__dragInProgress = true;
|
| + }
|
| + if (!this._started) {
|
| + this._started = true;
|
| + this.get$onScrollerStart().dispatch(EventWrappingImplementation.EventWrappingImplementation$factory("scroller:scroll_start", true, true));
|
| + }
|
| + this._setContentOffset(newX, newY);
|
| +}
|
| +Scroller.prototype.onDragStart = function(e) {
|
| + if (e.get$touches().get$length() > (1)) {
|
| + return false;
|
| + }
|
| + var shouldHorizontal = this._shouldScrollHorizontally();
|
| + var shouldVertical = this._shouldScrollVertically();
|
| + var verticalish = this._touchHandler.getDragDeltaY().abs() > this._touchHandler.getDragDeltaX().abs();
|
| + return !!(shouldVertical || shouldHorizontal && !verticalish);
|
| +}
|
| +Scroller.prototype.onTouchEnd = function() {
|
| +
|
| +}
|
| +Scroller.prototype.onTouchStart = function(e) {
|
| + var $this = this; // closure support
|
| + this.reconfigure((function () {
|
| + var touch = e.get$touches().$index((0));
|
| + if ($this._momentum.get$decelerating()) {
|
| + e.preventDefault();
|
| + e.stopPropagation();
|
| + $this.stop();
|
| + }
|
| + $this._contentStartOffset = $this._contentOffset.clone();
|
| + $this._snapContentOffsetToBounds();
|
| + })
|
| + );
|
| + return true;
|
| +}
|
| +Scroller.prototype.reconfigure = function(callback) {
|
| + var $this = this; // closure support
|
| + this._resize((function () {
|
| + $this._snapContentOffsetToBounds();
|
| + callback.call$0();
|
| + })
|
| + );
|
| +}
|
| +Scroller.prototype._resize = function(callback) {
|
| + var $this = this; // closure support
|
| + var frameRect = this._frame.get$rect();
|
| + var contentSizeFuture;
|
| + if (this._lookupContentSizeDelegate != null) {
|
| + contentSizeFuture = this._lookupContentSizeDelegate.call$0();
|
| + contentSizeFuture.then((function (size) {
|
| + $this._contentSize = size;
|
| + })
|
| + );
|
| + }
|
| + else {
|
| + contentSizeFuture = this._element.get$rect();
|
| + contentSizeFuture.then((function (rect) {
|
| + $this._contentSize = new Size(rect.scroll.get$width(), rect.scroll.get$height());
|
| + })
|
| + );
|
| + }
|
| + joinFutures([frameRect, contentSizeFuture], (function () {
|
| + $this._scrollSize = new Size(frameRect.get$value().get$offset().get$width(), frameRect.get$value().get$offset().get$height());
|
| + var adjusted = $this._getAdjustedContentSize();
|
| + $this._maxPoint = new Coordinate(-$this._maxOffset.x, -$this._maxOffset.y);
|
| + $this._minPoint = new Coordinate(Math.min($this._scrollSize.width - adjusted.width + $this._minOffset.x, $this._maxPoint.x), Math.min($this._scrollSize.height - adjusted.height + $this._minOffset.y, $this._maxPoint.y));
|
| + callback.call$0();
|
| + })
|
| + );
|
| +}
|
| +Scroller.prototype._snapToBounds = function(x, y) {
|
| + var clampX = GoogleMath.clamp(this._minPoint.x, x, this._maxPoint.x);
|
| + var clampY = GoogleMath.clamp(this._minPoint.y, y, this._maxPoint.y);
|
| + return new Coordinate(clampX, clampY);
|
| +}
|
| +Scroller.prototype._setContentOffset = function(x, y) {
|
| + this._contentOffset.x = x;
|
| + this._contentOffset.y = y;
|
| + this._setOffsetFunction.call$3(this._element, x, y);
|
| + this.get$onContentMoved().dispatch(EventWrappingImplementation.EventWrappingImplementation$factory("scroller:content_moved", true, true));
|
| +}
|
| +Scroller.prototype._shouldScrollHorizontally = function() {
|
| + return this.horizontalEnabled && this._scrollSize.width < this._contentSize.width;
|
| +}
|
| +Scroller.prototype._shouldScrollVertically = function() {
|
| + return this.verticalEnabled;
|
| +}
|
| +Scroller.prototype._snapContentOffsetToBounds = function() {
|
| + var clampX = GoogleMath.clamp(this._minPoint.x, this._contentOffset.x, this._maxPoint.x);
|
| + var clampY = GoogleMath.clamp(this._minPoint.y, this._contentOffset.y, this._maxPoint.y);
|
| + if (this._contentOffset.x != clampX || this._contentOffset.y != clampY) {
|
| + this._setContentOffset(clampX, clampY);
|
| + }
|
| +}
|
| +Scroller.prototype._startDeceleration = function(velocity, decelerationFactor) {
|
| + if (!this._shouldScrollHorizontally()) {
|
| + velocity.x = (0);
|
| + }
|
| + if (!this._shouldScrollVertically()) {
|
| + velocity.y = (0);
|
| + }
|
| + return this._momentum.start(velocity, this._minPoint, this._maxPoint, this._contentOffset, decelerationFactor);
|
| +}
|
| +Scroller.prototype.stop = function() {
|
| + return this._momentum.stop();
|
| +}
|
| +Scroller._getOffsetFunction = function(scrollTechnique) {
|
| + return scrollTechnique == (1) ? (function (el, x, y) {
|
| + FxUtil.setTranslate(el, x, y, (0));
|
| + })
|
| + : (function (el, x, y) {
|
| + FxUtil.setLeftAndTop(el, x, y);
|
| + })
|
| + ;
|
| +}
|
| +// ********** Code for ScrollerEventType **************
|
| +function ScrollerEventType() {}
|
| +// ********** Code for SimpleEventListenerList **************
|
| +function SimpleEventListenerList() {
|
| + this._listeners = new Array();
|
| +}
|
| +SimpleEventListenerList.prototype.add = function(handler, useCapture) {
|
| + this._add(handler, useCapture);
|
| + return this;
|
| +}
|
| +SimpleEventListenerList.prototype.remove = function(handler, useCapture) {
|
| + this._remove(handler, useCapture);
|
| + return this;
|
| +}
|
| +SimpleEventListenerList.prototype._add = function(handler, useCapture) {
|
| + this._listeners.add$1(handler);
|
| +}
|
| +SimpleEventListenerList.prototype._remove = function(handler, useCapture) {
|
| + $throw("Not implemented yet.");
|
| +}
|
| +SimpleEventListenerList.prototype.dispatch = function(evt) {
|
| + var $$list = this._listeners;
|
| + for (var $$i = 0;$$i < $$list.get$length(); $$i++) {
|
| + var listener = $$list.$index($$i);
|
| + listener.call$1(evt);
|
| + }
|
| +}
|
| +SimpleEventListenerList.prototype.add$1 = function($0) {
|
| + return this.add(to$call$1($0), false);
|
| +};
|
| +SimpleEventListenerList.prototype.add$2 = function($0, $1) {
|
| + return this.add(to$call$1($0), $1);
|
| +};
|
| +SimpleEventListenerList.prototype.remove$1 = function($0) {
|
| + return this.remove(to$call$1($0), false);
|
| +};
|
| +SimpleEventListenerList.prototype.remove$2 = function($0, $1) {
|
| + return this.remove(to$call$1($0), $1);
|
| +};
|
| +// ********** Code for ScrollerScrollTechnique **************
|
| +function ScrollerScrollTechnique() {}
|
| +// ********** Code for TouchHandler **************
|
| +function TouchHandler(touchable, element) {
|
| + this._recentTouchesX = new Array();
|
| + this._touchable = touchable;
|
| + this._tracking = false;
|
| + this._dragging = false;
|
| + this._totalMoveY = (0);
|
| + this._totalMoveX = (0);
|
| + this._recentTouchesY = new Array();
|
| + this._touching = false;
|
| + this._element = element != null ? element : touchable.getElement();
|
| +}
|
| +TouchHandler.prototype._beginTracking = function() {
|
| + this._tracking = true;
|
| +}
|
| +TouchHandler.prototype._endTracking = function() {
|
| + this._tracking = false;
|
| + this._dragging = false;
|
| + this._totalMoveY = (0);
|
| + this._totalMoveX = (0);
|
| +}
|
| +TouchHandler.prototype._correctVelocity = function(velocity) {
|
| + var absVelocity = velocity.abs();
|
| + if (absVelocity > (5)) {
|
| + absVelocity = this._recentTouchesY.get$length() < (6) ? (1) : (5);
|
| + }
|
| + return absVelocity * (velocity < (0) ? (-1) : (1));
|
| +}
|
| +TouchHandler.prototype.enable = function(capture) {
|
| + var $this = this; // closure support
|
| + var onEnd = (function (e) {
|
| + $this._onEnd(e.get$timeStamp(), e);
|
| + })
|
| + ;
|
| + _addEventListeners(this._element, (function (e) {
|
| + $this._onStart(e);
|
| + })
|
| + , (function (e) {
|
| + $this._onMove(e);
|
| + })
|
| + , to$call$1(onEnd), to$call$1(onEnd), capture);
|
| +}
|
| +TouchHandler.prototype.getDragDeltaX = function() {
|
| + return this._lastTouchX - this._startTouchX;
|
| +}
|
| +TouchHandler.prototype.getDragDeltaY = function() {
|
| + return this._lastTouchY - this._startTouchY;
|
| +}
|
| +TouchHandler.prototype.getEndVelocity = function() {
|
| + var velocityX = (0);
|
| + var velocityY = (0);
|
| + if (this._recentTouchesX.get$length() > (0)) {
|
| + var timeDeltaX = Math.max((1), this._endTime - this._recentTouchesX.$index((1)));
|
| + velocityX = (this._endTouchX - this._recentTouchesX.$index((0))) / timeDeltaX;
|
| + }
|
| + if (this._recentTouchesY.get$length() > (0)) {
|
| + var timeDeltaY = Math.max((1), this._endTime - this._recentTouchesY.$index((1)));
|
| + velocityY = (this._endTouchY - this._recentTouchesY.$index((0))) / timeDeltaY;
|
| + }
|
| + velocityX = this._correctVelocity(velocityX);
|
| + velocityY = this._correctVelocity(velocityY);
|
| + return new Coordinate(velocityX, velocityY);
|
| +}
|
| +TouchHandler.prototype._getLastTouch = function() {
|
| + return this._lastEvent.get$touches().$index((0));
|
| +}
|
| +TouchHandler.prototype._onEnd = function(timeStamp, e) {
|
| + this._touching = false;
|
| + this._touchable.onTouchEnd();
|
| + if (!this._tracking || this._draggable == null) {
|
| + return;
|
| + }
|
| + var touch = this._getLastTouch();
|
| + var clientX = touch.get$clientX();
|
| + var clientY = touch.get$clientY();
|
| + if (this._dragging) {
|
| + this._endTime = timeStamp;
|
| + this._endTouchX = clientX;
|
| + this._endTouchY = clientY;
|
| + this._recentTouchesX = this._removeOldTouches(this._recentTouchesX, timeStamp);
|
| + this._recentTouchesY = this._removeOldTouches(this._recentTouchesY, timeStamp);
|
| + this._draggable.onDragEnd();
|
| + if (e != null) {
|
| + e.preventDefault();
|
| + }
|
| + ClickBuster.preventGhostClick(this._startTouchX, this._startTouchY);
|
| + }
|
| + this._endTracking();
|
| +}
|
| +TouchHandler.prototype._onMove = function(e) {
|
| + if (!this._tracking || this._draggable == null) {
|
| + return;
|
| + }
|
| + var touch = e.get$touches().$index((0));
|
| + var clientX = touch.get$clientX();
|
| + var clientY = touch.get$clientY();
|
| + var moveX = this._lastTouchX - clientX;
|
| + var moveY = this._lastTouchY - clientY;
|
| + this._totalMoveX = this._totalMoveX + moveX.abs();
|
| + this._totalMoveY = this._totalMoveY + moveY.abs();
|
| + this._lastTouchX = clientX;
|
| + this._lastTouchY = clientY;
|
| + if (!this._dragging && ((this._totalMoveY > (2) && this._draggable.verticalEnabled) || (this._totalMoveX > (2) && this._draggable.horizontalEnabled))) {
|
| + this._dragging = this._draggable.onDragStart(e);
|
| + if (!this._dragging) {
|
| + this._endTracking();
|
| + }
|
| + else {
|
| + this._startTouchX = clientX;
|
| + this._startTouchY = clientY;
|
| + this._startTime = e.get$timeStamp();
|
| + }
|
| + }
|
| + if (this._dragging) {
|
| + this._draggable.onDragMove();
|
| + this._lastEvent = e;
|
| + e.preventDefault();
|
| + this._recentTouchesX = this._removeTouchesInWrongDirection(this._recentTouchesX, this._lastMoveX, moveX);
|
| + this._recentTouchesY = this._removeTouchesInWrongDirection(this._recentTouchesY, this._lastMoveY, moveY);
|
| + this._recentTouchesX = this._removeOldTouches(this._recentTouchesX, e.get$timeStamp());
|
| + this._recentTouchesY = this._removeOldTouches(this._recentTouchesY, e.get$timeStamp());
|
| + this._recentTouchesX.add$1(clientX);
|
| + this._recentTouchesX.add$1(e.get$timeStamp());
|
| + this._recentTouchesY.add$1(clientY);
|
| + this._recentTouchesY.add$1(e.get$timeStamp());
|
| + }
|
| + this._lastMoveX = moveX;
|
| + this._lastMoveY = moveY;
|
| +}
|
| +TouchHandler.prototype._onStart = function(e) {
|
| + var $0, $1;
|
| + if (this._touching) {
|
| + return;
|
| + }
|
| + this._touching = true;
|
| + if (!this._touchable.onTouchStart(e) || this._draggable == null) {
|
| + return;
|
| + }
|
| + var touch = e.get$touches().$index((0));
|
| + this._startTouchX = (this._lastTouchX = ($0 = touch.get$clientX()), $0);
|
| + this._startTouchY = (this._lastTouchY = ($1 = touch.get$clientY()), $1);
|
| + this._startTime = e.get$timeStamp();
|
| + this._recentTouchesX = new Array();
|
| + this._recentTouchesY = new Array();
|
| + this._recentTouchesX.add$1(touch.get$clientX());
|
| + this._recentTouchesX.add$1(e.get$timeStamp());
|
| + this._recentTouchesY.add$1(touch.get$clientY());
|
| + this._recentTouchesY.add$1(e.get$timeStamp());
|
| + this._lastEvent = e;
|
| + this._beginTracking();
|
| +}
|
| +TouchHandler.prototype._removeOldTouches = function(recentTouches, recentTime) {
|
| + var count = (0);
|
| + var len = recentTouches.get$length();
|
| + while (count < len && recentTime - recentTouches.$index(count + (1)) > (250) || (len - count) > (10)) {
|
| + count += (2);
|
| + }
|
| + return count == (0) ? recentTouches : TouchHandler._removeFirstN(recentTouches, count);
|
| +}
|
| +TouchHandler._removeFirstN = function(list, n) {
|
| + return list.getRange$2(n, list.get$length() - n);
|
| +}
|
| +TouchHandler.prototype._removeTouchesInWrongDirection = function(recentTouches, lastMove, recentMove) {
|
| + if (lastMove != (0) && recentMove != (0) && recentTouches.get$length() > (2) && TouchHandler._xor(lastMove > (0), recentMove > (0))) {
|
| + return TouchHandler._removeFirstN(recentTouches, recentTouches.get$length() - (2));
|
| + }
|
| + return recentTouches;
|
| +}
|
| +TouchHandler._xor = function(a, b) {
|
| + return (a == true || b == true) && !(a == true && b == true);
|
| +}
|
| +TouchHandler.prototype.setDraggable = function(draggable) {
|
| + this._draggable = draggable;
|
| +}
|
| +// ********** Code for ClickBuster **************
|
| +function ClickBuster() {}
|
| +ClickBuster._onClick = function(e) {
|
| + if (TimeUtil.now() - $globals.ClickBuster__lastPreventedTime > (2500)) {
|
| + return;
|
| + }
|
| + var coord = new Coordinate.fromClient$ctor(e);
|
| + var entry = $globals.ClickBuster__coordinates.firstEntry$0();
|
| + while (entry != null) {
|
| + if (ClickBuster._hitTest(entry.get$element(), entry.nextEntry$0().get$element(), coord.get$x(), coord.get$y())) {
|
| + entry.nextEntry$0().remove$0();
|
| + entry.remove$0();
|
| + return;
|
| + }
|
| + else {
|
| + entry = entry.nextEntry$0().nextEntry$0();
|
| + }
|
| + }
|
| + e.stopPropagation();
|
| + e.preventDefault();
|
| +}
|
| +ClickBuster._onTouchStart = function(e) {
|
| + var te = e;
|
| + var coord = new Coordinate.fromClient$ctor(te.get$touches().$index((0)));
|
| + $globals.ClickBuster__coordinates.add$1(coord.get$x());
|
| + $globals.ClickBuster__coordinates.add$1(coord.get$y());
|
| + html_get$window().setTimeout((function () {
|
| + ClickBuster._removeCoordinate(coord.get$x(), coord.get$y());
|
| + })
|
| + , (2500));
|
| + ClickBuster._toggleTapHighlights(true);
|
| +}
|
| +ClickBuster._hitTest = function(x, y, eventX, eventY) {
|
| + return (eventX - x).abs() < (25) && (eventY - y).abs() < (25);
|
| +}
|
| +ClickBuster._removeCoordinate = function(x, y) {
|
| + var entry = $globals.ClickBuster__coordinates.firstEntry$0();
|
| + while (entry != null) {
|
| + if ($eq(entry.get$element(), x) && $eq(entry.nextEntry$0().get$element(), y)) {
|
| + entry.nextEntry$0().remove$0();
|
| + entry.remove$0();
|
| + return;
|
| + }
|
| + else {
|
| + entry = entry.nextEntry$0().nextEntry$0();
|
| + }
|
| + }
|
| +}
|
| +ClickBuster._toggleTapHighlights = function(enable) {
|
| + html_get$document().get$body().get$style().setProperty("-webkit-tap-highlight-color", enable ? "" : "rgba(0,0,0,0)", "");
|
| +}
|
| +ClickBuster.preventGhostClick = function(x, y) {
|
| + if ($globals.ClickBuster__coordinates == null) {
|
| + html_get$document().get$on().get$click().add((function (e) {
|
| + ClickBuster._onClick(e);
|
| + })
|
| + , true);
|
| + html_get$document().get$on().get$focus().add((function (e) {
|
| + $globals.ClickBuster__lastPreventedTime = (0);
|
| + })
|
| + , true);
|
| + var startFn = (function (e) {
|
| + ClickBuster._onTouchStart(e);
|
| + })
|
| + ;
|
| + if (!Device.get$supportsTouch()) {
|
| + startFn = mouseToTouchCallback(to$call$1(startFn));
|
| + }
|
| + EventUtil.observe(html_get$document(), Device.get$supportsTouch() ? html_get$document().get$on().get$touchStart() : html_get$document().get$on().get$mouseDown(), startFn, true, true);
|
| + $globals.ClickBuster__coordinates = new DoubleLinkedQueue();
|
| + }
|
| + ClickBuster._toggleTapHighlights(false);
|
| + $globals.ClickBuster__lastPreventedTime = TimeUtil.now();
|
| + var entry = $globals.ClickBuster__coordinates.firstEntry$0();
|
| + while (entry != null) {
|
| + if (ClickBuster._hitTest(entry.get$element(), entry.nextEntry$0().get$element(), x, y)) {
|
| + entry.nextEntry$0().remove$0();
|
| + entry.remove$0();
|
| + return;
|
| + }
|
| + else {
|
| + entry = entry.nextEntry$0().nextEntry$0();
|
| + }
|
| + }
|
| +}
|
| +// ********** Code for EventUtil **************
|
| +function EventUtil() {}
|
| +EventUtil.observe = function(element, listenerList, handler, capture, removeHandlerOnFocus) {
|
| + listenerList.add(to$call$1(handler), capture);
|
| + if (removeHandlerOnFocus) {
|
| + element.get$on().get$focus().add$1((function (e) {
|
| + listenerList.remove(to$call$1(handler), capture);
|
| + })
|
| + );
|
| + element.get$on().get$blur().add$1((function (e) {
|
| + listenerList.add(to$call$1(handler), capture);
|
| + })
|
| + );
|
| + }
|
| +}
|
| +// ********** Code for Coordinate **************
|
| +function Coordinate(x, y) {
|
| + this.y = y;
|
| + this.x = x;
|
| +}
|
| +Coordinate.fromClient$ctor = function(input) {
|
| + Coordinate.call(this, input.get$clientX(), input.get$clientY());
|
| +}
|
| +Coordinate.fromClient$ctor.prototype = Coordinate.prototype;
|
| +Coordinate.prototype.get$x = function() { return this.x; };
|
| +Coordinate.prototype.set$x = function(value) { return this.x = value; };
|
| +Coordinate.prototype.get$y = function() { return this.y; };
|
| +Coordinate.prototype.set$y = function(value) { return this.y = value; };
|
| +Coordinate.prototype.$eq = function(other) {
|
| + return other != null && this.x == other.x && this.y == other.y;
|
| +}
|
| +Coordinate.prototype.clone = function() {
|
| + return new Coordinate(this.x, this.y);
|
| +}
|
| +Coordinate.prototype.toString = function() {
|
| + return ("(" + this.x + ", " + this.y + ")");
|
| +}
|
| +Coordinate.prototype.clone$0 = Coordinate.prototype.clone;
|
| +Coordinate.prototype.toString$0 = Coordinate.prototype.toString;
|
| +// ********** Code for Interval **************
|
| +function Interval(start, end) {
|
| + this.start = start;
|
| + this.end = end;
|
| +}
|
| +Interval.prototype.get$start = function() { return this.start; };
|
| +Interval.prototype.get$end = function() { return this.end; };
|
| +Interval.prototype.get$length = function() {
|
| + return this.end - this.start;
|
| +}
|
| +Interval.prototype.$eq = function(other) {
|
| + return other != null && other.start == this.start && other.end == this.end;
|
| +}
|
| +Interval.prototype.union = function(other) {
|
| + return new Interval(Math.min(this.start, other.start), Math.max(this.end, other.end));
|
| +}
|
| +Interval.prototype.contains = function(value) {
|
| + return value >= this.start && value < this.end;
|
| +}
|
| +Interval.prototype.toString = function() {
|
| + return ("(" + this.start + ", " + this.end + ")");
|
| +}
|
| +Interval.prototype.contains$1 = Interval.prototype.contains;
|
| +Interval.prototype.end$0 = function() {
|
| + return this.end.call$0();
|
| +};
|
| +Interval.prototype.start$0 = function() {
|
| + return this.start.call$0();
|
| +};
|
| +Interval.prototype.toString$0 = Interval.prototype.toString;
|
| +// ********** Code for GoogleMath **************
|
| +function GoogleMath() {}
|
| +GoogleMath.clamp = function(value, min, max) {
|
| + return Math.min(Math.max(value, min), max);
|
| +}
|
| +// ********** Code for Scrollbar **************
|
| +function Scrollbar(scroller, displayOnHover) {
|
| + var $this = this; // closure support
|
| + this._scrollInProgress = false;
|
| + this._scrollBarDragInProgressValue = false;
|
| + this._displayOnHover = displayOnHover;
|
| + this._frame = scroller.getFrame();
|
| + this._hovering = false;
|
| + this._scroller = scroller;
|
| + this._cachedSize = new HashMapImplementation();
|
| + this._boundHideFn = (function () {
|
| + $this._showScrollbars(false);
|
| + })
|
| + ;
|
| +}
|
| +Scrollbar.prototype.get$_scrollBarDragInProgress = function() {
|
| + return this._scrollBarDragInProgressValue;
|
| +}
|
| +Scrollbar.prototype.set$_scrollBarDragInProgress = function(value) {
|
| + this._scrollBarDragInProgressValue = value;
|
| + this._toggleClass(this._verticalElement, "drag", value && this._currentScrollVertical);
|
| + this._toggleClass(this._horizontalElement, "drag", value && !this._currentScrollVertical);
|
| +}
|
| +Scrollbar.prototype._toggleClass = function(e, className, enabled) {
|
| + if (enabled) {
|
| + if (!e.get$classes().contains(className)) {
|
| + e.get$classes().add(className);
|
| + }
|
| + }
|
| + else {
|
| + e.get$classes().remove(className);
|
| + }
|
| +}
|
| +Scrollbar.prototype.initialize = function() {
|
| + var $this = this; // closure support
|
| + if (this._verticalElement != null) {
|
| + return;
|
| + }
|
| + this._verticalElement = ElementWrappingImplementation.ElementWrappingImplementation$html$factory("<div class=\"touch-scrollbar touch-scrollbar-vertical\"></div>");
|
| + this._horizontalElement = ElementWrappingImplementation.ElementWrappingImplementation$html$factory("<div class=\"touch-scrollbar touch-scrollbar-horizontal\"></div>");
|
| + this._scroller.addScrollListener(this);
|
| + var scrollerEl = this._scroller.getElement();
|
| + if (!Device.get$supportsTouch()) {
|
| + _addEventListeners(this._verticalElement, this.get$_onStart(), this.get$_onMove(), this.get$_onEnd(), this.get$_onEnd(), true);
|
| + _addEventListeners(this._horizontalElement, this.get$_onStart(), this.get$_onMove(), this.get$_onEnd(), this.get$_onEnd(), true);
|
| + }
|
| + this._scroller.addScrollListener(this);
|
| + this._showScrollbars(false);
|
| + this._scroller.get$onScrollerStart().add(this.get$_onScrollerStart(), false);
|
| + this._scroller.get$onScrollerEnd().add(this.get$_onScrollerEnd(), false);
|
| + if (this._displayOnHover) {
|
| + this._frame.get$on().get$click().add$2((function (e) {
|
| + if (!$this._frame.contains(html_get$document().get$activeElement())) {
|
| + scrollerEl.focus();
|
| + }
|
| + })
|
| + , false);
|
| + this._frame.get$on().get$mouseOver().add$2((function (e) {
|
| + var activeElement = html_get$document().get$activeElement();
|
| + if (!!(activeElement && activeElement.is$BodyElement()) || (!$this._frame.contains(activeElement) && !!(activeElement && activeElement.is$DivElement()))) {
|
| + scrollerEl.focus();
|
| + }
|
| + if ($eq($this._hovering, false)) {
|
| + $this._hovering = true;
|
| + $this._cancelTimeout();
|
| + $this._showScrollbars(true);
|
| + $this.refresh();
|
| + }
|
| + })
|
| + , false);
|
| + this._frame.get$on().get$mouseOut().add$2((function (e) {
|
| + $this._hovering = false;
|
| + if (!$this._scrollInProgress && $this._timerId == null) {
|
| + $this._boundHideFn.call$0();
|
| + }
|
| + })
|
| + , false);
|
| + }
|
| +}
|
| +Scrollbar.prototype._onStart = function(e) {
|
| + var elementOver = e.get$target();
|
| + if ($eq(elementOver, this._verticalElement) || $eq(elementOver, this._horizontalElement)) {
|
| + this._currentScrollVertical = $eq(elementOver, this._verticalElement);
|
| + if (this._currentScrollVertical) {
|
| + this._currentScrollStartMouse = e.get$pageY();
|
| + this._currentScrollStartOffset = this._scroller.getVerticalOffset();
|
| + }
|
| + else {
|
| + this._currentScrollStartMouse = e.get$pageX();
|
| + this._currentScrollStartOffset = this._scroller.getHorizontalOffset();
|
| + }
|
| + this._refreshScrollRatio();
|
| + this.set$_scrollBarDragInProgress(true);
|
| + this._scroller._momentum.abort();
|
| + e.stopPropagation();
|
| + }
|
| +}
|
| +Scrollbar.prototype.get$_onStart = function() {
|
| + return this._onStart.bind(this);
|
| +}
|
| +Scrollbar.prototype._refreshScrollRatio = function() {
|
| + var contentSize = this._scroller._getAdjustedContentSize();
|
| + if (this._currentScrollVertical) {
|
| + this._refreshScrollRatioHelper(this._scroller._scrollSize.height, contentSize.height);
|
| + }
|
| + else {
|
| + this._refreshScrollRatioHelper(this._scroller._scrollSize.width, contentSize.width);
|
| + }
|
| +}
|
| +Scrollbar.prototype._refreshScrollRatioHelper = function(frameSize, contentSize) {
|
| + var frameTravelDistance = frameSize - this._defaultScrollSize(frameSize, contentSize) - (20);
|
| + if (frameTravelDistance < (0.001)) {
|
| + this._currentScrollRatio = (0);
|
| + }
|
| + else {
|
| + this._currentScrollRatio = (contentSize - frameSize) / frameTravelDistance;
|
| + }
|
| +}
|
| +Scrollbar.prototype._onMove = function(e) {
|
| + if (!this.get$_scrollBarDragInProgress()) {
|
| + return;
|
| + }
|
| + this._refreshScrollRatio();
|
| + var coordinate = this._currentScrollVertical ? e.get$pageY() : e.get$pageX();
|
| + var delta = (coordinate - this._currentScrollStartMouse) * this._currentScrollRatio;
|
| + if (delta != (0)) {
|
| + var x;
|
| + var y;
|
| + this._currentScrollStartOffset = this._currentScrollStartOffset - delta;
|
| + if (this._currentScrollVertical) {
|
| + x = this._scroller.getHorizontalOffset();
|
| + y = this._currentScrollStartOffset.toInt();
|
| + }
|
| + else {
|
| + x = this._currentScrollStartOffset.toInt();
|
| + y = this._scroller.getVerticalOffset();
|
| + }
|
| + this._scroller.setPosition(x, y);
|
| + }
|
| + this._currentScrollStartMouse = coordinate;
|
| +}
|
| +Scrollbar.prototype.get$_onMove = function() {
|
| + return this._onMove.bind(this);
|
| +}
|
| +Scrollbar.prototype._onEnd = function(e) {
|
| + this.set$_scrollBarDragInProgress(false);
|
| + this._scroller.get$onScrollerDragEnd().dispatch(EventWrappingImplementation.EventWrappingImplementation$factory("scroller:drag_end", true, true));
|
| +}
|
| +Scrollbar.prototype.get$_onEnd = function() {
|
| + return this._onEnd.bind(this);
|
| +}
|
| +Scrollbar.prototype._onScrollerEnd = function(e) {
|
| + this._cancelTimeout();
|
| + this._timerId = html_get$window().setTimeout(to$call$0(this._boundHideFn), (300));
|
| + this._scrollInProgress = false;
|
| +}
|
| +Scrollbar.prototype.get$_onScrollerEnd = function() {
|
| + return this._onScrollerEnd.bind(this);
|
| +}
|
| +Scrollbar.prototype.onScrollerMoved = function(scrollX, scrollY, decelerating) {
|
| + if ($eq(this._scrollInProgress, false)) {
|
| + this._onScrollerStart(null);
|
| + this._onScrollerEnd(null);
|
| + }
|
| + this.updateScrollbars(scrollX, scrollY);
|
| +}
|
| +Scrollbar.prototype.refresh = function() {
|
| + var $this = this; // closure support
|
| + if ($eq(this._scrollInProgress, false) && $eq(this._hovering, false)) {
|
| + return;
|
| + }
|
| + this._scroller._resize((function () {
|
| + $this.updateScrollbars($this._scroller.getHorizontalOffset(), $this._scroller.getVerticalOffset());
|
| + })
|
| + );
|
| +}
|
| +Scrollbar.prototype.updateScrollbars = function(scrollX, scrollY) {
|
| + var contentSize = this._scroller._getAdjustedContentSize();
|
| + if (this._scroller._shouldScrollHorizontally()) {
|
| + var scrollPercentX = this._scroller.getHorizontalScrollPercent(scrollX);
|
| + this._updateScrollbar(this._horizontalElement, scrollX, scrollPercentX, this._scroller._scrollSize.width, contentSize.width, "right", "width");
|
| + }
|
| + if (this._scroller._shouldScrollVertically()) {
|
| + var scrollPercentY = this._scroller.getVerticalScrollPercent(scrollY);
|
| + this._updateScrollbar(this._verticalElement, scrollY, scrollPercentY, this._scroller._scrollSize.height, contentSize.height, "bottom", "height");
|
| + }
|
| +}
|
| +Scrollbar.prototype._onScrollerStart = function(e) {
|
| + this._scrollInProgress = true;
|
| + this._cancelTimeout();
|
| + this._showScrollbars(true);
|
| +}
|
| +Scrollbar.prototype.get$_onScrollerStart = function() {
|
| + return this._onScrollerStart.bind(this);
|
| +}
|
| +Scrollbar.prototype._cancelTimeout = function() {
|
| + if (this._timerId != null) {
|
| + html_get$window().clearTimeout(this._timerId);
|
| + this._timerId = null;
|
| + }
|
| +}
|
| +Scrollbar.prototype._showScrollbars = function(show) {
|
| + if ($eq(this._hovering, true) && this._displayOnHover) {
|
| + show = true;
|
| + }
|
| + this._toggleOpacity(this._verticalElement, show);
|
| + this._toggleOpacity(this._horizontalElement, show);
|
| +}
|
| +Scrollbar.prototype._toggleOpacity = function(element, show) {
|
| + if (show) {
|
| + element.get$style().removeProperty("opacity");
|
| + }
|
| + else {
|
| + element.get$style().set$opacity("0");
|
| + }
|
| +}
|
| +Scrollbar.prototype._defaultScrollSize = function(frameSize, contentSize) {
|
| + return GoogleMath.clamp((frameSize - (20)) * frameSize / contentSize, (30), frameSize - (20));
|
| +}
|
| +Scrollbar.prototype._updateScrollbar = function(element, offset, scrollPercent, frameSize, contentSize, cssPos, cssSize) {
|
| + if (!this._cachedSize.containsKey(cssSize)) {
|
| + if (offset == null || contentSize < frameSize) {
|
| + return;
|
| + }
|
| + this._frame.get$nodes().add$1(element);
|
| + }
|
| + var stretchPercent;
|
| + if (scrollPercent > (1)) {
|
| + stretchPercent = scrollPercent - (1);
|
| + }
|
| + else {
|
| + stretchPercent = scrollPercent < (0) ? -scrollPercent : (0);
|
| + }
|
| + var scrollPx = stretchPercent * (contentSize - frameSize);
|
| + var maxSize = this._defaultScrollSize(frameSize, contentSize);
|
| + var size = Math.max((8), maxSize - scrollPx);
|
| + var maxOffset = frameSize - size - (20);
|
| + var pos = GoogleMath.clamp(scrollPercent * maxOffset, (0), maxOffset) + (10);
|
| + pos = pos.round();
|
| + size = size.round();
|
| + var style = element.get$style();
|
| + style.setProperty$3(cssPos, ("" + pos + "px"), "");
|
| + if ($ne(this._cachedSize.$index(cssSize), size)) {
|
| + this._cachedSize.$setindex(cssSize, size);
|
| + style.setProperty$3(cssSize, ("" + size + "px"), "");
|
| + }
|
| + if (element.get$parent() == null) {
|
| + this._frame.get$nodes().add$1(element);
|
| + }
|
| +}
|
| +Scrollbar.prototype.onScrollerMoved$3 = Scrollbar.prototype.onScrollerMoved;
|
| +// ********** Code for ScrollWatcher **************
|
| +function ScrollWatcher(scroller) {
|
| + this._scroller = scroller;
|
| + this._listeners = new Array();
|
| +}
|
| +ScrollWatcher.prototype.addListener = function(listener) {
|
| + this._listeners.add$1(listener);
|
| +}
|
| +ScrollWatcher.prototype._dispatchScroll = function(scrollX, scrollY, decelerating) {
|
| + var $$list = this._listeners;
|
| + for (var $$i = 0;$$i < $$list.get$length(); $$i++) {
|
| + var listener = $$list.$index($$i);
|
| + listener.onScrollerMoved$3(scrollX, scrollY, decelerating);
|
| + }
|
| +}
|
| +ScrollWatcher.prototype.initialize = function() {
|
| + var $this = this; // closure support
|
| + this._scrollerEl = this._scroller.getElement();
|
| + this._scroller.get$onContentMoved().add((function (e) {
|
| + $this._onContentMoved(e);
|
| + })
|
| + , false);
|
| +}
|
| +ScrollWatcher.prototype._onContentMoved = function(e) {
|
| + var scrollX = this._scroller.getHorizontalOffset();
|
| + var scrollY = this._scroller.getVerticalOffset();
|
| + this._dispatchScroll(scrollX, scrollY, false);
|
| +}
|
| +// ********** Code for TimeUtil **************
|
| +function TimeUtil() {}
|
| +TimeUtil.now = function() {
|
| + return new DateImplementation.now$ctor().value;
|
| +}
|
| +// ********** Code for MockTouch **************
|
| +function MockTouch(wrapped) {
|
| + this.wrapped = wrapped;
|
| +}
|
| +MockTouch.prototype.get$clientX = function() {
|
| + return this.wrapped.get$clientX();
|
| +}
|
| +MockTouch.prototype.get$clientY = function() {
|
| + return this.wrapped.get$clientY();
|
| +}
|
| +MockTouch.prototype.get$pageX = function() {
|
| + return this.wrapped.get$pageX();
|
| +}
|
| +MockTouch.prototype.get$pageY = function() {
|
| + return this.wrapped.get$pageY();
|
| +}
|
| +MockTouch.prototype.get$target = function() {
|
| + return this.wrapped.get$target();
|
| +}
|
| +// ********** Code for MockTouchEvent **************
|
| +function MockTouchEvent(wrapped, touches, targetTouches, changedTouches) {
|
| + this.targetTouches = targetTouches;
|
| + this.touches = touches;
|
| + this.changedTouches = changedTouches;
|
| + this.wrapped = wrapped;
|
| +}
|
| +MockTouchEvent.prototype.get$touches = function() { return this.touches; };
|
| +MockTouchEvent.prototype.get$changedTouches = function() { return this.changedTouches; };
|
| +MockTouchEvent.prototype.get$target = function() {
|
| + return this.wrapped.get$target();
|
| +}
|
| +MockTouchEvent.prototype.get$timeStamp = function() {
|
| + return this.wrapped.get$timeStamp();
|
| +}
|
| +MockTouchEvent.prototype.get$type = function() {
|
| + return this.wrapped.get$type();
|
| +}
|
| +MockTouchEvent.prototype.preventDefault = function() {
|
| + this.wrapped.preventDefault();
|
| +}
|
| +MockTouchEvent.prototype.stopPropagation = function() {
|
| + this.wrapped.stopPropagation();
|
| +}
|
| +MockTouchEvent.prototype.get$keyCode = function() {
|
| + return this.wrapped.get$keyCode();
|
| +}
|
| +MockTouchEvent.prototype.get$pageX = function() {
|
| + return this.wrapped.get$pageX();
|
| +}
|
| +MockTouchEvent.prototype.get$pageY = function() {
|
| + return this.wrapped.get$pageY();
|
| +}
|
| +MockTouchEvent.prototype.get$view = function() {
|
| + return this.wrapped.get$view();
|
| +}
|
| +MockTouchEvent.prototype.preventDefault$0 = MockTouchEvent.prototype.preventDefault;
|
| +MockTouchEvent.prototype.stopPropagation$0 = MockTouchEvent.prototype.stopPropagation;
|
| +MockTouchEvent.prototype.timeStamp$0 = function() {
|
| + return this.get$timeStamp().call$0();
|
| +};
|
| +// ********** Code for top level **************
|
| +function joinFutures(futures, callback) {
|
| + var count = (0);
|
| + var len = futures.get$length();
|
| + function helper(value) {
|
| + count++;
|
| + if (count == len) {
|
| + callback.call$0();
|
| + }
|
| + }
|
| + for (var $$i = 0;$$i < futures.get$length(); $$i++) {
|
| + var p = futures.$index($$i);
|
| + p.then(helper);
|
| + }
|
| +}
|
| +function mouseToTouchCallback(callback) {
|
| + return (function (e) {
|
| + var touches = [];
|
| + var targetTouches = [];
|
| + var changedTouches = [];
|
| + var mockTouch = new MockTouch(e);
|
| + var mockTouchList = [mockTouch];
|
| + if (e.get$type() == "mouseup") {
|
| + changedTouches = mockTouchList;
|
| + }
|
| + else {
|
| + touches = mockTouchList;
|
| + targetTouches = mockTouchList;
|
| + }
|
| + callback.call$1(new MockTouchEvent(e, touches, targetTouches, changedTouches));
|
| + e.preventDefault();
|
| + })
|
| + ;
|
| +}
|
| +function _addEventListeners(node, onStart, onMove, onEnd, onCancel, capture) {
|
| + var removeListeners;
|
| + function onEndWrapper(e) {
|
| + removeListeners.call$0();
|
| + return onEnd.call$1(e);
|
| + }
|
| + function onLeaveWrapper(e) {
|
| + removeListeners.call$0();
|
| + return onEnd.call$1(e);
|
| + }
|
| + function onCancelWrapper(e) {
|
| + removeListeners.call$0();
|
| + return onCancel.call$1(e);
|
| + }
|
| + if (Device.get$supportsTouch()) {
|
| + removeListeners = (function () {
|
| + html_get$document().get$on().get$touchMove().remove(onMove, capture);
|
| + html_get$document().get$on().get$touchEnd().remove(onEndWrapper, capture);
|
| + html_get$document().get$on().get$touchLeave().remove(onLeaveWrapper, capture);
|
| + html_get$document().get$on().get$touchCancel().remove(onCancelWrapper, capture);
|
| + })
|
| + ;
|
| + node.get$on().get$touchStart().add$2((function (e) {
|
| + html_get$document().get$on().get$touchMove().add(onMove, capture);
|
| + html_get$document().get$on().get$touchEnd().add(onEndWrapper, capture);
|
| + html_get$document().get$on().get$touchLeave().add(onLeaveWrapper, capture);
|
| + html_get$document().get$on().get$touchCancel().add(onCancelWrapper, capture);
|
| + return onStart.call$1(e);
|
| + })
|
| + , capture);
|
| + }
|
| + else {
|
| + onStart = mouseToTouchCallback(onStart);
|
| + onMove = mouseToTouchCallback(onMove);
|
| + onEnd = mouseToTouchCallback(onEnd);
|
| + removeListeners = (function () {
|
| + html_get$document().get$on().get$mouseMove().remove(onMove, capture);
|
| + html_get$document().get$on().get$mouseUp().remove(onEndWrapper, capture);
|
| + html_get$document().get$on().get$touchCancel().remove(onCancelWrapper, capture);
|
| + })
|
| + ;
|
| + node.get$on().get$mouseDown().add$2((function (e) {
|
| + html_get$document().get$on().get$mouseMove().add(onMove, capture);
|
| + html_get$document().get$on().get$mouseUp().add(onEndWrapper, capture);
|
| + html_get$document().get$on().get$touchCancel().add(onCancelWrapper, capture);
|
| + return onStart.call$1(e);
|
| + })
|
| + , capture);
|
| + }
|
| +}
|
| +// ********** Library layout.dart **************
|
| +// ********** Code for ViewLayout **************
|
| +function ViewLayout(view) {
|
| + this.view = view;
|
| +}
|
| +ViewLayout.ViewLayout$fromView$factory = function(view) {
|
| + if (ViewLayout.hasCustomLayout(view)) {
|
| + return new GridLayout(view);
|
| + }
|
| + else {
|
| + return new ViewLayout(view);
|
| + }
|
| +}
|
| +ViewLayout.prototype.get$layoutParams = function() { return this.layoutParams; };
|
| +ViewLayout.prototype.set$layoutParams = function(value) { return this.layoutParams = value; };
|
| +ViewLayout.prototype.get$view = function() { return this.view; };
|
| +ViewLayout.hasCustomLayout = function(view) {
|
| + return $eq(view.customStyle.$index("display"), "-dart-grid");
|
| +}
|
| +ViewLayout.prototype.get$_style = function() {
|
| + return this.layoutParams.style.get$value();
|
| +}
|
| +ViewLayout.prototype.cacheExistingBrowserLayout = function() {
|
| + this._cachedViewRect = this.view.get$node().get$rect();
|
| +}
|
| +ViewLayout.prototype.get$currentWidth = function() {
|
| + return this._cachedViewRect.get$value().get$offset().get$width();
|
| +}
|
| +ViewLayout.prototype.get$currentHeight = function() {
|
| + return this._cachedViewRect.get$value().get$offset().get$height();
|
| +}
|
| +ViewLayout.prototype.get$borderLeftWidth = function() {
|
| + return ViewLayout._toPixels(this.get$_style().get$borderLeftWidth());
|
| +}
|
| +ViewLayout.prototype.get$borderTopWidth = function() {
|
| + return ViewLayout._toPixels(this.get$_style().get$borderTopWidth());
|
| +}
|
| +ViewLayout.prototype.get$borderRightWidth = function() {
|
| + return ViewLayout._toPixels(this.get$_style().get$borderRightWidth());
|
| +}
|
| +ViewLayout.prototype.get$borderBottomWidth = function() {
|
| + return ViewLayout._toPixels(this.get$_style().get$borderBottomWidth());
|
| +}
|
| +ViewLayout.prototype.get$borderWidth = function() {
|
| + return this.get$borderLeftWidth() + this.get$borderRightWidth();
|
| +}
|
| +ViewLayout.prototype.get$borderHeight = function() {
|
| + return this.get$borderTopWidth() + this.get$borderBottomWidth();
|
| +}
|
| +ViewLayout.prototype.measureLayout = function(size, changed) {
|
| +
|
| +}
|
| +ViewLayout.prototype.setBounds = function(left, top, width, height) {
|
| + this._measuredLeft = left;
|
| + this._measuredTop = top;
|
| + this._measuredWidth = width - this.get$borderWidth();
|
| + this._measuredHeight = height - this.get$borderHeight();
|
| + var completer = new CompleterImpl();
|
| + completer.complete$1(new Size(this._measuredWidth, this._measuredHeight));
|
| + this.measureLayout(completer.get$future(), null);
|
| +}
|
| +ViewLayout.prototype.applyLayout = function() {
|
| + if (this._measuredLeft != null) {
|
| + var style = this.view.get$node().get$style();
|
| + style.set$position("absolute");
|
| + style.set$left(("" + this._measuredLeft + "px"));
|
| + style.set$top(("" + this._measuredTop + "px"));
|
| + style.set$width(("" + this._measuredWidth + "px"));
|
| + style.set$height(("" + this._measuredHeight + "px"));
|
| + style.set$zIndex(("" + this.layoutParams.get$layer()));
|
| + this._measuredLeft = null;
|
| + this._measuredTop = null;
|
| + this._measuredWidth = null;
|
| + this._measuredHeight = null;
|
| + if (!ViewLayout.hasCustomLayout(this.view)) {
|
| + var $$list = this.view.get$childViews();
|
| + for (var $$i = $$list.iterator$0(); $$i.hasNext$0(); ) {
|
| + var child = $$i.next$0();
|
| + child.doLayout$0();
|
| + }
|
| + }
|
| + }
|
| +}
|
| +ViewLayout.prototype.measureContent = function(parent, dimension, mode) {
|
| + switch (dimension) {
|
| + case const$0021:
|
| +
|
| + return this.measureWidth(parent, mode);
|
| +
|
| + case const$0023:
|
| +
|
| + return this.measureHeight(parent, mode);
|
| +
|
| + }
|
| +}
|
| +ViewLayout.prototype.measureWidth = function(parent, mode) {
|
| + var style = this.layoutParams.style.get$value();
|
| + switch (mode) {
|
| + case const$0026:
|
| +
|
| + return ViewLayout._styleToPixels(style.get$minWidth(), this.get$currentWidth(), parent.get$currentWidth());
|
| +
|
| + case const$0027:
|
| +
|
| + return ViewLayout._styleToPixels(style.get$maxWidth(), this.get$currentWidth(), parent.get$currentWidth());
|
| +
|
| + }
|
| +}
|
| +ViewLayout.prototype.measureHeight = function(parent, mode) {
|
| + var style = this.layoutParams.style.get$value();
|
| + switch (mode) {
|
| + case const$0026:
|
| +
|
| + return ViewLayout._styleToPixels(style.get$minHeight(), this.get$currentHeight(), parent.get$currentHeight());
|
| +
|
| + case const$0027:
|
| +
|
| + return ViewLayout._styleToPixels(style.get$maxHeight(), this.get$currentHeight(), parent.get$currentHeight());
|
| +
|
| + }
|
| +}
|
| +ViewLayout._toPixels = function(style) {
|
| + if (style.endsWith("px")) {
|
| + return Math.parseInt(style.substring((0), style.length - (2)));
|
| + }
|
| + else {
|
| + $throw(new UnsupportedOperationException(("Unknown min/max content size format: \"" + style + "\"")));
|
| + }
|
| +}
|
| +ViewLayout._styleToPixels = function(style, size, parentSize) {
|
| + if (style == "none") {
|
| + return size;
|
| + }
|
| + if (style.endsWith("%")) {
|
| + var percent = Math.parseDouble(style.substring((0), style.length - (1)));
|
| + return ((percent / (100)) * parentSize).toInt();
|
| + }
|
| + return ViewLayout._toPixels(style);
|
| +}
|
| +ViewLayout.prototype.applyLayout$0 = ViewLayout.prototype.applyLayout;
|
| +ViewLayout.prototype.cacheExistingBrowserLayout$0 = ViewLayout.prototype.cacheExistingBrowserLayout;
|
| +ViewLayout.prototype.measureContent$3 = ViewLayout.prototype.measureContent;
|
| +ViewLayout.prototype.setBounds$4 = ViewLayout.prototype.setBounds;
|
| +// ********** Code for GridLayout **************
|
| +$inherits(GridLayout, ViewLayout);
|
| +function GridLayout(view) {
|
| + this.rows = _GridTrackParser.parse(view.customStyle.$index("grid-rows"));
|
| + this.rowSizing = _GridTrackParser.parseTrackSizing(view.customStyle.$index("grid-row-sizing"));
|
| + this.template = _GridTemplateParser.parse(view.customStyle.$index("grid-template"));
|
| + this.columnSizing = _GridTrackParser.parseTrackSizing(view.customStyle.$index("grid-column-sizing"));
|
| + this.columns = _GridTrackParser.parse(view.customStyle.$index("grid-columns"));
|
| + ViewLayout.call(this, view);
|
| + this._rowTracks = this.rows != null ? this.rows.tracks : new Array();
|
| + this._columnTracks = this.columns != null ? this.columns.tracks : new Array();
|
| +}
|
| +GridLayout.prototype.get$currentWidth = function() {
|
| + return this._gridWidth;
|
| +}
|
| +GridLayout.prototype.get$currentHeight = function() {
|
| + return this._gridHeight;
|
| +}
|
| +GridLayout.prototype.cacheExistingBrowserLayout = function() {
|
| +
|
| +}
|
| +GridLayout.prototype.measureLayout = function(size, changed) {
|
| + var $this = this; // closure support
|
| + this._ensureAllTracks();
|
| + html_get$window().requestLayoutFrame((function () {
|
| + $this._gridWidth = size.get$value().get$width();
|
| + $this._gridHeight = size.get$value().get$height();
|
| + if ($this._rowTracks.get$length() > (0) && $this._columnTracks.get$length() > (0)) {
|
| + $this._measureTracks();
|
| + $this._setBoundsOfChildren();
|
| + if (changed != null) {
|
| + changed.complete(true);
|
| + }
|
| + }
|
| + })
|
| + );
|
| +}
|
| +GridLayout.prototype._measureTracks = function() {
|
| + try {
|
| + this._dimension = const$0021;
|
| + this._computeUsedBreadthOfTracks(this._columnTracks);
|
| + this._dimension = const$0023;
|
| + this._computeUsedBreadthOfTracks(this._rowTracks);
|
| + } finally {
|
| + this._dimension = null;
|
| + }
|
| +}
|
| +GridLayout.prototype._getRemainingSpace = function(tracks) {
|
| + var remaining = this._getGridContentSize();
|
| + remaining -= CollectionUtils.sum(tracks, (function (t) {
|
| + return t.get$usedBreadth();
|
| + })
|
| + );
|
| + return Math.max((0), remaining);
|
| +}
|
| +GridLayout.prototype._computeUsedBreadthOfTracks = function(tracks) {
|
| + var $this = this; // closure support
|
| + var items = CollectionUtils.map(this.view.get$childViews(), (function (view_) {
|
| + return view_.get$layout();
|
| + })
|
| + );
|
| + CollectionUtils.sortBy(items, (function (item) {
|
| + return $this._getSpanCount(item);
|
| + })
|
| + );
|
| + for (var $$i = 0;$$i < tracks.get$length(); $$i++) {
|
| + var t = tracks.$index($$i);
|
| + t.set$usedBreadth(t.get$minSizing().resolveLength$1(this._getGridContentSize()));
|
| + t.set$maxBreadth(t.get$maxSizing().resolveLength$1(this._getGridContentSize()));
|
| + t.set$updatedBreadth((0));
|
| + }
|
| + var USED_BREADTH = const$0024;
|
| + var MAX_BREADTH = const$0025;
|
| + this._distributeSpaceBySpanCount(items, const$0026, USED_BREADTH);
|
| + this._distributeSpaceBySpanCount(items, const$0027, USED_BREADTH);
|
| + for (var $$i = 0;$$i < tracks.get$length(); $$i++) {
|
| + var t = tracks.$index($$i);
|
| + if (t.get$maxBreadth() < t.get$usedBreadth()) {
|
| + t.set$maxBreadth(t.get$usedBreadth());
|
| + }
|
| + }
|
| + this._distributeSpaceBySpanCount(items, const$0026, MAX_BREADTH);
|
| + this._distributeSpaceBySpanCount(items, const$0027, MAX_BREADTH);
|
| + this._distributeSpaceToTracks(tracks, this._getRemainingSpace(tracks), USED_BREADTH, false);
|
| + for (var $$i = 0;$$i < tracks.get$length(); $$i++) {
|
| + var t = tracks.$index($$i);
|
| + t.set$usedBreadth(t.get$updatedBreadth());
|
| + }
|
| + var tempBreadth = this._calcNormalizedFractionBreadth(tracks);
|
| + for (var $$i = 0;$$i < tracks.get$length(); $$i++) {
|
| + var t = tracks.$index($$i);
|
| + t.set$usedBreadth(Math.max(t.get$usedBreadth(), tempBreadth * t.get$maxSizing().get$fractionValue()));
|
| + }
|
| + this._computeTrackPositions(tracks);
|
| +}
|
| +GridLayout.prototype._computeTrackPositions = function(tracks) {
|
| + var position = (0);
|
| + for (var $$i = 0;$$i < tracks.get$length(); $$i++) {
|
| + var t = tracks.$index($$i);
|
| + t.set$start(position);
|
| + position = position + t.get$usedBreadth();
|
| + }
|
| + var finalPosition = position;
|
| + for (var i = (0);
|
| + i < tracks.get$length(); i++) {
|
| + var startEdge = tracks.$index(i).get$start();
|
| + var endEdge = null;
|
| + if (i < tracks.get$length() - (1)) {
|
| + endEdge = tracks.$index(i + (1)).get$start().round$0().toInt$0();
|
| + tracks.$index(i + (1)).set$start(endEdge);
|
| + }
|
| + else {
|
| + endEdge = finalPosition.round().toInt();
|
| + }
|
| + var breadth = endEdge - startEdge;
|
| + tracks.$index(i).set$usedBreadth(breadth);
|
| + }
|
| +}
|
| +GridLayout.prototype._calcNormalizedFractionBreadth = function(tracks) {
|
| + var fractionTracks = tracks.filter$1((function (t) {
|
| + return t.get$maxSizing().get$isFraction();
|
| + })
|
| + );
|
| + for (var $$i = fractionTracks.iterator$0(); $$i.hasNext$0(); ) {
|
| + var t = $$i.next$0();
|
| + t.set$tempBreadth(t.get$usedBreadth() / t.get$maxSizing().get$fractionValue());
|
| + }
|
| + CollectionUtils.sortBy(fractionTracks, (function (t) {
|
| + return t.get$tempBreadth();
|
| + })
|
| + );
|
| + var spaceNeededFromFractionTracks = this._getRemainingSpace(tracks);
|
| + var currentBandFractionBreadth = (0);
|
| + var accumulatedFractions = (0);
|
| + for (var $$i = fractionTracks.iterator$0(); $$i.hasNext$0(); ) {
|
| + var t = $$i.next$0();
|
| + if ($ne(t.get$tempBreadth(), currentBandFractionBreadth)) {
|
| + if (t.get$tempBreadth() * accumulatedFractions > spaceNeededFromFractionTracks) {
|
| + break;
|
| + }
|
| + currentBandFractionBreadth = t.get$tempBreadth();
|
| + }
|
| + accumulatedFractions = accumulatedFractions + t.get$maxSizing().get$fractionValue();
|
| + spaceNeededFromFractionTracks = spaceNeededFromFractionTracks + t.get$usedBreadth();
|
| + }
|
| + return spaceNeededFromFractionTracks / accumulatedFractions;
|
| +}
|
| +GridLayout.prototype._distributeSpaceToTracks = function(tracks, freeSpace, breadth, ignoreMaxBreadth) {
|
| + var $0;
|
| + tracks = CollectionUtils.orderBy(tracks, (function (t) {
|
| + return t.get$maxBreadth() - breadth.getSize(t);
|
| + })
|
| + );
|
| + for (var i = (0);
|
| + i < tracks.get$length(); i++) {
|
| + var share = freeSpace / (tracks.get$length() - i);
|
| + share = Math.min(share, tracks.$index(i).get$maxBreadth());
|
| + tracks.$index(i).set$tempBreadth(share);
|
| + freeSpace -= share;
|
| + }
|
| + if (freeSpace > (0) && ignoreMaxBreadth) {
|
| + for (var i = (0);
|
| + i < tracks.get$length(); i++) {
|
| + var share = freeSpace / (tracks.get$length() - i);
|
| + ($0 = tracks.$index(i)).set$tempBreadth($add($0.get$tempBreadth(), share));
|
| + freeSpace = freeSpace - share;
|
| + }
|
| + }
|
| + for (var $$i = 0;$$i < tracks.get$length(); $$i++) {
|
| + var t = tracks.$index($$i);
|
| + t.set$updatedBreadth(Math.max(t.get$updatedBreadth(), t.get$tempBreadth()));
|
| + }
|
| +}
|
| +GridLayout.prototype._distributeSpaceBySpanCount = function(items, sizeMode, breadth) {
|
| + var $this = this; // closure support
|
| + items = items.filter$1((function (item) {
|
| + return GridLayout._hasContentSizedTracks($this._getTracks(item), sizeMode, breadth);
|
| + })
|
| + );
|
| + var tracks = [];
|
| + for (var i = (0);
|
| + i < items.get$length(); i++) {
|
| + var item = items.$index(i);
|
| + var itemTargetSize = item.measureContent$3(this, this._dimension, sizeMode);
|
| + var spannedTracks = this._getTracks(item);
|
| + this._distributeSpaceToTracks(spannedTracks, itemTargetSize, breadth, true);
|
| + tracks.addAll$1(spannedTracks);
|
| + var spanCountFinished = false;
|
| + if (i + (1) == items.get$length()) {
|
| + spanCountFinished = true;
|
| + }
|
| + else if (this._getSpanCount(item) != this._getSpanCount(items.$index(i + (1)))) {
|
| + spanCountFinished = true;
|
| + }
|
| + if (spanCountFinished) {
|
| + for (var $$i = tracks.iterator$0(); $$i.hasNext$0(); ) {
|
| + var t = $$i.next$0();
|
| + breadth.setSize(t, Math.max(breadth.getSize(t), t.get$updatedBreadth()));
|
| + }
|
| + tracks = [];
|
| + }
|
| + }
|
| +}
|
| +GridLayout._hasContentSizedTracks = function(tracks, sizeMode, breadth) {
|
| + for (var $$i = tracks.iterator$0(); $$i.hasNext$0(); ) {
|
| + var t = $$i.next$0();
|
| + var fn = breadth.getSizingFunction(t);
|
| + if ($eq(sizeMode, const$0027) && fn.get$isMaxContentSized() || $eq(sizeMode, const$0026) && fn.get$isContentSized()) {
|
| + return tracks.get$length() == (1) || !tracks.some((function (t_) {
|
| + return t_.get$isFractional();
|
| + })
|
| + );
|
| + }
|
| + }
|
| + return false;
|
| +}
|
| +GridLayout.prototype._ensureTrack = function(tracks, sizing, start, span) {
|
| + start -= (1);
|
| + var length = start + span;
|
| + var first = Math.min(start, tracks.get$length());
|
| + tracks.set$length(Math.max(tracks.get$length(), length));
|
| + for (var i = first;
|
| + i < length; i++) {
|
| + if (tracks.$index(i) == null) {
|
| + tracks.$setindex(i, new GridTrack(sizing));
|
| + }
|
| + }
|
| +}
|
| +GridLayout.prototype._ensureAllTracks = function() {
|
| + var items = CollectionUtils.map(this.view.get$childViews(), (function (view_) {
|
| + return view_.get$layout();
|
| + })
|
| + );
|
| + for (var $$i = items.iterator$0(); $$i.hasNext$0(); ) {
|
| + var child = $$i.next$0();
|
| + if (child.get$layoutParams() == null) {
|
| + var p = new GridLayoutParams(child.get$view(), this);
|
| + this._ensureTrack(this._rowTracks, this.rowSizing, p.get$row(), p.get$rowSpan());
|
| + this._ensureTrack(this._columnTracks, this.columnSizing, p.get$column(), p.get$columnSpan());
|
| + child.set$layoutParams(p);
|
| + }
|
| + child.cacheExistingBrowserLayout$0();
|
| + }
|
| +}
|
| +GridLayout.prototype._setBoundsOfChildren = function() {
|
| + var items = CollectionUtils.map(this.view.get$childViews(), (function (view_) {
|
| + return view_.get$layout();
|
| + })
|
| + );
|
| + for (var $$i = items.iterator$0(); $$i.hasNext$0(); ) {
|
| + var item = $$i.next$0();
|
| + var childLayout = item.get$layoutParams();
|
| + var xPos = this._getTrackLocationX(childLayout);
|
| + var yPos = this._getTrackLocationY(childLayout);
|
| + var left = xPos.get$start(), width = xPos.get$length();
|
| + var top = yPos.get$start(), height = yPos.get$length();
|
| + xPos = childLayout.columnAlign.align(xPos, item.get$currentWidth());
|
| + yPos = childLayout.rowAlign.align(yPos, item.get$currentHeight());
|
| + item.setBounds$4(xPos.get$start(), yPos.get$start(), xPos.get$length(), yPos.get$length());
|
| + }
|
| +}
|
| +GridLayout.prototype._getGridContentSize = function() {
|
| + switch (this._dimension) {
|
| + case const$0021:
|
| +
|
| + return this._gridWidth;
|
| +
|
| + case const$0023:
|
| +
|
| + return this._gridHeight;
|
| +
|
| + }
|
| +}
|
| +GridLayout.prototype._getTrackLocationX = function(childLayout) {
|
| + var start = childLayout.column - (1);
|
| + var end = start + childLayout.columnSpan - (1);
|
| + start = this._columnTracks.$index(start).get$start();
|
| + end = this._columnTracks.$index(end).get$end();
|
| + return new _GridLocation(start, end - start);
|
| +}
|
| +GridLayout.prototype._getTrackLocationY = function(childLayout) {
|
| + var start = childLayout.row - (1);
|
| + var end = start + childLayout.rowSpan - (1);
|
| + start = this._rowTracks.$index(start).get$start();
|
| + end = this._rowTracks.$index(end).get$end();
|
| + return new _GridLocation(start, end - start);
|
| +}
|
| +GridLayout.prototype._getTracks = function(item) {
|
| + var childLayout = item.layoutParams;
|
| + var start, span;
|
| + var tracks;
|
| + switch (this._dimension) {
|
| + case const$0021:
|
| +
|
| + start = childLayout.column - (1);
|
| + span = childLayout.columnSpan;
|
| + tracks = this._columnTracks;
|
| + break;
|
| +
|
| + case const$0023:
|
| +
|
| + start = childLayout.row - (1);
|
| + span = childLayout.rowSpan;
|
| + tracks = this._rowTracks;
|
| +
|
| + }
|
| + var result = new Array(span);
|
| + for (var i = (0);
|
| + i < span; i++) {
|
| + result.$setindex(i, tracks.$index(start + i));
|
| + }
|
| + return result;
|
| +}
|
| +GridLayout.prototype._getSpanCount = function(item) {
|
| + var childLayout = item.layoutParams;
|
| + return ($eq(this._dimension, const$0021) ? childLayout.columnSpan : childLayout.rowSpan);
|
| +}
|
| +GridLayout.prototype.cacheExistingBrowserLayout$0 = GridLayout.prototype.cacheExistingBrowserLayout;
|
| +// ********** Code for LayoutParams **************
|
| +function LayoutParams(node) {
|
| + this.style = node.get$computedStyle();
|
| +}
|
| +LayoutParams.prototype.get$style = function() { return this.style; };
|
| +LayoutParams.prototype.set$style = function(value) { return this.style = value; };
|
| +LayoutParams.prototype.get$layer = function() {
|
| + return (0);
|
| +}
|
| +// ********** Code for GridLayoutParams **************
|
| +$inherits(GridLayoutParams, LayoutParams);
|
| +function GridLayoutParams(view, layout) {
|
| + LayoutParams.call(this, view.get$node());
|
| + this.rowAlign = new GridItemAlignment.fromString$ctor(view.customStyle.$index("grid-row-align"));
|
| + this.columnAlign = new GridItemAlignment.fromString$ctor(view.customStyle.$index("grid-column-align"));
|
| + this.layer = StringUtils.parseInt(view.customStyle.$index("grid-layer"), (0));
|
| + this.rowSpan = StringUtils.parseInt(view.customStyle.$index("grid-row-span"));
|
| + this.columnSpan = StringUtils.parseInt(view.customStyle.$index("grid-column-span"));
|
| + var line = _GridItemParser.parse(view.customStyle.$index("grid-row"), layout.rows);
|
| + if (line != null) {
|
| + this.row = line.get$start();
|
| + if (line.get$length() != null) {
|
| + if (this.rowSpan != null) {
|
| + $throw(new UnsupportedOperationException("grid-row-span cannot be with grid-row that defines an end"));
|
| + }
|
| + this.rowSpan = line.get$length();
|
| + }
|
| + }
|
| + line = _GridItemParser.parse(view.customStyle.$index("grid-column"), layout.columns);
|
| + if (line != null) {
|
| + this.column = line.get$start();
|
| + if (line.get$length() != null) {
|
| + if (this.columnSpan != null) {
|
| + $throw(new UnsupportedOperationException("grid-column-span cannot be with grid-column that defines an end"));
|
| + }
|
| + this.columnSpan = line.get$length();
|
| + }
|
| + }
|
| + var cell = _GridTemplateParser.parseCell(view.customStyle.$index("grid-cell"));
|
| + if (cell != null && cell != "none") {
|
| + if (this.row != null || this.column != null || this.rowSpan != null || this.columnSpan != null) {
|
| + $throw(new UnsupportedOperationException("grid-cell cannot be used with grid-row and grid-column"));
|
| + }
|
| + if (layout.template == null) {
|
| + $throw(new UnsupportedOperationException("grid-cell requires that grid-template is set on the parent"));
|
| + }
|
| + var rect = layout.template.lookupCell(cell);
|
| + this.row = rect.get$row();
|
| + this.column = rect.get$column();
|
| + this.rowSpan = rect.get$rowSpan();
|
| + this.columnSpan = rect.get$columnSpan();
|
| + }
|
| + else {
|
| + if (this.rowSpan == null) this.rowSpan = (1);
|
| + if (this.columnSpan == null) this.columnSpan = (1);
|
| + if (this.row == null && this.column == null) {
|
| + $throw(new UnsupportedOperationException("grid-flow is not implemented so at least one row or one column must be defined"));
|
| + }
|
| + if (this.row == null) this.row = (1);
|
| + if (this.column == null) this.column = (1);
|
| + }
|
| +}
|
| +GridLayoutParams.prototype.get$row = function() { return this.row; };
|
| +GridLayoutParams.prototype.set$row = function(value) { return this.row = value; };
|
| +GridLayoutParams.prototype.get$column = function() { return this.column; };
|
| +GridLayoutParams.prototype.set$column = function(value) { return this.column = value; };
|
| +GridLayoutParams.prototype.get$rowSpan = function() { return this.rowSpan; };
|
| +GridLayoutParams.prototype.set$rowSpan = function(value) { return this.rowSpan = value; };
|
| +GridLayoutParams.prototype.get$columnSpan = function() { return this.columnSpan; };
|
| +GridLayoutParams.prototype.set$columnSpan = function(value) { return this.columnSpan = value; };
|
| +GridLayoutParams.prototype.get$layer = function() { return this.layer; };
|
| +GridLayoutParams.prototype.set$layer = function(value) { return this.layer = value; };
|
| +// ********** Code for _Parser **************
|
| +function _Parser(_src) {
|
| + this._src = _src;
|
| + this._offset = (0);
|
| +}
|
| +_Parser._isWhitespace = function(c) {
|
| + switch (c) {
|
| + case (32):
|
| + case (9):
|
| + case (10):
|
| + case (13):
|
| +
|
| + return true;
|
| +
|
| + }
|
| + return false;
|
| +}
|
| +_Parser._isDigit = function(c) {
|
| + return ((48) <= c) && (c <= (57));
|
| +}
|
| +_Parser._isLetter = function(c) {
|
| + return ((97) <= c) && (c <= (122)) || ((65) <= c) && (c <= (90));
|
| +}
|
| +_Parser.prototype._error = function(msg) {
|
| + $throw(new SyntaxErrorException(msg, this._src, this._offset));
|
| +}
|
| +_Parser.prototype.get$length = function() {
|
| + return this._src.length;
|
| +}
|
| +_Parser.prototype.get$remaining = function() {
|
| + return this._src.length - this._offset;
|
| +}
|
| +_Parser.prototype._peekChar = function() {
|
| + return this._src.charCodeAt(this._offset);
|
| +}
|
| +_Parser.prototype.get$endOfInput = function() {
|
| + return this._offset >= this._src.length;
|
| +}
|
| +_Parser.prototype._maybeEatWhitespace = function() {
|
| + var start = this._offset;
|
| + while (this._offset < this.get$length() && _Parser._isWhitespace(this._peekChar())) {
|
| + this._offset++;
|
| + }
|
| + return this._offset != start;
|
| +}
|
| +_Parser.prototype._maybeEatMultiLineComment = function() {
|
| + if (this._maybeEat("/*", false)) {
|
| + while (!this._maybeEat("*/", false)) {
|
| + if (this._offset >= this.get$length()) {
|
| + this._error("expected */");
|
| + }
|
| + this._offset++;
|
| + }
|
| + return true;
|
| + }
|
| + return false;
|
| +}
|
| +_Parser.prototype._maybeEatWhitespaceOrComments = function() {
|
| + while (this._maybeEatWhitespace() || this._maybeEatMultiLineComment()) {
|
| + }
|
| +}
|
| +_Parser.prototype._eatEnd = function() {
|
| + this._maybeEatWhitespaceOrComments();
|
| + if (!this.get$endOfInput()) {
|
| + this._error("expected end of input");
|
| + }
|
| +}
|
| +_Parser.prototype._maybeEat = function(value, eatWhitespace) {
|
| + if (eatWhitespace) {
|
| + this._maybeEatWhitespaceOrComments();
|
| + }
|
| + if (this.get$remaining() < value.length) {
|
| + return false;
|
| + }
|
| + for (var i = (0);
|
| + i < value.length; i++) {
|
| + if (this._src[this._offset + i] != value[i]) {
|
| + return false;
|
| + }
|
| + }
|
| + if (_Parser._isLetter(value.charCodeAt(value.length - (1)))) {
|
| + var i = this._offset + value.length;
|
| + if (i < this._src.length && _Parser._isLetter(this._src.charCodeAt(i))) {
|
| + return false;
|
| + }
|
| + }
|
| + this._offset = this._offset + value.length;
|
| + return true;
|
| +}
|
| +_Parser.prototype._eat = function(value, eatWhitespace) {
|
| + if (!this._maybeEat(value, true)) {
|
| + this._error(("expected \"" + value + "\""));
|
| + }
|
| +}
|
| +_Parser.prototype._maybeEatString = function() {
|
| + var quote = "'";
|
| + if (!this._maybeEat(quote, true)) {
|
| + quote = "\"";
|
| + if (!this._maybeEat(quote, true)) {
|
| + return null;
|
| + }
|
| + }
|
| + var hasEscape = false;
|
| + var start = this._offset;
|
| + while (!this._maybeEat(quote, true)) {
|
| + if (this.get$endOfInput()) {
|
| + this._error(("expected \"" + quote + "\""));
|
| + }
|
| + if (this._maybeEat("\\", true)) {
|
| + hasEscape = true;
|
| + }
|
| + this._offset++;
|
| + }
|
| + var result = this._src.substring(start, this._offset - (1));
|
| + if (hasEscape) {
|
| + result = result.replaceFirst("\\", "");
|
| + }
|
| + return result;
|
| +}
|
| +_Parser.prototype._eatWord = function() {
|
| + var start = this._offset;
|
| + while (this._offset < this.get$length() && _Parser._isLetter(this._peekChar())) {
|
| + this._offset++;
|
| + }
|
| + return this._src.substring(start, this._offset);
|
| +}
|
| +_Parser.prototype._maybeEatInt = function() {
|
| + var start = this._offset;
|
| + var dot = false;
|
| + while (this._offset < this.get$length() && _Parser._isDigit(this._peekChar())) {
|
| + this._offset++;
|
| + }
|
| + if (start == this._offset) {
|
| + return null;
|
| + }
|
| + return Math.parseInt(this._src.substring(start, this._offset));
|
| +}
|
| +_Parser.prototype._eatInt = function() {
|
| + var result = this._maybeEatInt();
|
| + if (result == null) {
|
| + this._error("expected positive integer");
|
| + }
|
| + return result;
|
| +}
|
| +_Parser.prototype._eatDouble = function() {
|
| + var start = this._offset;
|
| + var dot = false;
|
| + while (this._offset < this.get$length()) {
|
| + var c = this._peekChar();
|
| + if (!_Parser._isDigit(c)) {
|
| + if (c == (46) && !dot) {
|
| + dot = true;
|
| + }
|
| + else {
|
| + break;
|
| + }
|
| + }
|
| + this._offset++;
|
| + }
|
| + if (start == this._offset) {
|
| + this._error("expected positive decimal number");
|
| + }
|
| + return Math.parseDouble(this._src.substring(start, this._offset));
|
| +}
|
| +_Parser.prototype._eatEnd$0 = _Parser.prototype._eatEnd;
|
| +_Parser.prototype._maybeEatString$0 = _Parser.prototype._maybeEatString;
|
| +// ********** Code for _GridTemplateParser **************
|
| +$inherits(_GridTemplateParser, _Parser);
|
| +function _GridTemplateParser() {}
|
| +_GridTemplateParser._internal$ctor = function(src) {
|
| + _Parser.call(this, src);
|
| +}
|
| +_GridTemplateParser._internal$ctor.prototype = _GridTemplateParser.prototype;
|
| +_GridTemplateParser.parse = function(str) {
|
| + if (str == null) return null;
|
| + var p = new _GridTemplateParser._internal$ctor(str);
|
| + var result = p._parseTemplate$0();
|
| + p._eatEnd$0();
|
| + return result;
|
| +}
|
| +_GridTemplateParser.parseCell = function(str) {
|
| + if (str == null) return null;
|
| + var p = new _GridTemplateParser._internal$ctor(str);
|
| + var result = p._maybeEatString$0();
|
| + p._eatEnd$0();
|
| + return result;
|
| +}
|
| +_GridTemplateParser.prototype._parseTemplate = function() {
|
| + if (this._maybeEat("none", true)) {
|
| + return null;
|
| + }
|
| + var rows = new Array();
|
| + var row;
|
| + while ((row = this._maybeEatString()) != null) {
|
| + rows.add$1(row);
|
| + }
|
| + if ($eq(rows.get$length(), (0))) {
|
| + this._error("expected at least one cell, or \"none\"");
|
| + }
|
| + return new GridTemplate(rows);
|
| +}
|
| +_GridTemplateParser.prototype._parseTemplate$0 = _GridTemplateParser.prototype._parseTemplate;
|
| +// ********** Code for _GridItemParser **************
|
| +$inherits(_GridItemParser, _Parser);
|
| +function _GridItemParser() {}
|
| +_GridItemParser._internal$ctor = function(src) {
|
| + _Parser.call(this, src);
|
| +}
|
| +_GridItemParser._internal$ctor.prototype = _GridItemParser.prototype;
|
| +_GridItemParser.parse = function(cell, list) {
|
| + if (cell == null) return null;
|
| + var p = new _GridItemParser._internal$ctor(cell);
|
| + var result = p._parseTrack$1(list);
|
| + p._eatEnd$0();
|
| + return result;
|
| +}
|
| +_GridItemParser.prototype._parseTrack = function(list) {
|
| + if (this._maybeEat("auto", true)) {
|
| + return null;
|
| + }
|
| + var start = this._maybeParseLine(list);
|
| + if (start == null) {
|
| + this._error("expected row/column number or name");
|
| + }
|
| + var end = this._maybeParseLine(list);
|
| + var span = null;
|
| + if (end != null) {
|
| + span = end - start;
|
| + if (span <= (0)) {
|
| + this._error("expected row/column span to be a positive integer");
|
| + }
|
| + }
|
| + return new _GridLocation(start, span);
|
| +}
|
| +_GridItemParser.prototype._maybeParseLine = function(list) {
|
| + if (this._maybeEat("start", true)) {
|
| + return (1);
|
| + }
|
| + else if (this._maybeEat("end", true)) {
|
| + return list.tracks.get$length() + (1);
|
| + }
|
| + var name = this._maybeEatString();
|
| + if (name == null) {
|
| + return this._maybeEatInt();
|
| + }
|
| + else {
|
| + var edge = list.lineNames.$index(name);
|
| + if (edge == null) {
|
| + this._error(("row/column name \"" + name + "\" not found in the parent's ") + " grid-row/grid-columns properties");
|
| + }
|
| + return edge;
|
| + }
|
| +}
|
| +_GridItemParser.prototype._parseTrack$1 = _GridItemParser.prototype._parseTrack;
|
| +// ********** Code for _GridTrackParser **************
|
| +$inherits(_GridTrackParser, _Parser);
|
| +function _GridTrackParser() {}
|
| +_GridTrackParser._internal$ctor = function(src) {
|
| + this._tracks = new Array();
|
| + this._lineNames = new HashMapImplementation();
|
| + _Parser.call(this, src);
|
| +}
|
| +_GridTrackParser._internal$ctor.prototype = _GridTrackParser.prototype;
|
| +_GridTrackParser.parse = function(str) {
|
| + if (str == null) return null;
|
| + var p = new _GridTrackParser._internal$ctor(str);
|
| + var result = p._parseTrackList$0();
|
| + p._eatEnd$0();
|
| + return result;
|
| +}
|
| +_GridTrackParser.parseTrackSizing = function(str) {
|
| + if (str == null) str = "auto";
|
| + var p = new _GridTrackParser._internal$ctor(str);
|
| + var result = p._parseTrackMinmax$0();
|
| + p._eatEnd$0();
|
| + return result;
|
| +}
|
| +_GridTrackParser.prototype._parseTrackList = function() {
|
| + if (this._maybeEat("none", true)) {
|
| + return null;
|
| + }
|
| + this._parseTrackListHelper();
|
| + return new GridTrackList(this._tracks, this._lineNames);
|
| +}
|
| +_GridTrackParser.prototype._parseTrackListHelper = function(resultTracks) {
|
| + this._maybeEatWhitespace();
|
| + while (!this.get$endOfInput()) {
|
| + var name = null;
|
| + while ((name = this._maybeEatString()) != null) {
|
| + this._lineNames.$setindex(name, this._tracks.get$length() + (1));
|
| + }
|
| + this._maybeEatWhitespace();
|
| + if (this.get$endOfInput()) {
|
| + return;
|
| + }
|
| + if (resultTracks != null) {
|
| + if (this._peekChar() == (41)) {
|
| + return;
|
| + }
|
| + resultTracks.add$1(new GridTrack(this._parseTrackMinmax()));
|
| + }
|
| + else {
|
| + this._parseTrackGroup();
|
| + }
|
| + this._maybeEatWhitespace();
|
| + }
|
| +}
|
| +_GridTrackParser.prototype._parseTrackGroup = function() {
|
| + if (this._maybeEat("(", true)) {
|
| + var tracks = new Array();
|
| + this._parseTrackListHelper(tracks);
|
| + this._eat(")", true);
|
| + if (this._maybeEat("[", true)) {
|
| + var expand = this._eatInt();
|
| + this._eat("]", true);
|
| + if (expand <= (0)) {
|
| + this._error("expected positive number");
|
| + }
|
| + for (var i = (0);
|
| + i < expand; i++) {
|
| + for (var $$i = tracks.iterator$0(); $$i.hasNext$0(); ) {
|
| + var t = $$i.next$0();
|
| + this._tracks.add$1(t.clone());
|
| + }
|
| + }
|
| + }
|
| + }
|
| + else {
|
| + this._tracks.add$1(new GridTrack(this._parseTrackMinmax()));
|
| + }
|
| +}
|
| +_GridTrackParser.prototype._parseTrackMinmax = function() {
|
| + if (this._maybeEat("auto", true) || this._maybeEat("fit-content", true)) {
|
| + return const$0019;
|
| + }
|
| + if (this._maybeEat("minmax(", true)) {
|
| + var min = this._parseTrackBreadth();
|
| + this._eat(",", true);
|
| + var max = this._parseTrackBreadth();
|
| + this._eat(")", true);
|
| + return new TrackSizing(min, max);
|
| + }
|
| + else {
|
| + var breadth = this._parseTrackBreadth();
|
| + return new TrackSizing(breadth, breadth);
|
| + }
|
| +}
|
| +_GridTrackParser.prototype._parseTrackBreadth = function() {
|
| + if (this._maybeEat("min-content", true)) {
|
| + return const$0017;
|
| + }
|
| + else if (this._maybeEat("max-content", true)) {
|
| + return const$0018;
|
| + }
|
| + var value = this._eatDouble();
|
| + var units;
|
| + if (this._maybeEat("%", true)) {
|
| + units = "%";
|
| + }
|
| + else {
|
| + units = this._eatWord();
|
| + }
|
| + if (units == "fr") {
|
| + return new FractionSizing(value);
|
| + }
|
| + else {
|
| + return new FixedSizing(value, units);
|
| + }
|
| +}
|
| +_GridTrackParser.prototype._parseTrackList$0 = _GridTrackParser.prototype._parseTrackList;
|
| +_GridTrackParser.prototype._parseTrackMinmax$0 = _GridTrackParser.prototype._parseTrackMinmax;
|
| +// ********** Code for SyntaxErrorException **************
|
| +function SyntaxErrorException(_message, _source, _offset) {
|
| + this._layout_dart_message = _message;
|
| + this._offset = _offset;
|
| + this._source = _source;
|
| +}
|
| +SyntaxErrorException.prototype.toString = function() {
|
| + var location;
|
| + if (this._offset < this._source.length) {
|
| + location = "location: " + this._source.substring(this._offset);
|
| + }
|
| + else {
|
| + location = "end of input";
|
| + }
|
| + return ("SyntaxErrorException: " + this._layout_dart_message + " at " + location);
|
| +}
|
| +SyntaxErrorException.prototype.toString$0 = SyntaxErrorException.prototype.toString;
|
| +// ********** Code for GridTrackList **************
|
| +function GridTrackList(tracks, lineNames) {
|
| + this.tracks = tracks;
|
| + this.lineNames = lineNames;
|
| +}
|
| +// ********** Code for GridTrack **************
|
| +function GridTrack(sizing) {
|
| + this.sizing = sizing;
|
| +}
|
| +GridTrack.prototype.get$start = function() { return this.start; };
|
| +GridTrack.prototype.set$start = function(value) { return this.start = value; };
|
| +GridTrack.prototype.get$usedBreadth = function() { return this.usedBreadth; };
|
| +GridTrack.prototype.set$usedBreadth = function(value) { return this.usedBreadth = value; };
|
| +GridTrack.prototype.get$maxBreadth = function() { return this.maxBreadth; };
|
| +GridTrack.prototype.set$maxBreadth = function(value) { return this.maxBreadth = value; };
|
| +GridTrack.prototype.get$updatedBreadth = function() { return this.updatedBreadth; };
|
| +GridTrack.prototype.set$updatedBreadth = function(value) { return this.updatedBreadth = value; };
|
| +GridTrack.prototype.get$tempBreadth = function() { return this.tempBreadth; };
|
| +GridTrack.prototype.set$tempBreadth = function(value) { return this.tempBreadth = value; };
|
| +GridTrack.prototype.clone = function() {
|
| + return new GridTrack(this.sizing.clone());
|
| +}
|
| +GridTrack.prototype.get$minSizing = function() {
|
| + return this.sizing.min;
|
| +}
|
| +GridTrack.prototype.get$maxSizing = function() {
|
| + return this.sizing.max;
|
| +}
|
| +GridTrack.prototype.get$end = function() {
|
| + return this.start + this.usedBreadth;
|
| +}
|
| +GridTrack.prototype.get$isFractional = function() {
|
| + return this.get$minSizing().get$isFraction() || this.get$maxSizing().get$isFraction();
|
| +}
|
| +GridTrack.prototype.clone$0 = GridTrack.prototype.clone;
|
| +GridTrack.prototype.end$0 = function() {
|
| + return this.get$end().call$0();
|
| +};
|
| +GridTrack.prototype.start$0 = function() {
|
| + return this.start.call$0();
|
| +};
|
| +// ********** Code for GridItemAlignment **************
|
| +function GridItemAlignment() {}
|
| +GridItemAlignment.fromString$ctor = function(value) {
|
| + this.value = (value == null) ? "stretch" : value;
|
| + switch (this.value) {
|
| + case "start":
|
| + case "end":
|
| + case "center":
|
| + case "stretch":
|
| +
|
| + break;
|
| +
|
| + default:
|
| +
|
| + $throw(new UnsupportedOperationException(("invalid row/column alignment \"" + value + "\"")));
|
| +
|
| + }
|
| +}
|
| +GridItemAlignment.fromString$ctor.prototype = GridItemAlignment.prototype;
|
| +GridItemAlignment.prototype.get$value = function() { return this.value; };
|
| +GridItemAlignment.prototype.align = function(span, size) {
|
| + switch (this.value) {
|
| + case "start":
|
| +
|
| + return new _GridLocation(span.start, size);
|
| +
|
| + case "end":
|
| +
|
| + return new _GridLocation(span.get$end() - size, size);
|
| +
|
| + case "center":
|
| +
|
| + size = Math.min(size, span.length);
|
| + var center = span.start + span.length / (2);
|
| + var left = center - size / (2);
|
| + return new _GridLocation(left.round().toInt(), size);
|
| +
|
| + case "stretch":
|
| +
|
| + return span;
|
| +
|
| + }
|
| +}
|
| +// ********** Code for GridTemplate **************
|
| +function GridTemplate(rows) {
|
| + this._rects = new HashMapImplementation();
|
| + this._numRows = rows.get$length();
|
| + this._buildRects(rows);
|
| +}
|
| +GridTemplate.prototype._buildRects = function(templateRows) {
|
| + for (var r = (0);
|
| + r < templateRows.get$length(); r++) {
|
| + var row = templateRows.$index(r);
|
| + for (var c = (0);
|
| + c < row.length; c++) {
|
| + var cell = row.charCodeAt(c);
|
| + var rect = this._rects.$index(cell);
|
| + if (rect != null) {
|
| + rect.add$2(r + (1), c + (1));
|
| + }
|
| + else {
|
| + this._rects.$setindex(cell, new _GridTemplateRect(cell, r + (1), c + (1)));
|
| + }
|
| + }
|
| + }
|
| + var $$list = this._rects.getValues$0();
|
| + for (var $$i = $$list.iterator$0(); $$i.hasNext$0(); ) {
|
| + var rect = $$i.next$0();
|
| + rect.checkValid$0();
|
| + }
|
| +}
|
| +GridTemplate.prototype.lookupCell = function(cell) {
|
| + if (cell.length != (1)) {
|
| + $throw(new UnsupportedOperationException(("grid-cell \"" + cell + "\" must be a one character string")));
|
| + }
|
| + var rect = this._rects.$index(cell.charCodeAt((0)));
|
| + if (rect == null) {
|
| + $throw(new UnsupportedOperationException(("grid-cell \"" + cell + "\" not found in parent's grid-template")));
|
| + }
|
| + return rect;
|
| +}
|
| +// ********** Code for _GridTemplateRect **************
|
| +function _GridTemplateRect(_char, row, column) {
|
| + this._count = (1);
|
| + this.columnSpan = (1);
|
| + this.row = row;
|
| + this._char = _char;
|
| + this.column = column;
|
| + this.rowSpan = (1);
|
| +}
|
| +_GridTemplateRect.prototype.get$column = function() { return this.column; };
|
| +_GridTemplateRect.prototype.set$column = function(value) { return this.column = value; };
|
| +_GridTemplateRect.prototype.get$columnSpan = function() { return this.columnSpan; };
|
| +_GridTemplateRect.prototype.set$columnSpan = function(value) { return this.columnSpan = value; };
|
| +_GridTemplateRect.prototype.get$row = function() { return this.row; };
|
| +_GridTemplateRect.prototype.set$row = function(value) { return this.row = value; };
|
| +_GridTemplateRect.prototype.get$rowSpan = function() { return this.rowSpan; };
|
| +_GridTemplateRect.prototype.set$rowSpan = function(value) { return this.rowSpan = value; };
|
| +_GridTemplateRect.prototype.add = function(r, c) {
|
| + this._count++;
|
| + this.rowSpan = Math.max(this.rowSpan, r - this.row + (1));
|
| + this.columnSpan = Math.max(this.columnSpan, c - this.column + (1));
|
| +}
|
| +_GridTemplateRect.prototype.checkValid = function() {
|
| + var expected = this.rowSpan * this.columnSpan;
|
| + if (expected != this._count) {
|
| + var cell = Strings.String$fromCharCodes$factory([this._char]);
|
| + $throw(new UnsupportedOperationException(("grid-template \"" + cell + "\"") + (" is not square, expected " + expected + " cells but got " + this._count)));
|
| + }
|
| +}
|
| +_GridTemplateRect.prototype.add$2 = _GridTemplateRect.prototype.add;
|
| +_GridTemplateRect.prototype.checkValid$0 = _GridTemplateRect.prototype.checkValid;
|
| +// ********** Code for _GridLocation **************
|
| +function _GridLocation(start, length) {
|
| + this.start = start;
|
| + this.length = length;
|
| +}
|
| +_GridLocation.prototype.get$length = function() { return this.length; };
|
| +_GridLocation.prototype.get$start = function() { return this.start; };
|
| +_GridLocation.prototype.get$end = function() {
|
| + return this.start + this.length;
|
| +}
|
| +_GridLocation.prototype.end$0 = function() {
|
| + return this.get$end().call$0();
|
| +};
|
| +_GridLocation.prototype.start$0 = function() {
|
| + return this.start.call$0();
|
| +};
|
| +// ********** Code for SizingFunction **************
|
| +function SizingFunction() {
|
| +
|
| +}
|
| +SizingFunction.prototype.get$isContentSized = function() {
|
| + return this.get$isMinContentSized() || this.get$isMaxContentSized();
|
| +}
|
| +SizingFunction.prototype.get$isMinContentSized = function() {
|
| + return false;
|
| +}
|
| +SizingFunction.prototype.get$isMaxContentSized = function() {
|
| + return false;
|
| +}
|
| +SizingFunction.prototype.get$isFraction = function() {
|
| + return false;
|
| +}
|
| +SizingFunction.prototype.resolveLength = function(gridSize) {
|
| + return (0);
|
| +}
|
| +SizingFunction.prototype.get$fractionValue = function() {
|
| + return (0);
|
| +}
|
| +SizingFunction.prototype.clone = function() {
|
| + return this;
|
| +}
|
| +SizingFunction.prototype.clone$0 = SizingFunction.prototype.clone;
|
| +SizingFunction.prototype.resolveLength$1 = SizingFunction.prototype.resolveLength;
|
| +// ********** Code for FixedSizing **************
|
| +$inherits(FixedSizing, SizingFunction);
|
| +function FixedSizing(length, units) {
|
| + this._contentSized = false;
|
| + this.units = units;
|
| + this.length = length;
|
| + SizingFunction.call(this);
|
| + if (this.units != "px" && this.units != "%") {
|
| + $throw(new UnsupportedOperationException("Units other than px and %"));
|
| + }
|
| +}
|
| +FixedSizing.prototype.get$length = function() { return this.length; };
|
| +FixedSizing.prototype.clone = function() {
|
| + return new FixedSizing(this.length, this.units);
|
| +}
|
| +FixedSizing.prototype.get$isMinContentSized = function() {
|
| + return this._contentSized;
|
| +}
|
| +FixedSizing.prototype.resolveLength = function(gridSize) {
|
| + if (this.units == "%") {
|
| + if (gridSize == null) {
|
| + this._contentSized = true;
|
| + return (0);
|
| + }
|
| + this._contentSized = false;
|
| + return (this.length / (100)) * gridSize;
|
| + }
|
| + else {
|
| + return this.length;
|
| + }
|
| +}
|
| +FixedSizing.prototype.toString = function() {
|
| + return ("FixedSizing: " + this.length + this.units + " " + this._contentSized);
|
| +}
|
| +FixedSizing.prototype.clone$0 = FixedSizing.prototype.clone;
|
| +FixedSizing.prototype.resolveLength$1 = FixedSizing.prototype.resolveLength;
|
| +FixedSizing.prototype.toString$0 = FixedSizing.prototype.toString;
|
| +// ********** Code for FractionSizing **************
|
| +$inherits(FractionSizing, SizingFunction);
|
| +function FractionSizing(fractionValue) {
|
| + this.fractionValue = fractionValue;
|
| + SizingFunction.call(this);
|
| +}
|
| +FractionSizing.prototype.get$fractionValue = function() { return this.fractionValue; };
|
| +FractionSizing.prototype.get$isFraction = function() {
|
| + return true;
|
| +}
|
| +FractionSizing.prototype.toString = function() {
|
| + return ("FixedSizing: " + this.fractionValue + "fr");
|
| +}
|
| +FractionSizing.prototype.toString$0 = FractionSizing.prototype.toString;
|
| +// ********** Code for MinContentSizing **************
|
| +$inherits(MinContentSizing, SizingFunction);
|
| +function MinContentSizing() {
|
| + SizingFunction.call(this);
|
| +}
|
| +MinContentSizing.prototype.get$isMinContentSized = function() {
|
| + return true;
|
| +}
|
| +MinContentSizing.prototype.toString = function() {
|
| + return "MinContentSizing";
|
| +}
|
| +MinContentSizing.prototype.toString$0 = MinContentSizing.prototype.toString;
|
| +// ********** Code for MaxContentSizing **************
|
| +$inherits(MaxContentSizing, SizingFunction);
|
| +function MaxContentSizing() {
|
| + SizingFunction.call(this);
|
| +}
|
| +MaxContentSizing.prototype.get$isMaxContentSized = function() {
|
| + return true;
|
| +}
|
| +MaxContentSizing.prototype.toString = function() {
|
| + return "MaxContentSizing";
|
| +}
|
| +MaxContentSizing.prototype.toString$0 = MaxContentSizing.prototype.toString;
|
| +// ********** Code for TrackSizing **************
|
| +function TrackSizing(min, max) {
|
| + this.min = min;
|
| + this.max = max;
|
| +}
|
| +TrackSizing.auto$ctor = function() {
|
| + this.min = const$0017;
|
| + this.max = const$0018;
|
| +}
|
| +TrackSizing.auto$ctor.prototype = TrackSizing.prototype;
|
| +TrackSizing.prototype.clone = function() {
|
| + return new TrackSizing(this.min.clone$0(), this.max.clone$0());
|
| +}
|
| +TrackSizing.prototype.clone$0 = TrackSizing.prototype.clone;
|
| +// ********** Code for _UsedBreadthAccumulator **************
|
| +function _UsedBreadthAccumulator() {
|
| +
|
| +}
|
| +_UsedBreadthAccumulator.prototype.setSize = function(t, value) {
|
| + t.usedBreadth = value;
|
| +}
|
| +_UsedBreadthAccumulator.prototype.getSize = function(t) {
|
| + return t.usedBreadth;
|
| +}
|
| +_UsedBreadthAccumulator.prototype.getSizingFunction = function(t) {
|
| + return t.get$minSizing();
|
| +}
|
| +// ********** Code for _MaxBreadthAccumulator **************
|
| +function _MaxBreadthAccumulator() {
|
| +
|
| +}
|
| +_MaxBreadthAccumulator.prototype.setSize = function(t, value) {
|
| + t.maxBreadth = value;
|
| +}
|
| +_MaxBreadthAccumulator.prototype.getSize = function(t) {
|
| + return t.maxBreadth;
|
| +}
|
| +_MaxBreadthAccumulator.prototype.getSizingFunction = function(t) {
|
| + return t.get$maxSizing();
|
| +}
|
| +// ********** Code for Dimension **************
|
| +function Dimension() {}
|
| +Dimension._internal$ctor = function(name) {
|
| + this.name = name;
|
| +}
|
| +Dimension._internal$ctor.prototype = Dimension.prototype;
|
| +Dimension.prototype.get$name = function() { return this.name; };
|
| +// ********** Code for ContentSizeMode **************
|
| +function ContentSizeMode() {}
|
| +ContentSizeMode._internal$ctor = function(name) {
|
| + this.name = name;
|
| +}
|
| +ContentSizeMode._internal$ctor.prototype = ContentSizeMode.prototype;
|
| +ContentSizeMode.prototype.get$name = function() { return this.name; };
|
| +// ********** Code for top level **************
|
| +// ********** Library view **************
|
| +// ********** Code for View **************
|
| +function View() {
|
| + this.customStyle = new HashMapImplementation();
|
| +}
|
| +View.fromNode$ctor = function(_node) {
|
| + this._node = _node;
|
| + this.customStyle = new HashMapImplementation();
|
| +}
|
| +View.fromNode$ctor.prototype = View.prototype;
|
| +View.html$ctor = function(html) {
|
| + this._node = ElementWrappingImplementation.ElementWrappingImplementation$html$factory(html);
|
| + this.customStyle = new HashMapImplementation();
|
| +}
|
| +View.html$ctor.prototype = View.prototype;
|
| +View.prototype.get$node = function() {
|
| + if (this._node == null) {
|
| + this._render();
|
| + }
|
| + return this._node;
|
| +}
|
| +View.prototype.get$childViews = function() {
|
| + return const$0016;
|
| +}
|
| +View.prototype.childViewAdded = function(child) {
|
| + if (this.get$isInDocument()) {
|
| + child._enterDocument();
|
| + this.doLayout();
|
| + }
|
| +}
|
| +View.prototype.childViewRemoved = function(child) {
|
| + if (this.get$isInDocument()) {
|
| + child._exitDocument();
|
| + }
|
| +}
|
| +View.prototype.get$isRendered = function() {
|
| + return this._node != null;
|
| +}
|
| +View.prototype.get$isInDocument = function() {
|
| + return this._node != null && this.get$node().get$document().contains(this.get$node());
|
| +}
|
| +View.prototype.addToDocument = function(parentNode) {
|
| + this._render();
|
| + parentNode.get$nodes().add$1(this._node);
|
| + this._hookGlobalLayoutEvents();
|
| + this._enterDocument();
|
| +}
|
| +View.prototype.render = function() {
|
| + $throw("abstract");
|
| +}
|
| +View.prototype.afterRender = function(node) {
|
| +
|
| +}
|
| +View.prototype.enterDocument = function() {
|
| +
|
| +}
|
| +View.prototype.exitDocument = function() {
|
| +
|
| +}
|
| +View.prototype.windowResized = function() {
|
| +
|
| +}
|
| +View.prototype.watch = function(observable, watcher) {
|
| + var summary = new EventSummary(observable);
|
| + watcher.call$1(summary);
|
| + this.attachWatch(observable, watcher);
|
| +}
|
| +View.prototype.attachWatch = function(observable, watcher) {
|
| + observable.addChangeListener(watcher);
|
| +}
|
| +View.prototype.addOnClick = function(handler) {
|
| + this._node.get$on().get$click().add$1(handler);
|
| +}
|
| +View.prototype.set$hidden = function(hidden) {
|
| + if (hidden) {
|
| + this.get$node().get$style().set$display("none");
|
| + }
|
| + else {
|
| + this.get$node().get$style().set$display("");
|
| + }
|
| +}
|
| +View.prototype.addClass = function(className) {
|
| + this.get$node().get$classes().add(className);
|
| +}
|
| +View.prototype.removeClass = function(className) {
|
| + this.get$node().get$classes().remove(className);
|
| +}
|
| +View.div = function(cssClass, body) {
|
| + if (body == null) {
|
| + body = "";
|
| + }
|
| + return new View.html$ctor(("<div class=\"" + cssClass + "\">" + body + "</div>"));
|
| +}
|
| +View.prototype._render = function() {
|
| + if (this._node == null) {
|
| + this._node = this.render();
|
| + }
|
| + this.afterRender(this._node);
|
| +}
|
| +View.prototype._enterDocument = function() {
|
| + var $$list = this.get$childViews();
|
| + for (var $$i = $$list.iterator$0(); $$i.hasNext$0(); ) {
|
| + var child = $$i.next$0();
|
| + child._enterDocument$0();
|
| + }
|
| + this.enterDocument();
|
| +}
|
| +View.prototype.get$layout = function() {
|
| + if (this._view_layout == null) {
|
| + this._view_layout = ViewLayout.ViewLayout$fromView$factory(this);
|
| + }
|
| + return this._view_layout;
|
| +}
|
| +View.prototype._exitDocument = function() {
|
| + this.exitDocument();
|
| + var $$list = this.get$childViews();
|
| + for (var $$i = $$list.iterator$0(); $$i.hasNext$0(); ) {
|
| + var child = $$i.next$0();
|
| + child._exitDocument$0();
|
| + }
|
| +}
|
| +View.prototype._hookGlobalLayoutEvents = function() {
|
| + var $this = this; // closure support
|
| + if (this._resizeHandler == null) {
|
| + this._resizeHandler = to$call$1(EventBatch.wrap((function (e) {
|
| + return $this.doLayout();
|
| + })
|
| + ));
|
| + }
|
| + html_get$window().get$on().get$resize().add(this._resizeHandler, false);
|
| + this.doLayout();
|
| +}
|
| +View.prototype.doLayout = function() {
|
| + var $this = this; // closure support
|
| + this._measureLayout().then((function (changed) {
|
| + if (changed) {
|
| + $this._applyLayoutToChildren();
|
| + }
|
| + })
|
| + );
|
| +}
|
| +View.prototype._measureLayout = function() {
|
| + var changed = new CompleterImpl();
|
| + this._measureLayoutHelper(changed);
|
| + html_get$window().requestLayoutFrame((function () {
|
| + if (!changed.get$future().get$isComplete()) {
|
| + changed.complete$1(false);
|
| + }
|
| + })
|
| + );
|
| + return changed.get$future();
|
| +}
|
| +View.prototype._measureLayoutHelper = function(changed) {
|
| + this.windowResized();
|
| + if (ViewLayout.hasCustomLayout(this)) {
|
| + var sizeCompleter = new CompleterImpl();
|
| + this._node.get$rect().then((function (rect) {
|
| + sizeCompleter.complete(new Size(rect.client.get$width(), rect.client.get$height()));
|
| + })
|
| + );
|
| + this.get$layout().measureLayout(sizeCompleter.get$future(), changed);
|
| + }
|
| + else {
|
| + var $$list = this.get$childViews();
|
| + for (var $$i = $$list.iterator$0(); $$i.hasNext$0(); ) {
|
| + var child = $$i.next$0();
|
| + child._measureLayoutHelper$1(changed);
|
| + }
|
| + }
|
| +}
|
| +View.prototype._applyLayoutToChildren = function() {
|
| + var $$list = this.get$childViews();
|
| + for (var $$i = $$list.iterator$0(); $$i.hasNext$0(); ) {
|
| + var child = $$i.next$0();
|
| + child._applyLayout$0();
|
| + }
|
| +}
|
| +View.prototype._applyLayout = function() {
|
| + if (this._view_layout != null) {
|
| + this._view_layout.applyLayout$0();
|
| + }
|
| + this._applyLayoutToChildren();
|
| +}
|
| +View.prototype.set$transform = function(transform) {
|
| + this.get$node().get$style().set$transform(transform);
|
| +}
|
| +View.prototype._applyLayout$0 = View.prototype._applyLayout;
|
| +View.prototype._enterDocument$0 = View.prototype._enterDocument;
|
| +View.prototype._exitDocument$0 = View.prototype._exitDocument;
|
| +View.prototype._measureLayoutHelper$1 = View.prototype._measureLayoutHelper;
|
| +View.prototype.addClass$1 = View.prototype.addClass;
|
| +View.prototype.doLayout$0 = View.prototype.doLayout;
|
| +// ********** Code for CompositeView **************
|
| +$inherits(CompositeView, View);
|
| +function CompositeView(_cssName, nestedContainer, scrollable, vertical, showScrollbar) {
|
| + this._nestedContainer = nestedContainer;
|
| + this._view_cssName = _cssName;
|
| + this._view_vertical = vertical;
|
| + this.childViews = new Array();
|
| + this._view_showScrollbar = showScrollbar;
|
| + this._view_scrollable = scrollable;
|
| + View.call(this);
|
| +}
|
| +CompositeView.prototype.get$childViews = function() { return this.childViews; };
|
| +CompositeView.prototype.set$childViews = function(value) { return this.childViews = value; };
|
| +CompositeView.prototype.render = function() {
|
| + var node = ElementWrappingImplementation.ElementWrappingImplementation$html$factory(("<div class=\"" + this._view_cssName + "\"></div>"));
|
| + if (this._nestedContainer) {
|
| + this.container = ElementWrappingImplementation.ElementWrappingImplementation$html$factory("<div class=\"scroll-container\"></div>");
|
| + node.get$nodes().add$1(this.container);
|
| + }
|
| + else {
|
| + this.container = node;
|
| + }
|
| + if (this._view_scrollable) {
|
| + this.scroller = new Scroller(this.container, this._view_vertical, !this._view_vertical, true, null, (1), null, false);
|
| + if (this._view_showScrollbar) {
|
| + this._view_scrollbar = new Scrollbar(this.scroller, true);
|
| + }
|
| + }
|
| + var $$list = this.childViews;
|
| + for (var $$i = 0;$$i < $$list.get$length(); $$i++) {
|
| + var childView = $$list.$index($$i);
|
| + this.container.get$nodes().add$1(childView.get$node());
|
| + }
|
| + return node;
|
| +}
|
| +CompositeView.prototype.afterRender = function(node) {
|
| + if (this._view_scrollbar != null) {
|
| + this._view_scrollbar.initialize();
|
| + }
|
| +}
|
| +CompositeView.prototype.addChild = function(view) {
|
| + this.childViews.add$1(view);
|
| + if (this.container != null) {
|
| + this.container.get$nodes().add$1(view.get$node());
|
| + }
|
| + this.childViewAdded(view);
|
| + return view;
|
| +}
|
| +CompositeView.prototype.removeChild = function(view) {
|
| + this.childViews = this.childViews.filter$1(function _(e) {
|
| + return $ne(view, e);
|
| + }
|
| + );
|
| + if (this.container != null) {
|
| + view.get$node().remove();
|
| + }
|
| +}
|
| +CompositeView.prototype.removeChild$1 = CompositeView.prototype.removeChild;
|
| +// ********** Code for ConveyorView **************
|
| +$inherits(ConveyorView, CompositeView);
|
| +function ConveyorView() {
|
| + this.animationTimeoutId = null;
|
| + CompositeView.call(this, "conveyor-view", true, false, false, false);
|
| +}
|
| +ConveyorView.prototype.render = function() {
|
| + var result = CompositeView.prototype.render.call(this);
|
| + this.container.get$attributes().$setindex("class", "conveyor-view-container");
|
| + return result;
|
| +}
|
| +ConveyorView.prototype.selectView = function(targetView_, animate) {
|
| + this.selectedView = targetView_;
|
| + if (this.get$isRendered()) {
|
| + this.adjustOffset(animate);
|
| + }
|
| +}
|
| +ConveyorView.prototype.adjustOffset = function(animate) {
|
| + var $this = this; // closure support
|
| + var index = this.getIndexOfSelectedView();
|
| + var durationSeconds = animate ? (0.25) : (0);
|
| + var style = this.container.get$style();
|
| + style.set$transitionDuration(("" + durationSeconds + "s"));
|
| + var xTranslationPercent = -index * (100);
|
| + style.set$transform(("translate3d(" + xTranslationPercent + "%, 0px, 0px)"));
|
| + if (this.animationTimeoutId != null) {
|
| + html_get$window().clearTimeout(this.animationTimeoutId);
|
| + }
|
| + if (animate) {
|
| + this.animationTimeoutId = html_get$window().setTimeout((function () {
|
| + $this._onAnimationEnd();
|
| + })
|
| + , (durationSeconds * (1000)).toInt());
|
| + }
|
| +}
|
| +ConveyorView.prototype.getIndexOfSelectedView = function() {
|
| + for (var i = (0);
|
| + i < this.childViews.get$length(); i++) {
|
| + if ($eq(this.childViews.$index(i), this.selectedView)) {
|
| + return i;
|
| + }
|
| + }
|
| + $throw("view not found");
|
| +}
|
| +ConveyorView.prototype.addChild = function(view) {
|
| + view.addClass("conveyor-item");
|
| + view.set$transform("translate3d(" + (this.childViews.get$length() * (100)) + "%, 0, 0)");
|
| + return CompositeView.prototype.addChild.call(this, view);
|
| +}
|
| +ConveyorView.prototype._onAnimationEnd = function() {
|
| + if (this.viewSelected != null) {
|
| + this.viewSelected.call$1(this.selectedView);
|
| + }
|
| +}
|
| +// ********** Code for MeasureText **************
|
| +function MeasureText(font) {
|
| + this.font = font;
|
| + if ($globals.MeasureText__context == null) {
|
| + var canvas = ElementWrappingImplementation.ElementWrappingImplementation$tag$factory("canvas");
|
| + $globals.MeasureText__context = canvas.getContext("2d");
|
| + }
|
| + if (this._spaceLength == null) {
|
| + $globals.MeasureText__context.set$font(this.font);
|
| + this._spaceLength = $globals.MeasureText__context.measureText(" ").get$width();
|
| + this._typicalCharLength = $globals.MeasureText__context.measureText("k").get$width();
|
| + }
|
| +}
|
| +MeasureText.prototype.get$font = function() { return this.font; };
|
| +MeasureText.isWhitespace = function(character) {
|
| + return character == " " || character == "\t" || character == "\n";
|
| +}
|
| +MeasureText.prototype.addLineBrokenText = function(sb, text, lineWidth, maxLines) {
|
| + text = text.trim();
|
| + if (sb == null) {
|
| + $globals.MeasureText__context.set$font(this.font);
|
| + var textWidth = $globals.MeasureText__context.measureText(text).get$width().toInt();
|
| + if (textWidth >= (lineWidth + this._spaceLength) * (maxLines - (1))) {
|
| + return maxLines;
|
| + }
|
| + else if (textWidth == (0)) {
|
| + return (0);
|
| + }
|
| + else if (textWidth < lineWidth) {
|
| + return (1);
|
| + }
|
| + }
|
| + var lines = (0);
|
| + this.lineBreak(text, lineWidth, maxLines, (function (start, end, width) {
|
| + lines++;
|
| + if (lines == maxLines) {
|
| + end = Math.min(end + (50), text.length);
|
| + }
|
| + if (sb != null) {
|
| + if (lines > (1)) {
|
| + sb.add("<br>");
|
| + }
|
| + sb.add(text.substring(start, end));
|
| + }
|
| + })
|
| + );
|
| + return lines;
|
| +}
|
| +MeasureText.prototype.lineBreak = function(text, lineWidth, maxLines, callback) {
|
| + $globals.MeasureText__context.set$font(this.font);
|
| + var lines = (0);
|
| + var currentLength = (0);
|
| + var startIndex = (0);
|
| + var wordStartIndex = null;
|
| + var lastWordEndIndex = null;
|
| + var lastWhitespace = true;
|
| + for (var i = (0), len = text.length;
|
| + i <= len; i++) {
|
| + var whitespace = i == len || MeasureText.isWhitespace(text[i]);
|
| + if (whitespace && !lastWhitespace) {
|
| + var wordLength = $globals.MeasureText__context.measureText(text.substring(wordStartIndex, i)).get$width();
|
| + currentLength += wordLength;
|
| + if (currentLength > lineWidth) {
|
| + if (lastWordEndIndex != null) {
|
| + lines++;
|
| + callback.call$3(startIndex, lastWordEndIndex, currentLength - wordLength);
|
| + }
|
| + if (lines == maxLines) {
|
| + return;
|
| + }
|
| + startIndex = wordStartIndex;
|
| + currentLength = wordLength;
|
| + }
|
| + lastWordEndIndex = i;
|
| + currentLength += this._spaceLength;
|
| + wordStartIndex = null;
|
| + }
|
| + else if (wordStartIndex == null && !whitespace) {
|
| + wordStartIndex = i;
|
| + }
|
| + lastWhitespace = whitespace;
|
| + }
|
| + if (currentLength > (0)) {
|
| + callback.call$3(startIndex, text.length, currentLength);
|
| + }
|
| +}
|
| +// ********** Code for PageState **************
|
| +function PageState() {
|
| + this.target = new ObservableValue_int((0));
|
| + this.current = new ObservableValue_int((0));
|
| + this.length = new ObservableValue_int((1));
|
| +}
|
| +PageState.prototype.get$target = function() { return this.target; };
|
| +PageState.prototype.get$length = function() { return this.length; };
|
| +// ********** Code for PagedContentView **************
|
| +$inherits(PagedContentView, CompositeView);
|
| +function PagedContentView(content) {
|
| + this.content = content;
|
| + this.pages = new PageState();
|
| + CompositeView.call(this, "paged-content", false, false, false, false);
|
| + this.addChild(new PagedColumnView(this.pages, this.content));
|
| + this.addChild(new PageNumberView(this.pages));
|
| +}
|
| +// ********** Code for PageNumberView **************
|
| +$inherits(PageNumberView, View);
|
| +function PageNumberView(pages) {
|
| + this.pages = pages;
|
| + View.call(this);
|
| +}
|
| +PageNumberView.prototype.render = function() {
|
| + var node = ElementWrappingImplementation.ElementWrappingImplementation$html$factory(" <div class=\"page-number\">\n <div class=\"page-number-left\">‹</div>\n <div class=\"page-number-label\"></div>\n <div class=\"page-number-right\">›</div>\n </div>\n ");
|
| + this._left = node.query$1(".page-number-left");
|
| + this._label = node.query$1(".page-number-label");
|
| + this._right = node.query$1(".page-number-right");
|
| + return node;
|
| +}
|
| +PageNumberView.prototype.enterDocument = function() {
|
| + var $this = this; // closure support
|
| + this.watch(this.pages.current, (function (s) {
|
| + return $this._update();
|
| + })
|
| + );
|
| + this.watch(this.pages.length, (function (s) {
|
| + return $this._update();
|
| + })
|
| + );
|
| + this._left.get$on().get$click().add$1((function (e) {
|
| + if ($this.pages.current.get$value() > (0)) {
|
| + $this.pages.target.set$value($this.pages.current.get$value() - (1));
|
| + }
|
| + })
|
| + );
|
| + this._right.get$on().get$click().add$1((function (e) {
|
| + if ($this.pages.current.get$value() + (1) < $this.pages.length.get$value()) {
|
| + $this.pages.target.set$value($this.pages.current.get$value() + (1));
|
| + }
|
| + })
|
| + );
|
| +}
|
| +PageNumberView.prototype._update = function() {
|
| + this._label.set$text(("" + (this.pages.current.get$value() + (1)) + " of " + this.pages.length.get$value()));
|
| +}
|
| +// ********** Code for PagedColumnView **************
|
| +$inherits(PagedColumnView, View);
|
| +function PagedColumnView(pages, contentView) {
|
| + this.pages = pages;
|
| + this.contentView = contentView;
|
| + View.call(this);
|
| +}
|
| +PagedColumnView.prototype.render = function() {
|
| + var $this = this; // closure support
|
| + var node = ElementWrappingImplementation.ElementWrappingImplementation$html$factory(" <div class=\"paged-column\">\n <div class=\"paged-column-container\"></div>\n </div>");
|
| + this._container = node.query$1(".paged-column-container");
|
| + this._container.get$nodes().add$1(this.contentView.get$node());
|
| + this.scroller = new Scroller(this._container, false, true, true, (function () {
|
| + var completer = new CompleterImpl();
|
| + $this._container.get$rect().then((function (rect) {
|
| + completer.complete$1(new Size($this._getViewLength(rect), (1)));
|
| + })
|
| + );
|
| + return completer.get$future();
|
| + })
|
| + , (0.84), null, false);
|
| + this.scroller.get$onDecelStart().add(this.get$_snapToPage(), false);
|
| + this.scroller.get$onScrollerDragEnd().add(this.get$_snapToPage(), false);
|
| + this.scroller.get$onContentMoved().add(this.get$_onContentMoved(), false);
|
| + return node;
|
| +}
|
| +PagedColumnView.prototype._getViewLength = function(rect) {
|
| + return this._computePageSize(rect) * this.pages.length.get$value();
|
| +}
|
| +PagedColumnView.prototype.enterDocument = function() {
|
| + var $this = this; // closure support
|
| + this.contentView.get$node().get$computedStyle().then((function (style) {
|
| + $this._computeColumnGap(style);
|
| + $this.windowResized();
|
| + var $$list = $this.contentView.get$node().queryAll("img");
|
| + for (var $$i = $$list.iterator$0(); $$i.hasNext$0(); ) {
|
| + var img = $$i.next$0();
|
| + if (!img.get$complete()) {
|
| + img.get$on().get$load().add$1((function (e) {
|
| + $this._updatePageCount(to$call$0(null));
|
| + })
|
| + );
|
| + }
|
| + }
|
| + $this.watch($this.pages.target, (function (s) {
|
| + return $this._view_onPageSelected();
|
| + })
|
| + );
|
| + $this.watch($this.pages.length, (function (s) {
|
| + return $this._view_onPageSelected();
|
| + })
|
| + );
|
| + })
|
| + );
|
| +}
|
| +PagedColumnView.prototype._computeColumnGap = function(style) {
|
| + var gap = style.get$columnGap();
|
| + if (gap == "normal") {
|
| + gap = style.get$fontSize();
|
| + }
|
| + this._columnGap = PagedColumnView._toPixels(gap, "column-gap or font-size");
|
| + this._columnWidth = PagedColumnView._toPixels(style.get$columnWidth(), "column-width");
|
| +}
|
| +PagedColumnView._toPixels = function(value, message) {
|
| + if (value.endsWith("px")) {
|
| + value = value.substring((0), value.length - (2));
|
| + }
|
| + return Math.parseDouble(value).round().toInt();
|
| +}
|
| +PagedColumnView.prototype.windowResized = function() {
|
| + var $this = this; // closure support
|
| + this.get$node().get$rect().then((function (rect) {
|
| + $this.contentView.get$node().get$style().set$height(("" + rect.offset.get$height() + "px"));
|
| + })
|
| + );
|
| + this._updatePageCount(to$call$0(null));
|
| +}
|
| +PagedColumnView.prototype._updatePageCount = function(callback) {
|
| + var $this = this; // closure support
|
| + var pageLength = (1);
|
| + this._container.get$rect().then((function (rect) {
|
| + if (rect.scroll.get$width() > rect.offset.get$width()) {
|
| + pageLength = (rect.scroll.get$width() / $this._computePageSize(rect)).ceil().toInt();
|
| + }
|
| + pageLength = Math.max(pageLength, (1));
|
| + var oldPage = $this.pages.target.get$value();
|
| + var newPage = Math.min(oldPage, pageLength - (1));
|
| + if (oldPage == newPage) {
|
| + $this.pages.target.set$value((0));
|
| + }
|
| + $this.pages.target.set$value(newPage);
|
| + $this.pages.length.set$value(pageLength);
|
| + if (callback != null) {
|
| + callback.call$0();
|
| + }
|
| + })
|
| + );
|
| +}
|
| +PagedColumnView.prototype._onContentMoved = function(e) {
|
| + var $this = this; // closure support
|
| + this._container.get$rect().then((function (rect) {
|
| + var current = $this.scroller.get$contentOffset().x;
|
| + var pageSize = $this._computePageSize(rect);
|
| + $this.pages.current.set$value(-(current / pageSize).round().toInt());
|
| + })
|
| + );
|
| +}
|
| +PagedColumnView.prototype.get$_onContentMoved = function() {
|
| + return this._onContentMoved.bind(this);
|
| +}
|
| +PagedColumnView.prototype._snapToPage = function(e) {
|
| + var $this = this; // closure support
|
| + var current = this.scroller.get$contentOffset().x;
|
| + var currentTarget = this.scroller.get$currentTarget().x;
|
| + this._container.get$rect().then((function (rect) {
|
| + var pageSize = $this._computePageSize(rect);
|
| + var destination;
|
| + var currentPageNumber = -(current / pageSize).round();
|
| + var pageNumber = -currentTarget / pageSize;
|
| + if (current == currentTarget) {
|
| + pageNumber = pageNumber.round();
|
| + }
|
| + else {
|
| + if (currentPageNumber == pageNumber.round() && (pageNumber - currentPageNumber).abs() > (0.01) && -current + $this._viewportSize < $this._getViewLength(rect) && current < (0)) {
|
| + pageNumber = currentTarget < current ? currentPageNumber + (1) : currentPageNumber - (1);
|
| + }
|
| + else {
|
| + pageNumber = pageNumber.round();
|
| + }
|
| + }
|
| + pageNumber = pageNumber.toInt();
|
| + var translate = -pageNumber * pageSize;
|
| + $this.pages.current.set$value(pageNumber);
|
| + if (currentTarget != translate) {
|
| + $this.scroller.throwTo(translate, (0));
|
| + }
|
| + else {
|
| + $this.pages.target.set$value(pageNumber);
|
| + }
|
| + })
|
| + );
|
| +}
|
| +PagedColumnView.prototype.get$_snapToPage = function() {
|
| + return this._snapToPage.bind(this);
|
| +}
|
| +PagedColumnView.prototype._computePageSize = function(rect) {
|
| + this._viewportSize = rect.offset.get$width();
|
| + var perPage = Math.max((1), $truncdiv((this._viewportSize + this._columnGap), (this._columnWidth + this._columnGap)));
|
| + var columnSize = $truncdiv((this._viewportSize - (perPage - (1)) * this._columnGap), perPage);
|
| + return perPage * (columnSize + this._columnGap);
|
| +}
|
| +PagedColumnView.prototype._view_onPageSelected = function() {
|
| + var $this = this; // closure support
|
| + this._container.get$rect().then((function (rect) {
|
| + var translate = -$this.pages.target.get$value() * $this._computePageSize(rect);
|
| + $this.scroller.throwTo(translate, (0));
|
| + })
|
| + );
|
| +}
|
| +// ********** Code for SliderMenu **************
|
| +$inherits(SliderMenu, View);
|
| +function SliderMenu(_menuItems, onSelect) {
|
| + this._menuItems = _menuItems;
|
| + this.onSelect = onSelect;
|
| + View.call(this);
|
| +}
|
| +SliderMenu.prototype.render = function() {
|
| + var items = new StringBufferImpl("");
|
| + var $$list = this._menuItems;
|
| + for (var $$i = 0;$$i < $$list.get$length(); $$i++) {
|
| + var item = $$list.$index($$i);
|
| + items.add$1(("<div class=\"sm-item\">" + item + "</div>"));
|
| + }
|
| + return ElementWrappingImplementation.ElementWrappingImplementation$html$factory((" <div class=\"sm-root\">\n <div class=\"sm-item-box\">\n <div class=\"sm-item-filler\"></div>\n " + items + "\n <div class=\"sm-item-filler\"></div>\n </div>\n <div class=\"sm-slider-box\">\n <div class=\"sm-triangle\"></div>\n </div>\n </div>\n "));
|
| +}
|
| +SliderMenu.prototype.enterDocument = function() {
|
| + var $this = this; // closure support
|
| + this.selectItem(this.get$node().query(".sm-item"), false);
|
| + if (Device.get$supportsTouch()) {
|
| + this.get$node().get$on().get$touchStart().add$1((function (event) {
|
| + $this.touchItem = $this.itemOfTouchEvent(event);
|
| + if ($this.touchItem != null) {
|
| + $this.selectItemText($this.touchItem);
|
| + }
|
| + event.preventDefault$0();
|
| + })
|
| + );
|
| + this.get$node().get$on().get$touchEnd().add$1((function (event) {
|
| + if ($this.touchItem != null) {
|
| + if ($eq($this.itemOfTouchEvent(event), $this.touchItem)) {
|
| + $this.selectItem($this.touchItem, true);
|
| + }
|
| + else {
|
| + $this.selectItemText($this.selectedItem);
|
| + }
|
| + $this.touchItem = null;
|
| + }
|
| + event.preventDefault$0();
|
| + })
|
| + );
|
| + }
|
| + else {
|
| + this.get$node().get$on().get$click().add$1((function (event) {
|
| + return $this.selectItem(event.get$target(), true);
|
| + })
|
| + );
|
| + }
|
| + html_get$window().get$on().get$resize().add((function (event) {
|
| + return $this.updateIndicator(false);
|
| + })
|
| + , false);
|
| +}
|
| +SliderMenu.prototype.itemOfTouchEvent = function(event) {
|
| + var node = event.get$changedTouches().$index((0)).get$target();
|
| + return this.itemOfNode(node);
|
| +}
|
| +SliderMenu.prototype.itemOfNode = function(node) {
|
| + while (node != null && $ne(node, html_get$document())) {
|
| + if (!!(node && node.is$html_html_Element())) {
|
| + var element = node;
|
| + if (element.get$classes().contains("sm-item")) {
|
| + return element;
|
| + }
|
| + }
|
| + node = node.get$parent();
|
| + }
|
| + return null;
|
| +}
|
| +SliderMenu.prototype.selectItemText = function(item) {
|
| + var $$list = this.get$node().queryAll(".sm-item");
|
| + for (var $$i = $$list.iterator$0(); $$i.hasNext$0(); ) {
|
| + var sliderItem = $$i.next$0();
|
| + sliderItem.get$classes().remove$1("sel");
|
| + }
|
| + item.get$classes().add("sel");
|
| +}
|
| +SliderMenu.prototype.selectItem = function(item, animate) {
|
| + if (!item.get$classes().contains("sm-item")) {
|
| + return;
|
| + }
|
| + this.selectedItem = item;
|
| + this.selectItemText(item);
|
| + this.updateIndicator(animate);
|
| + this.onSelect.call$1(item.get$text());
|
| +}
|
| +SliderMenu.prototype.selectNext = function(animate) {
|
| + var result = this.get$node().query(".sm-item.sel").get$nextElementSibling();
|
| + if (result != null) {
|
| + this.selectItem(result, animate);
|
| + }
|
| +}
|
| +SliderMenu.prototype.selectPrevious = function(animate) {
|
| + var result = this.get$node().query(".sm-item.sel").get$previousElementSibling();
|
| + if (result != null) {
|
| + this.selectItem(result, animate);
|
| + }
|
| +}
|
| +SliderMenu.prototype.updateIndicator = function(animate) {
|
| + var $this = this; // closure support
|
| + if (this.selectedItem != null) {
|
| + this.selectedItem.get$rect().then((function (rect) {
|
| + var x = rect.offset.get$left() + rect.offset.get$width() / (2) - (12);
|
| + $this._moveIndicator(x, animate);
|
| + })
|
| + );
|
| + }
|
| + else {
|
| + this._moveIndicator((0), animate);
|
| + }
|
| +}
|
| +SliderMenu.prototype._moveIndicator = function(x, animate) {
|
| + var duration = animate ? ".3s" : "0s";
|
| + var triangle = this.get$node().query(".sm-triangle");
|
| + triangle.get$style().set$transitionDuration(duration);
|
| + FxUtil.setWebkitTransform(triangle, x, (0), (0));
|
| +}
|
| +// ********** Code for top level **************
|
| +// ********** Library swarmlib **************
|
| +// ********** Code for App **************
|
| +function App() {
|
| +
|
| +}
|
| +App.prototype.run = function() {
|
| + var $this = this; // closure support
|
| + if (html_get$document().get$readyState() == "interactive" || html_get$document().get$readyState() == "complete" || html_get$document().get$readyState() == "loaded") {
|
| + html_get$window().setTimeout((function () {
|
| + return $this.onLoad();
|
| + })
|
| + , (0));
|
| + }
|
| + else {
|
| + html_get$window().get$on().get$contentLoaded().add(to$call$1(EventBatch.wrap((function (event) {
|
| + return $this.onLoad();
|
| + })
|
| + )), false);
|
| + }
|
| +}
|
| +App.prototype.onLoad = function() {
|
| + var $this = this; // closure support
|
| + html_get$document().get$on().get$touchMove().add((function (event) {
|
| + return event.preventDefault();
|
| + })
|
| + , false);
|
| + if (!this.swapAndReloadCache()) {
|
| + html_get$window().get$applicationCache().get$on().get$updateReady().add((function (e) {
|
| + return $this.swapAndReloadCache();
|
| + })
|
| + , false);
|
| + }
|
| +}
|
| +App.prototype.eraseSplashScreen = function() {
|
| + var splash = html_get$document().query("#appSplash");
|
| + if (splash != null) {
|
| + splash.remove$0();
|
| + }
|
| +}
|
| +App.prototype.swapAndReloadCache = function() {
|
| + var appCache = html_get$window().get$applicationCache();
|
| + if (appCache.get$status() != (4)) {
|
| + return false;
|
| + }
|
| + dart_core_print("App cache update ready, now swapping...");
|
| + html_get$window().get$applicationCache().swapCache();
|
| + dart_core_print("App cache swapped, now reloading page...");
|
| + html_get$window().get$location().reload();
|
| + return true;
|
| +}
|
| +// ********** Code for BiIterator **************
|
| +function BiIterator(list, oldListeners) {
|
| + this.currentIndex = new ObservableValue_int((0));
|
| + this.list = list;
|
| + if (oldListeners != null) {
|
| + this.currentIndex.listeners = oldListeners;
|
| + }
|
| +}
|
| +BiIterator.prototype.next = function() {
|
| + var $0;
|
| + if (this.currentIndex.get$value() < this.list.get$length() - (1)) {
|
| + ($0 = this.currentIndex).set$value($0.get$value() + (1));
|
| + }
|
| + return this.list.$index(this.currentIndex.get$value());
|
| +}
|
| +BiIterator.prototype.get$current = function() {
|
| + return this.list.$index(this.currentIndex.get$value());
|
| +}
|
| +BiIterator.prototype.previous = function() {
|
| + var $0;
|
| + if (this.currentIndex.get$value() > (0)) {
|
| + ($0 = this.currentIndex).set$value($0.get$value() - (1));
|
| + }
|
| + return this.list.$index(this.currentIndex.get$value());
|
| +}
|
| +BiIterator.prototype.jumpToValue = function(val) {
|
| + for (var i = (0);
|
| + i < this.list.get$length(); i++) {
|
| + if (this.list.$index(i) == val) {
|
| + this.currentIndex.set$value(i);
|
| + break;
|
| + }
|
| + }
|
| +}
|
| +BiIterator.prototype.next$0 = BiIterator.prototype.next;
|
| +// ********** Code for BiIterator_Article **************
|
| +$inherits(BiIterator_Article, BiIterator);
|
| +function BiIterator_Article(list, oldListeners) {
|
| + this.currentIndex = new ObservableValue_int((0));
|
| + this.list = list;
|
| + if (oldListeners != null) {
|
| + this.currentIndex.listeners = oldListeners;
|
| + }
|
| +}
|
| +BiIterator_Article.prototype.next = function() {
|
| + var $0;
|
| + if (this.currentIndex.get$value() < this.list.get$length() - (1)) {
|
| + ($0 = this.currentIndex).set$value($0.get$value() + (1));
|
| + }
|
| + return this.list.$index(this.currentIndex.get$value());
|
| +}
|
| +BiIterator_Article.prototype.previous = function() {
|
| + var $0;
|
| + if (this.currentIndex.get$value() > (0)) {
|
| + ($0 = this.currentIndex).set$value($0.get$value() - (1));
|
| + }
|
| + return this.list.$index(this.currentIndex.get$value());
|
| +}
|
| +BiIterator_Article.prototype.jumpToValue = function(val) {
|
| + for (var i = (0);
|
| + i < this.list.get$length(); i++) {
|
| + if (this.list.$index(i) == val) {
|
| + this.currentIndex.set$value(i);
|
| + break;
|
| + }
|
| + }
|
| +}
|
| +// ********** Code for BiIterator_Feed **************
|
| +$inherits(BiIterator_Feed, BiIterator);
|
| +function BiIterator_Feed(list, oldListeners) {
|
| + this.currentIndex = new ObservableValue_int((0));
|
| + this.list = list;
|
| + if (oldListeners != null) {
|
| + this.currentIndex.listeners = oldListeners;
|
| + }
|
| +}
|
| +BiIterator_Feed.prototype.next = function() {
|
| + var $0;
|
| + if (this.currentIndex.get$value() < this.list.get$length() - (1)) {
|
| + ($0 = this.currentIndex).set$value($0.get$value() + (1));
|
| + }
|
| + return this.list.$index(this.currentIndex.get$value());
|
| +}
|
| +BiIterator_Feed.prototype.previous = function() {
|
| + var $0;
|
| + if (this.currentIndex.get$value() > (0)) {
|
| + ($0 = this.currentIndex).set$value($0.get$value() - (1));
|
| + }
|
| + return this.list.$index(this.currentIndex.get$value());
|
| +}
|
| +BiIterator_Feed.prototype.jumpToValue = function(val) {
|
| + for (var i = (0);
|
| + i < this.list.get$length(); i++) {
|
| + if (this.list.$index(i) == val) {
|
| + this.currentIndex.set$value(i);
|
| + break;
|
| + }
|
| + }
|
| +}
|
| +// ********** Code for BiIterator_Section **************
|
| +$inherits(BiIterator_Section, BiIterator);
|
| +function BiIterator_Section(list, oldListeners) {
|
| + this.currentIndex = new ObservableValue_int((0));
|
| + this.list = list;
|
| + if (oldListeners != null) {
|
| + this.currentIndex.listeners = oldListeners;
|
| + }
|
| +}
|
| +BiIterator_Section.prototype.jumpToValue = function(val) {
|
| + for (var i = (0);
|
| + i < this.list.get$length(); i++) {
|
| + if (this.list.$index(i) == val) {
|
| + this.currentIndex.set$value(i);
|
| + break;
|
| + }
|
| + }
|
| +}
|
| +// ********** Code for DialogView **************
|
| +$inherits(DialogView, View);
|
| +function DialogView(_title, _cssName, _content) {
|
| + this._content = _content;
|
| + this._title = _title;
|
| + this._cssName = _cssName;
|
| + View.call(this);
|
| +}
|
| +DialogView.prototype.render = function() {
|
| + var $this = this; // closure support
|
| + var node = ElementWrappingImplementation.ElementWrappingImplementation$html$factory((" <div class=\"dialog-modal\">\n <div class=\"dialog " + this._cssName + "\">\n <div class=\"dialog-title-area\">\n <span class=\"dialog-title\">" + this._title + "</span>\n </div>\n <div class=\"dialog-body\"></div>\n </div>\n </div>"));
|
| + this._done = new PushButtonView("Done", "done-button", EventBatch.wrap((function (e) {
|
| + return $this.onDone();
|
| + })
|
| + ));
|
| + var titleArea = node.query$1(".dialog-title-area");
|
| + titleArea.get$nodes().add$1(this._done.get$node());
|
| + this.container = node.query$1(".dialog-body");
|
| + this.container.get$nodes().add$1(this._content.get$node());
|
| + return node;
|
| +}
|
| +DialogView.prototype.onDone = function() {
|
| +
|
| +}
|
| +// ********** Code for ConfigHintDialog **************
|
| +$inherits(ConfigHintDialog, DialogView);
|
| +function ConfigHintDialog() {}
|
| +ConfigHintDialog._impl$ctor = function(_parent, _doneHandler, content) {
|
| + this._doneHandler = _doneHandler;
|
| + this._parent = _parent;
|
| + DialogView.call(this, "Feed configuration", "", content);
|
| +}
|
| +ConfigHintDialog._impl$ctor.prototype = ConfigHintDialog.prototype;
|
| +ConfigHintDialog.ConfigHintDialog$factory = function(parent, doneHandler) {
|
| + var content = ConfigHintDialog.makeContent();
|
| + return new ConfigHintDialog._impl$ctor(parent, doneHandler, content);
|
| +}
|
| +ConfigHintDialog.prototype.onDone = function() {
|
| + this._doneHandler.call$0();
|
| +}
|
| +ConfigHintDialog.makeContent = function() {
|
| + return new View.html$ctor(" <div>\n Add or remove feeds in\n <a href=\"https://www.google.com/reader\" target=\"_blank\">\n Google Reader</a>'s \"Subscriptions\".\n Then come back here and click \"Done\" and we'll load your updated\n list of subscriptions.\n </div>\n ");
|
| +}
|
| +// ********** Code for HelpDialog **************
|
| +$inherits(HelpDialog, DialogView);
|
| +function HelpDialog(_parent, _doneHandler) {
|
| + this._doneHandler = _doneHandler;
|
| + this._parent = _parent;
|
| + DialogView.call(this, "Information", "", HelpDialog.makeContent());
|
| +}
|
| +HelpDialog.prototype.onDone = function() {
|
| + this._doneHandler.call$0();
|
| +}
|
| +HelpDialog.makeContent = function() {
|
| + return new View.html$ctor((" <div>\n \n <p>\n Keyboard shortcuts: \n " + HelpDialog.generateTableHtml() + " \n </p>\n\n <p>\n <div id=\"dart-logo\"> \n <a href=\"http://dartlang.org\">\n Dart, the programming language</a>.\n </div>\n </p>\n </div>\n "));
|
| +}
|
| +HelpDialog.generateTableHtml = function() {
|
| + var cellStart = "<th valign=\"middle\" align=\"center\">";
|
| + return ("<table width=\"90%\" border=1 cellspacing=\"0\" cellpadding=\"2\">\n <tr bgcolor=\"#c3d9ff\"> \n " + cellStart + " Shortcut Key </th>\n " + cellStart + " Action </th>\n </tr>\n <tr>\n " + cellStart + " j, <down arrow> </th>\n " + cellStart + " Next Article </th>\n </tr>\n <tr>\n " + cellStart + " k, <up arrow> </th>\n " + cellStart + " Previous Article </th>\n </tr>\n <tr>\n " + cellStart + " o, <enter> </th>\n " + cellStart + " Open Article </th>\n </tr>\n <tr>\n " + cellStart + " <esc>, <delete> </th>\n " + cellStart + " Back </th>\n </tr>\n <tr>\n " + cellStart + " a, h, <left arrow> </th>\n " + cellStart + " Left </th>\n </tr>\n <tr>\n " + cellStart + " d, l, <right arrow> </th>\n " + cellStart + " Right </th>\n </tr>\n <tr>\n " + cellStart + " n </th>\n " + cellStart + " Next Category </th>\n </tr>\n <tr>\n " + cellStart + " p </th>\n " + cellStart + " Previous Category </th>\n </tr>\n\n </table>");
|
| +}
|
| +// ********** Code for UIState **************
|
| +function UIState() {
|
| +
|
| +}
|
| +UIState.prototype.startHistoryTracking = function() {
|
| + var $this = this; // closure support
|
| + this.stopHistoryTracking();
|
| + var firstEvent = true;
|
| + this._historyTracking = to$call$1(EventBatch.wrap((function (event) {
|
| + var state = html_get$window().get$location().get$hash();
|
| + if (state.startsWith("#")) {
|
| + state = state.substring((1), state.length);
|
| + }
|
| + if (firstEvent && state != "") {
|
| + html_get$window().get$history().replaceState(null, html_get$document().get$title(), "#");
|
| + }
|
| + else if (state != "") {
|
| + $this.loadFromHistory(json_JSON.parse(state));
|
| + }
|
| + firstEvent = false;
|
| + })
|
| + ));
|
| + html_get$window().get$on().get$popState().add(this._historyTracking, false);
|
| +}
|
| +UIState.prototype.stopHistoryTracking = function() {
|
| + if (this._historyTracking != null) {
|
| + html_get$window().get$on().get$popState().add(this._historyTracking, false);
|
| + }
|
| +}
|
| +UIState.prototype.pushToHistory = function() {
|
| + if (this._historyTracking == null) {
|
| + $throw("history tracking not started");
|
| + }
|
| + var state = json_JSON.stringify(this.toHistory());
|
| + html_get$window().get$history().pushState(null, html_get$document().get$title(), "#" + state);
|
| +}
|
| +// ********** Code for SwarmState **************
|
| +$inherits(SwarmState, UIState);
|
| +function SwarmState(_dataModel) {
|
| + var $this = this; // closure support
|
| + this._dataModel = _dataModel;
|
| + this.currentArticle = new ObservableValue_Article();
|
| + this.storyMaximized = new ObservableValue_bool(false);
|
| + this.storyTextMode = new ObservableValue_bool(true);
|
| + this.selectedArticle = new ObservableValue_Article();
|
| + UIState.call(this);
|
| + this.startHistoryTracking();
|
| + this._sectionIterator = new BiIterator_Section(this._dataModel.get$sections());
|
| + this._feedIterator = new BiIterator_Feed(this._sectionIterator.get$current().feeds);
|
| + this._articleIterator = new BiIterator_Article(this._feedIterator.get$current().articles);
|
| + this.currentArticle.addChangeListener((function (e) {
|
| + $this._articleIterator.jumpToValue($this.currentArticle.get$value());
|
| + })
|
| + );
|
| +}
|
| +SwarmState.prototype.toHistory = function() {
|
| + var data = new HashMapImplementation();
|
| + data.$setindex("section", this.get$currentSection().id);
|
| + data.$setindex("feed", this.get$currentFeed().id);
|
| + if (this.currentArticle.get$value() != null) {
|
| + data.$setindex("article", this.currentArticle.get$value().id);
|
| + }
|
| + return data;
|
| +}
|
| +SwarmState.prototype.loadFromHistory = function(values) {
|
| + if (values.$index("section") != null) {
|
| + this._sectionIterator.jumpToValue(this._dataModel.findSectionById(values.$index("section")));
|
| + }
|
| + else {
|
| + this._sectionIterator = new BiIterator_Section(this._dataModel.get$sections());
|
| + }
|
| + if (values.$index("feed") != null && this.get$currentSection() != null) {
|
| + this._feedIterator.jumpToValue(this.get$currentSection().findFeed(values.$index("feed")));
|
| + }
|
| + else {
|
| + this._feedIterator = new BiIterator_Feed(this._sectionIterator.get$current().feeds);
|
| + }
|
| + if (values.$index("article") != null && this.get$currentFeed() != null) {
|
| + this.currentArticle.set$value(this.get$currentFeed().findArticle(values.$index("article")));
|
| + this._articleIterator.jumpToValue(this.currentArticle.get$value());
|
| + }
|
| + else {
|
| + this._articleIterator = new BiIterator_Article(this._feedIterator.get$current().articles);
|
| + this.currentArticle.set$value(null);
|
| + }
|
| + this.storyMaximized.set$value(false);
|
| +}
|
| +SwarmState.prototype.goToNextArticle = function() {
|
| + this.currentArticle.set$value(this._articleIterator.next());
|
| + this.selectedArticle.set$value(this._articleIterator.get$current());
|
| +}
|
| +SwarmState.prototype.goToPreviousArticle = function() {
|
| + this.currentArticle.set$value(this._articleIterator.previous());
|
| + this.selectedArticle.set$value(this._articleIterator.get$current());
|
| +}
|
| +SwarmState.prototype.goToNextSelectedArticle = function() {
|
| + this.selectedArticle.set$value(this._articleIterator.next());
|
| +}
|
| +SwarmState.prototype.goToPreviousSelectedArticle = function() {
|
| + this.selectedArticle.set$value(this._articleIterator.previous());
|
| +}
|
| +SwarmState.prototype.goToNextFeed = function() {
|
| + var newFeed = this._feedIterator.next();
|
| + var oldIndex = this._articleIterator.currentIndex.get$value();
|
| + this._articleIterator = new BiIterator_Article(newFeed.get$articles(), this._articleIterator.currentIndex.listeners);
|
| + this._articleIterator.currentIndex.set$value(oldIndex);
|
| + this.selectedArticle.set$value(this._articleIterator.get$current());
|
| +}
|
| +SwarmState.prototype.goToPreviousFeed = function() {
|
| + var newFeed = this._feedIterator.previous();
|
| + var oldIndex = this._articleIterator.currentIndex.get$value();
|
| + this._articleIterator = new BiIterator_Article(newFeed.get$articles(), this._articleIterator.currentIndex.listeners);
|
| + this._articleIterator.currentIndex.set$value(oldIndex);
|
| + this.selectedArticle.set$value(this._articleIterator.get$current());
|
| +}
|
| +SwarmState.prototype.goToNextSection = function(sliderMenu) {
|
| + var oldSection = this.get$currentSection();
|
| + var oldIndex = this._articleIterator.currentIndex.get$value();
|
| + sliderMenu.selectNext(true);
|
| + if ($ne(oldSection, this._sectionIterator.get$current())) {
|
| + this._feedIterator = new BiIterator_Feed(this._sectionIterator.get$current().feeds, this._feedIterator.currentIndex.listeners);
|
| + this._articleIterator = new BiIterator_Article(this._feedIterator.get$current().articles, this._articleIterator.currentIndex.listeners);
|
| + this._articleIterator.currentIndex.set$value(oldIndex);
|
| + this.selectedArticle.set$value(this._articleIterator.get$current());
|
| + }
|
| +}
|
| +SwarmState.prototype.goToPreviousSection = function(sliderMenu) {
|
| + var oldSection = this.get$currentSection();
|
| + var oldIndex = this._articleIterator.currentIndex.get$value();
|
| + sliderMenu.selectPrevious(true);
|
| + if ($ne(oldSection, this._sectionIterator.get$current())) {
|
| + this._feedIterator = new BiIterator_Feed(this._sectionIterator.get$current().feeds, this._feedIterator.currentIndex.listeners);
|
| + this._feedIterator.currentIndex.set$value(this._feedIterator.list.get$length() - (1));
|
| + this._articleIterator = new BiIterator_Article(this._feedIterator.get$current().articles, this._articleIterator.currentIndex.listeners);
|
| + this._articleIterator.currentIndex.set$value(oldIndex);
|
| + this.selectedArticle.set$value(this._articleIterator.get$current());
|
| + }
|
| +}
|
| +SwarmState.prototype.selectStoryAsCurrent = function() {
|
| + this.currentArticle.set$value(this._articleIterator.get$current());
|
| + this.selectedArticle.set$value(this._articleIterator.get$current());
|
| +}
|
| +SwarmState.prototype.clearCurrentArticle = function() {
|
| + this.currentArticle.set$value(null);
|
| +}
|
| +SwarmState.prototype.goToFirstArticleInSection = function() {
|
| + this.selectedArticle.set$value(this._articleIterator.get$current());
|
| +}
|
| +SwarmState.prototype.get$inMainView = function() {
|
| + return this.currentArticle.get$value() == null;
|
| +}
|
| +SwarmState.prototype.get$hasArticleSelected = function() {
|
| + return this.selectedArticle.get$value() != null;
|
| +}
|
| +SwarmState.prototype.markCurrentAsRead = function() {
|
| + this.currentArticle.get$value().unread.set$value(false);
|
| +}
|
| +SwarmState.prototype.moveToNewSection = function(sectionTitle) {
|
| + this._sectionIterator.currentIndex.set$value(this._dataModel.findSectionIndex(sectionTitle));
|
| + this._feedIterator = new BiIterator_Feed(this._sectionIterator.get$current().feeds, this._feedIterator.currentIndex.listeners);
|
| + this._articleIterator = new BiIterator_Article(this._feedIterator.get$current().articles, this._articleIterator.currentIndex.listeners);
|
| +}
|
| +SwarmState.prototype.get$currentSection = function() {
|
| + return this._sectionIterator.get$current();
|
| +}
|
| +SwarmState.prototype.get$currentFeed = function() {
|
| + return this._feedIterator.get$current();
|
| +}
|
| +// ********** Code for FrontView **************
|
| +$inherits(FrontView, CompositeView);
|
| +function FrontView(swarm) {
|
| + var $this = this; // closure support
|
| + this.backKeyPresses = HashSetImplementation.HashSetImplementation$from$factory([(8), (27)]);
|
| + this.rightKeyPresses = HashSetImplementation.HashSetImplementation$from$factory([(39), (68), (76)]);
|
| + this.swarm = swarm;
|
| + this.previousPageKeyPresses = HashSetImplementation.HashSetImplementation$from$factory([(80)]);
|
| + this.nextPageKeyPresses = HashSetImplementation.HashSetImplementation$from$factory([(78)]);
|
| + this.leftKeyPresses = HashSetImplementation.HashSetImplementation$from$factory([(37), (65), (72)]);
|
| + this.openKeyPresses = HashSetImplementation.HashSetImplementation$from$factory([(13), (79)]);
|
| + this.nextPrevShown = false;
|
| + this.downKeyPresses = HashSetImplementation.HashSetImplementation$from$factory([(74), (40)]);
|
| + this.upKeyPresses = HashSetImplementation.HashSetImplementation$from$factory([(75), (38)]);
|
| + CompositeView.call(this, "front-view fullpage", false, false, false, false);
|
| + this.topView = new CompositeView("top-view", false, false, false, false);
|
| + this.headerView = new HeaderView(this.swarm);
|
| + this.topView.addChild(this.headerView);
|
| + this.sliderMenu = new SliderMenu(this.swarm.sections.get$sectionTitles(), (function (sectionTitle) {
|
| + $this.swarm.state.moveToNewSection(sectionTitle);
|
| + $this._onSectionSelected(sectionTitle);
|
| + $this.swarm.state.selectedArticle.set$value(null);
|
| + })
|
| + );
|
| + this.topView.addChild(this.sliderMenu);
|
| + this.addChild(this.topView);
|
| + this.bottomView = new CompositeView("bottom-view", false, false, false, false);
|
| + this.addChild(this.bottomView);
|
| + this.sections = new ConveyorView();
|
| + this.sections.viewSelected = this.get$_onSectionTransitionEnded();
|
| +}
|
| +FrontView.prototype.get$currentSection = function() {
|
| + var view = this.sections.selectedView;
|
| + if (view == null) {
|
| + view = this.sections.childViews.$index((0));
|
| + this.sections.selectView(view, true);
|
| + }
|
| + return view;
|
| +}
|
| +FrontView.prototype.afterRender = function(node) {
|
| + var $this = this; // closure support
|
| + this._createSectionViews();
|
| + this.attachWatch(this.swarm.state.currentArticle, (function (e) {
|
| + $this._refreshCurrentArticle();
|
| + })
|
| + );
|
| + this.attachWatch(this.swarm.state.storyMaximized, (function (e) {
|
| + $this._refreshMaximized();
|
| + })
|
| + );
|
| +}
|
| +FrontView.prototype._refreshCurrentArticle = function() {
|
| + if (!this.swarm.state.get$inMainView()) {
|
| + this._animateToStory(this.swarm.state.currentArticle.get$value());
|
| + }
|
| + else {
|
| + this._animateToMainView();
|
| + }
|
| +}
|
| +FrontView.prototype._animateToMainView = function() {
|
| + var $this = this; // closure support
|
| + this.sliderMenu.removeClass("hidden");
|
| + this.storyView.addClass("hidden-story");
|
| + this.get$currentSection().set$storyMode(false);
|
| + this.headerView.startTransitionToMainView();
|
| + this.get$currentSection().dataSourceView.reattachSubview(this.detachedView.source, this.detachedView, true);
|
| + this.storyView.get$node().get$on().get$transitionEnd().add$1(function handler(e) {
|
| + $this.storyView.get$node().get$on().get$transitionEnd().remove$2(handler, false);
|
| + $this.get$currentSection().set$hidden(false);
|
| + $this.removeChild($this.storyView);
|
| + $this.storyView = null;
|
| + $this.detachedView.removeClass("sel");
|
| + $this.detachedView = null;
|
| + }
|
| + );
|
| +}
|
| +FrontView.prototype._animateToStory = function(item) {
|
| + var $this = this; // closure support
|
| + var source = item.dataSource;
|
| + if (this.detachedView != null && $ne(this.detachedView.source, source)) {
|
| + return;
|
| + }
|
| + if (this.storyView != null) {
|
| + this.removeChild(this.storyView);
|
| + this.storyView = this.addChild(new StoryContentView(this.swarm, item));
|
| + }
|
| + else {
|
| + var view = this.get$currentSection().findView(source);
|
| + var newPosition = FxUtil.computeRelativePosition(view.get$node(), this.bottomView.get$node());
|
| + this.get$currentSection().dataSourceView.detachSubview(view.get$source());
|
| + this.detachedView = view;
|
| + FxUtil.setPosition(view.get$node(), newPosition);
|
| + this.bottomView.addChild(view);
|
| + view.addClass$1("sel");
|
| + this.get$currentSection().set$storyMode(true);
|
| + this.storyView = new StoryContentView(this.swarm, item);
|
| + html_get$window().setTimeout((function () {
|
| + $this._animateDataSourceToMinimized();
|
| + $this.sliderMenu.addClass("hidden");
|
| + html_get$window().setTimeout((function () {
|
| + $this.storyView.addClass("hidden-story");
|
| + $this.addChild($this.storyView);
|
| + html_get$window().setTimeout((function () {
|
| + $this.storyView.removeClass("hidden-story");
|
| + })
|
| + , (0));
|
| + $this.headerView.endTransitionToStoryView();
|
| + })
|
| + , (0));
|
| + })
|
| + , (0));
|
| + }
|
| +}
|
| +FrontView.prototype._refreshMaximized = function() {
|
| + if (this.swarm.state.storyMaximized.get$value()) {
|
| + this._animateDataSourceToMaximized();
|
| + }
|
| + else {
|
| + this._animateDataSourceToMinimized();
|
| + }
|
| +}
|
| +FrontView.prototype._animateDataSourceToMaximized = function() {
|
| + FxUtil.setWebkitTransform(this.topView.get$node(), (0), (-80), (0));
|
| + if (this.detachedView != null) {
|
| + FxUtil.setWebkitTransform(this.detachedView.get$node(), (0), (-34), (0));
|
| + }
|
| +}
|
| +FrontView.prototype._animateDataSourceToMinimized = function() {
|
| + if (this.detachedView != null) {
|
| + FxUtil.setWebkitTransform(this.detachedView.get$node(), (0), (0), (0));
|
| + FxUtil.setWebkitTransform(this.topView.get$node(), (0), (0), (0));
|
| + }
|
| +}
|
| +FrontView.prototype._onSectionTransitionEnded = function(selectedView) {
|
| + var $$list = this.sections.childViews;
|
| + for (var $$i = 0;$$i < $$list.get$length(); $$i++) {
|
| + var view = $$list.$index($$i);
|
| + if ($eq(view, selectedView)) {
|
| + view.showSources();
|
| + }
|
| + else {
|
| + view.hideSources();
|
| + }
|
| + }
|
| +}
|
| +FrontView.prototype.get$_onSectionTransitionEnded = function() {
|
| + return this._onSectionTransitionEnded.bind(this);
|
| +}
|
| +FrontView.prototype._onSectionSelected = function(sectionTitle) {
|
| + var section = this.swarm.sections.findSection(sectionTitle);
|
| + var $$list = this.sections.childViews;
|
| + for (var $$i = 0;$$i < $$list.get$length(); $$i++) {
|
| + var view = $$list.$index($$i);
|
| + if ($eq(view.get$section(), section)) {
|
| + this.sections.selectView(view, true);
|
| + break;
|
| + }
|
| + }
|
| +}
|
| +FrontView.prototype._createSectionViews = function() {
|
| + var $$list = this.swarm.sections;
|
| + for (var $$i = $$list.iterator(); $$i.hasNext(); ) {
|
| + var section = $$i.next$0();
|
| + var viewFactory = new DataSourceViewFactory(this.swarm);
|
| + var sectionView = new SectionView(this.swarm, section, viewFactory);
|
| + sectionView.get$node();
|
| + this.sections.addChild(sectionView);
|
| + }
|
| + this.addChild(this.sections);
|
| +}
|
| +FrontView.prototype.processKeyEvent = function(e) {
|
| + var code = e.get$keyCode();
|
| + if (this.swarm.state.get$inMainView()) {
|
| + if (!this.swarm.state.get$hasArticleSelected()) {
|
| + this.swarm.state.goToFirstArticleInSection();
|
| + }
|
| + else if (this.rightKeyPresses.contains(code)) {
|
| + this.swarm.state.goToNextFeed();
|
| + }
|
| + else if (this.leftKeyPresses.contains(code)) {
|
| + this.swarm.state.goToPreviousFeed();
|
| + }
|
| + else if (this.downKeyPresses.contains(code)) {
|
| + this.swarm.state.goToNextSelectedArticle();
|
| + }
|
| + else if (this.upKeyPresses.contains(code)) {
|
| + this.swarm.state.goToPreviousSelectedArticle();
|
| + }
|
| + else if (this.openKeyPresses.contains(code)) {
|
| + this.swarm.state.selectStoryAsCurrent();
|
| + }
|
| + else if (this.nextPageKeyPresses.contains(code)) {
|
| + this.swarm.state.goToNextSection(this.sliderMenu);
|
| + }
|
| + else if (this.previousPageKeyPresses.contains(code)) {
|
| + this.swarm.state.goToPreviousSection(this.sliderMenu);
|
| + }
|
| + }
|
| + else {
|
| + if (this.downKeyPresses.contains(code)) {
|
| + this.swarm.state.goToNextArticle();
|
| + }
|
| + else if (this.upKeyPresses.contains(code)) {
|
| + this.swarm.state.goToPreviousArticle();
|
| + }
|
| + else if (this.backKeyPresses.contains(code)) {
|
| + this.swarm.state.clearCurrentArticle();
|
| + }
|
| + }
|
| +}
|
| +// ********** Code for SwarmBackButton **************
|
| +$inherits(SwarmBackButton, View);
|
| +function SwarmBackButton(swarm) {
|
| + this.swarm = swarm;
|
| + View.call(this);
|
| +}
|
| +SwarmBackButton.prototype.render = function() {
|
| + return ElementWrappingImplementation.ElementWrappingImplementation$html$factory("<div class=\"back-arrow button\"></div>");
|
| +}
|
| +SwarmBackButton.prototype.afterRender = function(node) {
|
| + var $this = this; // closure support
|
| + this.addOnClick((function (e) {
|
| + _backToMain($this.swarm.state);
|
| + })
|
| + );
|
| +}
|
| +// ********** Code for HeaderView **************
|
| +$inherits(HeaderView, CompositeView);
|
| +function HeaderView(swarm) {
|
| + this.swarm = swarm;
|
| + CompositeView.call(this, "header-view", false, false, false, false);
|
| + this._backButton = this.addChild(new SwarmBackButton(this.swarm));
|
| + this._title = this.addChild(View.div("app-title", "Swarm"));
|
| + this._configButton = this.addChild(View.div("config button"));
|
| + this._refreshButton = this.addChild(View.div("refresh button"));
|
| + this._infoButton = this.addChild(View.div("info-button button"));
|
| + this._webBackButton = this.addChild(new WebBackButton());
|
| + this._webForwardButton = this.addChild(new WebForwardButton());
|
| + this._newWindowButton = this.addChild(View.div("new-window-button button"));
|
| +}
|
| +HeaderView.prototype.afterRender = function(node) {
|
| + var $this = this; // closure support
|
| + this.attachWatch(this.swarm.state.storyTextMode, (function (e) {
|
| + $this.refreshWebStoryButtons();
|
| + })
|
| + );
|
| + this._title.addOnClick((function (e) {
|
| + _backToMain($this.swarm.state);
|
| + })
|
| + );
|
| + this._configButton.addOnClick((function (e) {
|
| + if ($this._configDialog == null) {
|
| + $this._configDialog = ConfigHintDialog.ConfigHintDialog$factory($this.swarm.frontView, (function () {
|
| + $this.swarm.frontView.removeChild($this._configDialog);
|
| + $this._configDialog = null;
|
| + $this.swarm.sections.refresh();
|
| + })
|
| + );
|
| + $this.swarm.frontView.addChild($this._configDialog);
|
| + }
|
| + })
|
| + );
|
| + this._refreshButton.addOnClick(to$call$1(EventBatch.wrap((function (e) {
|
| + $this.swarm.refresh();
|
| + })
|
| + )));
|
| + this._infoButton.addOnClick((function (e) {
|
| + if ($this._infoDialog == null) {
|
| + $this._infoDialog = new HelpDialog($this.swarm.frontView, (function () {
|
| + $this.swarm.frontView.removeChild($this._infoDialog);
|
| + $this._infoDialog = null;
|
| + $this.swarm.sections.refresh();
|
| + })
|
| + );
|
| + $this.swarm.frontView.addChild($this._infoDialog);
|
| + }
|
| + })
|
| + );
|
| + this._newWindowButton.addOnClick((function (e) {
|
| + var currentArticleSrcUrl = $this.swarm.state.currentArticle.get$value().srcUrl;
|
| + html_get$window().open(currentArticleSrcUrl, "_blank");
|
| + })
|
| + );
|
| + this.startTransitionToMainView();
|
| +}
|
| +HeaderView.prototype.refreshWebStoryButtons = function() {
|
| + var webButtonsHidden = true;
|
| + if (this.swarm.state.currentArticle.get$value() != null) {
|
| + webButtonsHidden = this.swarm.state.storyTextMode.get$value();
|
| + }
|
| + this._webBackButton.set$hidden(webButtonsHidden);
|
| + this._webForwardButton.set$hidden(webButtonsHidden);
|
| + this._newWindowButton.set$hidden(webButtonsHidden);
|
| +}
|
| +HeaderView.prototype.startTransitionToMainView = function() {
|
| + this._title.removeClass("in-story");
|
| + this._backButton.removeClass("in-story");
|
| + this._configButton.removeClass("in-story");
|
| + this._refreshButton.removeClass("in-story");
|
| + this._infoButton.removeClass("in-story");
|
| + this.refreshWebStoryButtons();
|
| +}
|
| +HeaderView.prototype.endTransitionToStoryView = function() {
|
| + this._title.addClass("in-story");
|
| + this._backButton.addClass("in-story");
|
| + this._configButton.addClass("in-story");
|
| + this._refreshButton.addClass("in-story");
|
| + this._infoButton.addClass("in-story");
|
| +}
|
| +// ********** Code for WebBackButton **************
|
| +$inherits(WebBackButton, View);
|
| +function WebBackButton() {
|
| + View.call(this);
|
| +}
|
| +WebBackButton.prototype.render = function() {
|
| + return ElementWrappingImplementation.ElementWrappingImplementation$html$factory("<div class=\"web-back-button button\"></div>");
|
| +}
|
| +WebBackButton.prototype.afterRender = function(node) {
|
| + var $this = this; // closure support
|
| + this.addOnClick((function (e) {
|
| + WebBackButton.back();
|
| + })
|
| + );
|
| +}
|
| +WebBackButton.back = function() {
|
| + html_get$window().get$history().back();
|
| +}
|
| +// ********** Code for WebForwardButton **************
|
| +$inherits(WebForwardButton, View);
|
| +function WebForwardButton() {
|
| + View.call(this);
|
| +}
|
| +WebForwardButton.prototype.render = function() {
|
| + return ElementWrappingImplementation.ElementWrappingImplementation$html$factory("<div class=\"web-forward-button button\"></div>");
|
| +}
|
| +WebForwardButton.prototype.afterRender = function(node) {
|
| + var $this = this; // closure support
|
| + this.addOnClick((function (e) {
|
| + WebForwardButton.forward();
|
| + })
|
| + );
|
| +}
|
| +WebForwardButton.forward = function() {
|
| + html_get$window().get$history().forward();
|
| +}
|
| +// ********** Code for DataSourceViewFactory **************
|
| +function DataSourceViewFactory(swarm) {
|
| + this.swarm = swarm;
|
| +}
|
| +DataSourceViewFactory.prototype.newView = function(data) {
|
| + return new DataSourceView(data, this.swarm);
|
| +}
|
| +DataSourceViewFactory.prototype.get$width = function() {
|
| + return ArticleViewLayout.getSingleton().width;
|
| +}
|
| +DataSourceViewFactory.prototype.get$height = function() {
|
| + return null;
|
| +}
|
| +// ********** Code for DataSourceView **************
|
| +$inherits(DataSourceView, CompositeView);
|
| +function DataSourceView(source, swarm) {
|
| + this.source = source;
|
| + CompositeView.call(this, "query", false, false, false, false);
|
| + this.get$node().get$nodes().add$1(ElementWrappingImplementation.ElementWrappingImplementation$html$factory(("<h2>" + this.source.title + "</h2>")));
|
| + this.itemsView = this.addChild(new VariableSizeListView_Article(this.source.articles, new ArticleViewFactory(swarm), true, true, swarm.state.currentArticle, !Device.get$supportsTouch(), false, true, !Device.get$supportsTouch()));
|
| + this.itemsView.addClass("story-section");
|
| + this.get$node().get$nodes().add$1(ElementWrappingImplementation.ElementWrappingImplementation$html$factory("<div class=\"query-name-shadow\"></div>"));
|
| + this.get$node().get$on().get$mouseDown().add$2((function (e) {
|
| + swarm.state.storyMaximized.set$value(false);
|
| + })
|
| + , false);
|
| +}
|
| +DataSourceView.prototype.get$source = function() { return this.source; };
|
| +// ********** Code for ArticleViewFactory **************
|
| +function ArticleViewFactory(swarm) {
|
| + this.layout = ArticleViewLayout.getSingleton();
|
| + this.swarm = swarm;
|
| +}
|
| +ArticleViewFactory.prototype.get$layout = function() { return this.layout; };
|
| +ArticleViewFactory.prototype.set$layout = function(value) { return this.layout = value; };
|
| +ArticleViewFactory.prototype.newView = function(item) {
|
| + return new ArticleView(item, this.swarm, this.layout);
|
| +}
|
| +ArticleViewFactory.prototype.getWidth = function(item) {
|
| + return this.layout.width;
|
| +}
|
| +ArticleViewFactory.prototype.getHeight = function(item) {
|
| + return this.layout.computeHeight(item);
|
| +}
|
| +// ********** Code for ArticleViewMetrics **************
|
| +function ArticleViewMetrics(height, titleLines, bodyLines) {
|
| + this.titleLines = titleLines;
|
| + this.bodyLines = bodyLines;
|
| + this.height = height;
|
| +}
|
| +ArticleViewMetrics.prototype.get$height = function() { return this.height; };
|
| +// ********** Code for ArticleViewLayout **************
|
| +function ArticleViewLayout() {
|
| + this.measureTitleText = new MeasureText("bold 13px arial,sans-serif");
|
| + this.measureBodyText = new MeasureText("13px arial,sans-serif");
|
| + var screenWidth = html_get$window().get$screen().get$width();
|
| + this.width = (297);
|
| +}
|
| +ArticleViewLayout.prototype.get$width = function() { return this.width; };
|
| +ArticleViewLayout.prototype.set$width = function(value) { return this.width = value; };
|
| +ArticleViewLayout.getSingleton = function() {
|
| + if ($globals.ArticleViewLayout__singleton == null) {
|
| + $globals.ArticleViewLayout__singleton = new ArticleViewLayout();
|
| + }
|
| + return $globals.ArticleViewLayout__singleton;
|
| +}
|
| +ArticleViewLayout.prototype.computeHeight = function(item) {
|
| + if (item == null) {
|
| + dart_core_print("Null item encountered.");
|
| + return (0);
|
| + }
|
| + return this.computeLayout(item, null, null).height;
|
| +}
|
| +ArticleViewLayout.prototype.computeLayout = function(item, titleBuffer, snippetBuffer) {
|
| + var titleWidth = this.width - (36);
|
| + if (item.hasThumbnail) {
|
| + titleWidth = this.width - (107);
|
| + }
|
| + var titleLines = this.measureTitleText.addLineBrokenText(titleBuffer, item.title, titleWidth, (2));
|
| + var bodyLines = this.measureBodyText.addLineBrokenText(snippetBuffer, item.textBody, this.width - (36), (4));
|
| + var height = bodyLines * (18) + (102);
|
| + if ($eq(bodyLines, (0))) {
|
| + height = (92);
|
| + }
|
| + return new ArticleViewMetrics(height, titleLines, bodyLines);
|
| +}
|
| +// ********** Code for ArticleView **************
|
| +$inherits(ArticleView, View);
|
| +function ArticleView(item, swarm, articleLayout) {
|
| + this.articleLayout = articleLayout;
|
| + this.item = item;
|
| + this.swarm = swarm;
|
| + View.call(this);
|
| +}
|
| +ArticleView.prototype.render = function() {
|
| + var node;
|
| + var byline = this.item.author.length > (0) ? this.item.author : this.item.dataSource.title;
|
| + var date = DateUtils.toRecentTimeString(this.item.date);
|
| + var storyClass = "story no-thumb";
|
| + var thumbnail = "";
|
| + if (this.item.hasThumbnail) {
|
| + storyClass = "story";
|
| + thumbnail = ("<img src=\"" + this.item.get$thumbUrl() + "\"></img>");
|
| + }
|
| + var title = new StringBufferImpl("");
|
| + var snippet = new StringBufferImpl("");
|
| + var metrics = this.articleLayout.computeLayout(this.item, title, snippet);
|
| + node = ElementWrappingImplementation.ElementWrappingImplementation$html$factory(("<div class=\"" + storyClass + "\">\n " + thumbnail + "\n <div class=\"title\">" + title + "</div>\n <div class=\"byline\">" + byline + "</div>\n <div class=\"dateline\">" + date + "</div>\n <div class=\"snippet\">" + snippet + "</div>\n</div>"));
|
| + if ((this.item.textBody == null) || (this.item.textBody.trim() == "")) {
|
| + node.query(".snippet").remove();
|
| + }
|
| + return node;
|
| +}
|
| +ArticleView.prototype.afterRender = function(node) {
|
| + var $this = this; // closure support
|
| + this.addOnClick((function (e) {
|
| + $this.item.unread.set$value(false);
|
| + var oldArticle = $this.swarm.state.currentArticle.get$value();
|
| + $this.swarm.state.currentArticle.set$value($this.item);
|
| + $this.swarm.state.storyTextMode.set$value(true);
|
| + if (oldArticle == null) {
|
| + $this.swarm.state.pushToHistory();
|
| + }
|
| + })
|
| + );
|
| + this.watch(this.swarm.state.currentArticle, (function (e) {
|
| + if (!$this.swarm.state.get$inMainView()) {
|
| + $this.swarm.state.markCurrentAsRead();
|
| + }
|
| + $this._refreshSelected($this.swarm.state.currentArticle);
|
| + })
|
| + );
|
| + this.watch(this.swarm.state.selectedArticle, (function (e) {
|
| + $this._refreshSelected($this.swarm.state.selectedArticle);
|
| + $this._updateViewForSelectedArticle();
|
| + })
|
| + );
|
| + this.watch(this.item.unread, (function (e) {
|
| + if ($this.item.unread.get$value()) {
|
| + node.get$classes().add("story-unread");
|
| + }
|
| + else {
|
| + node.get$classes().remove("story-unread");
|
| + }
|
| + })
|
| + );
|
| +}
|
| +ArticleView.prototype._updateViewForSelectedArticle = function() {
|
| + var selArticle = this.swarm.state.selectedArticle.get$value();
|
| + if (this.swarm.state.get$hasArticleSelected()) {
|
| + if (!this.swarm.state.get$inMainView()) {
|
| + this.swarm.frontView.detachedView.itemsView.showView(selArticle);
|
| + }
|
| + else {
|
| + if (this.swarm.frontView.get$currentSection().inCurrentView(selArticle)) {
|
| + this.swarm.frontView.get$currentSection().dataSourceView.showView(selArticle.dataSource);
|
| + var dataView = this.swarm.frontView.get$currentSection().findView(selArticle.dataSource);
|
| + if (dataView != null) {
|
| + dataView.itemsView.showView(selArticle);
|
| + }
|
| + }
|
| + }
|
| + }
|
| +}
|
| +ArticleView.prototype._refreshSelected = function(curItem) {
|
| + if ($eq(curItem.get$value(), this.item)) {
|
| + this.addClass("sel");
|
| + }
|
| + else {
|
| + this.removeClass("sel");
|
| + }
|
| +}
|
| +ArticleView.prototype.item$1 = function($0) {
|
| + return this.item.call$1($0);
|
| +};
|
| +// ********** Code for StoryContentView **************
|
| +$inherits(StoryContentView, View);
|
| +function StoryContentView(swarm, item) {
|
| + this.item = item;
|
| + this.swarm = swarm;
|
| + View.call(this);
|
| +}
|
| +StoryContentView.prototype.get$childViews = function() {
|
| + return [this._pagedStory];
|
| +}
|
| +StoryContentView.prototype.render = function() {
|
| + var storyContent = ElementWrappingImplementation.ElementWrappingImplementation$html$factory(("<div class=\"story-content\">" + this.item.get$htmlBody() + "</div>"));
|
| + var $$list = storyContent.queryAll$1("iframe, script, style, object, embed, frameset, frame");
|
| + for (var $$i = $$list.iterator$0(); $$i.hasNext$0(); ) {
|
| + var element = $$i.next$0();
|
| + element.remove();
|
| + }
|
| + this._pagedStory = new PagedContentView(new View.fromNode$ctor(storyContent));
|
| + var $$list = storyContent.queryAll$1("a");
|
| + for (var $$i = $$list.iterator$0(); $$i.hasNext$0(); ) {
|
| + var anchor = $$i.next$0();
|
| + anchor.set$target("_blank");
|
| + }
|
| + var date = DateUtils.toRecentTimeString(this.item.date);
|
| + var container = ElementWrappingImplementation.ElementWrappingImplementation$html$factory((" <div class=\"story-view\">\n <div class=\"story-text-view\">\n <div class=\"story-header\">\n <a class=\"story-title\" href=\"" + this.item.srcUrl + "\" target=\"_blank\">\n " + this.item.title + "</a>\n <div class=\"story-byline\">\n " + this.item.author + " - " + this.item.dataSource.title + "\n </div>\n <div class=\"story-dateline\">" + date + "</div>\n </div>\n <div class=\"paged-story\"></div>\n <div class=\"spacer\"></div>\n </div>\n </div>"));
|
| + container.query$1(".paged-story").replaceWith$1(this._pagedStory.get$node());
|
| + return container;
|
| +}
|
| +StoryContentView.prototype.item$1 = function($0) {
|
| + return this.item.call$1($0);
|
| +};
|
| +// ********** Code for SectionView **************
|
| +$inherits(SectionView, CompositeView);
|
| +function SectionView(swarm, section, _viewFactory) {
|
| + this.pageState = new PageState();
|
| + this.swarm = swarm;
|
| + this.section = section;
|
| + this._viewFactory = _viewFactory;
|
| + this.loadingText = new View.html$ctor("<div class=\"loading-section\"></div>");
|
| + CompositeView.call(this, "section-view", false, false, false, false);
|
| + this.addChild(this.loadingText);
|
| +}
|
| +SectionView.prototype.get$section = function() { return this.section; };
|
| +SectionView.prototype.showSources = function() {
|
| + this.loadingText.get$node().get$style().set$display("none");
|
| + if (this.dataSourceView == null) {
|
| + this.dataSourceView = new ListView_Feed(this.section.feeds, this._viewFactory, true, false, null, true, true, true, false, this.pageState);
|
| + this.dataSourceView.addClass("data-source-view");
|
| + this.addChild(this.dataSourceView);
|
| + this.pageNumberView = this.addChild(new PageNumberView(this.pageState));
|
| + this.get$node().get$style().set$opacity("1");
|
| + }
|
| + else {
|
| + this.addChild(this.dataSourceView);
|
| + this.addChild(this.pageNumberView);
|
| + this.get$node().get$style().set$opacity("1");
|
| + }
|
| + this.dataSourceView.scroller.reconfigure((function () {
|
| +
|
| + })
|
| + );
|
| +}
|
| +SectionView.prototype.hideSources = function() {
|
| + if (this.dataSourceView != null) {
|
| + this.get$node().get$style().set$opacity("0.6");
|
| + this.removeChild(this.dataSourceView);
|
| + this.removeChild(this.pageNumberView);
|
| + }
|
| + this.loadingText.get$node().get$style().set$display("block");
|
| +}
|
| +SectionView.prototype.findView = function(dataSource) {
|
| + return this.dataSourceView.getSubview(this.dataSourceView.findIndex(dataSource));
|
| +}
|
| +SectionView.prototype.inCurrentView = function(article) {
|
| + return this.dataSourceView.findIndex(article.dataSource) != null;
|
| +}
|
| +SectionView.prototype.set$storyMode = function(inStoryMode) {
|
| + if (inStoryMode) {
|
| + this.addClass("hide-all-queries");
|
| + }
|
| + else {
|
| + this.removeClass("hide-all-queries");
|
| + }
|
| +}
|
| +// ********** Code for Swarm **************
|
| +$inherits(Swarm, App);
|
| +function Swarm() {
|
| + var $this = this; // closure support
|
| + this.onLoadFired = false;
|
| + App.call(this);
|
| + Sections.initializeFromUrl((function (currSections) {
|
| + $this.sections = currSections;
|
| + $this.state = new SwarmState($this.sections);
|
| + $this.setupApp();
|
| + })
|
| + );
|
| + html_get$document().get$on().get$keyUp().add((function (e) {
|
| + if ($this.frontView != null) {
|
| + $this.frontView.processKeyEvent(e);
|
| + }
|
| + })
|
| + , false);
|
| +}
|
| +Swarm.prototype.refresh = function() {
|
| + var $this = this; // closure support
|
| + this.sections.refresh();
|
| + this.sections.get$sectionTitles().forEach((function (title) {
|
| + var section = $this.sections.findSection(title);
|
| + section.feeds.addChangeListener((function (data) {
|
| + dart_core_print("Refresh sections not impl yet.");
|
| + })
|
| + );
|
| + })
|
| + );
|
| +}
|
| +Swarm.prototype.onLoad = function() {
|
| + this.onLoadFired = true;
|
| + App.prototype.onLoad.call(this);
|
| + this.setupApp();
|
| +}
|
| +Swarm.prototype.setupApp = function() {
|
| + if (this.onLoadFired && this.state != null) {
|
| + this.render();
|
| + this.refresh();
|
| + this.eraseSplashScreen();
|
| + }
|
| +}
|
| +Swarm.prototype.render = function() {
|
| + this.frontView = new FrontView(this);
|
| + this.frontView.addToDocument(html_get$document().get$body());
|
| +}
|
| +// ********** Code for Sections **************
|
| +function Sections(_sections) {
|
| + this._sections = _sections;
|
| +}
|
| +Sections.prototype.$index = function(i) {
|
| + return this._sections.$index(i);
|
| +}
|
| +Sections.prototype.get$length = function() {
|
| + return this._sections.get$length();
|
| +}
|
| +Sections.prototype.get$sectionTitles = function() {
|
| + return CollectionUtils.map(this._sections, (function (s) {
|
| + return s.get$title();
|
| + })
|
| + );
|
| +}
|
| +Sections.prototype.refresh = function() {
|
| +
|
| +}
|
| +Sections.prototype.findSection = function(name) {
|
| + return CollectionUtils.find(this._sections, (function (sect) {
|
| + return $eq(sect.get$title(), name);
|
| + })
|
| + );
|
| +}
|
| +Sections.prototype.iterator = function() {
|
| + return this._sections.iterator$0();
|
| +}
|
| +Sections.get$runningFromFile = function() {
|
| + return html_get$window().get$location().get$protocol().startsWith("file:");
|
| +}
|
| +Sections.get$home = function() {
|
| + return html_get$window().get$location().get$protocol() + "//" + html_get$window().get$location().get$host();
|
| +}
|
| +Sections.initializeFromData = function(data, callback) {
|
| + var decoder = new Decoder(data);
|
| + var nSections = decoder.readInt$0();
|
| + var sections = new Array();
|
| + for (var i = (0);
|
| + i < nSections; i++) {
|
| + sections.add$1(Section.decode(decoder));
|
| + }
|
| + callback.call$1(new Sections(sections));
|
| +}
|
| +Sections.initializeFromUrl = function(callback) {
|
| + if (Sections.get$runningFromFile()) {
|
| + Sections.initializeFromData(const$0029.$index("user.data"), callback);
|
| + }
|
| + else {
|
| + XMLHttpRequestWrappingImplementation.XMLHttpRequestWrappingImplementation$getTEMPNAME$factory(("" + Sections.get$home() + "/data/user.data"), to$call$1(EventBatch.wrap((function (request) {
|
| + Sections.initializeFromData(request.get$responseText(), callback);
|
| + })
|
| + )));
|
| + }
|
| +}
|
| +Sections.prototype.findSectionById = function(id) {
|
| + return CollectionUtils.find(this._sections, (function (section) {
|
| + return $eq(section.get$id(), id);
|
| + })
|
| + );
|
| +}
|
| +Sections.prototype.findSectionIndex = function(name) {
|
| + for (var i = (0);
|
| + i < this._sections.get$length(); i++) {
|
| + if (name == this._sections.$index(i).get$title()) {
|
| + return i;
|
| + }
|
| + }
|
| + return (-1);
|
| +}
|
| +Sections.prototype.get$sections = function() {
|
| + return this._sections;
|
| +}
|
| +Sections.prototype.filter = function(f) {
|
| + return Collections.filter(this, new Array(), f);
|
| +}
|
| +Sections.prototype.some = function(f) {
|
| + return Collections.some(this, f);
|
| +}
|
| +Sections.prototype.forEach = function(f) {
|
| + Collections.forEach(this, f);
|
| +}
|
| +Sections.prototype.isEmpty = function() {
|
| + return this.get$length() == (0);
|
| +}
|
| +Sections.prototype.filter$1 = function($0) {
|
| + return this.filter(to$call$1($0));
|
| +};
|
| +Sections.prototype.forEach$1 = function($0) {
|
| + return this.forEach(to$call$1($0));
|
| +};
|
| +Sections.prototype.iterator$0 = Sections.prototype.iterator;
|
| +// ********** Code for Section **************
|
| +function Section(id, title, feeds) {
|
| + this.title = title;
|
| + this.id = id;
|
| + this.feeds = feeds;
|
| +}
|
| +Section.prototype.get$id = function() { return this.id; };
|
| +Section.prototype.get$title = function() { return this.title; };
|
| +Section.decode = function(decoder) {
|
| + var sectionId = decoder.readString();
|
| + var sectionTitle = decoder.readString();
|
| + var nSources = decoder.readInt();
|
| + var feeds = new ObservableList_Feed();
|
| + for (var j = (0);
|
| + j < nSources; j++) {
|
| + feeds.add$1(Feed.decode(decoder));
|
| + }
|
| + return new Section(sectionId, sectionTitle, feeds);
|
| +}
|
| +Section.prototype.findFeed = function(id_) {
|
| + return CollectionUtils.find(this.feeds, (function (feed) {
|
| + return $eq(feed.get$id(), id_);
|
| + })
|
| + );
|
| +}
|
| +// ********** Code for Feed **************
|
| +function Feed(id, title, iconUrl, description) {
|
| + this.title = title;
|
| + this.error = new ObservableValue_bool(false);
|
| + this.description = description;
|
| + this.iconUrl = iconUrl;
|
| + this.id = id;
|
| + this.articles = new ObservableList_Article();
|
| +}
|
| +Feed.prototype.get$id = function() { return this.id; };
|
| +Feed.prototype.set$id = function(value) { return this.id = value; };
|
| +Feed.prototype.get$title = function() { return this.title; };
|
| +Feed.prototype.get$articles = function() { return this.articles; };
|
| +Feed.prototype.set$articles = function(value) { return this.articles = value; };
|
| +Feed.decode = function(decoder) {
|
| + var sourceId = decoder.readString();
|
| + var sourceTitle = decoder.readString();
|
| + var sourceIcon = decoder.readString();
|
| + var feed = new Feed(sourceId, sourceTitle, sourceIcon, "");
|
| + var nItems = decoder.readInt();
|
| + for (var i = (0);
|
| + i < nItems; i++) {
|
| + feed.get$articles().add$1(Article.decodeHeader(feed, decoder));
|
| + }
|
| + return feed;
|
| +}
|
| +Feed.prototype.findArticle = function(id_) {
|
| + return CollectionUtils.find(this.articles, (function (article) {
|
| + return $eq(article.get$id(), id_);
|
| + })
|
| + );
|
| +}
|
| +// ********** Code for Article **************
|
| +function Article(dataSource, id, date, title, author, srcUrl, hasThumbnail, textBody, _htmlBody, unread, error) {
|
| + this.title = title;
|
| + this.dataSource = dataSource;
|
| + this.date = date;
|
| + this.srcUrl = srcUrl;
|
| + this.unread = new ObservableValue_bool(unread);
|
| + this.hasThumbnail = hasThumbnail;
|
| + this.textBody = textBody;
|
| + this.id = id;
|
| + this.error = error;
|
| + this.author = author;
|
| + this._htmlBody = _htmlBody;
|
| +}
|
| +Article.prototype.get$id = function() { return this.id; };
|
| +Article.prototype.get$title = function() { return this.title; };
|
| +Article.prototype.get$htmlBody = function() {
|
| + this._ensureLoaded();
|
| + return this._htmlBody;
|
| +}
|
| +Article.prototype.get$dataUri = function() {
|
| + return Uri.encodeComponent(this.id).replaceAll(",", "%2C").replaceAll("%2F", "/");
|
| +}
|
| +Article.prototype.get$thumbUrl = function() {
|
| + if (!this.hasThumbnail) return null;
|
| + var home;
|
| + if (Sections.get$runningFromFile()) {
|
| + home = "http://dart.googleplex.com";
|
| + }
|
| + else {
|
| + home = Sections.get$home();
|
| + }
|
| + return ("" + home + "/data/" + this.get$dataUri() + ".jpg?v=0");
|
| +}
|
| +Article.prototype._ensureLoaded = function() {
|
| + if (this._htmlBody != null) return;
|
| + var name = ("" + this.get$dataUri() + ".html");
|
| + if (Sections.get$runningFromFile()) {
|
| + this._htmlBody = const$0029.$index(name);
|
| + }
|
| + else {
|
| + var req = XMLHttpRequestWrappingImplementation.XMLHttpRequestWrappingImplementation$factory();
|
| + req.open$3("GET", ("" + Sections.get$home() + "/data/" + name), false);
|
| + req.send$0();
|
| + this._htmlBody = req.get$responseText();
|
| + }
|
| +}
|
| +Article.decodeHeader = function(source, decoder) {
|
| + var id = decoder.readString();
|
| + var title = decoder.readString();
|
| + var srcUrl = decoder.readString();
|
| + var hasThumbnail = decoder.readBool();
|
| + var author = decoder.readString();
|
| + var dateInSeconds = decoder.readInt();
|
| + var snippet = decoder.readString();
|
| + var date = new DateImplementation.fromEpoch$ctor(dateInSeconds * (1000), new TimeZoneImplementation.utc$ctor());
|
| + return new Article(source, id, date, title, author, srcUrl, hasThumbnail, snippet, null, true, false);
|
| +}
|
| +// ********** Code for Decoder **************
|
| +function Decoder(data) {
|
| + this.data = data;
|
| + this.index = (0);
|
| +}
|
| +Decoder.prototype.readInt = function() {
|
| + var r = (0);
|
| + for (var i = (0);
|
| + ; i = $add(i, (1))) {
|
| + var v = this.data.charCodeAt(this.index++);
|
| + r = r | ((v & (63)) << ((6) * i));
|
| + if ((v & (64)) == (0)) break;
|
| + }
|
| + return r.toInt$0();
|
| +}
|
| +Decoder.prototype.readBool = function() {
|
| + var ch = this.data[this.index++];
|
| + return $eq(ch, "T");
|
| +}
|
| +Decoder.prototype.readString = function() {
|
| + var len = this.readInt();
|
| + var s = this.data.substring(this.index, this.index + len);
|
| + this.index = this.index + len;
|
| + return s;
|
| +}
|
| +Decoder.prototype.readInt$0 = Decoder.prototype.readInt;
|
| +// ********** Code for _PlaceholderView **************
|
| +$inherits(_PlaceholderView, View);
|
| +function _PlaceholderView() {
|
| + View.call(this);
|
| +}
|
| +_PlaceholderView.prototype.render = function() {
|
| + return ElementWrappingImplementation.ElementWrappingImplementation$tag$factory("div");
|
| +}
|
| +// ********** Code for GenericListView **************
|
| +$inherits(GenericListView, View);
|
| +function GenericListView(_layout, _data, _scrollable, _vertical, _selectedItem, _snapToItems, _paginate, _removeClippedViews, _showScrollbar, _pages) {
|
| + var $this = this; // closure support
|
| + this._snapToItems = _snapToItems;
|
| + this._selectedItem = _selectedItem;
|
| + this._vertical = _vertical;
|
| + this._data = _data;
|
| + this._itemViews = new HashMapImplementation();
|
| + this._scrollable = _scrollable;
|
| + this._paginate = _paginate;
|
| + this._removeClippedViews = _removeClippedViews;
|
| + this._layout = _layout;
|
| + this._pages = _pages;
|
| + this._viewLength = (0);
|
| + this._activeInterval = new Interval((0), (0));
|
| + this._showScrollbar = _showScrollbar;
|
| + View.call(this);
|
| + if (this._scrollable) {
|
| + html_get$window().get$on().get$resize().add((function (event) {
|
| + if ($this.get$isInDocument()) {
|
| + $this.onResize();
|
| + }
|
| + })
|
| + , false);
|
| + }
|
| +}
|
| +GenericListView.prototype.onSelectedItemChange = function() {
|
| + this._select(this.findIndex(this._lastSelectedItem), false);
|
| + this._select(this.findIndex(this._selectedItem.get$value()), true);
|
| + this._lastSelectedItem = this._selectedItem.get$value();
|
| +}
|
| +GenericListView.prototype.get$childViews = function() {
|
| + return this._itemViews.getValues$0();
|
| +}
|
| +GenericListView.prototype._onClick = function(e) {
|
| + var index = this._findAssociatedIndex(e.get$target());
|
| + if (index != null) {
|
| + this._selectedItem.set$value(this._data.$index(index));
|
| + }
|
| +}
|
| +GenericListView.prototype._findAssociatedIndex = function(leafNode) {
|
| + var node = leafNode;
|
| + while (node != null && $ne(node, this._containerElem)) {
|
| + if ($eq(node.get$parent(), this._containerElem)) {
|
| + return this._nodeToIndex(node);
|
| + }
|
| + node = node.get$parent();
|
| + }
|
| + return null;
|
| +}
|
| +GenericListView.prototype._nodeToIndex = function(node) {
|
| + var index = node.get$attributes().$index("data-index");
|
| + if (index != null && index.length > (0)) {
|
| + return Math.parseInt(index);
|
| + }
|
| + return null;
|
| +}
|
| +GenericListView.prototype.render = function() {
|
| + var $this = this; // closure support
|
| + var node = ElementWrappingImplementation.ElementWrappingImplementation$tag$factory("div");
|
| + if (this._scrollable) {
|
| + this._containerElem = ElementWrappingImplementation.ElementWrappingImplementation$tag$factory("div");
|
| + this._containerElem.set$tabIndex((-1));
|
| + node.get$nodes().add$1(this._containerElem);
|
| + }
|
| + else {
|
| + this._containerElem = node;
|
| + }
|
| + if (this._scrollable) {
|
| + this.scroller = new Scroller(this._containerElem, this._vertical, !this._vertical, true, (function () {
|
| + var width = $this._layout.getWidth($this._viewLength);
|
| + var height = $this._layout.getHeight($this._viewLength);
|
| + width = width != null ? width : (0);
|
| + height = height != null ? height : (0);
|
| + var completer = new CompleterImpl();
|
| + completer.complete$1(new Size(width, height));
|
| + return completer.get$future();
|
| + })
|
| + , this._paginate && this._snapToItems ? (0.84) : (1), null, false);
|
| + this.scroller.get$onContentMoved().add((function (e) {
|
| + return $this.renderVisibleItems(false);
|
| + })
|
| + , false);
|
| + if (this._pages != null) {
|
| + this.watch(this._pages.target, (function (s) {
|
| + return $this._onPageSelected();
|
| + })
|
| + );
|
| + }
|
| + if (this._snapToItems) {
|
| + this.scroller.get$onDecelStart().add((function (e) {
|
| + return $this._decelStart();
|
| + })
|
| + , false);
|
| + this.scroller.get$onScrollerDragEnd().add((function (e) {
|
| + return $this._decelStart();
|
| + })
|
| + , false);
|
| + }
|
| + if (this._showScrollbar) {
|
| + this._scrollbar = new Scrollbar(this.scroller, true);
|
| + }
|
| + }
|
| + else {
|
| + this._reserveArea();
|
| + this.renderVisibleItems(true);
|
| + }
|
| + return node;
|
| +}
|
| +GenericListView.prototype.afterRender = function(node) {
|
| + var $this = this; // closure support
|
| + var $0;
|
| + if (!!(($0 = this._data) && $0.is$ObservableList_D())) {
|
| + var observable = this._data;
|
| + this.attachWatch(observable, (function (e) {
|
| + if ($eq(e.target, observable)) {
|
| + $this.onDataChange();
|
| + }
|
| + })
|
| + );
|
| + }
|
| + if (this._selectedItem != null) {
|
| + this.addOnClick(function function_(e) {
|
| + $this._onClick(e);
|
| + }
|
| + );
|
| + }
|
| + if (this._selectedItem != null) {
|
| + this.watch(this._selectedItem, (function (summary) {
|
| + return $this.onSelectedItemChange();
|
| + })
|
| + );
|
| + }
|
| +}
|
| +GenericListView.prototype.onDataChange = function() {
|
| + this._layout.onDataChange();
|
| + this._renderItems();
|
| +}
|
| +GenericListView.prototype._reserveArea = function() {
|
| + var style = this._containerElem.get$style();
|
| + var width = this._layout.getWidth(this._viewLength);
|
| + var height = this._layout.getHeight(this._viewLength);
|
| + if (width != null) {
|
| + style.set$width(("" + width + "px"));
|
| + }
|
| + if (height != null) {
|
| + style.set$height(("" + height + "px"));
|
| + }
|
| + style.set$overflow("hidden");
|
| +}
|
| +GenericListView.prototype.onResize = function() {
|
| + var $this = this; // closure support
|
| + var lastViewLength = this._viewLength;
|
| + this.get$node().get$rect().then((function (rect) {
|
| + $this._viewLength = $this._vertical ? rect.offset.get$height() : rect.offset.get$width();
|
| + if ($this._viewLength != lastViewLength) {
|
| + if ($this._scrollbar != null) {
|
| + $this._scrollbar.refresh();
|
| + }
|
| + $this.renderVisibleItems(true);
|
| + }
|
| + })
|
| + );
|
| +}
|
| +GenericListView.prototype.enterDocument = function() {
|
| + if (this.scroller != null) {
|
| + this.onResize();
|
| + if (this._scrollbar != null) {
|
| + this._scrollbar.initialize();
|
| + }
|
| + }
|
| +}
|
| +GenericListView.prototype.getNextIndex = function(index, forward) {
|
| + var delta = forward ? (1) : (-1);
|
| + if (this._paginate) {
|
| + var newPage = Math.max((0), this._layout.getPage(index, this._viewLength) + delta);
|
| + index = this._layout.getPageStartIndex(newPage, this._viewLength);
|
| + }
|
| + else {
|
| + index += delta;
|
| + }
|
| + return GoogleMath.clamp(index, (0), this._data.get$length() - (1));
|
| +}
|
| +GenericListView.prototype._decelStart = function() {
|
| + var currentTarget = this.scroller.verticalEnabled ? this.scroller.get$currentTarget().y : this.scroller.get$currentTarget().x;
|
| + var current = this.scroller.verticalEnabled ? this.scroller.get$contentOffset().y : this.scroller.get$contentOffset().x;
|
| + var targetIndex = this._layout.getSnapIndex(currentTarget, this._viewLength);
|
| + if (current != currentTarget) {
|
| + var currentIndex = this._layout.getSnapIndex(current, this._viewLength);
|
| + if (currentIndex == targetIndex && (currentTarget - current).abs() > (15) && -this._layout.getOffset(targetIndex) != currentTarget) {
|
| + var snappedCurrentPosition = -this._layout.getOffset(targetIndex);
|
| + targetIndex = this.getNextIndex(targetIndex, currentTarget < current);
|
| + }
|
| + }
|
| + var targetPosition = -this._layout.getOffset(targetIndex);
|
| + if (currentTarget != targetPosition) {
|
| + if (this.scroller.verticalEnabled) {
|
| + this.scroller.throwTo(this.scroller.get$contentOffset().x, targetPosition);
|
| + }
|
| + else {
|
| + this.scroller.throwTo(targetPosition, this.scroller.get$contentOffset().y);
|
| + }
|
| + }
|
| + else {
|
| + if (this._pages != null) {
|
| + this._pages.target.set$value(this._layout.getPage(targetIndex, this._viewLength));
|
| + }
|
| + }
|
| +}
|
| +GenericListView.prototype._renderItems = function() {
|
| + for (var i = this._activeInterval.start;
|
| + i < this._activeInterval.end; i++) {
|
| + this._removeView(i);
|
| + }
|
| + this._itemViews.clear();
|
| + this._activeInterval = new Interval((0), (0));
|
| + if (this.scroller == null) {
|
| + this._reserveArea();
|
| + }
|
| + this.renderVisibleItems(false);
|
| +}
|
| +GenericListView.prototype._onPageSelected = function() {
|
| + if ($ne(this._pages.target, this._layout.getPage(this._activeInterval.start, this._viewLength))) {
|
| + this._throwTo(this._layout.getOffset(this._layout.getPageStartIndex(this._pages.target.get$value(), this._viewLength)));
|
| + }
|
| +}
|
| +GenericListView.prototype.get$_offset = function() {
|
| + return this.scroller.verticalEnabled ? this.scroller.getVerticalOffset() : this.scroller.getHorizontalOffset();
|
| +}
|
| +GenericListView.prototype.getVisibleInterval = function() {
|
| + return this._layout.computeVisibleInterval(this.get$_offset(), this._viewLength, (0));
|
| +}
|
| +GenericListView.prototype.renderVisibleItems = function(lengthChanged) {
|
| + var targetInterval;
|
| + if (this.scroller != null) {
|
| + targetInterval = this.getVisibleInterval();
|
| + }
|
| + else {
|
| + targetInterval = new Interval((0), this._data.get$length());
|
| + }
|
| + if (this._pages != null) {
|
| + this._pages.current.set$value(this._layout.getPage(targetInterval.start, this._viewLength));
|
| + }
|
| + if (this._pages != null) {
|
| + this._pages.length.set$value(this._data.get$length() > (0) ? this._layout.getPage(this._data.get$length() - (1), this._viewLength) + (1) : (0));
|
| + }
|
| + if (!this._removeClippedViews) {
|
| + targetInterval = targetInterval.union(this._activeInterval);
|
| + }
|
| + if ($eq(lengthChanged, false) && $eq(targetInterval, this._activeInterval)) {
|
| + return;
|
| + }
|
| + for (var i = this._activeInterval.start, end = Math.min(targetInterval.start, this._activeInterval.end);
|
| + i < end; i++) {
|
| + this._removeView(i);
|
| + }
|
| + for (var i = Math.max(targetInterval.end, this._activeInterval.start);
|
| + i < this._activeInterval.end; i++) {
|
| + this._removeView(i);
|
| + }
|
| + for (var i = targetInterval.start, end = Math.min(this._activeInterval.start, targetInterval.end);
|
| + i < end; i++) {
|
| + this._addView(i);
|
| + }
|
| + for (var i = Math.max(this._activeInterval.end, targetInterval.start);
|
| + i < targetInterval.end; i++) {
|
| + this._addView(i);
|
| + }
|
| + this._activeInterval = targetInterval;
|
| +}
|
| +GenericListView.prototype._removeView = function(index) {
|
| + if (!((this._itemViews.$index(index) instanceof _PlaceholderView))) {
|
| + this._itemViews.$index(index).get$node().remove$0();
|
| + this.childViewRemoved(this._itemViews.$index(index));
|
| + }
|
| +}
|
| +GenericListView.prototype._newView = function(index) {
|
| + var view = this._layout.newView(index);
|
| + view.get$node().get$attributes().$setindex("data-index", index.toString$0());
|
| + return view;
|
| +}
|
| +GenericListView.prototype._addView = function(index) {
|
| + if (this._itemViews.containsKey(index)) {
|
| + var view = this._itemViews.$index(index);
|
| + this._addViewHelper(view, index);
|
| + this.childViewAdded(view);
|
| + return view;
|
| + }
|
| + var view = this._newView(index);
|
| + this._itemViews.$setindex(index, view);
|
| + if (index == (0)) {
|
| + view.addClass$1("first-child");
|
| + }
|
| + this._selectHelper(view, $eq(this._data.$index(index), this._lastSelectedItem));
|
| + this._addViewHelper(view, index);
|
| + this.childViewAdded(view);
|
| + return view;
|
| +}
|
| +GenericListView.prototype._addViewHelper = function(view, index) {
|
| + this._positionSubview(view.get$node(), index);
|
| + if ($ne(view.get$node().get$parent(), this._containerElem)) {
|
| + this._containerElem.get$nodes().add$1(view.get$node());
|
| + }
|
| +}
|
| +GenericListView.prototype.findIndex = function(targetItem) {
|
| + var i = (0);
|
| + var $$list = this._data;
|
| + for (var $$i = 0;$$i < $$list.get$length(); $$i++) {
|
| + var item = $$list.$index($$i);
|
| + if ($eq(item, targetItem)) {
|
| + return i;
|
| + }
|
| + i++;
|
| + }
|
| + return null;
|
| +}
|
| +GenericListView.prototype._positionSubview = function(node, index) {
|
| + if (this._vertical) {
|
| + FxUtil.setTranslate(node, (0), this._layout.getOffset(index), (0));
|
| + }
|
| + else {
|
| + FxUtil.setTranslate(node, this._layout.getOffset(index), (0), (0));
|
| + }
|
| + node.get$style().set$zIndex(index.toString$0());
|
| +}
|
| +GenericListView.prototype._select = function(index, selected) {
|
| + if (index != null) {
|
| + var subview = this.getSubview(index);
|
| + if (subview != null) {
|
| + this._selectHelper(subview, selected);
|
| + }
|
| + }
|
| +}
|
| +GenericListView.prototype._selectHelper = function(view, selected) {
|
| + if (selected) {
|
| + view.addClass("sel");
|
| + }
|
| + else {
|
| + view.removeClass("sel");
|
| + }
|
| +}
|
| +GenericListView.prototype.getSubview = function(index) {
|
| + return this._itemViews.$index(index);
|
| +}
|
| +GenericListView.prototype.showView = function(targetItem) {
|
| + var index = this.findIndex(targetItem);
|
| + if (index != null) {
|
| + if (this._layout.getOffset(index) < -this.get$_offset()) {
|
| + this._throwTo(this._layout.getOffset(index));
|
| + }
|
| + else if (this._layout.getOffset(index + (1)) > (-this.get$_offset() + this._viewLength)) {
|
| + this._throwTo(this._layout.getOffset(index + (1)) - this._viewLength);
|
| + }
|
| + }
|
| +}
|
| +GenericListView.prototype._throwTo = function(offset) {
|
| + if (this._vertical) {
|
| + this.scroller.throwTo((0), -offset);
|
| + }
|
| + else {
|
| + this.scroller.throwTo(-offset, (0));
|
| + }
|
| +}
|
| +// ********** Code for GenericListView_Article **************
|
| +$inherits(GenericListView_Article, GenericListView);
|
| +function GenericListView_Article(_layout, _data, _scrollable, _vertical, _selectedItem, _snapToItems, _paginate, _removeClippedViews, _showScrollbar, _pages) {
|
| + var $this = this; // closure support
|
| + this._removeClippedViews = _removeClippedViews;
|
| + this._layout = _layout;
|
| + this._pages = _pages;
|
| + this._showScrollbar = _showScrollbar;
|
| + this._viewLength = (0);
|
| + this._data = _data;
|
| + this._itemViews = new HashMapImplementation();
|
| + this._vertical = _vertical;
|
| + this._paginate = _paginate;
|
| + this._activeInterval = new Interval((0), (0));
|
| + this._snapToItems = _snapToItems;
|
| + this._selectedItem = _selectedItem;
|
| + this._scrollable = _scrollable;
|
| + View.call(this);
|
| + if (this._scrollable) {
|
| + html_get$window().get$on().get$resize().add((function (event) {
|
| + if ($this.get$isInDocument()) {
|
| + $this.onResize();
|
| + }
|
| + })
|
| + , false);
|
| + }
|
| +}
|
| +GenericListView_Article.prototype.onResize = function() {
|
| + var $this = this; // closure support
|
| + var lastViewLength = this._viewLength;
|
| + this.get$node().get$rect().then((function (rect) {
|
| + $this._viewLength = $this._vertical ? rect.offset.get$height() : rect.offset.get$width();
|
| + if ($this._viewLength != lastViewLength) {
|
| + if ($this._scrollbar != null) {
|
| + $this._scrollbar.refresh();
|
| + }
|
| + $this.renderVisibleItems(true);
|
| + }
|
| + })
|
| + );
|
| +}
|
| +GenericListView_Article.prototype.getVisibleInterval = function() {
|
| + return this._layout.computeVisibleInterval(this.get$_offset(), this._viewLength, (0));
|
| +}
|
| +GenericListView_Article.prototype.renderVisibleItems = function(lengthChanged) {
|
| + var targetInterval;
|
| + if (this.scroller != null) {
|
| + targetInterval = this.getVisibleInterval();
|
| + }
|
| + else {
|
| + targetInterval = new Interval((0), this._data.get$length());
|
| + }
|
| + if (this._pages != null) {
|
| + this._pages.current.set$value(this._layout.getPage(targetInterval.start, this._viewLength));
|
| + }
|
| + if (this._pages != null) {
|
| + this._pages.length.set$value(this._data.get$length() > (0) ? this._layout.getPage(this._data.get$length() - (1), this._viewLength) + (1) : (0));
|
| + }
|
| + if (!this._removeClippedViews) {
|
| + targetInterval = targetInterval.union(this._activeInterval);
|
| + }
|
| + if ($eq(lengthChanged, false) && $eq(targetInterval, this._activeInterval)) {
|
| + return;
|
| + }
|
| + for (var i = this._activeInterval.start, end = Math.min(targetInterval.start, this._activeInterval.end);
|
| + i < end; i++) {
|
| + this._removeView(i);
|
| + }
|
| + for (var i = Math.max(targetInterval.end, this._activeInterval.start);
|
| + i < this._activeInterval.end; i++) {
|
| + this._removeView(i);
|
| + }
|
| + for (var i = targetInterval.start, end = Math.min(this._activeInterval.start, targetInterval.end);
|
| + i < end; i++) {
|
| + this._addView(i);
|
| + }
|
| + for (var i = Math.max(this._activeInterval.end, targetInterval.start);
|
| + i < targetInterval.end; i++) {
|
| + this._addView(i);
|
| + }
|
| + this._activeInterval = targetInterval;
|
| +}
|
| +GenericListView_Article.prototype._removeView = function(index) {
|
| + if (!((this._itemViews.$index(index) instanceof _PlaceholderView))) {
|
| + this._itemViews.$index(index).get$node().remove$0();
|
| + this.childViewRemoved(this._itemViews.$index(index));
|
| + }
|
| +}
|
| +GenericListView_Article.prototype._newView = function(index) {
|
| + var view = this._layout.newView(index);
|
| + view.get$node().get$attributes().$setindex("data-index", index.toString$0());
|
| + return view;
|
| +}
|
| +GenericListView_Article.prototype._addView = function(index) {
|
| + if (this._itemViews.containsKey(index)) {
|
| + var view = this._itemViews.$index(index);
|
| + this._addViewHelper(view, index);
|
| + this.childViewAdded(view);
|
| + return view;
|
| + }
|
| + var view = this._newView(index);
|
| + this._itemViews.$setindex(index, view);
|
| + if (index == (0)) {
|
| + view.addClass$1("first-child");
|
| + }
|
| + this._selectHelper(view, $eq(this._data.$index(index), this._lastSelectedItem));
|
| + this._addViewHelper(view, index);
|
| + this.childViewAdded(view);
|
| + return view;
|
| +}
|
| +GenericListView_Article.prototype._addViewHelper = function(view, index) {
|
| + this._positionSubview(view.get$node(), index);
|
| + if ($ne(view.get$node().get$parent(), this._containerElem)) {
|
| + this._containerElem.get$nodes().add$1(view.get$node());
|
| + }
|
| +}
|
| +GenericListView_Article.prototype.findIndex = function(targetItem) {
|
| + var i = (0);
|
| + var $$list = this._data;
|
| + for (var $$i = 0;$$i < $$list.get$length(); $$i++) {
|
| + var item = $$list.$index($$i);
|
| + if ($eq(item, targetItem)) {
|
| + return i;
|
| + }
|
| + i++;
|
| + }
|
| + return null;
|
| +}
|
| +GenericListView_Article.prototype._positionSubview = function(node, index) {
|
| + if (this._vertical) {
|
| + FxUtil.setTranslate(node, (0), this._layout.getOffset(index), (0));
|
| + }
|
| + else {
|
| + FxUtil.setTranslate(node, this._layout.getOffset(index), (0), (0));
|
| + }
|
| + node.get$style().set$zIndex(index.toString$0());
|
| +}
|
| +GenericListView_Article.prototype._selectHelper = function(view, selected) {
|
| + if (selected) {
|
| + view.addClass("sel");
|
| + }
|
| + else {
|
| + view.removeClass("sel");
|
| + }
|
| +}
|
| +GenericListView_Article.prototype.showView = function(targetItem) {
|
| + var index = this.findIndex(targetItem);
|
| + if (index != null) {
|
| + if (this._layout.getOffset(index) < -this.get$_offset()) {
|
| + this._throwTo(this._layout.getOffset(index));
|
| + }
|
| + else if (this._layout.getOffset(index + (1)) > (-this.get$_offset() + this._viewLength)) {
|
| + this._throwTo(this._layout.getOffset(index + (1)) - this._viewLength);
|
| + }
|
| + }
|
| +}
|
| +GenericListView_Article.prototype._throwTo = function(offset) {
|
| + if (this._vertical) {
|
| + this.scroller.throwTo((0), -offset);
|
| + }
|
| + else {
|
| + this.scroller.throwTo(-offset, (0));
|
| + }
|
| +}
|
| +// ********** Code for GenericListView_D **************
|
| +$inherits(GenericListView_D, GenericListView);
|
| +function GenericListView_D(_layout, _data, _scrollable, _vertical, _selectedItem, _snapToItems, _paginate, _removeClippedViews, _showScrollbar, _pages) {
|
| + var $this = this; // closure support
|
| + this._vertical = _vertical;
|
| + this._data = _data;
|
| + this._itemViews = new HashMapImplementation();
|
| + this._paginate = _paginate;
|
| + this._removeClippedViews = _removeClippedViews;
|
| + this._layout = _layout;
|
| + this._pages = _pages;
|
| + this._viewLength = (0);
|
| + this._showScrollbar = _showScrollbar;
|
| + this._snapToItems = _snapToItems;
|
| + this._selectedItem = _selectedItem;
|
| + this._scrollable = _scrollable;
|
| + this._activeInterval = new Interval((0), (0));
|
| + View.call(this);
|
| + if (this._scrollable) {
|
| + html_get$window().get$on().get$resize().add((function (event) {
|
| + if ($this.get$isInDocument()) {
|
| + $this.onResize();
|
| + }
|
| + })
|
| + , false);
|
| + }
|
| +}
|
| +GenericListView_D.prototype.onResize = function() {
|
| + var $this = this; // closure support
|
| + var lastViewLength = this._viewLength;
|
| + this.get$node().get$rect().then((function (rect) {
|
| + $this._viewLength = $this._vertical ? rect.offset.get$height() : rect.offset.get$width();
|
| + if ($this._viewLength != lastViewLength) {
|
| + if ($this._scrollbar != null) {
|
| + $this._scrollbar.refresh();
|
| + }
|
| + $this.renderVisibleItems(true);
|
| + }
|
| + })
|
| + );
|
| +}
|
| +GenericListView_D.prototype.getVisibleInterval = function() {
|
| + return this._layout.computeVisibleInterval(this.get$_offset(), this._viewLength, (0));
|
| +}
|
| +GenericListView_D.prototype.renderVisibleItems = function(lengthChanged) {
|
| + var targetInterval;
|
| + if (this.scroller != null) {
|
| + targetInterval = this.getVisibleInterval();
|
| + }
|
| + else {
|
| + targetInterval = new Interval((0), this._data.get$length());
|
| + }
|
| + if (this._pages != null) {
|
| + this._pages.current.set$value(this._layout.getPage(targetInterval.start, this._viewLength));
|
| + }
|
| + if (this._pages != null) {
|
| + this._pages.length.set$value(this._data.get$length() > (0) ? this._layout.getPage(this._data.get$length() - (1), this._viewLength) + (1) : (0));
|
| + }
|
| + if (!this._removeClippedViews) {
|
| + targetInterval = targetInterval.union(this._activeInterval);
|
| + }
|
| + if ($eq(lengthChanged, false) && $eq(targetInterval, this._activeInterval)) {
|
| + return;
|
| + }
|
| + for (var i = this._activeInterval.start, end = Math.min(targetInterval.start, this._activeInterval.end);
|
| + i < end; i++) {
|
| + this._removeView(i);
|
| + }
|
| + for (var i = Math.max(targetInterval.end, this._activeInterval.start);
|
| + i < this._activeInterval.end; i++) {
|
| + this._removeView(i);
|
| + }
|
| + for (var i = targetInterval.start, end = Math.min(this._activeInterval.start, targetInterval.end);
|
| + i < end; i++) {
|
| + this._addView(i);
|
| + }
|
| + for (var i = Math.max(this._activeInterval.end, targetInterval.start);
|
| + i < targetInterval.end; i++) {
|
| + this._addView(i);
|
| + }
|
| + this._activeInterval = targetInterval;
|
| +}
|
| +GenericListView_D.prototype._removeView = function(index) {
|
| + if (!((this._itemViews.$index(index) instanceof _PlaceholderView))) {
|
| + this._itemViews.$index(index).get$node().remove$0();
|
| + this.childViewRemoved(this._itemViews.$index(index));
|
| + }
|
| +}
|
| +GenericListView_D.prototype._newView = function(index) {
|
| + var view = this._layout.newView(index);
|
| + view.get$node().get$attributes().$setindex("data-index", index.toString$0());
|
| + return view;
|
| +}
|
| +GenericListView_D.prototype._addView = function(index) {
|
| + if (this._itemViews.containsKey(index)) {
|
| + var view = this._itemViews.$index(index);
|
| + this._addViewHelper(view, index);
|
| + this.childViewAdded(view);
|
| + return view;
|
| + }
|
| + var view = this._newView(index);
|
| + this._itemViews.$setindex(index, view);
|
| + if (index == (0)) {
|
| + view.addClass$1("first-child");
|
| + }
|
| + this._selectHelper(view, $eq(this._data.$index(index), this._lastSelectedItem));
|
| + this._addViewHelper(view, index);
|
| + this.childViewAdded(view);
|
| + return view;
|
| +}
|
| +GenericListView_D.prototype._addViewHelper = function(view, index) {
|
| + this._positionSubview(view.get$node(), index);
|
| + if ($ne(view.get$node().get$parent(), this._containerElem)) {
|
| + this._containerElem.get$nodes().add$1(view.get$node());
|
| + }
|
| +}
|
| +GenericListView_D.prototype._positionSubview = function(node, index) {
|
| + if (this._vertical) {
|
| + FxUtil.setTranslate(node, (0), this._layout.getOffset(index), (0));
|
| + }
|
| + else {
|
| + FxUtil.setTranslate(node, this._layout.getOffset(index), (0), (0));
|
| + }
|
| + node.get$style().set$zIndex(index.toString$0());
|
| +}
|
| +GenericListView_D.prototype._selectHelper = function(view, selected) {
|
| + if (selected) {
|
| + view.addClass("sel");
|
| + }
|
| + else {
|
| + view.removeClass("sel");
|
| + }
|
| +}
|
| +// ********** Code for GenericListView_Feed **************
|
| +$inherits(GenericListView_Feed, GenericListView);
|
| +function GenericListView_Feed(_layout, _data, _scrollable, _vertical, _selectedItem, _snapToItems, _paginate, _removeClippedViews, _showScrollbar, _pages) {
|
| + var $this = this; // closure support
|
| + this._viewLength = (0);
|
| + this._activeInterval = new Interval((0), (0));
|
| + this._snapToItems = _snapToItems;
|
| + this._selectedItem = _selectedItem;
|
| + this._scrollable = _scrollable;
|
| + this._removeClippedViews = _removeClippedViews;
|
| + this._layout = _layout;
|
| + this._pages = _pages;
|
| + this._showScrollbar = _showScrollbar;
|
| + this._vertical = _vertical;
|
| + this._data = _data;
|
| + this._itemViews = new HashMapImplementation();
|
| + this._paginate = _paginate;
|
| + View.call(this);
|
| + if (this._scrollable) {
|
| + html_get$window().get$on().get$resize().add((function (event) {
|
| + if ($this.get$isInDocument()) {
|
| + $this.onResize();
|
| + }
|
| + })
|
| + , false);
|
| + }
|
| +}
|
| +GenericListView_Feed.prototype.onResize = function() {
|
| + var $this = this; // closure support
|
| + var lastViewLength = this._viewLength;
|
| + this.get$node().get$rect().then((function (rect) {
|
| + $this._viewLength = $this._vertical ? rect.offset.get$height() : rect.offset.get$width();
|
| + if ($this._viewLength != lastViewLength) {
|
| + if ($this._scrollbar != null) {
|
| + $this._scrollbar.refresh();
|
| + }
|
| + $this.renderVisibleItems(true);
|
| + }
|
| + })
|
| + );
|
| +}
|
| +GenericListView_Feed.prototype.getVisibleInterval = function() {
|
| + return this._layout.computeVisibleInterval(this.get$_offset(), this._viewLength, (0));
|
| +}
|
| +GenericListView_Feed.prototype.renderVisibleItems = function(lengthChanged) {
|
| + var targetInterval;
|
| + if (this.scroller != null) {
|
| + targetInterval = this.getVisibleInterval();
|
| + }
|
| + else {
|
| + targetInterval = new Interval((0), this._data.get$length());
|
| + }
|
| + if (this._pages != null) {
|
| + this._pages.current.set$value(this._layout.getPage(targetInterval.start, this._viewLength));
|
| + }
|
| + if (this._pages != null) {
|
| + this._pages.length.set$value(this._data.get$length() > (0) ? this._layout.getPage(this._data.get$length() - (1), this._viewLength) + (1) : (0));
|
| + }
|
| + if (!this._removeClippedViews) {
|
| + targetInterval = targetInterval.union(this._activeInterval);
|
| + }
|
| + if ($eq(lengthChanged, false) && $eq(targetInterval, this._activeInterval)) {
|
| + return;
|
| + }
|
| + for (var i = this._activeInterval.start, end = Math.min(targetInterval.start, this._activeInterval.end);
|
| + i < end; i++) {
|
| + this._removeView(i);
|
| + }
|
| + for (var i = Math.max(targetInterval.end, this._activeInterval.start);
|
| + i < this._activeInterval.end; i++) {
|
| + this._removeView(i);
|
| + }
|
| + for (var i = targetInterval.start, end = Math.min(this._activeInterval.start, targetInterval.end);
|
| + i < end; i++) {
|
| + this._addView(i);
|
| + }
|
| + for (var i = Math.max(this._activeInterval.end, targetInterval.start);
|
| + i < targetInterval.end; i++) {
|
| + this._addView(i);
|
| + }
|
| + this._activeInterval = targetInterval;
|
| +}
|
| +GenericListView_Feed.prototype._removeView = function(index) {
|
| + if (!((this._itemViews.$index(index) instanceof _PlaceholderView))) {
|
| + this._itemViews.$index(index).get$node().remove$0();
|
| + this.childViewRemoved(this._itemViews.$index(index));
|
| + }
|
| +}
|
| +GenericListView_Feed.prototype._newView = function(index) {
|
| + var view = this._layout.newView(index);
|
| + view.get$node().get$attributes().$setindex("data-index", index.toString$0());
|
| + return view;
|
| +}
|
| +GenericListView_Feed.prototype._addView = function(index) {
|
| + if (this._itemViews.containsKey(index)) {
|
| + var view = this._itemViews.$index(index);
|
| + this._addViewHelper(view, index);
|
| + this.childViewAdded(view);
|
| + return view;
|
| + }
|
| + var view = this._newView(index);
|
| + this._itemViews.$setindex(index, view);
|
| + if (index == (0)) {
|
| + view.addClass$1("first-child");
|
| + }
|
| + this._selectHelper(view, $eq(this._data.$index(index), this._lastSelectedItem));
|
| + this._addViewHelper(view, index);
|
| + this.childViewAdded(view);
|
| + return view;
|
| +}
|
| +GenericListView_Feed.prototype._addViewHelper = function(view, index) {
|
| + this._positionSubview(view.get$node(), index);
|
| + if ($ne(view.get$node().get$parent(), this._containerElem)) {
|
| + this._containerElem.get$nodes().add$1(view.get$node());
|
| + }
|
| +}
|
| +GenericListView_Feed.prototype.detachSubview = function(itemData) {
|
| + var index = this.findIndex(itemData);
|
| + var view = this._itemViews.$index(index);
|
| + if (view == null) {
|
| + this._addView(index);
|
| + view = this._itemViews.$index(index);
|
| + }
|
| + var placeholder = new _PlaceholderView();
|
| + view.get$node().replaceWith(placeholder.get$node());
|
| + this._itemViews.$setindex(index, placeholder);
|
| + return view;
|
| +}
|
| +GenericListView_Feed.prototype.reattachSubview = function(data, view, animate) {
|
| + var $this = this; // closure support
|
| + var index = this.findIndex(data);
|
| + var currentPosition;
|
| + if (animate) {
|
| + currentPosition = FxUtil.computeRelativePosition(view.get$node(), this._containerElem);
|
| + }
|
| + view.enterDocument();
|
| + this._itemViews.$index(index).get$node().replaceWith$1(view.get$node());
|
| + this._itemViews.$setindex(index, view);
|
| + if (animate) {
|
| + FxUtil.setTranslate(view.get$node(), currentPosition.get$x(), currentPosition.get$y(), (0));
|
| + html_get$window().setTimeout((function () {
|
| + $this._positionSubview(view.get$node(), index);
|
| + })
|
| + , (0));
|
| + }
|
| + else {
|
| + this._positionSubview(view.get$node(), index);
|
| + }
|
| +}
|
| +GenericListView_Feed.prototype.findIndex = function(targetItem) {
|
| + var i = (0);
|
| + var $$list = this._data;
|
| + for (var $$i = 0;$$i < $$list.get$length(); $$i++) {
|
| + var item = $$list.$index($$i);
|
| + if ($eq(item, targetItem)) {
|
| + return i;
|
| + }
|
| + i++;
|
| + }
|
| + return null;
|
| +}
|
| +GenericListView_Feed.prototype._positionSubview = function(node, index) {
|
| + if (this._vertical) {
|
| + FxUtil.setTranslate(node, (0), this._layout.getOffset(index), (0));
|
| + }
|
| + else {
|
| + FxUtil.setTranslate(node, this._layout.getOffset(index), (0), (0));
|
| + }
|
| + node.get$style().set$zIndex(index.toString$0());
|
| +}
|
| +GenericListView_Feed.prototype._selectHelper = function(view, selected) {
|
| + if (selected) {
|
| + view.addClass("sel");
|
| + }
|
| + else {
|
| + view.removeClass("sel");
|
| + }
|
| +}
|
| +GenericListView_Feed.prototype.getSubview = function(index) {
|
| + return this._itemViews.$index(index);
|
| +}
|
| +GenericListView_Feed.prototype.showView = function(targetItem) {
|
| + var index = this.findIndex(targetItem);
|
| + if (index != null) {
|
| + if (this._layout.getOffset(index) < -this.get$_offset()) {
|
| + this._throwTo(this._layout.getOffset(index));
|
| + }
|
| + else if (this._layout.getOffset(index + (1)) > (-this.get$_offset() + this._viewLength)) {
|
| + this._throwTo(this._layout.getOffset(index + (1)) - this._viewLength);
|
| + }
|
| + }
|
| +}
|
| +GenericListView_Feed.prototype._throwTo = function(offset) {
|
| + if (this._vertical) {
|
| + this.scroller.throwTo((0), -offset);
|
| + }
|
| + else {
|
| + this.scroller.throwTo(-offset, (0));
|
| + }
|
| +}
|
| +// ********** Code for FixedSizeListViewLayout **************
|
| +function FixedSizeListViewLayout(itemViewFactory, _data, _vertical, _paginate) {
|
| + this._paginate = _paginate;
|
| + this.itemViewFactory = itemViewFactory;
|
| + this._vertical = _vertical;
|
| + this._data = _data;
|
| +}
|
| +FixedSizeListViewLayout.prototype.onDataChange = function() {
|
| +
|
| +}
|
| +FixedSizeListViewLayout.prototype.newView = function(index) {
|
| + return this.itemViewFactory.newView(this._data.$index(index));
|
| +}
|
| +FixedSizeListViewLayout.prototype.get$_itemLength = function() {
|
| + return this._vertical ? this.itemViewFactory.get$height() : this.itemViewFactory.get$width();
|
| +}
|
| +FixedSizeListViewLayout.prototype.getWidth = function(viewLength) {
|
| + return this._vertical ? this.itemViewFactory.get$width() : this.getLength(viewLength);
|
| +}
|
| +FixedSizeListViewLayout.prototype.getHeight = function(viewLength) {
|
| + return this._vertical ? this.getLength(viewLength) : this.itemViewFactory.get$height();
|
| +}
|
| +FixedSizeListViewLayout.prototype.getLength = function(viewLength) {
|
| + var itemLength = this._vertical ? this.itemViewFactory.get$height() : this.itemViewFactory.get$width();
|
| + if (viewLength == null || viewLength == (0)) {
|
| + return itemLength * this._data.get$length();
|
| + }
|
| + else if (this._paginate) {
|
| + if (this._data.get$length() > (0)) {
|
| + var pageLength = this.getPageLength(viewLength);
|
| + return this.getPage(this._data.get$length() - (1), viewLength) * pageLength + Math.max(viewLength, pageLength);
|
| + }
|
| + else {
|
| + return (0);
|
| + }
|
| + }
|
| + else {
|
| + return itemLength * (this._data.get$length() - (1)) + Math.max(viewLength, itemLength);
|
| + }
|
| +}
|
| +FixedSizeListViewLayout.prototype.getOffset = function(index) {
|
| + return index * this.get$_itemLength();
|
| +}
|
| +FixedSizeListViewLayout.prototype.getPageLength = function(viewLength) {
|
| + var itemsPerPage = (viewLength / this.get$_itemLength()).floor();
|
| + return (Math.max((1), itemsPerPage) * this.get$_itemLength()).toInt();
|
| +}
|
| +FixedSizeListViewLayout.prototype.getPage = function(index, viewLength) {
|
| + return (this.getOffset(index) / this.getPageLength(viewLength)).floor().toInt();
|
| +}
|
| +FixedSizeListViewLayout.prototype.getPageStartIndex = function(page, viewLength) {
|
| + return (this.getPageLength(viewLength) / this.get$_itemLength()).toInt() * page;
|
| +}
|
| +FixedSizeListViewLayout.prototype.getSnapIndex = function(offset, viewLength) {
|
| + var index = (-offset / this.get$_itemLength()).round().toInt();
|
| + if (this._paginate) {
|
| + index = this.getPageStartIndex(this.getPage(index, viewLength), viewLength);
|
| + }
|
| + return GoogleMath.clamp(index, (0), this._data.get$length() - (1));
|
| +}
|
| +FixedSizeListViewLayout.prototype.computeVisibleInterval = function(offset, viewLength, bufferLength) {
|
| + var targetIntervalStart = Math.max((0), ((-offset - bufferLength) / this.get$_itemLength()).floor());
|
| + var targetIntervalEnd = GoogleMath.clamp(((-offset + viewLength + bufferLength) / this.get$_itemLength()).ceil(), targetIntervalStart, this._data.get$length());
|
| + return new Interval(targetIntervalStart.toInt(), targetIntervalEnd.toInt());
|
| +}
|
| +// ********** Code for FixedSizeListViewLayout_D **************
|
| +$inherits(FixedSizeListViewLayout_D, FixedSizeListViewLayout);
|
| +function FixedSizeListViewLayout_D(itemViewFactory, _data, _vertical, _paginate) {
|
| + this._paginate = _paginate;
|
| + this._data = _data;
|
| + this._vertical = _vertical;
|
| + this.itemViewFactory = itemViewFactory;
|
| +}
|
| +// ********** Code for FixedSizeListViewLayout_Feed **************
|
| +$inherits(FixedSizeListViewLayout_Feed, FixedSizeListViewLayout);
|
| +function FixedSizeListViewLayout_Feed(itemViewFactory, _data, _vertical, _paginate) {
|
| + this._paginate = _paginate;
|
| + this._data = _data;
|
| + this._vertical = _vertical;
|
| + this.itemViewFactory = itemViewFactory;
|
| +}
|
| +// ********** Code for ListView **************
|
| +$inherits(ListView, GenericListView_D);
|
| +function ListView(data, itemViewFactory, scrollable, vertical, selectedItem, snapToItems, paginate, removeClippedViews, showScrollbar, pages) {
|
| + GenericListView_D.call(this, new FixedSizeListViewLayout_D(itemViewFactory, data, vertical, paginate), data, scrollable, vertical, selectedItem, snapToItems, paginate, removeClippedViews, showScrollbar, pages);
|
| +}
|
| +// ********** Code for ListView_Feed **************
|
| +$inherits(ListView_Feed, ListView);
|
| +function ListView_Feed(data, itemViewFactory, scrollable, vertical, selectedItem, snapToItems, paginate, removeClippedViews, showScrollbar, pages) {
|
| + GenericListView_Feed.call(this, new FixedSizeListViewLayout_Feed(itemViewFactory, data, vertical, paginate), data, scrollable, vertical, selectedItem, snapToItems, paginate, removeClippedViews, showScrollbar, pages);
|
| +}
|
| +// ********** Code for VariableSizeListViewLayout **************
|
| +function VariableSizeListViewLayout(itemViewFactory, data, _vertical, _paginate) {
|
| + this._lastVisibleInterval = new Interval((0), (0));
|
| + this._vertical = _vertical;
|
| + this._data = data;
|
| + this.itemViewFactory = itemViewFactory;
|
| + this._lastOffset = (0);
|
| + this._paginate = _paginate;
|
| + this._itemOffsets = [];
|
| + this._lengths = [];
|
| + this._itemOffsets.add$1((0));
|
| +}
|
| +VariableSizeListViewLayout.prototype.onDataChange = function() {
|
| + this._itemOffsets.clear$0();
|
| + this._itemOffsets.add$1((0));
|
| + this._lengths.clear$0();
|
| +}
|
| +VariableSizeListViewLayout.prototype.newView = function(index) {
|
| + return this.itemViewFactory.newView(this._data.$index(index));
|
| +}
|
| +VariableSizeListViewLayout.prototype.getWidth = function(viewLength) {
|
| + if (this._vertical) {
|
| + return this.itemViewFactory.getWidth(null);
|
| + }
|
| + else {
|
| + return this.getLength(viewLength);
|
| + }
|
| +}
|
| +VariableSizeListViewLayout.prototype.getHeight = function(viewLength) {
|
| + if (this._vertical) {
|
| + return this.getLength(viewLength);
|
| + }
|
| + else {
|
| + return this.itemViewFactory.getHeight(null);
|
| + }
|
| +}
|
| +VariableSizeListViewLayout.prototype.getLength = function(viewLength) {
|
| + if (this._data.get$length() == (0)) {
|
| + return viewLength;
|
| + }
|
| + else {
|
| + this.getOffset(this._data.get$length());
|
| + return (this.getOffset(this._data.get$length() - (1)) - this.getOffset((0))) + Math.max(this._lengths.$index(this._lengths.get$length() - (1)), viewLength);
|
| + }
|
| +}
|
| +VariableSizeListViewLayout.prototype.getOffset = function(index) {
|
| + if (index >= this._itemOffsets.get$length()) {
|
| + var offset = this._itemOffsets.$index(this._itemOffsets.get$length() - (1));
|
| + for (var i = this._itemOffsets.get$length();
|
| + i <= index; i++) {
|
| + var length = this._vertical ? this.itemViewFactory.getHeight(this._data.$index(i - (1))) : this.itemViewFactory.getWidth(this._data.$index(i - (1)));
|
| + offset += length;
|
| + this._itemOffsets.add$1(offset);
|
| + this._lengths.add$1(length);
|
| + }
|
| + }
|
| + return this._itemOffsets.$index(index);
|
| +}
|
| +VariableSizeListViewLayout.prototype.getPage = function(index, viewLength) {
|
| + $throw("Not implemented");
|
| +}
|
| +VariableSizeListViewLayout.prototype.getPageStartIndex = function(page, viewLength) {
|
| + $throw("Not implemented");
|
| +}
|
| +VariableSizeListViewLayout.prototype.getSnapIndex = function(offset, viewLength) {
|
| + for (var i = (1);
|
| + i < this._data.get$length(); i++) {
|
| + if (this.getOffset(i) + this.getOffset(i - (1)) > -offset * (2)) {
|
| + return i - (1);
|
| + }
|
| + }
|
| + return this._data.get$length() - (1);
|
| +}
|
| +VariableSizeListViewLayout.prototype.computeVisibleInterval = function(offset, viewLength, bufferLength) {
|
| + offset = offset.toInt();
|
| + var start = this._findFirstItemBefore(-offset - bufferLength, this._lastVisibleInterval != null ? this._lastVisibleInterval.start : (0));
|
| + var end = this._findFirstItemAfter(-offset + viewLength + bufferLength, this._lastVisibleInterval != null ? this._lastVisibleInterval.end : (0));
|
| + this._lastVisibleInterval = new Interval(start, Math.max(start, end));
|
| + this._lastOffset = offset;
|
| + return this._lastVisibleInterval;
|
| +}
|
| +VariableSizeListViewLayout.prototype._findFirstItemAfter = function(target, hint) {
|
| + for (var i = (0);
|
| + i < this._data.get$length(); i++) {
|
| + if (this.getOffset(i) > target) {
|
| + return i;
|
| + }
|
| + }
|
| + return this._data.get$length();
|
| +}
|
| +VariableSizeListViewLayout.prototype._findFirstItemBefore = function(target, hint) {
|
| + for (var i = (1);
|
| + i < this._data.get$length(); i++) {
|
| + if (this.getOffset(i) >= target) {
|
| + return i - (1);
|
| + }
|
| + }
|
| + return Math.max(this._data.get$length() - (1), (0));
|
| +}
|
| +// ********** Code for VariableSizeListView **************
|
| +$inherits(VariableSizeListView, GenericListView_D);
|
| +function VariableSizeListView(data, itemViewFactory, scrollable, vertical, selectedItem, snapToItems, paginate, removeClippedViews, showScrollbar, pages) {
|
| + GenericListView_D.call(this, new VariableSizeListViewLayout(itemViewFactory, data, vertical, paginate), data, scrollable, vertical, selectedItem, snapToItems, paginate, removeClippedViews, showScrollbar, pages);
|
| +}
|
| +// ********** Code for VariableSizeListView_Article **************
|
| +$inherits(VariableSizeListView_Article, VariableSizeListView);
|
| +function VariableSizeListView_Article(data, itemViewFactory, scrollable, vertical, selectedItem, snapToItems, paginate, removeClippedViews, showScrollbar, pages) {
|
| + GenericListView_Article.call(this, new VariableSizeListViewLayout(itemViewFactory, data, vertical, paginate), data, scrollable, vertical, selectedItem, snapToItems, paginate, removeClippedViews, showScrollbar, pages);
|
| +}
|
| +// ********** Code for PushButtonView **************
|
| +$inherits(PushButtonView, View);
|
| +function PushButtonView(_text, _cssClass, _clickHandler) {
|
| + this._text = _text;
|
| + this._cssClass = _cssClass;
|
| + this._clickHandler = _clickHandler;
|
| + View.call(this);
|
| +}
|
| +PushButtonView.prototype.render = function() {
|
| + return ElementWrappingImplementation.ElementWrappingImplementation$html$factory(("<button class=\"" + this._cssClass + "\">" + this._text + "</button>"));
|
| +}
|
| +PushButtonView.prototype.afterRender = function(node) {
|
| + this.addOnClick(to$call$1(this._clickHandler));
|
| +}
|
| +// ********** Code for CannedData **************
|
| +function CannedData() {}
|
| +// ********** Code for top level **************
|
| +function _backToMain(state) {
|
| + if (state.currentArticle.get$value() != null) {
|
| + state.clearCurrentArticle();
|
| + state.storyTextMode.set$value(true);
|
| + state.pushToHistory();
|
| + }
|
| +}
|
| +// ********** Library swarm **************
|
| +// ********** Code for top level **************
|
| +function main() {
|
| + new Swarm().run();
|
| +}
|
| +// ********** Generic Type Inheritance **************
|
| +/** Implements extends for generic types. */
|
| +function $inheritsMembers(child, parent) {
|
| + child = child.prototype;
|
| + parent = parent.prototype;
|
| + Object.getOwnPropertyNames(parent).forEach(function(name) {
|
| + if (typeof(child[name]) == 'undefined') child[name] = parent[name];
|
| + });
|
| +}
|
| +$inheritsMembers(_DoubleLinkedQueueEntrySentinel_E, DoubleLinkedQueueEntry_E);
|
| +$inheritsMembers(_DoubleLinkedQueueEntrySentinel_KeyValuePair_K$V, DoubleLinkedQueueEntry_KeyValuePair_K$V);
|
| +$inheritsMembers(_FixedSizeListIterator_html_html_Touch, _VariableSizeListIterator_html_html_Touch);
|
| +$inheritsMembers(ListView_Feed, GenericListView_Feed);
|
| +$inheritsMembers(VariableSizeListView_Article, GenericListView_Article);
|
| +// 376 dynamic types.
|
| +// 502 types
|
| +// 41 !leaf
|
| +(function(){
|
| + var v0/*CSSValueList*/ = 'CSSValueList|WebKitCSSFilterValue|WebKitCSSTransformValue';
|
| + var v1/*HTMLInputElement*/ = 'HTMLInputElement|HTMLIsIndexElement';
|
| + var v2/*HTMLMediaElement*/ = 'HTMLMediaElement|HTMLAudioElement|HTMLVideoElement';
|
| + var v3/*SVGTextPositioningElement*/ = 'SVGTextPositioningElement|SVGAltGlyphElement|SVGTRefElement|SVGTSpanElement|SVGTextElement';
|
| + var v4/*SVGComponentTransferFunctionElement*/ = 'SVGComponentTransferFunctionElement|SVGFEFuncAElement|SVGFEFuncBElement|SVGFEFuncGElement|SVGFEFuncRElement';
|
| + var v5/*SVGGradientElement*/ = 'SVGGradientElement|SVGLinearGradientElement|SVGRadialGradientElement';
|
| + var v6/*SVGTextContentElement*/ = [v3/*SVGTextPositioningElement*/,'SVGTextContentElement|SVGTextPathElement'].join('|');
|
| + var v7/*HTMLElement*/ = [v1/*HTMLInputElement*/,v2/*HTMLMediaElement*/,'HTMLElement|HTMLAnchorElement|HTMLAppletElement|HTMLAreaElement|HTMLBRElement|HTMLBaseElement|HTMLBaseFontElement|HTMLBodyElement|HTMLButtonElement|HTMLCanvasElement|HTMLDListElement|HTMLDataListElement|HTMLDetailsElement|HTMLDirectoryElement|HTMLDivElement|HTMLEmbedElement|HTMLFieldSetElement|HTMLFontElement|HTMLFormElement|HTMLFrameElement|HTMLFrameSetElement|HTMLHRElement|HTMLHeadElement|HTMLHeadingElement|HTMLHtmlElement|HTMLIFrameElement|HTMLImageElement|HTMLKeygenElement|HTMLLIElement|HTMLLabelElement|HTMLLegendElement|HTMLLinkElement|HTMLMapElement|HTMLMarqueeElement|HTMLMenuElement|HTMLMetaElement|HTMLMeterElement|HTMLModElement|HTMLOListElement|HTMLObjectElement|HTMLOptGroupElement|HTMLOptionElement|HTMLOutputElement|HTMLParagraphElement|HTMLParamElement|HTMLPreElement|HTMLProgressElement|HTMLQuoteElement|HTMLScriptElement|HTMLSelectElement|HTMLSourceElement|HTMLSpanElement|HTMLStyleElement|HTMLTableCaptionElement|HTMLTableCellElement|HTMLTableColElement|HTMLTableElement|HTMLTableRowElement|HTMLTableSectionElement|HTMLTextAreaElement|HTMLTitleElement|HTMLTrackElement|HTMLUListElement|HTMLUnknownElement'].join('|');
|
| + var v8/*SVGElement*/ = [v4/*SVGComponentTransferFunctionElement*/,v5/*SVGGradientElement*/,v6/*SVGTextContentElement*/,'SVGElement|SVGAElement|SVGAltGlyphDefElement|SVGAltGlyphItemElement|SVGAnimationElement|SVGAnimateColorElement|SVGAnimateElement|SVGAnimateMotionElement|SVGAnimateTransformElement|SVGSetElement|SVGCircleElement|SVGClipPathElement|SVGCursorElement|SVGDefsElement|SVGDescElement|SVGEllipseElement|SVGFEBlendElement|SVGFEColorMatrixElement|SVGFEComponentTransferElement|SVGFECompositeElement|SVGFEConvolveMatrixElement|SVGFEDiffuseLightingElement|SVGFEDisplacementMapElement|SVGFEDistantLightElement|SVGFEDropShadowElement|SVGFEFloodElement|SVGFEGaussianBlurElement|SVGFEImageElement|SVGFEMergeElement|SVGFEMergeNodeElement|SVGFEMorphologyElement|SVGFEOffsetElement|SVGFEPointLightElement|SVGFESpecularLightingElement|SVGFESpotLightElement|SVGFETileElement|SVGFETurbulenceElement|SVGFilterElement|SVGFontElement|SVGFontFaceElement|SVGFontFaceFormatElement|SVGFontFaceNameElement|SVGFontFaceSrcElement|SVGFontFaceUriElement|SVGForeignObjectElement|SVGGElement|SVGGlyphElement|SVGGlyphRefElement|SVGHKernElement|SVGImageElement|SVGLineElement|SVGMPathElement|SVGMarkerElement|SVGMaskElement|SVGMetadataElement|SVGMissingGlyphElement|SVGPathElement|SVGPatternElement|SVGPolygonElement|SVGPolylineElement|SVGRectElement|SVGSVGElement|SVGScriptElement|SVGStopElement|SVGStyleElement|SVGSwitchElement|SVGSymbolElement|SVGTitleElement|SVGUseElement|SVGVKernElement|SVGViewElement'].join('|');
|
| + var v9/*UIEvent*/ = 'UIEvent|CompositionEvent|KeyboardEvent|MouseEvent|SVGZoomEvent|TextEvent|TouchEvent|WheelEvent';
|
| + var v10/*CharacterData*/ = 'CharacterData|Comment|Text|CDATASection';
|
| + var v11/*Document*/ = 'Document|HTMLDocument|SVGDocument';
|
| + var v12/*Element*/ = [v7/*HTMLElement*/,v8/*SVGElement*/,'Element'].join('|');
|
| + var table = [
|
| + // [dynamic-dispatch-tag, tags of classes implementing dynamic-dispatch-tag]
|
| + ['AbstractWorker', 'AbstractWorker|SharedWorker|Worker'],
|
| + ['ArrayBufferView', 'ArrayBufferView|DataView|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array'],
|
| + ['AudioNode', 'AudioNode|AudioChannelMerger|AudioChannelSplitter|AudioDestinationNode|AudioGainNode|AudioPannerNode|AudioSourceNode|AudioBufferSourceNode|MediaElementAudioSourceNode|BiquadFilterNode|ConvolverNode|DelayNode|DynamicsCompressorNode|HighPass2FilterNode|JavaScriptAudioNode|LowPass2FilterNode|RealtimeAnalyserNode|WaveShaperNode'],
|
| + ['AudioParam', 'AudioParam|AudioGain'],
|
| + ['Blob', 'Blob|File'],
|
| + ['CSSRule', 'CSSRule|CSSCharsetRule|CSSFontFaceRule|CSSImportRule|CSSMediaRule|CSSPageRule|CSSStyleRule|CSSUnknownRule|WebKitCSSKeyframeRule|WebKitCSSKeyframesRule'],
|
| + ['CSSValueList', v0/*CSSValueList*/],
|
| + ['CSSValue', [v0/*CSSValueList*/,'CSSValue|CSSPrimitiveValue|SVGColor|SVGPaint'].join('|')],
|
| + ['CanvasRenderingContext', 'CanvasRenderingContext|CanvasRenderingContext2D|WebGLRenderingContext'],
|
| + ['CharacterData', v10/*CharacterData*/],
|
| + ['DOMTokenList', 'DOMTokenList|DOMSettableTokenList'],
|
| + ['DOMWindow', 'DOMWindow|Window'],
|
| + ['Document', v11/*Document*/],
|
| + ['HTMLInputElement', v1/*HTMLInputElement*/],
|
| + ['HTMLMediaElement', v2/*HTMLMediaElement*/],
|
| + ['HTMLElement', v7/*HTMLElement*/],
|
| + ['SVGComponentTransferFunctionElement', v4/*SVGComponentTransferFunctionElement*/],
|
| + ['SVGGradientElement', v5/*SVGGradientElement*/],
|
| + ['SVGTextPositioningElement', v3/*SVGTextPositioningElement*/],
|
| + ['SVGTextContentElement', v6/*SVGTextContentElement*/],
|
| + ['SVGElement', v8/*SVGElement*/],
|
| + ['Element', v12/*Element*/],
|
| + ['Entry', 'Entry|DirectoryEntry|FileEntry'],
|
| + ['EntrySync', 'EntrySync|DirectoryEntrySync|FileEntrySync'],
|
| + ['UIEvent', v9/*UIEvent*/],
|
| + ['Event', [v9/*UIEvent*/,'Event|AudioProcessingEvent|BeforeLoadEvent|CloseEvent|CustomEvent|DeviceMotionEvent|DeviceOrientationEvent|ErrorEvent|HashChangeEvent|IDBVersionChangeEvent|MessageEvent|MutationEvent|OfflineAudioCompletionEvent|OverflowEvent|PageTransitionEvent|PopStateEvent|ProgressEvent|XMLHttpRequestProgressEvent|SpeechInputEvent|StorageEvent|TrackEvent|WebGLContextEvent|WebKitAnimationEvent|WebKitTransitionEvent'].join('|')],
|
| + ['HTMLCollection', 'HTMLCollection|HTMLOptionsCollection|HTMLPropertiesCollection'],
|
| + ['IDBCursor', 'IDBCursor|IDBCursorWithValue'],
|
| + ['IDBRequest', 'IDBRequest|IDBVersionChangeRequest'],
|
| + ['Node', [v10/*CharacterData*/,v11/*Document*/,v12/*Element*/,'Node|Attr|DocumentFragment|DocumentType|Entity|EntityReference|Notation|ProcessingInstruction'].join('|')],
|
| + ['SVGLocatable', 'SVGLocatable|SVGTransformable'],
|
| + ['SVGPathSeg', 'SVGPathSeg|SVGPathSegArcAbs|SVGPathSegArcRel|SVGPathSegClosePath|SVGPathSegCurvetoCubicAbs|SVGPathSegCurvetoCubicRel|SVGPathSegCurvetoCubicSmoothAbs|SVGPathSegCurvetoCubicSmoothRel|SVGPathSegCurvetoQuadraticAbs|SVGPathSegCurvetoQuadraticRel|SVGPathSegCurvetoQuadraticSmoothAbs|SVGPathSegCurvetoQuadraticSmoothRel|SVGPathSegLinetoAbs|SVGPathSegLinetoHorizontalAbs|SVGPathSegLinetoHorizontalRel|SVGPathSegLinetoRel|SVGPathSegLinetoVerticalAbs|SVGPathSegLinetoVerticalRel|SVGPathSegMovetoAbs|SVGPathSegMovetoRel'],
|
| + ['SVGStylable', 'SVGStylable|SVGFilterPrimitiveStandardAttributes'],
|
| + ['SVGZoomAndPan', 'SVGZoomAndPan|SVGViewSpec'],
|
| + ['StyleSheet', 'StyleSheet|CSSStyleSheet'],
|
| + ['WorkerContext', 'WorkerContext|DedicatedWorkerContext|SharedWorkercontext'],
|
| + ];
|
| + $dynamicSetMetadata(table);
|
| +})();
|
| +// ********** Globals **************
|
| +function $static_init(){
|
| + $globals.Scroller__dragInProgress = false;
|
| + $globals._firstMeasurementRequest = true;
|
| + $globals._nextMeasurementFrameScheduled = false;
|
| +}
|
| +var const$0000 = Object.create(_DeletedKeySentinel.prototype, {});
|
| +var const$0001 = Object.create(NoMoreElementsException.prototype, {});
|
| +var const$0002 = new JSSyntaxRegExp("<(\\w+)");
|
| +var const$0003 = Object.create(IllegalAccessException.prototype, {});
|
| +var const$0004 = Object.create(EmptyQueueException.prototype, {});
|
| +var const$0005 = _constMap(["body", "html", "head", "html", "caption", "table", "td", "tr", "tbody", "table", "colgroup", "table", "col", "colgroup", "tr", "tbody", "tbody", "table", "tfoot", "table", "thead", "table", "track", "audio"]);
|
| +var const$0007 = new JSSyntaxRegExp("iPhone|iPod|iPad");
|
| +var const$0010 = Object.create(SimpleClientRect.prototype, {left: {"value": (0), writeable: false}, top: {"value": (0), writeable: false}, width: {"value": (0), writeable: false}, height: {"value": (0), writeable: false}, });
|
| +var const$0011 = ImmutableList.ImmutableList$from$factory([]);
|
| +var const$0012 = Object.create(EmptyElementRect.prototype, {client: {"value": const$0010, writeable: false}, scroll: {"value": const$0010, writeable: false}, bounding: {"value": const$0010, writeable: false}, clientRects: {"value": const$0011, writeable: false}, offset: {"value": const$0010, writeable: false}, });
|
| +var const$0013 = Object.create(UnsupportedOperationException.prototype, {_message: {"value": "", writeable: false}, });
|
| +var const$0014 = Object.create(NotImplementedException.prototype, {});
|
| +var const$0015 = ImmutableList.ImmutableList$from$factory(["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]);
|
| +var const$0016 = ImmutableList.ImmutableList$from$factory([]);
|
| +var const$0017 = Object.create(MinContentSizing.prototype, {});
|
| +var const$0018 = Object.create(MaxContentSizing.prototype, {});
|
| +var const$0019 = Object.create(TrackSizing.prototype, {min: {"value": const$0017, writeable: false}, max: {"value": const$0018, writeable: false}, });
|
| +var const$0020 = Object.create(IllegalArgumentException.prototype, {_args: {"value": "Invalid list length", writeable: false}, });
|
| +var const$0021 = Object.create(Dimension.prototype, {name: {"value": "width", writeable: false}, });
|
| +var const$0022 = Object.create(UnsupportedOperationException.prototype, {_message: {"value": "TODO(jacobr): should we impl?", writeable: false}, });
|
| +var const$0023 = Object.create(Dimension.prototype, {name: {"value": "height", writeable: false}, });
|
| +var const$0024 = Object.create(_UsedBreadthAccumulator.prototype, {});
|
| +var const$0025 = Object.create(_MaxBreadthAccumulator.prototype, {});
|
| +var const$0026 = Object.create(ContentSizeMode.prototype, {name: {"value": "min", writeable: false}, });
|
| +var const$0027 = Object.create(ContentSizeMode.prototype, {name: {"value": "max", writeable: false}, });
|
| +var const$0028 = _constMap([]);
|
| +var const$0029 = _constMap(["Test0_0_0.html", "Lorem ipsum something or other...", "Test0_0_1.html", "Lorem ipsum something or other...", "Test0_0_2.html", "Lorem ipsum something or other...", "Test0_0_3.html", "Lorem ipsum something or other...", "Test0_0_4.html", "Lorem ipsum something or other...", "Test0_0_5.html", "Lorem ipsum something or other...", "Test0_0_6.html", "Lorem ipsum something or other...", "Test0_0_7.html", "Lorem ipsum something or other...", "Test0_1_0.html", "Lorem ipsum something or other...", "Test0_1_1.html", "Lorem ipsum something or other...", "Test0_1_2.html", "Lorem ipsum something or other...", "Test0_1_3.html", "Lorem ipsum something or other...", "Test0_1_4.html", "Lorem ipsum something or other...", "Test0_1_5.html", "Lorem ipsum something or other...", "Test0_1_6.html", "Lorem ipsum something or other...", "Test0_1_7.html", "Lorem ipsum something or other...", "Test0_2_0.html", "Lorem ipsum something or other...", "Test0_2_1.html", "Lorem ipsum something or other...", "Test0_2_2.html", "Lorem ipsum something or other...", "Test0_2_3.html", "Lorem ipsum something or other...", "Test0_2_4.html", "Lorem ipsum something or other...", "Test0_2_5.html", "Lorem ipsum something or other...", "Test0_2_6.html", "Lorem ipsum something or other...", "Test0_2_7.html", "Lorem ipsum something or other...", "Test0_3_0.html", "Lorem ipsum something or other...", "Test0_3_1.html", "Lorem ipsum something or other...", "Test0_3_2.html", "Lorem ipsum something or other...", "Test0_3_3.html", "Lorem ipsum something or other...", "Test0_3_4.html", "Lorem ipsum something or other...", "Test0_3_5.html", "Lorem ipsum something or other...", "Test0_3_6.html", "Lorem ipsum something or other...", "Test0_3_7.html", "Lorem ipsum something or other...", "Test1_0_0.html", "Lorem ipsum something or other...", "Test1_0_1.html", "Lorem ipsum something or other...", "Test1_0_2.html", "Lorem ipsum something or other...", "Test1_0_3.html", "Lorem ipsum something or other...", "Test1_0_4.html", "Lorem ipsum something or other...", "Test1_0_5.html", "Lorem ipsum something or other...", "Test1_0_6.html", "Lorem ipsum something or other...", "Test1_0_7.html", "Lorem ipsum something or other...", "Test1_1_0.html", "Lorem ipsum something or other...", "Test1_1_1.html", "Lorem ipsum something or other...", "Test1_1_2.html", "Lorem ipsum something or other...", "Test1_1_3.html", "Lorem ipsum something or other...", "Test1_1_4.html", "Lorem ipsum something or other...", "Test1_1_5.html", "Lorem ipsum something or other...", "Test1_1_6.html", "Lorem ipsum something or other...", "Test1_1_7.html", "Lorem ipsum something or other...", "Test1_2_0.html", "Lorem ipsum something or other...", "Test1_2_1.html", "Lorem ipsum something or other...", "Test1_2_2.html", "Lorem ipsum something or other...", "Test1_2_3.html", "Lorem ipsum something or other...", "Test1_2_4.html", "Lorem ipsum something or other...", "Test1_2_5.html", "Lorem ipsum something or other...", "Test1_2_6.html", "Lorem ipsum something or other...", "Test1_2_7.html", "Lorem ipsum something or other...", "Test1_3_0.html", "Lorem ipsum something or other...", "Test1_3_1.html", "Lorem ipsum something or other...", "Test1_3_2.html", "Lorem ipsum something or other...", "Test1_3_3.html", "Lorem ipsum something or other...", "Test1_3_4.html", "Lorem ipsum something or other...", "Test1_3_5.html", "Lorem ipsum something or other...", "Test1_3_6.html", "Lorem ipsum something or other...", "Test1_3_7.html", "Lorem ipsum something or other...", "Test2_0_0.html", "Lorem ipsum something or other...", "Test2_0_1.html", "Lorem ipsum something or other...", "Test2_0_2.html", "Lorem ipsum something or other...", "Test2_0_3.html", "Lorem ipsum something or other...", "Test2_0_4.html", "Lorem ipsum something or other...", "Test2_0_5.html", "Lorem ipsum something or other...", "Test2_0_6.html", "Lorem ipsum something or other...", "Test2_0_7.html", "Lorem ipsum something or other...", "Test2_1_0.html", "Lorem ipsum something or other...", "Test2_1_1.html", "Lorem ipsum something or other...", "Test2_1_2.html", "Lorem ipsum something or other...", "Test2_1_3.html", "Lorem ipsum something or other...", "Test2_1_4.html", "Lorem ipsum something or other...", "Test2_1_5.html", "Lorem ipsum something or other...", "Test2_1_6.html", "Lorem ipsum something or other...", "Test2_1_7.html", "Lorem ipsum something or other...", "Test2_2_0.html", "Lorem ipsum something or other...", "Test2_2_1.html", "Lorem ipsum something or other...", "Test2_2_2.html", "Lorem ipsum something or other...", "Test2_2_3.html", "Lorem ipsum something or other...", "Test2_2_4.html", "Lorem ipsum something or other...", "Test2_2_5.html", "Lorem ipsum something or other...", "Test2_2_6.html", "Lorem ipsum something or other...", "Test2_2_7.html", "Lorem ipsum something or other...", "Test2_3_0.html", "Lorem ipsum something or other...", "Test2_3_1.html", "Lorem ipsum something or other...", "Test2_3_2.html", "Lorem ipsum something or other...", "Test2_3_3.html", "Lorem ipsum something or other...", "Test2_3_4.html", "Lorem ipsum something or other...", "Test2_3_5.html", "Lorem ipsum something or other...", "Test2_3_6.html", "Lorem ipsum something or other...", "Test2_3_7.html", "Lorem ipsum something or other...", "user.data", "\x03\x05Test0\tSection 1\x04\x07Test0_0\x08Feed 0_0F\x01http://s2.googleusercontent.com/s2/favicons?domain=google.com&alt=feed\x08\tTest0_0_0\rArticle 0_0_0\x00F\x04anon\x00!Lorem ipsum something or other...\tTest0_0_1\rArticle 0_0_1\x00F\x04anon\x00!Lorem ipsum something or other...\tTest0_0_2\rArticle 0_0_2\x00F\x04anon\x00!Lorem ipsum something or other...\tTest0_0_3\rArticle 0_0_3\x00F\x04anon\x00!Lorem ipsum something or other...\tTest0_0_4\rArticle 0_0_4\x00F\x04anon\x00!Lorem ipsum something or other...\tTest0_0_5\rArticle 0_0_5\x00F\x04anon\x00!Lorem ipsum something or other...\tTest0_0_6\rArticle 0_0_6\x00F\x04anon\x00!Lorem ipsum something or other...\tTest0_0_7\rArticle 0_0_7\x00F\x04anon\x00!Lorem ipsum something or other...\x07Test0_1\x08Feed 0_1F\x01http://s2.googleusercontent.com/s2/favicons?domain=google.com&alt=feed\x08\tTest0_1_0\rArticle 0_1_0\x00F\x04anon\x00!Lorem ipsum something or other...\tTest0_1_1\rArticle 0_1_1\x00F\x04anon\x00!Lorem ipsum something or other...\tTest0_1_2\rArticle 0_1_2\x00F\x04anon\x00!Lorem ipsum something or other...\tTest0_1_3\rArticle 0_1_3\x00F\x04anon\x00!Lorem ipsum something or other...\tTest0_1_4\rArticle 0_1_4\x00F\x04anon\x00!Lorem ipsum something or other...\tTest0_1_5\rArticle 0_1_5\x00F\x04anon\x00!Lorem ipsum something or other...\tTest0_1_6\rArticle 0_1_6\x00F\x04anon\x00!Lorem ipsum something or other...\tTest0_1_7\rArticle 0_1_7\x00F\x04anon\x00!Lorem ipsum something or other...\x07Test0_2\x08Feed 0_2F\x01http://s2.googleusercontent.com/s2/favicons?domain=google.com&alt=feed\x08\tTest0_2_0\rArticle 0_2_0\x00F\x04anon\x00!Lorem ipsum something or other...\tTest0_2_1\rArticle 0_2_1\x00F\x04anon\x00!Lorem ipsum something or other...\tTest0_2_2\rArticle 0_2_2\x00F\x04anon\x00!Lorem ipsum something or other...\tTest0_2_3\rArticle 0_2_3\x00F\x04anon\x00!Lorem ipsum something or other...\tTest0_2_4\rArticle 0_2_4\x00F\x04anon\x00!Lorem ipsum something or other...\tTest0_2_5\rArticle 0_2_5\x00F\x04anon\x00!Lorem ipsum something or other...\tTest0_2_6\rArticle 0_2_6\x00F\x04anon\x00!Lorem ipsum something or other...\tTest0_2_7\rArticle 0_2_7\x00F\x04anon\x00!Lorem ipsum something or other...\x07Test0_3\x08Feed 0_3F\x01http://s2.googleusercontent.com/s2/favicons?domain=google.com&alt=feed\x08\tTest0_3_0\rArticle 0_3_0\x00F\x04anon\x00!Lorem ipsum something or other...\tTest0_3_1\rArticle 0_3_1\x00F\x04anon\x00!Lorem ipsum something or other...\tTest0_3_2\rArticle 0_3_2\x00F\x04anon\x00!Lorem ipsum something or other...\tTest0_3_3\rArticle 0_3_3\x00F\x04anon\x00!Lorem ipsum something or other...\tTest0_3_4\rArticle 0_3_4\x00F\x04anon\x00!Lorem ipsum something or other...\tTest0_3_5\rArticle 0_3_5\x00F\x04anon\x00!Lorem ipsum something or other...\tTest0_3_6\rArticle 0_3_6\x00F\x04anon\x00!Lorem ipsum something or other...\tTest0_3_7\rArticle 0_3_7\x00F\x04anon\x00!Lorem ipsum something or other...\x05Test1\tSection 2\x04\x07Test1_0\x08Feed 1_0F\x01http://s2.googleusercontent.com/s2/favicons?domain=google.com&alt=feed\x08\tTest1_0_0\rArticle 1_0_0\x00F\x04anon\x00!Lorem ipsum something or other...\tTest1_0_1\rArticle 1_0_1\x00F\x04anon\x00!Lorem ipsum something or other...\tTest1_0_2\rArticle 1_0_2\x00F\x04anon\x00!Lorem ipsum something or other...\tTest1_0_3\rArticle 1_0_3\x00F\x04anon\x00!Lorem ipsum something or other...\tTest1_0_4\rArticle 1_0_4\x00F\x04anon\x00!Lorem ipsum something or other...\tTest1_0_5\rArticle 1_0_5\x00F\x04anon\x00!Lorem ipsum something or other...\tTest1_0_6\rArticle 1_0_6\x00F\x04anon\x00!Lorem ipsum something or other...\tTest1_0_7\rArticle 1_0_7\x00F\x04anon\x00!Lorem ipsum something or other...\x07Test1_1\x08Feed 1_1F\x01http://s2.googleusercontent.com/s2/favicons?domain=google.com&alt=feed\x08\tTest1_1_0\rArticle 1_1_0\x00F\x04anon\x00!Lorem ipsum something or other...\tTest1_1_1\rArticle 1_1_1\x00F\x04anon\x00!Lorem ipsum something or other...\tTest1_1_2\rArticle 1_1_2\x00F\x04anon\x00!Lorem ipsum something or other...\tTest1_1_3\rArticle 1_1_3\x00F\x04anon\x00!Lorem ipsum something or other...\tTest1_1_4\rArticle 1_1_4\x00F\x04anon\x00!Lorem ipsum something or other...\tTest1_1_5\rArticle 1_1_5\x00F\x04anon\x00!Lorem ipsum something or other...\tTest1_1_6\rArticle 1_1_6\x00F\x04anon\x00!Lorem ipsum something or other...\tTest1_1_7\rArticle 1_1_7\x00F\x04anon\x00!Lorem ipsum something or other...\x07Test1_2\x08Feed 1_2F\x01http://s2.googleusercontent.com/s2/favicons?domain=google.com&alt=feed\x08\tTest1_2_0\rArticle 1_2_0\x00F\x04anon\x00!Lorem ipsum something or other...\tTest1_2_1\rArticle 1_2_1\x00F\x04anon\x00!Lorem ipsum something or other...\tTest1_2_2\rArticle 1_2_2\x00F\x04anon\x00!Lorem ipsum something or other...\tTest1_2_3\rArticle 1_2_3\x00F\x04anon\x00!Lorem ipsum something or other...\tTest1_2_4\rArticle 1_2_4\x00F\x04anon\x00!Lorem ipsum something or other...\tTest1_2_5\rArticle 1_2_5\x00F\x04anon\x00!Lorem ipsum something or other...\tTest1_2_6\rArticle 1_2_6\x00F\x04anon\x00!Lorem ipsum something or other...\tTest1_2_7\rArticle 1_2_7\x00F\x04anon\x00!Lorem ipsum something or other...\x07Test1_3\x08Feed 1_3F\x01http://s2.googleusercontent.com/s2/favicons?domain=google.com&alt=feed\x08\tTest1_3_0\rArticle 1_3_0\x00F\x04anon\x00!Lorem ipsum something or other...\tTest1_3_1\rArticle 1_3_1\x00F\x04anon\x00!Lorem ipsum something or other...\tTest1_3_2\rArticle 1_3_2\x00F\x04anon\x00!Lorem ipsum something or other...\tTest1_3_3\rArticle 1_3_3\x00F\x04anon\x00!Lorem ipsum something or other...\tTest1_3_4\rArticle 1_3_4\x00F\x04anon\x00!Lorem ipsum something or other...\tTest1_3_5\rArticle 1_3_5\x00F\x04anon\x00!Lorem ipsum something or other...\tTest1_3_6\rArticle 1_3_6\x00F\x04anon\x00!Lorem ipsum something or other...\tTest1_3_7\rArticle 1_3_7\x00F\x04anon\x00!Lorem ipsum something or other...\x05Test2\tSection 3\x04\x07Test2_0\x08Feed 2_0F\x01http://s2.googleusercontent.com/s2/favicons?domain=google.com&alt=feed\x08\tTest2_0_0\rArticle 2_0_0\x00F\x04anon\x00!Lorem ipsum something or other...\tTest2_0_1\rArticle 2_0_1\x00F\x04anon\x00!Lorem ipsum something or other...\tTest2_0_2\rArticle 2_0_2\x00F\x04anon\x00!Lorem ipsum something or other...\tTest2_0_3\rArticle 2_0_3\x00F\x04anon\x00!Lorem ipsum something or other...\tTest2_0_4\rArticle 2_0_4\x00F\x04anon\x00!Lorem ipsum something or other...\tTest2_0_5\rArticle 2_0_5\x00F\x04anon\x00!Lorem ipsum something or other...\tTest2_0_6\rArticle 2_0_6\x00F\x04anon\x00!Lorem ipsum something or other...\tTest2_0_7\rArticle 2_0_7\x00F\x04anon\x00!Lorem ipsum something or other...\x07Test2_1\x08Feed 2_1F\x01http://s2.googleusercontent.com/s2/favicons?domain=google.com&alt=feed\x08\tTest2_1_0\rArticle 2_1_0\x00F\x04anon\x00!Lorem ipsum something or other...\tTest2_1_1\rArticle 2_1_1\x00F\x04anon\x00!Lorem ipsum something or other...\tTest2_1_2\rArticle 2_1_2\x00F\x04anon\x00!Lorem ipsum something or other...\tTest2_1_3\rArticle 2_1_3\x00F\x04anon\x00!Lorem ipsum something or other...\tTest2_1_4\rArticle 2_1_4\x00F\x04anon\x00!Lorem ipsum something or other...\tTest2_1_5\rArticle 2_1_5\x00F\x04anon\x00!Lorem ipsum something or other...\tTest2_1_6\rArticle 2_1_6\x00F\x04anon\x00!Lorem ipsum something or other...\tTest2_1_7\rArticle 2_1_7\x00F\x04anon\x00!Lorem ipsum something or other...\x07Test2_2\x08Feed 2_2F\x01http://s2.googleusercontent.com/s2/favicons?domain=google.com&alt=feed\x08\tTest2_2_0\rArticle 2_2_0\x00F\x04anon\x00!Lorem ipsum something or other...\tTest2_2_1\rArticle 2_2_1\x00F\x04anon\x00!Lorem ipsum something or other...\tTest2_2_2\rArticle 2_2_2\x00F\x04anon\x00!Lorem ipsum something or other...\tTest2_2_3\rArticle 2_2_3\x00F\x04anon\x00!Lorem ipsum something or other...\tTest2_2_4\rArticle 2_2_4\x00F\x04anon\x00!Lorem ipsum something or other...\tTest2_2_5\rArticle 2_2_5\x00F\x04anon\x00!Lorem ipsum something or other...\tTest2_2_6\rArticle 2_2_6\x00F\x04anon\x00!Lorem ipsum something or other...\tTest2_2_7\rArticle 2_2_7\x00F\x04anon\x00!Lorem ipsum something or other...\x07Test2_3\x08Feed 2_3F\x01http://s2.googleusercontent.com/s2/favicons?domain=google.com&alt=feed\x08\tTest2_3_0\rArticle 2_3_0\x00F\x04anon\x00!Lorem ipsum something or other...\tTest2_3_1\rArticle 2_3_1\x00F\x04anon\x00!Lorem ipsum something or other...\tTest2_3_2\rArticle 2_3_2\x00F\x04anon\x00!Lorem ipsum something or other...\tTest2_3_3\rArticle 2_3_3\x00F\x04anon\x00!Lorem ipsum something or other...\tTest2_3_4\rArticle 2_3_4\x00F\x04anon\x00!Lorem ipsum something or other...\tTest2_3_5\rArticle 2_3_5\x00F\x04anon\x00!Lorem ipsum something or other...\tTest2_3_6\rArticle 2_3_6\x00F\x04anon\x00!Lorem ipsum something or other...\tTest2_3_7\rArticle 2_3_7\x00F\x04anon\x00!Lorem ipsum something or other..."]);
|
| +var $globals = {};
|
| +$static_init();
|
| +main();
|
|
|