OLD | NEW |
(Empty) | |
| 1 // ********** Library dart:core ************** |
| 2 // ********** Natives dart:core ************** |
| 3 Object.defineProperty(Object.prototype, '$typeNameOf', { value: function() { |
| 4 if ((typeof(window) != 'undefined' && window.constructor.name == 'DOMWindow') |
| 5 || typeof(process) != 'undefined') { // fast-path for Chrome and Node |
| 6 return this.constructor.name; |
| 7 } |
| 8 var str = Object.prototype.toString.call(this); |
| 9 str = str.substring(8, str.length - 1); |
| 10 if (str == 'Window') { |
| 11 str = 'DOMWindow'; |
| 12 } else if (str == 'Document') { |
| 13 str = 'HTMLDocument'; |
| 14 } |
| 15 return str; |
| 16 }, enumerable: false, writable: true, configurable: true}); |
| 17 function $throw(e) { |
| 18 // If e is not a value, we can use V8's captureStackTrace utility method. |
| 19 // TODO(jmesserly): capture the stack trace on other JS engines. |
| 20 if (e && (typeof e == 'object') && Error.captureStackTrace) { |
| 21 // TODO(jmesserly): this will clobber the e.stack property |
| 22 Error.captureStackTrace(e, $throw); |
| 23 } |
| 24 throw e; |
| 25 } |
| 26 Object.defineProperty(Object.prototype, '$index', { value: function(i) { |
| 27 var proto = Object.getPrototypeOf(this); |
| 28 if (proto !== Object) { |
| 29 proto.$index = function(i) { return this[i]; } |
| 30 } |
| 31 return this[i]; |
| 32 }, enumerable: false, writable: true, configurable: true}); |
| 33 Object.defineProperty(Array.prototype, '$index', { value: function(i) { |
| 34 return this[i]; |
| 35 }, enumerable: false, writable: true, configurable: true}); |
| 36 Object.defineProperty(String.prototype, '$index', { value: function(i) { |
| 37 return this[i]; |
| 38 }, enumerable: false, writable: true, configurable: true}); |
| 39 Object.defineProperty(Object.prototype, '$setindex', { value: function(i, value)
{ |
| 40 var proto = Object.getPrototypeOf(this); |
| 41 if (proto !== Object) { |
| 42 proto.$setindex = function(i, value) { return this[i] = value; } |
| 43 } |
| 44 return this[i] = value; |
| 45 }, enumerable: false, writable: true, configurable: true}); |
| 46 Object.defineProperty(Array.prototype, '$setindex', { value: function(i, value)
{ |
| 47 return this[i] = value; }, enumerable: false, writable: true, |
| 48 configurable: true}); |
| 49 // Wrap a 0-arg dom-callback to bind it with the current isolate: |
| 50 function $wrap_call$0(fn) { return fn && fn.wrap$call$0(); } |
| 51 Function.prototype.wrap$call$0 = function() { |
| 52 var isolateContext = $globalState.currentContext; |
| 53 var self = this; |
| 54 this.wrap$0 = function() { |
| 55 isolateContext.eval(self); |
| 56 $globalState.topEventLoop.run(); |
| 57 }; |
| 58 this.wrap$call$0 = function() { return this.wrap$0; }; |
| 59 return this.wrap$0; |
| 60 } |
| 61 // Wrap a 1-arg dom-callback to bind it with the current isolate: |
| 62 function $wrap_call$1(fn) { return fn && fn.wrap$call$1(); } |
| 63 Function.prototype.wrap$call$1 = function() { |
| 64 var isolateContext = $globalState.currentContext; |
| 65 var self = this; |
| 66 this.wrap$1 = function(arg) { |
| 67 isolateContext.eval(function() { self(arg); }); |
| 68 $globalState.topEventLoop.run(); |
| 69 }; |
| 70 this.wrap$call$1 = function() { return this.wrap$1; }; |
| 71 return this.wrap$1; |
| 72 } |
| 73 var $globalThis = this; |
| 74 var $globals = null; |
| 75 var $globalState = null; |
| 76 function $add(x, y) { |
| 77 return ((typeof(x) == 'number' && typeof(y) == 'number') || |
| 78 (typeof(x) == 'string')) |
| 79 ? x + y : x.$add(y); |
| 80 } |
| 81 function $eq(x, y) { |
| 82 if (x == null) return y == null; |
| 83 return (typeof(x) == 'number' && typeof(y) == 'number') || |
| 84 (typeof(x) == 'boolean' && typeof(y) == 'boolean') || |
| 85 (typeof(x) == 'string' && typeof(y) == 'string') |
| 86 ? x == y : x.$eq(y); |
| 87 } |
| 88 // TODO(jimhug): Should this or should it not match equals? |
| 89 Object.defineProperty(Object.prototype, '$eq', { value: function(other) { |
| 90 return this === other; |
| 91 }, enumerable: false, writable: true, configurable: true }); |
| 92 function $mod(x, y) { |
| 93 if (typeof(x) == 'number' && typeof(y) == 'number') { |
| 94 var result = x % y; |
| 95 if (result == 0) { |
| 96 return 0; // Make sure we don't return -0.0. |
| 97 } else if (result < 0) { |
| 98 if (y < 0) { |
| 99 return result - y; |
| 100 } else { |
| 101 return result + y; |
| 102 } |
| 103 } |
| 104 return result; |
| 105 } else { |
| 106 return x.$mod(y); |
| 107 } |
| 108 } |
| 109 function $truncdiv(x, y) { |
| 110 if (typeof(x) == 'number' && typeof(y) == 'number') { |
| 111 if (y == 0) $throw(new IntegerDivisionByZeroException()); |
| 112 var tmp = x / y; |
| 113 return (tmp < 0) ? Math.ceil(tmp) : Math.floor(tmp); |
| 114 } else { |
| 115 return x.$truncdiv(y); |
| 116 } |
| 117 } |
| 118 Object.defineProperty(Object.prototype, "get$typeName", { value: Object.prototyp
e.$typeNameOf, enumerable: false, writable: true, configurable: true}); |
| 119 // ********** Code for Object ************** |
| 120 Object.defineProperty(Object.prototype, "get$dynamic", { value: function() { |
| 121 "use strict"; return this; |
| 122 }, enumerable: false, writable: true, configurable: true }); |
| 123 Object.defineProperty(Object.prototype, "noSuchMethod", { value: function(name,
args) { |
| 124 $throw(new NoSuchMethodException(this, name, args)); |
| 125 }, enumerable: false, writable: true, configurable: true }); |
| 126 Object.defineProperty(Object.prototype, "_asNonSentinelEntry$0", { value: functi
on() { |
| 127 return this.noSuchMethod$2("_asNonSentinelEntry", []); |
| 128 }, enumerable: false, writable: true, configurable: true }); |
| 129 Object.defineProperty(Object.prototype, "_callback$2", { value: function($0, $1)
{ |
| 130 return this.noSuchMethod$2("_callback", [$0, $1]); |
| 131 }, enumerable: false, writable: true, configurable: true }); |
| 132 Object.defineProperty(Object.prototype, "_setGlobals$0", { value: function() { |
| 133 return this.noSuchMethod$2("_setGlobals", []); |
| 134 }, enumerable: false, writable: true, configurable: true }); |
| 135 Object.defineProperty(Object.prototype, "add$1", { value: function($0) { |
| 136 return this.noSuchMethod$2("add", [$0]); |
| 137 }, enumerable: false, writable: true, configurable: true }); |
| 138 Object.defineProperty(Object.prototype, "add$2", { value: function($0, $1) { |
| 139 return this.noSuchMethod$2("add", [$0, $1]); |
| 140 }, enumerable: false, writable: true, configurable: true }); |
| 141 Object.defineProperty(Object.prototype, "addAll$1", { value: function($0) { |
| 142 return this.noSuchMethod$2("addAll", [$0]); |
| 143 }, enumerable: false, writable: true, configurable: true }); |
| 144 Object.defineProperty(Object.prototype, "addEventListener$3", { value: function(
$0, $1, $2) { |
| 145 return this.noSuchMethod$2("addEventListener", [$0, $1, $2]); |
| 146 }, enumerable: false, writable: true, configurable: true }); |
| 147 Object.defineProperty(Object.prototype, "appendChild$1", { value: function($0) { |
| 148 return this.noSuchMethod$2("appendChild", [$0]); |
| 149 }, enumerable: false, writable: true, configurable: true }); |
| 150 Object.defineProperty(Object.prototype, "call$1", { value: function($0) { |
| 151 return this.noSuchMethod$2("call", [$0]); |
| 152 }, enumerable: false, writable: true, configurable: true }); |
| 153 Object.defineProperty(Object.prototype, "clear$0", { value: function() { |
| 154 return this.noSuchMethod$2("clear", []); |
| 155 }, enumerable: false, writable: true, configurable: true }); |
| 156 Object.defineProperty(Object.prototype, "click$0", { value: function() { |
| 157 return this.noSuchMethod$2("click", []); |
| 158 }, enumerable: false, writable: true, configurable: true }); |
| 159 Object.defineProperty(Object.prototype, "complete$1", { value: function($0) { |
| 160 return this.noSuchMethod$2("complete", [$0]); |
| 161 }, enumerable: false, writable: true, configurable: true }); |
| 162 Object.defineProperty(Object.prototype, "eval$1", { value: function($0) { |
| 163 return this.noSuchMethod$2("eval", [$0]); |
| 164 }, enumerable: false, writable: true, configurable: true }); |
| 165 Object.defineProperty(Object.prototype, "filter$1", { value: function($0) { |
| 166 return this.noSuchMethod$2("filter", [$0]); |
| 167 }, enumerable: false, writable: true, configurable: true }); |
| 168 Object.defineProperty(Object.prototype, "getAttribute$1", { value: function($0)
{ |
| 169 return this.noSuchMethod$2("getAttribute", [$0]); |
| 170 }, enumerable: false, writable: true, configurable: true }); |
| 171 Object.defineProperty(Object.prototype, "getKeys$0", { value: function() { |
| 172 return this.noSuchMethod$2("getKeys", []); |
| 173 }, enumerable: false, writable: true, configurable: true }); |
| 174 Object.defineProperty(Object.prototype, "getPropertyValue$1", { value: function(
$0) { |
| 175 return this.noSuchMethod$2("getPropertyValue", [$0]); |
| 176 }, enumerable: false, writable: true, configurable: true }); |
| 177 Object.defineProperty(Object.prototype, "getValues$0", { value: function() { |
| 178 return this.noSuchMethod$2("getValues", []); |
| 179 }, enumerable: false, writable: true, configurable: true }); |
| 180 Object.defineProperty(Object.prototype, "hasAttribute$1", { value: function($0)
{ |
| 181 return this.noSuchMethod$2("hasAttribute", [$0]); |
| 182 }, enumerable: false, writable: true, configurable: true }); |
| 183 Object.defineProperty(Object.prototype, "hasAttributes$0", { value: function() { |
| 184 return this.noSuchMethod$2("hasAttributes", []); |
| 185 }, enumerable: false, writable: true, configurable: true }); |
| 186 Object.defineProperty(Object.prototype, "hasChildNodes$0", { value: function() { |
| 187 return this.noSuchMethod$2("hasChildNodes", []); |
| 188 }, enumerable: false, writable: true, configurable: true }); |
| 189 Object.defineProperty(Object.prototype, "hasNext$0", { value: function() { |
| 190 return this.noSuchMethod$2("hasNext", []); |
| 191 }, enumerable: false, writable: true, configurable: true }); |
| 192 Object.defineProperty(Object.prototype, "hashCode$0", { value: function() { |
| 193 return this.noSuchMethod$2("hashCode", []); |
| 194 }, enumerable: false, writable: true, configurable: true }); |
| 195 Object.defineProperty(Object.prototype, "is$List", { value: function() { |
| 196 return false; |
| 197 }, enumerable: false, writable: true, configurable: true }); |
| 198 Object.defineProperty(Object.prototype, "is$Map", { value: function() { |
| 199 return false; |
| 200 }, enumerable: false, writable: true, configurable: true }); |
| 201 Object.defineProperty(Object.prototype, "is$html_html_Element", { value: functio
n() { |
| 202 return false; |
| 203 }, enumerable: false, writable: true, configurable: true }); |
| 204 Object.defineProperty(Object.prototype, "item$1", { value: function($0) { |
| 205 return this.noSuchMethod$2("item", [$0]); |
| 206 }, enumerable: false, writable: true, configurable: true }); |
| 207 Object.defineProperty(Object.prototype, "iterator$0", { value: function() { |
| 208 return this.noSuchMethod$2("iterator", []); |
| 209 }, enumerable: false, writable: true, configurable: true }); |
| 210 Object.defineProperty(Object.prototype, "last$0", { value: function() { |
| 211 return this.noSuchMethod$2("last", []); |
| 212 }, enumerable: false, writable: true, configurable: true }); |
| 213 Object.defineProperty(Object.prototype, "lookup$1", { value: function($0) { |
| 214 return this.noSuchMethod$2("lookup", [$0]); |
| 215 }, enumerable: false, writable: true, configurable: true }); |
| 216 Object.defineProperty(Object.prototype, "next$0", { value: function() { |
| 217 return this.noSuchMethod$2("next", []); |
| 218 }, enumerable: false, writable: true, configurable: true }); |
| 219 Object.defineProperty(Object.prototype, "noSuchMethod$2", { value: function($0,
$1) { |
| 220 return this.noSuchMethod($0, $1); |
| 221 }, enumerable: false, writable: true, configurable: true }); |
| 222 Object.defineProperty(Object.prototype, "postMessage$1", { value: function($0) { |
| 223 return this.noSuchMethod$2("postMessage", [$0]); |
| 224 }, enumerable: false, writable: true, configurable: true }); |
| 225 Object.defineProperty(Object.prototype, "postMessage$2", { value: function($0, $
1) { |
| 226 return this.noSuchMethod$2("postMessage", [$0, $1]); |
| 227 }, enumerable: false, writable: true, configurable: true }); |
| 228 Object.defineProperty(Object.prototype, "postMessage$3", { value: function($0, $
1, $2) { |
| 229 return this.noSuchMethod$2("postMessage", [$0, $1, $2]); |
| 230 }, enumerable: false, writable: true, configurable: true }); |
| 231 Object.defineProperty(Object.prototype, "preventDefault$0", { value: function()
{ |
| 232 return this.noSuchMethod$2("preventDefault", []); |
| 233 }, enumerable: false, writable: true, configurable: true }); |
| 234 Object.defineProperty(Object.prototype, "process$0", { value: function() { |
| 235 return this.noSuchMethod$2("process", []); |
| 236 }, enumerable: false, writable: true, configurable: true }); |
| 237 Object.defineProperty(Object.prototype, "putIfAbsent$2", { value: function($0, $
1) { |
| 238 return this.noSuchMethod$2("putIfAbsent", [$0, $1]); |
| 239 }, enumerable: false, writable: true, configurable: true }); |
| 240 Object.defineProperty(Object.prototype, "querySelector$1", { value: function($0)
{ |
| 241 return this.noSuchMethod$2("querySelector", [$0]); |
| 242 }, enumerable: false, writable: true, configurable: true }); |
| 243 Object.defineProperty(Object.prototype, "querySelectorAll$1", { value: function(
$0) { |
| 244 return this.noSuchMethod$2("querySelectorAll", [$0]); |
| 245 }, enumerable: false, writable: true, configurable: true }); |
| 246 Object.defineProperty(Object.prototype, "remove$0", { value: function() { |
| 247 return this.noSuchMethod$2("remove", []); |
| 248 }, enumerable: false, writable: true, configurable: true }); |
| 249 Object.defineProperty(Object.prototype, "remove$1", { value: function($0) { |
| 250 return this.noSuchMethod$2("remove", [$0]); |
| 251 }, enumerable: false, writable: true, configurable: true }); |
| 252 Object.defineProperty(Object.prototype, "remove$2", { value: function($0, $1) { |
| 253 return this.noSuchMethod$2("remove", [$0, $1]); |
| 254 }, enumerable: false, writable: true, configurable: true }); |
| 255 Object.defineProperty(Object.prototype, "removeAttribute$1", { value: function($
0) { |
| 256 return this.noSuchMethod$2("removeAttribute", [$0]); |
| 257 }, enumerable: false, writable: true, configurable: true }); |
| 258 Object.defineProperty(Object.prototype, "removeChild$1", { value: function($0) { |
| 259 return this.noSuchMethod$2("removeChild", [$0]); |
| 260 }, enumerable: false, writable: true, configurable: true }); |
| 261 Object.defineProperty(Object.prototype, "removeEventListener$3", { value: functi
on($0, $1, $2) { |
| 262 return this.noSuchMethod$2("removeEventListener", [$0, $1, $2]); |
| 263 }, enumerable: false, writable: true, configurable: true }); |
| 264 Object.defineProperty(Object.prototype, "removeLast$0", { value: function() { |
| 265 return this.noSuchMethod$2("removeLast", []); |
| 266 }, enumerable: false, writable: true, configurable: true }); |
| 267 Object.defineProperty(Object.prototype, "replaceChild$2", { value: function($0,
$1) { |
| 268 return this.noSuchMethod$2("replaceChild", [$0, $1]); |
| 269 }, enumerable: false, writable: true, configurable: true }); |
| 270 Object.defineProperty(Object.prototype, "setAttribute$2", { value: function($0,
$1) { |
| 271 return this.noSuchMethod$2("setAttribute", [$0, $1]); |
| 272 }, enumerable: false, writable: true, configurable: true }); |
| 273 Object.defineProperty(Object.prototype, "setProperty$2", { value: function($0, $
1) { |
| 274 return this.noSuchMethod$2("setProperty", [$0, $1]); |
| 275 }, enumerable: false, writable: true, configurable: true }); |
| 276 Object.defineProperty(Object.prototype, "setProperty$3", { value: function($0, $
1, $2) { |
| 277 return this.noSuchMethod$2("setProperty", [$0, $1, $2]); |
| 278 }, enumerable: false, writable: true, configurable: true }); |
| 279 Object.defineProperty(Object.prototype, "setTimeout$2", { value: function($0, $1
) { |
| 280 return this.noSuchMethod$2("setTimeout", [$0, $1]); |
| 281 }, enumerable: false, writable: true, configurable: true }); |
| 282 Object.defineProperty(Object.prototype, "terminate$0", { value: function() { |
| 283 return this.noSuchMethod$2("terminate", []); |
| 284 }, enumerable: false, writable: true, configurable: true }); |
| 285 Object.defineProperty(Object.prototype, "then$1", { value: function($0) { |
| 286 return this.noSuchMethod$2("then", [$0]); |
| 287 }, enumerable: false, writable: true, configurable: true }); |
| 288 Object.defineProperty(Object.prototype, "toSendPort$0", { value: function() { |
| 289 return this.noSuchMethod$2("toSendPort", []); |
| 290 }, enumerable: false, writable: true, configurable: true }); |
| 291 Object.defineProperty(Object.prototype, "toString$0", { value: function() { |
| 292 return this.toString(); |
| 293 }, enumerable: false, writable: true, configurable: true }); |
| 294 Object.defineProperty(Object.prototype, "visitList$1", { value: function($0) { |
| 295 return this.noSuchMethod$2("visitList", [$0]); |
| 296 }, enumerable: false, writable: true, configurable: true }); |
| 297 // ********** Code for IllegalAccessException ************** |
| 298 function IllegalAccessException() { |
| 299 |
| 300 } |
| 301 IllegalAccessException.prototype.toString = function() { |
| 302 return "Attempt to modify an immutable object"; |
| 303 } |
| 304 IllegalAccessException.prototype.toString$0 = IllegalAccessException.prototype.t
oString; |
| 305 // ********** Code for NoSuchMethodException ************** |
| 306 function NoSuchMethodException(_receiver, _functionName, _arguments) { |
| 307 this._receiver = _receiver; |
| 308 this._functionName = _functionName; |
| 309 this._arguments = _arguments; |
| 310 } |
| 311 NoSuchMethodException.prototype.toString = function() { |
| 312 var sb = new StringBufferImpl(""); |
| 313 for (var i = (0); |
| 314 i < this._arguments.get$length(); i++) { |
| 315 if (i > (0)) { |
| 316 sb.add(", "); |
| 317 } |
| 318 sb.add(this._arguments.$index(i)); |
| 319 } |
| 320 sb.add("]"); |
| 321 return ("NoSuchMethodException - receiver: '" + this._receiver + "' ") + ("fun
ction name: '" + this._functionName + "' arguments: [" + sb + "]"); |
| 322 } |
| 323 NoSuchMethodException.prototype.toString$0 = NoSuchMethodException.prototype.toS
tring; |
| 324 // ********** Code for ClosureArgumentMismatchException ************** |
| 325 function ClosureArgumentMismatchException() { |
| 326 |
| 327 } |
| 328 ClosureArgumentMismatchException.prototype.toString = function() { |
| 329 return "Closure argument mismatch"; |
| 330 } |
| 331 ClosureArgumentMismatchException.prototype.toString$0 = ClosureArgumentMismatchE
xception.prototype.toString; |
| 332 // ********** Code for ObjectNotClosureException ************** |
| 333 function ObjectNotClosureException() { |
| 334 |
| 335 } |
| 336 ObjectNotClosureException.prototype.toString = function() { |
| 337 return "Object is not closure"; |
| 338 } |
| 339 ObjectNotClosureException.prototype.toString$0 = ObjectNotClosureException.proto
type.toString; |
| 340 // ********** Code for IllegalArgumentException ************** |
| 341 function IllegalArgumentException(args) { |
| 342 this._args = args; |
| 343 } |
| 344 IllegalArgumentException.prototype.toString = function() { |
| 345 return ("Illegal argument(s): " + this._args); |
| 346 } |
| 347 IllegalArgumentException.prototype.toString$0 = IllegalArgumentException.prototy
pe.toString; |
| 348 // ********** Code for StackOverflowException ************** |
| 349 function StackOverflowException() { |
| 350 |
| 351 } |
| 352 StackOverflowException.prototype.toString = function() { |
| 353 return "Stack Overflow"; |
| 354 } |
| 355 StackOverflowException.prototype.toString$0 = StackOverflowException.prototype.t
oString; |
| 356 // ********** Code for NullPointerException ************** |
| 357 function NullPointerException() { |
| 358 |
| 359 } |
| 360 NullPointerException.prototype.toString = function() { |
| 361 return "NullPointerException"; |
| 362 } |
| 363 NullPointerException.prototype.toString$0 = NullPointerException.prototype.toStr
ing; |
| 364 // ********** Code for NoMoreElementsException ************** |
| 365 function NoMoreElementsException() { |
| 366 |
| 367 } |
| 368 NoMoreElementsException.prototype.toString = function() { |
| 369 return "NoMoreElementsException"; |
| 370 } |
| 371 NoMoreElementsException.prototype.toString$0 = NoMoreElementsException.prototype
.toString; |
| 372 // ********** Code for EmptyQueueException ************** |
| 373 function EmptyQueueException() { |
| 374 |
| 375 } |
| 376 EmptyQueueException.prototype.toString = function() { |
| 377 return "EmptyQueueException"; |
| 378 } |
| 379 EmptyQueueException.prototype.toString$0 = EmptyQueueException.prototype.toStrin
g; |
| 380 // ********** Code for UnsupportedOperationException ************** |
| 381 function UnsupportedOperationException(_message) { |
| 382 this._message = _message; |
| 383 } |
| 384 UnsupportedOperationException.prototype.toString = function() { |
| 385 return ("UnsupportedOperationException: " + this._message); |
| 386 } |
| 387 UnsupportedOperationException.prototype.toString$0 = UnsupportedOperationExcepti
on.prototype.toString; |
| 388 // ********** Code for dart_core_Function ************** |
| 389 Function.prototype.to$call$0 = function() { |
| 390 this.call$0 = this._genStub(0); |
| 391 this.to$call$0 = function() { return this.call$0; }; |
| 392 return this.call$0; |
| 393 }; |
| 394 Function.prototype.call$0 = function() { |
| 395 return this.to$call$0()(); |
| 396 }; |
| 397 function to$call$0(f) { return f && f.to$call$0(); } |
| 398 Function.prototype.to$call$1 = function() { |
| 399 this.call$1 = this._genStub(1); |
| 400 this.to$call$1 = function() { return this.call$1; }; |
| 401 return this.call$1; |
| 402 }; |
| 403 Function.prototype.call$1 = function($0) { |
| 404 return this.to$call$1()($0); |
| 405 }; |
| 406 function to$call$1(f) { return f && f.to$call$1(); } |
| 407 Function.prototype.to$call$2 = function() { |
| 408 this.call$2 = this._genStub(2); |
| 409 this.to$call$2 = function() { return this.call$2; }; |
| 410 return this.call$2; |
| 411 }; |
| 412 Function.prototype.call$2 = function($0, $1) { |
| 413 return this.to$call$2()($0, $1); |
| 414 }; |
| 415 function to$call$2(f) { return f && f.to$call$2(); } |
| 416 // ********** Code for Futures ************** |
| 417 function Futures() {} |
| 418 Futures.wait = function(futures) { |
| 419 var completer = new CompleterImpl(); |
| 420 var remaining = futures.get$length(); |
| 421 var values = new Array(futures.get$length()); |
| 422 for (var i = (0); |
| 423 i < futures.get$length(); i++) { |
| 424 var pos = i; |
| 425 futures.$index(pos).then$1((function (pos, value) { |
| 426 values.$setindex(pos, value); |
| 427 if (--remaining == (0)) { |
| 428 completer.complete(values); |
| 429 } |
| 430 }).bind(null, pos) |
| 431 ); |
| 432 } |
| 433 if (futures.get$length() == (0)) { |
| 434 completer.complete(values); |
| 435 } |
| 436 return completer.get$future(); |
| 437 } |
| 438 // ********** Code for Isolate ************** |
| 439 function Isolate() {} |
| 440 Isolate.light$ctor = function() { |
| 441 this._isLight = true; |
| 442 } |
| 443 Isolate.light$ctor.prototype = Isolate.prototype; |
| 444 Isolate.prototype.spawn = function() { |
| 445 return IsolateNatives.spawn(this, this._isLight); |
| 446 } |
| 447 Isolate.prototype._run = function(port) { |
| 448 this._port = port; |
| 449 this.main(); |
| 450 } |
| 451 Isolate.prototype.get$port = function() { |
| 452 return this._port; |
| 453 } |
| 454 // ********** Code for Math ************** |
| 455 Math.min = function(a, b) { |
| 456 if (a == b) return a; |
| 457 if (a < b) { |
| 458 if (isNaN(b)) return b; |
| 459 else return a; |
| 460 } |
| 461 if (isNaN(a)) return a; |
| 462 else return b; |
| 463 } |
| 464 Math.max = function(a, b) { |
| 465 return (a >= b) ? a : b; |
| 466 } |
| 467 // ********** Code for top level ************** |
| 468 function dart_core_print(obj) { |
| 469 return _print(obj); |
| 470 } |
| 471 function _print(obj) { |
| 472 if (typeof console == 'object') { |
| 473 if (obj) obj = obj.toString(); |
| 474 console.log(obj); |
| 475 } else { |
| 476 write(obj); |
| 477 write('\n'); |
| 478 } |
| 479 } |
| 480 function _toDartException(e) { |
| 481 function attachStack(dartEx) { |
| 482 // TODO(jmesserly): setting the stack property is not a long term solution. |
| 483 var stack = e.stack; |
| 484 // The stack contains the error message, and the stack is all that is |
| 485 // printed (the exception's toString() is never called). Make the Dart |
| 486 // exception's toString() be the dominant message. |
| 487 if (typeof stack == 'string') { |
| 488 var message = dartEx.toString(); |
| 489 if (/^(Type|Range)Error:/.test(stack)) { |
| 490 // Indent JS message (it can be helpful) so new message stands out. |
| 491 stack = ' (' + stack.substring(0, stack.indexOf('\n')) + ')\n' + |
| 492 stack.substring(stack.indexOf('\n') + 1); |
| 493 } |
| 494 stack = message + '\n' + stack; |
| 495 } |
| 496 dartEx.stack = stack; |
| 497 return dartEx; |
| 498 } |
| 499 |
| 500 if (e instanceof TypeError) { |
| 501 switch(e.type) { |
| 502 case 'property_not_function': |
| 503 case 'called_non_callable': |
| 504 if (e.arguments[0] == null) { |
| 505 return attachStack(new NullPointerException()); |
| 506 } else { |
| 507 return attachStack(new ObjectNotClosureException()); |
| 508 } |
| 509 break; |
| 510 case 'non_object_property_call': |
| 511 case 'non_object_property_load': |
| 512 return attachStack(new NullPointerException()); |
| 513 break; |
| 514 case 'undefined_method': |
| 515 var mname = e.arguments[0]; |
| 516 if (typeof(mname) == 'string' && (mname.indexOf('call$') == 0 |
| 517 || mname == 'call' || mname == 'apply')) { |
| 518 return attachStack(new ObjectNotClosureException()); |
| 519 } else { |
| 520 // TODO(jmesserly): fix noSuchMethod on operators so we don't hit this |
| 521 return attachStack(new NoSuchMethodException('', e.arguments[0], [])); |
| 522 } |
| 523 break; |
| 524 } |
| 525 } else if (e instanceof RangeError) { |
| 526 if (e.message.indexOf('call stack') >= 0) { |
| 527 return attachStack(new StackOverflowException()); |
| 528 } |
| 529 } |
| 530 return e; |
| 531 } |
| 532 function _stackTraceOf(e) { |
| 533 return (e && e.stack) ? e.stack : null; |
| 534 } |
| 535 // ********** Library dart:coreimpl ************** |
| 536 // ********** Code for ListFactory ************** |
| 537 ListFactory = Array; |
| 538 Object.defineProperty(ListFactory.prototype, "is$List", { value: function(){retu
rn true}, enumerable: false, writable: true, configurable: true }); |
| 539 ListFactory.ListFactory$from$factory = function(other) { |
| 540 var list = []; |
| 541 for (var $$i = other.iterator$0(); $$i.hasNext$0(); ) { |
| 542 var e = $$i.next$0(); |
| 543 list.add$1(e); |
| 544 } |
| 545 return list; |
| 546 } |
| 547 Object.defineProperty(ListFactory.prototype, "get$length", { value: function() {
return this.length; }, enumerable: false, writable: true, configurable: true })
; |
| 548 Object.defineProperty(ListFactory.prototype, "set$length", { value: function(val
ue) { return this.length = value; }, enumerable: false, writable: true, configur
able: true }); |
| 549 Object.defineProperty(ListFactory.prototype, "add", { value: function(value) { |
| 550 this.push(value); |
| 551 }, enumerable: false, writable: true, configurable: true }); |
| 552 Object.defineProperty(ListFactory.prototype, "addAll", { value: function(collect
ion) { |
| 553 for (var $$i = collection.iterator$0(); $$i.hasNext$0(); ) { |
| 554 var item = $$i.next$0(); |
| 555 this.add(item); |
| 556 } |
| 557 }, enumerable: false, writable: true, configurable: true }); |
| 558 Object.defineProperty(ListFactory.prototype, "clear", { value: function() { |
| 559 this.set$length((0)); |
| 560 }, enumerable: false, writable: true, configurable: true }); |
| 561 Object.defineProperty(ListFactory.prototype, "get$clear", { value: function() { |
| 562 return this.clear.bind(this); |
| 563 }, enumerable: false, writable: true, configurable: true }); |
| 564 Object.defineProperty(ListFactory.prototype, "removeLast", { value: function() { |
| 565 return this.pop(); |
| 566 }, enumerable: false, writable: true, configurable: true }); |
| 567 Object.defineProperty(ListFactory.prototype, "last", { value: function() { |
| 568 return this[this.get$length() - (1)]; |
| 569 }, enumerable: false, writable: true, configurable: true }); |
| 570 Object.defineProperty(ListFactory.prototype, "isEmpty", { value: function() { |
| 571 return this.get$length() == (0); |
| 572 }, enumerable: false, writable: true, configurable: true }); |
| 573 Object.defineProperty(ListFactory.prototype, "iterator", { value: function() { |
| 574 return new ListIterator(this); |
| 575 }, enumerable: false, writable: true, configurable: true }); |
| 576 Object.defineProperty(ListFactory.prototype, "add$1", { value: ListFactory.proto
type.add, enumerable: false, writable: true, configurable: true }); |
| 577 Object.defineProperty(ListFactory.prototype, "addAll$1", { value: ListFactory.pr
ototype.addAll, enumerable: false, writable: true, configurable: true }); |
| 578 Object.defineProperty(ListFactory.prototype, "clear$0", { value: ListFactory.pro
totype.clear, enumerable: false, writable: true, configurable: true }); |
| 579 Object.defineProperty(ListFactory.prototype, "filter$1", { value: function($0) { |
| 580 return this.filter(to$call$1($0)); |
| 581 }, enumerable: false, writable: true, configurable: true }); |
| 582 Object.defineProperty(ListFactory.prototype, "iterator$0", { value: ListFactory.
prototype.iterator, enumerable: false, writable: true, configurable: true }); |
| 583 Object.defineProperty(ListFactory.prototype, "last$0", { value: ListFactory.prot
otype.last, enumerable: false, writable: true, configurable: true }); |
| 584 Object.defineProperty(ListFactory.prototype, "removeLast$0", { value: ListFactor
y.prototype.removeLast, enumerable: false, writable: true, configurable: true })
; |
| 585 ListFactory_E = ListFactory; |
| 586 ListFactory_Future_bool = ListFactory; |
| 587 ListFactory_K = ListFactory; |
| 588 ListFactory_dart_core_String = ListFactory; |
| 589 ListFactory_V = ListFactory; |
| 590 ListFactory__EventListenerWrapper = ListFactory; |
| 591 // ********** Code for ListIterator ************** |
| 592 function ListIterator(array) { |
| 593 this._array = array; |
| 594 this._pos = (0); |
| 595 } |
| 596 ListIterator.prototype.hasNext = function() { |
| 597 return this._array.get$length() > this._pos; |
| 598 } |
| 599 ListIterator.prototype.next = function() { |
| 600 if (!this.hasNext()) { |
| 601 $throw(const$0000); |
| 602 } |
| 603 return this._array.$index(this._pos++); |
| 604 } |
| 605 ListIterator.prototype.hasNext$0 = ListIterator.prototype.hasNext; |
| 606 ListIterator.prototype.next$0 = ListIterator.prototype.next; |
| 607 // ********** Code for ImmutableList ************** |
| 608 /** Implements extends for Dart classes on JavaScript prototypes. */ |
| 609 function $inherits(child, parent) { |
| 610 if (child.prototype.__proto__) { |
| 611 child.prototype.__proto__ = parent.prototype; |
| 612 } else { |
| 613 function tmp() {}; |
| 614 tmp.prototype = parent.prototype; |
| 615 child.prototype = new tmp(); |
| 616 child.prototype.constructor = child; |
| 617 } |
| 618 } |
| 619 $inherits(ImmutableList, ListFactory_E); |
| 620 function ImmutableList(length) { |
| 621 Array.call(this, length); |
| 622 } |
| 623 ImmutableList.ImmutableList$from$factory = function(other) { |
| 624 return _constList(other); |
| 625 } |
| 626 ImmutableList.prototype.get$length = function() { |
| 627 return this.length; |
| 628 } |
| 629 ImmutableList.prototype.set$length = function(length) { |
| 630 $throw(const$0007); |
| 631 } |
| 632 ImmutableList.prototype.$setindex = function(index, value) { |
| 633 $throw(const$0007); |
| 634 } |
| 635 ImmutableList.prototype.add = function(element) { |
| 636 $throw(const$0007); |
| 637 } |
| 638 ImmutableList.prototype.addAll = function(elements) { |
| 639 $throw(const$0007); |
| 640 } |
| 641 ImmutableList.prototype.clear = function() { |
| 642 $throw(const$0007); |
| 643 } |
| 644 ImmutableList.prototype.get$clear = function() { |
| 645 return this.clear.bind(this); |
| 646 } |
| 647 ImmutableList.prototype.removeLast = function() { |
| 648 $throw(const$0007); |
| 649 } |
| 650 ImmutableList.prototype.toString = function() { |
| 651 return ListFactory.ListFactory$from$factory(this).toString$0(); |
| 652 } |
| 653 ImmutableList.prototype.add$1 = ImmutableList.prototype.add; |
| 654 ImmutableList.prototype.addAll$1 = ImmutableList.prototype.addAll; |
| 655 ImmutableList.prototype.clear$0 = ImmutableList.prototype.clear; |
| 656 ImmutableList.prototype.removeLast$0 = ImmutableList.prototype.removeLast; |
| 657 ImmutableList.prototype.toString$0 = ImmutableList.prototype.toString; |
| 658 // ********** Code for ImmutableMap ************** |
| 659 function ImmutableMap(keyValuePairs) { |
| 660 this._internal = _map(keyValuePairs); |
| 661 } |
| 662 ImmutableMap.prototype.is$Map = function(){return true}; |
| 663 ImmutableMap.prototype.$index = function(key) { |
| 664 return this._internal.$index(key); |
| 665 } |
| 666 ImmutableMap.prototype.isEmpty = function() { |
| 667 return this._internal.isEmpty(); |
| 668 } |
| 669 ImmutableMap.prototype.get$length = function() { |
| 670 return this._internal.get$length(); |
| 671 } |
| 672 ImmutableMap.prototype.forEach = function(f) { |
| 673 this._internal.forEach(f); |
| 674 } |
| 675 ImmutableMap.prototype.getKeys = function() { |
| 676 return this._internal.getKeys$0(); |
| 677 } |
| 678 ImmutableMap.prototype.getValues = function() { |
| 679 return this._internal.getValues$0(); |
| 680 } |
| 681 ImmutableMap.prototype.containsKey = function(key) { |
| 682 return this._internal.containsKey(key); |
| 683 } |
| 684 ImmutableMap.prototype.$setindex = function(key, value) { |
| 685 $throw(const$0007); |
| 686 } |
| 687 ImmutableMap.prototype.putIfAbsent = function(key, ifAbsent) { |
| 688 $throw(const$0007); |
| 689 } |
| 690 ImmutableMap.prototype.clear = function() { |
| 691 $throw(const$0007); |
| 692 } |
| 693 ImmutableMap.prototype.get$clear = function() { |
| 694 return this.clear.bind(this); |
| 695 } |
| 696 ImmutableMap.prototype.remove = function(key) { |
| 697 $throw(const$0007); |
| 698 } |
| 699 ImmutableMap.prototype.clear$0 = ImmutableMap.prototype.clear; |
| 700 ImmutableMap.prototype.getKeys$0 = ImmutableMap.prototype.getKeys; |
| 701 ImmutableMap.prototype.getValues$0 = ImmutableMap.prototype.getValues; |
| 702 ImmutableMap.prototype.putIfAbsent$2 = function($0, $1) { |
| 703 return this.putIfAbsent($0, to$call$0($1)); |
| 704 }; |
| 705 ImmutableMap.prototype.remove$1 = ImmutableMap.prototype.remove; |
| 706 // ********** Code for NumImplementation ************** |
| 707 NumImplementation = Number; |
| 708 NumImplementation.prototype.abs = function() { |
| 709 'use strict'; return Math.abs(this); |
| 710 } |
| 711 NumImplementation.prototype.hashCode = function() { |
| 712 'use strict'; return this & 0x1FFFFFFF; |
| 713 } |
| 714 NumImplementation.prototype.hashCode$0 = NumImplementation.prototype.hashCode; |
| 715 // ********** Code for ExceptionImplementation ************** |
| 716 function ExceptionImplementation(msg) { |
| 717 this._msg = msg; |
| 718 } |
| 719 ExceptionImplementation.prototype.toString = function() { |
| 720 return (this._msg == null) ? "Exception" : ("Exception: " + this._msg); |
| 721 } |
| 722 ExceptionImplementation.prototype.toString$0 = ExceptionImplementation.prototype
.toString; |
| 723 // ********** Code for FutureNotCompleteException ************** |
| 724 function FutureNotCompleteException() { |
| 725 |
| 726 } |
| 727 FutureNotCompleteException.prototype.toString = function() { |
| 728 return "Exception: future has not been completed"; |
| 729 } |
| 730 FutureNotCompleteException.prototype.toString$0 = FutureNotCompleteException.pro
totype.toString; |
| 731 // ********** Code for FutureAlreadyCompleteException ************** |
| 732 function FutureAlreadyCompleteException() { |
| 733 |
| 734 } |
| 735 FutureAlreadyCompleteException.prototype.toString = function() { |
| 736 return "Exception: future already completed"; |
| 737 } |
| 738 FutureAlreadyCompleteException.prototype.toString$0 = FutureAlreadyCompleteExcep
tion.prototype.toString; |
| 739 // ********** Code for FutureImpl ************** |
| 740 function FutureImpl() { |
| 741 this._exceptionHandlers = new Array(); |
| 742 this._listeners = new Array(); |
| 743 this._isComplete = false; |
| 744 this._exceptionHandled = false; |
| 745 } |
| 746 FutureImpl.prototype.get$value = function() { |
| 747 if (!this.get$isComplete()) { |
| 748 $throw(new FutureNotCompleteException()); |
| 749 } |
| 750 if (this._exception != null) { |
| 751 $throw(this._exception); |
| 752 } |
| 753 return this._value; |
| 754 } |
| 755 FutureImpl.prototype.get$isComplete = function() { |
| 756 return this._isComplete; |
| 757 } |
| 758 FutureImpl.prototype.get$hasValue = function() { |
| 759 return this.get$isComplete() && this._exception == null; |
| 760 } |
| 761 FutureImpl.prototype.then = function(onComplete) { |
| 762 if (this.get$hasValue()) { |
| 763 onComplete.call$1(this.get$value()); |
| 764 } |
| 765 else if (!this.get$isComplete()) { |
| 766 this._listeners.add$1(onComplete); |
| 767 } |
| 768 else if (!this._exceptionHandled) { |
| 769 $throw(this._exception); |
| 770 } |
| 771 } |
| 772 FutureImpl.prototype.handleException = function(onException) { |
| 773 this._exceptionHandlers.add$1(onException); |
| 774 } |
| 775 FutureImpl.prototype._complete = function() { |
| 776 this._isComplete = true; |
| 777 if (this._exception != null) { |
| 778 var $$list = this._exceptionHandlers; |
| 779 for (var $$i = 0;$$i < $$list.get$length(); $$i++) { |
| 780 var handler = $$list.$index($$i); |
| 781 if (handler.call$1(this._exception)) { |
| 782 this._exceptionHandled = true; |
| 783 break; |
| 784 } |
| 785 } |
| 786 } |
| 787 if (this.get$hasValue()) { |
| 788 var $$list = this._listeners; |
| 789 for (var $$i = 0;$$i < $$list.get$length(); $$i++) { |
| 790 var listener = $$list.$index($$i); |
| 791 listener.call$1(this.get$value()); |
| 792 } |
| 793 } |
| 794 else { |
| 795 if (!this._exceptionHandled && this._listeners.get$length() > (0)) { |
| 796 $throw(this._exception); |
| 797 } |
| 798 } |
| 799 } |
| 800 FutureImpl.prototype._setValue = function(value) { |
| 801 if (this._isComplete) { |
| 802 $throw(new FutureAlreadyCompleteException()); |
| 803 } |
| 804 this._value = value; |
| 805 this._complete(); |
| 806 } |
| 807 FutureImpl.prototype._setException = function(exception) { |
| 808 if (exception == null) { |
| 809 $throw(new IllegalArgumentException(null)); |
| 810 } |
| 811 if (this._isComplete) { |
| 812 $throw(new FutureAlreadyCompleteException()); |
| 813 } |
| 814 this._exception = exception; |
| 815 this._complete(); |
| 816 } |
| 817 FutureImpl.prototype.then$1 = function($0) { |
| 818 return this.then(to$call$1($0)); |
| 819 }; |
| 820 // ********** Code for FutureImpl_T ************** |
| 821 $inherits(FutureImpl_T, FutureImpl); |
| 822 function FutureImpl_T() {} |
| 823 FutureImpl_T.prototype._complete = function() { |
| 824 this._isComplete = true; |
| 825 if (this._exception != null) { |
| 826 var $$list = this._exceptionHandlers; |
| 827 for (var $$i = 0;$$i < $$list.get$length(); $$i++) { |
| 828 var handler = $$list.$index($$i); |
| 829 if (handler.call$1(this._exception)) { |
| 830 this._exceptionHandled = true; |
| 831 break; |
| 832 } |
| 833 } |
| 834 } |
| 835 if (this.get$hasValue()) { |
| 836 var $$list = this._listeners; |
| 837 for (var $$i = 0;$$i < $$list.get$length(); $$i++) { |
| 838 var listener = $$list.$index($$i); |
| 839 listener.call$1(this.get$value()); |
| 840 } |
| 841 } |
| 842 else { |
| 843 if (!this._exceptionHandled && this._listeners.get$length() > (0)) { |
| 844 $throw(this._exception); |
| 845 } |
| 846 } |
| 847 } |
| 848 FutureImpl_T.prototype._setValue = function(value) { |
| 849 if (this._isComplete) { |
| 850 $throw(new FutureAlreadyCompleteException()); |
| 851 } |
| 852 this._value = value; |
| 853 this._complete(); |
| 854 } |
| 855 FutureImpl_T.prototype._setException = function(exception) { |
| 856 if (exception == null) { |
| 857 $throw(new IllegalArgumentException(null)); |
| 858 } |
| 859 if (this._isComplete) { |
| 860 $throw(new FutureAlreadyCompleteException()); |
| 861 } |
| 862 this._exception = exception; |
| 863 this._complete(); |
| 864 } |
| 865 // ********** Code for CompleterImpl ************** |
| 866 function CompleterImpl() { |
| 867 this._futureImpl = new FutureImpl(); |
| 868 } |
| 869 CompleterImpl.prototype.get$future = function() { |
| 870 return this._futureImpl; |
| 871 } |
| 872 CompleterImpl.prototype.complete = function(value) { |
| 873 this._futureImpl._setValue(value); |
| 874 } |
| 875 CompleterImpl.prototype.get$complete = function() { |
| 876 return this.complete.bind(this); |
| 877 } |
| 878 CompleterImpl.prototype.completeException = function(exception) { |
| 879 this._futureImpl._setException(exception); |
| 880 } |
| 881 CompleterImpl.prototype.complete$1 = CompleterImpl.prototype.complete; |
| 882 // ********** Code for CompleterImpl_ElementRect ************** |
| 883 $inherits(CompleterImpl_ElementRect, CompleterImpl); |
| 884 function CompleterImpl_ElementRect() {} |
| 885 // ********** Code for CompleterImpl_List_int ************** |
| 886 $inherits(CompleterImpl_List_int, CompleterImpl); |
| 887 function CompleterImpl_List_int() {} |
| 888 // ********** Code for CompleterImpl_List ************** |
| 889 $inherits(CompleterImpl_List, CompleterImpl); |
| 890 function CompleterImpl_List() {} |
| 891 // ********** Code for CompleterImpl_SendPort ************** |
| 892 $inherits(CompleterImpl_SendPort, CompleterImpl); |
| 893 function CompleterImpl_SendPort() {} |
| 894 // ********** Code for CompleterImpl_bool ************** |
| 895 $inherits(CompleterImpl_bool, CompleterImpl); |
| 896 function CompleterImpl_bool() {} |
| 897 // ********** Code for CompleterImpl_int ************** |
| 898 $inherits(CompleterImpl_int, CompleterImpl); |
| 899 function CompleterImpl_int() {} |
| 900 // ********** Code for HashMapImplementation ************** |
| 901 function HashMapImplementation() { |
| 902 this._numberOfEntries = (0); |
| 903 this._numberOfDeleted = (0); |
| 904 this._loadLimit = HashMapImplementation._computeLoadLimit((8)); |
| 905 this._keys = new Array((8)); |
| 906 this._values = new Array((8)); |
| 907 } |
| 908 HashMapImplementation.prototype.is$Map = function(){return true}; |
| 909 HashMapImplementation._computeLoadLimit = function(capacity) { |
| 910 return $truncdiv((capacity * (3)), (4)); |
| 911 } |
| 912 HashMapImplementation._firstProbe = function(hashCode, length) { |
| 913 return hashCode & (length - (1)); |
| 914 } |
| 915 HashMapImplementation._nextProbe = function(currentProbe, numberOfProbes, length
) { |
| 916 return (currentProbe + numberOfProbes) & (length - (1)); |
| 917 } |
| 918 HashMapImplementation.prototype._probeForAdding = function(key) { |
| 919 var hash = HashMapImplementation._firstProbe(key.hashCode$0(), this._keys.get$
length()); |
| 920 var numberOfProbes = (1); |
| 921 var initialHash = hash; |
| 922 var insertionIndex = (-1); |
| 923 while (true) { |
| 924 var existingKey = this._keys.$index(hash); |
| 925 if (existingKey == null) { |
| 926 if (insertionIndex < (0)) return hash; |
| 927 return insertionIndex; |
| 928 } |
| 929 else if ($eq(existingKey, key)) { |
| 930 return hash; |
| 931 } |
| 932 else if ((insertionIndex < (0)) && (const$0002 == existingKey)) { |
| 933 insertionIndex = hash; |
| 934 } |
| 935 hash = HashMapImplementation._nextProbe(hash, numberOfProbes++, this._keys.g
et$length()); |
| 936 } |
| 937 } |
| 938 HashMapImplementation.prototype._probeForLookup = function(key) { |
| 939 var hash = HashMapImplementation._firstProbe(key.hashCode$0(), this._keys.get$
length()); |
| 940 var numberOfProbes = (1); |
| 941 var initialHash = hash; |
| 942 while (true) { |
| 943 var existingKey = this._keys.$index(hash); |
| 944 if (existingKey == null) return (-1); |
| 945 if ($eq(existingKey, key)) return hash; |
| 946 hash = HashMapImplementation._nextProbe(hash, numberOfProbes++, this._keys.g
et$length()); |
| 947 } |
| 948 } |
| 949 HashMapImplementation.prototype._ensureCapacity = function() { |
| 950 var newNumberOfEntries = this._numberOfEntries + (1); |
| 951 if (newNumberOfEntries >= this._loadLimit) { |
| 952 this._grow(this._keys.get$length() * (2)); |
| 953 return; |
| 954 } |
| 955 var capacity = this._keys.get$length(); |
| 956 var numberOfFreeOrDeleted = capacity - newNumberOfEntries; |
| 957 var numberOfFree = numberOfFreeOrDeleted - this._numberOfDeleted; |
| 958 if (this._numberOfDeleted > numberOfFree) { |
| 959 this._grow(this._keys.get$length()); |
| 960 } |
| 961 } |
| 962 HashMapImplementation._isPowerOfTwo = function(x) { |
| 963 return ((x & (x - (1))) == (0)); |
| 964 } |
| 965 HashMapImplementation.prototype._grow = function(newCapacity) { |
| 966 var capacity = this._keys.get$length(); |
| 967 this._loadLimit = HashMapImplementation._computeLoadLimit(newCapacity); |
| 968 var oldKeys = this._keys; |
| 969 var oldValues = this._values; |
| 970 this._keys = new Array(newCapacity); |
| 971 this._values = new Array(newCapacity); |
| 972 for (var i = (0); |
| 973 i < capacity; i++) { |
| 974 var key = oldKeys.$index(i); |
| 975 if (key == null || key == const$0002) { |
| 976 continue; |
| 977 } |
| 978 var value = oldValues.$index(i); |
| 979 var newIndex = this._probeForAdding(key); |
| 980 this._keys.$setindex(newIndex, key); |
| 981 this._values.$setindex(newIndex, value); |
| 982 } |
| 983 this._numberOfDeleted = (0); |
| 984 } |
| 985 HashMapImplementation.prototype.clear = function() { |
| 986 this._numberOfEntries = (0); |
| 987 this._numberOfDeleted = (0); |
| 988 var length = this._keys.get$length(); |
| 989 for (var i = (0); |
| 990 i < length; i++) { |
| 991 this._keys.$setindex(i); |
| 992 this._values.$setindex(i); |
| 993 } |
| 994 } |
| 995 HashMapImplementation.prototype.get$clear = function() { |
| 996 return this.clear.bind(this); |
| 997 } |
| 998 HashMapImplementation.prototype.$setindex = function(key, value) { |
| 999 this._ensureCapacity(); |
| 1000 var index = this._probeForAdding(key); |
| 1001 if ((this._keys.$index(index) == null) || (this._keys.$index(index) == const$0
002)) { |
| 1002 this._numberOfEntries++; |
| 1003 } |
| 1004 this._keys.$setindex(index, key); |
| 1005 this._values.$setindex(index, value); |
| 1006 } |
| 1007 HashMapImplementation.prototype.$index = function(key) { |
| 1008 var index = this._probeForLookup(key); |
| 1009 if (index < (0)) return null; |
| 1010 return this._values.$index(index); |
| 1011 } |
| 1012 HashMapImplementation.prototype.putIfAbsent = function(key, ifAbsent) { |
| 1013 var index = this._probeForLookup(key); |
| 1014 if (index >= (0)) return this._values.$index(index); |
| 1015 var value = ifAbsent.call$0(); |
| 1016 this.$setindex(key, value); |
| 1017 return value; |
| 1018 } |
| 1019 HashMapImplementation.prototype.remove = function(key) { |
| 1020 var index = this._probeForLookup(key); |
| 1021 if (index >= (0)) { |
| 1022 this._numberOfEntries--; |
| 1023 var value = this._values.$index(index); |
| 1024 this._values.$setindex(index); |
| 1025 this._keys.$setindex(index, const$0002); |
| 1026 this._numberOfDeleted++; |
| 1027 return value; |
| 1028 } |
| 1029 return null; |
| 1030 } |
| 1031 HashMapImplementation.prototype.isEmpty = function() { |
| 1032 return this._numberOfEntries == (0); |
| 1033 } |
| 1034 HashMapImplementation.prototype.get$length = function() { |
| 1035 return this._numberOfEntries; |
| 1036 } |
| 1037 HashMapImplementation.prototype.forEach = function(f) { |
| 1038 var length = this._keys.get$length(); |
| 1039 for (var i = (0); |
| 1040 i < length; i++) { |
| 1041 var key = this._keys.$index(i); |
| 1042 if ((key != null) && (key != const$0002)) { |
| 1043 f.call$2(key, this._values.$index(i)); |
| 1044 } |
| 1045 } |
| 1046 } |
| 1047 HashMapImplementation.prototype.getKeys = function() { |
| 1048 var list = new Array(this.get$length()); |
| 1049 var i = (0); |
| 1050 this.forEach(function _(key, value) { |
| 1051 list.$setindex(i++, key); |
| 1052 } |
| 1053 ); |
| 1054 return list; |
| 1055 } |
| 1056 HashMapImplementation.prototype.getValues = function() { |
| 1057 var list = new Array(this.get$length()); |
| 1058 var i = (0); |
| 1059 this.forEach(function _(key, value) { |
| 1060 list.$setindex(i++, value); |
| 1061 } |
| 1062 ); |
| 1063 return list; |
| 1064 } |
| 1065 HashMapImplementation.prototype.containsKey = function(key) { |
| 1066 return (this._probeForLookup(key) != (-1)); |
| 1067 } |
| 1068 HashMapImplementation.prototype.clear$0 = HashMapImplementation.prototype.clear; |
| 1069 HashMapImplementation.prototype.getKeys$0 = HashMapImplementation.prototype.getK
eys; |
| 1070 HashMapImplementation.prototype.getValues$0 = HashMapImplementation.prototype.ge
tValues; |
| 1071 HashMapImplementation.prototype.putIfAbsent$2 = function($0, $1) { |
| 1072 return this.putIfAbsent($0, to$call$0($1)); |
| 1073 }; |
| 1074 HashMapImplementation.prototype.remove$1 = HashMapImplementation.prototype.remov
e; |
| 1075 // ********** Code for HashMapImplementation_E$E ************** |
| 1076 $inherits(HashMapImplementation_E$E, HashMapImplementation); |
| 1077 function HashMapImplementation_E$E() {} |
| 1078 HashMapImplementation_E$E.prototype.is$Map = function(){return true}; |
| 1079 // ********** Code for HashMapImplementation_K$DoubleLinkedQueueEntry_KeyValuePa
ir_K$V ************** |
| 1080 $inherits(HashMapImplementation_K$DoubleLinkedQueueEntry_KeyValuePair_K$V, HashM
apImplementation); |
| 1081 function HashMapImplementation_K$DoubleLinkedQueueEntry_KeyValuePair_K$V() {} |
| 1082 HashMapImplementation_K$DoubleLinkedQueueEntry_KeyValuePair_K$V.prototype.is$Map
= function(){return true}; |
| 1083 // ********** Code for _DeletedKeySentinel ************** |
| 1084 function _DeletedKeySentinel() { |
| 1085 |
| 1086 } |
| 1087 // ********** Code for KeyValuePair ************** |
| 1088 function KeyValuePair(key, value) { |
| 1089 this.value = value; |
| 1090 this.key = key; |
| 1091 } |
| 1092 KeyValuePair.prototype.get$value = function() { return this.value; }; |
| 1093 KeyValuePair.prototype.set$value = function(value) { return this.value = value;
}; |
| 1094 // ********** Code for KeyValuePair_K$V ************** |
| 1095 $inherits(KeyValuePair_K$V, KeyValuePair); |
| 1096 function KeyValuePair_K$V(key, value) { |
| 1097 this.key = key; |
| 1098 this.value = value; |
| 1099 } |
| 1100 // ********** Code for LinkedHashMapImplementation ************** |
| 1101 function LinkedHashMapImplementation() { |
| 1102 this._map = new HashMapImplementation(); |
| 1103 this._list = new DoubleLinkedQueue_KeyValuePair_K$V(); |
| 1104 } |
| 1105 LinkedHashMapImplementation.prototype.is$Map = function(){return true}; |
| 1106 LinkedHashMapImplementation.prototype.$setindex = function(key, value) { |
| 1107 if (this._map.containsKey(key)) { |
| 1108 this._map.$index(key).get$element().set$value(value); |
| 1109 } |
| 1110 else { |
| 1111 this._list.addLast(new KeyValuePair_K$V(key, value)); |
| 1112 this._map.$setindex(key, this._list.lastEntry()); |
| 1113 } |
| 1114 } |
| 1115 LinkedHashMapImplementation.prototype.$index = function(key) { |
| 1116 var entry = this._map.$index(key); |
| 1117 if (entry == null) return null; |
| 1118 return entry.get$element().get$value(); |
| 1119 } |
| 1120 LinkedHashMapImplementation.prototype.remove = function(key) { |
| 1121 var entry = this._map.remove$1(key); |
| 1122 if (entry == null) return null; |
| 1123 entry.remove$0(); |
| 1124 return entry.get$element().get$value(); |
| 1125 } |
| 1126 LinkedHashMapImplementation.prototype.putIfAbsent = function(key, ifAbsent) { |
| 1127 var value = this.$index(key); |
| 1128 if ((this.$index(key) == null) && !(this.containsKey(key))) { |
| 1129 value = ifAbsent.call$0(); |
| 1130 this.$setindex(key, value); |
| 1131 } |
| 1132 return value; |
| 1133 } |
| 1134 LinkedHashMapImplementation.prototype.getKeys = function() { |
| 1135 var list = new Array(this.get$length()); |
| 1136 var index = (0); |
| 1137 this._list.forEach(function _(entry) { |
| 1138 list.$setindex(index++, entry.key); |
| 1139 } |
| 1140 ); |
| 1141 return list; |
| 1142 } |
| 1143 LinkedHashMapImplementation.prototype.getValues = function() { |
| 1144 var list = new Array(this.get$length()); |
| 1145 var index = (0); |
| 1146 this._list.forEach(function _(entry) { |
| 1147 list.$setindex(index++, entry.value); |
| 1148 } |
| 1149 ); |
| 1150 return list; |
| 1151 } |
| 1152 LinkedHashMapImplementation.prototype.forEach = function(f) { |
| 1153 this._list.forEach(function _(entry) { |
| 1154 f.call$2(entry.key, entry.value); |
| 1155 } |
| 1156 ); |
| 1157 } |
| 1158 LinkedHashMapImplementation.prototype.containsKey = function(key) { |
| 1159 return this._map.containsKey(key); |
| 1160 } |
| 1161 LinkedHashMapImplementation.prototype.get$length = function() { |
| 1162 return this._map.get$length(); |
| 1163 } |
| 1164 LinkedHashMapImplementation.prototype.isEmpty = function() { |
| 1165 return this.get$length() == (0); |
| 1166 } |
| 1167 LinkedHashMapImplementation.prototype.clear = function() { |
| 1168 this._map.clear(); |
| 1169 this._list.clear(); |
| 1170 } |
| 1171 LinkedHashMapImplementation.prototype.get$clear = function() { |
| 1172 return this.clear.bind(this); |
| 1173 } |
| 1174 LinkedHashMapImplementation.prototype.clear$0 = LinkedHashMapImplementation.prot
otype.clear; |
| 1175 LinkedHashMapImplementation.prototype.getKeys$0 = LinkedHashMapImplementation.pr
ototype.getKeys; |
| 1176 LinkedHashMapImplementation.prototype.getValues$0 = LinkedHashMapImplementation.
prototype.getValues; |
| 1177 LinkedHashMapImplementation.prototype.putIfAbsent$2 = function($0, $1) { |
| 1178 return this.putIfAbsent($0, to$call$0($1)); |
| 1179 }; |
| 1180 LinkedHashMapImplementation.prototype.remove$1 = LinkedHashMapImplementation.pro
totype.remove; |
| 1181 // ********** Code for DoubleLinkedQueueEntry ************** |
| 1182 function DoubleLinkedQueueEntry(e) { |
| 1183 this._element = e; |
| 1184 } |
| 1185 DoubleLinkedQueueEntry.prototype._link = function(p, n) { |
| 1186 this._next = n; |
| 1187 this._previous = p; |
| 1188 p._next = this; |
| 1189 n._previous = this; |
| 1190 } |
| 1191 DoubleLinkedQueueEntry.prototype.prepend = function(e) { |
| 1192 new DoubleLinkedQueueEntry_E(e)._link(this._previous, this); |
| 1193 } |
| 1194 DoubleLinkedQueueEntry.prototype.remove = function() { |
| 1195 this._previous._next = this._next; |
| 1196 this._next._previous = this._previous; |
| 1197 this._next = null; |
| 1198 this._previous = null; |
| 1199 return this._element; |
| 1200 } |
| 1201 DoubleLinkedQueueEntry.prototype._asNonSentinelEntry = function() { |
| 1202 return this; |
| 1203 } |
| 1204 DoubleLinkedQueueEntry.prototype.previousEntry = function() { |
| 1205 return this._previous._asNonSentinelEntry(); |
| 1206 } |
| 1207 DoubleLinkedQueueEntry.prototype.get$element = function() { |
| 1208 return this._element; |
| 1209 } |
| 1210 DoubleLinkedQueueEntry.prototype._asNonSentinelEntry$0 = DoubleLinkedQueueEntry.
prototype._asNonSentinelEntry; |
| 1211 DoubleLinkedQueueEntry.prototype.remove$0 = DoubleLinkedQueueEntry.prototype.rem
ove; |
| 1212 // ********** Code for DoubleLinkedQueueEntry_E ************** |
| 1213 $inherits(DoubleLinkedQueueEntry_E, DoubleLinkedQueueEntry); |
| 1214 function DoubleLinkedQueueEntry_E(e) { |
| 1215 this._element = e; |
| 1216 } |
| 1217 DoubleLinkedQueueEntry_E.prototype._link = function(p, n) { |
| 1218 this._next = n; |
| 1219 this._previous = p; |
| 1220 p._next = this; |
| 1221 n._previous = this; |
| 1222 } |
| 1223 DoubleLinkedQueueEntry_E.prototype.prepend = function(e) { |
| 1224 new DoubleLinkedQueueEntry_E(e)._link(this._previous, this); |
| 1225 } |
| 1226 DoubleLinkedQueueEntry_E.prototype.remove = function() { |
| 1227 this._previous._next = this._next; |
| 1228 this._next._previous = this._previous; |
| 1229 this._next = null; |
| 1230 this._previous = null; |
| 1231 return this._element; |
| 1232 } |
| 1233 DoubleLinkedQueueEntry_E.prototype._asNonSentinelEntry = function() { |
| 1234 return this; |
| 1235 } |
| 1236 // ********** Code for DoubleLinkedQueueEntry_KeyValuePair_K$V ************** |
| 1237 $inherits(DoubleLinkedQueueEntry_KeyValuePair_K$V, DoubleLinkedQueueEntry); |
| 1238 function DoubleLinkedQueueEntry_KeyValuePair_K$V(e) { |
| 1239 this._element = e; |
| 1240 } |
| 1241 DoubleLinkedQueueEntry_KeyValuePair_K$V.prototype._link = function(p, n) { |
| 1242 this._next = n; |
| 1243 this._previous = p; |
| 1244 p._next = this; |
| 1245 n._previous = this; |
| 1246 } |
| 1247 DoubleLinkedQueueEntry_KeyValuePair_K$V.prototype.prepend = function(e) { |
| 1248 new DoubleLinkedQueueEntry_KeyValuePair_K$V(e)._link(this._previous, this); |
| 1249 } |
| 1250 DoubleLinkedQueueEntry_KeyValuePair_K$V.prototype.remove = function() { |
| 1251 this._previous._next = this._next; |
| 1252 this._next._previous = this._previous; |
| 1253 this._next = null; |
| 1254 this._previous = null; |
| 1255 return this._element; |
| 1256 } |
| 1257 DoubleLinkedQueueEntry_KeyValuePair_K$V.prototype._asNonSentinelEntry = function
() { |
| 1258 return this; |
| 1259 } |
| 1260 DoubleLinkedQueueEntry_KeyValuePair_K$V.prototype.previousEntry = function() { |
| 1261 return this._previous._asNonSentinelEntry$0(); |
| 1262 } |
| 1263 // ********** Code for _DoubleLinkedQueueEntrySentinel ************** |
| 1264 $inherits(_DoubleLinkedQueueEntrySentinel, DoubleLinkedQueueEntry_E); |
| 1265 function _DoubleLinkedQueueEntrySentinel() { |
| 1266 DoubleLinkedQueueEntry_E.call(this, null); |
| 1267 this._link(this, this); |
| 1268 } |
| 1269 _DoubleLinkedQueueEntrySentinel.prototype.remove = function() { |
| 1270 $throw(const$0003); |
| 1271 } |
| 1272 _DoubleLinkedQueueEntrySentinel.prototype._asNonSentinelEntry = function() { |
| 1273 return null; |
| 1274 } |
| 1275 _DoubleLinkedQueueEntrySentinel.prototype.get$element = function() { |
| 1276 $throw(const$0003); |
| 1277 } |
| 1278 _DoubleLinkedQueueEntrySentinel.prototype._asNonSentinelEntry$0 = _DoubleLinkedQ
ueueEntrySentinel.prototype._asNonSentinelEntry; |
| 1279 _DoubleLinkedQueueEntrySentinel.prototype.remove$0 = _DoubleLinkedQueueEntrySent
inel.prototype.remove; |
| 1280 // ********** Code for _DoubleLinkedQueueEntrySentinel_E ************** |
| 1281 $inherits(_DoubleLinkedQueueEntrySentinel_E, _DoubleLinkedQueueEntrySentinel); |
| 1282 function _DoubleLinkedQueueEntrySentinel_E() { |
| 1283 DoubleLinkedQueueEntry_E.call(this, null); |
| 1284 this._link(this, this); |
| 1285 } |
| 1286 // ********** Code for _DoubleLinkedQueueEntrySentinel_KeyValuePair_K$V ********
****** |
| 1287 $inherits(_DoubleLinkedQueueEntrySentinel_KeyValuePair_K$V, _DoubleLinkedQueueEn
trySentinel); |
| 1288 function _DoubleLinkedQueueEntrySentinel_KeyValuePair_K$V() { |
| 1289 DoubleLinkedQueueEntry_KeyValuePair_K$V.call(this, null); |
| 1290 this._link(this, this); |
| 1291 } |
| 1292 // ********** Code for DoubleLinkedQueue ************** |
| 1293 function DoubleLinkedQueue() { |
| 1294 this._sentinel = new _DoubleLinkedQueueEntrySentinel_E(); |
| 1295 } |
| 1296 DoubleLinkedQueue.prototype.addLast = function(value) { |
| 1297 this._sentinel.prepend(value); |
| 1298 } |
| 1299 DoubleLinkedQueue.prototype.add = function(value) { |
| 1300 this.addLast(value); |
| 1301 } |
| 1302 DoubleLinkedQueue.prototype.addAll = function(collection) { |
| 1303 for (var $$i = collection.iterator$0(); $$i.hasNext$0(); ) { |
| 1304 var e = $$i.next$0(); |
| 1305 this.add(e); |
| 1306 } |
| 1307 } |
| 1308 DoubleLinkedQueue.prototype.removeLast = function() { |
| 1309 return this._sentinel._previous.remove(); |
| 1310 } |
| 1311 DoubleLinkedQueue.prototype.removeFirst = function() { |
| 1312 return this._sentinel._next.remove(); |
| 1313 } |
| 1314 DoubleLinkedQueue.prototype.first = function() { |
| 1315 return this._sentinel._next.get$element(); |
| 1316 } |
| 1317 DoubleLinkedQueue.prototype.get$first = function() { |
| 1318 return this.first.bind(this); |
| 1319 } |
| 1320 DoubleLinkedQueue.prototype.last = function() { |
| 1321 return this._sentinel._previous.get$element(); |
| 1322 } |
| 1323 DoubleLinkedQueue.prototype.get$length = function() { |
| 1324 var counter = (0); |
| 1325 this.forEach(function _(element) { |
| 1326 counter++; |
| 1327 } |
| 1328 ); |
| 1329 return counter; |
| 1330 } |
| 1331 DoubleLinkedQueue.prototype.isEmpty = function() { |
| 1332 return (this._sentinel._next == this._sentinel); |
| 1333 } |
| 1334 DoubleLinkedQueue.prototype.clear = function() { |
| 1335 this._sentinel._next = this._sentinel; |
| 1336 this._sentinel._previous = this._sentinel; |
| 1337 } |
| 1338 DoubleLinkedQueue.prototype.get$clear = function() { |
| 1339 return this.clear.bind(this); |
| 1340 } |
| 1341 DoubleLinkedQueue.prototype.forEach = function(f) { |
| 1342 var entry = this._sentinel._next; |
| 1343 while (entry != this._sentinel) { |
| 1344 var nextEntry = entry._next; |
| 1345 f.call$1(entry._element); |
| 1346 entry = nextEntry; |
| 1347 } |
| 1348 } |
| 1349 DoubleLinkedQueue.prototype.filter = function(f) { |
| 1350 var other = new DoubleLinkedQueue(); |
| 1351 var entry = this._sentinel._next; |
| 1352 while (entry != this._sentinel) { |
| 1353 var nextEntry = entry._next; |
| 1354 if (f.call$1(entry._element)) other.addLast(entry._element); |
| 1355 entry = nextEntry; |
| 1356 } |
| 1357 return other; |
| 1358 } |
| 1359 DoubleLinkedQueue.prototype.iterator = function() { |
| 1360 return new _DoubleLinkedQueueIterator_E(this._sentinel); |
| 1361 } |
| 1362 DoubleLinkedQueue.prototype.add$1 = DoubleLinkedQueue.prototype.add; |
| 1363 DoubleLinkedQueue.prototype.addAll$1 = DoubleLinkedQueue.prototype.addAll; |
| 1364 DoubleLinkedQueue.prototype.clear$0 = DoubleLinkedQueue.prototype.clear; |
| 1365 DoubleLinkedQueue.prototype.filter$1 = function($0) { |
| 1366 return this.filter(to$call$1($0)); |
| 1367 }; |
| 1368 DoubleLinkedQueue.prototype.iterator$0 = DoubleLinkedQueue.prototype.iterator; |
| 1369 DoubleLinkedQueue.prototype.last$0 = DoubleLinkedQueue.prototype.last; |
| 1370 DoubleLinkedQueue.prototype.removeLast$0 = DoubleLinkedQueue.prototype.removeLas
t; |
| 1371 // ********** Code for DoubleLinkedQueue_E ************** |
| 1372 $inherits(DoubleLinkedQueue_E, DoubleLinkedQueue); |
| 1373 function DoubleLinkedQueue_E() {} |
| 1374 // ********** Code for DoubleLinkedQueue_IsolateEvent ************** |
| 1375 $inherits(DoubleLinkedQueue_IsolateEvent, DoubleLinkedQueue); |
| 1376 function DoubleLinkedQueue_IsolateEvent() {} |
| 1377 // ********** Code for DoubleLinkedQueue_KeyValuePair_K$V ************** |
| 1378 $inherits(DoubleLinkedQueue_KeyValuePair_K$V, DoubleLinkedQueue); |
| 1379 function DoubleLinkedQueue_KeyValuePair_K$V() { |
| 1380 this._sentinel = new _DoubleLinkedQueueEntrySentinel_KeyValuePair_K$V(); |
| 1381 } |
| 1382 DoubleLinkedQueue_KeyValuePair_K$V.prototype.addLast = function(value) { |
| 1383 this._sentinel.prepend(value); |
| 1384 } |
| 1385 DoubleLinkedQueue_KeyValuePair_K$V.prototype.lastEntry = function() { |
| 1386 return this._sentinel.previousEntry(); |
| 1387 } |
| 1388 DoubleLinkedQueue_KeyValuePair_K$V.prototype.clear = function() { |
| 1389 this._sentinel._next = this._sentinel; |
| 1390 this._sentinel._previous = this._sentinel; |
| 1391 } |
| 1392 DoubleLinkedQueue_KeyValuePair_K$V.prototype.forEach = function(f) { |
| 1393 var entry = this._sentinel._next; |
| 1394 while (entry != this._sentinel) { |
| 1395 var nextEntry = entry._next; |
| 1396 f.call$1(entry._element); |
| 1397 entry = nextEntry; |
| 1398 } |
| 1399 } |
| 1400 // ********** Code for _DoubleLinkedQueueIterator ************** |
| 1401 function _DoubleLinkedQueueIterator(_sentinel) { |
| 1402 this._sentinel = _sentinel; |
| 1403 this._currentEntry = this._sentinel; |
| 1404 } |
| 1405 _DoubleLinkedQueueIterator.prototype.hasNext = function() { |
| 1406 return this._currentEntry._next != this._sentinel; |
| 1407 } |
| 1408 _DoubleLinkedQueueIterator.prototype.next = function() { |
| 1409 if (!this.hasNext()) { |
| 1410 $throw(const$0000); |
| 1411 } |
| 1412 this._currentEntry = this._currentEntry._next; |
| 1413 return this._currentEntry.get$element(); |
| 1414 } |
| 1415 _DoubleLinkedQueueIterator.prototype.hasNext$0 = _DoubleLinkedQueueIterator.prot
otype.hasNext; |
| 1416 _DoubleLinkedQueueIterator.prototype.next$0 = _DoubleLinkedQueueIterator.prototy
pe.next; |
| 1417 // ********** Code for _DoubleLinkedQueueIterator_E ************** |
| 1418 $inherits(_DoubleLinkedQueueIterator_E, _DoubleLinkedQueueIterator); |
| 1419 function _DoubleLinkedQueueIterator_E(_sentinel) { |
| 1420 this._sentinel = _sentinel; |
| 1421 this._currentEntry = this._sentinel; |
| 1422 } |
| 1423 // ********** Code for StringBufferImpl ************** |
| 1424 function StringBufferImpl(content) { |
| 1425 this.clear(); |
| 1426 this.add(content); |
| 1427 } |
| 1428 StringBufferImpl.prototype.get$length = function() { |
| 1429 return this._length; |
| 1430 } |
| 1431 StringBufferImpl.prototype.add = function(obj) { |
| 1432 var str = obj.toString$0(); |
| 1433 if (str == null || str.isEmpty()) return this; |
| 1434 this._buffer.add$1(str); |
| 1435 this._length = this._length + str.length; |
| 1436 return this; |
| 1437 } |
| 1438 StringBufferImpl.prototype.addAll = function(objects) { |
| 1439 for (var $$i = objects.iterator$0(); $$i.hasNext$0(); ) { |
| 1440 var obj = $$i.next$0(); |
| 1441 this.add(obj); |
| 1442 } |
| 1443 return this; |
| 1444 } |
| 1445 StringBufferImpl.prototype.clear = function() { |
| 1446 this._buffer = new Array(); |
| 1447 this._length = (0); |
| 1448 return this; |
| 1449 } |
| 1450 StringBufferImpl.prototype.get$clear = function() { |
| 1451 return this.clear.bind(this); |
| 1452 } |
| 1453 StringBufferImpl.prototype.toString = function() { |
| 1454 if (this._buffer.get$length() == (0)) return ""; |
| 1455 if (this._buffer.get$length() == (1)) return this._buffer.$index((0)); |
| 1456 var result = StringBase.concatAll(this._buffer); |
| 1457 this._buffer.clear$0(); |
| 1458 this._buffer.add$1(result); |
| 1459 return result; |
| 1460 } |
| 1461 StringBufferImpl.prototype.add$1 = StringBufferImpl.prototype.add; |
| 1462 StringBufferImpl.prototype.addAll$1 = StringBufferImpl.prototype.addAll; |
| 1463 StringBufferImpl.prototype.clear$0 = StringBufferImpl.prototype.clear; |
| 1464 StringBufferImpl.prototype.toString$0 = StringBufferImpl.prototype.toString; |
| 1465 // ********** Code for StringBase ************** |
| 1466 function StringBase() {} |
| 1467 StringBase.join = function(strings, separator) { |
| 1468 if (strings.get$length() == (0)) return ""; |
| 1469 var s = strings.$index((0)); |
| 1470 for (var i = (1); |
| 1471 i < strings.get$length(); i++) { |
| 1472 s = s + separator + strings.$index(i); |
| 1473 } |
| 1474 return s; |
| 1475 } |
| 1476 StringBase.concatAll = function(strings) { |
| 1477 return StringBase.join(strings, ""); |
| 1478 } |
| 1479 // ********** Code for StringImplementation ************** |
| 1480 StringImplementation = String; |
| 1481 StringImplementation.prototype.get$length = function() { return this.length; }; |
| 1482 StringImplementation.prototype.isEmpty = function() { |
| 1483 return this.length == (0); |
| 1484 } |
| 1485 StringImplementation.prototype.contains = function(pattern, startIndex) { |
| 1486 'use strict'; return this.indexOf(pattern, startIndex) >= 0; |
| 1487 } |
| 1488 StringImplementation.prototype.hashCode = function() { |
| 1489 'use strict'; |
| 1490 var hash = 0; |
| 1491 for (var i = 0; i < this.length; i++) { |
| 1492 hash = 0x1fffffff & (hash + this.charCodeAt(i)); |
| 1493 hash = 0x1fffffff & (hash + ((0x0007ffff & hash) << 10)); |
| 1494 hash ^= hash >> 6; |
| 1495 } |
| 1496 |
| 1497 hash = 0x1fffffff & (hash + ((0x03ffffff & hash) << 3)); |
| 1498 hash ^= hash >> 11; |
| 1499 return 0x1fffffff & (hash + ((0x00003fff & hash) << 15)); |
| 1500 } |
| 1501 StringImplementation.prototype.hashCode$0 = StringImplementation.prototype.hashC
ode; |
| 1502 // ********** Code for GlobalState ************** |
| 1503 function GlobalState() { |
| 1504 this.currentContext = null; |
| 1505 this.rootContext = null; |
| 1506 this.nextWorkerId = (1); |
| 1507 this.currentWorkerId = (0); |
| 1508 this.nextIsolateId = (0); |
| 1509 this.topEventLoop = new EventLoop(); |
| 1510 this.isolates = new HashMapImplementation(); |
| 1511 this.workers = new HashMapImplementation(); |
| 1512 this.mainWorker = new MainWorker(); |
| 1513 this._nativeInit(); |
| 1514 } |
| 1515 GlobalState.prototype.get$useWorkers = function() { |
| 1516 return this.supportsWorkers; |
| 1517 } |
| 1518 GlobalState.prototype.get$needSerialization = function() { |
| 1519 return this.get$useWorkers(); |
| 1520 } |
| 1521 GlobalState.prototype._nativeInit = function() { |
| 1522 this.isWorker = typeof ($globalThis['importScripts']) != 'undefined'; |
| 1523 this.inWindow = typeof(window) !== 'undefined'; |
| 1524 this.supportsWorkers = this.isWorker || |
| 1525 ((typeof $globalThis['Worker']) != 'undefined'); |
| 1526 |
| 1527 // if workers are supported, treat this as a main worker: |
| 1528 if (this.supportsWorkers) { |
| 1529 $globalThis.onmessage = function(e) { |
| 1530 IsolateNatives._processWorkerMessage(this.mainWorker, e); |
| 1531 }; |
| 1532 } |
| 1533 |
| 1534 } |
| 1535 GlobalState.prototype.closeWorker = function() { |
| 1536 if (this.isWorker) { |
| 1537 if (!this.isolates.isEmpty()) return; |
| 1538 this.mainWorker.postMessage(_serializeMessage(_map(["command", "close"]))); |
| 1539 } |
| 1540 else if (this.isolates.containsKey(this.rootContext.id) && this.workers.isEmpt
y() && !this.supportsWorkers && !this.inWindow) { |
| 1541 $throw(new ExceptionImplementation("Program exited with open ReceivePorts.")
); |
| 1542 } |
| 1543 } |
| 1544 // ********** Code for MainWorker ************** |
| 1545 function MainWorker() { |
| 1546 this.id = (0); |
| 1547 } |
| 1548 MainWorker.prototype.get$id = function() { return this.id; }; |
| 1549 MainWorker.prototype.set$id = function(value) { return this.id = value; }; |
| 1550 MainWorker.prototype.postMessage = function(msg) { |
| 1551 return $globalThis.postMessage(msg); |
| 1552 } |
| 1553 MainWorker.prototype.terminate = function() { |
| 1554 |
| 1555 } |
| 1556 MainWorker.prototype.set$onmessage = function(f) { |
| 1557 $globalThis.onmessage = f; |
| 1558 } |
| 1559 MainWorker.prototype.postMessage$1 = MainWorker.prototype.postMessage; |
| 1560 MainWorker.prototype.terminate$0 = MainWorker.prototype.terminate; |
| 1561 // ********** Code for _Worker ************** |
| 1562 function $dynamic(name) { |
| 1563 var f = Object.prototype[name]; |
| 1564 if (f && f.methods) return f.methods; |
| 1565 |
| 1566 var methods = {}; |
| 1567 if (f) methods.Object = f; |
| 1568 function $dynamicBind() { |
| 1569 // Find the target method |
| 1570 var obj = this; |
| 1571 var tag = obj.$typeNameOf(); |
| 1572 var method = methods[tag]; |
| 1573 if (!method) { |
| 1574 var table = $dynamicMetadata; |
| 1575 for (var i = 0; i < table.length; i++) { |
| 1576 var entry = table[i]; |
| 1577 if (entry.map.hasOwnProperty(tag)) { |
| 1578 method = methods[entry.tag]; |
| 1579 if (method) break; |
| 1580 } |
| 1581 } |
| 1582 } |
| 1583 method = method || methods.Object; |
| 1584 var proto = Object.getPrototypeOf(obj); |
| 1585 if (!proto.hasOwnProperty(name)) { |
| 1586 Object.defineProperty(proto, name, |
| 1587 { value: method, enumerable: false, writable: true, |
| 1588 configurable: true }); |
| 1589 } |
| 1590 |
| 1591 return method.apply(this, Array.prototype.slice.call(arguments)); |
| 1592 }; |
| 1593 $dynamicBind.methods = methods; |
| 1594 Object.defineProperty(Object.prototype, name, { value: $dynamicBind, |
| 1595 enumerable: false, writable: true, configurable: true}); |
| 1596 return methods; |
| 1597 } |
| 1598 if (typeof $dynamicMetadata == 'undefined') $dynamicMetadata = []; |
| 1599 |
| 1600 function $dynamicSetMetadata(inputTable) { |
| 1601 // TODO: Deal with light isolates. |
| 1602 var table = []; |
| 1603 for (var i = 0; i < inputTable.length; i++) { |
| 1604 var tag = inputTable[i][0]; |
| 1605 var tags = inputTable[i][1]; |
| 1606 var map = {}; |
| 1607 var tagNames = tags.split('|'); |
| 1608 for (var j = 0; j < tagNames.length; j++) { |
| 1609 map[tagNames[j]] = true; |
| 1610 } |
| 1611 table.push({tag: tag, tags: tags, map: map}); |
| 1612 } |
| 1613 $dynamicMetadata = table; |
| 1614 } |
| 1615 $dynamic("get$id").Worker = function() { |
| 1616 return this.id; |
| 1617 } |
| 1618 $dynamic("set$id").Worker = function(i) { |
| 1619 this.id = i; |
| 1620 } |
| 1621 $dynamic("postMessage").Worker = function(msg) { |
| 1622 return this.postMessage(msg); |
| 1623 } |
| 1624 $dynamic("set$onmessage").Worker = function(f) { |
| 1625 this.onmessage = f; |
| 1626 } |
| 1627 $dynamic("postMessage$1").Worker = function($0) { |
| 1628 return this.postMessage($0); |
| 1629 }; |
| 1630 // ********** Code for IsolateContext ************** |
| 1631 function IsolateContext() { |
| 1632 this.id = get$_globalState().nextIsolateId++; |
| 1633 this.ports = new HashMapImplementation(); |
| 1634 this.initGlobals(); |
| 1635 } |
| 1636 IsolateContext.prototype.get$id = function() { return this.id; }; |
| 1637 IsolateContext.prototype.set$id = function(value) { return this.id = value; }; |
| 1638 IsolateContext.prototype.initGlobals = function() { |
| 1639 this.isolateStatics = {}; |
| 1640 } |
| 1641 IsolateContext.prototype.eval = function(code) { |
| 1642 var old = get$_globalState().currentContext; |
| 1643 get$_globalState().currentContext = this; |
| 1644 this._setGlobals(); |
| 1645 var result = null; |
| 1646 try { |
| 1647 result = code.call$0(); |
| 1648 } finally { |
| 1649 get$_globalState().currentContext = old; |
| 1650 if (old != null) old._setGlobals$0(); |
| 1651 } |
| 1652 return result; |
| 1653 } |
| 1654 IsolateContext.prototype._setGlobals = function() { |
| 1655 $globals = this.isolateStatics; |
| 1656 } |
| 1657 IsolateContext.prototype.lookup = function(id) { |
| 1658 return this.ports.$index(id); |
| 1659 } |
| 1660 IsolateContext.prototype.register = function(portId, port) { |
| 1661 if (this.ports.containsKey(portId)) { |
| 1662 $throw(new ExceptionImplementation("Registry: ports must be registered only
once.")); |
| 1663 } |
| 1664 this.ports.$setindex(portId, port); |
| 1665 get$_globalState().isolates.$setindex(this.id, this); |
| 1666 } |
| 1667 IsolateContext.prototype.unregister = function(portId) { |
| 1668 this.ports.remove$1(portId); |
| 1669 if (this.ports.isEmpty()) { |
| 1670 get$_globalState().isolates.remove$1(this.id); |
| 1671 } |
| 1672 } |
| 1673 IsolateContext.prototype._setGlobals$0 = IsolateContext.prototype._setGlobals; |
| 1674 IsolateContext.prototype.eval$1 = IsolateContext.prototype.eval; |
| 1675 IsolateContext.prototype.lookup$1 = IsolateContext.prototype.lookup; |
| 1676 // ********** Code for EventLoop ************** |
| 1677 function EventLoop() { |
| 1678 this.events = new DoubleLinkedQueue(); |
| 1679 } |
| 1680 EventLoop.prototype.enqueue = function(isolate, fn, msg) { |
| 1681 this.events.addLast(new IsolateEvent(isolate, fn, msg)); |
| 1682 } |
| 1683 EventLoop.prototype.dequeue = function() { |
| 1684 if (this.events.isEmpty()) return null; |
| 1685 return this.events.removeFirst(); |
| 1686 } |
| 1687 EventLoop.prototype.runIteration = function() { |
| 1688 var event = this.dequeue(); |
| 1689 if (event == null) { |
| 1690 get$_globalState().closeWorker(); |
| 1691 return false; |
| 1692 } |
| 1693 event.process$0(); |
| 1694 return true; |
| 1695 } |
| 1696 EventLoop._wrapSetTimeout = function() { |
| 1697 return typeof window != 'undefined' ? |
| 1698 function(a, b) { window.setTimeout(a, b); } : undefined; |
| 1699 |
| 1700 } |
| 1701 EventLoop.prototype._runHelper = function() { |
| 1702 var $this = this; // closure support |
| 1703 var setTimeout = EventLoop._wrapSetTimeout(); |
| 1704 if (setTimeout != null) { |
| 1705 function next() { |
| 1706 if (!$this.runIteration()) return; |
| 1707 setTimeout.call$2(next, (0)); |
| 1708 } |
| 1709 next.call$0(); |
| 1710 } |
| 1711 else { |
| 1712 while (this.runIteration()) { |
| 1713 } |
| 1714 } |
| 1715 } |
| 1716 EventLoop.prototype.run = function() { |
| 1717 if (!get$_globalState().isWorker) { |
| 1718 this._runHelper(); |
| 1719 } |
| 1720 else { |
| 1721 try { |
| 1722 this._runHelper(); |
| 1723 } catch (e) { |
| 1724 var trace = _stackTraceOf(e); |
| 1725 e = _toDartException(e); |
| 1726 get$_globalState().mainWorker.postMessage(_serializeMessage(_map(["command
", "error", "msg", ("" + e + "\n" + trace)]))); |
| 1727 } |
| 1728 } |
| 1729 } |
| 1730 // ********** Code for IsolateEvent ************** |
| 1731 function IsolateEvent(isolate, fn, message) { |
| 1732 this.message = message; |
| 1733 this.isolate = isolate; |
| 1734 this.fn = fn; |
| 1735 } |
| 1736 IsolateEvent.prototype.process = function() { |
| 1737 this.isolate.eval(this.fn); |
| 1738 } |
| 1739 IsolateEvent.prototype.process$0 = IsolateEvent.prototype.process; |
| 1740 // ********** Code for SendPortImpl ************** |
| 1741 function SendPortImpl(_workerId, _isolateId, _receivePortId) { |
| 1742 this._workerId = _workerId; |
| 1743 this._receivePortId = _receivePortId; |
| 1744 this._isolateId = _isolateId; |
| 1745 } |
| 1746 SendPortImpl.prototype.send = function(message, replyTo) { |
| 1747 if (replyTo != null && !((replyTo instanceof SendPortImpl))) { |
| 1748 $throw("SendPort::send: Illegal replyTo type."); |
| 1749 } |
| 1750 IsolateNatives._sendMessage(this._workerId, this._isolateId, this._receivePort
Id, _serializeMessage(message), _serializeMessage(replyTo)); |
| 1751 } |
| 1752 SendPortImpl.prototype.call = function(message) { |
| 1753 var result = new ReceivePortSingleShotImpl(); |
| 1754 this.send(message, result.toSendPort$0()); |
| 1755 return result; |
| 1756 } |
| 1757 SendPortImpl.prototype.$eq = function(other) { |
| 1758 return ((other instanceof SendPortImpl)) && (this._workerId == other.get$_work
erId()) && (this._isolateId == other.get$_isolateId()) && (this._receivePortId =
= other.get$_receivePortId()); |
| 1759 } |
| 1760 SendPortImpl.prototype.hashCode = function() { |
| 1761 return (this._workerId << (16)) ^ (this._isolateId << (8)) ^ this._receivePort
Id; |
| 1762 } |
| 1763 SendPortImpl.prototype.get$_receivePortId = function() { return this._receivePor
tId; }; |
| 1764 SendPortImpl.prototype.get$_isolateId = function() { return this._isolateId; }; |
| 1765 SendPortImpl.prototype.get$_workerId = function() { return this._workerId; }; |
| 1766 SendPortImpl.prototype.call$1 = SendPortImpl.prototype.call; |
| 1767 SendPortImpl.prototype.hashCode$0 = SendPortImpl.prototype.hashCode; |
| 1768 // ********** Code for ReceivePortFactory ************** |
| 1769 function ReceivePortFactory() {} |
| 1770 ReceivePortFactory.ReceivePort$factory = function() { |
| 1771 return new ReceivePortImpl(); |
| 1772 } |
| 1773 ReceivePortFactory.ReceivePort$singleShot$factory = function() { |
| 1774 return new ReceivePortSingleShotImpl(); |
| 1775 } |
| 1776 // ********** Code for ReceivePortImpl ************** |
| 1777 function ReceivePortImpl() { |
| 1778 this._dart_coreimpl_id = $globals.ReceivePortImpl__nextFreeId++; |
| 1779 get$_globalState().currentContext.register(this._dart_coreimpl_id, this); |
| 1780 } |
| 1781 ReceivePortImpl.prototype.receive = function(onMessage) { |
| 1782 this._callback = onMessage; |
| 1783 } |
| 1784 ReceivePortImpl.prototype.close = function() { |
| 1785 this._callback = null; |
| 1786 get$_globalState().currentContext.unregister(this._dart_coreimpl_id); |
| 1787 } |
| 1788 ReceivePortImpl.prototype.toSendPort = function() { |
| 1789 return new SendPortImpl(get$_globalState().currentWorkerId, get$_globalState()
.currentContext.id, this._dart_coreimpl_id); |
| 1790 } |
| 1791 ReceivePortImpl.prototype.get$_callback = function() { return this._callback; }; |
| 1792 ReceivePortImpl.prototype.set$_callback = function(value) { return this._callbac
k = value; }; |
| 1793 ReceivePortImpl.prototype._callback$2 = function($0, $1) { |
| 1794 return this._callback.call$2($0, $1); |
| 1795 }; |
| 1796 ReceivePortImpl.prototype.toSendPort$0 = ReceivePortImpl.prototype.toSendPort; |
| 1797 // ********** Code for ReceivePortSingleShotImpl ************** |
| 1798 function ReceivePortSingleShotImpl() { |
| 1799 this._dart_coreimpl_port = new ReceivePortImpl(); |
| 1800 } |
| 1801 ReceivePortSingleShotImpl.prototype.receive = function(callback) { |
| 1802 var $this = this; // closure support |
| 1803 this._dart_coreimpl_port.receive((function (message, replyTo) { |
| 1804 $this._dart_coreimpl_port.close(); |
| 1805 callback.call$2(message, replyTo); |
| 1806 }) |
| 1807 ); |
| 1808 } |
| 1809 ReceivePortSingleShotImpl.prototype.toSendPort = function() { |
| 1810 return this._dart_coreimpl_port.toSendPort(); |
| 1811 } |
| 1812 ReceivePortSingleShotImpl.prototype.toSendPort$0 = ReceivePortSingleShotImpl.pro
totype.toSendPort; |
| 1813 // ********** Code for IsolateNatives ************** |
| 1814 function IsolateNatives() {} |
| 1815 IsolateNatives.spawn = function(isolate, isLight) { |
| 1816 var completer = new CompleterImpl(); |
| 1817 var port = ReceivePortFactory.ReceivePort$singleShot$factory(); |
| 1818 port.receive((function (msg, replyPort) { |
| 1819 completer.complete(replyPort); |
| 1820 }) |
| 1821 ); |
| 1822 if (get$_globalState().get$useWorkers() && !isLight) { |
| 1823 IsolateNatives._startWorker(isolate, port.toSendPort()); |
| 1824 } |
| 1825 else { |
| 1826 IsolateNatives._startNonWorker(isolate, port.toSendPort()); |
| 1827 } |
| 1828 return completer.get$future(); |
| 1829 } |
| 1830 IsolateNatives._startWorker = function(runnable, replyPort) { |
| 1831 var factoryName = IsolateNatives._getJSConstructorName(runnable); |
| 1832 if (get$_globalState().isWorker) { |
| 1833 get$_globalState().mainWorker.postMessage(_serializeMessage(_map(["command",
"spawn-worker", "factoryName", factoryName, "replyPort", replyPort]))); |
| 1834 } |
| 1835 else { |
| 1836 IsolateNatives._spawnWorker(factoryName, _serializeMessage(replyPort)); |
| 1837 } |
| 1838 } |
| 1839 IsolateNatives.get$_thisScript = function() { |
| 1840 return $globals.IsolateNatives__thisScriptCache != null ? $globals.IsolateNati
ves__thisScriptCache : IsolateNatives._computeThisScript(); |
| 1841 } |
| 1842 IsolateNatives._computeThisScript = function() { |
| 1843 if (!$globalState.supportsWorkers || $globalState.isWorker) return null; |
| 1844 |
| 1845 // TODO(5334778): Find a cross-platform non-brittle way of getting the |
| 1846 // currently running script. |
| 1847 var scripts = document.getElementsByTagName('script'); |
| 1848 // The scripts variable only contains the scripts that have already been |
| 1849 // executed. The last one is the currently running script. |
| 1850 var script = scripts[scripts.length - 1]; |
| 1851 var src = script && script.src; |
| 1852 if (!src) { |
| 1853 // TODO() |
| 1854 src = "FIXME:5407062" + "_" + Math.random().toString(); |
| 1855 if (script) script.src = src; |
| 1856 } |
| 1857 IsolateNatives._thisScriptCache = src; |
| 1858 return src; |
| 1859 |
| 1860 } |
| 1861 IsolateNatives._newWorker = function(url) { |
| 1862 return new Worker(url); |
| 1863 } |
| 1864 IsolateNatives._spawnWorker = function(factoryName, serializedReplyPort) { |
| 1865 var worker = IsolateNatives._newWorker(IsolateNatives.get$_thisScript()); |
| 1866 worker.set$onmessage((function (e) { |
| 1867 IsolateNatives._processWorkerMessage(worker, e); |
| 1868 }) |
| 1869 ); |
| 1870 var workerId = get$_globalState().nextWorkerId++; |
| 1871 worker.set$id(workerId); |
| 1872 get$_globalState().workers.$setindex(workerId, worker); |
| 1873 worker.postMessage$1(_serializeMessage(_map(["command", "start", "id", workerI
d, "replyTo", serializedReplyPort, "factoryName", factoryName]))); |
| 1874 } |
| 1875 IsolateNatives._getEventData = function(e) { |
| 1876 return e.data |
| 1877 } |
| 1878 IsolateNatives._processWorkerMessage = function(sender, e) { |
| 1879 var msg = _deserializeMessage(IsolateNatives._getEventData(e)); |
| 1880 switch (msg.$index("command")) { |
| 1881 case "start": |
| 1882 |
| 1883 get$_globalState().currentWorkerId = msg.$index("id"); |
| 1884 var runnerObject = IsolateNatives._allocate(IsolateNatives._getJSConstruct
orFromName(msg.$index("factoryName"))); |
| 1885 var serializedReplyTo = msg.$index("replyTo"); |
| 1886 get$_globalState().topEventLoop.enqueue(new IsolateContext(), function fun
ction_() { |
| 1887 var replyTo = _deserializeMessage(serializedReplyTo); |
| 1888 IsolateNatives._startIsolate(runnerObject, replyTo); |
| 1889 } |
| 1890 , "worker-start"); |
| 1891 get$_globalState().topEventLoop.run(); |
| 1892 break; |
| 1893 |
| 1894 case "spawn-worker": |
| 1895 |
| 1896 IsolateNatives._spawnWorker(msg.$index("factoryName"), msg.$index("replyPo
rt")); |
| 1897 break; |
| 1898 |
| 1899 case "message": |
| 1900 |
| 1901 IsolateNatives._sendMessage(msg.$index("workerId"), msg.$index("isolateId"
), msg.$index("portId"), msg.$index("msg"), msg.$index("replyTo")); |
| 1902 get$_globalState().topEventLoop.run(); |
| 1903 break; |
| 1904 |
| 1905 case "close": |
| 1906 |
| 1907 IsolateNatives._log("Closing Worker"); |
| 1908 get$_globalState().workers.remove$1(sender.get$id()); |
| 1909 sender.terminate$0(); |
| 1910 get$_globalState().topEventLoop.run(); |
| 1911 break; |
| 1912 |
| 1913 case "log": |
| 1914 |
| 1915 IsolateNatives._log(msg.$index("msg")); |
| 1916 break; |
| 1917 |
| 1918 case "print": |
| 1919 |
| 1920 if (get$_globalState().isWorker) { |
| 1921 get$_globalState().mainWorker.postMessage(_serializeMessage(_map(["comma
nd", "print", "msg", msg]))); |
| 1922 } |
| 1923 else { |
| 1924 dart_core_print(msg.$index("msg")); |
| 1925 } |
| 1926 break; |
| 1927 |
| 1928 case "error": |
| 1929 |
| 1930 $throw(msg.$index("msg")); |
| 1931 |
| 1932 } |
| 1933 } |
| 1934 IsolateNatives._log = function(msg) { |
| 1935 if (get$_globalState().isWorker) { |
| 1936 get$_globalState().mainWorker.postMessage(_serializeMessage(_map(["command",
"log", "msg", msg]))); |
| 1937 } |
| 1938 else { |
| 1939 try { |
| 1940 IsolateNatives._consoleLog(msg); |
| 1941 } catch (e) { |
| 1942 var trace = _stackTraceOf(e); |
| 1943 e = _toDartException(e); |
| 1944 $throw(new ExceptionImplementation(trace)); |
| 1945 } |
| 1946 } |
| 1947 } |
| 1948 IsolateNatives._consoleLog = function(msg) { |
| 1949 $globalThis.console.log(msg); |
| 1950 } |
| 1951 IsolateNatives._getJSConstructor = function(runnable) { |
| 1952 return runnable.constructor; |
| 1953 |
| 1954 } |
| 1955 IsolateNatives._getJSConstructorName = function(runnable) { |
| 1956 return runnable.constructor.name; |
| 1957 |
| 1958 } |
| 1959 IsolateNatives._getJSConstructorFromName = function(factoryName) { |
| 1960 return $globalThis[factoryName]; |
| 1961 |
| 1962 } |
| 1963 IsolateNatives._allocate = function(ctor) { |
| 1964 return new ctor(); |
| 1965 } |
| 1966 IsolateNatives._startNonWorker = function(runnable, replyTo) { |
| 1967 var spawned = new IsolateContext(); |
| 1968 var ctor = IsolateNatives._getJSConstructor(runnable); |
| 1969 get$_globalState().topEventLoop.enqueue(spawned, function function_() { |
| 1970 IsolateNatives._startIsolate(IsolateNatives._allocate(ctor), replyTo); |
| 1971 } |
| 1972 , "nonworker start"); |
| 1973 } |
| 1974 IsolateNatives._startIsolate = function(isolate, replyTo) { |
| 1975 _fillStatics(get$_globalState().currentContext); |
| 1976 var port = ReceivePortFactory.ReceivePort$factory(); |
| 1977 replyTo.send("spawned", port.toSendPort()); |
| 1978 isolate._run(port); |
| 1979 } |
| 1980 IsolateNatives._sendMessage = function(workerId, isolateId, receivePortId, messa
ge, replyTo) { |
| 1981 if (workerId == get$_globalState().currentWorkerId) { |
| 1982 var isolate = get$_globalState().isolates.$index(isolateId); |
| 1983 if (isolate == null) return; |
| 1984 var receivePort = isolate.lookup$1(receivePortId); |
| 1985 if (receivePort == null) return; |
| 1986 get$_globalState().topEventLoop.enqueue(isolate, (function () { |
| 1987 if (receivePort.get$_callback() != null) { |
| 1988 receivePort._callback$2(_deserializeMessage(message), _deserializeMessag
e(replyTo)); |
| 1989 } |
| 1990 }) |
| 1991 , "receive " + message); |
| 1992 } |
| 1993 else { |
| 1994 var worker; |
| 1995 if (get$_globalState().isWorker) { |
| 1996 worker = get$_globalState().mainWorker; |
| 1997 } |
| 1998 else { |
| 1999 worker = get$_globalState().workers.$index(workerId); |
| 2000 } |
| 2001 worker.postMessage$1(_serializeMessage(_map(["command", "message", "workerId
", workerId, "isolateId", isolateId, "portId", receivePortId, "msg", message, "r
eplyTo", replyTo]))); |
| 2002 } |
| 2003 } |
| 2004 // ********** Code for MessageTraverser ************** |
| 2005 function MessageTraverser() { |
| 2006 |
| 2007 } |
| 2008 MessageTraverser.isPrimitive = function(x) { |
| 2009 return (x == null) || ((typeof(x) == 'string')) || ((typeof(x) == 'number')) |
| ((typeof(x) == 'boolean')); |
| 2010 } |
| 2011 MessageTraverser.prototype.traverse = function(x) { |
| 2012 if (MessageTraverser.isPrimitive(x)) return this.visitPrimitive(x); |
| 2013 this._taggedObjects = new Array(); |
| 2014 var result; |
| 2015 try { |
| 2016 result = this._dispatch(x); |
| 2017 } finally { |
| 2018 this._cleanup(); |
| 2019 } |
| 2020 return result; |
| 2021 } |
| 2022 MessageTraverser.prototype._cleanup = function() { |
| 2023 var len = this._taggedObjects.get$length(); |
| 2024 for (var i = (0); |
| 2025 i < len; i++) { |
| 2026 this._clearAttachedInfo(this._taggedObjects.$index(i)); |
| 2027 } |
| 2028 this._taggedObjects = null; |
| 2029 } |
| 2030 MessageTraverser.prototype._attachInfo = function(o, info) { |
| 2031 this._taggedObjects.add$1(o); |
| 2032 this._setAttachedInfo(o, info); |
| 2033 } |
| 2034 MessageTraverser.prototype._getInfo = function(o) { |
| 2035 return this._getAttachedInfo(o); |
| 2036 } |
| 2037 MessageTraverser.prototype._dispatch = function(x) { |
| 2038 if (MessageTraverser.isPrimitive(x)) return this.visitPrimitive(x); |
| 2039 if (!!(x && x.is$List())) return this.visitList$1(x); |
| 2040 if (!!(x && x.is$Map())) return this.visitMap(x); |
| 2041 if ((x instanceof SendPortImpl)) return this.visitSendPort(x); |
| 2042 if ((x instanceof ReceivePortImpl)) return this.visitReceivePort(x); |
| 2043 if ((x instanceof ReceivePortSingleShotImpl)) return this.visitReceivePortSing
leShot(x); |
| 2044 $throw(("Message serialization: Illegal value " + x + " passed")); |
| 2045 } |
| 2046 MessageTraverser.prototype._clearAttachedInfo = function(o) { |
| 2047 o['__MessageTraverser__attached_info__'] = (void 0); |
| 2048 } |
| 2049 MessageTraverser.prototype._setAttachedInfo = function(o, info) { |
| 2050 o['__MessageTraverser__attached_info__'] = info; |
| 2051 } |
| 2052 MessageTraverser.prototype._getAttachedInfo = function(o) { |
| 2053 return o['__MessageTraverser__attached_info__']; |
| 2054 } |
| 2055 MessageTraverser.prototype.visitList$1 = MessageTraverser.prototype.visitList; |
| 2056 // ********** Code for Copier ************** |
| 2057 $inherits(Copier, MessageTraverser); |
| 2058 function Copier() { |
| 2059 MessageTraverser.call(this); |
| 2060 } |
| 2061 Copier.prototype.visitPrimitive = function(x) { |
| 2062 return x; |
| 2063 } |
| 2064 Copier.prototype.visitList = function(list) { |
| 2065 var copy = this._getInfo(list); |
| 2066 if (copy != null) return copy; |
| 2067 var len = list.get$length(); |
| 2068 copy = new Array(len); |
| 2069 this._attachInfo(list, copy); |
| 2070 for (var i = (0); |
| 2071 i < len; i++) { |
| 2072 copy.$setindex(i, this._dispatch(list.$index(i))); |
| 2073 } |
| 2074 return copy; |
| 2075 } |
| 2076 Copier.prototype.visitMap = function(map) { |
| 2077 var $this = this; // closure support |
| 2078 var copy = this._getInfo(map); |
| 2079 if (copy != null) return copy; |
| 2080 copy = new HashMapImplementation(); |
| 2081 this._attachInfo(map, copy); |
| 2082 map.forEach((function (key, val) { |
| 2083 copy.$setindex($this._dispatch(key), $this._dispatch(val)); |
| 2084 }) |
| 2085 ); |
| 2086 return copy; |
| 2087 } |
| 2088 Copier.prototype.visitSendPort = function(port) { |
| 2089 return new SendPortImpl(port._workerId, port._isolateId, port._receivePortId); |
| 2090 } |
| 2091 Copier.prototype.visitReceivePort = function(port) { |
| 2092 return port.toSendPort(); |
| 2093 } |
| 2094 Copier.prototype.visitReceivePortSingleShot = function(port) { |
| 2095 return port.toSendPort(); |
| 2096 } |
| 2097 Copier.prototype.visitList$1 = Copier.prototype.visitList; |
| 2098 // ********** Code for Serializer ************** |
| 2099 $inherits(Serializer, MessageTraverser); |
| 2100 function Serializer() { |
| 2101 this._nextFreeRefId = (0); |
| 2102 MessageTraverser.call(this); |
| 2103 } |
| 2104 Serializer.prototype.visitPrimitive = function(x) { |
| 2105 return x; |
| 2106 } |
| 2107 Serializer.prototype.visitList = function(list) { |
| 2108 var copyId = this._getInfo(list); |
| 2109 if (copyId != null) return ["ref", copyId]; |
| 2110 var id = this._nextFreeRefId++; |
| 2111 this._attachInfo(list, id); |
| 2112 var jsArray = this._serializeList(list); |
| 2113 return ["list", id, jsArray]; |
| 2114 } |
| 2115 Serializer.prototype.visitMap = function(map) { |
| 2116 var copyId = this._getInfo(map); |
| 2117 if (copyId != null) return ["ref", copyId]; |
| 2118 var id = this._nextFreeRefId++; |
| 2119 this._attachInfo(map, id); |
| 2120 var keys = this._serializeList(map.getKeys$0()); |
| 2121 var values = this._serializeList(map.getValues$0()); |
| 2122 return ["map", id, keys, values]; |
| 2123 } |
| 2124 Serializer.prototype.visitSendPort = function(port) { |
| 2125 return ["sendport", port._workerId, port._isolateId, port._receivePortId]; |
| 2126 } |
| 2127 Serializer.prototype.visitReceivePort = function(port) { |
| 2128 return this.visitSendPort(port.toSendPort()); |
| 2129 ; |
| 2130 } |
| 2131 Serializer.prototype.visitReceivePortSingleShot = function(port) { |
| 2132 return this.visitSendPort(port.toSendPort()); |
| 2133 } |
| 2134 Serializer.prototype._serializeList = function(list) { |
| 2135 var len = list.get$length(); |
| 2136 var result = new Array(len); |
| 2137 for (var i = (0); |
| 2138 i < len; i++) { |
| 2139 result.$setindex(i, this._dispatch(list.$index(i))); |
| 2140 } |
| 2141 return result; |
| 2142 } |
| 2143 Serializer.prototype.visitList$1 = Serializer.prototype.visitList; |
| 2144 // ********** Code for Deserializer ************** |
| 2145 function Deserializer() { |
| 2146 |
| 2147 } |
| 2148 Deserializer.isPrimitive = function(x) { |
| 2149 return (x == null) || ((typeof(x) == 'string')) || ((typeof(x) == 'number')) |
| ((typeof(x) == 'boolean')); |
| 2150 } |
| 2151 Deserializer.prototype.deserialize = function(x) { |
| 2152 if (Deserializer.isPrimitive(x)) return x; |
| 2153 this._deserialized = new HashMapImplementation(); |
| 2154 return this._deserializeHelper(x); |
| 2155 } |
| 2156 Deserializer.prototype._deserializeHelper = function(x) { |
| 2157 if (Deserializer.isPrimitive(x)) return x; |
| 2158 switch (x.$index((0))) { |
| 2159 case "ref": |
| 2160 |
| 2161 return this._deserializeRef(x); |
| 2162 |
| 2163 case "list": |
| 2164 |
| 2165 return this._deserializeList(x); |
| 2166 |
| 2167 case "map": |
| 2168 |
| 2169 return this._deserializeMap(x); |
| 2170 |
| 2171 case "sendport": |
| 2172 |
| 2173 return this._deserializeSendPort(x); |
| 2174 |
| 2175 default: |
| 2176 |
| 2177 $throw("Unexpected serialized object"); |
| 2178 |
| 2179 } |
| 2180 } |
| 2181 Deserializer.prototype._deserializeRef = function(x) { |
| 2182 var id = x.$index((1)); |
| 2183 var result = this._deserialized.$index(id); |
| 2184 return result; |
| 2185 } |
| 2186 Deserializer.prototype._deserializeList = function(x) { |
| 2187 var id = x.$index((1)); |
| 2188 var dartList = x.$index((2)); |
| 2189 this._deserialized.$setindex(id, dartList); |
| 2190 var len = dartList.get$length(); |
| 2191 for (var i = (0); |
| 2192 i < len; i++) { |
| 2193 dartList.$setindex(i, this._deserializeHelper(dartList.$index(i))); |
| 2194 } |
| 2195 return dartList; |
| 2196 } |
| 2197 Deserializer.prototype._deserializeMap = function(x) { |
| 2198 var result = new HashMapImplementation(); |
| 2199 var id = x.$index((1)); |
| 2200 this._deserialized.$setindex(id, result); |
| 2201 var keys = x.$index((2)); |
| 2202 var values = x.$index((3)); |
| 2203 var len = keys.get$length(); |
| 2204 for (var i = (0); |
| 2205 i < len; i++) { |
| 2206 var key = this._deserializeHelper(keys.$index(i)); |
| 2207 var value = this._deserializeHelper(values.$index(i)); |
| 2208 result.$setindex(key, value); |
| 2209 } |
| 2210 return result; |
| 2211 } |
| 2212 Deserializer.prototype._deserializeSendPort = function(x) { |
| 2213 var workerId = x.$index((1)); |
| 2214 var isolateId = x.$index((2)); |
| 2215 var receivePortId = x.$index((3)); |
| 2216 return new SendPortImpl(workerId, isolateId, receivePortId); |
| 2217 } |
| 2218 // ********** Code for _ArgumentMismatchException ************** |
| 2219 $inherits(_ArgumentMismatchException, ClosureArgumentMismatchException); |
| 2220 function _ArgumentMismatchException(_message) { |
| 2221 this._dart_coreimpl_message = _message; |
| 2222 ClosureArgumentMismatchException.call(this); |
| 2223 } |
| 2224 _ArgumentMismatchException.prototype.toString = function() { |
| 2225 return ("Closure argument mismatch: " + this._dart_coreimpl_message); |
| 2226 } |
| 2227 _ArgumentMismatchException.prototype.toString$0 = _ArgumentMismatchException.pro
totype.toString; |
| 2228 // ********** Code for _FunctionImplementation ************** |
| 2229 _FunctionImplementation = Function; |
| 2230 _FunctionImplementation.prototype._genStub = function(argsLength, names) { |
| 2231 // Fast path #1: if no named arguments and arg count matches |
| 2232 if (this.length == argsLength && !names) { |
| 2233 return this; |
| 2234 } |
| 2235 |
| 2236 var paramsNamed = this.$optional ? (this.$optional.length / 2) : 0; |
| 2237 var paramsBare = this.length - paramsNamed; |
| 2238 var argsNamed = names ? names.length : 0; |
| 2239 var argsBare = argsLength - argsNamed; |
| 2240 |
| 2241 // Check we got the right number of arguments |
| 2242 if (argsBare < paramsBare || argsLength > this.length || |
| 2243 argsNamed > paramsNamed) { |
| 2244 return function() { |
| 2245 $throw(new _ArgumentMismatchException( |
| 2246 'Wrong number of arguments to function. Expected ' + paramsBare + |
| 2247 ' positional arguments and at most ' + paramsNamed + |
| 2248 ' named arguments, but got ' + argsBare + |
| 2249 ' positional arguments and ' + argsNamed + ' named arguments.')); |
| 2250 }; |
| 2251 } |
| 2252 |
| 2253 // First, fill in all of the default values |
| 2254 var p = new Array(paramsBare); |
| 2255 if (paramsNamed) { |
| 2256 p = p.concat(this.$optional.slice(paramsNamed)); |
| 2257 } |
| 2258 // Fill in positional args |
| 2259 var a = new Array(argsLength); |
| 2260 for (var i = 0; i < argsBare; i++) { |
| 2261 p[i] = a[i] = '$' + i; |
| 2262 } |
| 2263 // Then overwrite with supplied values for optional args |
| 2264 var lastParameterIndex; |
| 2265 var namesInOrder = true; |
| 2266 for (var i = 0; i < argsNamed; i++) { |
| 2267 var name = names[i]; |
| 2268 a[i + argsBare] = name; |
| 2269 var j = this.$optional.indexOf(name); |
| 2270 if (j < 0 || j >= paramsNamed) { |
| 2271 return function() { |
| 2272 $throw(new _ArgumentMismatchException( |
| 2273 'Named argument "' + name + '" was not expected by function.' + |
| 2274 ' Did you forget to mark the function parameter [optional]?')); |
| 2275 }; |
| 2276 } else if (lastParameterIndex && lastParameterIndex > j) { |
| 2277 namesInOrder = false; |
| 2278 } |
| 2279 p[j + paramsBare] = name; |
| 2280 lastParameterIndex = j; |
| 2281 } |
| 2282 |
| 2283 if (this.length == argsLength && namesInOrder) { |
| 2284 // Fast path #2: named arguments, but they're in order and all supplied. |
| 2285 return this; |
| 2286 } |
| 2287 |
| 2288 // Note: using Function instead of 'eval' to get a clean scope. |
| 2289 // TODO(jmesserly): evaluate the performance of these stubs. |
| 2290 var f = 'function(' + a.join(',') + '){return $f(' + p.join(',') + ');}'; |
| 2291 return new Function('$f', 'return ' + f + '').call(null, this); |
| 2292 |
| 2293 } |
| 2294 // ********** Code for top level ************** |
| 2295 function _constList(other) { |
| 2296 other.__proto__ = ImmutableList.prototype; |
| 2297 return other; |
| 2298 } |
| 2299 function _map(itemsAndKeys) { |
| 2300 var ret = new LinkedHashMapImplementation(); |
| 2301 for (var i = (0); |
| 2302 i < itemsAndKeys.get$length(); ) { |
| 2303 ret.$setindex(itemsAndKeys.$index(i++), itemsAndKeys.$index(i++)); |
| 2304 } |
| 2305 return ret; |
| 2306 } |
| 2307 function _constMap(itemsAndKeys) { |
| 2308 return new ImmutableMap(itemsAndKeys); |
| 2309 } |
| 2310 function get$_globalState() { |
| 2311 return $globalState; |
| 2312 } |
| 2313 function set$_globalState(val) { |
| 2314 $globalState = val; |
| 2315 } |
| 2316 function startRootIsolate(entry) { |
| 2317 set$_globalState(new GlobalState()); |
| 2318 if (get$_globalState().isWorker) return; |
| 2319 var rootContext = new IsolateContext(); |
| 2320 get$_globalState().rootContext = rootContext; |
| 2321 _fillStatics(rootContext); |
| 2322 get$_globalState().currentContext = rootContext; |
| 2323 rootContext.eval$1(entry); |
| 2324 get$_globalState().topEventLoop.run(); |
| 2325 } |
| 2326 function _fillStatics(context) { |
| 2327 $globals = context.isolateStatics; |
| 2328 $static_init(); |
| 2329 } |
| 2330 function _serializeMessage(message) { |
| 2331 if (get$_globalState().get$needSerialization()) { |
| 2332 return new Serializer().traverse(message); |
| 2333 } |
| 2334 else { |
| 2335 return new Copier().traverse(message); |
| 2336 } |
| 2337 } |
| 2338 function _deserializeMessage(message) { |
| 2339 if (get$_globalState().get$needSerialization()) { |
| 2340 return new Deserializer().deserialize(message); |
| 2341 } |
| 2342 else { |
| 2343 return message; |
| 2344 } |
| 2345 } |
| 2346 // ********** Library dom ************** |
| 2347 // ********** Code for Window ************** |
| 2348 // ********** Code for AbstractWorker ************** |
| 2349 $dynamic("get$dartObjectLocalStorage").AbstractWorker = function() { return this
.dartObjectLocalStorage; }; |
| 2350 $dynamic("set$dartObjectLocalStorage").AbstractWorker = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 2351 $dynamic("addEventListener$3").AbstractWorker = function($0, $1, $2) { |
| 2352 return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 2353 }; |
| 2354 $dynamic("removeEventListener$3").AbstractWorker = function($0, $1, $2) { |
| 2355 return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 2356 }; |
| 2357 // ********** Code for ArrayBuffer ************** |
| 2358 $dynamic("get$dartObjectLocalStorage").ArrayBuffer = function() { return this.da
rtObjectLocalStorage; }; |
| 2359 $dynamic("set$dartObjectLocalStorage").ArrayBuffer = function(value) { return th
is.dartObjectLocalStorage = value; }; |
| 2360 // ********** Code for ArrayBufferView ************** |
| 2361 $dynamic("get$dartObjectLocalStorage").ArrayBufferView = function() { return thi
s.dartObjectLocalStorage; }; |
| 2362 $dynamic("set$dartObjectLocalStorage").ArrayBufferView = function(value) { retur
n this.dartObjectLocalStorage = value; }; |
| 2363 // ********** Code for dom_Attr ************** |
| 2364 $dynamic("get$name").Attr = function() { return this.name; }; |
| 2365 $dynamic("set$name").Attr = function(value) { return this.name = value; }; |
| 2366 $dynamic("get$value").Attr = function() { return this.value; }; |
| 2367 $dynamic("set$value").Attr = function(value) { return this.value = value; }; |
| 2368 // ********** Code for AudioBuffer ************** |
| 2369 $dynamic("get$length").AudioBuffer = function() { return this.length; }; |
| 2370 $dynamic("set$length").AudioBuffer = function(value) { return this.length = valu
e; }; |
| 2371 $dynamic("get$dartObjectLocalStorage").AudioBuffer = function() { return this.da
rtObjectLocalStorage; }; |
| 2372 $dynamic("set$dartObjectLocalStorage").AudioBuffer = function(value) { return th
is.dartObjectLocalStorage = value; }; |
| 2373 // ********** Code for AudioBufferSourceNode ************** |
| 2374 // ********** Code for AudioChannelMerger ************** |
| 2375 // ********** Code for AudioChannelSplitter ************** |
| 2376 // ********** Code for AudioContext ************** |
| 2377 $dynamic("get$dartObjectLocalStorage").AudioContext = function() { return this.d
artObjectLocalStorage; }; |
| 2378 $dynamic("set$dartObjectLocalStorage").AudioContext = function(value) { return t
his.dartObjectLocalStorage = value; }; |
| 2379 // ********** Code for AudioDestinationNode ************** |
| 2380 // ********** Code for AudioGain ************** |
| 2381 // ********** Code for AudioGainNode ************** |
| 2382 // ********** Code for AudioListener ************** |
| 2383 $dynamic("get$dartObjectLocalStorage").AudioListener = function() { return this.
dartObjectLocalStorage; }; |
| 2384 $dynamic("set$dartObjectLocalStorage").AudioListener = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 2385 // ********** Code for AudioNode ************** |
| 2386 $dynamic("get$dartObjectLocalStorage").AudioNode = function() { return this.dart
ObjectLocalStorage; }; |
| 2387 $dynamic("set$dartObjectLocalStorage").AudioNode = function(value) { return this
.dartObjectLocalStorage = value; }; |
| 2388 // ********** Code for AudioPannerNode ************** |
| 2389 // ********** Code for AudioParam ************** |
| 2390 $dynamic("get$name").AudioParam = function() { return this.name; }; |
| 2391 $dynamic("set$name").AudioParam = function(value) { return this.name = value; }; |
| 2392 $dynamic("get$value").AudioParam = function() { return this.value; }; |
| 2393 $dynamic("set$value").AudioParam = function(value) { return this.value = value;
}; |
| 2394 $dynamic("get$dartObjectLocalStorage").AudioParam = function() { return this.dar
tObjectLocalStorage; }; |
| 2395 $dynamic("set$dartObjectLocalStorage").AudioParam = function(value) { return thi
s.dartObjectLocalStorage = value; }; |
| 2396 // ********** Code for AudioProcessingEvent ************** |
| 2397 // ********** Code for AudioSourceNode ************** |
| 2398 // ********** Code for BarInfo ************** |
| 2399 $dynamic("get$dartObjectLocalStorage").BarInfo = function() { return this.dartOb
jectLocalStorage; }; |
| 2400 $dynamic("set$dartObjectLocalStorage").BarInfo = function(value) { return this.d
artObjectLocalStorage = value; }; |
| 2401 // ********** Code for BeforeLoadEvent ************** |
| 2402 // ********** Code for BiquadFilterNode ************** |
| 2403 // ********** Code for Blob ************** |
| 2404 $dynamic("get$dartObjectLocalStorage").Blob = function() { return this.dartObjec
tLocalStorage; }; |
| 2405 $dynamic("set$dartObjectLocalStorage").Blob = function(value) { return this.dart
ObjectLocalStorage = value; }; |
| 2406 // ********** Code for CDATASection ************** |
| 2407 // ********** Code for CSSCharsetRule ************** |
| 2408 // ********** Code for CSSFontFaceRule ************** |
| 2409 $dynamic("get$style").CSSFontFaceRule = function() { return this.style; }; |
| 2410 $dynamic("set$style").CSSFontFaceRule = function(value) { return this.style = va
lue; }; |
| 2411 // ********** Code for CSSImportRule ************** |
| 2412 // ********** Code for CSSMediaRule ************** |
| 2413 // ********** Code for CSSPageRule ************** |
| 2414 $dynamic("get$style").CSSPageRule = function() { return this.style; }; |
| 2415 $dynamic("set$style").CSSPageRule = function(value) { return this.style = value;
}; |
| 2416 // ********** Code for CSSPrimitiveValue ************** |
| 2417 // ********** Code for CSSRule ************** |
| 2418 $dynamic("get$dartObjectLocalStorage").CSSRule = function() { return this.dartOb
jectLocalStorage; }; |
| 2419 $dynamic("set$dartObjectLocalStorage").CSSRule = function(value) { return this.d
artObjectLocalStorage = value; }; |
| 2420 // ********** Code for CSSRuleList ************** |
| 2421 $dynamic("get$length").CSSRuleList = function() { return this.length; }; |
| 2422 $dynamic("set$length").CSSRuleList = function(value) { return this.length = valu
e; }; |
| 2423 $dynamic("get$dartObjectLocalStorage").CSSRuleList = function() { return this.da
rtObjectLocalStorage; }; |
| 2424 $dynamic("set$dartObjectLocalStorage").CSSRuleList = function(value) { return th
is.dartObjectLocalStorage = value; }; |
| 2425 $dynamic("item$1").CSSRuleList = function($0) { |
| 2426 return this.item($0); |
| 2427 }; |
| 2428 // ********** Code for CSSStyleDeclaration ************** |
| 2429 $dynamic("get$length").CSSStyleDeclaration = function() { return this.length; }; |
| 2430 $dynamic("set$length").CSSStyleDeclaration = function(value) { return this.lengt
h = value; }; |
| 2431 $dynamic("get$dartObjectLocalStorage").CSSStyleDeclaration = function() { return
this.dartObjectLocalStorage; }; |
| 2432 $dynamic("set$dartObjectLocalStorage").CSSStyleDeclaration = function(value) { r
eturn this.dartObjectLocalStorage = value; }; |
| 2433 $dynamic("getPropertyValue$1").CSSStyleDeclaration = function($0) { |
| 2434 return this.getPropertyValue($0); |
| 2435 }; |
| 2436 $dynamic("item$1").CSSStyleDeclaration = function($0) { |
| 2437 return this.item($0); |
| 2438 }; |
| 2439 $dynamic("setProperty$2").CSSStyleDeclaration = function($0, $1) { |
| 2440 return this.setProperty($0, $1); |
| 2441 }; |
| 2442 $dynamic("setProperty$3").CSSStyleDeclaration = function($0, $1, $2) { |
| 2443 return this.setProperty($0, $1, $2); |
| 2444 }; |
| 2445 // ********** Code for CSSStyleRule ************** |
| 2446 $dynamic("get$style").CSSStyleRule = function() { return this.style; }; |
| 2447 $dynamic("set$style").CSSStyleRule = function(value) { return this.style = value
; }; |
| 2448 // ********** Code for CSSStyleSheet ************** |
| 2449 // ********** Code for CSSUnknownRule ************** |
| 2450 // ********** Code for CSSValue ************** |
| 2451 $dynamic("get$dartObjectLocalStorage").CSSValue = function() { return this.dartO
bjectLocalStorage; }; |
| 2452 $dynamic("set$dartObjectLocalStorage").CSSValue = function(value) { return this.
dartObjectLocalStorage = value; }; |
| 2453 // ********** Code for CSSValueList ************** |
| 2454 $dynamic("get$length").CSSValueList = function() { return this.length; }; |
| 2455 $dynamic("set$length").CSSValueList = function(value) { return this.length = val
ue; }; |
| 2456 $dynamic("item$1").CSSValueList = function($0) { |
| 2457 return this.item($0); |
| 2458 }; |
| 2459 // ********** Code for CanvasGradient ************** |
| 2460 $dynamic("get$dartObjectLocalStorage").CanvasGradient = function() { return this
.dartObjectLocalStorage; }; |
| 2461 $dynamic("set$dartObjectLocalStorage").CanvasGradient = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 2462 // ********** Code for CanvasPattern ************** |
| 2463 $dynamic("get$dartObjectLocalStorage").CanvasPattern = function() { return this.
dartObjectLocalStorage; }; |
| 2464 $dynamic("set$dartObjectLocalStorage").CanvasPattern = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 2465 // ********** Code for CanvasPixelArray ************** |
| 2466 $dynamic("get$length").CanvasPixelArray = function() { return this.length; }; |
| 2467 $dynamic("set$length").CanvasPixelArray = function(value) { return this.length =
value; }; |
| 2468 $dynamic("get$dartObjectLocalStorage").CanvasPixelArray = function() { return th
is.dartObjectLocalStorage; }; |
| 2469 $dynamic("set$dartObjectLocalStorage").CanvasPixelArray = function(value) { retu
rn this.dartObjectLocalStorage = value; }; |
| 2470 // ********** Code for CanvasRenderingContext ************** |
| 2471 $dynamic("get$dartObjectLocalStorage").CanvasRenderingContext = function() { ret
urn this.dartObjectLocalStorage; }; |
| 2472 $dynamic("set$dartObjectLocalStorage").CanvasRenderingContext = function(value)
{ return this.dartObjectLocalStorage = value; }; |
| 2473 // ********** Code for CanvasRenderingContext2D ************** |
| 2474 // ********** Code for CharacterData ************** |
| 2475 $dynamic("get$length").CharacterData = function() { return this.length; }; |
| 2476 $dynamic("set$length").CharacterData = function(value) { return this.length = va
lue; }; |
| 2477 // ********** Code for ClientRect ************** |
| 2478 $dynamic("get$dartObjectLocalStorage").ClientRect = function() { return this.dar
tObjectLocalStorage; }; |
| 2479 $dynamic("set$dartObjectLocalStorage").ClientRect = function(value) { return thi
s.dartObjectLocalStorage = value; }; |
| 2480 // ********** Code for ClientRectList ************** |
| 2481 $dynamic("get$length").ClientRectList = function() { return this.length; }; |
| 2482 $dynamic("set$length").ClientRectList = function(value) { return this.length = v
alue; }; |
| 2483 $dynamic("get$dartObjectLocalStorage").ClientRectList = function() { return this
.dartObjectLocalStorage; }; |
| 2484 $dynamic("set$dartObjectLocalStorage").ClientRectList = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 2485 $dynamic("item$1").ClientRectList = function($0) { |
| 2486 return this.item($0); |
| 2487 }; |
| 2488 // ********** Code for Clipboard ************** |
| 2489 $dynamic("get$dartObjectLocalStorage").Clipboard = function() { return this.dart
ObjectLocalStorage; }; |
| 2490 $dynamic("set$dartObjectLocalStorage").Clipboard = function(value) { return this
.dartObjectLocalStorage = value; }; |
| 2491 // ********** Code for CloseEvent ************** |
| 2492 // ********** Code for Comment ************** |
| 2493 // ********** Code for CompositionEvent ************** |
| 2494 // ********** Code for Console ************** |
| 2495 Console = (typeof console == 'undefined' ? {} : console); |
| 2496 Console.get$dartObjectLocalStorage = function() { return this.dartObjectLocalSto
rage; }; |
| 2497 Console.set$dartObjectLocalStorage = function(value) { return this.dartObjectLoc
alStorage = value; }; |
| 2498 // ********** Code for ConvolverNode ************** |
| 2499 // ********** Code for Coordinates ************** |
| 2500 $dynamic("get$dartObjectLocalStorage").Coordinates = function() { return this.da
rtObjectLocalStorage; }; |
| 2501 $dynamic("set$dartObjectLocalStorage").Coordinates = function(value) { return th
is.dartObjectLocalStorage = value; }; |
| 2502 // ********** Code for Counter ************** |
| 2503 $dynamic("get$dartObjectLocalStorage").Counter = function() { return this.dartOb
jectLocalStorage; }; |
| 2504 $dynamic("set$dartObjectLocalStorage").Counter = function(value) { return this.d
artObjectLocalStorage = value; }; |
| 2505 // ********** Code for Crypto ************** |
| 2506 $dynamic("get$dartObjectLocalStorage").Crypto = function() { return this.dartObj
ectLocalStorage; }; |
| 2507 $dynamic("set$dartObjectLocalStorage").Crypto = function(value) { return this.da
rtObjectLocalStorage = value; }; |
| 2508 // ********** Code for CustomEvent ************** |
| 2509 // ********** Code for DOMApplicationCache ************** |
| 2510 $dynamic("get$dartObjectLocalStorage").DOMApplicationCache = function() { return
this.dartObjectLocalStorage; }; |
| 2511 $dynamic("set$dartObjectLocalStorage").DOMApplicationCache = function(value) { r
eturn this.dartObjectLocalStorage = value; }; |
| 2512 $dynamic("addEventListener$3").DOMApplicationCache = function($0, $1, $2) { |
| 2513 return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 2514 }; |
| 2515 $dynamic("removeEventListener$3").DOMApplicationCache = function($0, $1, $2) { |
| 2516 return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 2517 }; |
| 2518 // ********** Code for DOMException ************** |
| 2519 $dynamic("get$name").DOMException = function() { return this.name; }; |
| 2520 $dynamic("set$name").DOMException = function(value) { return this.name = value;
}; |
| 2521 $dynamic("get$dartObjectLocalStorage").DOMException = function() { return this.d
artObjectLocalStorage; }; |
| 2522 $dynamic("set$dartObjectLocalStorage").DOMException = function(value) { return t
his.dartObjectLocalStorage = value; }; |
| 2523 $dynamic("toString$0").DOMException = function() { |
| 2524 return this.toString(); |
| 2525 }; |
| 2526 // ********** Code for DOMFileSystem ************** |
| 2527 $dynamic("get$name").DOMFileSystem = function() { return this.name; }; |
| 2528 $dynamic("set$name").DOMFileSystem = function(value) { return this.name = value;
}; |
| 2529 $dynamic("get$dartObjectLocalStorage").DOMFileSystem = function() { return this.
dartObjectLocalStorage; }; |
| 2530 $dynamic("set$dartObjectLocalStorage").DOMFileSystem = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 2531 // ********** Code for DOMFileSystemSync ************** |
| 2532 $dynamic("get$name").DOMFileSystemSync = function() { return this.name; }; |
| 2533 $dynamic("set$name").DOMFileSystemSync = function(value) { return this.name = va
lue; }; |
| 2534 $dynamic("get$dartObjectLocalStorage").DOMFileSystemSync = function() { return t
his.dartObjectLocalStorage; }; |
| 2535 $dynamic("set$dartObjectLocalStorage").DOMFileSystemSync = function(value) { ret
urn this.dartObjectLocalStorage = value; }; |
| 2536 // ********** Code for DOMFormData ************** |
| 2537 $dynamic("get$dartObjectLocalStorage").DOMFormData = function() { return this.da
rtObjectLocalStorage; }; |
| 2538 $dynamic("set$dartObjectLocalStorage").DOMFormData = function(value) { return th
is.dartObjectLocalStorage = value; }; |
| 2539 // ********** Code for dom_DOMImplementation ************** |
| 2540 $dynamic("get$dartObjectLocalStorage").DOMImplementation = function() { return t
his.dartObjectLocalStorage; }; |
| 2541 $dynamic("set$dartObjectLocalStorage").DOMImplementation = function(value) { ret
urn this.dartObjectLocalStorage = value; }; |
| 2542 // ********** Code for DOMMimeType ************** |
| 2543 $dynamic("get$dartObjectLocalStorage").DOMMimeType = function() { return this.da
rtObjectLocalStorage; }; |
| 2544 $dynamic("set$dartObjectLocalStorage").DOMMimeType = function(value) { return th
is.dartObjectLocalStorage = value; }; |
| 2545 // ********** Code for DOMMimeTypeArray ************** |
| 2546 $dynamic("get$length").DOMMimeTypeArray = function() { return this.length; }; |
| 2547 $dynamic("set$length").DOMMimeTypeArray = function(value) { return this.length =
value; }; |
| 2548 $dynamic("get$dartObjectLocalStorage").DOMMimeTypeArray = function() { return th
is.dartObjectLocalStorage; }; |
| 2549 $dynamic("set$dartObjectLocalStorage").DOMMimeTypeArray = function(value) { retu
rn this.dartObjectLocalStorage = value; }; |
| 2550 $dynamic("item$1").DOMMimeTypeArray = function($0) { |
| 2551 return this.item($0); |
| 2552 }; |
| 2553 // ********** Code for DOMParser ************** |
| 2554 $dynamic("get$dartObjectLocalStorage").DOMParser = function() { return this.dart
ObjectLocalStorage; }; |
| 2555 $dynamic("set$dartObjectLocalStorage").DOMParser = function(value) { return this
.dartObjectLocalStorage = value; }; |
| 2556 // ********** Code for DOMPlugin ************** |
| 2557 $dynamic("get$length").DOMPlugin = function() { return this.length; }; |
| 2558 $dynamic("set$length").DOMPlugin = function(value) { return this.length = value;
}; |
| 2559 $dynamic("get$name").DOMPlugin = function() { return this.name; }; |
| 2560 $dynamic("set$name").DOMPlugin = function(value) { return this.name = value; }; |
| 2561 $dynamic("get$dartObjectLocalStorage").DOMPlugin = function() { return this.dart
ObjectLocalStorage; }; |
| 2562 $dynamic("set$dartObjectLocalStorage").DOMPlugin = function(value) { return this
.dartObjectLocalStorage = value; }; |
| 2563 $dynamic("item$1").DOMPlugin = function($0) { |
| 2564 return this.item($0); |
| 2565 }; |
| 2566 // ********** Code for DOMPluginArray ************** |
| 2567 $dynamic("get$length").DOMPluginArray = function() { return this.length; }; |
| 2568 $dynamic("set$length").DOMPluginArray = function(value) { return this.length = v
alue; }; |
| 2569 $dynamic("get$dartObjectLocalStorage").DOMPluginArray = function() { return this
.dartObjectLocalStorage; }; |
| 2570 $dynamic("set$dartObjectLocalStorage").DOMPluginArray = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 2571 $dynamic("item$1").DOMPluginArray = function($0) { |
| 2572 return this.item($0); |
| 2573 }; |
| 2574 // ********** Code for DOMSelection ************** |
| 2575 $dynamic("get$dartObjectLocalStorage").DOMSelection = function() { return this.d
artObjectLocalStorage; }; |
| 2576 $dynamic("set$dartObjectLocalStorage").DOMSelection = function(value) { return t
his.dartObjectLocalStorage = value; }; |
| 2577 $dynamic("toString$0").DOMSelection = function() { |
| 2578 return this.toString(); |
| 2579 }; |
| 2580 // ********** Code for DOMSettableTokenList ************** |
| 2581 $dynamic("get$value").DOMSettableTokenList = function() { return this.value; }; |
| 2582 $dynamic("set$value").DOMSettableTokenList = function(value) { return this.value
= value; }; |
| 2583 // ********** Code for DOMTokenList ************** |
| 2584 $dynamic("get$length").DOMTokenList = function() { return this.length; }; |
| 2585 $dynamic("set$length").DOMTokenList = function(value) { return this.length = val
ue; }; |
| 2586 $dynamic("get$dartObjectLocalStorage").DOMTokenList = function() { return this.d
artObjectLocalStorage; }; |
| 2587 $dynamic("set$dartObjectLocalStorage").DOMTokenList = function(value) { return t
his.dartObjectLocalStorage = value; }; |
| 2588 $dynamic("add$1").DOMTokenList = function($0) { |
| 2589 return this.add($0); |
| 2590 }; |
| 2591 $dynamic("item$1").DOMTokenList = function($0) { |
| 2592 return this.item($0); |
| 2593 }; |
| 2594 $dynamic("remove$1").DOMTokenList = function($0) { |
| 2595 return this.remove($0); |
| 2596 }; |
| 2597 $dynamic("toString$0").DOMTokenList = function() { |
| 2598 return this.toString(); |
| 2599 }; |
| 2600 // ********** Code for DOMURL ************** |
| 2601 $dynamic("get$dartObjectLocalStorage").DOMURL = function() { return this.dartObj
ectLocalStorage; }; |
| 2602 $dynamic("set$dartObjectLocalStorage").DOMURL = function(value) { return this.da
rtObjectLocalStorage = value; }; |
| 2603 // ********** Code for dom_DOMWindow ************** |
| 2604 $dynamic("get$length").DOMWindow = function() { return this.length; }; |
| 2605 $dynamic("set$length").DOMWindow = function(value) { return this.length = value;
}; |
| 2606 $dynamic("get$name").DOMWindow = function() { return this.name; }; |
| 2607 $dynamic("set$name").DOMWindow = function(value) { return this.name = value; }; |
| 2608 $dynamic("get$dartObjectLocalStorage").DOMWindow = function() { return this.dart
ObjectLocalStorage; }; |
| 2609 $dynamic("set$dartObjectLocalStorage").DOMWindow = function(value) { return this
.dartObjectLocalStorage = value; }; |
| 2610 $dynamic("addEventListener$3").DOMWindow = function($0, $1, $2) { |
| 2611 return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 2612 }; |
| 2613 $dynamic("postMessage$2").DOMWindow = function($0, $1) { |
| 2614 return this.postMessage($0, $1); |
| 2615 }; |
| 2616 $dynamic("postMessage$3").DOMWindow = function($0, $1, $2) { |
| 2617 return this.postMessage($0, $1, $2); |
| 2618 }; |
| 2619 $dynamic("removeEventListener$3").DOMWindow = function($0, $1, $2) { |
| 2620 return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 2621 }; |
| 2622 $dynamic("setTimeout$2").DOMWindow = function($0, $1) { |
| 2623 return this.setTimeout($wrap_call$0(to$call$0($0)), $1); |
| 2624 }; |
| 2625 // ********** Code for DataTransferItem ************** |
| 2626 $dynamic("get$dartObjectLocalStorage").DataTransferItem = function() { return th
is.dartObjectLocalStorage; }; |
| 2627 $dynamic("set$dartObjectLocalStorage").DataTransferItem = function(value) { retu
rn this.dartObjectLocalStorage = value; }; |
| 2628 // ********** Code for DataTransferItemList ************** |
| 2629 $dynamic("get$length").DataTransferItemList = function() { return this.length; }
; |
| 2630 $dynamic("set$length").DataTransferItemList = function(value) { return this.leng
th = value; }; |
| 2631 $dynamic("get$clear").DataTransferItemList = function() { |
| 2632 return this.clear.bind(this); |
| 2633 } |
| 2634 $dynamic("get$dartObjectLocalStorage").DataTransferItemList = function() { retur
n this.dartObjectLocalStorage; }; |
| 2635 $dynamic("set$dartObjectLocalStorage").DataTransferItemList = function(value) {
return this.dartObjectLocalStorage = value; }; |
| 2636 $dynamic("add$2").DataTransferItemList = function($0, $1) { |
| 2637 return this.add($0, $1); |
| 2638 }; |
| 2639 $dynamic("clear$0").DataTransferItemList = function() { |
| 2640 return this.clear(); |
| 2641 }; |
| 2642 $dynamic("item$1").DataTransferItemList = function($0) { |
| 2643 return this.item($0); |
| 2644 }; |
| 2645 // ********** Code for DataView ************** |
| 2646 // ********** Code for dom_Database ************** |
| 2647 $dynamic("get$dartObjectLocalStorage").Database = function() { return this.dartO
bjectLocalStorage; }; |
| 2648 $dynamic("set$dartObjectLocalStorage").Database = function(value) { return this.
dartObjectLocalStorage = value; }; |
| 2649 // ********** Code for dom_DatabaseSync ************** |
| 2650 $dynamic("get$dartObjectLocalStorage").DatabaseSync = function() { return this.d
artObjectLocalStorage; }; |
| 2651 $dynamic("set$dartObjectLocalStorage").DatabaseSync = function(value) { return t
his.dartObjectLocalStorage = value; }; |
| 2652 // ********** Code for dom_DedicatedWorkerContext ************** |
| 2653 $dynamic("get$onmessage").DedicatedWorkerContext = function() { return this.onme
ssage; }; |
| 2654 $dynamic("set$onmessage").DedicatedWorkerContext = function(value) { return this
.onmessage = value; }; |
| 2655 $dynamic("postMessage$1").DedicatedWorkerContext = function($0) { |
| 2656 return this.postMessage($0); |
| 2657 }; |
| 2658 $dynamic("postMessage$2").DedicatedWorkerContext = function($0, $1) { |
| 2659 return this.postMessage($0, $1); |
| 2660 }; |
| 2661 // ********** Code for DelayNode ************** |
| 2662 // ********** Code for DeviceMotionEvent ************** |
| 2663 // ********** Code for DeviceOrientationEvent ************** |
| 2664 // ********** Code for DirectoryEntry ************** |
| 2665 // ********** Code for DirectoryEntrySync ************** |
| 2666 // ********** Code for DirectoryReader ************** |
| 2667 $dynamic("get$dartObjectLocalStorage").DirectoryReader = function() { return thi
s.dartObjectLocalStorage; }; |
| 2668 $dynamic("set$dartObjectLocalStorage").DirectoryReader = function(value) { retur
n this.dartObjectLocalStorage = value; }; |
| 2669 // ********** Code for DirectoryReaderSync ************** |
| 2670 $dynamic("get$dartObjectLocalStorage").DirectoryReaderSync = function() { return
this.dartObjectLocalStorage; }; |
| 2671 $dynamic("set$dartObjectLocalStorage").DirectoryReaderSync = function(value) { r
eturn this.dartObjectLocalStorage = value; }; |
| 2672 // ********** Code for Document ************** |
| 2673 $dynamic("get$body").Document = function() { return this.body; }; |
| 2674 $dynamic("set$body").Document = function(value) { return this.body = value; }; |
| 2675 $dynamic("get$documentElement").Document = function() { return this.documentElem
ent; }; |
| 2676 $dynamic("set$documentElement").Document = function(value) { return this.documen
tElement = value; }; |
| 2677 $dynamic("querySelector$1").Document = function($0) { |
| 2678 return this.querySelector($0); |
| 2679 }; |
| 2680 $dynamic("querySelectorAll$1").Document = function($0) { |
| 2681 return this.querySelectorAll($0); |
| 2682 }; |
| 2683 // ********** Code for DocumentFragment ************** |
| 2684 $dynamic("querySelector$1").DocumentFragment = function($0) { |
| 2685 return this.querySelector($0); |
| 2686 }; |
| 2687 $dynamic("querySelectorAll$1").DocumentFragment = function($0) { |
| 2688 return this.querySelectorAll($0); |
| 2689 }; |
| 2690 // ********** Code for dom_DocumentType ************** |
| 2691 $dynamic("get$name").DocumentType = function() { return this.name; }; |
| 2692 $dynamic("set$name").DocumentType = function(value) { return this.name = value;
}; |
| 2693 // ********** Code for DynamicsCompressorNode ************** |
| 2694 // ********** Code for Element ************** |
| 2695 $dynamic("get$firstElementChild").Element = function() { return this.firstElemen
tChild; }; |
| 2696 $dynamic("set$firstElementChild").Element = function(value) { return this.firstE
lementChild = value; }; |
| 2697 $dynamic("get$lastElementChild").Element = function() { return this.lastElementC
hild; }; |
| 2698 $dynamic("set$lastElementChild").Element = function(value) { return this.lastEle
mentChild = value; }; |
| 2699 $dynamic("get$style").Element = function() { return this.style; }; |
| 2700 $dynamic("set$style").Element = function(value) { return this.style = value; }; |
| 2701 $dynamic("getAttribute$1").Element = function($0) { |
| 2702 return this.getAttribute($0); |
| 2703 }; |
| 2704 $dynamic("hasAttribute$1").Element = function($0) { |
| 2705 return this.hasAttribute($0); |
| 2706 }; |
| 2707 $dynamic("querySelector$1").Element = function($0) { |
| 2708 return this.querySelector($0); |
| 2709 }; |
| 2710 $dynamic("querySelectorAll$1").Element = function($0) { |
| 2711 return this.querySelectorAll($0); |
| 2712 }; |
| 2713 $dynamic("removeAttribute$1").Element = function($0) { |
| 2714 return this.removeAttribute($0); |
| 2715 }; |
| 2716 $dynamic("setAttribute$2").Element = function($0, $1) { |
| 2717 return this.setAttribute($0, $1); |
| 2718 }; |
| 2719 // ********** Code for ElementTimeControl ************** |
| 2720 $dynamic("get$dartObjectLocalStorage").ElementTimeControl = function() { return
this.dartObjectLocalStorage; }; |
| 2721 $dynamic("set$dartObjectLocalStorage").ElementTimeControl = function(value) { re
turn this.dartObjectLocalStorage = value; }; |
| 2722 // ********** Code for dom_ElementTraversal ************** |
| 2723 $dynamic("get$firstElementChild").ElementTraversal = function() { return this.fi
rstElementChild; }; |
| 2724 $dynamic("set$firstElementChild").ElementTraversal = function(value) { return th
is.firstElementChild = value; }; |
| 2725 $dynamic("get$lastElementChild").ElementTraversal = function() { return this.las
tElementChild; }; |
| 2726 $dynamic("set$lastElementChild").ElementTraversal = function(value) { return thi
s.lastElementChild = value; }; |
| 2727 $dynamic("get$dartObjectLocalStorage").ElementTraversal = function() { return th
is.dartObjectLocalStorage; }; |
| 2728 $dynamic("set$dartObjectLocalStorage").ElementTraversal = function(value) { retu
rn this.dartObjectLocalStorage = value; }; |
| 2729 // ********** Code for Entity ************** |
| 2730 // ********** Code for EntityReference ************** |
| 2731 // ********** Code for Entry ************** |
| 2732 $dynamic("get$name").Entry = function() { return this.name; }; |
| 2733 $dynamic("set$name").Entry = function(value) { return this.name = value; }; |
| 2734 $dynamic("get$dartObjectLocalStorage").Entry = function() { return this.dartObje
ctLocalStorage; }; |
| 2735 $dynamic("set$dartObjectLocalStorage").Entry = function(value) { return this.dar
tObjectLocalStorage = value; }; |
| 2736 $dynamic("remove$1").Entry = function($0) { |
| 2737 return this.remove($wrap_call$0(to$call$0($0)), $wrap_call$1(to$call$1(null)))
; |
| 2738 }; |
| 2739 $dynamic("remove$2").Entry = function($0, $1) { |
| 2740 return this.remove($wrap_call$0(to$call$0($0)), $wrap_call$1(to$call$1($1))); |
| 2741 }; |
| 2742 // ********** Code for EntryArray ************** |
| 2743 $dynamic("get$length").EntryArray = function() { return this.length; }; |
| 2744 $dynamic("set$length").EntryArray = function(value) { return this.length = value
; }; |
| 2745 $dynamic("get$dartObjectLocalStorage").EntryArray = function() { return this.dar
tObjectLocalStorage; }; |
| 2746 $dynamic("set$dartObjectLocalStorage").EntryArray = function(value) { return thi
s.dartObjectLocalStorage = value; }; |
| 2747 $dynamic("item$1").EntryArray = function($0) { |
| 2748 return this.item($0); |
| 2749 }; |
| 2750 // ********** Code for EntryArraySync ************** |
| 2751 $dynamic("get$length").EntryArraySync = function() { return this.length; }; |
| 2752 $dynamic("set$length").EntryArraySync = function(value) { return this.length = v
alue; }; |
| 2753 $dynamic("get$dartObjectLocalStorage").EntryArraySync = function() { return this
.dartObjectLocalStorage; }; |
| 2754 $dynamic("set$dartObjectLocalStorage").EntryArraySync = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 2755 $dynamic("item$1").EntryArraySync = function($0) { |
| 2756 return this.item($0); |
| 2757 }; |
| 2758 // ********** Code for EntrySync ************** |
| 2759 $dynamic("get$name").EntrySync = function() { return this.name; }; |
| 2760 $dynamic("set$name").EntrySync = function(value) { return this.name = value; }; |
| 2761 $dynamic("get$dartObjectLocalStorage").EntrySync = function() { return this.dart
ObjectLocalStorage; }; |
| 2762 $dynamic("set$dartObjectLocalStorage").EntrySync = function(value) { return this
.dartObjectLocalStorage = value; }; |
| 2763 $dynamic("remove$0").EntrySync = function() { |
| 2764 return this.remove(); |
| 2765 }; |
| 2766 // ********** Code for ErrorEvent ************** |
| 2767 // ********** Code for Event ************** |
| 2768 $dynamic("get$dartObjectLocalStorage").Event = function() { return this.dartObje
ctLocalStorage; }; |
| 2769 $dynamic("set$dartObjectLocalStorage").Event = function(value) { return this.dar
tObjectLocalStorage = value; }; |
| 2770 $dynamic("preventDefault$0").Event = function() { |
| 2771 return this.preventDefault(); |
| 2772 }; |
| 2773 // ********** Code for EventException ************** |
| 2774 $dynamic("get$name").EventException = function() { return this.name; }; |
| 2775 $dynamic("set$name").EventException = function(value) { return this.name = value
; }; |
| 2776 $dynamic("get$dartObjectLocalStorage").EventException = function() { return this
.dartObjectLocalStorage; }; |
| 2777 $dynamic("set$dartObjectLocalStorage").EventException = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 2778 $dynamic("toString$0").EventException = function() { |
| 2779 return this.toString(); |
| 2780 }; |
| 2781 // ********** Code for EventSource ************** |
| 2782 $dynamic("get$dartObjectLocalStorage").EventSource = function() { return this.da
rtObjectLocalStorage; }; |
| 2783 $dynamic("set$dartObjectLocalStorage").EventSource = function(value) { return th
is.dartObjectLocalStorage = value; }; |
| 2784 $dynamic("addEventListener$3").EventSource = function($0, $1, $2) { |
| 2785 return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 2786 }; |
| 2787 $dynamic("removeEventListener$3").EventSource = function($0, $1, $2) { |
| 2788 return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 2789 }; |
| 2790 // ********** Code for EventTarget ************** |
| 2791 $dynamic("get$dartObjectLocalStorage").EventTarget = function() { return this.da
rtObjectLocalStorage; }; |
| 2792 $dynamic("set$dartObjectLocalStorage").EventTarget = function(value) { return th
is.dartObjectLocalStorage = value; }; |
| 2793 $dynamic("addEventListener$3").EventTarget = function($0, $1, $2) { |
| 2794 return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 2795 }; |
| 2796 $dynamic("removeEventListener$3").EventTarget = function($0, $1, $2) { |
| 2797 return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 2798 }; |
| 2799 // ********** Code for File ************** |
| 2800 $dynamic("get$name").File = function() { return this.name; }; |
| 2801 $dynamic("set$name").File = function(value) { return this.name = value; }; |
| 2802 // ********** Code for FileEntry ************** |
| 2803 // ********** Code for FileEntrySync ************** |
| 2804 // ********** Code for FileError ************** |
| 2805 $dynamic("get$dartObjectLocalStorage").FileError = function() { return this.dart
ObjectLocalStorage; }; |
| 2806 $dynamic("set$dartObjectLocalStorage").FileError = function(value) { return this
.dartObjectLocalStorage = value; }; |
| 2807 // ********** Code for FileException ************** |
| 2808 $dynamic("get$name").FileException = function() { return this.name; }; |
| 2809 $dynamic("set$name").FileException = function(value) { return this.name = value;
}; |
| 2810 $dynamic("get$dartObjectLocalStorage").FileException = function() { return this.
dartObjectLocalStorage; }; |
| 2811 $dynamic("set$dartObjectLocalStorage").FileException = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 2812 $dynamic("toString$0").FileException = function() { |
| 2813 return this.toString(); |
| 2814 }; |
| 2815 // ********** Code for FileList ************** |
| 2816 $dynamic("get$length").FileList = function() { return this.length; }; |
| 2817 $dynamic("set$length").FileList = function(value) { return this.length = value;
}; |
| 2818 $dynamic("get$dartObjectLocalStorage").FileList = function() { return this.dartO
bjectLocalStorage; }; |
| 2819 $dynamic("set$dartObjectLocalStorage").FileList = function(value) { return this.
dartObjectLocalStorage = value; }; |
| 2820 $dynamic("item$1").FileList = function($0) { |
| 2821 return this.item($0); |
| 2822 }; |
| 2823 // ********** Code for FileReader ************** |
| 2824 $dynamic("get$dartObjectLocalStorage").FileReader = function() { return this.dar
tObjectLocalStorage; }; |
| 2825 $dynamic("set$dartObjectLocalStorage").FileReader = function(value) { return thi
s.dartObjectLocalStorage = value; }; |
| 2826 $dynamic("addEventListener$3").FileReader = function($0, $1, $2) { |
| 2827 return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 2828 }; |
| 2829 $dynamic("removeEventListener$3").FileReader = function($0, $1, $2) { |
| 2830 return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 2831 }; |
| 2832 // ********** Code for FileReaderSync ************** |
| 2833 $dynamic("get$dartObjectLocalStorage").FileReaderSync = function() { return this
.dartObjectLocalStorage; }; |
| 2834 $dynamic("set$dartObjectLocalStorage").FileReaderSync = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 2835 // ********** Code for FileWriter ************** |
| 2836 $dynamic("get$length").FileWriter = function() { return this.length; }; |
| 2837 $dynamic("set$length").FileWriter = function(value) { return this.length = value
; }; |
| 2838 $dynamic("get$dartObjectLocalStorage").FileWriter = function() { return this.dar
tObjectLocalStorage; }; |
| 2839 $dynamic("set$dartObjectLocalStorage").FileWriter = function(value) { return thi
s.dartObjectLocalStorage = value; }; |
| 2840 // ********** Code for FileWriterSync ************** |
| 2841 $dynamic("get$length").FileWriterSync = function() { return this.length; }; |
| 2842 $dynamic("set$length").FileWriterSync = function(value) { return this.length = v
alue; }; |
| 2843 $dynamic("get$dartObjectLocalStorage").FileWriterSync = function() { return this
.dartObjectLocalStorage; }; |
| 2844 $dynamic("set$dartObjectLocalStorage").FileWriterSync = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 2845 // ********** Code for Float32Array ************** |
| 2846 $dynamic("is$List").Float32Array = function(){return true}; |
| 2847 $dynamic("get$length").Float32Array = function() { return this.length; }; |
| 2848 $dynamic("set$length").Float32Array = function(value) { return this.length = val
ue; }; |
| 2849 // ********** Code for Float64Array ************** |
| 2850 $dynamic("is$List").Float64Array = function(){return true}; |
| 2851 $dynamic("get$length").Float64Array = function() { return this.length; }; |
| 2852 $dynamic("set$length").Float64Array = function(value) { return this.length = val
ue; }; |
| 2853 // ********** Code for Geolocation ************** |
| 2854 $dynamic("get$dartObjectLocalStorage").Geolocation = function() { return this.da
rtObjectLocalStorage; }; |
| 2855 $dynamic("set$dartObjectLocalStorage").Geolocation = function(value) { return th
is.dartObjectLocalStorage = value; }; |
| 2856 // ********** Code for Geoposition ************** |
| 2857 $dynamic("get$dartObjectLocalStorage").Geoposition = function() { return this.da
rtObjectLocalStorage; }; |
| 2858 $dynamic("set$dartObjectLocalStorage").Geoposition = function(value) { return th
is.dartObjectLocalStorage = value; }; |
| 2859 // ********** Code for HTMLAllCollection ************** |
| 2860 $dynamic("get$length").HTMLAllCollection = function() { return this.length; }; |
| 2861 $dynamic("set$length").HTMLAllCollection = function(value) { return this.length
= value; }; |
| 2862 $dynamic("get$dartObjectLocalStorage").HTMLAllCollection = function() { return t
his.dartObjectLocalStorage; }; |
| 2863 $dynamic("set$dartObjectLocalStorage").HTMLAllCollection = function(value) { ret
urn this.dartObjectLocalStorage = value; }; |
| 2864 $dynamic("item$1").HTMLAllCollection = function($0) { |
| 2865 return this.item($0); |
| 2866 }; |
| 2867 // ********** Code for dom_HTMLAnchorElement ************** |
| 2868 $dynamic("get$name").HTMLAnchorElement = function() { return this.name; }; |
| 2869 $dynamic("set$name").HTMLAnchorElement = function(value) { return this.name = va
lue; }; |
| 2870 $dynamic("toString$0").HTMLAnchorElement = function() { |
| 2871 return this.toString(); |
| 2872 }; |
| 2873 // ********** Code for dom_HTMLAppletElement ************** |
| 2874 $dynamic("get$name").HTMLAppletElement = function() { return this.name; }; |
| 2875 $dynamic("set$name").HTMLAppletElement = function(value) { return this.name = va
lue; }; |
| 2876 // ********** Code for dom_HTMLAreaElement ************** |
| 2877 // ********** Code for dom_HTMLAudioElement ************** |
| 2878 // ********** Code for dom_HTMLBRElement ************** |
| 2879 $dynamic("get$clear").HTMLBRElement = function() { return this.clear; }; |
| 2880 $dynamic("set$clear").HTMLBRElement = function(value) { return this.clear = valu
e; }; |
| 2881 $dynamic("clear$0").HTMLBRElement = function() { |
| 2882 return this.clear.call$0(); |
| 2883 }; |
| 2884 // ********** Code for dom_HTMLBaseElement ************** |
| 2885 // ********** Code for dom_HTMLBaseFontElement ************** |
| 2886 // ********** Code for dom_HTMLBodyElement ************** |
| 2887 // ********** Code for dom_HTMLButtonElement ************** |
| 2888 $dynamic("get$name").HTMLButtonElement = function() { return this.name; }; |
| 2889 $dynamic("set$name").HTMLButtonElement = function(value) { return this.name = va
lue; }; |
| 2890 $dynamic("get$value").HTMLButtonElement = function() { return this.value; }; |
| 2891 $dynamic("set$value").HTMLButtonElement = function(value) { return this.value =
value; }; |
| 2892 $dynamic("get$click").HTMLButtonElement = function() { |
| 2893 return this.click.bind(this); |
| 2894 } |
| 2895 $dynamic("click$0").HTMLButtonElement = function() { |
| 2896 return this.click(); |
| 2897 }; |
| 2898 // ********** Code for dom_HTMLCanvasElement ************** |
| 2899 // ********** Code for dom_HTMLCollection ************** |
| 2900 $dynamic("get$length").HTMLCollection = function() { return this.length; }; |
| 2901 $dynamic("set$length").HTMLCollection = function(value) { return this.length = v
alue; }; |
| 2902 $dynamic("$setindex").HTMLCollection = function(index, value) { |
| 2903 $throw(new UnsupportedOperationException("Cannot assign element of immutable L
ist.")); |
| 2904 } |
| 2905 $dynamic("get$dartObjectLocalStorage").HTMLCollection = function() { return this
.dartObjectLocalStorage; }; |
| 2906 $dynamic("set$dartObjectLocalStorage").HTMLCollection = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 2907 $dynamic("item$1").HTMLCollection = function($0) { |
| 2908 if (Object.getPrototypeOf(this).hasOwnProperty("item$1")) { |
| 2909 return this.item($0); |
| 2910 } |
| 2911 return Object.prototype.item$1.call(this, $0); |
| 2912 }; |
| 2913 // ********** Code for dom_HTMLDListElement ************** |
| 2914 // ********** Code for dom_HTMLDataListElement ************** |
| 2915 // ********** Code for dom_HTMLDetailsElement ************** |
| 2916 // ********** Code for dom_HTMLDirectoryElement ************** |
| 2917 // ********** Code for dom_HTMLDivElement ************** |
| 2918 // ********** Code for dom_HTMLDocument ************** |
| 2919 $dynamic("get$clear").HTMLDocument = function() { |
| 2920 return this.clear.bind(this); |
| 2921 } |
| 2922 $dynamic("clear$0").HTMLDocument = function() { |
| 2923 return this.clear(); |
| 2924 }; |
| 2925 // ********** Code for dom_HTMLElement ************** |
| 2926 $dynamic("get$children").HTMLElement = function() { return this.children; }; |
| 2927 $dynamic("set$children").HTMLElement = function(value) { return this.children =
value; }; |
| 2928 $dynamic("get$id").HTMLElement = function() { return this.id; }; |
| 2929 $dynamic("set$id").HTMLElement = function(value) { return this.id = value; }; |
| 2930 $dynamic("get$innerHTML").HTMLElement = function() { return this.innerHTML; }; |
| 2931 $dynamic("set$innerHTML").HTMLElement = function(value) { return this.innerHTML
= value; }; |
| 2932 // ********** Code for dom_HTMLEmbedElement ************** |
| 2933 $dynamic("get$name").HTMLEmbedElement = function() { return this.name; }; |
| 2934 $dynamic("set$name").HTMLEmbedElement = function(value) { return this.name = val
ue; }; |
| 2935 // ********** Code for dom_HTMLFieldSetElement ************** |
| 2936 // ********** Code for dom_HTMLFontElement ************** |
| 2937 // ********** Code for dom_HTMLFormElement ************** |
| 2938 $dynamic("get$elements").HTMLFormElement = function() { return this.elements; }; |
| 2939 $dynamic("set$elements").HTMLFormElement = function(value) { return this.element
s = value; }; |
| 2940 $dynamic("get$length").HTMLFormElement = function() { return this.length; }; |
| 2941 $dynamic("set$length").HTMLFormElement = function(value) { return this.length =
value; }; |
| 2942 $dynamic("get$name").HTMLFormElement = function() { return this.name; }; |
| 2943 $dynamic("set$name").HTMLFormElement = function(value) { return this.name = valu
e; }; |
| 2944 // ********** Code for dom_HTMLFrameElement ************** |
| 2945 $dynamic("get$name").HTMLFrameElement = function() { return this.name; }; |
| 2946 $dynamic("set$name").HTMLFrameElement = function(value) { return this.name = val
ue; }; |
| 2947 // ********** Code for dom_HTMLFrameSetElement ************** |
| 2948 // ********** Code for dom_HTMLHRElement ************** |
| 2949 // ********** Code for dom_HTMLHeadElement ************** |
| 2950 // ********** Code for dom_HTMLHeadingElement ************** |
| 2951 // ********** Code for dom_HTMLHtmlElement ************** |
| 2952 // ********** Code for dom_HTMLIFrameElement ************** |
| 2953 $dynamic("get$name").HTMLIFrameElement = function() { return this.name; }; |
| 2954 $dynamic("set$name").HTMLIFrameElement = function(value) { return this.name = va
lue; }; |
| 2955 // ********** Code for dom_HTMLImageElement ************** |
| 2956 $dynamic("get$complete").HTMLImageElement = function() { return this.complete; }
; |
| 2957 $dynamic("set$complete").HTMLImageElement = function(value) { return this.comple
te = value; }; |
| 2958 $dynamic("get$name").HTMLImageElement = function() { return this.name; }; |
| 2959 $dynamic("set$name").HTMLImageElement = function(value) { return this.name = val
ue; }; |
| 2960 $dynamic("complete$1").HTMLImageElement = function($0) { |
| 2961 return this.complete.call$1($0); |
| 2962 }; |
| 2963 // ********** Code for dom_HTMLInputElement ************** |
| 2964 $dynamic("get$name").HTMLInputElement = function() { return this.name; }; |
| 2965 $dynamic("set$name").HTMLInputElement = function(value) { return this.name = val
ue; }; |
| 2966 $dynamic("get$value").HTMLInputElement = function() { return this.value; }; |
| 2967 $dynamic("set$value").HTMLInputElement = function(value) { return this.value = v
alue; }; |
| 2968 $dynamic("get$click").HTMLInputElement = function() { |
| 2969 return this.click.bind(this); |
| 2970 } |
| 2971 $dynamic("click$0").HTMLInputElement = function() { |
| 2972 return this.click(); |
| 2973 }; |
| 2974 // ********** Code for dom_HTMLIsIndexElement ************** |
| 2975 // ********** Code for dom_HTMLKeygenElement ************** |
| 2976 $dynamic("get$name").HTMLKeygenElement = function() { return this.name; }; |
| 2977 $dynamic("set$name").HTMLKeygenElement = function(value) { return this.name = va
lue; }; |
| 2978 // ********** Code for dom_HTMLLIElement ************** |
| 2979 $dynamic("get$value").HTMLLIElement = function() { return this.value; }; |
| 2980 $dynamic("set$value").HTMLLIElement = function(value) { return this.value = valu
e; }; |
| 2981 // ********** Code for dom_HTMLLabelElement ************** |
| 2982 // ********** Code for dom_HTMLLegendElement ************** |
| 2983 // ********** Code for dom_HTMLLinkElement ************** |
| 2984 // ********** Code for dom_HTMLMapElement ************** |
| 2985 $dynamic("get$name").HTMLMapElement = function() { return this.name; }; |
| 2986 $dynamic("set$name").HTMLMapElement = function(value) { return this.name = value
; }; |
| 2987 // ********** Code for dom_HTMLMarqueeElement ************** |
| 2988 // ********** Code for dom_HTMLMediaElement ************** |
| 2989 // ********** Code for dom_HTMLMenuElement ************** |
| 2990 // ********** Code for dom_HTMLMetaElement ************** |
| 2991 $dynamic("get$name").HTMLMetaElement = function() { return this.name; }; |
| 2992 $dynamic("set$name").HTMLMetaElement = function(value) { return this.name = valu
e; }; |
| 2993 // ********** Code for dom_HTMLMeterElement ************** |
| 2994 $dynamic("get$value").HTMLMeterElement = function() { return this.value; }; |
| 2995 $dynamic("set$value").HTMLMeterElement = function(value) { return this.value = v
alue; }; |
| 2996 // ********** Code for dom_HTMLModElement ************** |
| 2997 // ********** Code for dom_HTMLOListElement ************** |
| 2998 // ********** Code for dom_HTMLObjectElement ************** |
| 2999 $dynamic("get$name").HTMLObjectElement = function() { return this.name; }; |
| 3000 $dynamic("set$name").HTMLObjectElement = function(value) { return this.name = va
lue; }; |
| 3001 // ********** Code for dom_HTMLOptGroupElement ************** |
| 3002 // ********** Code for dom_HTMLOptionElement ************** |
| 3003 $dynamic("get$value").HTMLOptionElement = function() { return this.value; }; |
| 3004 $dynamic("set$value").HTMLOptionElement = function(value) { return this.value =
value; }; |
| 3005 // ********** Code for dom_HTMLOptionsCollection ************** |
| 3006 $dynamic("get$length").HTMLOptionsCollection = function() { return this.length;
}; |
| 3007 $dynamic("set$length").HTMLOptionsCollection = function(value) { return this.len
gth = value; }; |
| 3008 $dynamic("remove$1").HTMLOptionsCollection = function($0) { |
| 3009 return this.remove($0); |
| 3010 }; |
| 3011 // ********** Code for dom_HTMLOutputElement ************** |
| 3012 $dynamic("get$name").HTMLOutputElement = function() { return this.name; }; |
| 3013 $dynamic("set$name").HTMLOutputElement = function(value) { return this.name = va
lue; }; |
| 3014 $dynamic("get$value").HTMLOutputElement = function() { return this.value; }; |
| 3015 $dynamic("set$value").HTMLOutputElement = function(value) { return this.value =
value; }; |
| 3016 // ********** Code for dom_HTMLParagraphElement ************** |
| 3017 // ********** Code for dom_HTMLParamElement ************** |
| 3018 $dynamic("get$name").HTMLParamElement = function() { return this.name; }; |
| 3019 $dynamic("set$name").HTMLParamElement = function(value) { return this.name = val
ue; }; |
| 3020 $dynamic("get$value").HTMLParamElement = function() { return this.value; }; |
| 3021 $dynamic("set$value").HTMLParamElement = function(value) { return this.value = v
alue; }; |
| 3022 // ********** Code for dom_HTMLPreElement ************** |
| 3023 // ********** Code for dom_HTMLProgressElement ************** |
| 3024 $dynamic("get$value").HTMLProgressElement = function() { return this.value; }; |
| 3025 $dynamic("set$value").HTMLProgressElement = function(value) { return this.value
= value; }; |
| 3026 // ********** Code for dom_HTMLPropertiesCollection ************** |
| 3027 $dynamic("get$length").HTMLPropertiesCollection = function() { return this.lengt
h; }; |
| 3028 $dynamic("set$length").HTMLPropertiesCollection = function(value) { return this.
length = value; }; |
| 3029 $dynamic("item$1").HTMLPropertiesCollection = function($0) { |
| 3030 return this.item($0); |
| 3031 }; |
| 3032 // ********** Code for dom_HTMLQuoteElement ************** |
| 3033 // ********** Code for dom_HTMLScriptElement ************** |
| 3034 // ********** Code for dom_HTMLSelectElement ************** |
| 3035 $dynamic("get$length").HTMLSelectElement = function() { return this.length; }; |
| 3036 $dynamic("set$length").HTMLSelectElement = function(value) { return this.length
= value; }; |
| 3037 $dynamic("get$name").HTMLSelectElement = function() { return this.name; }; |
| 3038 $dynamic("set$name").HTMLSelectElement = function(value) { return this.name = va
lue; }; |
| 3039 $dynamic("get$value").HTMLSelectElement = function() { return this.value; }; |
| 3040 $dynamic("set$value").HTMLSelectElement = function(value) { return this.value =
value; }; |
| 3041 $dynamic("add$2").HTMLSelectElement = function($0, $1) { |
| 3042 return this.add($0, $1); |
| 3043 }; |
| 3044 $dynamic("item$1").HTMLSelectElement = function($0) { |
| 3045 return this.item($0); |
| 3046 }; |
| 3047 $dynamic("remove$1").HTMLSelectElement = function($0) { |
| 3048 return this.remove($0); |
| 3049 }; |
| 3050 // ********** Code for dom_HTMLSourceElement ************** |
| 3051 // ********** Code for dom_HTMLSpanElement ************** |
| 3052 // ********** Code for dom_HTMLStyleElement ************** |
| 3053 // ********** Code for dom_HTMLTableCaptionElement ************** |
| 3054 // ********** Code for dom_HTMLTableCellElement ************** |
| 3055 // ********** Code for dom_HTMLTableColElement ************** |
| 3056 // ********** Code for dom_HTMLTableElement ************** |
| 3057 // ********** Code for dom_HTMLTableRowElement ************** |
| 3058 // ********** Code for dom_HTMLTableSectionElement ************** |
| 3059 // ********** Code for dom_HTMLTextAreaElement ************** |
| 3060 $dynamic("get$name").HTMLTextAreaElement = function() { return this.name; }; |
| 3061 $dynamic("set$name").HTMLTextAreaElement = function(value) { return this.name =
value; }; |
| 3062 $dynamic("get$value").HTMLTextAreaElement = function() { return this.value; }; |
| 3063 $dynamic("set$value").HTMLTextAreaElement = function(value) { return this.value
= value; }; |
| 3064 // ********** Code for dom_HTMLTitleElement ************** |
| 3065 // ********** Code for dom_HTMLTrackElement ************** |
| 3066 // ********** Code for dom_HTMLUListElement ************** |
| 3067 // ********** Code for dom_HTMLUnknownElement ************** |
| 3068 // ********** Code for dom_HTMLVideoElement ************** |
| 3069 // ********** Code for HashChangeEvent ************** |
| 3070 // ********** Code for HighPass2FilterNode ************** |
| 3071 // ********** Code for History ************** |
| 3072 $dynamic("get$length").History = function() { return this.length; }; |
| 3073 $dynamic("set$length").History = function(value) { return this.length = value; }
; |
| 3074 $dynamic("get$dartObjectLocalStorage").History = function() { return this.dartOb
jectLocalStorage; }; |
| 3075 $dynamic("set$dartObjectLocalStorage").History = function(value) { return this.d
artObjectLocalStorage = value; }; |
| 3076 // ********** Code for IDBAny ************** |
| 3077 $dynamic("get$dartObjectLocalStorage").IDBAny = function() { return this.dartObj
ectLocalStorage; }; |
| 3078 $dynamic("set$dartObjectLocalStorage").IDBAny = function(value) { return this.da
rtObjectLocalStorage = value; }; |
| 3079 // ********** Code for IDBCursor ************** |
| 3080 $dynamic("get$dartObjectLocalStorage").IDBCursor = function() { return this.dart
ObjectLocalStorage; }; |
| 3081 $dynamic("set$dartObjectLocalStorage").IDBCursor = function(value) { return this
.dartObjectLocalStorage = value; }; |
| 3082 // ********** Code for IDBCursorWithValue ************** |
| 3083 $dynamic("get$value").IDBCursorWithValue = function() { return this.value; }; |
| 3084 $dynamic("set$value").IDBCursorWithValue = function(value) { return this.value =
value; }; |
| 3085 // ********** Code for IDBDatabase ************** |
| 3086 $dynamic("get$name").IDBDatabase = function() { return this.name; }; |
| 3087 $dynamic("set$name").IDBDatabase = function(value) { return this.name = value; }
; |
| 3088 $dynamic("get$dartObjectLocalStorage").IDBDatabase = function() { return this.da
rtObjectLocalStorage; }; |
| 3089 $dynamic("set$dartObjectLocalStorage").IDBDatabase = function(value) { return th
is.dartObjectLocalStorage = value; }; |
| 3090 $dynamic("addEventListener$3").IDBDatabase = function($0, $1, $2) { |
| 3091 return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 3092 }; |
| 3093 $dynamic("removeEventListener$3").IDBDatabase = function($0, $1, $2) { |
| 3094 return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 3095 }; |
| 3096 // ********** Code for IDBDatabaseError ************** |
| 3097 $dynamic("get$dartObjectLocalStorage").IDBDatabaseError = function() { return th
is.dartObjectLocalStorage; }; |
| 3098 $dynamic("set$dartObjectLocalStorage").IDBDatabaseError = function(value) { retu
rn this.dartObjectLocalStorage = value; }; |
| 3099 // ********** Code for IDBDatabaseException ************** |
| 3100 $dynamic("get$name").IDBDatabaseException = function() { return this.name; }; |
| 3101 $dynamic("set$name").IDBDatabaseException = function(value) { return this.name =
value; }; |
| 3102 $dynamic("get$dartObjectLocalStorage").IDBDatabaseException = function() { retur
n this.dartObjectLocalStorage; }; |
| 3103 $dynamic("set$dartObjectLocalStorage").IDBDatabaseException = function(value) {
return this.dartObjectLocalStorage = value; }; |
| 3104 $dynamic("toString$0").IDBDatabaseException = function() { |
| 3105 return this.toString(); |
| 3106 }; |
| 3107 // ********** Code for IDBFactory ************** |
| 3108 $dynamic("get$dartObjectLocalStorage").IDBFactory = function() { return this.dar
tObjectLocalStorage; }; |
| 3109 $dynamic("set$dartObjectLocalStorage").IDBFactory = function(value) { return thi
s.dartObjectLocalStorage = value; }; |
| 3110 // ********** Code for IDBIndex ************** |
| 3111 $dynamic("get$name").IDBIndex = function() { return this.name; }; |
| 3112 $dynamic("set$name").IDBIndex = function(value) { return this.name = value; }; |
| 3113 $dynamic("get$dartObjectLocalStorage").IDBIndex = function() { return this.dartO
bjectLocalStorage; }; |
| 3114 $dynamic("set$dartObjectLocalStorage").IDBIndex = function(value) { return this.
dartObjectLocalStorage = value; }; |
| 3115 // ********** Code for IDBKey ************** |
| 3116 $dynamic("get$dartObjectLocalStorage").IDBKey = function() { return this.dartObj
ectLocalStorage; }; |
| 3117 $dynamic("set$dartObjectLocalStorage").IDBKey = function(value) { return this.da
rtObjectLocalStorage = value; }; |
| 3118 // ********** Code for IDBKeyRange ************** |
| 3119 $dynamic("get$dartObjectLocalStorage").IDBKeyRange = function() { return this.da
rtObjectLocalStorage; }; |
| 3120 $dynamic("set$dartObjectLocalStorage").IDBKeyRange = function(value) { return th
is.dartObjectLocalStorage = value; }; |
| 3121 // ********** Code for IDBObjectStore ************** |
| 3122 $dynamic("get$name").IDBObjectStore = function() { return this.name; }; |
| 3123 $dynamic("set$name").IDBObjectStore = function(value) { return this.name = value
; }; |
| 3124 $dynamic("get$clear").IDBObjectStore = function() { |
| 3125 return this.clear.bind(this); |
| 3126 } |
| 3127 $dynamic("get$dartObjectLocalStorage").IDBObjectStore = function() { return this
.dartObjectLocalStorage; }; |
| 3128 $dynamic("set$dartObjectLocalStorage").IDBObjectStore = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 3129 $dynamic("add$1").IDBObjectStore = function($0) { |
| 3130 return this.add($0); |
| 3131 }; |
| 3132 $dynamic("add$2").IDBObjectStore = function($0, $1) { |
| 3133 return this.add($0, $1); |
| 3134 }; |
| 3135 $dynamic("clear$0").IDBObjectStore = function() { |
| 3136 return this.clear(); |
| 3137 }; |
| 3138 // ********** Code for IDBRequest ************** |
| 3139 $dynamic("get$dartObjectLocalStorage").IDBRequest = function() { return this.dar
tObjectLocalStorage; }; |
| 3140 $dynamic("set$dartObjectLocalStorage").IDBRequest = function(value) { return thi
s.dartObjectLocalStorage = value; }; |
| 3141 $dynamic("addEventListener$3").IDBRequest = function($0, $1, $2) { |
| 3142 return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 3143 }; |
| 3144 $dynamic("removeEventListener$3").IDBRequest = function($0, $1, $2) { |
| 3145 return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 3146 }; |
| 3147 // ********** Code for IDBTransaction ************** |
| 3148 $dynamic("get$dartObjectLocalStorage").IDBTransaction = function() { return this
.dartObjectLocalStorage; }; |
| 3149 $dynamic("set$dartObjectLocalStorage").IDBTransaction = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 3150 $dynamic("addEventListener$3").IDBTransaction = function($0, $1, $2) { |
| 3151 return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 3152 }; |
| 3153 $dynamic("removeEventListener$3").IDBTransaction = function($0, $1, $2) { |
| 3154 return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 3155 }; |
| 3156 // ********** Code for IDBVersionChangeEvent ************** |
| 3157 // ********** Code for IDBVersionChangeRequest ************** |
| 3158 // ********** Code for ImageData ************** |
| 3159 $dynamic("get$dartObjectLocalStorage").ImageData = function() { return this.dart
ObjectLocalStorage; }; |
| 3160 $dynamic("set$dartObjectLocalStorage").ImageData = function(value) { return this
.dartObjectLocalStorage = value; }; |
| 3161 // ********** Code for dom_InjectedScriptHost ************** |
| 3162 $dynamic("get$dartObjectLocalStorage").InjectedScriptHost = function() { return
this.dartObjectLocalStorage; }; |
| 3163 $dynamic("set$dartObjectLocalStorage").InjectedScriptHost = function(value) { re
turn this.dartObjectLocalStorage = value; }; |
| 3164 // ********** Code for dom_InspectorFrontendHost ************** |
| 3165 $dynamic("get$dartObjectLocalStorage").InspectorFrontendHost = function() { retu
rn this.dartObjectLocalStorage; }; |
| 3166 $dynamic("set$dartObjectLocalStorage").InspectorFrontendHost = function(value) {
return this.dartObjectLocalStorage = value; }; |
| 3167 // ********** Code for Int16Array ************** |
| 3168 $dynamic("is$List").Int16Array = function(){return true}; |
| 3169 $dynamic("get$length").Int16Array = function() { return this.length; }; |
| 3170 $dynamic("set$length").Int16Array = function(value) { return this.length = value
; }; |
| 3171 // ********** Code for Int32Array ************** |
| 3172 $dynamic("is$List").Int32Array = function(){return true}; |
| 3173 $dynamic("get$length").Int32Array = function() { return this.length; }; |
| 3174 $dynamic("set$length").Int32Array = function(value) { return this.length = value
; }; |
| 3175 // ********** Code for Int8Array ************** |
| 3176 $dynamic("is$List").Int8Array = function(){return true}; |
| 3177 $dynamic("get$length").Int8Array = function() { return this.length; }; |
| 3178 $dynamic("set$length").Int8Array = function(value) { return this.length = value;
}; |
| 3179 // ********** Code for JavaScriptAudioNode ************** |
| 3180 // ********** Code for dom_JavaScriptCallFrame ************** |
| 3181 $dynamic("get$dartObjectLocalStorage").JavaScriptCallFrame = function() { return
this.dartObjectLocalStorage; }; |
| 3182 $dynamic("set$dartObjectLocalStorage").JavaScriptCallFrame = function(value) { r
eturn this.dartObjectLocalStorage = value; }; |
| 3183 // ********** Code for KeyboardEvent ************** |
| 3184 // ********** Code for Location ************** |
| 3185 $dynamic("get$dartObjectLocalStorage").Location = function() { return this.dartO
bjectLocalStorage; }; |
| 3186 $dynamic("set$dartObjectLocalStorage").Location = function(value) { return this.
dartObjectLocalStorage = value; }; |
| 3187 $dynamic("toString$0").Location = function() { |
| 3188 return this.toString(); |
| 3189 }; |
| 3190 // ********** Code for LowPass2FilterNode ************** |
| 3191 // ********** Code for dom_MediaController ************** |
| 3192 $dynamic("get$dartObjectLocalStorage").MediaController = function() { return thi
s.dartObjectLocalStorage; }; |
| 3193 $dynamic("set$dartObjectLocalStorage").MediaController = function(value) { retur
n this.dartObjectLocalStorage = value; }; |
| 3194 $dynamic("addEventListener$3").MediaController = function($0, $1, $2) { |
| 3195 return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 3196 }; |
| 3197 $dynamic("removeEventListener$3").MediaController = function($0, $1, $2) { |
| 3198 return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 3199 }; |
| 3200 // ********** Code for MediaElementAudioSourceNode ************** |
| 3201 // ********** Code for MediaError ************** |
| 3202 $dynamic("get$dartObjectLocalStorage").MediaError = function() { return this.dar
tObjectLocalStorage; }; |
| 3203 $dynamic("set$dartObjectLocalStorage").MediaError = function(value) { return thi
s.dartObjectLocalStorage = value; }; |
| 3204 // ********** Code for MediaList ************** |
| 3205 $dynamic("get$length").MediaList = function() { return this.length; }; |
| 3206 $dynamic("set$length").MediaList = function(value) { return this.length = value;
}; |
| 3207 $dynamic("$setindex").MediaList = function(index, value) { |
| 3208 $throw(new UnsupportedOperationException("Cannot assign element of immutable L
ist.")); |
| 3209 } |
| 3210 $dynamic("get$dartObjectLocalStorage").MediaList = function() { return this.dart
ObjectLocalStorage; }; |
| 3211 $dynamic("set$dartObjectLocalStorage").MediaList = function(value) { return this
.dartObjectLocalStorage = value; }; |
| 3212 $dynamic("item$1").MediaList = function($0) { |
| 3213 return this.item($0); |
| 3214 }; |
| 3215 // ********** Code for MediaQueryList ************** |
| 3216 $dynamic("get$dartObjectLocalStorage").MediaQueryList = function() { return this
.dartObjectLocalStorage; }; |
| 3217 $dynamic("set$dartObjectLocalStorage").MediaQueryList = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 3218 // ********** Code for MediaQueryListListener ************** |
| 3219 $dynamic("get$dartObjectLocalStorage").MediaQueryListListener = function() { ret
urn this.dartObjectLocalStorage; }; |
| 3220 $dynamic("set$dartObjectLocalStorage").MediaQueryListListener = function(value)
{ return this.dartObjectLocalStorage = value; }; |
| 3221 // ********** Code for dom_MemoryInfo ************** |
| 3222 $dynamic("get$dartObjectLocalStorage").MemoryInfo = function() { return this.dar
tObjectLocalStorage; }; |
| 3223 $dynamic("set$dartObjectLocalStorage").MemoryInfo = function(value) { return thi
s.dartObjectLocalStorage = value; }; |
| 3224 // ********** Code for MessageChannel ************** |
| 3225 $dynamic("get$dartObjectLocalStorage").MessageChannel = function() { return this
.dartObjectLocalStorage; }; |
| 3226 $dynamic("set$dartObjectLocalStorage").MessageChannel = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 3227 // ********** Code for MessageEvent ************** |
| 3228 // ********** Code for MessagePort ************** |
| 3229 $dynamic("get$dartObjectLocalStorage").MessagePort = function() { return this.da
rtObjectLocalStorage; }; |
| 3230 $dynamic("set$dartObjectLocalStorage").MessagePort = function(value) { return th
is.dartObjectLocalStorage = value; }; |
| 3231 $dynamic("addEventListener$3").MessagePort = function($0, $1, $2) { |
| 3232 return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 3233 }; |
| 3234 $dynamic("postMessage$1").MessagePort = function($0) { |
| 3235 return this.postMessage($0); |
| 3236 }; |
| 3237 $dynamic("postMessage$2").MessagePort = function($0, $1) { |
| 3238 return this.postMessage($0, $1); |
| 3239 }; |
| 3240 $dynamic("removeEventListener$3").MessagePort = function($0, $1, $2) { |
| 3241 return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 3242 }; |
| 3243 // ********** Code for Metadata ************** |
| 3244 $dynamic("get$dartObjectLocalStorage").Metadata = function() { return this.dartO
bjectLocalStorage; }; |
| 3245 $dynamic("set$dartObjectLocalStorage").Metadata = function(value) { return this.
dartObjectLocalStorage = value; }; |
| 3246 // ********** Code for MouseEvent ************** |
| 3247 // ********** Code for MutationCallback ************** |
| 3248 $dynamic("get$dartObjectLocalStorage").MutationCallback = function() { return th
is.dartObjectLocalStorage; }; |
| 3249 $dynamic("set$dartObjectLocalStorage").MutationCallback = function(value) { retu
rn this.dartObjectLocalStorage = value; }; |
| 3250 // ********** Code for MutationEvent ************** |
| 3251 // ********** Code for MutationRecord ************** |
| 3252 $dynamic("get$dartObjectLocalStorage").MutationRecord = function() { return this
.dartObjectLocalStorage; }; |
| 3253 $dynamic("set$dartObjectLocalStorage").MutationRecord = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 3254 // ********** Code for dom_NamedNodeMap ************** |
| 3255 $dynamic("get$length").NamedNodeMap = function() { return this.length; }; |
| 3256 $dynamic("set$length").NamedNodeMap = function(value) { return this.length = val
ue; }; |
| 3257 $dynamic("$setindex").NamedNodeMap = function(index, value) { |
| 3258 $throw(new UnsupportedOperationException("Cannot assign element of immutable L
ist.")); |
| 3259 } |
| 3260 $dynamic("get$dartObjectLocalStorage").NamedNodeMap = function() { return this.d
artObjectLocalStorage; }; |
| 3261 $dynamic("set$dartObjectLocalStorage").NamedNodeMap = function(value) { return t
his.dartObjectLocalStorage = value; }; |
| 3262 $dynamic("item$1").NamedNodeMap = function($0) { |
| 3263 return this.item($0); |
| 3264 }; |
| 3265 // ********** Code for Navigator ************** |
| 3266 $dynamic("get$dartObjectLocalStorage").Navigator = function() { return this.dart
ObjectLocalStorage; }; |
| 3267 $dynamic("set$dartObjectLocalStorage").Navigator = function(value) { return this
.dartObjectLocalStorage = value; }; |
| 3268 // ********** Code for Node ************** |
| 3269 $dynamic("get$attributes").Node = function() { return this.attributes; }; |
| 3270 $dynamic("set$attributes").Node = function(value) { return this.attributes = val
ue; }; |
| 3271 $dynamic("get$childNodes").Node = function() { return this.childNodes; }; |
| 3272 $dynamic("set$childNodes").Node = function(value) { return this.childNodes = val
ue; }; |
| 3273 $dynamic("get$firstChild").Node = function() { return this.firstChild; }; |
| 3274 $dynamic("set$firstChild").Node = function(value) { return this.firstChild = val
ue; }; |
| 3275 $dynamic("get$lastChild").Node = function() { return this.lastChild; }; |
| 3276 $dynamic("set$lastChild").Node = function(value) { return this.lastChild = value
; }; |
| 3277 $dynamic("get$ownerDocument").Node = function() { return this.ownerDocument; }; |
| 3278 $dynamic("set$ownerDocument").Node = function(value) { return this.ownerDocument
= value; }; |
| 3279 $dynamic("get$parentNode").Node = function() { return this.parentNode; }; |
| 3280 $dynamic("set$parentNode").Node = function(value) { return this.parentNode = val
ue; }; |
| 3281 $dynamic("get$textContent").Node = function() { return this.textContent; }; |
| 3282 $dynamic("set$textContent").Node = function(value) { return this.textContent = v
alue; }; |
| 3283 $dynamic("get$dartObjectLocalStorage").Node = function() { return this.dartObjec
tLocalStorage; }; |
| 3284 $dynamic("set$dartObjectLocalStorage").Node = function(value) { return this.dart
ObjectLocalStorage = value; }; |
| 3285 $dynamic("addEventListener$3").Node = function($0, $1, $2) { |
| 3286 return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 3287 }; |
| 3288 $dynamic("appendChild$1").Node = function($0) { |
| 3289 return this.appendChild($0); |
| 3290 }; |
| 3291 $dynamic("hasAttributes$0").Node = function() { |
| 3292 return this.hasAttributes(); |
| 3293 }; |
| 3294 $dynamic("hasChildNodes$0").Node = function() { |
| 3295 return this.hasChildNodes(); |
| 3296 }; |
| 3297 $dynamic("removeChild$1").Node = function($0) { |
| 3298 return this.removeChild($0); |
| 3299 }; |
| 3300 $dynamic("removeEventListener$3").Node = function($0, $1, $2) { |
| 3301 return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 3302 }; |
| 3303 $dynamic("replaceChild$2").Node = function($0, $1) { |
| 3304 return this.replaceChild($0, $1); |
| 3305 }; |
| 3306 // ********** Code for dom_NodeFilter ************** |
| 3307 $dynamic("get$dartObjectLocalStorage").NodeFilter = function() { return this.dar
tObjectLocalStorage; }; |
| 3308 $dynamic("set$dartObjectLocalStorage").NodeFilter = function(value) { return thi
s.dartObjectLocalStorage = value; }; |
| 3309 // ********** Code for dom_NodeIterator ************** |
| 3310 $dynamic("get$dartObjectLocalStorage").NodeIterator = function() { return this.d
artObjectLocalStorage; }; |
| 3311 $dynamic("set$dartObjectLocalStorage").NodeIterator = function(value) { return t
his.dartObjectLocalStorage = value; }; |
| 3312 $dynamic("filter$1").NodeIterator = function($0) { |
| 3313 return this.filter.call$1($0); |
| 3314 }; |
| 3315 // ********** Code for NodeList ************** |
| 3316 $dynamic("get$length").NodeList = function() { return this.length; }; |
| 3317 $dynamic("set$length").NodeList = function(value) { return this.length = value;
}; |
| 3318 $dynamic("$setindex").NodeList = function(index, value) { |
| 3319 $throw(new UnsupportedOperationException("Cannot assign element of immutable L
ist.")); |
| 3320 } |
| 3321 $dynamic("get$dartObjectLocalStorage").NodeList = function() { return this.dartO
bjectLocalStorage; }; |
| 3322 $dynamic("set$dartObjectLocalStorage").NodeList = function(value) { return this.
dartObjectLocalStorage = value; }; |
| 3323 $dynamic("item$1").NodeList = function($0) { |
| 3324 return this.item($0); |
| 3325 }; |
| 3326 // ********** Code for dom_NodeSelector ************** |
| 3327 $dynamic("get$dartObjectLocalStorage").NodeSelector = function() { return this.d
artObjectLocalStorage; }; |
| 3328 $dynamic("set$dartObjectLocalStorage").NodeSelector = function(value) { return t
his.dartObjectLocalStorage = value; }; |
| 3329 $dynamic("querySelector$1").NodeSelector = function($0) { |
| 3330 return this.querySelector($0); |
| 3331 }; |
| 3332 $dynamic("querySelectorAll$1").NodeSelector = function($0) { |
| 3333 return this.querySelectorAll($0); |
| 3334 }; |
| 3335 // ********** Code for Notation ************** |
| 3336 // ********** Code for Notification ************** |
| 3337 $dynamic("get$dartObjectLocalStorage").Notification = function() { return this.d
artObjectLocalStorage; }; |
| 3338 $dynamic("set$dartObjectLocalStorage").Notification = function(value) { return t
his.dartObjectLocalStorage = value; }; |
| 3339 $dynamic("addEventListener$3").Notification = function($0, $1, $2) { |
| 3340 return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 3341 }; |
| 3342 $dynamic("removeEventListener$3").Notification = function($0, $1, $2) { |
| 3343 return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 3344 }; |
| 3345 // ********** Code for NotificationCenter ************** |
| 3346 $dynamic("get$dartObjectLocalStorage").NotificationCenter = function() { return
this.dartObjectLocalStorage; }; |
| 3347 $dynamic("set$dartObjectLocalStorage").NotificationCenter = function(value) { re
turn this.dartObjectLocalStorage = value; }; |
| 3348 // ********** Code for OESStandardDerivatives ************** |
| 3349 $dynamic("get$dartObjectLocalStorage").OESStandardDerivatives = function() { ret
urn this.dartObjectLocalStorage; }; |
| 3350 $dynamic("set$dartObjectLocalStorage").OESStandardDerivatives = function(value)
{ return this.dartObjectLocalStorage = value; }; |
| 3351 // ********** Code for OESTextureFloat ************** |
| 3352 $dynamic("get$dartObjectLocalStorage").OESTextureFloat = function() { return thi
s.dartObjectLocalStorage; }; |
| 3353 $dynamic("set$dartObjectLocalStorage").OESTextureFloat = function(value) { retur
n this.dartObjectLocalStorage = value; }; |
| 3354 // ********** Code for OESVertexArrayObject ************** |
| 3355 $dynamic("get$dartObjectLocalStorage").OESVertexArrayObject = function() { retur
n this.dartObjectLocalStorage; }; |
| 3356 $dynamic("set$dartObjectLocalStorage").OESVertexArrayObject = function(value) {
return this.dartObjectLocalStorage = value; }; |
| 3357 // ********** Code for OfflineAudioCompletionEvent ************** |
| 3358 // ********** Code for OperationNotAllowedException ************** |
| 3359 $dynamic("get$name").OperationNotAllowedException = function() { return this.nam
e; }; |
| 3360 $dynamic("set$name").OperationNotAllowedException = function(value) { return thi
s.name = value; }; |
| 3361 $dynamic("get$dartObjectLocalStorage").OperationNotAllowedException = function()
{ return this.dartObjectLocalStorage; }; |
| 3362 $dynamic("set$dartObjectLocalStorage").OperationNotAllowedException = function(v
alue) { return this.dartObjectLocalStorage = value; }; |
| 3363 $dynamic("toString$0").OperationNotAllowedException = function() { |
| 3364 return this.toString(); |
| 3365 }; |
| 3366 // ********** Code for OverflowEvent ************** |
| 3367 // ********** Code for PageTransitionEvent ************** |
| 3368 // ********** Code for dom_Performance ************** |
| 3369 $dynamic("get$dartObjectLocalStorage").Performance = function() { return this.da
rtObjectLocalStorage; }; |
| 3370 $dynamic("set$dartObjectLocalStorage").Performance = function(value) { return th
is.dartObjectLocalStorage = value; }; |
| 3371 // ********** Code for dom_PerformanceNavigation ************** |
| 3372 $dynamic("get$dartObjectLocalStorage").PerformanceNavigation = function() { retu
rn this.dartObjectLocalStorage; }; |
| 3373 $dynamic("set$dartObjectLocalStorage").PerformanceNavigation = function(value) {
return this.dartObjectLocalStorage = value; }; |
| 3374 // ********** Code for dom_PerformanceTiming ************** |
| 3375 $dynamic("get$dartObjectLocalStorage").PerformanceTiming = function() { return t
his.dartObjectLocalStorage; }; |
| 3376 $dynamic("set$dartObjectLocalStorage").PerformanceTiming = function(value) { ret
urn this.dartObjectLocalStorage = value; }; |
| 3377 // ********** Code for dom_PointerLock ************** |
| 3378 $dynamic("get$dartObjectLocalStorage").PointerLock = function() { return this.da
rtObjectLocalStorage; }; |
| 3379 $dynamic("set$dartObjectLocalStorage").PointerLock = function(value) { return th
is.dartObjectLocalStorage = value; }; |
| 3380 // ********** Code for PopStateEvent ************** |
| 3381 // ********** Code for PositionError ************** |
| 3382 $dynamic("get$dartObjectLocalStorage").PositionError = function() { return this.
dartObjectLocalStorage; }; |
| 3383 $dynamic("set$dartObjectLocalStorage").PositionError = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 3384 // ********** Code for ProcessingInstruction ************** |
| 3385 // ********** Code for ProgressEvent ************** |
| 3386 // ********** Code for RGBColor ************** |
| 3387 $dynamic("get$dartObjectLocalStorage").RGBColor = function() { return this.dartO
bjectLocalStorage; }; |
| 3388 $dynamic("set$dartObjectLocalStorage").RGBColor = function(value) { return this.
dartObjectLocalStorage = value; }; |
| 3389 // ********** Code for Range ************** |
| 3390 $dynamic("get$dartObjectLocalStorage").Range = function() { return this.dartObje
ctLocalStorage; }; |
| 3391 $dynamic("set$dartObjectLocalStorage").Range = function(value) { return this.dar
tObjectLocalStorage = value; }; |
| 3392 $dynamic("toString$0").Range = function() { |
| 3393 return this.toString(); |
| 3394 }; |
| 3395 // ********** Code for RangeException ************** |
| 3396 $dynamic("get$name").RangeException = function() { return this.name; }; |
| 3397 $dynamic("set$name").RangeException = function(value) { return this.name = value
; }; |
| 3398 $dynamic("get$dartObjectLocalStorage").RangeException = function() { return this
.dartObjectLocalStorage; }; |
| 3399 $dynamic("set$dartObjectLocalStorage").RangeException = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 3400 $dynamic("toString$0").RangeException = function() { |
| 3401 return this.toString(); |
| 3402 }; |
| 3403 // ********** Code for RealtimeAnalyserNode ************** |
| 3404 // ********** Code for Rect ************** |
| 3405 $dynamic("get$dartObjectLocalStorage").Rect = function() { return this.dartObjec
tLocalStorage; }; |
| 3406 $dynamic("set$dartObjectLocalStorage").Rect = function(value) { return this.dart
ObjectLocalStorage = value; }; |
| 3407 // ********** Code for dom_SQLError ************** |
| 3408 $dynamic("get$dartObjectLocalStorage").SQLError = function() { return this.dartO
bjectLocalStorage; }; |
| 3409 $dynamic("set$dartObjectLocalStorage").SQLError = function(value) { return this.
dartObjectLocalStorage = value; }; |
| 3410 // ********** Code for dom_SQLException ************** |
| 3411 $dynamic("get$dartObjectLocalStorage").SQLException = function() { return this.d
artObjectLocalStorage; }; |
| 3412 $dynamic("set$dartObjectLocalStorage").SQLException = function(value) { return t
his.dartObjectLocalStorage = value; }; |
| 3413 // ********** Code for dom_SQLResultSet ************** |
| 3414 $dynamic("get$dartObjectLocalStorage").SQLResultSet = function() { return this.d
artObjectLocalStorage; }; |
| 3415 $dynamic("set$dartObjectLocalStorage").SQLResultSet = function(value) { return t
his.dartObjectLocalStorage = value; }; |
| 3416 // ********** Code for dom_SQLResultSetRowList ************** |
| 3417 $dynamic("get$length").SQLResultSetRowList = function() { return this.length; }; |
| 3418 $dynamic("set$length").SQLResultSetRowList = function(value) { return this.lengt
h = value; }; |
| 3419 $dynamic("get$dartObjectLocalStorage").SQLResultSetRowList = function() { return
this.dartObjectLocalStorage; }; |
| 3420 $dynamic("set$dartObjectLocalStorage").SQLResultSetRowList = function(value) { r
eturn this.dartObjectLocalStorage = value; }; |
| 3421 $dynamic("item$1").SQLResultSetRowList = function($0) { |
| 3422 return this.item($0); |
| 3423 }; |
| 3424 // ********** Code for dom_SQLTransaction ************** |
| 3425 $dynamic("get$dartObjectLocalStorage").SQLTransaction = function() { return this
.dartObjectLocalStorage; }; |
| 3426 $dynamic("set$dartObjectLocalStorage").SQLTransaction = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 3427 // ********** Code for dom_SQLTransactionSync ************** |
| 3428 $dynamic("get$dartObjectLocalStorage").SQLTransactionSync = function() { return
this.dartObjectLocalStorage; }; |
| 3429 $dynamic("set$dartObjectLocalStorage").SQLTransactionSync = function(value) { re
turn this.dartObjectLocalStorage = value; }; |
| 3430 // ********** Code for SVGAElement ************** |
| 3431 $dynamic("get$style").SVGAElement = function() { return this.style; }; |
| 3432 $dynamic("set$style").SVGAElement = function(value) { return this.style = value;
}; |
| 3433 // ********** Code for SVGAltGlyphDefElement ************** |
| 3434 // ********** Code for SVGAltGlyphElement ************** |
| 3435 // ********** Code for SVGAltGlyphItemElement ************** |
| 3436 // ********** Code for SVGAngle ************** |
| 3437 $dynamic("get$value").SVGAngle = function() { return this.value; }; |
| 3438 $dynamic("set$value").SVGAngle = function(value) { return this.value = value; }; |
| 3439 $dynamic("get$dartObjectLocalStorage").SVGAngle = function() { return this.dartO
bjectLocalStorage; }; |
| 3440 $dynamic("set$dartObjectLocalStorage").SVGAngle = function(value) { return this.
dartObjectLocalStorage = value; }; |
| 3441 // ********** Code for SVGAnimateColorElement ************** |
| 3442 // ********** Code for SVGAnimateElement ************** |
| 3443 // ********** Code for SVGAnimateMotionElement ************** |
| 3444 // ********** Code for SVGAnimateTransformElement ************** |
| 3445 // ********** Code for SVGAnimatedAngle ************** |
| 3446 $dynamic("get$dartObjectLocalStorage").SVGAnimatedAngle = function() { return th
is.dartObjectLocalStorage; }; |
| 3447 $dynamic("set$dartObjectLocalStorage").SVGAnimatedAngle = function(value) { retu
rn this.dartObjectLocalStorage = value; }; |
| 3448 // ********** Code for SVGAnimatedBoolean ************** |
| 3449 $dynamic("get$dartObjectLocalStorage").SVGAnimatedBoolean = function() { return
this.dartObjectLocalStorage; }; |
| 3450 $dynamic("set$dartObjectLocalStorage").SVGAnimatedBoolean = function(value) { re
turn this.dartObjectLocalStorage = value; }; |
| 3451 // ********** Code for SVGAnimatedEnumeration ************** |
| 3452 $dynamic("get$dartObjectLocalStorage").SVGAnimatedEnumeration = function() { ret
urn this.dartObjectLocalStorage; }; |
| 3453 $dynamic("set$dartObjectLocalStorage").SVGAnimatedEnumeration = function(value)
{ return this.dartObjectLocalStorage = value; }; |
| 3454 // ********** Code for SVGAnimatedInteger ************** |
| 3455 $dynamic("get$dartObjectLocalStorage").SVGAnimatedInteger = function() { return
this.dartObjectLocalStorage; }; |
| 3456 $dynamic("set$dartObjectLocalStorage").SVGAnimatedInteger = function(value) { re
turn this.dartObjectLocalStorage = value; }; |
| 3457 // ********** Code for SVGAnimatedLength ************** |
| 3458 $dynamic("get$dartObjectLocalStorage").SVGAnimatedLength = function() { return t
his.dartObjectLocalStorage; }; |
| 3459 $dynamic("set$dartObjectLocalStorage").SVGAnimatedLength = function(value) { ret
urn this.dartObjectLocalStorage = value; }; |
| 3460 // ********** Code for SVGAnimatedLengthList ************** |
| 3461 $dynamic("get$dartObjectLocalStorage").SVGAnimatedLengthList = function() { retu
rn this.dartObjectLocalStorage; }; |
| 3462 $dynamic("set$dartObjectLocalStorage").SVGAnimatedLengthList = function(value) {
return this.dartObjectLocalStorage = value; }; |
| 3463 // ********** Code for SVGAnimatedNumber ************** |
| 3464 $dynamic("get$dartObjectLocalStorage").SVGAnimatedNumber = function() { return t
his.dartObjectLocalStorage; }; |
| 3465 $dynamic("set$dartObjectLocalStorage").SVGAnimatedNumber = function(value) { ret
urn this.dartObjectLocalStorage = value; }; |
| 3466 // ********** Code for SVGAnimatedNumberList ************** |
| 3467 $dynamic("get$dartObjectLocalStorage").SVGAnimatedNumberList = function() { retu
rn this.dartObjectLocalStorage; }; |
| 3468 $dynamic("set$dartObjectLocalStorage").SVGAnimatedNumberList = function(value) {
return this.dartObjectLocalStorage = value; }; |
| 3469 // ********** Code for SVGAnimatedPreserveAspectRatio ************** |
| 3470 $dynamic("get$dartObjectLocalStorage").SVGAnimatedPreserveAspectRatio = function
() { return this.dartObjectLocalStorage; }; |
| 3471 $dynamic("set$dartObjectLocalStorage").SVGAnimatedPreserveAspectRatio = function
(value) { return this.dartObjectLocalStorage = value; }; |
| 3472 // ********** Code for SVGAnimatedRect ************** |
| 3473 $dynamic("get$dartObjectLocalStorage").SVGAnimatedRect = function() { return thi
s.dartObjectLocalStorage; }; |
| 3474 $dynamic("set$dartObjectLocalStorage").SVGAnimatedRect = function(value) { retur
n this.dartObjectLocalStorage = value; }; |
| 3475 // ********** Code for SVGAnimatedString ************** |
| 3476 $dynamic("get$dartObjectLocalStorage").SVGAnimatedString = function() { return t
his.dartObjectLocalStorage; }; |
| 3477 $dynamic("set$dartObjectLocalStorage").SVGAnimatedString = function(value) { ret
urn this.dartObjectLocalStorage = value; }; |
| 3478 // ********** Code for SVGAnimatedTransformList ************** |
| 3479 $dynamic("get$dartObjectLocalStorage").SVGAnimatedTransformList = function() { r
eturn this.dartObjectLocalStorage; }; |
| 3480 $dynamic("set$dartObjectLocalStorage").SVGAnimatedTransformList = function(value
) { return this.dartObjectLocalStorage = value; }; |
| 3481 // ********** Code for SVGAnimationElement ************** |
| 3482 // ********** Code for SVGCircleElement ************** |
| 3483 $dynamic("get$style").SVGCircleElement = function() { return this.style; }; |
| 3484 $dynamic("set$style").SVGCircleElement = function(value) { return this.style = v
alue; }; |
| 3485 // ********** Code for SVGClipPathElement ************** |
| 3486 $dynamic("get$style").SVGClipPathElement = function() { return this.style; }; |
| 3487 $dynamic("set$style").SVGClipPathElement = function(value) { return this.style =
value; }; |
| 3488 // ********** Code for SVGColor ************** |
| 3489 // ********** Code for SVGComponentTransferFunctionElement ************** |
| 3490 // ********** Code for SVGCursorElement ************** |
| 3491 // ********** Code for SVGDefsElement ************** |
| 3492 $dynamic("get$style").SVGDefsElement = function() { return this.style; }; |
| 3493 $dynamic("set$style").SVGDefsElement = function(value) { return this.style = val
ue; }; |
| 3494 // ********** Code for SVGDescElement ************** |
| 3495 $dynamic("get$style").SVGDescElement = function() { return this.style; }; |
| 3496 $dynamic("set$style").SVGDescElement = function(value) { return this.style = val
ue; }; |
| 3497 // ********** Code for SVGDocument ************** |
| 3498 // ********** Code for SVGElement ************** |
| 3499 $dynamic("get$id").SVGElement = function() { return this.id; }; |
| 3500 $dynamic("set$id").SVGElement = function(value) { return this.id = value; }; |
| 3501 // ********** Code for SVGElementInstance ************** |
| 3502 $dynamic("get$childNodes").SVGElementInstance = function() { return this.childNo
des; }; |
| 3503 $dynamic("set$childNodes").SVGElementInstance = function(value) { return this.ch
ildNodes = value; }; |
| 3504 $dynamic("get$firstChild").SVGElementInstance = function() { return this.firstCh
ild; }; |
| 3505 $dynamic("set$firstChild").SVGElementInstance = function(value) { return this.fi
rstChild = value; }; |
| 3506 $dynamic("get$lastChild").SVGElementInstance = function() { return this.lastChil
d; }; |
| 3507 $dynamic("set$lastChild").SVGElementInstance = function(value) { return this.las
tChild = value; }; |
| 3508 $dynamic("get$parentNode").SVGElementInstance = function() { return this.parentN
ode; }; |
| 3509 $dynamic("set$parentNode").SVGElementInstance = function(value) { return this.pa
rentNode = value; }; |
| 3510 $dynamic("get$dartObjectLocalStorage").SVGElementInstance = function() { return
this.dartObjectLocalStorage; }; |
| 3511 $dynamic("set$dartObjectLocalStorage").SVGElementInstance = function(value) { re
turn this.dartObjectLocalStorage = value; }; |
| 3512 $dynamic("addEventListener$3").SVGElementInstance = function($0, $1, $2) { |
| 3513 return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 3514 }; |
| 3515 $dynamic("removeEventListener$3").SVGElementInstance = function($0, $1, $2) { |
| 3516 return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 3517 }; |
| 3518 // ********** Code for SVGElementInstanceList ************** |
| 3519 $dynamic("get$length").SVGElementInstanceList = function() { return this.length;
}; |
| 3520 $dynamic("set$length").SVGElementInstanceList = function(value) { return this.le
ngth = value; }; |
| 3521 $dynamic("get$dartObjectLocalStorage").SVGElementInstanceList = function() { ret
urn this.dartObjectLocalStorage; }; |
| 3522 $dynamic("set$dartObjectLocalStorage").SVGElementInstanceList = function(value)
{ return this.dartObjectLocalStorage = value; }; |
| 3523 $dynamic("item$1").SVGElementInstanceList = function($0) { |
| 3524 return this.item($0); |
| 3525 }; |
| 3526 // ********** Code for SVGEllipseElement ************** |
| 3527 $dynamic("get$style").SVGEllipseElement = function() { return this.style; }; |
| 3528 $dynamic("set$style").SVGEllipseElement = function(value) { return this.style =
value; }; |
| 3529 // ********** Code for SVGException ************** |
| 3530 $dynamic("get$name").SVGException = function() { return this.name; }; |
| 3531 $dynamic("set$name").SVGException = function(value) { return this.name = value;
}; |
| 3532 $dynamic("get$dartObjectLocalStorage").SVGException = function() { return this.d
artObjectLocalStorage; }; |
| 3533 $dynamic("set$dartObjectLocalStorage").SVGException = function(value) { return t
his.dartObjectLocalStorage = value; }; |
| 3534 $dynamic("toString$0").SVGException = function() { |
| 3535 return this.toString(); |
| 3536 }; |
| 3537 // ********** Code for SVGExternalResourcesRequired ************** |
| 3538 $dynamic("get$dartObjectLocalStorage").SVGExternalResourcesRequired = function()
{ return this.dartObjectLocalStorage; }; |
| 3539 $dynamic("set$dartObjectLocalStorage").SVGExternalResourcesRequired = function(v
alue) { return this.dartObjectLocalStorage = value; }; |
| 3540 // ********** Code for SVGFEBlendElement ************** |
| 3541 $dynamic("get$style").SVGFEBlendElement = function() { return this.style; }; |
| 3542 $dynamic("set$style").SVGFEBlendElement = function(value) { return this.style =
value; }; |
| 3543 // ********** Code for SVGFEColorMatrixElement ************** |
| 3544 $dynamic("get$style").SVGFEColorMatrixElement = function() { return this.style;
}; |
| 3545 $dynamic("set$style").SVGFEColorMatrixElement = function(value) { return this.st
yle = value; }; |
| 3546 // ********** Code for SVGFEComponentTransferElement ************** |
| 3547 $dynamic("get$style").SVGFEComponentTransferElement = function() { return this.s
tyle; }; |
| 3548 $dynamic("set$style").SVGFEComponentTransferElement = function(value) { return t
his.style = value; }; |
| 3549 // ********** Code for dom_SVGFECompositeElement ************** |
| 3550 $dynamic("get$style").SVGFECompositeElement = function() { return this.style; }; |
| 3551 $dynamic("set$style").SVGFECompositeElement = function(value) { return this.styl
e = value; }; |
| 3552 // ********** Code for SVGFEConvolveMatrixElement ************** |
| 3553 $dynamic("get$style").SVGFEConvolveMatrixElement = function() { return this.styl
e; }; |
| 3554 $dynamic("set$style").SVGFEConvolveMatrixElement = function(value) { return this
.style = value; }; |
| 3555 // ********** Code for SVGFEDiffuseLightingElement ************** |
| 3556 $dynamic("get$style").SVGFEDiffuseLightingElement = function() { return this.sty
le; }; |
| 3557 $dynamic("set$style").SVGFEDiffuseLightingElement = function(value) { return thi
s.style = value; }; |
| 3558 // ********** Code for SVGFEDisplacementMapElement ************** |
| 3559 $dynamic("get$style").SVGFEDisplacementMapElement = function() { return this.sty
le; }; |
| 3560 $dynamic("set$style").SVGFEDisplacementMapElement = function(value) { return thi
s.style = value; }; |
| 3561 // ********** Code for SVGFEDistantLightElement ************** |
| 3562 // ********** Code for SVGFEDropShadowElement ************** |
| 3563 $dynamic("get$style").SVGFEDropShadowElement = function() { return this.style; }
; |
| 3564 $dynamic("set$style").SVGFEDropShadowElement = function(value) { return this.sty
le = value; }; |
| 3565 // ********** Code for SVGFEFloodElement ************** |
| 3566 $dynamic("get$style").SVGFEFloodElement = function() { return this.style; }; |
| 3567 $dynamic("set$style").SVGFEFloodElement = function(value) { return this.style =
value; }; |
| 3568 // ********** Code for SVGFEFuncAElement ************** |
| 3569 // ********** Code for SVGFEFuncBElement ************** |
| 3570 // ********** Code for SVGFEFuncGElement ************** |
| 3571 // ********** Code for SVGFEFuncRElement ************** |
| 3572 // ********** Code for SVGFEGaussianBlurElement ************** |
| 3573 $dynamic("get$style").SVGFEGaussianBlurElement = function() { return this.style;
}; |
| 3574 $dynamic("set$style").SVGFEGaussianBlurElement = function(value) { return this.s
tyle = value; }; |
| 3575 // ********** Code for SVGFEImageElement ************** |
| 3576 $dynamic("get$style").SVGFEImageElement = function() { return this.style; }; |
| 3577 $dynamic("set$style").SVGFEImageElement = function(value) { return this.style =
value; }; |
| 3578 // ********** Code for SVGFEMergeElement ************** |
| 3579 $dynamic("get$style").SVGFEMergeElement = function() { return this.style; }; |
| 3580 $dynamic("set$style").SVGFEMergeElement = function(value) { return this.style =
value; }; |
| 3581 // ********** Code for SVGFEMergeNodeElement ************** |
| 3582 // ********** Code for dom_SVGFEMorphologyElement ************** |
| 3583 $dynamic("get$style").SVGFEMorphologyElement = function() { return this.style; }
; |
| 3584 $dynamic("set$style").SVGFEMorphologyElement = function(value) { return this.sty
le = value; }; |
| 3585 // ********** Code for SVGFEOffsetElement ************** |
| 3586 $dynamic("get$style").SVGFEOffsetElement = function() { return this.style; }; |
| 3587 $dynamic("set$style").SVGFEOffsetElement = function(value) { return this.style =
value; }; |
| 3588 // ********** Code for SVGFEPointLightElement ************** |
| 3589 // ********** Code for SVGFESpecularLightingElement ************** |
| 3590 $dynamic("get$style").SVGFESpecularLightingElement = function() { return this.st
yle; }; |
| 3591 $dynamic("set$style").SVGFESpecularLightingElement = function(value) { return th
is.style = value; }; |
| 3592 // ********** Code for SVGFESpotLightElement ************** |
| 3593 // ********** Code for SVGFETileElement ************** |
| 3594 $dynamic("get$style").SVGFETileElement = function() { return this.style; }; |
| 3595 $dynamic("set$style").SVGFETileElement = function(value) { return this.style = v
alue; }; |
| 3596 // ********** Code for SVGFETurbulenceElement ************** |
| 3597 $dynamic("get$style").SVGFETurbulenceElement = function() { return this.style; }
; |
| 3598 $dynamic("set$style").SVGFETurbulenceElement = function(value) { return this.sty
le = value; }; |
| 3599 // ********** Code for SVGFilterElement ************** |
| 3600 $dynamic("get$style").SVGFilterElement = function() { return this.style; }; |
| 3601 $dynamic("set$style").SVGFilterElement = function(value) { return this.style = v
alue; }; |
| 3602 // ********** Code for SVGFilterPrimitiveStandardAttributes ************** |
| 3603 // ********** Code for SVGFitToViewBox ************** |
| 3604 $dynamic("get$dartObjectLocalStorage").SVGFitToViewBox = function() { return thi
s.dartObjectLocalStorage; }; |
| 3605 $dynamic("set$dartObjectLocalStorage").SVGFitToViewBox = function(value) { retur
n this.dartObjectLocalStorage = value; }; |
| 3606 // ********** Code for SVGFontElement ************** |
| 3607 // ********** Code for SVGFontFaceElement ************** |
| 3608 // ********** Code for SVGFontFaceFormatElement ************** |
| 3609 // ********** Code for SVGFontFaceNameElement ************** |
| 3610 // ********** Code for SVGFontFaceSrcElement ************** |
| 3611 // ********** Code for SVGFontFaceUriElement ************** |
| 3612 // ********** Code for SVGForeignObjectElement ************** |
| 3613 $dynamic("get$style").SVGForeignObjectElement = function() { return this.style;
}; |
| 3614 $dynamic("set$style").SVGForeignObjectElement = function(value) { return this.st
yle = value; }; |
| 3615 // ********** Code for SVGGElement ************** |
| 3616 $dynamic("get$style").SVGGElement = function() { return this.style; }; |
| 3617 $dynamic("set$style").SVGGElement = function(value) { return this.style = value;
}; |
| 3618 // ********** Code for SVGGlyphElement ************** |
| 3619 // ********** Code for SVGGlyphRefElement ************** |
| 3620 $dynamic("get$style").SVGGlyphRefElement = function() { return this.style; }; |
| 3621 $dynamic("set$style").SVGGlyphRefElement = function(value) { return this.style =
value; }; |
| 3622 // ********** Code for SVGGradientElement ************** |
| 3623 $dynamic("get$style").SVGGradientElement = function() { return this.style; }; |
| 3624 $dynamic("set$style").SVGGradientElement = function(value) { return this.style =
value; }; |
| 3625 // ********** Code for SVGHKernElement ************** |
| 3626 // ********** Code for SVGImageElement ************** |
| 3627 $dynamic("get$style").SVGImageElement = function() { return this.style; }; |
| 3628 $dynamic("set$style").SVGImageElement = function(value) { return this.style = va
lue; }; |
| 3629 // ********** Code for SVGLangSpace ************** |
| 3630 $dynamic("get$dartObjectLocalStorage").SVGLangSpace = function() { return this.d
artObjectLocalStorage; }; |
| 3631 $dynamic("set$dartObjectLocalStorage").SVGLangSpace = function(value) { return t
his.dartObjectLocalStorage = value; }; |
| 3632 // ********** Code for SVGLength ************** |
| 3633 $dynamic("get$value").SVGLength = function() { return this.value; }; |
| 3634 $dynamic("set$value").SVGLength = function(value) { return this.value = value; }
; |
| 3635 $dynamic("get$dartObjectLocalStorage").SVGLength = function() { return this.dart
ObjectLocalStorage; }; |
| 3636 $dynamic("set$dartObjectLocalStorage").SVGLength = function(value) { return this
.dartObjectLocalStorage = value; }; |
| 3637 // ********** Code for SVGLengthList ************** |
| 3638 $dynamic("get$clear").SVGLengthList = function() { |
| 3639 return this.clear.bind(this); |
| 3640 } |
| 3641 $dynamic("get$dartObjectLocalStorage").SVGLengthList = function() { return this.
dartObjectLocalStorage; }; |
| 3642 $dynamic("set$dartObjectLocalStorage").SVGLengthList = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 3643 $dynamic("clear$0").SVGLengthList = function() { |
| 3644 return this.clear(); |
| 3645 }; |
| 3646 // ********** Code for SVGLineElement ************** |
| 3647 $dynamic("get$style").SVGLineElement = function() { return this.style; }; |
| 3648 $dynamic("set$style").SVGLineElement = function(value) { return this.style = val
ue; }; |
| 3649 // ********** Code for SVGLinearGradientElement ************** |
| 3650 // ********** Code for SVGLocatable ************** |
| 3651 $dynamic("get$dartObjectLocalStorage").SVGLocatable = function() { return this.d
artObjectLocalStorage; }; |
| 3652 $dynamic("set$dartObjectLocalStorage").SVGLocatable = function(value) { return t
his.dartObjectLocalStorage = value; }; |
| 3653 // ********** Code for SVGMPathElement ************** |
| 3654 // ********** Code for SVGMarkerElement ************** |
| 3655 $dynamic("get$style").SVGMarkerElement = function() { return this.style; }; |
| 3656 $dynamic("set$style").SVGMarkerElement = function(value) { return this.style = v
alue; }; |
| 3657 // ********** Code for SVGMaskElement ************** |
| 3658 $dynamic("get$style").SVGMaskElement = function() { return this.style; }; |
| 3659 $dynamic("set$style").SVGMaskElement = function(value) { return this.style = val
ue; }; |
| 3660 // ********** Code for SVGMatrix ************** |
| 3661 $dynamic("get$dartObjectLocalStorage").SVGMatrix = function() { return this.dart
ObjectLocalStorage; }; |
| 3662 $dynamic("set$dartObjectLocalStorage").SVGMatrix = function(value) { return this
.dartObjectLocalStorage = value; }; |
| 3663 // ********** Code for SVGMetadataElement ************** |
| 3664 // ********** Code for SVGMissingGlyphElement ************** |
| 3665 // ********** Code for SVGNumber ************** |
| 3666 $dynamic("get$value").SVGNumber = function() { return this.value; }; |
| 3667 $dynamic("set$value").SVGNumber = function(value) { return this.value = value; }
; |
| 3668 $dynamic("get$dartObjectLocalStorage").SVGNumber = function() { return this.dart
ObjectLocalStorage; }; |
| 3669 $dynamic("set$dartObjectLocalStorage").SVGNumber = function(value) { return this
.dartObjectLocalStorage = value; }; |
| 3670 // ********** Code for SVGNumberList ************** |
| 3671 $dynamic("get$clear").SVGNumberList = function() { |
| 3672 return this.clear.bind(this); |
| 3673 } |
| 3674 $dynamic("get$dartObjectLocalStorage").SVGNumberList = function() { return this.
dartObjectLocalStorage; }; |
| 3675 $dynamic("set$dartObjectLocalStorage").SVGNumberList = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 3676 $dynamic("clear$0").SVGNumberList = function() { |
| 3677 return this.clear(); |
| 3678 }; |
| 3679 // ********** Code for SVGPaint ************** |
| 3680 // ********** Code for SVGPathElement ************** |
| 3681 $dynamic("get$style").SVGPathElement = function() { return this.style; }; |
| 3682 $dynamic("set$style").SVGPathElement = function(value) { return this.style = val
ue; }; |
| 3683 // ********** Code for SVGPathSeg ************** |
| 3684 $dynamic("get$dartObjectLocalStorage").SVGPathSeg = function() { return this.dar
tObjectLocalStorage; }; |
| 3685 $dynamic("set$dartObjectLocalStorage").SVGPathSeg = function(value) { return thi
s.dartObjectLocalStorage = value; }; |
| 3686 // ********** Code for SVGPathSegArcAbs ************** |
| 3687 // ********** Code for SVGPathSegArcRel ************** |
| 3688 // ********** Code for SVGPathSegClosePath ************** |
| 3689 // ********** Code for SVGPathSegCurvetoCubicAbs ************** |
| 3690 // ********** Code for SVGPathSegCurvetoCubicRel ************** |
| 3691 // ********** Code for SVGPathSegCurvetoCubicSmoothAbs ************** |
| 3692 // ********** Code for SVGPathSegCurvetoCubicSmoothRel ************** |
| 3693 // ********** Code for SVGPathSegCurvetoQuadraticAbs ************** |
| 3694 // ********** Code for SVGPathSegCurvetoQuadraticRel ************** |
| 3695 // ********** Code for SVGPathSegCurvetoQuadraticSmoothAbs ************** |
| 3696 // ********** Code for SVGPathSegCurvetoQuadraticSmoothRel ************** |
| 3697 // ********** Code for SVGPathSegLinetoAbs ************** |
| 3698 // ********** Code for SVGPathSegLinetoHorizontalAbs ************** |
| 3699 // ********** Code for SVGPathSegLinetoHorizontalRel ************** |
| 3700 // ********** Code for SVGPathSegLinetoRel ************** |
| 3701 // ********** Code for SVGPathSegLinetoVerticalAbs ************** |
| 3702 // ********** Code for SVGPathSegLinetoVerticalRel ************** |
| 3703 // ********** Code for SVGPathSegList ************** |
| 3704 $dynamic("get$clear").SVGPathSegList = function() { |
| 3705 return this.clear.bind(this); |
| 3706 } |
| 3707 $dynamic("get$dartObjectLocalStorage").SVGPathSegList = function() { return this
.dartObjectLocalStorage; }; |
| 3708 $dynamic("set$dartObjectLocalStorage").SVGPathSegList = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 3709 $dynamic("clear$0").SVGPathSegList = function() { |
| 3710 return this.clear(); |
| 3711 }; |
| 3712 // ********** Code for SVGPathSegMovetoAbs ************** |
| 3713 // ********** Code for SVGPathSegMovetoRel ************** |
| 3714 // ********** Code for SVGPatternElement ************** |
| 3715 $dynamic("get$style").SVGPatternElement = function() { return this.style; }; |
| 3716 $dynamic("set$style").SVGPatternElement = function(value) { return this.style =
value; }; |
| 3717 // ********** Code for SVGPoint ************** |
| 3718 $dynamic("get$dartObjectLocalStorage").SVGPoint = function() { return this.dartO
bjectLocalStorage; }; |
| 3719 $dynamic("set$dartObjectLocalStorage").SVGPoint = function(value) { return this.
dartObjectLocalStorage = value; }; |
| 3720 // ********** Code for SVGPointList ************** |
| 3721 $dynamic("get$clear").SVGPointList = function() { |
| 3722 return this.clear.bind(this); |
| 3723 } |
| 3724 $dynamic("get$dartObjectLocalStorage").SVGPointList = function() { return this.d
artObjectLocalStorage; }; |
| 3725 $dynamic("set$dartObjectLocalStorage").SVGPointList = function(value) { return t
his.dartObjectLocalStorage = value; }; |
| 3726 $dynamic("clear$0").SVGPointList = function() { |
| 3727 return this.clear(); |
| 3728 }; |
| 3729 // ********** Code for SVGPolygonElement ************** |
| 3730 $dynamic("get$style").SVGPolygonElement = function() { return this.style; }; |
| 3731 $dynamic("set$style").SVGPolygonElement = function(value) { return this.style =
value; }; |
| 3732 // ********** Code for SVGPolylineElement ************** |
| 3733 $dynamic("get$style").SVGPolylineElement = function() { return this.style; }; |
| 3734 $dynamic("set$style").SVGPolylineElement = function(value) { return this.style =
value; }; |
| 3735 // ********** Code for SVGPreserveAspectRatio ************** |
| 3736 $dynamic("get$dartObjectLocalStorage").SVGPreserveAspectRatio = function() { ret
urn this.dartObjectLocalStorage; }; |
| 3737 $dynamic("set$dartObjectLocalStorage").SVGPreserveAspectRatio = function(value)
{ return this.dartObjectLocalStorage = value; }; |
| 3738 // ********** Code for SVGRadialGradientElement ************** |
| 3739 // ********** Code for SVGRect ************** |
| 3740 $dynamic("get$dartObjectLocalStorage").SVGRect = function() { return this.dartOb
jectLocalStorage; }; |
| 3741 $dynamic("set$dartObjectLocalStorage").SVGRect = function(value) { return this.d
artObjectLocalStorage = value; }; |
| 3742 // ********** Code for SVGRectElement ************** |
| 3743 $dynamic("get$style").SVGRectElement = function() { return this.style; }; |
| 3744 $dynamic("set$style").SVGRectElement = function(value) { return this.style = val
ue; }; |
| 3745 // ********** Code for SVGRenderingIntent ************** |
| 3746 $dynamic("get$dartObjectLocalStorage").SVGRenderingIntent = function() { return
this.dartObjectLocalStorage; }; |
| 3747 $dynamic("set$dartObjectLocalStorage").SVGRenderingIntent = function(value) { re
turn this.dartObjectLocalStorage = value; }; |
| 3748 // ********** Code for SVGSVGElement ************** |
| 3749 $dynamic("get$style").SVGSVGElement = function() { return this.style; }; |
| 3750 $dynamic("set$style").SVGSVGElement = function(value) { return this.style = valu
e; }; |
| 3751 // ********** Code for SVGScriptElement ************** |
| 3752 // ********** Code for SVGSetElement ************** |
| 3753 // ********** Code for SVGStopElement ************** |
| 3754 $dynamic("get$style").SVGStopElement = function() { return this.style; }; |
| 3755 $dynamic("set$style").SVGStopElement = function(value) { return this.style = val
ue; }; |
| 3756 // ********** Code for SVGStringList ************** |
| 3757 $dynamic("get$clear").SVGStringList = function() { |
| 3758 return this.clear.bind(this); |
| 3759 } |
| 3760 $dynamic("get$dartObjectLocalStorage").SVGStringList = function() { return this.
dartObjectLocalStorage; }; |
| 3761 $dynamic("set$dartObjectLocalStorage").SVGStringList = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 3762 $dynamic("clear$0").SVGStringList = function() { |
| 3763 return this.clear(); |
| 3764 }; |
| 3765 // ********** Code for SVGStylable ************** |
| 3766 $dynamic("get$style").SVGStylable = function() { return this.style; }; |
| 3767 $dynamic("set$style").SVGStylable = function(value) { return this.style = value;
}; |
| 3768 $dynamic("get$dartObjectLocalStorage").SVGStylable = function() { return this.da
rtObjectLocalStorage; }; |
| 3769 $dynamic("set$dartObjectLocalStorage").SVGStylable = function(value) { return th
is.dartObjectLocalStorage = value; }; |
| 3770 // ********** Code for SVGStyleElement ************** |
| 3771 // ********** Code for SVGSwitchElement ************** |
| 3772 $dynamic("get$style").SVGSwitchElement = function() { return this.style; }; |
| 3773 $dynamic("set$style").SVGSwitchElement = function(value) { return this.style = v
alue; }; |
| 3774 // ********** Code for SVGSymbolElement ************** |
| 3775 $dynamic("get$style").SVGSymbolElement = function() { return this.style; }; |
| 3776 $dynamic("set$style").SVGSymbolElement = function(value) { return this.style = v
alue; }; |
| 3777 // ********** Code for SVGTRefElement ************** |
| 3778 // ********** Code for SVGTSpanElement ************** |
| 3779 // ********** Code for SVGTests ************** |
| 3780 $dynamic("get$dartObjectLocalStorage").SVGTests = function() { return this.dartO
bjectLocalStorage; }; |
| 3781 $dynamic("set$dartObjectLocalStorage").SVGTests = function(value) { return this.
dartObjectLocalStorage = value; }; |
| 3782 // ********** Code for SVGTextContentElement ************** |
| 3783 $dynamic("get$style").SVGTextContentElement = function() { return this.style; }; |
| 3784 $dynamic("set$style").SVGTextContentElement = function(value) { return this.styl
e = value; }; |
| 3785 // ********** Code for SVGTextElement ************** |
| 3786 // ********** Code for SVGTextPathElement ************** |
| 3787 // ********** Code for SVGTextPositioningElement ************** |
| 3788 // ********** Code for SVGTitleElement ************** |
| 3789 $dynamic("get$style").SVGTitleElement = function() { return this.style; }; |
| 3790 $dynamic("set$style").SVGTitleElement = function(value) { return this.style = va
lue; }; |
| 3791 // ********** Code for SVGTransform ************** |
| 3792 $dynamic("get$dartObjectLocalStorage").SVGTransform = function() { return this.d
artObjectLocalStorage; }; |
| 3793 $dynamic("set$dartObjectLocalStorage").SVGTransform = function(value) { return t
his.dartObjectLocalStorage = value; }; |
| 3794 // ********** Code for SVGTransformList ************** |
| 3795 $dynamic("get$clear").SVGTransformList = function() { |
| 3796 return this.clear.bind(this); |
| 3797 } |
| 3798 $dynamic("get$dartObjectLocalStorage").SVGTransformList = function() { return th
is.dartObjectLocalStorage; }; |
| 3799 $dynamic("set$dartObjectLocalStorage").SVGTransformList = function(value) { retu
rn this.dartObjectLocalStorage = value; }; |
| 3800 $dynamic("clear$0").SVGTransformList = function() { |
| 3801 return this.clear(); |
| 3802 }; |
| 3803 // ********** Code for SVGTransformable ************** |
| 3804 // ********** Code for SVGURIReference ************** |
| 3805 $dynamic("get$dartObjectLocalStorage").SVGURIReference = function() { return thi
s.dartObjectLocalStorage; }; |
| 3806 $dynamic("set$dartObjectLocalStorage").SVGURIReference = function(value) { retur
n this.dartObjectLocalStorage = value; }; |
| 3807 // ********** Code for SVGUnitTypes ************** |
| 3808 $dynamic("get$dartObjectLocalStorage").SVGUnitTypes = function() { return this.d
artObjectLocalStorage; }; |
| 3809 $dynamic("set$dartObjectLocalStorage").SVGUnitTypes = function(value) { return t
his.dartObjectLocalStorage = value; }; |
| 3810 // ********** Code for SVGUseElement ************** |
| 3811 $dynamic("get$style").SVGUseElement = function() { return this.style; }; |
| 3812 $dynamic("set$style").SVGUseElement = function(value) { return this.style = valu
e; }; |
| 3813 // ********** Code for SVGVKernElement ************** |
| 3814 // ********** Code for SVGViewElement ************** |
| 3815 // ********** Code for SVGViewSpec ************** |
| 3816 // ********** Code for SVGZoomAndPan ************** |
| 3817 $dynamic("get$dartObjectLocalStorage").SVGZoomAndPan = function() { return this.
dartObjectLocalStorage; }; |
| 3818 $dynamic("set$dartObjectLocalStorage").SVGZoomAndPan = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 3819 // ********** Code for SVGZoomEvent ************** |
| 3820 // ********** Code for Screen ************** |
| 3821 $dynamic("get$dartObjectLocalStorage").Screen = function() { return this.dartObj
ectLocalStorage; }; |
| 3822 $dynamic("set$dartObjectLocalStorage").Screen = function(value) { return this.da
rtObjectLocalStorage = value; }; |
| 3823 // ********** Code for dom_ScriptProfile ************** |
| 3824 $dynamic("get$dartObjectLocalStorage").ScriptProfile = function() { return this.
dartObjectLocalStorage; }; |
| 3825 $dynamic("set$dartObjectLocalStorage").ScriptProfile = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 3826 // ********** Code for dom_ScriptProfileNode ************** |
| 3827 $dynamic("get$children").ScriptProfileNode = function() { return this.children;
}; |
| 3828 $dynamic("set$children").ScriptProfileNode = function(value) { return this.child
ren = value; }; |
| 3829 $dynamic("get$dartObjectLocalStorage").ScriptProfileNode = function() { return t
his.dartObjectLocalStorage; }; |
| 3830 $dynamic("set$dartObjectLocalStorage").ScriptProfileNode = function(value) { ret
urn this.dartObjectLocalStorage = value; }; |
| 3831 // ********** Code for SharedWorker ************** |
| 3832 // ********** Code for dom_SharedWorkercontext ************** |
| 3833 $dynamic("get$name").SharedWorkercontext = function() { return this.name; }; |
| 3834 $dynamic("set$name").SharedWorkercontext = function(value) { return this.name =
value; }; |
| 3835 // ********** Code for SpeechInputEvent ************** |
| 3836 // ********** Code for SpeechInputResult ************** |
| 3837 $dynamic("get$dartObjectLocalStorage").SpeechInputResult = function() { return t
his.dartObjectLocalStorage; }; |
| 3838 $dynamic("set$dartObjectLocalStorage").SpeechInputResult = function(value) { ret
urn this.dartObjectLocalStorage = value; }; |
| 3839 // ********** Code for SpeechInputResultList ************** |
| 3840 $dynamic("get$length").SpeechInputResultList = function() { return this.length;
}; |
| 3841 $dynamic("set$length").SpeechInputResultList = function(value) { return this.len
gth = value; }; |
| 3842 $dynamic("get$dartObjectLocalStorage").SpeechInputResultList = function() { retu
rn this.dartObjectLocalStorage; }; |
| 3843 $dynamic("set$dartObjectLocalStorage").SpeechInputResultList = function(value) {
return this.dartObjectLocalStorage = value; }; |
| 3844 $dynamic("item$1").SpeechInputResultList = function($0) { |
| 3845 return this.item($0); |
| 3846 }; |
| 3847 // ********** Code for Storage ************** |
| 3848 $dynamic("get$length").Storage = function() { return this.length; }; |
| 3849 $dynamic("set$length").Storage = function(value) { return this.length = value; }
; |
| 3850 $dynamic("get$clear").Storage = function() { |
| 3851 return this.clear.bind(this); |
| 3852 } |
| 3853 $dynamic("get$dartObjectLocalStorage").Storage = function() { |
| 3854 |
| 3855 if (this === window.localStorage) |
| 3856 return window._dartLocalStorageLocalStorage; |
| 3857 else if (this === window.sessionStorage) |
| 3858 return window._dartSessionStorageLocalStorage; |
| 3859 else |
| 3860 throw new UnsupportedOperationException('Cannot dartObjectLocalStorage f
or unknown Storage object.'); |
| 3861 |
| 3862 } |
| 3863 $dynamic("set$dartObjectLocalStorage").Storage = function(value) { |
| 3864 |
| 3865 if (this === window.localStorage) |
| 3866 window._dartLocalStorageLocalStorage = value; |
| 3867 else if (this === window.sessionStorage) |
| 3868 window._dartSessionStorageLocalStorage = value; |
| 3869 else |
| 3870 throw new UnsupportedOperationException('Cannot dartObjectLocalStorage f
or unknown Storage object.'); |
| 3871 |
| 3872 } |
| 3873 $dynamic("clear$0").Storage = function() { |
| 3874 return this.clear(); |
| 3875 }; |
| 3876 // ********** Code for StorageEvent ************** |
| 3877 // ********** Code for StorageInfo ************** |
| 3878 $dynamic("get$dartObjectLocalStorage").StorageInfo = function() { return this.da
rtObjectLocalStorage; }; |
| 3879 $dynamic("set$dartObjectLocalStorage").StorageInfo = function(value) { return th
is.dartObjectLocalStorage = value; }; |
| 3880 // ********** Code for StyleMedia ************** |
| 3881 $dynamic("get$dartObjectLocalStorage").StyleMedia = function() { return this.dar
tObjectLocalStorage; }; |
| 3882 $dynamic("set$dartObjectLocalStorage").StyleMedia = function(value) { return thi
s.dartObjectLocalStorage = value; }; |
| 3883 // ********** Code for StyleSheet ************** |
| 3884 $dynamic("get$dartObjectLocalStorage").StyleSheet = function() { return this.dar
tObjectLocalStorage; }; |
| 3885 $dynamic("set$dartObjectLocalStorage").StyleSheet = function(value) { return thi
s.dartObjectLocalStorage = value; }; |
| 3886 // ********** Code for StyleSheetList ************** |
| 3887 $dynamic("get$length").StyleSheetList = function() { return this.length; }; |
| 3888 $dynamic("set$length").StyleSheetList = function(value) { return this.length = v
alue; }; |
| 3889 $dynamic("$setindex").StyleSheetList = function(index, value) { |
| 3890 $throw(new UnsupportedOperationException("Cannot assign element of immutable L
ist.")); |
| 3891 } |
| 3892 $dynamic("get$dartObjectLocalStorage").StyleSheetList = function() { return this
.dartObjectLocalStorage; }; |
| 3893 $dynamic("set$dartObjectLocalStorage").StyleSheetList = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 3894 $dynamic("item$1").StyleSheetList = function($0) { |
| 3895 return this.item($0); |
| 3896 }; |
| 3897 // ********** Code for Text ************** |
| 3898 // ********** Code for TextEvent ************** |
| 3899 // ********** Code for TextMetrics ************** |
| 3900 $dynamic("get$dartObjectLocalStorage").TextMetrics = function() { return this.da
rtObjectLocalStorage; }; |
| 3901 $dynamic("set$dartObjectLocalStorage").TextMetrics = function(value) { return th
is.dartObjectLocalStorage = value; }; |
| 3902 // ********** Code for TextTrack ************** |
| 3903 $dynamic("get$dartObjectLocalStorage").TextTrack = function() { return this.dart
ObjectLocalStorage; }; |
| 3904 $dynamic("set$dartObjectLocalStorage").TextTrack = function(value) { return this
.dartObjectLocalStorage = value; }; |
| 3905 $dynamic("addEventListener$3").TextTrack = function($0, $1, $2) { |
| 3906 return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 3907 }; |
| 3908 $dynamic("removeEventListener$3").TextTrack = function($0, $1, $2) { |
| 3909 return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 3910 }; |
| 3911 // ********** Code for TextTrackCue ************** |
| 3912 $dynamic("get$id").TextTrackCue = function() { return this.id; }; |
| 3913 $dynamic("set$id").TextTrackCue = function(value) { return this.id = value; }; |
| 3914 $dynamic("get$dartObjectLocalStorage").TextTrackCue = function() { return this.d
artObjectLocalStorage; }; |
| 3915 $dynamic("set$dartObjectLocalStorage").TextTrackCue = function(value) { return t
his.dartObjectLocalStorage = value; }; |
| 3916 $dynamic("addEventListener$3").TextTrackCue = function($0, $1, $2) { |
| 3917 return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 3918 }; |
| 3919 $dynamic("removeEventListener$3").TextTrackCue = function($0, $1, $2) { |
| 3920 return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 3921 }; |
| 3922 // ********** Code for TextTrackCueList ************** |
| 3923 $dynamic("get$length").TextTrackCueList = function() { return this.length; }; |
| 3924 $dynamic("set$length").TextTrackCueList = function(value) { return this.length =
value; }; |
| 3925 $dynamic("get$dartObjectLocalStorage").TextTrackCueList = function() { return th
is.dartObjectLocalStorage; }; |
| 3926 $dynamic("set$dartObjectLocalStorage").TextTrackCueList = function(value) { retu
rn this.dartObjectLocalStorage = value; }; |
| 3927 $dynamic("item$1").TextTrackCueList = function($0) { |
| 3928 return this.item($0); |
| 3929 }; |
| 3930 // ********** Code for dom_TextTrackList ************** |
| 3931 $dynamic("get$length").TextTrackList = function() { return this.length; }; |
| 3932 $dynamic("set$length").TextTrackList = function(value) { return this.length = va
lue; }; |
| 3933 $dynamic("get$dartObjectLocalStorage").TextTrackList = function() { return this.
dartObjectLocalStorage; }; |
| 3934 $dynamic("set$dartObjectLocalStorage").TextTrackList = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 3935 $dynamic("addEventListener$3").TextTrackList = function($0, $1, $2) { |
| 3936 return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 3937 }; |
| 3938 $dynamic("item$1").TextTrackList = function($0) { |
| 3939 return this.item($0); |
| 3940 }; |
| 3941 $dynamic("removeEventListener$3").TextTrackList = function($0, $1, $2) { |
| 3942 return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 3943 }; |
| 3944 // ********** Code for TimeRanges ************** |
| 3945 $dynamic("get$length").TimeRanges = function() { return this.length; }; |
| 3946 $dynamic("set$length").TimeRanges = function(value) { return this.length = value
; }; |
| 3947 $dynamic("get$dartObjectLocalStorage").TimeRanges = function() { return this.dar
tObjectLocalStorage; }; |
| 3948 $dynamic("set$dartObjectLocalStorage").TimeRanges = function(value) { return thi
s.dartObjectLocalStorage = value; }; |
| 3949 // ********** Code for Touch ************** |
| 3950 $dynamic("get$pageX").Touch = function() { return this.pageX; }; |
| 3951 $dynamic("set$pageX").Touch = function(value) { return this.pageX = value; }; |
| 3952 $dynamic("get$pageY").Touch = function() { return this.pageY; }; |
| 3953 $dynamic("set$pageY").Touch = function(value) { return this.pageY = value; }; |
| 3954 $dynamic("get$dartObjectLocalStorage").Touch = function() { return this.dartObje
ctLocalStorage; }; |
| 3955 $dynamic("set$dartObjectLocalStorage").Touch = function(value) { return this.dar
tObjectLocalStorage = value; }; |
| 3956 // ********** Code for TouchEvent ************** |
| 3957 // ********** Code for TouchList ************** |
| 3958 $dynamic("get$length").TouchList = function() { return this.length; }; |
| 3959 $dynamic("set$length").TouchList = function(value) { return this.length = value;
}; |
| 3960 $dynamic("$setindex").TouchList = function(index, value) { |
| 3961 $throw(new UnsupportedOperationException("Cannot assign element of immutable L
ist.")); |
| 3962 } |
| 3963 $dynamic("get$dartObjectLocalStorage").TouchList = function() { return this.dart
ObjectLocalStorage; }; |
| 3964 $dynamic("set$dartObjectLocalStorage").TouchList = function(value) { return this
.dartObjectLocalStorage = value; }; |
| 3965 $dynamic("item$1").TouchList = function($0) { |
| 3966 return this.item($0); |
| 3967 }; |
| 3968 // ********** Code for dom_TrackEvent ************** |
| 3969 // ********** Code for dom_TreeWalker ************** |
| 3970 $dynamic("get$firstChild").TreeWalker = function() { |
| 3971 return this.firstChild.bind(this); |
| 3972 } |
| 3973 $dynamic("get$lastChild").TreeWalker = function() { |
| 3974 return this.lastChild.bind(this); |
| 3975 } |
| 3976 $dynamic("get$parentNode").TreeWalker = function() { |
| 3977 return this.parentNode.bind(this); |
| 3978 } |
| 3979 $dynamic("get$dartObjectLocalStorage").TreeWalker = function() { return this.dar
tObjectLocalStorage; }; |
| 3980 $dynamic("set$dartObjectLocalStorage").TreeWalker = function(value) { return thi
s.dartObjectLocalStorage = value; }; |
| 3981 $dynamic("filter$1").TreeWalker = function($0) { |
| 3982 return this.filter.call$1($0); |
| 3983 }; |
| 3984 // ********** Code for UIEvent ************** |
| 3985 $dynamic("get$pageX").UIEvent = function() { return this.pageX; }; |
| 3986 $dynamic("set$pageX").UIEvent = function(value) { return this.pageX = value; }; |
| 3987 $dynamic("get$pageY").UIEvent = function() { return this.pageY; }; |
| 3988 $dynamic("set$pageY").UIEvent = function(value) { return this.pageY = value; }; |
| 3989 // ********** Code for Uint16Array ************** |
| 3990 $dynamic("is$List").Uint16Array = function(){return true}; |
| 3991 $dynamic("get$length").Uint16Array = function() { return this.length; }; |
| 3992 $dynamic("set$length").Uint16Array = function(value) { return this.length = valu
e; }; |
| 3993 // ********** Code for Uint32Array ************** |
| 3994 $dynamic("is$List").Uint32Array = function(){return true}; |
| 3995 $dynamic("get$length").Uint32Array = function() { return this.length; }; |
| 3996 $dynamic("set$length").Uint32Array = function(value) { return this.length = valu
e; }; |
| 3997 // ********** Code for Uint8Array ************** |
| 3998 $dynamic("is$List").Uint8Array = function(){return true}; |
| 3999 $dynamic("get$length").Uint8Array = function() { return this.length; }; |
| 4000 $dynamic("set$length").Uint8Array = function(value) { return this.length = value
; }; |
| 4001 // ********** Code for ValidityState ************** |
| 4002 $dynamic("get$dartObjectLocalStorage").ValidityState = function() { return this.
dartObjectLocalStorage; }; |
| 4003 $dynamic("set$dartObjectLocalStorage").ValidityState = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 4004 // ********** Code for WaveShaperNode ************** |
| 4005 // ********** Code for WebGLActiveInfo ************** |
| 4006 $dynamic("get$name").WebGLActiveInfo = function() { return this.name; }; |
| 4007 $dynamic("set$name").WebGLActiveInfo = function(value) { return this.name = valu
e; }; |
| 4008 $dynamic("get$dartObjectLocalStorage").WebGLActiveInfo = function() { return thi
s.dartObjectLocalStorage; }; |
| 4009 $dynamic("set$dartObjectLocalStorage").WebGLActiveInfo = function(value) { retur
n this.dartObjectLocalStorage = value; }; |
| 4010 // ********** Code for WebGLBuffer ************** |
| 4011 $dynamic("get$dartObjectLocalStorage").WebGLBuffer = function() { return this.da
rtObjectLocalStorage; }; |
| 4012 $dynamic("set$dartObjectLocalStorage").WebGLBuffer = function(value) { return th
is.dartObjectLocalStorage = value; }; |
| 4013 // ********** Code for dom_WebGLCompressedTextures ************** |
| 4014 $dynamic("get$dartObjectLocalStorage").WebGLCompressedTextures = function() { re
turn this.dartObjectLocalStorage; }; |
| 4015 $dynamic("set$dartObjectLocalStorage").WebGLCompressedTextures = function(value)
{ return this.dartObjectLocalStorage = value; }; |
| 4016 // ********** Code for WebGLContextAttributes ************** |
| 4017 $dynamic("get$dartObjectLocalStorage").WebGLContextAttributes = function() { ret
urn this.dartObjectLocalStorage; }; |
| 4018 $dynamic("set$dartObjectLocalStorage").WebGLContextAttributes = function(value)
{ return this.dartObjectLocalStorage = value; }; |
| 4019 // ********** Code for WebGLContextEvent ************** |
| 4020 // ********** Code for WebGLDebugRendererInfo ************** |
| 4021 $dynamic("get$dartObjectLocalStorage").WebGLDebugRendererInfo = function() { ret
urn this.dartObjectLocalStorage; }; |
| 4022 $dynamic("set$dartObjectLocalStorage").WebGLDebugRendererInfo = function(value)
{ return this.dartObjectLocalStorage = value; }; |
| 4023 // ********** Code for WebGLDebugShaders ************** |
| 4024 $dynamic("get$dartObjectLocalStorage").WebGLDebugShaders = function() { return t
his.dartObjectLocalStorage; }; |
| 4025 $dynamic("set$dartObjectLocalStorage").WebGLDebugShaders = function(value) { ret
urn this.dartObjectLocalStorage = value; }; |
| 4026 // ********** Code for WebGLFramebuffer ************** |
| 4027 $dynamic("get$dartObjectLocalStorage").WebGLFramebuffer = function() { return th
is.dartObjectLocalStorage; }; |
| 4028 $dynamic("set$dartObjectLocalStorage").WebGLFramebuffer = function(value) { retu
rn this.dartObjectLocalStorage = value; }; |
| 4029 // ********** Code for dom_WebGLLoseContext ************** |
| 4030 $dynamic("get$dartObjectLocalStorage").WebGLLoseContext = function() { return th
is.dartObjectLocalStorage; }; |
| 4031 $dynamic("set$dartObjectLocalStorage").WebGLLoseContext = function(value) { retu
rn this.dartObjectLocalStorage = value; }; |
| 4032 // ********** Code for WebGLProgram ************** |
| 4033 $dynamic("get$dartObjectLocalStorage").WebGLProgram = function() { return this.d
artObjectLocalStorage; }; |
| 4034 $dynamic("set$dartObjectLocalStorage").WebGLProgram = function(value) { return t
his.dartObjectLocalStorage = value; }; |
| 4035 // ********** Code for WebGLRenderbuffer ************** |
| 4036 $dynamic("get$dartObjectLocalStorage").WebGLRenderbuffer = function() { return t
his.dartObjectLocalStorage; }; |
| 4037 $dynamic("set$dartObjectLocalStorage").WebGLRenderbuffer = function(value) { ret
urn this.dartObjectLocalStorage = value; }; |
| 4038 // ********** Code for WebGLRenderingContext ************** |
| 4039 $dynamic("get$clear").WebGLRenderingContext = function() { |
| 4040 return this.clear.bind(this); |
| 4041 } |
| 4042 // ********** Code for WebGLShader ************** |
| 4043 $dynamic("get$dartObjectLocalStorage").WebGLShader = function() { return this.da
rtObjectLocalStorage; }; |
| 4044 $dynamic("set$dartObjectLocalStorage").WebGLShader = function(value) { return th
is.dartObjectLocalStorage = value; }; |
| 4045 // ********** Code for WebGLTexture ************** |
| 4046 $dynamic("get$dartObjectLocalStorage").WebGLTexture = function() { return this.d
artObjectLocalStorage; }; |
| 4047 $dynamic("set$dartObjectLocalStorage").WebGLTexture = function(value) { return t
his.dartObjectLocalStorage = value; }; |
| 4048 // ********** Code for WebGLUniformLocation ************** |
| 4049 $dynamic("get$dartObjectLocalStorage").WebGLUniformLocation = function() { retur
n this.dartObjectLocalStorage; }; |
| 4050 $dynamic("set$dartObjectLocalStorage").WebGLUniformLocation = function(value) {
return this.dartObjectLocalStorage = value; }; |
| 4051 // ********** Code for WebGLVertexArrayObjectOES ************** |
| 4052 $dynamic("get$dartObjectLocalStorage").WebGLVertexArrayObjectOES = function() {
return this.dartObjectLocalStorage; }; |
| 4053 $dynamic("set$dartObjectLocalStorage").WebGLVertexArrayObjectOES = function(valu
e) { return this.dartObjectLocalStorage = value; }; |
| 4054 // ********** Code for dom_WebKitAnimation ************** |
| 4055 $dynamic("get$name").WebKitAnimation = function() { return this.name; }; |
| 4056 $dynamic("set$name").WebKitAnimation = function(value) { return this.name = valu
e; }; |
| 4057 $dynamic("get$dartObjectLocalStorage").WebKitAnimation = function() { return thi
s.dartObjectLocalStorage; }; |
| 4058 $dynamic("set$dartObjectLocalStorage").WebKitAnimation = function(value) { retur
n this.dartObjectLocalStorage = value; }; |
| 4059 // ********** Code for dom_WebKitAnimationEvent ************** |
| 4060 // ********** Code for dom_WebKitAnimationList ************** |
| 4061 $dynamic("get$length").WebKitAnimationList = function() { return this.length; }; |
| 4062 $dynamic("set$length").WebKitAnimationList = function(value) { return this.lengt
h = value; }; |
| 4063 $dynamic("get$dartObjectLocalStorage").WebKitAnimationList = function() { return
this.dartObjectLocalStorage; }; |
| 4064 $dynamic("set$dartObjectLocalStorage").WebKitAnimationList = function(value) { r
eturn this.dartObjectLocalStorage = value; }; |
| 4065 $dynamic("item$1").WebKitAnimationList = function($0) { |
| 4066 return this.item($0); |
| 4067 }; |
| 4068 // ********** Code for dom_WebKitBlobBuilder ************** |
| 4069 $dynamic("get$dartObjectLocalStorage").WebKitBlobBuilder = function() { return t
his.dartObjectLocalStorage; }; |
| 4070 $dynamic("set$dartObjectLocalStorage").WebKitBlobBuilder = function(value) { ret
urn this.dartObjectLocalStorage = value; }; |
| 4071 // ********** Code for WebKitCSSFilterValue ************** |
| 4072 // ********** Code for dom_WebKitCSSKeyframeRule ************** |
| 4073 $dynamic("get$style").WebKitCSSKeyframeRule = function() { return this.style; }; |
| 4074 $dynamic("set$style").WebKitCSSKeyframeRule = function(value) { return this.styl
e = value; }; |
| 4075 // ********** Code for dom_WebKitCSSKeyframesRule ************** |
| 4076 $dynamic("get$name").WebKitCSSKeyframesRule = function() { return this.name; }; |
| 4077 $dynamic("set$name").WebKitCSSKeyframesRule = function(value) { return this.name
= value; }; |
| 4078 // ********** Code for dom_WebKitCSSMatrix ************** |
| 4079 $dynamic("get$dartObjectLocalStorage").WebKitCSSMatrix = function() { return thi
s.dartObjectLocalStorage; }; |
| 4080 $dynamic("set$dartObjectLocalStorage").WebKitCSSMatrix = function(value) { retur
n this.dartObjectLocalStorage = value; }; |
| 4081 $dynamic("toString$0").WebKitCSSMatrix = function() { |
| 4082 return this.toString(); |
| 4083 }; |
| 4084 // ********** Code for dom_WebKitCSSTransformValue ************** |
| 4085 // ********** Code for WebKitMutationObserver ************** |
| 4086 $dynamic("get$dartObjectLocalStorage").WebKitMutationObserver = function() { ret
urn this.dartObjectLocalStorage; }; |
| 4087 $dynamic("set$dartObjectLocalStorage").WebKitMutationObserver = function(value)
{ return this.dartObjectLocalStorage = value; }; |
| 4088 // ********** Code for dom_WebKitNamedFlow ************** |
| 4089 $dynamic("get$dartObjectLocalStorage").WebKitNamedFlow = function() { return thi
s.dartObjectLocalStorage; }; |
| 4090 $dynamic("set$dartObjectLocalStorage").WebKitNamedFlow = function(value) { retur
n this.dartObjectLocalStorage = value; }; |
| 4091 // ********** Code for dom_WebKitPoint ************** |
| 4092 $dynamic("get$dartObjectLocalStorage").WebKitPoint = function() { return this.da
rtObjectLocalStorage; }; |
| 4093 $dynamic("set$dartObjectLocalStorage").WebKitPoint = function(value) { return th
is.dartObjectLocalStorage = value; }; |
| 4094 // ********** Code for dom_WebKitTransitionEvent ************** |
| 4095 // ********** Code for WebSocket ************** |
| 4096 $dynamic("get$dartObjectLocalStorage").WebSocket = function() { return this.dart
ObjectLocalStorage; }; |
| 4097 $dynamic("set$dartObjectLocalStorage").WebSocket = function(value) { return this
.dartObjectLocalStorage = value; }; |
| 4098 $dynamic("addEventListener$3").WebSocket = function($0, $1, $2) { |
| 4099 return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 4100 }; |
| 4101 $dynamic("removeEventListener$3").WebSocket = function($0, $1, $2) { |
| 4102 return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 4103 }; |
| 4104 // ********** Code for WheelEvent ************** |
| 4105 // ********** Code for Worker ************** |
| 4106 $dynamic("postMessage$1").Worker = function($0) { |
| 4107 return this.postMessage($0); |
| 4108 }; |
| 4109 $dynamic("postMessage$2").Worker = function($0, $1) { |
| 4110 return this.postMessage($0, $1); |
| 4111 }; |
| 4112 $dynamic("terminate$0").Worker = function() { |
| 4113 return this.terminate(); |
| 4114 }; |
| 4115 // ********** Code for dom_WorkerContext ************** |
| 4116 $dynamic("get$dartObjectLocalStorage").WorkerContext = function() { return this.
dartObjectLocalStorage; }; |
| 4117 $dynamic("set$dartObjectLocalStorage").WorkerContext = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 4118 $dynamic("addEventListener$3").WorkerContext = function($0, $1, $2) { |
| 4119 return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 4120 }; |
| 4121 $dynamic("removeEventListener$3").WorkerContext = function($0, $1, $2) { |
| 4122 return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 4123 }; |
| 4124 $dynamic("setTimeout$2").WorkerContext = function($0, $1) { |
| 4125 return this.setTimeout($wrap_call$0(to$call$0($0)), $1); |
| 4126 }; |
| 4127 // ********** Code for dom_WorkerLocation ************** |
| 4128 $dynamic("get$dartObjectLocalStorage").WorkerLocation = function() { return this
.dartObjectLocalStorage; }; |
| 4129 $dynamic("set$dartObjectLocalStorage").WorkerLocation = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 4130 $dynamic("toString$0").WorkerLocation = function() { |
| 4131 return this.toString(); |
| 4132 }; |
| 4133 // ********** Code for dom_WorkerNavigator ************** |
| 4134 $dynamic("get$dartObjectLocalStorage").WorkerNavigator = function() { return thi
s.dartObjectLocalStorage; }; |
| 4135 $dynamic("set$dartObjectLocalStorage").WorkerNavigator = function(value) { retur
n this.dartObjectLocalStorage = value; }; |
| 4136 // ********** Code for XMLHttpRequest ************** |
| 4137 $dynamic("get$dartObjectLocalStorage").XMLHttpRequest = function() { return this
.dartObjectLocalStorage; }; |
| 4138 $dynamic("set$dartObjectLocalStorage").XMLHttpRequest = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 4139 $dynamic("addEventListener$3").XMLHttpRequest = function($0, $1, $2) { |
| 4140 return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 4141 }; |
| 4142 $dynamic("removeEventListener$3").XMLHttpRequest = function($0, $1, $2) { |
| 4143 return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 4144 }; |
| 4145 // ********** Code for XMLHttpRequestException ************** |
| 4146 $dynamic("get$name").XMLHttpRequestException = function() { return this.name; }; |
| 4147 $dynamic("set$name").XMLHttpRequestException = function(value) { return this.nam
e = value; }; |
| 4148 $dynamic("get$dartObjectLocalStorage").XMLHttpRequestException = function() { re
turn this.dartObjectLocalStorage; }; |
| 4149 $dynamic("set$dartObjectLocalStorage").XMLHttpRequestException = function(value)
{ return this.dartObjectLocalStorage = value; }; |
| 4150 $dynamic("toString$0").XMLHttpRequestException = function() { |
| 4151 return this.toString(); |
| 4152 }; |
| 4153 // ********** Code for XMLHttpRequestProgressEvent ************** |
| 4154 // ********** Code for XMLHttpRequestUpload ************** |
| 4155 $dynamic("get$dartObjectLocalStorage").XMLHttpRequestUpload = function() { retur
n this.dartObjectLocalStorage; }; |
| 4156 $dynamic("set$dartObjectLocalStorage").XMLHttpRequestUpload = function(value) {
return this.dartObjectLocalStorage = value; }; |
| 4157 $dynamic("addEventListener$3").XMLHttpRequestUpload = function($0, $1, $2) { |
| 4158 return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 4159 }; |
| 4160 $dynamic("removeEventListener$3").XMLHttpRequestUpload = function($0, $1, $2) { |
| 4161 return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 4162 }; |
| 4163 // ********** Code for dom_XMLSerializer ************** |
| 4164 $dynamic("get$dartObjectLocalStorage").XMLSerializer = function() { return this.
dartObjectLocalStorage; }; |
| 4165 $dynamic("set$dartObjectLocalStorage").XMLSerializer = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 4166 // ********** Code for dom_XPathEvaluator ************** |
| 4167 $dynamic("get$dartObjectLocalStorage").XPathEvaluator = function() { return this
.dartObjectLocalStorage; }; |
| 4168 $dynamic("set$dartObjectLocalStorage").XPathEvaluator = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 4169 // ********** Code for dom_XPathException ************** |
| 4170 $dynamic("get$name").XPathException = function() { return this.name; }; |
| 4171 $dynamic("set$name").XPathException = function(value) { return this.name = value
; }; |
| 4172 $dynamic("get$dartObjectLocalStorage").XPathException = function() { return this
.dartObjectLocalStorage; }; |
| 4173 $dynamic("set$dartObjectLocalStorage").XPathException = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 4174 $dynamic("toString$0").XPathException = function() { |
| 4175 return this.toString(); |
| 4176 }; |
| 4177 // ********** Code for dom_XPathExpression ************** |
| 4178 $dynamic("get$dartObjectLocalStorage").XPathExpression = function() { return thi
s.dartObjectLocalStorage; }; |
| 4179 $dynamic("set$dartObjectLocalStorage").XPathExpression = function(value) { retur
n this.dartObjectLocalStorage = value; }; |
| 4180 // ********** Code for dom_XPathNSResolver ************** |
| 4181 $dynamic("get$dartObjectLocalStorage").XPathNSResolver = function() { return thi
s.dartObjectLocalStorage; }; |
| 4182 $dynamic("set$dartObjectLocalStorage").XPathNSResolver = function(value) { retur
n this.dartObjectLocalStorage = value; }; |
| 4183 // ********** Code for dom_XPathResult ************** |
| 4184 $dynamic("get$dartObjectLocalStorage").XPathResult = function() { return this.da
rtObjectLocalStorage; }; |
| 4185 $dynamic("set$dartObjectLocalStorage").XPathResult = function(value) { return th
is.dartObjectLocalStorage = value; }; |
| 4186 // ********** Code for dom_XSLTProcessor ************** |
| 4187 $dynamic("get$dartObjectLocalStorage").XSLTProcessor = function() { return this.
dartObjectLocalStorage; }; |
| 4188 $dynamic("set$dartObjectLocalStorage").XSLTProcessor = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 4189 // ********** Code for dom__Collections ************** |
| 4190 function dom__Collections() {} |
| 4191 // ********** Code for _VariableSizeListIterator_T ************** |
| 4192 $inherits(_VariableSizeListIterator_T, dom__VariableSizeListIterator); |
| 4193 function _VariableSizeListIterator_T() {} |
| 4194 // ********** Code for dom__FixedSizeListIterator ************** |
| 4195 $inherits(dom__FixedSizeListIterator, _VariableSizeListIterator_T); |
| 4196 function dom__FixedSizeListIterator() {} |
| 4197 dom__FixedSizeListIterator.prototype.hasNext = function() { |
| 4198 return this._dom_length > this._dom_pos; |
| 4199 } |
| 4200 dom__FixedSizeListIterator.prototype.hasNext$0 = dom__FixedSizeListIterator.prot
otype.hasNext; |
| 4201 // ********** Code for dom__VariableSizeListIterator ************** |
| 4202 function dom__VariableSizeListIterator() {} |
| 4203 dom__VariableSizeListIterator.prototype.hasNext = function() { |
| 4204 return this._dom_array.get$length() > this._dom_pos; |
| 4205 } |
| 4206 dom__VariableSizeListIterator.prototype.next = function() { |
| 4207 if (!this.hasNext()) { |
| 4208 $throw(const$0000); |
| 4209 } |
| 4210 return this._dom_array.$index(this._dom_pos++); |
| 4211 } |
| 4212 dom__VariableSizeListIterator.prototype.hasNext$0 = dom__VariableSizeListIterato
r.prototype.hasNext; |
| 4213 dom__VariableSizeListIterator.prototype.next$0 = dom__VariableSizeListIterator.p
rototype.next; |
| 4214 // ********** Code for _Lists ************** |
| 4215 function _Lists() {} |
| 4216 // ********** Code for top level ************** |
| 4217 function get$window() { |
| 4218 return window; |
| 4219 } |
| 4220 function get$document() { |
| 4221 return window.document; |
| 4222 } |
| 4223 // ********** Library htmlimpl ************** |
| 4224 // ********** Code for DOMWrapperBase ************** |
| 4225 function DOMWrapperBase() {} |
| 4226 DOMWrapperBase._wrap$ctor = function(_ptr) { |
| 4227 this._ptr = _ptr; |
| 4228 this._ptr.set$dartObjectLocalStorage(this); |
| 4229 } |
| 4230 DOMWrapperBase._wrap$ctor.prototype = DOMWrapperBase.prototype; |
| 4231 DOMWrapperBase.prototype.get$_ptr = function() { return this._ptr; }; |
| 4232 // ********** Code for EventTargetWrappingImplementation ************** |
| 4233 $inherits(EventTargetWrappingImplementation, DOMWrapperBase); |
| 4234 function EventTargetWrappingImplementation() {} |
| 4235 EventTargetWrappingImplementation._wrap$ctor = function(ptr) { |
| 4236 DOMWrapperBase._wrap$ctor.call(this, ptr); |
| 4237 } |
| 4238 EventTargetWrappingImplementation._wrap$ctor.prototype = EventTargetWrappingImpl
ementation.prototype; |
| 4239 // ********** Code for NodeWrappingImplementation ************** |
| 4240 $inherits(NodeWrappingImplementation, EventTargetWrappingImplementation); |
| 4241 function NodeWrappingImplementation() {} |
| 4242 NodeWrappingImplementation._wrap$ctor = function(ptr) { |
| 4243 EventTargetWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4244 } |
| 4245 NodeWrappingImplementation._wrap$ctor.prototype = NodeWrappingImplementation.pro
totype; |
| 4246 NodeWrappingImplementation.prototype.get$nodes = function() { |
| 4247 if (this._nodes == null) { |
| 4248 this._nodes = new _ChildrenNodeList._wrap$ctor(this._ptr); |
| 4249 } |
| 4250 return this._nodes; |
| 4251 } |
| 4252 NodeWrappingImplementation.prototype.get$document = function() { |
| 4253 return LevelDom.wrapDocument(this._ptr.get$ownerDocument()); |
| 4254 } |
| 4255 NodeWrappingImplementation.prototype.replaceWith = function(otherNode) { |
| 4256 try { |
| 4257 this._ptr.get$parentNode().replaceChild$2(LevelDom.unwrap(otherNode), this._
ptr); |
| 4258 } catch (e) { |
| 4259 e = _toDartException(e); |
| 4260 } |
| 4261 return this; |
| 4262 } |
| 4263 NodeWrappingImplementation.prototype.remove = function() { |
| 4264 if (this._ptr.get$parentNode() != null) { |
| 4265 this._ptr.get$parentNode().removeChild$1(this._ptr); |
| 4266 } |
| 4267 return this; |
| 4268 } |
| 4269 NodeWrappingImplementation.prototype.remove$0 = NodeWrappingImplementation.proto
type.remove; |
| 4270 // ********** Code for ElementWrappingImplementation ************** |
| 4271 $inherits(ElementWrappingImplementation, NodeWrappingImplementation); |
| 4272 function ElementWrappingImplementation() {} |
| 4273 ElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4274 NodeWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4275 } |
| 4276 ElementWrappingImplementation._wrap$ctor.prototype = ElementWrappingImplementati
on.prototype; |
| 4277 ElementWrappingImplementation.prototype.is$html_html_Element = function(){return
true}; |
| 4278 ElementWrappingImplementation.ElementWrappingImplementation$tag$factory = functi
on(tag) { |
| 4279 return LevelDom.wrapElement(get$document().createElement(tag)); |
| 4280 } |
| 4281 ElementWrappingImplementation.prototype.get$attributes = function() { |
| 4282 if (this._elementAttributeMap == null) { |
| 4283 this._elementAttributeMap = new ElementAttributeMap._wrap$ctor(this._ptr); |
| 4284 } |
| 4285 return this._elementAttributeMap; |
| 4286 } |
| 4287 ElementWrappingImplementation.prototype.get$elements = function() { |
| 4288 if (this._elements == null) { |
| 4289 this._elements = new _ChildrenElementList._wrap$ctor(this._ptr); |
| 4290 } |
| 4291 return this._elements; |
| 4292 } |
| 4293 ElementWrappingImplementation.prototype.get$firstElementChild = function() { |
| 4294 return LevelDom.wrapElement(this._ptr.get$firstElementChild()); |
| 4295 } |
| 4296 ElementWrappingImplementation.prototype.get$id = function() { |
| 4297 return this._ptr.get$id(); |
| 4298 } |
| 4299 ElementWrappingImplementation.prototype.set$id = function(value) { |
| 4300 this._ptr.set$id(value); |
| 4301 } |
| 4302 ElementWrappingImplementation.prototype.set$innerHTML = function(value) { |
| 4303 this._ptr.set$innerHTML(value); |
| 4304 } |
| 4305 ElementWrappingImplementation.prototype.get$lastElementChild = function() { |
| 4306 return LevelDom.wrapElement(this._ptr.get$lastElementChild()); |
| 4307 } |
| 4308 ElementWrappingImplementation.prototype.get$style = function() { |
| 4309 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 4310 } |
| 4311 ElementWrappingImplementation.prototype.query = function(selectors) { |
| 4312 return LevelDom.wrapElement(this._ptr.querySelector$1(selectors)); |
| 4313 } |
| 4314 ElementWrappingImplementation.prototype.queryAll = function(selectors) { |
| 4315 return new FrozenElementList._wrap$ctor(this._ptr.querySelectorAll$1(selectors
)); |
| 4316 } |
| 4317 ElementWrappingImplementation.prototype.get$rect = function() { |
| 4318 var $this = this; // closure support |
| 4319 return _createMeasurementFuture((function () { |
| 4320 return new ElementRectWrappingImplementation($this._ptr); |
| 4321 }) |
| 4322 , new CompleterImpl()); |
| 4323 } |
| 4324 ElementWrappingImplementation.prototype.get$on = function() { |
| 4325 if (this._on == null) { |
| 4326 this._on = new ElementEventsImplementation._wrap$ctor(this._ptr); |
| 4327 } |
| 4328 return this._on; |
| 4329 } |
| 4330 // ********** Code for AnchorElementWrappingImplementation ************** |
| 4331 $inherits(AnchorElementWrappingImplementation, ElementWrappingImplementation); |
| 4332 function AnchorElementWrappingImplementation() {} |
| 4333 AnchorElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4334 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4335 } |
| 4336 AnchorElementWrappingImplementation._wrap$ctor.prototype = AnchorElementWrapping
Implementation.prototype; |
| 4337 AnchorElementWrappingImplementation.prototype.is$html_html_Element = function(){
return true}; |
| 4338 AnchorElementWrappingImplementation.prototype.get$name = function() { |
| 4339 return this._ptr.get$name(); |
| 4340 } |
| 4341 AnchorElementWrappingImplementation.prototype.toString = function() { |
| 4342 return this._ptr.toString$0(); |
| 4343 } |
| 4344 AnchorElementWrappingImplementation.prototype.toString$0 = AnchorElementWrapping
Implementation.prototype.toString; |
| 4345 // ********** Code for AreaElementWrappingImplementation ************** |
| 4346 $inherits(AreaElementWrappingImplementation, ElementWrappingImplementation); |
| 4347 function AreaElementWrappingImplementation() {} |
| 4348 AreaElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4349 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4350 } |
| 4351 AreaElementWrappingImplementation._wrap$ctor.prototype = AreaElementWrappingImpl
ementation.prototype; |
| 4352 AreaElementWrappingImplementation.prototype.is$html_html_Element = function(){re
turn true}; |
| 4353 // ********** Code for MediaElementWrappingImplementation ************** |
| 4354 $inherits(MediaElementWrappingImplementation, ElementWrappingImplementation); |
| 4355 function MediaElementWrappingImplementation() {} |
| 4356 MediaElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4357 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4358 } |
| 4359 MediaElementWrappingImplementation._wrap$ctor.prototype = MediaElementWrappingIm
plementation.prototype; |
| 4360 MediaElementWrappingImplementation.prototype.is$html_html_Element = function(){r
eturn true}; |
| 4361 // ********** Code for AudioElementWrappingImplementation ************** |
| 4362 $inherits(AudioElementWrappingImplementation, MediaElementWrappingImplementation
); |
| 4363 function AudioElementWrappingImplementation() {} |
| 4364 AudioElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4365 MediaElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4366 } |
| 4367 AudioElementWrappingImplementation._wrap$ctor.prototype = AudioElementWrappingIm
plementation.prototype; |
| 4368 AudioElementWrappingImplementation.prototype.is$html_html_Element = function(){r
eturn true}; |
| 4369 // ********** Code for EventWrappingImplementation ************** |
| 4370 $inherits(EventWrappingImplementation, DOMWrapperBase); |
| 4371 function EventWrappingImplementation() {} |
| 4372 EventWrappingImplementation._wrap$ctor = function(ptr) { |
| 4373 DOMWrapperBase._wrap$ctor.call(this, ptr); |
| 4374 } |
| 4375 EventWrappingImplementation._wrap$ctor.prototype = EventWrappingImplementation.p
rototype; |
| 4376 EventWrappingImplementation.prototype.preventDefault = function() { |
| 4377 this._ptr.preventDefault$0(); |
| 4378 return; |
| 4379 } |
| 4380 EventWrappingImplementation.prototype.preventDefault$0 = EventWrappingImplementa
tion.prototype.preventDefault; |
| 4381 // ********** Code for AudioProcessingEventWrappingImplementation ************** |
| 4382 $inherits(AudioProcessingEventWrappingImplementation, EventWrappingImplementatio
n); |
| 4383 function AudioProcessingEventWrappingImplementation() {} |
| 4384 AudioProcessingEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 4385 EventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4386 } |
| 4387 AudioProcessingEventWrappingImplementation._wrap$ctor.prototype = AudioProcessin
gEventWrappingImplementation.prototype; |
| 4388 // ********** Code for BRElementWrappingImplementation ************** |
| 4389 $inherits(BRElementWrappingImplementation, ElementWrappingImplementation); |
| 4390 function BRElementWrappingImplementation() {} |
| 4391 BRElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4392 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4393 } |
| 4394 BRElementWrappingImplementation._wrap$ctor.prototype = BRElementWrappingImplemen
tation.prototype; |
| 4395 BRElementWrappingImplementation.prototype.is$html_html_Element = function(){retu
rn true}; |
| 4396 BRElementWrappingImplementation.prototype.get$clear = function() { |
| 4397 return this._ptr.get$clear(); |
| 4398 } |
| 4399 BRElementWrappingImplementation.prototype.clear$0 = function() { |
| 4400 return this.get$clear().call$0(); |
| 4401 }; |
| 4402 // ********** Code for BaseElementWrappingImplementation ************** |
| 4403 $inherits(BaseElementWrappingImplementation, ElementWrappingImplementation); |
| 4404 function BaseElementWrappingImplementation() {} |
| 4405 BaseElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4406 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4407 } |
| 4408 BaseElementWrappingImplementation._wrap$ctor.prototype = BaseElementWrappingImpl
ementation.prototype; |
| 4409 BaseElementWrappingImplementation.prototype.is$html_html_Element = function(){re
turn true}; |
| 4410 // ********** Code for ButtonElementWrappingImplementation ************** |
| 4411 $inherits(ButtonElementWrappingImplementation, ElementWrappingImplementation); |
| 4412 function ButtonElementWrappingImplementation() {} |
| 4413 ButtonElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4414 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4415 } |
| 4416 ButtonElementWrappingImplementation._wrap$ctor.prototype = ButtonElementWrapping
Implementation.prototype; |
| 4417 ButtonElementWrappingImplementation.prototype.is$html_html_Element = function(){
return true}; |
| 4418 ButtonElementWrappingImplementation.prototype.get$name = function() { |
| 4419 return this._ptr.get$name(); |
| 4420 } |
| 4421 ButtonElementWrappingImplementation.prototype.get$value = function() { |
| 4422 return this._ptr.get$value(); |
| 4423 } |
| 4424 ButtonElementWrappingImplementation.prototype.set$value = function(value) { |
| 4425 this._ptr.set$value(value); |
| 4426 } |
| 4427 ButtonElementWrappingImplementation.prototype.click = function() { |
| 4428 this._ptr.click$0(); |
| 4429 return; |
| 4430 } |
| 4431 ButtonElementWrappingImplementation.prototype.get$click = function() { |
| 4432 return this.click.bind(this); |
| 4433 } |
| 4434 ButtonElementWrappingImplementation.prototype.click$0 = ButtonElementWrappingImp
lementation.prototype.click; |
| 4435 // ********** Code for CharacterDataWrappingImplementation ************** |
| 4436 $inherits(CharacterDataWrappingImplementation, NodeWrappingImplementation); |
| 4437 function CharacterDataWrappingImplementation() {} |
| 4438 CharacterDataWrappingImplementation._wrap$ctor = function(ptr) { |
| 4439 NodeWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4440 } |
| 4441 CharacterDataWrappingImplementation._wrap$ctor.prototype = CharacterDataWrapping
Implementation.prototype; |
| 4442 CharacterDataWrappingImplementation.prototype.get$length = function() { |
| 4443 return this._ptr.get$length(); |
| 4444 } |
| 4445 // ********** Code for TextWrappingImplementation ************** |
| 4446 $inherits(TextWrappingImplementation, CharacterDataWrappingImplementation); |
| 4447 function TextWrappingImplementation() {} |
| 4448 TextWrappingImplementation._wrap$ctor = function(ptr) { |
| 4449 CharacterDataWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4450 } |
| 4451 TextWrappingImplementation._wrap$ctor.prototype = TextWrappingImplementation.pro
totype; |
| 4452 // ********** Code for CDATASectionWrappingImplementation ************** |
| 4453 $inherits(CDATASectionWrappingImplementation, TextWrappingImplementation); |
| 4454 function CDATASectionWrappingImplementation() {} |
| 4455 CDATASectionWrappingImplementation._wrap$ctor = function(ptr) { |
| 4456 TextWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4457 } |
| 4458 CDATASectionWrappingImplementation._wrap$ctor.prototype = CDATASectionWrappingIm
plementation.prototype; |
| 4459 // ********** Code for CanvasElementWrappingImplementation ************** |
| 4460 $inherits(CanvasElementWrappingImplementation, ElementWrappingImplementation); |
| 4461 function CanvasElementWrappingImplementation() {} |
| 4462 CanvasElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4463 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4464 } |
| 4465 CanvasElementWrappingImplementation._wrap$ctor.prototype = CanvasElementWrapping
Implementation.prototype; |
| 4466 CanvasElementWrappingImplementation.prototype.is$html_html_Element = function(){
return true}; |
| 4467 // ********** Code for CommentWrappingImplementation ************** |
| 4468 $inherits(CommentWrappingImplementation, CharacterDataWrappingImplementation); |
| 4469 function CommentWrappingImplementation() {} |
| 4470 CommentWrappingImplementation._wrap$ctor = function(ptr) { |
| 4471 CharacterDataWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4472 } |
| 4473 CommentWrappingImplementation._wrap$ctor.prototype = CommentWrappingImplementati
on.prototype; |
| 4474 // ********** Code for DListElementWrappingImplementation ************** |
| 4475 $inherits(DListElementWrappingImplementation, ElementWrappingImplementation); |
| 4476 function DListElementWrappingImplementation() {} |
| 4477 DListElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4478 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4479 } |
| 4480 DListElementWrappingImplementation._wrap$ctor.prototype = DListElementWrappingIm
plementation.prototype; |
| 4481 DListElementWrappingImplementation.prototype.is$html_html_Element = function(){r
eturn true}; |
| 4482 // ********** Code for DataListElementWrappingImplementation ************** |
| 4483 $inherits(DataListElementWrappingImplementation, ElementWrappingImplementation); |
| 4484 function DataListElementWrappingImplementation() {} |
| 4485 DataListElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4486 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4487 } |
| 4488 DataListElementWrappingImplementation._wrap$ctor.prototype = DataListElementWrap
pingImplementation.prototype; |
| 4489 DataListElementWrappingImplementation.prototype.is$html_html_Element = function(
){return true}; |
| 4490 // ********** Code for DetailsElementWrappingImplementation ************** |
| 4491 $inherits(DetailsElementWrappingImplementation, ElementWrappingImplementation); |
| 4492 function DetailsElementWrappingImplementation() {} |
| 4493 DetailsElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4494 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4495 } |
| 4496 DetailsElementWrappingImplementation._wrap$ctor.prototype = DetailsElementWrappi
ngImplementation.prototype; |
| 4497 DetailsElementWrappingImplementation.prototype.is$html_html_Element = function()
{return true}; |
| 4498 // ********** Code for DivElementWrappingImplementation ************** |
| 4499 $inherits(DivElementWrappingImplementation, ElementWrappingImplementation); |
| 4500 function DivElementWrappingImplementation() {} |
| 4501 DivElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4502 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4503 } |
| 4504 DivElementWrappingImplementation._wrap$ctor.prototype = DivElementWrappingImplem
entation.prototype; |
| 4505 DivElementWrappingImplementation.prototype.is$html_html_Element = function(){ret
urn true}; |
| 4506 // ********** Code for EmbedElementWrappingImplementation ************** |
| 4507 $inherits(EmbedElementWrappingImplementation, ElementWrappingImplementation); |
| 4508 function EmbedElementWrappingImplementation() {} |
| 4509 EmbedElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4510 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4511 } |
| 4512 EmbedElementWrappingImplementation._wrap$ctor.prototype = EmbedElementWrappingIm
plementation.prototype; |
| 4513 EmbedElementWrappingImplementation.prototype.is$html_html_Element = function(){r
eturn true}; |
| 4514 EmbedElementWrappingImplementation.prototype.get$name = function() { |
| 4515 return this._ptr.get$name(); |
| 4516 } |
| 4517 // ********** Code for EntityReferenceWrappingImplementation ************** |
| 4518 $inherits(EntityReferenceWrappingImplementation, NodeWrappingImplementation); |
| 4519 function EntityReferenceWrappingImplementation() {} |
| 4520 EntityReferenceWrappingImplementation._wrap$ctor = function(ptr) { |
| 4521 NodeWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4522 } |
| 4523 EntityReferenceWrappingImplementation._wrap$ctor.prototype = EntityReferenceWrap
pingImplementation.prototype; |
| 4524 // ********** Code for EntityWrappingImplementation ************** |
| 4525 $inherits(EntityWrappingImplementation, NodeWrappingImplementation); |
| 4526 function EntityWrappingImplementation() {} |
| 4527 EntityWrappingImplementation._wrap$ctor = function(ptr) { |
| 4528 NodeWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4529 } |
| 4530 EntityWrappingImplementation._wrap$ctor.prototype = EntityWrappingImplementation
.prototype; |
| 4531 // ********** Code for FieldSetElementWrappingImplementation ************** |
| 4532 $inherits(FieldSetElementWrappingImplementation, ElementWrappingImplementation); |
| 4533 function FieldSetElementWrappingImplementation() {} |
| 4534 FieldSetElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4535 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4536 } |
| 4537 FieldSetElementWrappingImplementation._wrap$ctor.prototype = FieldSetElementWrap
pingImplementation.prototype; |
| 4538 FieldSetElementWrappingImplementation.prototype.is$html_html_Element = function(
){return true}; |
| 4539 // ********** Code for FontElementWrappingImplementation ************** |
| 4540 $inherits(FontElementWrappingImplementation, ElementWrappingImplementation); |
| 4541 function FontElementWrappingImplementation() {} |
| 4542 FontElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4543 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4544 } |
| 4545 FontElementWrappingImplementation._wrap$ctor.prototype = FontElementWrappingImpl
ementation.prototype; |
| 4546 FontElementWrappingImplementation.prototype.is$html_html_Element = function(){re
turn true}; |
| 4547 // ********** Code for FormElementWrappingImplementation ************** |
| 4548 $inherits(FormElementWrappingImplementation, ElementWrappingImplementation); |
| 4549 function FormElementWrappingImplementation() {} |
| 4550 FormElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4551 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4552 } |
| 4553 FormElementWrappingImplementation._wrap$ctor.prototype = FormElementWrappingImpl
ementation.prototype; |
| 4554 FormElementWrappingImplementation.prototype.is$html_html_Element = function(){re
turn true}; |
| 4555 FormElementWrappingImplementation.prototype.get$length = function() { |
| 4556 return this._ptr.get$length(); |
| 4557 } |
| 4558 FormElementWrappingImplementation.prototype.get$name = function() { |
| 4559 return this._ptr.get$name(); |
| 4560 } |
| 4561 // ********** Code for HRElementWrappingImplementation ************** |
| 4562 $inherits(HRElementWrappingImplementation, ElementWrappingImplementation); |
| 4563 function HRElementWrappingImplementation() {} |
| 4564 HRElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4565 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4566 } |
| 4567 HRElementWrappingImplementation._wrap$ctor.prototype = HRElementWrappingImplemen
tation.prototype; |
| 4568 HRElementWrappingImplementation.prototype.is$html_html_Element = function(){retu
rn true}; |
| 4569 // ********** Code for HeadElementWrappingImplementation ************** |
| 4570 $inherits(HeadElementWrappingImplementation, ElementWrappingImplementation); |
| 4571 function HeadElementWrappingImplementation() {} |
| 4572 HeadElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4573 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4574 } |
| 4575 HeadElementWrappingImplementation._wrap$ctor.prototype = HeadElementWrappingImpl
ementation.prototype; |
| 4576 HeadElementWrappingImplementation.prototype.is$html_html_Element = function(){re
turn true}; |
| 4577 // ********** Code for HeadingElementWrappingImplementation ************** |
| 4578 $inherits(HeadingElementWrappingImplementation, ElementWrappingImplementation); |
| 4579 function HeadingElementWrappingImplementation() {} |
| 4580 HeadingElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4581 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4582 } |
| 4583 HeadingElementWrappingImplementation._wrap$ctor.prototype = HeadingElementWrappi
ngImplementation.prototype; |
| 4584 HeadingElementWrappingImplementation.prototype.is$html_html_Element = function()
{return true}; |
| 4585 // ********** Code for IDBVersionChangeEventWrappingImplementation *************
* |
| 4586 $inherits(IDBVersionChangeEventWrappingImplementation, EventWrappingImplementati
on); |
| 4587 function IDBVersionChangeEventWrappingImplementation() {} |
| 4588 IDBVersionChangeEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 4589 EventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4590 } |
| 4591 IDBVersionChangeEventWrappingImplementation._wrap$ctor.prototype = IDBVersionCha
ngeEventWrappingImplementation.prototype; |
| 4592 // ********** Code for IFrameElementWrappingImplementation ************** |
| 4593 $inherits(IFrameElementWrappingImplementation, ElementWrappingImplementation); |
| 4594 function IFrameElementWrappingImplementation() {} |
| 4595 IFrameElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4596 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4597 } |
| 4598 IFrameElementWrappingImplementation._wrap$ctor.prototype = IFrameElementWrapping
Implementation.prototype; |
| 4599 IFrameElementWrappingImplementation.prototype.is$html_html_Element = function(){
return true}; |
| 4600 IFrameElementWrappingImplementation.prototype.get$name = function() { |
| 4601 return this._ptr.get$name(); |
| 4602 } |
| 4603 // ********** Code for ImageElementWrappingImplementation ************** |
| 4604 $inherits(ImageElementWrappingImplementation, ElementWrappingImplementation); |
| 4605 function ImageElementWrappingImplementation() {} |
| 4606 ImageElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4607 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4608 } |
| 4609 ImageElementWrappingImplementation._wrap$ctor.prototype = ImageElementWrappingIm
plementation.prototype; |
| 4610 ImageElementWrappingImplementation.prototype.is$html_html_Element = function(){r
eturn true}; |
| 4611 ImageElementWrappingImplementation.prototype.get$complete = function() { |
| 4612 return this._ptr.get$complete(); |
| 4613 } |
| 4614 ImageElementWrappingImplementation.prototype.get$name = function() { |
| 4615 return this._ptr.get$name(); |
| 4616 } |
| 4617 ImageElementWrappingImplementation.prototype.complete$1 = function($0) { |
| 4618 return this.get$complete().call$1($0); |
| 4619 }; |
| 4620 // ********** Code for InputElementWrappingImplementation ************** |
| 4621 $inherits(InputElementWrappingImplementation, ElementWrappingImplementation); |
| 4622 function InputElementWrappingImplementation() {} |
| 4623 InputElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4624 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4625 } |
| 4626 InputElementWrappingImplementation._wrap$ctor.prototype = InputElementWrappingIm
plementation.prototype; |
| 4627 InputElementWrappingImplementation.prototype.is$html_html_Element = function(){r
eturn true}; |
| 4628 InputElementWrappingImplementation.prototype.get$name = function() { |
| 4629 return this._ptr.get$name(); |
| 4630 } |
| 4631 InputElementWrappingImplementation.prototype.get$value = function() { |
| 4632 return this._ptr.get$value(); |
| 4633 } |
| 4634 InputElementWrappingImplementation.prototype.set$value = function(value) { |
| 4635 this._ptr.set$value(value); |
| 4636 } |
| 4637 InputElementWrappingImplementation.prototype.click = function() { |
| 4638 this._ptr.click$0(); |
| 4639 return; |
| 4640 } |
| 4641 InputElementWrappingImplementation.prototype.get$click = function() { |
| 4642 return this.click.bind(this); |
| 4643 } |
| 4644 InputElementWrappingImplementation.prototype.click$0 = InputElementWrappingImple
mentation.prototype.click; |
| 4645 // ********** Code for KeygenElementWrappingImplementation ************** |
| 4646 $inherits(KeygenElementWrappingImplementation, ElementWrappingImplementation); |
| 4647 function KeygenElementWrappingImplementation() {} |
| 4648 KeygenElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4649 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4650 } |
| 4651 KeygenElementWrappingImplementation._wrap$ctor.prototype = KeygenElementWrapping
Implementation.prototype; |
| 4652 KeygenElementWrappingImplementation.prototype.is$html_html_Element = function(){
return true}; |
| 4653 KeygenElementWrappingImplementation.prototype.get$name = function() { |
| 4654 return this._ptr.get$name(); |
| 4655 } |
| 4656 // ********** Code for LIElementWrappingImplementation ************** |
| 4657 $inherits(LIElementWrappingImplementation, ElementWrappingImplementation); |
| 4658 function LIElementWrappingImplementation() {} |
| 4659 LIElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4660 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4661 } |
| 4662 LIElementWrappingImplementation._wrap$ctor.prototype = LIElementWrappingImplemen
tation.prototype; |
| 4663 LIElementWrappingImplementation.prototype.is$html_html_Element = function(){retu
rn true}; |
| 4664 LIElementWrappingImplementation.prototype.get$value = function() { |
| 4665 return this._ptr.get$value(); |
| 4666 } |
| 4667 LIElementWrappingImplementation.prototype.set$value = function(value) { |
| 4668 this._ptr.set$value(value); |
| 4669 } |
| 4670 // ********** Code for LabelElementWrappingImplementation ************** |
| 4671 $inherits(LabelElementWrappingImplementation, ElementWrappingImplementation); |
| 4672 function LabelElementWrappingImplementation() {} |
| 4673 LabelElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4674 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4675 } |
| 4676 LabelElementWrappingImplementation._wrap$ctor.prototype = LabelElementWrappingIm
plementation.prototype; |
| 4677 LabelElementWrappingImplementation.prototype.is$html_html_Element = function(){r
eturn true}; |
| 4678 // ********** Code for LegendElementWrappingImplementation ************** |
| 4679 $inherits(LegendElementWrappingImplementation, ElementWrappingImplementation); |
| 4680 function LegendElementWrappingImplementation() {} |
| 4681 LegendElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4682 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4683 } |
| 4684 LegendElementWrappingImplementation._wrap$ctor.prototype = LegendElementWrapping
Implementation.prototype; |
| 4685 LegendElementWrappingImplementation.prototype.is$html_html_Element = function(){
return true}; |
| 4686 // ********** Code for LinkElementWrappingImplementation ************** |
| 4687 $inherits(LinkElementWrappingImplementation, ElementWrappingImplementation); |
| 4688 function LinkElementWrappingImplementation() {} |
| 4689 LinkElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4690 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4691 } |
| 4692 LinkElementWrappingImplementation._wrap$ctor.prototype = LinkElementWrappingImpl
ementation.prototype; |
| 4693 LinkElementWrappingImplementation.prototype.is$html_html_Element = function(){re
turn true}; |
| 4694 // ********** Code for MapElementWrappingImplementation ************** |
| 4695 $inherits(MapElementWrappingImplementation, ElementWrappingImplementation); |
| 4696 function MapElementWrappingImplementation() {} |
| 4697 MapElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4698 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4699 } |
| 4700 MapElementWrappingImplementation._wrap$ctor.prototype = MapElementWrappingImplem
entation.prototype; |
| 4701 MapElementWrappingImplementation.prototype.is$html_html_Element = function(){ret
urn true}; |
| 4702 MapElementWrappingImplementation.prototype.get$name = function() { |
| 4703 return this._ptr.get$name(); |
| 4704 } |
| 4705 // ********** Code for MarqueeElementWrappingImplementation ************** |
| 4706 $inherits(MarqueeElementWrappingImplementation, ElementWrappingImplementation); |
| 4707 function MarqueeElementWrappingImplementation() {} |
| 4708 MarqueeElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4709 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4710 } |
| 4711 MarqueeElementWrappingImplementation._wrap$ctor.prototype = MarqueeElementWrappi
ngImplementation.prototype; |
| 4712 MarqueeElementWrappingImplementation.prototype.is$html_html_Element = function()
{return true}; |
| 4713 // ********** Code for MenuElementWrappingImplementation ************** |
| 4714 $inherits(MenuElementWrappingImplementation, ElementWrappingImplementation); |
| 4715 function MenuElementWrappingImplementation() {} |
| 4716 MenuElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4717 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4718 } |
| 4719 MenuElementWrappingImplementation._wrap$ctor.prototype = MenuElementWrappingImpl
ementation.prototype; |
| 4720 MenuElementWrappingImplementation.prototype.is$html_html_Element = function(){re
turn true}; |
| 4721 // ********** Code for MetaElementWrappingImplementation ************** |
| 4722 $inherits(MetaElementWrappingImplementation, ElementWrappingImplementation); |
| 4723 function MetaElementWrappingImplementation() {} |
| 4724 MetaElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4725 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4726 } |
| 4727 MetaElementWrappingImplementation._wrap$ctor.prototype = MetaElementWrappingImpl
ementation.prototype; |
| 4728 MetaElementWrappingImplementation.prototype.is$html_html_Element = function(){re
turn true}; |
| 4729 MetaElementWrappingImplementation.prototype.get$name = function() { |
| 4730 return this._ptr.get$name(); |
| 4731 } |
| 4732 // ********** Code for MeterElementWrappingImplementation ************** |
| 4733 $inherits(MeterElementWrappingImplementation, ElementWrappingImplementation); |
| 4734 function MeterElementWrappingImplementation() {} |
| 4735 MeterElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4736 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4737 } |
| 4738 MeterElementWrappingImplementation._wrap$ctor.prototype = MeterElementWrappingIm
plementation.prototype; |
| 4739 MeterElementWrappingImplementation.prototype.is$html_html_Element = function(){r
eturn true}; |
| 4740 MeterElementWrappingImplementation.prototype.get$value = function() { |
| 4741 return this._ptr.get$value(); |
| 4742 } |
| 4743 MeterElementWrappingImplementation.prototype.set$value = function(value) { |
| 4744 this._ptr.set$value(value); |
| 4745 } |
| 4746 // ********** Code for ModElementWrappingImplementation ************** |
| 4747 $inherits(ModElementWrappingImplementation, ElementWrappingImplementation); |
| 4748 function ModElementWrappingImplementation() {} |
| 4749 ModElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4750 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4751 } |
| 4752 ModElementWrappingImplementation._wrap$ctor.prototype = ModElementWrappingImplem
entation.prototype; |
| 4753 ModElementWrappingImplementation.prototype.is$html_html_Element = function(){ret
urn true}; |
| 4754 // ********** Code for NotationWrappingImplementation ************** |
| 4755 $inherits(NotationWrappingImplementation, NodeWrappingImplementation); |
| 4756 function NotationWrappingImplementation() {} |
| 4757 NotationWrappingImplementation._wrap$ctor = function(ptr) { |
| 4758 NodeWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4759 } |
| 4760 NotationWrappingImplementation._wrap$ctor.prototype = NotationWrappingImplementa
tion.prototype; |
| 4761 // ********** Code for OListElementWrappingImplementation ************** |
| 4762 $inherits(OListElementWrappingImplementation, ElementWrappingImplementation); |
| 4763 function OListElementWrappingImplementation() {} |
| 4764 OListElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4765 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4766 } |
| 4767 OListElementWrappingImplementation._wrap$ctor.prototype = OListElementWrappingIm
plementation.prototype; |
| 4768 OListElementWrappingImplementation.prototype.is$html_html_Element = function(){r
eturn true}; |
| 4769 // ********** Code for OfflineAudioCompletionEventWrappingImplementation *******
******* |
| 4770 $inherits(OfflineAudioCompletionEventWrappingImplementation, EventWrappingImplem
entation); |
| 4771 function OfflineAudioCompletionEventWrappingImplementation() {} |
| 4772 OfflineAudioCompletionEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 4773 EventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4774 } |
| 4775 OfflineAudioCompletionEventWrappingImplementation._wrap$ctor.prototype = Offline
AudioCompletionEventWrappingImplementation.prototype; |
| 4776 // ********** Code for OptGroupElementWrappingImplementation ************** |
| 4777 $inherits(OptGroupElementWrappingImplementation, ElementWrappingImplementation); |
| 4778 function OptGroupElementWrappingImplementation() {} |
| 4779 OptGroupElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4780 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4781 } |
| 4782 OptGroupElementWrappingImplementation._wrap$ctor.prototype = OptGroupElementWrap
pingImplementation.prototype; |
| 4783 OptGroupElementWrappingImplementation.prototype.is$html_html_Element = function(
){return true}; |
| 4784 // ********** Code for OptionElementWrappingImplementation ************** |
| 4785 $inherits(OptionElementWrappingImplementation, ElementWrappingImplementation); |
| 4786 function OptionElementWrappingImplementation() {} |
| 4787 OptionElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4788 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4789 } |
| 4790 OptionElementWrappingImplementation._wrap$ctor.prototype = OptionElementWrapping
Implementation.prototype; |
| 4791 OptionElementWrappingImplementation.prototype.is$html_html_Element = function(){
return true}; |
| 4792 OptionElementWrappingImplementation.prototype.get$value = function() { |
| 4793 return this._ptr.get$value(); |
| 4794 } |
| 4795 OptionElementWrappingImplementation.prototype.set$value = function(value) { |
| 4796 this._ptr.set$value(value); |
| 4797 } |
| 4798 // ********** Code for OutputElementWrappingImplementation ************** |
| 4799 $inherits(OutputElementWrappingImplementation, ElementWrappingImplementation); |
| 4800 function OutputElementWrappingImplementation() {} |
| 4801 OutputElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4802 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4803 } |
| 4804 OutputElementWrappingImplementation._wrap$ctor.prototype = OutputElementWrapping
Implementation.prototype; |
| 4805 OutputElementWrappingImplementation.prototype.is$html_html_Element = function(){
return true}; |
| 4806 OutputElementWrappingImplementation.prototype.get$name = function() { |
| 4807 return this._ptr.get$name(); |
| 4808 } |
| 4809 OutputElementWrappingImplementation.prototype.get$value = function() { |
| 4810 return this._ptr.get$value(); |
| 4811 } |
| 4812 OutputElementWrappingImplementation.prototype.set$value = function(value) { |
| 4813 this._ptr.set$value(value); |
| 4814 } |
| 4815 // ********** Code for ParagraphElementWrappingImplementation ************** |
| 4816 $inherits(ParagraphElementWrappingImplementation, ElementWrappingImplementation)
; |
| 4817 function ParagraphElementWrappingImplementation() {} |
| 4818 ParagraphElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4819 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4820 } |
| 4821 ParagraphElementWrappingImplementation._wrap$ctor.prototype = ParagraphElementWr
appingImplementation.prototype; |
| 4822 ParagraphElementWrappingImplementation.prototype.is$html_html_Element = function
(){return true}; |
| 4823 // ********** Code for ParamElementWrappingImplementation ************** |
| 4824 $inherits(ParamElementWrappingImplementation, ElementWrappingImplementation); |
| 4825 function ParamElementWrappingImplementation() {} |
| 4826 ParamElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4827 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4828 } |
| 4829 ParamElementWrappingImplementation._wrap$ctor.prototype = ParamElementWrappingIm
plementation.prototype; |
| 4830 ParamElementWrappingImplementation.prototype.is$html_html_Element = function(){r
eturn true}; |
| 4831 ParamElementWrappingImplementation.prototype.get$name = function() { |
| 4832 return this._ptr.get$name(); |
| 4833 } |
| 4834 ParamElementWrappingImplementation.prototype.get$value = function() { |
| 4835 return this._ptr.get$value(); |
| 4836 } |
| 4837 ParamElementWrappingImplementation.prototype.set$value = function(value) { |
| 4838 this._ptr.set$value(value); |
| 4839 } |
| 4840 // ********** Code for PreElementWrappingImplementation ************** |
| 4841 $inherits(PreElementWrappingImplementation, ElementWrappingImplementation); |
| 4842 function PreElementWrappingImplementation() {} |
| 4843 PreElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4844 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4845 } |
| 4846 PreElementWrappingImplementation._wrap$ctor.prototype = PreElementWrappingImplem
entation.prototype; |
| 4847 PreElementWrappingImplementation.prototype.is$html_html_Element = function(){ret
urn true}; |
| 4848 // ********** Code for ProcessingInstructionWrappingImplementation *************
* |
| 4849 $inherits(ProcessingInstructionWrappingImplementation, NodeWrappingImplementatio
n); |
| 4850 function ProcessingInstructionWrappingImplementation() {} |
| 4851 ProcessingInstructionWrappingImplementation._wrap$ctor = function(ptr) { |
| 4852 NodeWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4853 } |
| 4854 ProcessingInstructionWrappingImplementation._wrap$ctor.prototype = ProcessingIns
tructionWrappingImplementation.prototype; |
| 4855 // ********** Code for ProgressElementWrappingImplementation ************** |
| 4856 $inherits(ProgressElementWrappingImplementation, ElementWrappingImplementation); |
| 4857 function ProgressElementWrappingImplementation() {} |
| 4858 ProgressElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4859 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4860 } |
| 4861 ProgressElementWrappingImplementation._wrap$ctor.prototype = ProgressElementWrap
pingImplementation.prototype; |
| 4862 ProgressElementWrappingImplementation.prototype.is$html_html_Element = function(
){return true}; |
| 4863 ProgressElementWrappingImplementation.prototype.get$value = function() { |
| 4864 return this._ptr.get$value(); |
| 4865 } |
| 4866 ProgressElementWrappingImplementation.prototype.set$value = function(value) { |
| 4867 this._ptr.set$value(value); |
| 4868 } |
| 4869 // ********** Code for QuoteElementWrappingImplementation ************** |
| 4870 $inherits(QuoteElementWrappingImplementation, ElementWrappingImplementation); |
| 4871 function QuoteElementWrappingImplementation() {} |
| 4872 QuoteElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4873 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4874 } |
| 4875 QuoteElementWrappingImplementation._wrap$ctor.prototype = QuoteElementWrappingIm
plementation.prototype; |
| 4876 QuoteElementWrappingImplementation.prototype.is$html_html_Element = function(){r
eturn true}; |
| 4877 // ********** Code for SVGElementWrappingImplementation ************** |
| 4878 $inherits(SVGElementWrappingImplementation, ElementWrappingImplementation); |
| 4879 function SVGElementWrappingImplementation() {} |
| 4880 SVGElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4881 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4882 } |
| 4883 SVGElementWrappingImplementation._wrap$ctor.prototype = SVGElementWrappingImplem
entation.prototype; |
| 4884 SVGElementWrappingImplementation.prototype.is$html_html_Element = function(){ret
urn true}; |
| 4885 SVGElementWrappingImplementation.prototype.get$id = function() { |
| 4886 return this._ptr.get$id(); |
| 4887 } |
| 4888 SVGElementWrappingImplementation.prototype.set$id = function(value) { |
| 4889 this._ptr.set$id(value); |
| 4890 } |
| 4891 SVGElementWrappingImplementation.prototype.get$elements = function() { |
| 4892 if (this._elements == null) { |
| 4893 this._elements = new FilteredElementList(this); |
| 4894 } |
| 4895 return this._elements; |
| 4896 } |
| 4897 SVGElementWrappingImplementation.prototype.set$elements = function(value) { |
| 4898 var elements = this.get$elements(); |
| 4899 elements.clear$0(); |
| 4900 elements.addAll$1(value); |
| 4901 } |
| 4902 SVGElementWrappingImplementation.prototype.set$innerHTML = function(svg) { |
| 4903 var container = ElementWrappingImplementation.ElementWrappingImplementation$ta
g$factory("div"); |
| 4904 container.set$innerHTML(("<svg version=\"1.1\">" + svg + "</svg>")); |
| 4905 this.set$elements(container.get$elements().get$first().get$elements()); |
| 4906 } |
| 4907 // ********** Code for SVGAElementWrappingImplementation ************** |
| 4908 $inherits(SVGAElementWrappingImplementation, SVGElementWrappingImplementation); |
| 4909 function SVGAElementWrappingImplementation() {} |
| 4910 SVGAElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4911 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4912 } |
| 4913 SVGAElementWrappingImplementation._wrap$ctor.prototype = SVGAElementWrappingImpl
ementation.prototype; |
| 4914 SVGAElementWrappingImplementation.prototype.is$html_html_Element = function(){re
turn true}; |
| 4915 SVGAElementWrappingImplementation.prototype.get$style = function() { |
| 4916 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 4917 } |
| 4918 // ********** Code for SVGAltGlyphDefElementWrappingImplementation *************
* |
| 4919 $inherits(SVGAltGlyphDefElementWrappingImplementation, SVGElementWrappingImpleme
ntation); |
| 4920 function SVGAltGlyphDefElementWrappingImplementation() {} |
| 4921 SVGAltGlyphDefElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4922 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4923 } |
| 4924 SVGAltGlyphDefElementWrappingImplementation._wrap$ctor.prototype = SVGAltGlyphDe
fElementWrappingImplementation.prototype; |
| 4925 SVGAltGlyphDefElementWrappingImplementation.prototype.is$html_html_Element = fun
ction(){return true}; |
| 4926 // ********** Code for SVGTextContentElementWrappingImplementation *************
* |
| 4927 $inherits(SVGTextContentElementWrappingImplementation, SVGElementWrappingImpleme
ntation); |
| 4928 function SVGTextContentElementWrappingImplementation() {} |
| 4929 SVGTextContentElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4930 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4931 } |
| 4932 SVGTextContentElementWrappingImplementation._wrap$ctor.prototype = SVGTextConten
tElementWrappingImplementation.prototype; |
| 4933 SVGTextContentElementWrappingImplementation.prototype.is$html_html_Element = fun
ction(){return true}; |
| 4934 SVGTextContentElementWrappingImplementation.prototype.get$style = function() { |
| 4935 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 4936 } |
| 4937 // ********** Code for SVGTextPositioningElementWrappingImplementation *********
***** |
| 4938 $inherits(SVGTextPositioningElementWrappingImplementation, SVGTextContentElement
WrappingImplementation); |
| 4939 function SVGTextPositioningElementWrappingImplementation() {} |
| 4940 SVGTextPositioningElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4941 SVGTextContentElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4942 } |
| 4943 SVGTextPositioningElementWrappingImplementation._wrap$ctor.prototype = SVGTextPo
sitioningElementWrappingImplementation.prototype; |
| 4944 SVGTextPositioningElementWrappingImplementation.prototype.is$html_html_Element =
function(){return true}; |
| 4945 // ********** Code for SVGAltGlyphElementWrappingImplementation ************** |
| 4946 $inherits(SVGAltGlyphElementWrappingImplementation, SVGTextPositioningElementWra
ppingImplementation); |
| 4947 function SVGAltGlyphElementWrappingImplementation() {} |
| 4948 SVGAltGlyphElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4949 SVGTextPositioningElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4950 } |
| 4951 SVGAltGlyphElementWrappingImplementation._wrap$ctor.prototype = SVGAltGlyphEleme
ntWrappingImplementation.prototype; |
| 4952 SVGAltGlyphElementWrappingImplementation.prototype.is$html_html_Element = functi
on(){return true}; |
| 4953 // ********** Code for SVGAltGlyphItemElementWrappingImplementation ************
** |
| 4954 $inherits(SVGAltGlyphItemElementWrappingImplementation, SVGElementWrappingImplem
entation); |
| 4955 function SVGAltGlyphItemElementWrappingImplementation() {} |
| 4956 SVGAltGlyphItemElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4957 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4958 } |
| 4959 SVGAltGlyphItemElementWrappingImplementation._wrap$ctor.prototype = SVGAltGlyphI
temElementWrappingImplementation.prototype; |
| 4960 SVGAltGlyphItemElementWrappingImplementation.prototype.is$html_html_Element = fu
nction(){return true}; |
| 4961 // ********** Code for SVGAnimationElementWrappingImplementation ************** |
| 4962 $inherits(SVGAnimationElementWrappingImplementation, SVGElementWrappingImplement
ation); |
| 4963 function SVGAnimationElementWrappingImplementation() {} |
| 4964 SVGAnimationElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4965 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4966 } |
| 4967 SVGAnimationElementWrappingImplementation._wrap$ctor.prototype = SVGAnimationEle
mentWrappingImplementation.prototype; |
| 4968 SVGAnimationElementWrappingImplementation.prototype.is$html_html_Element = funct
ion(){return true}; |
| 4969 // ********** Code for SVGAnimateColorElementWrappingImplementation ************
** |
| 4970 $inherits(SVGAnimateColorElementWrappingImplementation, SVGAnimationElementWrapp
ingImplementation); |
| 4971 function SVGAnimateColorElementWrappingImplementation() {} |
| 4972 SVGAnimateColorElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4973 SVGAnimationElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4974 } |
| 4975 SVGAnimateColorElementWrappingImplementation._wrap$ctor.prototype = SVGAnimateCo
lorElementWrappingImplementation.prototype; |
| 4976 SVGAnimateColorElementWrappingImplementation.prototype.is$html_html_Element = fu
nction(){return true}; |
| 4977 // ********** Code for SVGAnimateElementWrappingImplementation ************** |
| 4978 $inherits(SVGAnimateElementWrappingImplementation, SVGAnimationElementWrappingIm
plementation); |
| 4979 function SVGAnimateElementWrappingImplementation() {} |
| 4980 SVGAnimateElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4981 SVGAnimationElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4982 } |
| 4983 SVGAnimateElementWrappingImplementation._wrap$ctor.prototype = SVGAnimateElement
WrappingImplementation.prototype; |
| 4984 SVGAnimateElementWrappingImplementation.prototype.is$html_html_Element = functio
n(){return true}; |
| 4985 // ********** Code for SVGAnimateMotionElementWrappingImplementation ***********
*** |
| 4986 $inherits(SVGAnimateMotionElementWrappingImplementation, SVGAnimationElementWrap
pingImplementation); |
| 4987 function SVGAnimateMotionElementWrappingImplementation() {} |
| 4988 SVGAnimateMotionElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4989 SVGAnimationElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4990 } |
| 4991 SVGAnimateMotionElementWrappingImplementation._wrap$ctor.prototype = SVGAnimateM
otionElementWrappingImplementation.prototype; |
| 4992 SVGAnimateMotionElementWrappingImplementation.prototype.is$html_html_Element = f
unction(){return true}; |
| 4993 // ********** Code for SVGAnimateTransformElementWrappingImplementation ********
****** |
| 4994 $inherits(SVGAnimateTransformElementWrappingImplementation, SVGAnimationElementW
rappingImplementation); |
| 4995 function SVGAnimateTransformElementWrappingImplementation() {} |
| 4996 SVGAnimateTransformElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 4997 SVGAnimationElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 4998 } |
| 4999 SVGAnimateTransformElementWrappingImplementation._wrap$ctor.prototype = SVGAnima
teTransformElementWrappingImplementation.prototype; |
| 5000 SVGAnimateTransformElementWrappingImplementation.prototype.is$html_html_Element
= function(){return true}; |
| 5001 // ********** Code for SVGCircleElementWrappingImplementation ************** |
| 5002 $inherits(SVGCircleElementWrappingImplementation, SVGElementWrappingImplementati
on); |
| 5003 function SVGCircleElementWrappingImplementation() {} |
| 5004 SVGCircleElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5005 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5006 } |
| 5007 SVGCircleElementWrappingImplementation._wrap$ctor.prototype = SVGCircleElementWr
appingImplementation.prototype; |
| 5008 SVGCircleElementWrappingImplementation.prototype.is$html_html_Element = function
(){return true}; |
| 5009 SVGCircleElementWrappingImplementation.prototype.get$style = function() { |
| 5010 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 5011 } |
| 5012 // ********** Code for SVGClipPathElementWrappingImplementation ************** |
| 5013 $inherits(SVGClipPathElementWrappingImplementation, SVGElementWrappingImplementa
tion); |
| 5014 function SVGClipPathElementWrappingImplementation() {} |
| 5015 SVGClipPathElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5016 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5017 } |
| 5018 SVGClipPathElementWrappingImplementation._wrap$ctor.prototype = SVGClipPathEleme
ntWrappingImplementation.prototype; |
| 5019 SVGClipPathElementWrappingImplementation.prototype.is$html_html_Element = functi
on(){return true}; |
| 5020 SVGClipPathElementWrappingImplementation.prototype.get$style = function() { |
| 5021 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 5022 } |
| 5023 // ********** Code for SVGComponentTransferFunctionElementWrappingImplementation
************** |
| 5024 $inherits(SVGComponentTransferFunctionElementWrappingImplementation, SVGElementW
rappingImplementation); |
| 5025 function SVGComponentTransferFunctionElementWrappingImplementation() {} |
| 5026 SVGComponentTransferFunctionElementWrappingImplementation._wrap$ctor = function(
ptr) { |
| 5027 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5028 } |
| 5029 SVGComponentTransferFunctionElementWrappingImplementation._wrap$ctor.prototype =
SVGComponentTransferFunctionElementWrappingImplementation.prototype; |
| 5030 SVGComponentTransferFunctionElementWrappingImplementation.prototype.is$html_html
_Element = function(){return true}; |
| 5031 // ********** Code for SVGCursorElementWrappingImplementation ************** |
| 5032 $inherits(SVGCursorElementWrappingImplementation, SVGElementWrappingImplementati
on); |
| 5033 function SVGCursorElementWrappingImplementation() {} |
| 5034 SVGCursorElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5035 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5036 } |
| 5037 SVGCursorElementWrappingImplementation._wrap$ctor.prototype = SVGCursorElementWr
appingImplementation.prototype; |
| 5038 SVGCursorElementWrappingImplementation.prototype.is$html_html_Element = function
(){return true}; |
| 5039 // ********** Code for SVGDefsElementWrappingImplementation ************** |
| 5040 $inherits(SVGDefsElementWrappingImplementation, SVGElementWrappingImplementation
); |
| 5041 function SVGDefsElementWrappingImplementation() {} |
| 5042 SVGDefsElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5043 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5044 } |
| 5045 SVGDefsElementWrappingImplementation._wrap$ctor.prototype = SVGDefsElementWrappi
ngImplementation.prototype; |
| 5046 SVGDefsElementWrappingImplementation.prototype.is$html_html_Element = function()
{return true}; |
| 5047 SVGDefsElementWrappingImplementation.prototype.get$style = function() { |
| 5048 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 5049 } |
| 5050 // ********** Code for SVGDescElementWrappingImplementation ************** |
| 5051 $inherits(SVGDescElementWrappingImplementation, SVGElementWrappingImplementation
); |
| 5052 function SVGDescElementWrappingImplementation() {} |
| 5053 SVGDescElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5054 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5055 } |
| 5056 SVGDescElementWrappingImplementation._wrap$ctor.prototype = SVGDescElementWrappi
ngImplementation.prototype; |
| 5057 SVGDescElementWrappingImplementation.prototype.is$html_html_Element = function()
{return true}; |
| 5058 SVGDescElementWrappingImplementation.prototype.get$style = function() { |
| 5059 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 5060 } |
| 5061 // ********** Code for SVGEllipseElementWrappingImplementation ************** |
| 5062 $inherits(SVGEllipseElementWrappingImplementation, SVGElementWrappingImplementat
ion); |
| 5063 function SVGEllipseElementWrappingImplementation() {} |
| 5064 SVGEllipseElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5065 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5066 } |
| 5067 SVGEllipseElementWrappingImplementation._wrap$ctor.prototype = SVGEllipseElement
WrappingImplementation.prototype; |
| 5068 SVGEllipseElementWrappingImplementation.prototype.is$html_html_Element = functio
n(){return true}; |
| 5069 SVGEllipseElementWrappingImplementation.prototype.get$style = function() { |
| 5070 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 5071 } |
| 5072 // ********** Code for SVGFEBlendElementWrappingImplementation ************** |
| 5073 $inherits(SVGFEBlendElementWrappingImplementation, SVGElementWrappingImplementat
ion); |
| 5074 function SVGFEBlendElementWrappingImplementation() {} |
| 5075 SVGFEBlendElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5076 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5077 } |
| 5078 SVGFEBlendElementWrappingImplementation._wrap$ctor.prototype = SVGFEBlendElement
WrappingImplementation.prototype; |
| 5079 SVGFEBlendElementWrappingImplementation.prototype.is$html_html_Element = functio
n(){return true}; |
| 5080 SVGFEBlendElementWrappingImplementation.prototype.get$style = function() { |
| 5081 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 5082 } |
| 5083 // ********** Code for SVGFEColorMatrixElementWrappingImplementation ***********
*** |
| 5084 $inherits(SVGFEColorMatrixElementWrappingImplementation, SVGElementWrappingImple
mentation); |
| 5085 function SVGFEColorMatrixElementWrappingImplementation() {} |
| 5086 SVGFEColorMatrixElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5087 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5088 } |
| 5089 SVGFEColorMatrixElementWrappingImplementation._wrap$ctor.prototype = SVGFEColorM
atrixElementWrappingImplementation.prototype; |
| 5090 SVGFEColorMatrixElementWrappingImplementation.prototype.is$html_html_Element = f
unction(){return true}; |
| 5091 SVGFEColorMatrixElementWrappingImplementation.prototype.get$style = function() { |
| 5092 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 5093 } |
| 5094 // ********** Code for SVGFEComponentTransferElementWrappingImplementation *****
********* |
| 5095 $inherits(SVGFEComponentTransferElementWrappingImplementation, SVGElementWrappin
gImplementation); |
| 5096 function SVGFEComponentTransferElementWrappingImplementation() {} |
| 5097 SVGFEComponentTransferElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5098 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5099 } |
| 5100 SVGFEComponentTransferElementWrappingImplementation._wrap$ctor.prototype = SVGFE
ComponentTransferElementWrappingImplementation.prototype; |
| 5101 SVGFEComponentTransferElementWrappingImplementation.prototype.is$html_html_Eleme
nt = function(){return true}; |
| 5102 SVGFEComponentTransferElementWrappingImplementation.prototype.get$style = functi
on() { |
| 5103 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 5104 } |
| 5105 // ********** Code for SVGFEConvolveMatrixElementWrappingImplementation ********
****** |
| 5106 $inherits(SVGFEConvolveMatrixElementWrappingImplementation, SVGElementWrappingIm
plementation); |
| 5107 function SVGFEConvolveMatrixElementWrappingImplementation() {} |
| 5108 SVGFEConvolveMatrixElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5109 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5110 } |
| 5111 SVGFEConvolveMatrixElementWrappingImplementation._wrap$ctor.prototype = SVGFECon
volveMatrixElementWrappingImplementation.prototype; |
| 5112 SVGFEConvolveMatrixElementWrappingImplementation.prototype.is$html_html_Element
= function(){return true}; |
| 5113 SVGFEConvolveMatrixElementWrappingImplementation.prototype.get$style = function(
) { |
| 5114 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 5115 } |
| 5116 // ********** Code for SVGFEDiffuseLightingElementWrappingImplementation *******
******* |
| 5117 $inherits(SVGFEDiffuseLightingElementWrappingImplementation, SVGElementWrappingI
mplementation); |
| 5118 function SVGFEDiffuseLightingElementWrappingImplementation() {} |
| 5119 SVGFEDiffuseLightingElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5120 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5121 } |
| 5122 SVGFEDiffuseLightingElementWrappingImplementation._wrap$ctor.prototype = SVGFEDi
ffuseLightingElementWrappingImplementation.prototype; |
| 5123 SVGFEDiffuseLightingElementWrappingImplementation.prototype.is$html_html_Element
= function(){return true}; |
| 5124 SVGFEDiffuseLightingElementWrappingImplementation.prototype.get$style = function
() { |
| 5125 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 5126 } |
| 5127 // ********** Code for SVGFEDisplacementMapElementWrappingImplementation *******
******* |
| 5128 $inherits(SVGFEDisplacementMapElementWrappingImplementation, SVGElementWrappingI
mplementation); |
| 5129 function SVGFEDisplacementMapElementWrappingImplementation() {} |
| 5130 SVGFEDisplacementMapElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5131 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5132 } |
| 5133 SVGFEDisplacementMapElementWrappingImplementation._wrap$ctor.prototype = SVGFEDi
splacementMapElementWrappingImplementation.prototype; |
| 5134 SVGFEDisplacementMapElementWrappingImplementation.prototype.is$html_html_Element
= function(){return true}; |
| 5135 SVGFEDisplacementMapElementWrappingImplementation.prototype.get$style = function
() { |
| 5136 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 5137 } |
| 5138 // ********** Code for SVGFEDistantLightElementWrappingImplementation **********
**** |
| 5139 $inherits(SVGFEDistantLightElementWrappingImplementation, SVGElementWrappingImpl
ementation); |
| 5140 function SVGFEDistantLightElementWrappingImplementation() {} |
| 5141 SVGFEDistantLightElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5142 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5143 } |
| 5144 SVGFEDistantLightElementWrappingImplementation._wrap$ctor.prototype = SVGFEDista
ntLightElementWrappingImplementation.prototype; |
| 5145 SVGFEDistantLightElementWrappingImplementation.prototype.is$html_html_Element =
function(){return true}; |
| 5146 // ********** Code for SVGFEDropShadowElementWrappingImplementation ************
** |
| 5147 $inherits(SVGFEDropShadowElementWrappingImplementation, SVGElementWrappingImplem
entation); |
| 5148 function SVGFEDropShadowElementWrappingImplementation() {} |
| 5149 SVGFEDropShadowElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5150 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5151 } |
| 5152 SVGFEDropShadowElementWrappingImplementation._wrap$ctor.prototype = SVGFEDropSha
dowElementWrappingImplementation.prototype; |
| 5153 SVGFEDropShadowElementWrappingImplementation.prototype.is$html_html_Element = fu
nction(){return true}; |
| 5154 SVGFEDropShadowElementWrappingImplementation.prototype.get$style = function() { |
| 5155 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 5156 } |
| 5157 // ********** Code for SVGFEFloodElementWrappingImplementation ************** |
| 5158 $inherits(SVGFEFloodElementWrappingImplementation, SVGElementWrappingImplementat
ion); |
| 5159 function SVGFEFloodElementWrappingImplementation() {} |
| 5160 SVGFEFloodElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5161 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5162 } |
| 5163 SVGFEFloodElementWrappingImplementation._wrap$ctor.prototype = SVGFEFloodElement
WrappingImplementation.prototype; |
| 5164 SVGFEFloodElementWrappingImplementation.prototype.is$html_html_Element = functio
n(){return true}; |
| 5165 SVGFEFloodElementWrappingImplementation.prototype.get$style = function() { |
| 5166 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 5167 } |
| 5168 // ********** Code for SVGFEFuncAElementWrappingImplementation ************** |
| 5169 $inherits(SVGFEFuncAElementWrappingImplementation, SVGComponentTransferFunctionE
lementWrappingImplementation); |
| 5170 function SVGFEFuncAElementWrappingImplementation() {} |
| 5171 SVGFEFuncAElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5172 SVGComponentTransferFunctionElementWrappingImplementation._wrap$ctor.call(this
, ptr); |
| 5173 } |
| 5174 SVGFEFuncAElementWrappingImplementation._wrap$ctor.prototype = SVGFEFuncAElement
WrappingImplementation.prototype; |
| 5175 SVGFEFuncAElementWrappingImplementation.prototype.is$html_html_Element = functio
n(){return true}; |
| 5176 // ********** Code for SVGFEFuncBElementWrappingImplementation ************** |
| 5177 $inherits(SVGFEFuncBElementWrappingImplementation, SVGComponentTransferFunctionE
lementWrappingImplementation); |
| 5178 function SVGFEFuncBElementWrappingImplementation() {} |
| 5179 SVGFEFuncBElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5180 SVGComponentTransferFunctionElementWrappingImplementation._wrap$ctor.call(this
, ptr); |
| 5181 } |
| 5182 SVGFEFuncBElementWrappingImplementation._wrap$ctor.prototype = SVGFEFuncBElement
WrappingImplementation.prototype; |
| 5183 SVGFEFuncBElementWrappingImplementation.prototype.is$html_html_Element = functio
n(){return true}; |
| 5184 // ********** Code for SVGFEFuncGElementWrappingImplementation ************** |
| 5185 $inherits(SVGFEFuncGElementWrappingImplementation, SVGComponentTransferFunctionE
lementWrappingImplementation); |
| 5186 function SVGFEFuncGElementWrappingImplementation() {} |
| 5187 SVGFEFuncGElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5188 SVGComponentTransferFunctionElementWrappingImplementation._wrap$ctor.call(this
, ptr); |
| 5189 } |
| 5190 SVGFEFuncGElementWrappingImplementation._wrap$ctor.prototype = SVGFEFuncGElement
WrappingImplementation.prototype; |
| 5191 SVGFEFuncGElementWrappingImplementation.prototype.is$html_html_Element = functio
n(){return true}; |
| 5192 // ********** Code for SVGFEFuncRElementWrappingImplementation ************** |
| 5193 $inherits(SVGFEFuncRElementWrappingImplementation, SVGComponentTransferFunctionE
lementWrappingImplementation); |
| 5194 function SVGFEFuncRElementWrappingImplementation() {} |
| 5195 SVGFEFuncRElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5196 SVGComponentTransferFunctionElementWrappingImplementation._wrap$ctor.call(this
, ptr); |
| 5197 } |
| 5198 SVGFEFuncRElementWrappingImplementation._wrap$ctor.prototype = SVGFEFuncRElement
WrappingImplementation.prototype; |
| 5199 SVGFEFuncRElementWrappingImplementation.prototype.is$html_html_Element = functio
n(){return true}; |
| 5200 // ********** Code for SVGFEGaussianBlurElementWrappingImplementation **********
**** |
| 5201 $inherits(SVGFEGaussianBlurElementWrappingImplementation, SVGElementWrappingImpl
ementation); |
| 5202 function SVGFEGaussianBlurElementWrappingImplementation() {} |
| 5203 SVGFEGaussianBlurElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5204 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5205 } |
| 5206 SVGFEGaussianBlurElementWrappingImplementation._wrap$ctor.prototype = SVGFEGauss
ianBlurElementWrappingImplementation.prototype; |
| 5207 SVGFEGaussianBlurElementWrappingImplementation.prototype.is$html_html_Element =
function(){return true}; |
| 5208 SVGFEGaussianBlurElementWrappingImplementation.prototype.get$style = function()
{ |
| 5209 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 5210 } |
| 5211 // ********** Code for SVGFEImageElementWrappingImplementation ************** |
| 5212 $inherits(SVGFEImageElementWrappingImplementation, SVGElementWrappingImplementat
ion); |
| 5213 function SVGFEImageElementWrappingImplementation() {} |
| 5214 SVGFEImageElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5215 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5216 } |
| 5217 SVGFEImageElementWrappingImplementation._wrap$ctor.prototype = SVGFEImageElement
WrappingImplementation.prototype; |
| 5218 SVGFEImageElementWrappingImplementation.prototype.is$html_html_Element = functio
n(){return true}; |
| 5219 SVGFEImageElementWrappingImplementation.prototype.get$style = function() { |
| 5220 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 5221 } |
| 5222 // ********** Code for SVGFEMergeElementWrappingImplementation ************** |
| 5223 $inherits(SVGFEMergeElementWrappingImplementation, SVGElementWrappingImplementat
ion); |
| 5224 function SVGFEMergeElementWrappingImplementation() {} |
| 5225 SVGFEMergeElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5226 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5227 } |
| 5228 SVGFEMergeElementWrappingImplementation._wrap$ctor.prototype = SVGFEMergeElement
WrappingImplementation.prototype; |
| 5229 SVGFEMergeElementWrappingImplementation.prototype.is$html_html_Element = functio
n(){return true}; |
| 5230 SVGFEMergeElementWrappingImplementation.prototype.get$style = function() { |
| 5231 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 5232 } |
| 5233 // ********** Code for SVGFEMergeNodeElementWrappingImplementation *************
* |
| 5234 $inherits(SVGFEMergeNodeElementWrappingImplementation, SVGElementWrappingImpleme
ntation); |
| 5235 function SVGFEMergeNodeElementWrappingImplementation() {} |
| 5236 SVGFEMergeNodeElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5237 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5238 } |
| 5239 SVGFEMergeNodeElementWrappingImplementation._wrap$ctor.prototype = SVGFEMergeNod
eElementWrappingImplementation.prototype; |
| 5240 SVGFEMergeNodeElementWrappingImplementation.prototype.is$html_html_Element = fun
ction(){return true}; |
| 5241 // ********** Code for SVGFEOffsetElementWrappingImplementation ************** |
| 5242 $inherits(SVGFEOffsetElementWrappingImplementation, SVGElementWrappingImplementa
tion); |
| 5243 function SVGFEOffsetElementWrappingImplementation() {} |
| 5244 SVGFEOffsetElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5245 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5246 } |
| 5247 SVGFEOffsetElementWrappingImplementation._wrap$ctor.prototype = SVGFEOffsetEleme
ntWrappingImplementation.prototype; |
| 5248 SVGFEOffsetElementWrappingImplementation.prototype.is$html_html_Element = functi
on(){return true}; |
| 5249 SVGFEOffsetElementWrappingImplementation.prototype.get$style = function() { |
| 5250 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 5251 } |
| 5252 // ********** Code for SVGFEPointLightElementWrappingImplementation ************
** |
| 5253 $inherits(SVGFEPointLightElementWrappingImplementation, SVGElementWrappingImplem
entation); |
| 5254 function SVGFEPointLightElementWrappingImplementation() {} |
| 5255 SVGFEPointLightElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5256 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5257 } |
| 5258 SVGFEPointLightElementWrappingImplementation._wrap$ctor.prototype = SVGFEPointLi
ghtElementWrappingImplementation.prototype; |
| 5259 SVGFEPointLightElementWrappingImplementation.prototype.is$html_html_Element = fu
nction(){return true}; |
| 5260 // ********** Code for SVGFESpecularLightingElementWrappingImplementation ******
******** |
| 5261 $inherits(SVGFESpecularLightingElementWrappingImplementation, SVGElementWrapping
Implementation); |
| 5262 function SVGFESpecularLightingElementWrappingImplementation() {} |
| 5263 SVGFESpecularLightingElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5264 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5265 } |
| 5266 SVGFESpecularLightingElementWrappingImplementation._wrap$ctor.prototype = SVGFES
pecularLightingElementWrappingImplementation.prototype; |
| 5267 SVGFESpecularLightingElementWrappingImplementation.prototype.is$html_html_Elemen
t = function(){return true}; |
| 5268 SVGFESpecularLightingElementWrappingImplementation.prototype.get$style = functio
n() { |
| 5269 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 5270 } |
| 5271 // ********** Code for SVGFESpotLightElementWrappingImplementation *************
* |
| 5272 $inherits(SVGFESpotLightElementWrappingImplementation, SVGElementWrappingImpleme
ntation); |
| 5273 function SVGFESpotLightElementWrappingImplementation() {} |
| 5274 SVGFESpotLightElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5275 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5276 } |
| 5277 SVGFESpotLightElementWrappingImplementation._wrap$ctor.prototype = SVGFESpotLigh
tElementWrappingImplementation.prototype; |
| 5278 SVGFESpotLightElementWrappingImplementation.prototype.is$html_html_Element = fun
ction(){return true}; |
| 5279 // ********** Code for SVGFETileElementWrappingImplementation ************** |
| 5280 $inherits(SVGFETileElementWrappingImplementation, SVGElementWrappingImplementati
on); |
| 5281 function SVGFETileElementWrappingImplementation() {} |
| 5282 SVGFETileElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5283 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5284 } |
| 5285 SVGFETileElementWrappingImplementation._wrap$ctor.prototype = SVGFETileElementWr
appingImplementation.prototype; |
| 5286 SVGFETileElementWrappingImplementation.prototype.is$html_html_Element = function
(){return true}; |
| 5287 SVGFETileElementWrappingImplementation.prototype.get$style = function() { |
| 5288 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 5289 } |
| 5290 // ********** Code for SVGFETurbulenceElementWrappingImplementation ************
** |
| 5291 $inherits(SVGFETurbulenceElementWrappingImplementation, SVGElementWrappingImplem
entation); |
| 5292 function SVGFETurbulenceElementWrappingImplementation() {} |
| 5293 SVGFETurbulenceElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5294 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5295 } |
| 5296 SVGFETurbulenceElementWrappingImplementation._wrap$ctor.prototype = SVGFETurbule
nceElementWrappingImplementation.prototype; |
| 5297 SVGFETurbulenceElementWrappingImplementation.prototype.is$html_html_Element = fu
nction(){return true}; |
| 5298 SVGFETurbulenceElementWrappingImplementation.prototype.get$style = function() { |
| 5299 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 5300 } |
| 5301 // ********** Code for SVGFilterElementWrappingImplementation ************** |
| 5302 $inherits(SVGFilterElementWrappingImplementation, SVGElementWrappingImplementati
on); |
| 5303 function SVGFilterElementWrappingImplementation() {} |
| 5304 SVGFilterElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5305 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5306 } |
| 5307 SVGFilterElementWrappingImplementation._wrap$ctor.prototype = SVGFilterElementWr
appingImplementation.prototype; |
| 5308 SVGFilterElementWrappingImplementation.prototype.is$html_html_Element = function
(){return true}; |
| 5309 SVGFilterElementWrappingImplementation.prototype.get$style = function() { |
| 5310 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 5311 } |
| 5312 // ********** Code for SVGFontElementWrappingImplementation ************** |
| 5313 $inherits(SVGFontElementWrappingImplementation, SVGElementWrappingImplementation
); |
| 5314 function SVGFontElementWrappingImplementation() {} |
| 5315 SVGFontElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5316 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5317 } |
| 5318 SVGFontElementWrappingImplementation._wrap$ctor.prototype = SVGFontElementWrappi
ngImplementation.prototype; |
| 5319 SVGFontElementWrappingImplementation.prototype.is$html_html_Element = function()
{return true}; |
| 5320 // ********** Code for SVGFontFaceElementWrappingImplementation ************** |
| 5321 $inherits(SVGFontFaceElementWrappingImplementation, SVGElementWrappingImplementa
tion); |
| 5322 function SVGFontFaceElementWrappingImplementation() {} |
| 5323 SVGFontFaceElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5324 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5325 } |
| 5326 SVGFontFaceElementWrappingImplementation._wrap$ctor.prototype = SVGFontFaceEleme
ntWrappingImplementation.prototype; |
| 5327 SVGFontFaceElementWrappingImplementation.prototype.is$html_html_Element = functi
on(){return true}; |
| 5328 // ********** Code for SVGFontFaceFormatElementWrappingImplementation **********
**** |
| 5329 $inherits(SVGFontFaceFormatElementWrappingImplementation, SVGElementWrappingImpl
ementation); |
| 5330 function SVGFontFaceFormatElementWrappingImplementation() {} |
| 5331 SVGFontFaceFormatElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5332 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5333 } |
| 5334 SVGFontFaceFormatElementWrappingImplementation._wrap$ctor.prototype = SVGFontFac
eFormatElementWrappingImplementation.prototype; |
| 5335 SVGFontFaceFormatElementWrappingImplementation.prototype.is$html_html_Element =
function(){return true}; |
| 5336 // ********** Code for SVGFontFaceNameElementWrappingImplementation ************
** |
| 5337 $inherits(SVGFontFaceNameElementWrappingImplementation, SVGElementWrappingImplem
entation); |
| 5338 function SVGFontFaceNameElementWrappingImplementation() {} |
| 5339 SVGFontFaceNameElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5340 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5341 } |
| 5342 SVGFontFaceNameElementWrappingImplementation._wrap$ctor.prototype = SVGFontFaceN
ameElementWrappingImplementation.prototype; |
| 5343 SVGFontFaceNameElementWrappingImplementation.prototype.is$html_html_Element = fu
nction(){return true}; |
| 5344 // ********** Code for SVGFontFaceSrcElementWrappingImplementation *************
* |
| 5345 $inherits(SVGFontFaceSrcElementWrappingImplementation, SVGElementWrappingImpleme
ntation); |
| 5346 function SVGFontFaceSrcElementWrappingImplementation() {} |
| 5347 SVGFontFaceSrcElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5348 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5349 } |
| 5350 SVGFontFaceSrcElementWrappingImplementation._wrap$ctor.prototype = SVGFontFaceSr
cElementWrappingImplementation.prototype; |
| 5351 SVGFontFaceSrcElementWrappingImplementation.prototype.is$html_html_Element = fun
ction(){return true}; |
| 5352 // ********** Code for SVGFontFaceUriElementWrappingImplementation *************
* |
| 5353 $inherits(SVGFontFaceUriElementWrappingImplementation, SVGElementWrappingImpleme
ntation); |
| 5354 function SVGFontFaceUriElementWrappingImplementation() {} |
| 5355 SVGFontFaceUriElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5356 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5357 } |
| 5358 SVGFontFaceUriElementWrappingImplementation._wrap$ctor.prototype = SVGFontFaceUr
iElementWrappingImplementation.prototype; |
| 5359 SVGFontFaceUriElementWrappingImplementation.prototype.is$html_html_Element = fun
ction(){return true}; |
| 5360 // ********** Code for SVGForeignObjectElementWrappingImplementation ***********
*** |
| 5361 $inherits(SVGForeignObjectElementWrappingImplementation, SVGElementWrappingImple
mentation); |
| 5362 function SVGForeignObjectElementWrappingImplementation() {} |
| 5363 SVGForeignObjectElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5364 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5365 } |
| 5366 SVGForeignObjectElementWrappingImplementation._wrap$ctor.prototype = SVGForeignO
bjectElementWrappingImplementation.prototype; |
| 5367 SVGForeignObjectElementWrappingImplementation.prototype.is$html_html_Element = f
unction(){return true}; |
| 5368 SVGForeignObjectElementWrappingImplementation.prototype.get$style = function() { |
| 5369 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 5370 } |
| 5371 // ********** Code for SVGGElementWrappingImplementation ************** |
| 5372 $inherits(SVGGElementWrappingImplementation, SVGElementWrappingImplementation); |
| 5373 function SVGGElementWrappingImplementation() {} |
| 5374 SVGGElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5375 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5376 } |
| 5377 SVGGElementWrappingImplementation._wrap$ctor.prototype = SVGGElementWrappingImpl
ementation.prototype; |
| 5378 SVGGElementWrappingImplementation.prototype.is$html_html_Element = function(){re
turn true}; |
| 5379 SVGGElementWrappingImplementation.prototype.get$style = function() { |
| 5380 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 5381 } |
| 5382 // ********** Code for SVGGlyphElementWrappingImplementation ************** |
| 5383 $inherits(SVGGlyphElementWrappingImplementation, SVGElementWrappingImplementatio
n); |
| 5384 function SVGGlyphElementWrappingImplementation() {} |
| 5385 SVGGlyphElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5386 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5387 } |
| 5388 SVGGlyphElementWrappingImplementation._wrap$ctor.prototype = SVGGlyphElementWrap
pingImplementation.prototype; |
| 5389 SVGGlyphElementWrappingImplementation.prototype.is$html_html_Element = function(
){return true}; |
| 5390 // ********** Code for SVGGlyphRefElementWrappingImplementation ************** |
| 5391 $inherits(SVGGlyphRefElementWrappingImplementation, SVGElementWrappingImplementa
tion); |
| 5392 function SVGGlyphRefElementWrappingImplementation() {} |
| 5393 SVGGlyphRefElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5394 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5395 } |
| 5396 SVGGlyphRefElementWrappingImplementation._wrap$ctor.prototype = SVGGlyphRefEleme
ntWrappingImplementation.prototype; |
| 5397 SVGGlyphRefElementWrappingImplementation.prototype.is$html_html_Element = functi
on(){return true}; |
| 5398 SVGGlyphRefElementWrappingImplementation.prototype.get$style = function() { |
| 5399 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 5400 } |
| 5401 // ********** Code for SVGGradientElementWrappingImplementation ************** |
| 5402 $inherits(SVGGradientElementWrappingImplementation, SVGElementWrappingImplementa
tion); |
| 5403 function SVGGradientElementWrappingImplementation() {} |
| 5404 SVGGradientElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5405 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5406 } |
| 5407 SVGGradientElementWrappingImplementation._wrap$ctor.prototype = SVGGradientEleme
ntWrappingImplementation.prototype; |
| 5408 SVGGradientElementWrappingImplementation.prototype.is$html_html_Element = functi
on(){return true}; |
| 5409 SVGGradientElementWrappingImplementation.prototype.get$style = function() { |
| 5410 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 5411 } |
| 5412 // ********** Code for SVGHKernElementWrappingImplementation ************** |
| 5413 $inherits(SVGHKernElementWrappingImplementation, SVGElementWrappingImplementatio
n); |
| 5414 function SVGHKernElementWrappingImplementation() {} |
| 5415 SVGHKernElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5416 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5417 } |
| 5418 SVGHKernElementWrappingImplementation._wrap$ctor.prototype = SVGHKernElementWrap
pingImplementation.prototype; |
| 5419 SVGHKernElementWrappingImplementation.prototype.is$html_html_Element = function(
){return true}; |
| 5420 // ********** Code for SVGImageElementWrappingImplementation ************** |
| 5421 $inherits(SVGImageElementWrappingImplementation, SVGElementWrappingImplementatio
n); |
| 5422 function SVGImageElementWrappingImplementation() {} |
| 5423 SVGImageElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5424 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5425 } |
| 5426 SVGImageElementWrappingImplementation._wrap$ctor.prototype = SVGImageElementWrap
pingImplementation.prototype; |
| 5427 SVGImageElementWrappingImplementation.prototype.is$html_html_Element = function(
){return true}; |
| 5428 SVGImageElementWrappingImplementation.prototype.get$style = function() { |
| 5429 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 5430 } |
| 5431 // ********** Code for SVGLineElementWrappingImplementation ************** |
| 5432 $inherits(SVGLineElementWrappingImplementation, SVGElementWrappingImplementation
); |
| 5433 function SVGLineElementWrappingImplementation() {} |
| 5434 SVGLineElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5435 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5436 } |
| 5437 SVGLineElementWrappingImplementation._wrap$ctor.prototype = SVGLineElementWrappi
ngImplementation.prototype; |
| 5438 SVGLineElementWrappingImplementation.prototype.is$html_html_Element = function()
{return true}; |
| 5439 SVGLineElementWrappingImplementation.prototype.get$style = function() { |
| 5440 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 5441 } |
| 5442 // ********** Code for SVGLinearGradientElementWrappingImplementation **********
**** |
| 5443 $inherits(SVGLinearGradientElementWrappingImplementation, SVGGradientElementWrap
pingImplementation); |
| 5444 function SVGLinearGradientElementWrappingImplementation() {} |
| 5445 SVGLinearGradientElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5446 SVGGradientElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5447 } |
| 5448 SVGLinearGradientElementWrappingImplementation._wrap$ctor.prototype = SVGLinearG
radientElementWrappingImplementation.prototype; |
| 5449 SVGLinearGradientElementWrappingImplementation.prototype.is$html_html_Element =
function(){return true}; |
| 5450 // ********** Code for SVGMPathElementWrappingImplementation ************** |
| 5451 $inherits(SVGMPathElementWrappingImplementation, SVGElementWrappingImplementatio
n); |
| 5452 function SVGMPathElementWrappingImplementation() {} |
| 5453 SVGMPathElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5454 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5455 } |
| 5456 SVGMPathElementWrappingImplementation._wrap$ctor.prototype = SVGMPathElementWrap
pingImplementation.prototype; |
| 5457 SVGMPathElementWrappingImplementation.prototype.is$html_html_Element = function(
){return true}; |
| 5458 // ********** Code for SVGMarkerElementWrappingImplementation ************** |
| 5459 $inherits(SVGMarkerElementWrappingImplementation, SVGElementWrappingImplementati
on); |
| 5460 function SVGMarkerElementWrappingImplementation() {} |
| 5461 SVGMarkerElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5462 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5463 } |
| 5464 SVGMarkerElementWrappingImplementation._wrap$ctor.prototype = SVGMarkerElementWr
appingImplementation.prototype; |
| 5465 SVGMarkerElementWrappingImplementation.prototype.is$html_html_Element = function
(){return true}; |
| 5466 SVGMarkerElementWrappingImplementation.prototype.get$style = function() { |
| 5467 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 5468 } |
| 5469 // ********** Code for SVGMaskElementWrappingImplementation ************** |
| 5470 $inherits(SVGMaskElementWrappingImplementation, SVGElementWrappingImplementation
); |
| 5471 function SVGMaskElementWrappingImplementation() {} |
| 5472 SVGMaskElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5473 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5474 } |
| 5475 SVGMaskElementWrappingImplementation._wrap$ctor.prototype = SVGMaskElementWrappi
ngImplementation.prototype; |
| 5476 SVGMaskElementWrappingImplementation.prototype.is$html_html_Element = function()
{return true}; |
| 5477 SVGMaskElementWrappingImplementation.prototype.get$style = function() { |
| 5478 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 5479 } |
| 5480 // ********** Code for SVGMetadataElementWrappingImplementation ************** |
| 5481 $inherits(SVGMetadataElementWrappingImplementation, SVGElementWrappingImplementa
tion); |
| 5482 function SVGMetadataElementWrappingImplementation() {} |
| 5483 SVGMetadataElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5484 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5485 } |
| 5486 SVGMetadataElementWrappingImplementation._wrap$ctor.prototype = SVGMetadataEleme
ntWrappingImplementation.prototype; |
| 5487 SVGMetadataElementWrappingImplementation.prototype.is$html_html_Element = functi
on(){return true}; |
| 5488 // ********** Code for SVGMissingGlyphElementWrappingImplementation ************
** |
| 5489 $inherits(SVGMissingGlyphElementWrappingImplementation, SVGElementWrappingImplem
entation); |
| 5490 function SVGMissingGlyphElementWrappingImplementation() {} |
| 5491 SVGMissingGlyphElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5492 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5493 } |
| 5494 SVGMissingGlyphElementWrappingImplementation._wrap$ctor.prototype = SVGMissingGl
yphElementWrappingImplementation.prototype; |
| 5495 SVGMissingGlyphElementWrappingImplementation.prototype.is$html_html_Element = fu
nction(){return true}; |
| 5496 // ********** Code for SVGPathElementWrappingImplementation ************** |
| 5497 $inherits(SVGPathElementWrappingImplementation, SVGElementWrappingImplementation
); |
| 5498 function SVGPathElementWrappingImplementation() {} |
| 5499 SVGPathElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5500 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5501 } |
| 5502 SVGPathElementWrappingImplementation._wrap$ctor.prototype = SVGPathElementWrappi
ngImplementation.prototype; |
| 5503 SVGPathElementWrappingImplementation.prototype.is$html_html_Element = function()
{return true}; |
| 5504 SVGPathElementWrappingImplementation.prototype.get$style = function() { |
| 5505 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 5506 } |
| 5507 // ********** Code for SVGPatternElementWrappingImplementation ************** |
| 5508 $inherits(SVGPatternElementWrappingImplementation, SVGElementWrappingImplementat
ion); |
| 5509 function SVGPatternElementWrappingImplementation() {} |
| 5510 SVGPatternElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5511 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5512 } |
| 5513 SVGPatternElementWrappingImplementation._wrap$ctor.prototype = SVGPatternElement
WrappingImplementation.prototype; |
| 5514 SVGPatternElementWrappingImplementation.prototype.is$html_html_Element = functio
n(){return true}; |
| 5515 SVGPatternElementWrappingImplementation.prototype.get$style = function() { |
| 5516 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 5517 } |
| 5518 // ********** Code for SVGPolygonElementWrappingImplementation ************** |
| 5519 $inherits(SVGPolygonElementWrappingImplementation, SVGElementWrappingImplementat
ion); |
| 5520 function SVGPolygonElementWrappingImplementation() {} |
| 5521 SVGPolygonElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5522 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5523 } |
| 5524 SVGPolygonElementWrappingImplementation._wrap$ctor.prototype = SVGPolygonElement
WrappingImplementation.prototype; |
| 5525 SVGPolygonElementWrappingImplementation.prototype.is$html_html_Element = functio
n(){return true}; |
| 5526 SVGPolygonElementWrappingImplementation.prototype.get$style = function() { |
| 5527 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 5528 } |
| 5529 // ********** Code for SVGPolylineElementWrappingImplementation ************** |
| 5530 $inherits(SVGPolylineElementWrappingImplementation, SVGElementWrappingImplementa
tion); |
| 5531 function SVGPolylineElementWrappingImplementation() {} |
| 5532 SVGPolylineElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5533 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5534 } |
| 5535 SVGPolylineElementWrappingImplementation._wrap$ctor.prototype = SVGPolylineEleme
ntWrappingImplementation.prototype; |
| 5536 SVGPolylineElementWrappingImplementation.prototype.is$html_html_Element = functi
on(){return true}; |
| 5537 SVGPolylineElementWrappingImplementation.prototype.get$style = function() { |
| 5538 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 5539 } |
| 5540 // ********** Code for SVGRadialGradientElementWrappingImplementation **********
**** |
| 5541 $inherits(SVGRadialGradientElementWrappingImplementation, SVGGradientElementWrap
pingImplementation); |
| 5542 function SVGRadialGradientElementWrappingImplementation() {} |
| 5543 SVGRadialGradientElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5544 SVGGradientElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5545 } |
| 5546 SVGRadialGradientElementWrappingImplementation._wrap$ctor.prototype = SVGRadialG
radientElementWrappingImplementation.prototype; |
| 5547 SVGRadialGradientElementWrappingImplementation.prototype.is$html_html_Element =
function(){return true}; |
| 5548 // ********** Code for SVGRectElementWrappingImplementation ************** |
| 5549 $inherits(SVGRectElementWrappingImplementation, SVGElementWrappingImplementation
); |
| 5550 function SVGRectElementWrappingImplementation() {} |
| 5551 SVGRectElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5552 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5553 } |
| 5554 SVGRectElementWrappingImplementation._wrap$ctor.prototype = SVGRectElementWrappi
ngImplementation.prototype; |
| 5555 SVGRectElementWrappingImplementation.prototype.is$html_html_Element = function()
{return true}; |
| 5556 SVGRectElementWrappingImplementation.prototype.get$style = function() { |
| 5557 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 5558 } |
| 5559 // ********** Code for SVGScriptElementWrappingImplementation ************** |
| 5560 $inherits(SVGScriptElementWrappingImplementation, SVGElementWrappingImplementati
on); |
| 5561 function SVGScriptElementWrappingImplementation() {} |
| 5562 SVGScriptElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5563 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5564 } |
| 5565 SVGScriptElementWrappingImplementation._wrap$ctor.prototype = SVGScriptElementWr
appingImplementation.prototype; |
| 5566 SVGScriptElementWrappingImplementation.prototype.is$html_html_Element = function
(){return true}; |
| 5567 // ********** Code for SVGSetElementWrappingImplementation ************** |
| 5568 $inherits(SVGSetElementWrappingImplementation, SVGAnimationElementWrappingImplem
entation); |
| 5569 function SVGSetElementWrappingImplementation() {} |
| 5570 SVGSetElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5571 SVGAnimationElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5572 } |
| 5573 SVGSetElementWrappingImplementation._wrap$ctor.prototype = SVGSetElementWrapping
Implementation.prototype; |
| 5574 SVGSetElementWrappingImplementation.prototype.is$html_html_Element = function(){
return true}; |
| 5575 // ********** Code for SVGStopElementWrappingImplementation ************** |
| 5576 $inherits(SVGStopElementWrappingImplementation, SVGElementWrappingImplementation
); |
| 5577 function SVGStopElementWrappingImplementation() {} |
| 5578 SVGStopElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5579 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5580 } |
| 5581 SVGStopElementWrappingImplementation._wrap$ctor.prototype = SVGStopElementWrappi
ngImplementation.prototype; |
| 5582 SVGStopElementWrappingImplementation.prototype.is$html_html_Element = function()
{return true}; |
| 5583 SVGStopElementWrappingImplementation.prototype.get$style = function() { |
| 5584 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 5585 } |
| 5586 // ********** Code for SVGStyleElementWrappingImplementation ************** |
| 5587 $inherits(SVGStyleElementWrappingImplementation, SVGElementWrappingImplementatio
n); |
| 5588 function SVGStyleElementWrappingImplementation() {} |
| 5589 SVGStyleElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5590 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5591 } |
| 5592 SVGStyleElementWrappingImplementation._wrap$ctor.prototype = SVGStyleElementWrap
pingImplementation.prototype; |
| 5593 SVGStyleElementWrappingImplementation.prototype.is$html_html_Element = function(
){return true}; |
| 5594 // ********** Code for SVGSwitchElementWrappingImplementation ************** |
| 5595 $inherits(SVGSwitchElementWrappingImplementation, SVGElementWrappingImplementati
on); |
| 5596 function SVGSwitchElementWrappingImplementation() {} |
| 5597 SVGSwitchElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5598 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5599 } |
| 5600 SVGSwitchElementWrappingImplementation._wrap$ctor.prototype = SVGSwitchElementWr
appingImplementation.prototype; |
| 5601 SVGSwitchElementWrappingImplementation.prototype.is$html_html_Element = function
(){return true}; |
| 5602 SVGSwitchElementWrappingImplementation.prototype.get$style = function() { |
| 5603 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 5604 } |
| 5605 // ********** Code for SVGSymbolElementWrappingImplementation ************** |
| 5606 $inherits(SVGSymbolElementWrappingImplementation, SVGElementWrappingImplementati
on); |
| 5607 function SVGSymbolElementWrappingImplementation() {} |
| 5608 SVGSymbolElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5609 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5610 } |
| 5611 SVGSymbolElementWrappingImplementation._wrap$ctor.prototype = SVGSymbolElementWr
appingImplementation.prototype; |
| 5612 SVGSymbolElementWrappingImplementation.prototype.is$html_html_Element = function
(){return true}; |
| 5613 SVGSymbolElementWrappingImplementation.prototype.get$style = function() { |
| 5614 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 5615 } |
| 5616 // ********** Code for SVGTRefElementWrappingImplementation ************** |
| 5617 $inherits(SVGTRefElementWrappingImplementation, SVGTextPositioningElementWrappin
gImplementation); |
| 5618 function SVGTRefElementWrappingImplementation() {} |
| 5619 SVGTRefElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5620 SVGTextPositioningElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5621 } |
| 5622 SVGTRefElementWrappingImplementation._wrap$ctor.prototype = SVGTRefElementWrappi
ngImplementation.prototype; |
| 5623 SVGTRefElementWrappingImplementation.prototype.is$html_html_Element = function()
{return true}; |
| 5624 // ********** Code for SVGTSpanElementWrappingImplementation ************** |
| 5625 $inherits(SVGTSpanElementWrappingImplementation, SVGTextPositioningElementWrappi
ngImplementation); |
| 5626 function SVGTSpanElementWrappingImplementation() {} |
| 5627 SVGTSpanElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5628 SVGTextPositioningElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5629 } |
| 5630 SVGTSpanElementWrappingImplementation._wrap$ctor.prototype = SVGTSpanElementWrap
pingImplementation.prototype; |
| 5631 SVGTSpanElementWrappingImplementation.prototype.is$html_html_Element = function(
){return true}; |
| 5632 // ********** Code for SVGTextElementWrappingImplementation ************** |
| 5633 $inherits(SVGTextElementWrappingImplementation, SVGTextPositioningElementWrappin
gImplementation); |
| 5634 function SVGTextElementWrappingImplementation() {} |
| 5635 SVGTextElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5636 SVGTextPositioningElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5637 } |
| 5638 SVGTextElementWrappingImplementation._wrap$ctor.prototype = SVGTextElementWrappi
ngImplementation.prototype; |
| 5639 SVGTextElementWrappingImplementation.prototype.is$html_html_Element = function()
{return true}; |
| 5640 // ********** Code for SVGTextPathElementWrappingImplementation ************** |
| 5641 $inherits(SVGTextPathElementWrappingImplementation, SVGTextContentElementWrappin
gImplementation); |
| 5642 function SVGTextPathElementWrappingImplementation() {} |
| 5643 SVGTextPathElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5644 SVGTextContentElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5645 } |
| 5646 SVGTextPathElementWrappingImplementation._wrap$ctor.prototype = SVGTextPathEleme
ntWrappingImplementation.prototype; |
| 5647 SVGTextPathElementWrappingImplementation.prototype.is$html_html_Element = functi
on(){return true}; |
| 5648 // ********** Code for SVGTitleElementWrappingImplementation ************** |
| 5649 $inherits(SVGTitleElementWrappingImplementation, SVGElementWrappingImplementatio
n); |
| 5650 function SVGTitleElementWrappingImplementation() {} |
| 5651 SVGTitleElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5652 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5653 } |
| 5654 SVGTitleElementWrappingImplementation._wrap$ctor.prototype = SVGTitleElementWrap
pingImplementation.prototype; |
| 5655 SVGTitleElementWrappingImplementation.prototype.is$html_html_Element = function(
){return true}; |
| 5656 SVGTitleElementWrappingImplementation.prototype.get$style = function() { |
| 5657 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 5658 } |
| 5659 // ********** Code for SVGUseElementWrappingImplementation ************** |
| 5660 $inherits(SVGUseElementWrappingImplementation, SVGElementWrappingImplementation)
; |
| 5661 function SVGUseElementWrappingImplementation() {} |
| 5662 SVGUseElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5663 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5664 } |
| 5665 SVGUseElementWrappingImplementation._wrap$ctor.prototype = SVGUseElementWrapping
Implementation.prototype; |
| 5666 SVGUseElementWrappingImplementation.prototype.is$html_html_Element = function(){
return true}; |
| 5667 SVGUseElementWrappingImplementation.prototype.get$style = function() { |
| 5668 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 5669 } |
| 5670 // ********** Code for SVGVKernElementWrappingImplementation ************** |
| 5671 $inherits(SVGVKernElementWrappingImplementation, SVGElementWrappingImplementatio
n); |
| 5672 function SVGVKernElementWrappingImplementation() {} |
| 5673 SVGVKernElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5674 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5675 } |
| 5676 SVGVKernElementWrappingImplementation._wrap$ctor.prototype = SVGVKernElementWrap
pingImplementation.prototype; |
| 5677 SVGVKernElementWrappingImplementation.prototype.is$html_html_Element = function(
){return true}; |
| 5678 // ********** Code for SVGViewElementWrappingImplementation ************** |
| 5679 $inherits(SVGViewElementWrappingImplementation, SVGElementWrappingImplementation
); |
| 5680 function SVGViewElementWrappingImplementation() {} |
| 5681 SVGViewElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5682 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5683 } |
| 5684 SVGViewElementWrappingImplementation._wrap$ctor.prototype = SVGViewElementWrappi
ngImplementation.prototype; |
| 5685 SVGViewElementWrappingImplementation.prototype.is$html_html_Element = function()
{return true}; |
| 5686 // ********** Code for UIEventWrappingImplementation ************** |
| 5687 $inherits(UIEventWrappingImplementation, EventWrappingImplementation); |
| 5688 function UIEventWrappingImplementation() {} |
| 5689 UIEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 5690 EventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5691 } |
| 5692 UIEventWrappingImplementation._wrap$ctor.prototype = UIEventWrappingImplementati
on.prototype; |
| 5693 UIEventWrappingImplementation.prototype.get$pageX = function() { |
| 5694 return this._ptr.get$pageX(); |
| 5695 } |
| 5696 UIEventWrappingImplementation.prototype.get$pageY = function() { |
| 5697 return this._ptr.get$pageY(); |
| 5698 } |
| 5699 // ********** Code for SVGZoomEventWrappingImplementation ************** |
| 5700 $inherits(SVGZoomEventWrappingImplementation, UIEventWrappingImplementation); |
| 5701 function SVGZoomEventWrappingImplementation() {} |
| 5702 SVGZoomEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 5703 UIEventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5704 } |
| 5705 SVGZoomEventWrappingImplementation._wrap$ctor.prototype = SVGZoomEventWrappingIm
plementation.prototype; |
| 5706 // ********** Code for ScriptElementWrappingImplementation ************** |
| 5707 $inherits(ScriptElementWrappingImplementation, ElementWrappingImplementation); |
| 5708 function ScriptElementWrappingImplementation() {} |
| 5709 ScriptElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5710 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5711 } |
| 5712 ScriptElementWrappingImplementation._wrap$ctor.prototype = ScriptElementWrapping
Implementation.prototype; |
| 5713 ScriptElementWrappingImplementation.prototype.is$html_html_Element = function(){
return true}; |
| 5714 // ********** Code for SelectElementWrappingImplementation ************** |
| 5715 $inherits(SelectElementWrappingImplementation, ElementWrappingImplementation); |
| 5716 function SelectElementWrappingImplementation() {} |
| 5717 SelectElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5718 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5719 } |
| 5720 SelectElementWrappingImplementation._wrap$ctor.prototype = SelectElementWrapping
Implementation.prototype; |
| 5721 SelectElementWrappingImplementation.prototype.is$html_html_Element = function(){
return true}; |
| 5722 SelectElementWrappingImplementation.prototype.get$length = function() { |
| 5723 return this._ptr.get$length(); |
| 5724 } |
| 5725 SelectElementWrappingImplementation.prototype.get$name = function() { |
| 5726 return this._ptr.get$name(); |
| 5727 } |
| 5728 SelectElementWrappingImplementation.prototype.get$value = function() { |
| 5729 return this._ptr.get$value(); |
| 5730 } |
| 5731 SelectElementWrappingImplementation.prototype.set$value = function(value) { |
| 5732 this._ptr.set$value(value); |
| 5733 } |
| 5734 SelectElementWrappingImplementation.prototype.add = function(element, before) { |
| 5735 this._ptr.add$2(LevelDom.unwrap(element), LevelDom.unwrap(before)); |
| 5736 return; |
| 5737 } |
| 5738 SelectElementWrappingImplementation.prototype.item = function(index) { |
| 5739 return LevelDom.wrapNode(this._ptr.item$1(index)); |
| 5740 } |
| 5741 SelectElementWrappingImplementation.prototype.add$2 = SelectElementWrappingImple
mentation.prototype.add; |
| 5742 SelectElementWrappingImplementation.prototype.item$1 = SelectElementWrappingImpl
ementation.prototype.item; |
| 5743 // ********** Code for SourceElementWrappingImplementation ************** |
| 5744 $inherits(SourceElementWrappingImplementation, ElementWrappingImplementation); |
| 5745 function SourceElementWrappingImplementation() {} |
| 5746 SourceElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5747 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5748 } |
| 5749 SourceElementWrappingImplementation._wrap$ctor.prototype = SourceElementWrapping
Implementation.prototype; |
| 5750 SourceElementWrappingImplementation.prototype.is$html_html_Element = function(){
return true}; |
| 5751 // ********** Code for SpanElementWrappingImplementation ************** |
| 5752 $inherits(SpanElementWrappingImplementation, ElementWrappingImplementation); |
| 5753 function SpanElementWrappingImplementation() {} |
| 5754 SpanElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5755 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5756 } |
| 5757 SpanElementWrappingImplementation._wrap$ctor.prototype = SpanElementWrappingImpl
ementation.prototype; |
| 5758 SpanElementWrappingImplementation.prototype.is$html_html_Element = function(){re
turn true}; |
| 5759 // ********** Code for SpeechInputEventWrappingImplementation ************** |
| 5760 $inherits(SpeechInputEventWrappingImplementation, EventWrappingImplementation); |
| 5761 function SpeechInputEventWrappingImplementation() {} |
| 5762 SpeechInputEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 5763 EventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5764 } |
| 5765 SpeechInputEventWrappingImplementation._wrap$ctor.prototype = SpeechInputEventWr
appingImplementation.prototype; |
| 5766 // ********** Code for StyleElementWrappingImplementation ************** |
| 5767 $inherits(StyleElementWrappingImplementation, ElementWrappingImplementation); |
| 5768 function StyleElementWrappingImplementation() {} |
| 5769 StyleElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5770 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5771 } |
| 5772 StyleElementWrappingImplementation._wrap$ctor.prototype = StyleElementWrappingIm
plementation.prototype; |
| 5773 StyleElementWrappingImplementation.prototype.is$html_html_Element = function(){r
eturn true}; |
| 5774 // ********** Code for TableCaptionElementWrappingImplementation ************** |
| 5775 $inherits(TableCaptionElementWrappingImplementation, ElementWrappingImplementati
on); |
| 5776 function TableCaptionElementWrappingImplementation() {} |
| 5777 TableCaptionElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5778 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5779 } |
| 5780 TableCaptionElementWrappingImplementation._wrap$ctor.prototype = TableCaptionEle
mentWrappingImplementation.prototype; |
| 5781 TableCaptionElementWrappingImplementation.prototype.is$html_html_Element = funct
ion(){return true}; |
| 5782 // ********** Code for TableCellElementWrappingImplementation ************** |
| 5783 $inherits(TableCellElementWrappingImplementation, ElementWrappingImplementation)
; |
| 5784 function TableCellElementWrappingImplementation() {} |
| 5785 TableCellElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5786 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5787 } |
| 5788 TableCellElementWrappingImplementation._wrap$ctor.prototype = TableCellElementWr
appingImplementation.prototype; |
| 5789 TableCellElementWrappingImplementation.prototype.is$html_html_Element = function
(){return true}; |
| 5790 // ********** Code for TableColElementWrappingImplementation ************** |
| 5791 $inherits(TableColElementWrappingImplementation, ElementWrappingImplementation); |
| 5792 function TableColElementWrappingImplementation() {} |
| 5793 TableColElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5794 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5795 } |
| 5796 TableColElementWrappingImplementation._wrap$ctor.prototype = TableColElementWrap
pingImplementation.prototype; |
| 5797 TableColElementWrappingImplementation.prototype.is$html_html_Element = function(
){return true}; |
| 5798 // ********** Code for TableElementWrappingImplementation ************** |
| 5799 $inherits(TableElementWrappingImplementation, ElementWrappingImplementation); |
| 5800 function TableElementWrappingImplementation() {} |
| 5801 TableElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5802 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5803 } |
| 5804 TableElementWrappingImplementation._wrap$ctor.prototype = TableElementWrappingIm
plementation.prototype; |
| 5805 TableElementWrappingImplementation.prototype.is$html_html_Element = function(){r
eturn true}; |
| 5806 // ********** Code for TableRowElementWrappingImplementation ************** |
| 5807 $inherits(TableRowElementWrappingImplementation, ElementWrappingImplementation); |
| 5808 function TableRowElementWrappingImplementation() {} |
| 5809 TableRowElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5810 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5811 } |
| 5812 TableRowElementWrappingImplementation._wrap$ctor.prototype = TableRowElementWrap
pingImplementation.prototype; |
| 5813 TableRowElementWrappingImplementation.prototype.is$html_html_Element = function(
){return true}; |
| 5814 // ********** Code for TableSectionElementWrappingImplementation ************** |
| 5815 $inherits(TableSectionElementWrappingImplementation, ElementWrappingImplementati
on); |
| 5816 function TableSectionElementWrappingImplementation() {} |
| 5817 TableSectionElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5818 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5819 } |
| 5820 TableSectionElementWrappingImplementation._wrap$ctor.prototype = TableSectionEle
mentWrappingImplementation.prototype; |
| 5821 TableSectionElementWrappingImplementation.prototype.is$html_html_Element = funct
ion(){return true}; |
| 5822 // ********** Code for TextAreaElementWrappingImplementation ************** |
| 5823 $inherits(TextAreaElementWrappingImplementation, ElementWrappingImplementation); |
| 5824 function TextAreaElementWrappingImplementation() {} |
| 5825 TextAreaElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5826 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5827 } |
| 5828 TextAreaElementWrappingImplementation._wrap$ctor.prototype = TextAreaElementWrap
pingImplementation.prototype; |
| 5829 TextAreaElementWrappingImplementation.prototype.is$html_html_Element = function(
){return true}; |
| 5830 TextAreaElementWrappingImplementation.prototype.get$name = function() { |
| 5831 return this._ptr.get$name(); |
| 5832 } |
| 5833 TextAreaElementWrappingImplementation.prototype.get$value = function() { |
| 5834 return this._ptr.get$value(); |
| 5835 } |
| 5836 TextAreaElementWrappingImplementation.prototype.set$value = function(value) { |
| 5837 this._ptr.set$value(value); |
| 5838 } |
| 5839 // ********** Code for TitleElementWrappingImplementation ************** |
| 5840 $inherits(TitleElementWrappingImplementation, ElementWrappingImplementation); |
| 5841 function TitleElementWrappingImplementation() {} |
| 5842 TitleElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5843 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5844 } |
| 5845 TitleElementWrappingImplementation._wrap$ctor.prototype = TitleElementWrappingIm
plementation.prototype; |
| 5846 TitleElementWrappingImplementation.prototype.is$html_html_Element = function(){r
eturn true}; |
| 5847 // ********** Code for TrackElementWrappingImplementation ************** |
| 5848 $inherits(TrackElementWrappingImplementation, ElementWrappingImplementation); |
| 5849 function TrackElementWrappingImplementation() {} |
| 5850 TrackElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5851 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5852 } |
| 5853 TrackElementWrappingImplementation._wrap$ctor.prototype = TrackElementWrappingIm
plementation.prototype; |
| 5854 TrackElementWrappingImplementation.prototype.is$html_html_Element = function(){r
eturn true}; |
| 5855 // ********** Code for UListElementWrappingImplementation ************** |
| 5856 $inherits(UListElementWrappingImplementation, ElementWrappingImplementation); |
| 5857 function UListElementWrappingImplementation() {} |
| 5858 UListElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5859 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5860 } |
| 5861 UListElementWrappingImplementation._wrap$ctor.prototype = UListElementWrappingIm
plementation.prototype; |
| 5862 UListElementWrappingImplementation.prototype.is$html_html_Element = function(){r
eturn true}; |
| 5863 // ********** Code for UnknownElementWrappingImplementation ************** |
| 5864 $inherits(UnknownElementWrappingImplementation, ElementWrappingImplementation); |
| 5865 function UnknownElementWrappingImplementation() {} |
| 5866 UnknownElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5867 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5868 } |
| 5869 UnknownElementWrappingImplementation._wrap$ctor.prototype = UnknownElementWrappi
ngImplementation.prototype; |
| 5870 UnknownElementWrappingImplementation.prototype.is$html_html_Element = function()
{return true}; |
| 5871 // ********** Code for VideoElementWrappingImplementation ************** |
| 5872 $inherits(VideoElementWrappingImplementation, MediaElementWrappingImplementation
); |
| 5873 function VideoElementWrappingImplementation() {} |
| 5874 VideoElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5875 MediaElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5876 } |
| 5877 VideoElementWrappingImplementation._wrap$ctor.prototype = VideoElementWrappingIm
plementation.prototype; |
| 5878 VideoElementWrappingImplementation.prototype.is$html_html_Element = function(){r
eturn true}; |
| 5879 // ********** Code for WebGLContextEventWrappingImplementation ************** |
| 5880 $inherits(WebGLContextEventWrappingImplementation, EventWrappingImplementation); |
| 5881 function WebGLContextEventWrappingImplementation() {} |
| 5882 WebGLContextEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 5883 EventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5884 } |
| 5885 WebGLContextEventWrappingImplementation._wrap$ctor.prototype = WebGLContextEvent
WrappingImplementation.prototype; |
| 5886 // ********** Code for LevelDom ************** |
| 5887 function LevelDom() {} |
| 5888 LevelDom.wrapCSSStyleDeclaration = function(raw) { |
| 5889 return raw == null ? null : raw.get$dartObjectLocalStorage() != null ? raw.get
$dartObjectLocalStorage() : new CSSStyleDeclarationWrappingImplementation._wrap$
ctor(raw); |
| 5890 } |
| 5891 LevelDom.wrapDocument = function(raw) { |
| 5892 if (raw == null) { |
| 5893 return null; |
| 5894 } |
| 5895 if (raw.get$dartObjectLocalStorage() != null) { |
| 5896 return raw.get$dartObjectLocalStorage(); |
| 5897 } |
| 5898 switch (raw.get$typeName()) { |
| 5899 case "HTMLDocument": |
| 5900 |
| 5901 return new DocumentWrappingImplementation._wrap$ctor(raw, raw.get$document
Element()); |
| 5902 |
| 5903 case "SVGDocument": |
| 5904 |
| 5905 return new SVGDocumentWrappingImplementation._wrap$ctor(raw); |
| 5906 |
| 5907 default: |
| 5908 |
| 5909 $throw(new UnsupportedOperationException("Unknown type:" + raw.toString$0(
))); |
| 5910 |
| 5911 } |
| 5912 } |
| 5913 LevelDom.wrapElement = function(raw) { |
| 5914 if (raw == null) { |
| 5915 return null; |
| 5916 } |
| 5917 if (raw.get$dartObjectLocalStorage() != null) { |
| 5918 return raw.get$dartObjectLocalStorage(); |
| 5919 } |
| 5920 switch (raw.get$typeName()) { |
| 5921 case "HTMLAnchorElement": |
| 5922 |
| 5923 return new AnchorElementWrappingImplementation._wrap$ctor(raw); |
| 5924 |
| 5925 case "HTMLAreaElement": |
| 5926 |
| 5927 return new AreaElementWrappingImplementation._wrap$ctor(raw); |
| 5928 |
| 5929 case "HTMLAudioElement": |
| 5930 |
| 5931 return new AudioElementWrappingImplementation._wrap$ctor(raw); |
| 5932 |
| 5933 case "HTMLBRElement": |
| 5934 |
| 5935 return new BRElementWrappingImplementation._wrap$ctor(raw); |
| 5936 |
| 5937 case "HTMLBaseElement": |
| 5938 |
| 5939 return new BaseElementWrappingImplementation._wrap$ctor(raw); |
| 5940 |
| 5941 case "HTMLBodyElement": |
| 5942 |
| 5943 return new BodyElementWrappingImplementation._wrap$ctor(raw); |
| 5944 |
| 5945 case "HTMLButtonElement": |
| 5946 |
| 5947 return new ButtonElementWrappingImplementation._wrap$ctor(raw); |
| 5948 |
| 5949 case "HTMLCanvasElement": |
| 5950 |
| 5951 return new CanvasElementWrappingImplementation._wrap$ctor(raw); |
| 5952 |
| 5953 case "HTMLDListElement": |
| 5954 |
| 5955 return new DListElementWrappingImplementation._wrap$ctor(raw); |
| 5956 |
| 5957 case "HTMLDataListElement": |
| 5958 |
| 5959 return new DataListElementWrappingImplementation._wrap$ctor(raw); |
| 5960 |
| 5961 case "HTMLDetailsElement": |
| 5962 |
| 5963 return new DetailsElementWrappingImplementation._wrap$ctor(raw); |
| 5964 |
| 5965 case "HTMLDivElement": |
| 5966 |
| 5967 return new DivElementWrappingImplementation._wrap$ctor(raw); |
| 5968 |
| 5969 case "HTMLElement": |
| 5970 |
| 5971 return new ElementWrappingImplementation._wrap$ctor(raw); |
| 5972 |
| 5973 case "HTMLEmbedElement": |
| 5974 |
| 5975 return new EmbedElementWrappingImplementation._wrap$ctor(raw); |
| 5976 |
| 5977 case "HTMLFieldSetElement": |
| 5978 |
| 5979 return new FieldSetElementWrappingImplementation._wrap$ctor(raw); |
| 5980 |
| 5981 case "HTMLFontElement": |
| 5982 |
| 5983 return new FontElementWrappingImplementation._wrap$ctor(raw); |
| 5984 |
| 5985 case "HTMLFormElement": |
| 5986 |
| 5987 return new FormElementWrappingImplementation._wrap$ctor(raw); |
| 5988 |
| 5989 case "HTMLHRElement": |
| 5990 |
| 5991 return new HRElementWrappingImplementation._wrap$ctor(raw); |
| 5992 |
| 5993 case "HTMLHeadElement": |
| 5994 |
| 5995 return new HeadElementWrappingImplementation._wrap$ctor(raw); |
| 5996 |
| 5997 case "HTMLHeadingElement": |
| 5998 |
| 5999 return new HeadingElementWrappingImplementation._wrap$ctor(raw); |
| 6000 |
| 6001 case "HTMLHtmlElement": |
| 6002 |
| 6003 return new DocumentWrappingImplementation._wrap$ctor(raw.get$parentNode(),
raw); |
| 6004 |
| 6005 case "HTMLIFrameElement": |
| 6006 |
| 6007 return new IFrameElementWrappingImplementation._wrap$ctor(raw); |
| 6008 |
| 6009 case "HTMLImageElement": |
| 6010 |
| 6011 return new ImageElementWrappingImplementation._wrap$ctor(raw); |
| 6012 |
| 6013 case "HTMLInputElement": |
| 6014 |
| 6015 return new InputElementWrappingImplementation._wrap$ctor(raw); |
| 6016 |
| 6017 case "HTMLKeygenElement": |
| 6018 |
| 6019 return new KeygenElementWrappingImplementation._wrap$ctor(raw); |
| 6020 |
| 6021 case "HTMLLIElement": |
| 6022 |
| 6023 return new LIElementWrappingImplementation._wrap$ctor(raw); |
| 6024 |
| 6025 case "HTMLLabelElement": |
| 6026 |
| 6027 return new LabelElementWrappingImplementation._wrap$ctor(raw); |
| 6028 |
| 6029 case "HTMLLegendElement": |
| 6030 |
| 6031 return new LegendElementWrappingImplementation._wrap$ctor(raw); |
| 6032 |
| 6033 case "HTMLLinkElement": |
| 6034 |
| 6035 return new LinkElementWrappingImplementation._wrap$ctor(raw); |
| 6036 |
| 6037 case "HTMLMapElement": |
| 6038 |
| 6039 return new MapElementWrappingImplementation._wrap$ctor(raw); |
| 6040 |
| 6041 case "HTMLMarqueeElement": |
| 6042 |
| 6043 return new MarqueeElementWrappingImplementation._wrap$ctor(raw); |
| 6044 |
| 6045 case "HTMLMediaElement": |
| 6046 |
| 6047 return new MediaElementWrappingImplementation._wrap$ctor(raw); |
| 6048 |
| 6049 case "HTMLMenuElement": |
| 6050 |
| 6051 return new MenuElementWrappingImplementation._wrap$ctor(raw); |
| 6052 |
| 6053 case "HTMLMetaElement": |
| 6054 |
| 6055 return new MetaElementWrappingImplementation._wrap$ctor(raw); |
| 6056 |
| 6057 case "HTMLMeterElement": |
| 6058 |
| 6059 return new MeterElementWrappingImplementation._wrap$ctor(raw); |
| 6060 |
| 6061 case "HTMLModElement": |
| 6062 |
| 6063 return new ModElementWrappingImplementation._wrap$ctor(raw); |
| 6064 |
| 6065 case "HTMLOListElement": |
| 6066 |
| 6067 return new OListElementWrappingImplementation._wrap$ctor(raw); |
| 6068 |
| 6069 case "HTMLObjectElement": |
| 6070 |
| 6071 return new ObjectElementWrappingImplementation._wrap$ctor(raw); |
| 6072 |
| 6073 case "HTMLOptGroupElement": |
| 6074 |
| 6075 return new OptGroupElementWrappingImplementation._wrap$ctor(raw); |
| 6076 |
| 6077 case "HTMLOptionElement": |
| 6078 |
| 6079 return new OptionElementWrappingImplementation._wrap$ctor(raw); |
| 6080 |
| 6081 case "HTMLOutputElement": |
| 6082 |
| 6083 return new OutputElementWrappingImplementation._wrap$ctor(raw); |
| 6084 |
| 6085 case "HTMLParagraphElement": |
| 6086 |
| 6087 return new ParagraphElementWrappingImplementation._wrap$ctor(raw); |
| 6088 |
| 6089 case "HTMLParamElement": |
| 6090 |
| 6091 return new ParamElementWrappingImplementation._wrap$ctor(raw); |
| 6092 |
| 6093 case "HTMLPreElement": |
| 6094 |
| 6095 return new PreElementWrappingImplementation._wrap$ctor(raw); |
| 6096 |
| 6097 case "HTMLProgressElement": |
| 6098 |
| 6099 return new ProgressElementWrappingImplementation._wrap$ctor(raw); |
| 6100 |
| 6101 case "HTMLQuoteElement": |
| 6102 |
| 6103 return new QuoteElementWrappingImplementation._wrap$ctor(raw); |
| 6104 |
| 6105 case "SVGAElement": |
| 6106 |
| 6107 return new SVGAElementWrappingImplementation._wrap$ctor(raw); |
| 6108 |
| 6109 case "SVGAltGlyphDefElement": |
| 6110 |
| 6111 return new SVGAltGlyphDefElementWrappingImplementation._wrap$ctor(raw); |
| 6112 |
| 6113 case "SVGAltGlyphElement": |
| 6114 |
| 6115 return new SVGAltGlyphElementWrappingImplementation._wrap$ctor(raw); |
| 6116 |
| 6117 case "SVGAltGlyphItemElement": |
| 6118 |
| 6119 return new SVGAltGlyphItemElementWrappingImplementation._wrap$ctor(raw); |
| 6120 |
| 6121 case "SVGAnimateColorElement": |
| 6122 |
| 6123 return new SVGAnimateColorElementWrappingImplementation._wrap$ctor(raw); |
| 6124 |
| 6125 case "SVGAnimateElement": |
| 6126 |
| 6127 return new SVGAnimateElementWrappingImplementation._wrap$ctor(raw); |
| 6128 |
| 6129 case "SVGAnimateMotionElement": |
| 6130 |
| 6131 return new SVGAnimateMotionElementWrappingImplementation._wrap$ctor(raw); |
| 6132 |
| 6133 case "SVGAnimateTransformElement": |
| 6134 |
| 6135 return new SVGAnimateTransformElementWrappingImplementation._wrap$ctor(raw
); |
| 6136 |
| 6137 case "SVGAnimationElement": |
| 6138 |
| 6139 return new SVGAnimationElementWrappingImplementation._wrap$ctor(raw); |
| 6140 |
| 6141 case "SVGCircleElement": |
| 6142 |
| 6143 return new SVGCircleElementWrappingImplementation._wrap$ctor(raw); |
| 6144 |
| 6145 case "SVGClipPathElement": |
| 6146 |
| 6147 return new SVGClipPathElementWrappingImplementation._wrap$ctor(raw); |
| 6148 |
| 6149 case "SVGComponentTransferFunctionElement": |
| 6150 |
| 6151 return new SVGComponentTransferFunctionElementWrappingImplementation._wrap
$ctor(raw); |
| 6152 |
| 6153 case "SVGCursorElement": |
| 6154 |
| 6155 return new SVGCursorElementWrappingImplementation._wrap$ctor(raw); |
| 6156 |
| 6157 case "SVGDefsElement": |
| 6158 |
| 6159 return new SVGDefsElementWrappingImplementation._wrap$ctor(raw); |
| 6160 |
| 6161 case "SVGDescElement": |
| 6162 |
| 6163 return new SVGDescElementWrappingImplementation._wrap$ctor(raw); |
| 6164 |
| 6165 case "SVGElement": |
| 6166 |
| 6167 return new SVGElementWrappingImplementation._wrap$ctor(raw); |
| 6168 |
| 6169 case "SVGEllipseElement": |
| 6170 |
| 6171 return new SVGEllipseElementWrappingImplementation._wrap$ctor(raw); |
| 6172 |
| 6173 case "SVGFEBlendElement": |
| 6174 |
| 6175 return new SVGFEBlendElementWrappingImplementation._wrap$ctor(raw); |
| 6176 |
| 6177 case "SVGFEColorMatrixElement": |
| 6178 |
| 6179 return new SVGFEColorMatrixElementWrappingImplementation._wrap$ctor(raw); |
| 6180 |
| 6181 case "SVGFEComponentTransferElement": |
| 6182 |
| 6183 return new SVGFEComponentTransferElementWrappingImplementation._wrap$ctor(
raw); |
| 6184 |
| 6185 case "SVGFEConvolveMatrixElement": |
| 6186 |
| 6187 return new SVGFEConvolveMatrixElementWrappingImplementation._wrap$ctor(raw
); |
| 6188 |
| 6189 case "SVGFEDiffuseLightingElement": |
| 6190 |
| 6191 return new SVGFEDiffuseLightingElementWrappingImplementation._wrap$ctor(ra
w); |
| 6192 |
| 6193 case "SVGFEDisplacementMapElement": |
| 6194 |
| 6195 return new SVGFEDisplacementMapElementWrappingImplementation._wrap$ctor(ra
w); |
| 6196 |
| 6197 case "SVGFEDistantLightElement": |
| 6198 |
| 6199 return new SVGFEDistantLightElementWrappingImplementation._wrap$ctor(raw); |
| 6200 |
| 6201 case "SVGFEDropShadowElement": |
| 6202 |
| 6203 return new SVGFEDropShadowElementWrappingImplementation._wrap$ctor(raw); |
| 6204 |
| 6205 case "SVGFEFloodElement": |
| 6206 |
| 6207 return new SVGFEFloodElementWrappingImplementation._wrap$ctor(raw); |
| 6208 |
| 6209 case "SVGFEFuncAElement": |
| 6210 |
| 6211 return new SVGFEFuncAElementWrappingImplementation._wrap$ctor(raw); |
| 6212 |
| 6213 case "SVGFEFuncBElement": |
| 6214 |
| 6215 return new SVGFEFuncBElementWrappingImplementation._wrap$ctor(raw); |
| 6216 |
| 6217 case "SVGFEFuncGElement": |
| 6218 |
| 6219 return new SVGFEFuncGElementWrappingImplementation._wrap$ctor(raw); |
| 6220 |
| 6221 case "SVGFEFuncRElement": |
| 6222 |
| 6223 return new SVGFEFuncRElementWrappingImplementation._wrap$ctor(raw); |
| 6224 |
| 6225 case "SVGFEGaussianBlurElement": |
| 6226 |
| 6227 return new SVGFEGaussianBlurElementWrappingImplementation._wrap$ctor(raw); |
| 6228 |
| 6229 case "SVGFEImageElement": |
| 6230 |
| 6231 return new SVGFEImageElementWrappingImplementation._wrap$ctor(raw); |
| 6232 |
| 6233 case "SVGFEMergeElement": |
| 6234 |
| 6235 return new SVGFEMergeElementWrappingImplementation._wrap$ctor(raw); |
| 6236 |
| 6237 case "SVGFEMergeNodeElement": |
| 6238 |
| 6239 return new SVGFEMergeNodeElementWrappingImplementation._wrap$ctor(raw); |
| 6240 |
| 6241 case "SVGFEOffsetElement": |
| 6242 |
| 6243 return new SVGFEOffsetElementWrappingImplementation._wrap$ctor(raw); |
| 6244 |
| 6245 case "SVGFEPointLightElement": |
| 6246 |
| 6247 return new SVGFEPointLightElementWrappingImplementation._wrap$ctor(raw); |
| 6248 |
| 6249 case "SVGFESpecularLightingElement": |
| 6250 |
| 6251 return new SVGFESpecularLightingElementWrappingImplementation._wrap$ctor(r
aw); |
| 6252 |
| 6253 case "SVGFESpotLightElement": |
| 6254 |
| 6255 return new SVGFESpotLightElementWrappingImplementation._wrap$ctor(raw); |
| 6256 |
| 6257 case "SVGFETileElement": |
| 6258 |
| 6259 return new SVGFETileElementWrappingImplementation._wrap$ctor(raw); |
| 6260 |
| 6261 case "SVGFETurbulenceElement": |
| 6262 |
| 6263 return new SVGFETurbulenceElementWrappingImplementation._wrap$ctor(raw); |
| 6264 |
| 6265 case "SVGFilterElement": |
| 6266 |
| 6267 return new SVGFilterElementWrappingImplementation._wrap$ctor(raw); |
| 6268 |
| 6269 case "SVGFontElement": |
| 6270 |
| 6271 return new SVGFontElementWrappingImplementation._wrap$ctor(raw); |
| 6272 |
| 6273 case "SVGFontFaceElement": |
| 6274 |
| 6275 return new SVGFontFaceElementWrappingImplementation._wrap$ctor(raw); |
| 6276 |
| 6277 case "SVGFontFaceFormatElement": |
| 6278 |
| 6279 return new SVGFontFaceFormatElementWrappingImplementation._wrap$ctor(raw); |
| 6280 |
| 6281 case "SVGFontFaceNameElement": |
| 6282 |
| 6283 return new SVGFontFaceNameElementWrappingImplementation._wrap$ctor(raw); |
| 6284 |
| 6285 case "SVGFontFaceSrcElement": |
| 6286 |
| 6287 return new SVGFontFaceSrcElementWrappingImplementation._wrap$ctor(raw); |
| 6288 |
| 6289 case "SVGFontFaceUriElement": |
| 6290 |
| 6291 return new SVGFontFaceUriElementWrappingImplementation._wrap$ctor(raw); |
| 6292 |
| 6293 case "SVGForeignObjectElement": |
| 6294 |
| 6295 return new SVGForeignObjectElementWrappingImplementation._wrap$ctor(raw); |
| 6296 |
| 6297 case "SVGGElement": |
| 6298 |
| 6299 return new SVGGElementWrappingImplementation._wrap$ctor(raw); |
| 6300 |
| 6301 case "SVGGlyphElement": |
| 6302 |
| 6303 return new SVGGlyphElementWrappingImplementation._wrap$ctor(raw); |
| 6304 |
| 6305 case "SVGGlyphRefElement": |
| 6306 |
| 6307 return new SVGGlyphRefElementWrappingImplementation._wrap$ctor(raw); |
| 6308 |
| 6309 case "SVGGradientElement": |
| 6310 |
| 6311 return new SVGGradientElementWrappingImplementation._wrap$ctor(raw); |
| 6312 |
| 6313 case "SVGHKernElement": |
| 6314 |
| 6315 return new SVGHKernElementWrappingImplementation._wrap$ctor(raw); |
| 6316 |
| 6317 case "SVGImageElement": |
| 6318 |
| 6319 return new SVGImageElementWrappingImplementation._wrap$ctor(raw); |
| 6320 |
| 6321 case "SVGLineElement": |
| 6322 |
| 6323 return new SVGLineElementWrappingImplementation._wrap$ctor(raw); |
| 6324 |
| 6325 case "SVGLinearGradientElement": |
| 6326 |
| 6327 return new SVGLinearGradientElementWrappingImplementation._wrap$ctor(raw); |
| 6328 |
| 6329 case "SVGMPathElement": |
| 6330 |
| 6331 return new SVGMPathElementWrappingImplementation._wrap$ctor(raw); |
| 6332 |
| 6333 case "SVGMarkerElement": |
| 6334 |
| 6335 return new SVGMarkerElementWrappingImplementation._wrap$ctor(raw); |
| 6336 |
| 6337 case "SVGMaskElement": |
| 6338 |
| 6339 return new SVGMaskElementWrappingImplementation._wrap$ctor(raw); |
| 6340 |
| 6341 case "SVGMetadataElement": |
| 6342 |
| 6343 return new SVGMetadataElementWrappingImplementation._wrap$ctor(raw); |
| 6344 |
| 6345 case "SVGMissingGlyphElement": |
| 6346 |
| 6347 return new SVGMissingGlyphElementWrappingImplementation._wrap$ctor(raw); |
| 6348 |
| 6349 case "SVGPathElement": |
| 6350 |
| 6351 return new SVGPathElementWrappingImplementation._wrap$ctor(raw); |
| 6352 |
| 6353 case "SVGPatternElement": |
| 6354 |
| 6355 return new SVGPatternElementWrappingImplementation._wrap$ctor(raw); |
| 6356 |
| 6357 case "SVGPolygonElement": |
| 6358 |
| 6359 return new SVGPolygonElementWrappingImplementation._wrap$ctor(raw); |
| 6360 |
| 6361 case "SVGPolylineElement": |
| 6362 |
| 6363 return new SVGPolylineElementWrappingImplementation._wrap$ctor(raw); |
| 6364 |
| 6365 case "SVGRadialGradientElement": |
| 6366 |
| 6367 return new SVGRadialGradientElementWrappingImplementation._wrap$ctor(raw); |
| 6368 |
| 6369 case "SVGRectElement": |
| 6370 |
| 6371 return new SVGRectElementWrappingImplementation._wrap$ctor(raw); |
| 6372 |
| 6373 case "SVGSVGElement": |
| 6374 |
| 6375 return new SVGSVGElementWrappingImplementation._wrap$ctor(raw); |
| 6376 |
| 6377 case "SVGScriptElement": |
| 6378 |
| 6379 return new SVGScriptElementWrappingImplementation._wrap$ctor(raw); |
| 6380 |
| 6381 case "SVGSetElement": |
| 6382 |
| 6383 return new SVGSetElementWrappingImplementation._wrap$ctor(raw); |
| 6384 |
| 6385 case "SVGStopElement": |
| 6386 |
| 6387 return new SVGStopElementWrappingImplementation._wrap$ctor(raw); |
| 6388 |
| 6389 case "SVGStyleElement": |
| 6390 |
| 6391 return new SVGStyleElementWrappingImplementation._wrap$ctor(raw); |
| 6392 |
| 6393 case "SVGSwitchElement": |
| 6394 |
| 6395 return new SVGSwitchElementWrappingImplementation._wrap$ctor(raw); |
| 6396 |
| 6397 case "SVGSymbolElement": |
| 6398 |
| 6399 return new SVGSymbolElementWrappingImplementation._wrap$ctor(raw); |
| 6400 |
| 6401 case "SVGTRefElement": |
| 6402 |
| 6403 return new SVGTRefElementWrappingImplementation._wrap$ctor(raw); |
| 6404 |
| 6405 case "SVGTSpanElement": |
| 6406 |
| 6407 return new SVGTSpanElementWrappingImplementation._wrap$ctor(raw); |
| 6408 |
| 6409 case "SVGTextContentElement": |
| 6410 |
| 6411 return new SVGTextContentElementWrappingImplementation._wrap$ctor(raw); |
| 6412 |
| 6413 case "SVGTextElement": |
| 6414 |
| 6415 return new SVGTextElementWrappingImplementation._wrap$ctor(raw); |
| 6416 |
| 6417 case "SVGTextPathElement": |
| 6418 |
| 6419 return new SVGTextPathElementWrappingImplementation._wrap$ctor(raw); |
| 6420 |
| 6421 case "SVGTextPositioningElement": |
| 6422 |
| 6423 return new SVGTextPositioningElementWrappingImplementation._wrap$ctor(raw)
; |
| 6424 |
| 6425 case "SVGTitleElement": |
| 6426 |
| 6427 return new SVGTitleElementWrappingImplementation._wrap$ctor(raw); |
| 6428 |
| 6429 case "SVGUseElement": |
| 6430 |
| 6431 return new SVGUseElementWrappingImplementation._wrap$ctor(raw); |
| 6432 |
| 6433 case "SVGVKernElement": |
| 6434 |
| 6435 return new SVGVKernElementWrappingImplementation._wrap$ctor(raw); |
| 6436 |
| 6437 case "SVGViewElement": |
| 6438 |
| 6439 return new SVGViewElementWrappingImplementation._wrap$ctor(raw); |
| 6440 |
| 6441 case "HTMLScriptElement": |
| 6442 |
| 6443 return new ScriptElementWrappingImplementation._wrap$ctor(raw); |
| 6444 |
| 6445 case "HTMLSelectElement": |
| 6446 |
| 6447 return new SelectElementWrappingImplementation._wrap$ctor(raw); |
| 6448 |
| 6449 case "HTMLSourceElement": |
| 6450 |
| 6451 return new SourceElementWrappingImplementation._wrap$ctor(raw); |
| 6452 |
| 6453 case "HTMLSpanElement": |
| 6454 |
| 6455 return new SpanElementWrappingImplementation._wrap$ctor(raw); |
| 6456 |
| 6457 case "HTMLStyleElement": |
| 6458 |
| 6459 return new StyleElementWrappingImplementation._wrap$ctor(raw); |
| 6460 |
| 6461 case "HTMLTableCaptionElement": |
| 6462 |
| 6463 return new TableCaptionElementWrappingImplementation._wrap$ctor(raw); |
| 6464 |
| 6465 case "HTMLTableCellElement": |
| 6466 |
| 6467 return new TableCellElementWrappingImplementation._wrap$ctor(raw); |
| 6468 |
| 6469 case "HTMLTableColElement": |
| 6470 |
| 6471 return new TableColElementWrappingImplementation._wrap$ctor(raw); |
| 6472 |
| 6473 case "HTMLTableElement": |
| 6474 |
| 6475 return new TableElementWrappingImplementation._wrap$ctor(raw); |
| 6476 |
| 6477 case "HTMLTableRowElement": |
| 6478 |
| 6479 return new TableRowElementWrappingImplementation._wrap$ctor(raw); |
| 6480 |
| 6481 case "HTMLTableSectionElement": |
| 6482 |
| 6483 return new TableSectionElementWrappingImplementation._wrap$ctor(raw); |
| 6484 |
| 6485 case "HTMLTextAreaElement": |
| 6486 |
| 6487 return new TextAreaElementWrappingImplementation._wrap$ctor(raw); |
| 6488 |
| 6489 case "HTMLTitleElement": |
| 6490 |
| 6491 return new TitleElementWrappingImplementation._wrap$ctor(raw); |
| 6492 |
| 6493 case "HTMLTrackElement": |
| 6494 |
| 6495 return new TrackElementWrappingImplementation._wrap$ctor(raw); |
| 6496 |
| 6497 case "HTMLUListElement": |
| 6498 |
| 6499 return new UListElementWrappingImplementation._wrap$ctor(raw); |
| 6500 |
| 6501 case "HTMLUnknownElement": |
| 6502 |
| 6503 return new UnknownElementWrappingImplementation._wrap$ctor(raw); |
| 6504 |
| 6505 case "HTMLVideoElement": |
| 6506 |
| 6507 return new VideoElementWrappingImplementation._wrap$ctor(raw); |
| 6508 |
| 6509 default: |
| 6510 |
| 6511 $throw(new UnsupportedOperationException("Unknown type:" + raw.toString$0(
))); |
| 6512 |
| 6513 } |
| 6514 } |
| 6515 LevelDom.wrapElementList = function(raw) { |
| 6516 return raw == null ? null : new FrozenElementList._wrap$ctor(raw); |
| 6517 } |
| 6518 LevelDom.wrapEvent = function(raw) { |
| 6519 if (raw == null) { |
| 6520 return null; |
| 6521 } |
| 6522 if (raw.get$dartObjectLocalStorage() != null) { |
| 6523 return raw.get$dartObjectLocalStorage(); |
| 6524 } |
| 6525 switch (raw.get$typeName()) { |
| 6526 case "WebKitAnimationEvent": |
| 6527 |
| 6528 return new AnimationEventWrappingImplementation._wrap$ctor(raw); |
| 6529 |
| 6530 case "AudioProcessingEvent": |
| 6531 |
| 6532 return new AudioProcessingEventWrappingImplementation._wrap$ctor(raw); |
| 6533 |
| 6534 case "BeforeLoadEvent": |
| 6535 |
| 6536 return new BeforeLoadEventWrappingImplementation._wrap$ctor(raw); |
| 6537 |
| 6538 case "CloseEvent": |
| 6539 |
| 6540 return new CloseEventWrappingImplementation._wrap$ctor(raw); |
| 6541 |
| 6542 case "CompositionEvent": |
| 6543 |
| 6544 return new CompositionEventWrappingImplementation._wrap$ctor(raw); |
| 6545 |
| 6546 case "CustomEvent": |
| 6547 |
| 6548 return new CustomEventWrappingImplementation._wrap$ctor(raw); |
| 6549 |
| 6550 case "DeviceMotionEvent": |
| 6551 |
| 6552 return new DeviceMotionEventWrappingImplementation._wrap$ctor(raw); |
| 6553 |
| 6554 case "DeviceOrientationEvent": |
| 6555 |
| 6556 return new DeviceOrientationEventWrappingImplementation._wrap$ctor(raw); |
| 6557 |
| 6558 case "ErrorEvent": |
| 6559 |
| 6560 return new ErrorEventWrappingImplementation._wrap$ctor(raw); |
| 6561 |
| 6562 case "Event": |
| 6563 |
| 6564 return new EventWrappingImplementation._wrap$ctor(raw); |
| 6565 |
| 6566 case "HashChangeEvent": |
| 6567 |
| 6568 return new HashChangeEventWrappingImplementation._wrap$ctor(raw); |
| 6569 |
| 6570 case "IDBVersionChangeEvent": |
| 6571 |
| 6572 return new IDBVersionChangeEventWrappingImplementation._wrap$ctor(raw); |
| 6573 |
| 6574 case "KeyboardEvent": |
| 6575 |
| 6576 return new KeyboardEventWrappingImplementation._wrap$ctor(raw); |
| 6577 |
| 6578 case "MessageEvent": |
| 6579 |
| 6580 return new MessageEventWrappingImplementation._wrap$ctor(raw); |
| 6581 |
| 6582 case "MouseEvent": |
| 6583 |
| 6584 return new MouseEventWrappingImplementation._wrap$ctor(raw); |
| 6585 |
| 6586 case "MutationEvent": |
| 6587 |
| 6588 return new MutationEventWrappingImplementation._wrap$ctor(raw); |
| 6589 |
| 6590 case "OfflineAudioCompletionEvent": |
| 6591 |
| 6592 return new OfflineAudioCompletionEventWrappingImplementation._wrap$ctor(ra
w); |
| 6593 |
| 6594 case "OverflowEvent": |
| 6595 |
| 6596 return new OverflowEventWrappingImplementation._wrap$ctor(raw); |
| 6597 |
| 6598 case "PageTransitionEvent": |
| 6599 |
| 6600 return new PageTransitionEventWrappingImplementation._wrap$ctor(raw); |
| 6601 |
| 6602 case "PopStateEvent": |
| 6603 |
| 6604 return new PopStateEventWrappingImplementation._wrap$ctor(raw); |
| 6605 |
| 6606 case "ProgressEvent": |
| 6607 |
| 6608 return new ProgressEventWrappingImplementation._wrap$ctor(raw); |
| 6609 |
| 6610 case "SVGZoomEvent": |
| 6611 |
| 6612 return new SVGZoomEventWrappingImplementation._wrap$ctor(raw); |
| 6613 |
| 6614 case "SpeechInputEvent": |
| 6615 |
| 6616 return new SpeechInputEventWrappingImplementation._wrap$ctor(raw); |
| 6617 |
| 6618 case "StorageEvent": |
| 6619 |
| 6620 return new StorageEventWrappingImplementation._wrap$ctor(raw); |
| 6621 |
| 6622 case "TextEvent": |
| 6623 |
| 6624 return new TextEventWrappingImplementation._wrap$ctor(raw); |
| 6625 |
| 6626 case "TouchEvent": |
| 6627 |
| 6628 return new TouchEventWrappingImplementation._wrap$ctor(raw); |
| 6629 |
| 6630 case "WebKitTransitionEvent": |
| 6631 |
| 6632 return new TransitionEventWrappingImplementation._wrap$ctor(raw); |
| 6633 |
| 6634 case "UIEvent": |
| 6635 |
| 6636 return new UIEventWrappingImplementation._wrap$ctor(raw); |
| 6637 |
| 6638 case "WebGLContextEvent": |
| 6639 |
| 6640 return new WebGLContextEventWrappingImplementation._wrap$ctor(raw); |
| 6641 |
| 6642 case "WheelEvent": |
| 6643 |
| 6644 return new WheelEventWrappingImplementation._wrap$ctor(raw); |
| 6645 |
| 6646 case "XMLHttpRequestProgressEvent": |
| 6647 |
| 6648 return new XMLHttpRequestProgressEventWrappingImplementation._wrap$ctor(ra
w); |
| 6649 |
| 6650 default: |
| 6651 |
| 6652 $throw(new UnsupportedOperationException("Unknown type:" + raw.toString$0(
))); |
| 6653 |
| 6654 } |
| 6655 } |
| 6656 LevelDom.wrapNode = function(raw) { |
| 6657 if (raw == null) { |
| 6658 return null; |
| 6659 } |
| 6660 if (raw.get$dartObjectLocalStorage() != null) { |
| 6661 return raw.get$dartObjectLocalStorage(); |
| 6662 } |
| 6663 switch (raw.get$typeName()) { |
| 6664 case "HTMLAnchorElement": |
| 6665 |
| 6666 return new AnchorElementWrappingImplementation._wrap$ctor(raw); |
| 6667 |
| 6668 case "HTMLAreaElement": |
| 6669 |
| 6670 return new AreaElementWrappingImplementation._wrap$ctor(raw); |
| 6671 |
| 6672 case "HTMLAudioElement": |
| 6673 |
| 6674 return new AudioElementWrappingImplementation._wrap$ctor(raw); |
| 6675 |
| 6676 case "HTMLBRElement": |
| 6677 |
| 6678 return new BRElementWrappingImplementation._wrap$ctor(raw); |
| 6679 |
| 6680 case "HTMLBaseElement": |
| 6681 |
| 6682 return new BaseElementWrappingImplementation._wrap$ctor(raw); |
| 6683 |
| 6684 case "HTMLBodyElement": |
| 6685 |
| 6686 return new BodyElementWrappingImplementation._wrap$ctor(raw); |
| 6687 |
| 6688 case "HTMLButtonElement": |
| 6689 |
| 6690 return new ButtonElementWrappingImplementation._wrap$ctor(raw); |
| 6691 |
| 6692 case "CDATASection": |
| 6693 |
| 6694 return new CDATASectionWrappingImplementation._wrap$ctor(raw); |
| 6695 |
| 6696 case "HTMLCanvasElement": |
| 6697 |
| 6698 return new CanvasElementWrappingImplementation._wrap$ctor(raw); |
| 6699 |
| 6700 case "CharacterData": |
| 6701 |
| 6702 return new CharacterDataWrappingImplementation._wrap$ctor(raw); |
| 6703 |
| 6704 case "Comment": |
| 6705 |
| 6706 return new CommentWrappingImplementation._wrap$ctor(raw); |
| 6707 |
| 6708 case "HTMLDListElement": |
| 6709 |
| 6710 return new DListElementWrappingImplementation._wrap$ctor(raw); |
| 6711 |
| 6712 case "HTMLDataListElement": |
| 6713 |
| 6714 return new DataListElementWrappingImplementation._wrap$ctor(raw); |
| 6715 |
| 6716 case "HTMLDetailsElement": |
| 6717 |
| 6718 return new DetailsElementWrappingImplementation._wrap$ctor(raw); |
| 6719 |
| 6720 case "HTMLDivElement": |
| 6721 |
| 6722 return new DivElementWrappingImplementation._wrap$ctor(raw); |
| 6723 |
| 6724 case "HTMLDocument": |
| 6725 |
| 6726 return new DocumentWrappingImplementation._wrap$ctor(raw, raw.get$document
Element()); |
| 6727 |
| 6728 case "DocumentFragment": |
| 6729 |
| 6730 return new DocumentFragmentWrappingImplementation._wrap$ctor(raw); |
| 6731 |
| 6732 case "HTMLElement": |
| 6733 |
| 6734 return new ElementWrappingImplementation._wrap$ctor(raw); |
| 6735 |
| 6736 case "HTMLEmbedElement": |
| 6737 |
| 6738 return new EmbedElementWrappingImplementation._wrap$ctor(raw); |
| 6739 |
| 6740 case "Entity": |
| 6741 |
| 6742 return new EntityWrappingImplementation._wrap$ctor(raw); |
| 6743 |
| 6744 case "EntityReference": |
| 6745 |
| 6746 return new EntityReferenceWrappingImplementation._wrap$ctor(raw); |
| 6747 |
| 6748 case "HTMLFieldSetElement": |
| 6749 |
| 6750 return new FieldSetElementWrappingImplementation._wrap$ctor(raw); |
| 6751 |
| 6752 case "HTMLFontElement": |
| 6753 |
| 6754 return new FontElementWrappingImplementation._wrap$ctor(raw); |
| 6755 |
| 6756 case "HTMLFormElement": |
| 6757 |
| 6758 return new FormElementWrappingImplementation._wrap$ctor(raw); |
| 6759 |
| 6760 case "HTMLHRElement": |
| 6761 |
| 6762 return new HRElementWrappingImplementation._wrap$ctor(raw); |
| 6763 |
| 6764 case "HTMLHeadElement": |
| 6765 |
| 6766 return new HeadElementWrappingImplementation._wrap$ctor(raw); |
| 6767 |
| 6768 case "HTMLHeadingElement": |
| 6769 |
| 6770 return new HeadingElementWrappingImplementation._wrap$ctor(raw); |
| 6771 |
| 6772 case "HTMLHtmlElement": |
| 6773 |
| 6774 return new DocumentWrappingImplementation._wrap$ctor(raw.get$parentNode(),
raw); |
| 6775 |
| 6776 case "HTMLIFrameElement": |
| 6777 |
| 6778 return new IFrameElementWrappingImplementation._wrap$ctor(raw); |
| 6779 |
| 6780 case "HTMLImageElement": |
| 6781 |
| 6782 return new ImageElementWrappingImplementation._wrap$ctor(raw); |
| 6783 |
| 6784 case "HTMLInputElement": |
| 6785 |
| 6786 return new InputElementWrappingImplementation._wrap$ctor(raw); |
| 6787 |
| 6788 case "HTMLKeygenElement": |
| 6789 |
| 6790 return new KeygenElementWrappingImplementation._wrap$ctor(raw); |
| 6791 |
| 6792 case "HTMLLIElement": |
| 6793 |
| 6794 return new LIElementWrappingImplementation._wrap$ctor(raw); |
| 6795 |
| 6796 case "HTMLLabelElement": |
| 6797 |
| 6798 return new LabelElementWrappingImplementation._wrap$ctor(raw); |
| 6799 |
| 6800 case "HTMLLegendElement": |
| 6801 |
| 6802 return new LegendElementWrappingImplementation._wrap$ctor(raw); |
| 6803 |
| 6804 case "HTMLLinkElement": |
| 6805 |
| 6806 return new LinkElementWrappingImplementation._wrap$ctor(raw); |
| 6807 |
| 6808 case "HTMLMapElement": |
| 6809 |
| 6810 return new MapElementWrappingImplementation._wrap$ctor(raw); |
| 6811 |
| 6812 case "HTMLMarqueeElement": |
| 6813 |
| 6814 return new MarqueeElementWrappingImplementation._wrap$ctor(raw); |
| 6815 |
| 6816 case "HTMLMediaElement": |
| 6817 |
| 6818 return new MediaElementWrappingImplementation._wrap$ctor(raw); |
| 6819 |
| 6820 case "HTMLMenuElement": |
| 6821 |
| 6822 return new MenuElementWrappingImplementation._wrap$ctor(raw); |
| 6823 |
| 6824 case "HTMLMetaElement": |
| 6825 |
| 6826 return new MetaElementWrappingImplementation._wrap$ctor(raw); |
| 6827 |
| 6828 case "HTMLMeterElement": |
| 6829 |
| 6830 return new MeterElementWrappingImplementation._wrap$ctor(raw); |
| 6831 |
| 6832 case "HTMLModElement": |
| 6833 |
| 6834 return new ModElementWrappingImplementation._wrap$ctor(raw); |
| 6835 |
| 6836 case "Node": |
| 6837 |
| 6838 return new NodeWrappingImplementation._wrap$ctor(raw); |
| 6839 |
| 6840 case "Notation": |
| 6841 |
| 6842 return new NotationWrappingImplementation._wrap$ctor(raw); |
| 6843 |
| 6844 case "HTMLOListElement": |
| 6845 |
| 6846 return new OListElementWrappingImplementation._wrap$ctor(raw); |
| 6847 |
| 6848 case "HTMLObjectElement": |
| 6849 |
| 6850 return new ObjectElementWrappingImplementation._wrap$ctor(raw); |
| 6851 |
| 6852 case "HTMLOptGroupElement": |
| 6853 |
| 6854 return new OptGroupElementWrappingImplementation._wrap$ctor(raw); |
| 6855 |
| 6856 case "HTMLOptionElement": |
| 6857 |
| 6858 return new OptionElementWrappingImplementation._wrap$ctor(raw); |
| 6859 |
| 6860 case "HTMLOutputElement": |
| 6861 |
| 6862 return new OutputElementWrappingImplementation._wrap$ctor(raw); |
| 6863 |
| 6864 case "HTMLParagraphElement": |
| 6865 |
| 6866 return new ParagraphElementWrappingImplementation._wrap$ctor(raw); |
| 6867 |
| 6868 case "HTMLParamElement": |
| 6869 |
| 6870 return new ParamElementWrappingImplementation._wrap$ctor(raw); |
| 6871 |
| 6872 case "HTMLPreElement": |
| 6873 |
| 6874 return new PreElementWrappingImplementation._wrap$ctor(raw); |
| 6875 |
| 6876 case "ProcessingInstruction": |
| 6877 |
| 6878 return new ProcessingInstructionWrappingImplementation._wrap$ctor(raw); |
| 6879 |
| 6880 case "HTMLProgressElement": |
| 6881 |
| 6882 return new ProgressElementWrappingImplementation._wrap$ctor(raw); |
| 6883 |
| 6884 case "HTMLQuoteElement": |
| 6885 |
| 6886 return new QuoteElementWrappingImplementation._wrap$ctor(raw); |
| 6887 |
| 6888 case "SVGAElement": |
| 6889 |
| 6890 return new SVGAElementWrappingImplementation._wrap$ctor(raw); |
| 6891 |
| 6892 case "SVGAltGlyphDefElement": |
| 6893 |
| 6894 return new SVGAltGlyphDefElementWrappingImplementation._wrap$ctor(raw); |
| 6895 |
| 6896 case "SVGAltGlyphElement": |
| 6897 |
| 6898 return new SVGAltGlyphElementWrappingImplementation._wrap$ctor(raw); |
| 6899 |
| 6900 case "SVGAltGlyphItemElement": |
| 6901 |
| 6902 return new SVGAltGlyphItemElementWrappingImplementation._wrap$ctor(raw); |
| 6903 |
| 6904 case "SVGAnimateColorElement": |
| 6905 |
| 6906 return new SVGAnimateColorElementWrappingImplementation._wrap$ctor(raw); |
| 6907 |
| 6908 case "SVGAnimateElement": |
| 6909 |
| 6910 return new SVGAnimateElementWrappingImplementation._wrap$ctor(raw); |
| 6911 |
| 6912 case "SVGAnimateMotionElement": |
| 6913 |
| 6914 return new SVGAnimateMotionElementWrappingImplementation._wrap$ctor(raw); |
| 6915 |
| 6916 case "SVGAnimateTransformElement": |
| 6917 |
| 6918 return new SVGAnimateTransformElementWrappingImplementation._wrap$ctor(raw
); |
| 6919 |
| 6920 case "SVGAnimationElement": |
| 6921 |
| 6922 return new SVGAnimationElementWrappingImplementation._wrap$ctor(raw); |
| 6923 |
| 6924 case "SVGCircleElement": |
| 6925 |
| 6926 return new SVGCircleElementWrappingImplementation._wrap$ctor(raw); |
| 6927 |
| 6928 case "SVGClipPathElement": |
| 6929 |
| 6930 return new SVGClipPathElementWrappingImplementation._wrap$ctor(raw); |
| 6931 |
| 6932 case "SVGComponentTransferFunctionElement": |
| 6933 |
| 6934 return new SVGComponentTransferFunctionElementWrappingImplementation._wrap
$ctor(raw); |
| 6935 |
| 6936 case "SVGCursorElement": |
| 6937 |
| 6938 return new SVGCursorElementWrappingImplementation._wrap$ctor(raw); |
| 6939 |
| 6940 case "SVGDefsElement": |
| 6941 |
| 6942 return new SVGDefsElementWrappingImplementation._wrap$ctor(raw); |
| 6943 |
| 6944 case "SVGDescElement": |
| 6945 |
| 6946 return new SVGDescElementWrappingImplementation._wrap$ctor(raw); |
| 6947 |
| 6948 case "SVGDocument": |
| 6949 |
| 6950 return new SVGDocumentWrappingImplementation._wrap$ctor(raw); |
| 6951 |
| 6952 case "SVGElement": |
| 6953 |
| 6954 return new SVGElementWrappingImplementation._wrap$ctor(raw); |
| 6955 |
| 6956 case "SVGEllipseElement": |
| 6957 |
| 6958 return new SVGEllipseElementWrappingImplementation._wrap$ctor(raw); |
| 6959 |
| 6960 case "SVGFEBlendElement": |
| 6961 |
| 6962 return new SVGFEBlendElementWrappingImplementation._wrap$ctor(raw); |
| 6963 |
| 6964 case "SVGFEColorMatrixElement": |
| 6965 |
| 6966 return new SVGFEColorMatrixElementWrappingImplementation._wrap$ctor(raw); |
| 6967 |
| 6968 case "SVGFEComponentTransferElement": |
| 6969 |
| 6970 return new SVGFEComponentTransferElementWrappingImplementation._wrap$ctor(
raw); |
| 6971 |
| 6972 case "SVGFEConvolveMatrixElement": |
| 6973 |
| 6974 return new SVGFEConvolveMatrixElementWrappingImplementation._wrap$ctor(raw
); |
| 6975 |
| 6976 case "SVGFEDiffuseLightingElement": |
| 6977 |
| 6978 return new SVGFEDiffuseLightingElementWrappingImplementation._wrap$ctor(ra
w); |
| 6979 |
| 6980 case "SVGFEDisplacementMapElement": |
| 6981 |
| 6982 return new SVGFEDisplacementMapElementWrappingImplementation._wrap$ctor(ra
w); |
| 6983 |
| 6984 case "SVGFEDistantLightElement": |
| 6985 |
| 6986 return new SVGFEDistantLightElementWrappingImplementation._wrap$ctor(raw); |
| 6987 |
| 6988 case "SVGFEDropShadowElement": |
| 6989 |
| 6990 return new SVGFEDropShadowElementWrappingImplementation._wrap$ctor(raw); |
| 6991 |
| 6992 case "SVGFEFloodElement": |
| 6993 |
| 6994 return new SVGFEFloodElementWrappingImplementation._wrap$ctor(raw); |
| 6995 |
| 6996 case "SVGFEFuncAElement": |
| 6997 |
| 6998 return new SVGFEFuncAElementWrappingImplementation._wrap$ctor(raw); |
| 6999 |
| 7000 case "SVGFEFuncBElement": |
| 7001 |
| 7002 return new SVGFEFuncBElementWrappingImplementation._wrap$ctor(raw); |
| 7003 |
| 7004 case "SVGFEFuncGElement": |
| 7005 |
| 7006 return new SVGFEFuncGElementWrappingImplementation._wrap$ctor(raw); |
| 7007 |
| 7008 case "SVGFEFuncRElement": |
| 7009 |
| 7010 return new SVGFEFuncRElementWrappingImplementation._wrap$ctor(raw); |
| 7011 |
| 7012 case "SVGFEGaussianBlurElement": |
| 7013 |
| 7014 return new SVGFEGaussianBlurElementWrappingImplementation._wrap$ctor(raw); |
| 7015 |
| 7016 case "SVGFEImageElement": |
| 7017 |
| 7018 return new SVGFEImageElementWrappingImplementation._wrap$ctor(raw); |
| 7019 |
| 7020 case "SVGFEMergeElement": |
| 7021 |
| 7022 return new SVGFEMergeElementWrappingImplementation._wrap$ctor(raw); |
| 7023 |
| 7024 case "SVGFEMergeNodeElement": |
| 7025 |
| 7026 return new SVGFEMergeNodeElementWrappingImplementation._wrap$ctor(raw); |
| 7027 |
| 7028 case "SVGFEOffsetElement": |
| 7029 |
| 7030 return new SVGFEOffsetElementWrappingImplementation._wrap$ctor(raw); |
| 7031 |
| 7032 case "SVGFEPointLightElement": |
| 7033 |
| 7034 return new SVGFEPointLightElementWrappingImplementation._wrap$ctor(raw); |
| 7035 |
| 7036 case "SVGFESpecularLightingElement": |
| 7037 |
| 7038 return new SVGFESpecularLightingElementWrappingImplementation._wrap$ctor(r
aw); |
| 7039 |
| 7040 case "SVGFESpotLightElement": |
| 7041 |
| 7042 return new SVGFESpotLightElementWrappingImplementation._wrap$ctor(raw); |
| 7043 |
| 7044 case "SVGFETileElement": |
| 7045 |
| 7046 return new SVGFETileElementWrappingImplementation._wrap$ctor(raw); |
| 7047 |
| 7048 case "SVGFETurbulenceElement": |
| 7049 |
| 7050 return new SVGFETurbulenceElementWrappingImplementation._wrap$ctor(raw); |
| 7051 |
| 7052 case "SVGFilterElement": |
| 7053 |
| 7054 return new SVGFilterElementWrappingImplementation._wrap$ctor(raw); |
| 7055 |
| 7056 case "SVGFontElement": |
| 7057 |
| 7058 return new SVGFontElementWrappingImplementation._wrap$ctor(raw); |
| 7059 |
| 7060 case "SVGFontFaceElement": |
| 7061 |
| 7062 return new SVGFontFaceElementWrappingImplementation._wrap$ctor(raw); |
| 7063 |
| 7064 case "SVGFontFaceFormatElement": |
| 7065 |
| 7066 return new SVGFontFaceFormatElementWrappingImplementation._wrap$ctor(raw); |
| 7067 |
| 7068 case "SVGFontFaceNameElement": |
| 7069 |
| 7070 return new SVGFontFaceNameElementWrappingImplementation._wrap$ctor(raw); |
| 7071 |
| 7072 case "SVGFontFaceSrcElement": |
| 7073 |
| 7074 return new SVGFontFaceSrcElementWrappingImplementation._wrap$ctor(raw); |
| 7075 |
| 7076 case "SVGFontFaceUriElement": |
| 7077 |
| 7078 return new SVGFontFaceUriElementWrappingImplementation._wrap$ctor(raw); |
| 7079 |
| 7080 case "SVGForeignObjectElement": |
| 7081 |
| 7082 return new SVGForeignObjectElementWrappingImplementation._wrap$ctor(raw); |
| 7083 |
| 7084 case "SVGGElement": |
| 7085 |
| 7086 return new SVGGElementWrappingImplementation._wrap$ctor(raw); |
| 7087 |
| 7088 case "SVGGlyphElement": |
| 7089 |
| 7090 return new SVGGlyphElementWrappingImplementation._wrap$ctor(raw); |
| 7091 |
| 7092 case "SVGGlyphRefElement": |
| 7093 |
| 7094 return new SVGGlyphRefElementWrappingImplementation._wrap$ctor(raw); |
| 7095 |
| 7096 case "SVGGradientElement": |
| 7097 |
| 7098 return new SVGGradientElementWrappingImplementation._wrap$ctor(raw); |
| 7099 |
| 7100 case "SVGHKernElement": |
| 7101 |
| 7102 return new SVGHKernElementWrappingImplementation._wrap$ctor(raw); |
| 7103 |
| 7104 case "SVGImageElement": |
| 7105 |
| 7106 return new SVGImageElementWrappingImplementation._wrap$ctor(raw); |
| 7107 |
| 7108 case "SVGLineElement": |
| 7109 |
| 7110 return new SVGLineElementWrappingImplementation._wrap$ctor(raw); |
| 7111 |
| 7112 case "SVGLinearGradientElement": |
| 7113 |
| 7114 return new SVGLinearGradientElementWrappingImplementation._wrap$ctor(raw); |
| 7115 |
| 7116 case "SVGMPathElement": |
| 7117 |
| 7118 return new SVGMPathElementWrappingImplementation._wrap$ctor(raw); |
| 7119 |
| 7120 case "SVGMarkerElement": |
| 7121 |
| 7122 return new SVGMarkerElementWrappingImplementation._wrap$ctor(raw); |
| 7123 |
| 7124 case "SVGMaskElement": |
| 7125 |
| 7126 return new SVGMaskElementWrappingImplementation._wrap$ctor(raw); |
| 7127 |
| 7128 case "SVGMetadataElement": |
| 7129 |
| 7130 return new SVGMetadataElementWrappingImplementation._wrap$ctor(raw); |
| 7131 |
| 7132 case "SVGMissingGlyphElement": |
| 7133 |
| 7134 return new SVGMissingGlyphElementWrappingImplementation._wrap$ctor(raw); |
| 7135 |
| 7136 case "SVGPathElement": |
| 7137 |
| 7138 return new SVGPathElementWrappingImplementation._wrap$ctor(raw); |
| 7139 |
| 7140 case "SVGPatternElement": |
| 7141 |
| 7142 return new SVGPatternElementWrappingImplementation._wrap$ctor(raw); |
| 7143 |
| 7144 case "SVGPolygonElement": |
| 7145 |
| 7146 return new SVGPolygonElementWrappingImplementation._wrap$ctor(raw); |
| 7147 |
| 7148 case "SVGPolylineElement": |
| 7149 |
| 7150 return new SVGPolylineElementWrappingImplementation._wrap$ctor(raw); |
| 7151 |
| 7152 case "SVGRadialGradientElement": |
| 7153 |
| 7154 return new SVGRadialGradientElementWrappingImplementation._wrap$ctor(raw); |
| 7155 |
| 7156 case "SVGRectElement": |
| 7157 |
| 7158 return new SVGRectElementWrappingImplementation._wrap$ctor(raw); |
| 7159 |
| 7160 case "SVGSVGElement": |
| 7161 |
| 7162 return new SVGSVGElementWrappingImplementation._wrap$ctor(raw); |
| 7163 |
| 7164 case "SVGScriptElement": |
| 7165 |
| 7166 return new SVGScriptElementWrappingImplementation._wrap$ctor(raw); |
| 7167 |
| 7168 case "SVGSetElement": |
| 7169 |
| 7170 return new SVGSetElementWrappingImplementation._wrap$ctor(raw); |
| 7171 |
| 7172 case "SVGStopElement": |
| 7173 |
| 7174 return new SVGStopElementWrappingImplementation._wrap$ctor(raw); |
| 7175 |
| 7176 case "SVGStyleElement": |
| 7177 |
| 7178 return new SVGStyleElementWrappingImplementation._wrap$ctor(raw); |
| 7179 |
| 7180 case "SVGSwitchElement": |
| 7181 |
| 7182 return new SVGSwitchElementWrappingImplementation._wrap$ctor(raw); |
| 7183 |
| 7184 case "SVGSymbolElement": |
| 7185 |
| 7186 return new SVGSymbolElementWrappingImplementation._wrap$ctor(raw); |
| 7187 |
| 7188 case "SVGTRefElement": |
| 7189 |
| 7190 return new SVGTRefElementWrappingImplementation._wrap$ctor(raw); |
| 7191 |
| 7192 case "SVGTSpanElement": |
| 7193 |
| 7194 return new SVGTSpanElementWrappingImplementation._wrap$ctor(raw); |
| 7195 |
| 7196 case "SVGTextContentElement": |
| 7197 |
| 7198 return new SVGTextContentElementWrappingImplementation._wrap$ctor(raw); |
| 7199 |
| 7200 case "SVGTextElement": |
| 7201 |
| 7202 return new SVGTextElementWrappingImplementation._wrap$ctor(raw); |
| 7203 |
| 7204 case "SVGTextPathElement": |
| 7205 |
| 7206 return new SVGTextPathElementWrappingImplementation._wrap$ctor(raw); |
| 7207 |
| 7208 case "SVGTextPositioningElement": |
| 7209 |
| 7210 return new SVGTextPositioningElementWrappingImplementation._wrap$ctor(raw)
; |
| 7211 |
| 7212 case "SVGTitleElement": |
| 7213 |
| 7214 return new SVGTitleElementWrappingImplementation._wrap$ctor(raw); |
| 7215 |
| 7216 case "SVGUseElement": |
| 7217 |
| 7218 return new SVGUseElementWrappingImplementation._wrap$ctor(raw); |
| 7219 |
| 7220 case "SVGVKernElement": |
| 7221 |
| 7222 return new SVGVKernElementWrappingImplementation._wrap$ctor(raw); |
| 7223 |
| 7224 case "SVGViewElement": |
| 7225 |
| 7226 return new SVGViewElementWrappingImplementation._wrap$ctor(raw); |
| 7227 |
| 7228 case "HTMLScriptElement": |
| 7229 |
| 7230 return new ScriptElementWrappingImplementation._wrap$ctor(raw); |
| 7231 |
| 7232 case "HTMLSelectElement": |
| 7233 |
| 7234 return new SelectElementWrappingImplementation._wrap$ctor(raw); |
| 7235 |
| 7236 case "HTMLSourceElement": |
| 7237 |
| 7238 return new SourceElementWrappingImplementation._wrap$ctor(raw); |
| 7239 |
| 7240 case "HTMLSpanElement": |
| 7241 |
| 7242 return new SpanElementWrappingImplementation._wrap$ctor(raw); |
| 7243 |
| 7244 case "HTMLStyleElement": |
| 7245 |
| 7246 return new StyleElementWrappingImplementation._wrap$ctor(raw); |
| 7247 |
| 7248 case "HTMLTableCaptionElement": |
| 7249 |
| 7250 return new TableCaptionElementWrappingImplementation._wrap$ctor(raw); |
| 7251 |
| 7252 case "HTMLTableCellElement": |
| 7253 |
| 7254 return new TableCellElementWrappingImplementation._wrap$ctor(raw); |
| 7255 |
| 7256 case "HTMLTableColElement": |
| 7257 |
| 7258 return new TableColElementWrappingImplementation._wrap$ctor(raw); |
| 7259 |
| 7260 case "HTMLTableElement": |
| 7261 |
| 7262 return new TableElementWrappingImplementation._wrap$ctor(raw); |
| 7263 |
| 7264 case "HTMLTableRowElement": |
| 7265 |
| 7266 return new TableRowElementWrappingImplementation._wrap$ctor(raw); |
| 7267 |
| 7268 case "HTMLTableSectionElement": |
| 7269 |
| 7270 return new TableSectionElementWrappingImplementation._wrap$ctor(raw); |
| 7271 |
| 7272 case "Text": |
| 7273 |
| 7274 return new TextWrappingImplementation._wrap$ctor(raw); |
| 7275 |
| 7276 case "HTMLTextAreaElement": |
| 7277 |
| 7278 return new TextAreaElementWrappingImplementation._wrap$ctor(raw); |
| 7279 |
| 7280 case "HTMLTitleElement": |
| 7281 |
| 7282 return new TitleElementWrappingImplementation._wrap$ctor(raw); |
| 7283 |
| 7284 case "HTMLTrackElement": |
| 7285 |
| 7286 return new TrackElementWrappingImplementation._wrap$ctor(raw); |
| 7287 |
| 7288 case "HTMLUListElement": |
| 7289 |
| 7290 return new UListElementWrappingImplementation._wrap$ctor(raw); |
| 7291 |
| 7292 case "HTMLUnknownElement": |
| 7293 |
| 7294 return new UnknownElementWrappingImplementation._wrap$ctor(raw); |
| 7295 |
| 7296 case "HTMLVideoElement": |
| 7297 |
| 7298 return new VideoElementWrappingImplementation._wrap$ctor(raw); |
| 7299 |
| 7300 default: |
| 7301 |
| 7302 $throw(new UnsupportedOperationException("Unknown type:" + raw.toString$0(
))); |
| 7303 |
| 7304 } |
| 7305 } |
| 7306 LevelDom.wrapWindow = function(raw) { |
| 7307 return raw == null ? null : raw.get$dartObjectLocalStorage() != null ? raw.get
$dartObjectLocalStorage() : new WindowWrappingImplementation._wrap$ctor(raw); |
| 7308 } |
| 7309 LevelDom.unwrap = function(raw) { |
| 7310 return raw == null ? null : raw.get$_ptr(); |
| 7311 } |
| 7312 LevelDom.initialize = function() { |
| 7313 $globals.secretWindow = LevelDom.wrapWindow(get$window()); |
| 7314 $globals.secretDocument = LevelDom.wrapDocument(get$document()); |
| 7315 } |
| 7316 // ********** Code for AnimationEventWrappingImplementation ************** |
| 7317 $inherits(AnimationEventWrappingImplementation, EventWrappingImplementation); |
| 7318 function AnimationEventWrappingImplementation() {} |
| 7319 AnimationEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 7320 EventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7321 } |
| 7322 AnimationEventWrappingImplementation._wrap$ctor.prototype = AnimationEventWrappi
ngImplementation.prototype; |
| 7323 // ********** Code for BeforeLoadEventWrappingImplementation ************** |
| 7324 $inherits(BeforeLoadEventWrappingImplementation, EventWrappingImplementation); |
| 7325 function BeforeLoadEventWrappingImplementation() {} |
| 7326 BeforeLoadEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 7327 EventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7328 } |
| 7329 BeforeLoadEventWrappingImplementation._wrap$ctor.prototype = BeforeLoadEventWrap
pingImplementation.prototype; |
| 7330 // ********** Code for EventsImplementation ************** |
| 7331 function EventsImplementation() {} |
| 7332 EventsImplementation._wrap$ctor = function(_ptr) { |
| 7333 this._ptr = _ptr; |
| 7334 this._listenerMap = new HashMapImplementation(); |
| 7335 } |
| 7336 EventsImplementation._wrap$ctor.prototype = EventsImplementation.prototype; |
| 7337 EventsImplementation.prototype.get$_ptr = function() { return this._ptr; }; |
| 7338 EventsImplementation.prototype.set$_ptr = function(value) { return this._ptr = v
alue; }; |
| 7339 EventsImplementation.prototype.$index = function(type) { |
| 7340 return this._get(type.toLowerCase()); |
| 7341 } |
| 7342 EventsImplementation.prototype._get = function(type) { |
| 7343 var $this = this; // closure support |
| 7344 return this._listenerMap.putIfAbsent$2(type, (function () { |
| 7345 return new EventListenerListImplementation($this._ptr, type); |
| 7346 }) |
| 7347 ); |
| 7348 } |
| 7349 // ********** Code for ElementEventsImplementation ************** |
| 7350 $inherits(ElementEventsImplementation, EventsImplementation); |
| 7351 function ElementEventsImplementation() {} |
| 7352 ElementEventsImplementation._wrap$ctor = function(_ptr) { |
| 7353 EventsImplementation._wrap$ctor.call(this, _ptr); |
| 7354 } |
| 7355 ElementEventsImplementation._wrap$ctor.prototype = ElementEventsImplementation.p
rototype; |
| 7356 ElementEventsImplementation.prototype.get$click = function() { |
| 7357 return this._get("click"); |
| 7358 } |
| 7359 ElementEventsImplementation.prototype.get$mouseDown = function() { |
| 7360 return this._get("mousedown"); |
| 7361 } |
| 7362 ElementEventsImplementation.prototype.get$mouseMove = function() { |
| 7363 return this._get("mousemove"); |
| 7364 } |
| 7365 ElementEventsImplementation.prototype.get$mouseUp = function() { |
| 7366 return this._get("mouseup"); |
| 7367 } |
| 7368 ElementEventsImplementation.prototype.click$0 = function() { |
| 7369 return this.get$click().call$0(); |
| 7370 }; |
| 7371 // ********** Code for BodyElementEventsImplementation ************** |
| 7372 $inherits(BodyElementEventsImplementation, ElementEventsImplementation); |
| 7373 function BodyElementEventsImplementation() {} |
| 7374 BodyElementEventsImplementation._wrap$ctor = function(_ptr) { |
| 7375 ElementEventsImplementation._wrap$ctor.call(this, _ptr); |
| 7376 } |
| 7377 BodyElementEventsImplementation._wrap$ctor.prototype = BodyElementEventsImplemen
tation.prototype; |
| 7378 // ********** Code for BodyElementWrappingImplementation ************** |
| 7379 $inherits(BodyElementWrappingImplementation, ElementWrappingImplementation); |
| 7380 function BodyElementWrappingImplementation() {} |
| 7381 BodyElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7382 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7383 } |
| 7384 BodyElementWrappingImplementation._wrap$ctor.prototype = BodyElementWrappingImpl
ementation.prototype; |
| 7385 BodyElementWrappingImplementation.prototype.is$html_html_Element = function(){re
turn true}; |
| 7386 BodyElementWrappingImplementation.prototype.get$on = function() { |
| 7387 if (this._on == null) { |
| 7388 this._on = new BodyElementEventsImplementation._wrap$ctor(this._ptr); |
| 7389 } |
| 7390 return this._on; |
| 7391 } |
| 7392 // ********** Code for CloseEventWrappingImplementation ************** |
| 7393 $inherits(CloseEventWrappingImplementation, EventWrappingImplementation); |
| 7394 function CloseEventWrappingImplementation() {} |
| 7395 CloseEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 7396 EventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7397 } |
| 7398 CloseEventWrappingImplementation._wrap$ctor.prototype = CloseEventWrappingImplem
entation.prototype; |
| 7399 // ********** Code for CompositionEventWrappingImplementation ************** |
| 7400 $inherits(CompositionEventWrappingImplementation, UIEventWrappingImplementation)
; |
| 7401 function CompositionEventWrappingImplementation() {} |
| 7402 CompositionEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 7403 UIEventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7404 } |
| 7405 CompositionEventWrappingImplementation._wrap$ctor.prototype = CompositionEventWr
appingImplementation.prototype; |
| 7406 // ********** Code for CSSStyleDeclarationWrappingImplementation ************** |
| 7407 $inherits(CSSStyleDeclarationWrappingImplementation, DOMWrapperBase); |
| 7408 function CSSStyleDeclarationWrappingImplementation() {} |
| 7409 CSSStyleDeclarationWrappingImplementation._wrap$ctor = function(ptr) { |
| 7410 DOMWrapperBase._wrap$ctor.call(this, ptr); |
| 7411 } |
| 7412 CSSStyleDeclarationWrappingImplementation._wrap$ctor.prototype = CSSStyleDeclara
tionWrappingImplementation.prototype; |
| 7413 CSSStyleDeclarationWrappingImplementation.get$_browserPrefix = function() { |
| 7414 if ($globals.CSSStyleDeclarationWrappingImplementation__cachedBrowserPrefix ==
null) { |
| 7415 if (_Device.get$isFirefox()) { |
| 7416 $globals.CSSStyleDeclarationWrappingImplementation__cachedBrowserPrefix =
"-moz-"; |
| 7417 } |
| 7418 else { |
| 7419 $globals.CSSStyleDeclarationWrappingImplementation__cachedBrowserPrefix =
"-webkit-"; |
| 7420 } |
| 7421 } |
| 7422 return $globals.CSSStyleDeclarationWrappingImplementation__cachedBrowserPrefix
; |
| 7423 } |
| 7424 CSSStyleDeclarationWrappingImplementation.prototype.get$length = function() { |
| 7425 return this._ptr.get$length(); |
| 7426 } |
| 7427 CSSStyleDeclarationWrappingImplementation.prototype.getPropertyValue = function(
propertyName) { |
| 7428 return this._ptr.getPropertyValue$1(propertyName); |
| 7429 } |
| 7430 CSSStyleDeclarationWrappingImplementation.prototype.item = function(index) { |
| 7431 return this._ptr.item$1(index); |
| 7432 } |
| 7433 CSSStyleDeclarationWrappingImplementation.prototype.setProperty = function(prope
rtyName, value, priority) { |
| 7434 this._ptr.setProperty$3(propertyName, ("" + value), priority); |
| 7435 } |
| 7436 CSSStyleDeclarationWrappingImplementation.prototype.get$typeName = function() { |
| 7437 return "CSSStyleDeclaration"; |
| 7438 } |
| 7439 CSSStyleDeclarationWrappingImplementation.prototype.get$clear = function() { |
| 7440 return this.getPropertyValue("clear"); |
| 7441 } |
| 7442 CSSStyleDeclarationWrappingImplementation.prototype.get$filter = function() { |
| 7443 return this.getPropertyValue(("" + CSSStyleDeclarationWrappingImplementation.g
et$_browserPrefix() + "filter")); |
| 7444 } |
| 7445 CSSStyleDeclarationWrappingImplementation.prototype.clear$0 = function() { |
| 7446 return this.get$clear().call$0(); |
| 7447 }; |
| 7448 CSSStyleDeclarationWrappingImplementation.prototype.filter$1 = function($0) { |
| 7449 return this.get$filter().call$1($0); |
| 7450 }; |
| 7451 CSSStyleDeclarationWrappingImplementation.prototype.getPropertyValue$1 = CSSStyl
eDeclarationWrappingImplementation.prototype.getPropertyValue; |
| 7452 CSSStyleDeclarationWrappingImplementation.prototype.item$1 = CSSStyleDeclaration
WrappingImplementation.prototype.item; |
| 7453 CSSStyleDeclarationWrappingImplementation.prototype.setProperty$2 = function($0,
$1) { |
| 7454 return this.setProperty($0, $1, ""); |
| 7455 }; |
| 7456 CSSStyleDeclarationWrappingImplementation.prototype.setProperty$3 = CSSStyleDecl
arationWrappingImplementation.prototype.setProperty; |
| 7457 // ********** Code for CustomEventWrappingImplementation ************** |
| 7458 $inherits(CustomEventWrappingImplementation, EventWrappingImplementation); |
| 7459 function CustomEventWrappingImplementation() {} |
| 7460 CustomEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 7461 EventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7462 } |
| 7463 CustomEventWrappingImplementation._wrap$ctor.prototype = CustomEventWrappingImpl
ementation.prototype; |
| 7464 // ********** Code for _Device ************** |
| 7465 function _Device() {} |
| 7466 _Device.get$userAgent = function() { |
| 7467 return get$window().navigator.userAgent; |
| 7468 } |
| 7469 _Device.get$isFirefox = function() { |
| 7470 return _Device.get$userAgent().contains("Firefox", (0)); |
| 7471 } |
| 7472 // ********** Code for DeviceMotionEventWrappingImplementation ************** |
| 7473 $inherits(DeviceMotionEventWrappingImplementation, EventWrappingImplementation); |
| 7474 function DeviceMotionEventWrappingImplementation() {} |
| 7475 DeviceMotionEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 7476 EventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7477 } |
| 7478 DeviceMotionEventWrappingImplementation._wrap$ctor.prototype = DeviceMotionEvent
WrappingImplementation.prototype; |
| 7479 // ********** Code for DeviceOrientationEventWrappingImplementation ************
** |
| 7480 $inherits(DeviceOrientationEventWrappingImplementation, EventWrappingImplementat
ion); |
| 7481 function DeviceOrientationEventWrappingImplementation() {} |
| 7482 DeviceOrientationEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 7483 EventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7484 } |
| 7485 DeviceOrientationEventWrappingImplementation._wrap$ctor.prototype = DeviceOrient
ationEventWrappingImplementation.prototype; |
| 7486 // ********** Code for FilteredElementList ************** |
| 7487 function FilteredElementList(node) { |
| 7488 this._node = node; |
| 7489 this._childNodes = node.get$nodes(); |
| 7490 } |
| 7491 FilteredElementList.prototype.is$List = function(){return true}; |
| 7492 FilteredElementList.prototype.get$_filtered = function() { |
| 7493 return ListFactory.ListFactory$from$factory(this._childNodes.filter$1((functio
n (n) { |
| 7494 return !!(n && n.is$html_html_Element()); |
| 7495 }) |
| 7496 )); |
| 7497 } |
| 7498 FilteredElementList.prototype.get$first = function() { |
| 7499 var $$list = this._childNodes; |
| 7500 for (var $$i = $$list.iterator$0(); $$i.hasNext$0(); ) { |
| 7501 var node = $$i.next$0(); |
| 7502 if (!!(node && node.is$html_html_Element())) { |
| 7503 return node; |
| 7504 } |
| 7505 } |
| 7506 return null; |
| 7507 } |
| 7508 FilteredElementList.prototype.forEach = function(f) { |
| 7509 this.get$_filtered().forEach(f); |
| 7510 } |
| 7511 FilteredElementList.prototype.$setindex = function(index, value) { |
| 7512 this.$index(index).replaceWith(value); |
| 7513 } |
| 7514 FilteredElementList.prototype.add = function(value) { |
| 7515 this._childNodes.add$1(value); |
| 7516 } |
| 7517 FilteredElementList.prototype.get$add = function() { |
| 7518 return this.add.bind(this); |
| 7519 } |
| 7520 FilteredElementList.prototype.addAll = function(collection) { |
| 7521 collection.forEach(this.get$add()); |
| 7522 } |
| 7523 FilteredElementList.prototype.clear = function() { |
| 7524 this._childNodes.clear$0(); |
| 7525 } |
| 7526 FilteredElementList.prototype.get$clear = function() { |
| 7527 return this.clear.bind(this); |
| 7528 } |
| 7529 FilteredElementList.prototype.removeLast = function() { |
| 7530 var last = this.last(); |
| 7531 if (last != null) { |
| 7532 last.remove$0(); |
| 7533 } |
| 7534 return last; |
| 7535 } |
| 7536 FilteredElementList.prototype.filter = function(f) { |
| 7537 return this.get$_filtered().filter$1(f); |
| 7538 } |
| 7539 FilteredElementList.prototype.isEmpty = function() { |
| 7540 return this.get$_filtered().isEmpty(); |
| 7541 } |
| 7542 FilteredElementList.prototype.get$length = function() { |
| 7543 return this.get$_filtered().get$length(); |
| 7544 } |
| 7545 FilteredElementList.prototype.$index = function(index) { |
| 7546 return this.get$_filtered().$index(index); |
| 7547 } |
| 7548 FilteredElementList.prototype.iterator = function() { |
| 7549 return this.get$_filtered().iterator$0(); |
| 7550 } |
| 7551 FilteredElementList.prototype.last = function() { |
| 7552 return this.get$_filtered().last$0(); |
| 7553 } |
| 7554 FilteredElementList.prototype.add$1 = FilteredElementList.prototype.add; |
| 7555 FilteredElementList.prototype.addAll$1 = FilteredElementList.prototype.addAll; |
| 7556 FilteredElementList.prototype.clear$0 = FilteredElementList.prototype.clear; |
| 7557 FilteredElementList.prototype.filter$1 = function($0) { |
| 7558 return this.filter(to$call$1($0)); |
| 7559 }; |
| 7560 FilteredElementList.prototype.iterator$0 = FilteredElementList.prototype.iterato
r; |
| 7561 FilteredElementList.prototype.last$0 = FilteredElementList.prototype.last; |
| 7562 FilteredElementList.prototype.removeLast$0 = FilteredElementList.prototype.remov
eLast; |
| 7563 // ********** Code for EmptyStyleDeclaration ************** |
| 7564 $inherits(EmptyStyleDeclaration, CSSStyleDeclarationWrappingImplementation); |
| 7565 function EmptyStyleDeclaration() { |
| 7566 CSSStyleDeclarationWrappingImplementation._wrap$ctor.call(this, get$document()
.createElement("div").style); |
| 7567 } |
| 7568 EmptyStyleDeclaration.prototype.setProperty = function(propertyName, value, prio
rity) { |
| 7569 $throw(new UnsupportedOperationException("Can't modify a frozen style declarat
ion.")); |
| 7570 } |
| 7571 EmptyStyleDeclaration.prototype.setProperty$2 = EmptyStyleDeclaration.prototype.
setProperty; |
| 7572 EmptyStyleDeclaration.prototype.setProperty$3 = EmptyStyleDeclaration.prototype.
setProperty; |
| 7573 // ********** Code for EmptyElementRect ************** |
| 7574 function EmptyElementRect() { |
| 7575 this.client = const$0006; |
| 7576 this.scroll = const$0006; |
| 7577 this.bounding = const$0006; |
| 7578 this.clientRects = const$0008; |
| 7579 this.offset = const$0006; |
| 7580 } |
| 7581 // ********** Code for DocumentFragmentWrappingImplementation ************** |
| 7582 $inherits(DocumentFragmentWrappingImplementation, NodeWrappingImplementation); |
| 7583 function DocumentFragmentWrappingImplementation() {} |
| 7584 DocumentFragmentWrappingImplementation._wrap$ctor = function(ptr) { |
| 7585 NodeWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7586 } |
| 7587 DocumentFragmentWrappingImplementation._wrap$ctor.prototype = DocumentFragmentWr
appingImplementation.prototype; |
| 7588 DocumentFragmentWrappingImplementation.prototype.is$html_html_Element = function
(){return true}; |
| 7589 DocumentFragmentWrappingImplementation.prototype.get$elements = function() { |
| 7590 if (this._elements == null) { |
| 7591 this._elements = new FilteredElementList(this); |
| 7592 } |
| 7593 return this._elements; |
| 7594 } |
| 7595 DocumentFragmentWrappingImplementation.prototype.set$innerHTML = function(value)
{ |
| 7596 this.get$nodes().clear$0(); |
| 7597 var e = ElementWrappingImplementation.ElementWrappingImplementation$tag$factor
y("div"); |
| 7598 e.set$innerHTML(value); |
| 7599 var nodes = ListFactory.ListFactory$from$factory(e.get$nodes()); |
| 7600 this.get$nodes().addAll(nodes); |
| 7601 } |
| 7602 DocumentFragmentWrappingImplementation.prototype.get$on = function() { |
| 7603 if (this._on == null) { |
| 7604 this._on = new ElementEventsImplementation._wrap$ctor(this._ptr); |
| 7605 } |
| 7606 return this._on; |
| 7607 } |
| 7608 DocumentFragmentWrappingImplementation.prototype.get$rect = function() { |
| 7609 return _createMeasurementFuture((function () { |
| 7610 return const$0009; |
| 7611 }) |
| 7612 , new CompleterImpl()); |
| 7613 } |
| 7614 DocumentFragmentWrappingImplementation.prototype.query = function(selectors) { |
| 7615 return LevelDom.wrapElement(this._ptr.querySelector$1(selectors)); |
| 7616 } |
| 7617 DocumentFragmentWrappingImplementation.prototype.queryAll = function(selectors)
{ |
| 7618 return LevelDom.wrapElementList(this._ptr.querySelectorAll$1(selectors)); |
| 7619 } |
| 7620 DocumentFragmentWrappingImplementation.prototype.get$id = function() { |
| 7621 return ""; |
| 7622 } |
| 7623 DocumentFragmentWrappingImplementation.prototype.set$id = function(value) { |
| 7624 $throw(new UnsupportedOperationException("ID can't be set for document fragmen
ts.")); |
| 7625 } |
| 7626 DocumentFragmentWrappingImplementation.prototype.get$firstElementChild = functio
n() { |
| 7627 return this.get$elements().get$first().call$0(); |
| 7628 } |
| 7629 DocumentFragmentWrappingImplementation.prototype.get$lastElementChild = function
() { |
| 7630 return this.get$elements().last$0(); |
| 7631 } |
| 7632 DocumentFragmentWrappingImplementation.prototype.get$attributes = function() { |
| 7633 return const$0010; |
| 7634 } |
| 7635 DocumentFragmentWrappingImplementation.prototype.get$style = function() { |
| 7636 return new EmptyStyleDeclaration(); |
| 7637 } |
| 7638 // ********** Code for DocumentEventsImplementation ************** |
| 7639 $inherits(DocumentEventsImplementation, ElementEventsImplementation); |
| 7640 function DocumentEventsImplementation() {} |
| 7641 DocumentEventsImplementation._wrap$ctor = function(_ptr) { |
| 7642 ElementEventsImplementation._wrap$ctor.call(this, _ptr); |
| 7643 } |
| 7644 DocumentEventsImplementation._wrap$ctor.prototype = DocumentEventsImplementation
.prototype; |
| 7645 // ********** Code for DocumentWrappingImplementation ************** |
| 7646 $inherits(DocumentWrappingImplementation, ElementWrappingImplementation); |
| 7647 function DocumentWrappingImplementation() {} |
| 7648 DocumentWrappingImplementation._wrap$ctor = function(_documentPtr, ptr) { |
| 7649 this._documentPtr = _documentPtr; |
| 7650 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7651 this._documentPtr.get$dynamic().set$dartObjectLocalStorage(this); |
| 7652 } |
| 7653 DocumentWrappingImplementation._wrap$ctor.prototype = DocumentWrappingImplementa
tion.prototype; |
| 7654 DocumentWrappingImplementation.prototype.is$html_html_Element = function(){retur
n true}; |
| 7655 DocumentWrappingImplementation.prototype.get$body = function() { |
| 7656 return LevelDom.wrapElement(this._documentPtr.get$body()); |
| 7657 } |
| 7658 DocumentWrappingImplementation.prototype.get$on = function() { |
| 7659 if (this._on == null) { |
| 7660 this._on = new DocumentEventsImplementation._wrap$ctor(this._documentPtr); |
| 7661 } |
| 7662 return this._on; |
| 7663 } |
| 7664 // ********** Code for _ChildrenElementList ************** |
| 7665 function _ChildrenElementList() {} |
| 7666 _ChildrenElementList._wrap$ctor = function(element) { |
| 7667 this._childElements = element.get$children(); |
| 7668 this._element = element; |
| 7669 } |
| 7670 _ChildrenElementList._wrap$ctor.prototype = _ChildrenElementList.prototype; |
| 7671 _ChildrenElementList.prototype.is$List = function(){return true}; |
| 7672 _ChildrenElementList.prototype._toList = function() { |
| 7673 var output = new Array(this._childElements.get$length()); |
| 7674 for (var i = (0), len = this._childElements.get$length(); |
| 7675 i < len; i++) { |
| 7676 output.$setindex(i, LevelDom.wrapElement(this._childElements.$index(i))); |
| 7677 } |
| 7678 return output; |
| 7679 } |
| 7680 _ChildrenElementList.prototype.get$first = function() { |
| 7681 return LevelDom.wrapElement(this._element.get$firstElementChild()); |
| 7682 } |
| 7683 _ChildrenElementList.prototype.forEach = function(f) { |
| 7684 return this._toList().forEach(f); |
| 7685 } |
| 7686 _ChildrenElementList.prototype.filter = function(f) { |
| 7687 return this._toList().filter$1(f); |
| 7688 } |
| 7689 _ChildrenElementList.prototype.isEmpty = function() { |
| 7690 return this._element.get$firstElementChild() == null; |
| 7691 } |
| 7692 _ChildrenElementList.prototype.get$length = function() { |
| 7693 return this._childElements.get$length(); |
| 7694 } |
| 7695 _ChildrenElementList.prototype.$index = function(index) { |
| 7696 return LevelDom.wrapElement(this._childElements.$index(index)); |
| 7697 } |
| 7698 _ChildrenElementList.prototype.$setindex = function(index, value) { |
| 7699 this._element.replaceChild$2(LevelDom.unwrap(value), this._childElements.item$
1(index)); |
| 7700 } |
| 7701 _ChildrenElementList.prototype.add = function(value) { |
| 7702 this._element.appendChild$1(LevelDom.unwrap(value)); |
| 7703 return value; |
| 7704 } |
| 7705 _ChildrenElementList.prototype.iterator = function() { |
| 7706 return this._toList().iterator$0(); |
| 7707 } |
| 7708 _ChildrenElementList.prototype.addAll = function(collection) { |
| 7709 for (var $$i = collection.iterator$0(); $$i.hasNext$0(); ) { |
| 7710 var element = $$i.next$0(); |
| 7711 this._element.appendChild$1(LevelDom.unwrap(element)); |
| 7712 } |
| 7713 } |
| 7714 _ChildrenElementList.prototype.clear = function() { |
| 7715 this._element.set$textContent(""); |
| 7716 } |
| 7717 _ChildrenElementList.prototype.get$clear = function() { |
| 7718 return this.clear.bind(this); |
| 7719 } |
| 7720 _ChildrenElementList.prototype.removeLast = function() { |
| 7721 var last = this.last(); |
| 7722 if (last != null) { |
| 7723 this._element.removeChild$1(LevelDom.unwrap(last)); |
| 7724 } |
| 7725 return last; |
| 7726 } |
| 7727 _ChildrenElementList.prototype.last = function() { |
| 7728 return LevelDom.wrapElement(this._element.get$lastElementChild()); |
| 7729 } |
| 7730 _ChildrenElementList.prototype.add$1 = _ChildrenElementList.prototype.add; |
| 7731 _ChildrenElementList.prototype.addAll$1 = _ChildrenElementList.prototype.addAll; |
| 7732 _ChildrenElementList.prototype.clear$0 = _ChildrenElementList.prototype.clear; |
| 7733 _ChildrenElementList.prototype.filter$1 = function($0) { |
| 7734 return this.filter(to$call$1($0)); |
| 7735 }; |
| 7736 _ChildrenElementList.prototype.iterator$0 = _ChildrenElementList.prototype.itera
tor; |
| 7737 _ChildrenElementList.prototype.last$0 = _ChildrenElementList.prototype.last; |
| 7738 _ChildrenElementList.prototype.removeLast$0 = _ChildrenElementList.prototype.rem
oveLast; |
| 7739 // ********** Code for FrozenElementList ************** |
| 7740 function FrozenElementList() {} |
| 7741 FrozenElementList._wrap$ctor = function(_ptr) { |
| 7742 this._ptr = _ptr; |
| 7743 } |
| 7744 FrozenElementList._wrap$ctor.prototype = FrozenElementList.prototype; |
| 7745 FrozenElementList.prototype.is$List = function(){return true}; |
| 7746 FrozenElementList.prototype.get$_ptr = function() { return this._ptr; }; |
| 7747 FrozenElementList.prototype.get$first = function() { |
| 7748 return this.$index((0)); |
| 7749 } |
| 7750 FrozenElementList.prototype.forEach = function(f) { |
| 7751 var length = this._ptr.get$length(); |
| 7752 for (var i = (0); |
| 7753 i < length; i = $add(i, (1))) { |
| 7754 f.call$1(LevelDom.wrapElement(this._ptr.$index(i))); |
| 7755 } |
| 7756 } |
| 7757 FrozenElementList.prototype.filter = function(f) { |
| 7758 $throw("Not implemented yet."); |
| 7759 } |
| 7760 FrozenElementList.prototype.isEmpty = function() { |
| 7761 return $eq(this._ptr.get$length(), (0)); |
| 7762 } |
| 7763 FrozenElementList.prototype.get$length = function() { |
| 7764 return this._ptr.get$length(); |
| 7765 } |
| 7766 FrozenElementList.prototype.$index = function(index) { |
| 7767 return LevelDom.wrapElement(this._ptr.$index(index)); |
| 7768 } |
| 7769 FrozenElementList.prototype.$setindex = function(index, value) { |
| 7770 $throw(const$0012); |
| 7771 } |
| 7772 FrozenElementList.prototype.add = function(value) { |
| 7773 $throw(const$0012); |
| 7774 } |
| 7775 FrozenElementList.prototype.iterator = function() { |
| 7776 return new FrozenElementListIterator(this); |
| 7777 } |
| 7778 FrozenElementList.prototype.addAll = function(collection) { |
| 7779 $throw(const$0012); |
| 7780 } |
| 7781 FrozenElementList.prototype.clear = function() { |
| 7782 $throw("Not impl yet. todo(jacobr)"); |
| 7783 } |
| 7784 FrozenElementList.prototype.get$clear = function() { |
| 7785 return this.clear.bind(this); |
| 7786 } |
| 7787 FrozenElementList.prototype.removeLast = function() { |
| 7788 $throw("Not impl yet. todo(jacobr)"); |
| 7789 } |
| 7790 FrozenElementList.prototype.last = function() { |
| 7791 return this.$index(this.get$length() - (1)); |
| 7792 } |
| 7793 FrozenElementList.prototype.add$1 = FrozenElementList.prototype.add; |
| 7794 FrozenElementList.prototype.addAll$1 = FrozenElementList.prototype.addAll; |
| 7795 FrozenElementList.prototype.clear$0 = FrozenElementList.prototype.clear; |
| 7796 FrozenElementList.prototype.filter$1 = function($0) { |
| 7797 return this.filter(to$call$1($0)); |
| 7798 }; |
| 7799 FrozenElementList.prototype.iterator$0 = FrozenElementList.prototype.iterator; |
| 7800 FrozenElementList.prototype.last$0 = FrozenElementList.prototype.last; |
| 7801 FrozenElementList.prototype.removeLast$0 = FrozenElementList.prototype.removeLas
t; |
| 7802 // ********** Code for FrozenElementListIterator ************** |
| 7803 function FrozenElementListIterator(_list) { |
| 7804 this._htmlimpl_index = (0); |
| 7805 this._list = _list; |
| 7806 } |
| 7807 FrozenElementListIterator.prototype.next = function() { |
| 7808 if (!this.hasNext()) { |
| 7809 $throw(const$0000); |
| 7810 } |
| 7811 return this._list.$index(this._htmlimpl_index++); |
| 7812 } |
| 7813 FrozenElementListIterator.prototype.hasNext = function() { |
| 7814 return this._htmlimpl_index < this._list.get$length(); |
| 7815 } |
| 7816 FrozenElementListIterator.prototype.hasNext$0 = FrozenElementListIterator.protot
ype.hasNext; |
| 7817 FrozenElementListIterator.prototype.next$0 = FrozenElementListIterator.prototype
.next; |
| 7818 // ********** Code for ElementAttributeMap ************** |
| 7819 function ElementAttributeMap() {} |
| 7820 ElementAttributeMap._wrap$ctor = function(_element) { |
| 7821 this._element = _element; |
| 7822 } |
| 7823 ElementAttributeMap._wrap$ctor.prototype = ElementAttributeMap.prototype; |
| 7824 ElementAttributeMap.prototype.is$Map = function(){return true}; |
| 7825 ElementAttributeMap.prototype.containsKey = function(key) { |
| 7826 return this._element.hasAttribute$1(key); |
| 7827 } |
| 7828 ElementAttributeMap.prototype.$index = function(key) { |
| 7829 return this._element.getAttribute$1(key); |
| 7830 } |
| 7831 ElementAttributeMap.prototype.$setindex = function(key, value) { |
| 7832 this._element.setAttribute$2(key, value); |
| 7833 } |
| 7834 ElementAttributeMap.prototype.putIfAbsent = function(key, ifAbsent) { |
| 7835 if (!this.containsKey(key)) { |
| 7836 this.$setindex(key, ifAbsent.call$0()); |
| 7837 } |
| 7838 } |
| 7839 ElementAttributeMap.prototype.remove = function(key) { |
| 7840 this._element.removeAttribute$1(key); |
| 7841 } |
| 7842 ElementAttributeMap.prototype.clear = function() { |
| 7843 var attributes = this._element.get$attributes(); |
| 7844 for (var i = attributes.get$length() - (1); |
| 7845 i >= (0); i--) { |
| 7846 this._element.removeAttribute$1(attributes.item$1(i).get$name()); |
| 7847 } |
| 7848 } |
| 7849 ElementAttributeMap.prototype.get$clear = function() { |
| 7850 return this.clear.bind(this); |
| 7851 } |
| 7852 ElementAttributeMap.prototype.forEach = function(f) { |
| 7853 var attributes = this._element.get$attributes(); |
| 7854 for (var i = (0), len = attributes.get$length(); |
| 7855 i < len; i++) { |
| 7856 var item = attributes.item$1(i); |
| 7857 f.call$2(item.get$name(), item.get$value()); |
| 7858 } |
| 7859 } |
| 7860 ElementAttributeMap.prototype.getKeys = function() { |
| 7861 var attributes = this._element.get$attributes(); |
| 7862 var keys = new Array(attributes.get$length()); |
| 7863 for (var i = (0), len = attributes.get$length(); |
| 7864 i < len; i++) { |
| 7865 keys.$setindex(i, attributes.item$1(i).get$name()); |
| 7866 } |
| 7867 return keys; |
| 7868 } |
| 7869 ElementAttributeMap.prototype.getValues = function() { |
| 7870 var attributes = this._element.get$attributes(); |
| 7871 var values = new Array(attributes.get$length()); |
| 7872 for (var i = (0), len = attributes.get$length(); |
| 7873 i < len; i++) { |
| 7874 values.$setindex(i, attributes.item$1(i).get$value()); |
| 7875 } |
| 7876 return values; |
| 7877 } |
| 7878 ElementAttributeMap.prototype.get$length = function() { |
| 7879 return this._element.get$attributes().get$length(); |
| 7880 } |
| 7881 ElementAttributeMap.prototype.isEmpty = function() { |
| 7882 return !this._element.hasAttributes$0(); |
| 7883 } |
| 7884 ElementAttributeMap.prototype.clear$0 = ElementAttributeMap.prototype.clear; |
| 7885 ElementAttributeMap.prototype.getKeys$0 = ElementAttributeMap.prototype.getKeys; |
| 7886 ElementAttributeMap.prototype.getValues$0 = ElementAttributeMap.prototype.getVal
ues; |
| 7887 ElementAttributeMap.prototype.putIfAbsent$2 = function($0, $1) { |
| 7888 return this.putIfAbsent($0, to$call$0($1)); |
| 7889 }; |
| 7890 ElementAttributeMap.prototype.remove$1 = ElementAttributeMap.prototype.remove; |
| 7891 // ********** Code for SimpleClientRect ************** |
| 7892 function SimpleClientRect(left, top, width, height) { |
| 7893 this.left = left; |
| 7894 this.top = top; |
| 7895 this.width = width; |
| 7896 this.height = height; |
| 7897 } |
| 7898 SimpleClientRect.prototype.get$left = function() { return this.left; }; |
| 7899 SimpleClientRect.prototype.get$top = function() { return this.top; }; |
| 7900 SimpleClientRect.prototype.get$width = function() { return this.width; }; |
| 7901 SimpleClientRect.prototype.get$height = function() { return this.height; }; |
| 7902 SimpleClientRect.prototype.$eq = function(other) { |
| 7903 return other != null && this.left == other.get$left() && this.top == other.get
$top() && this.width == other.get$width() && this.height == other.get$height(); |
| 7904 } |
| 7905 SimpleClientRect.prototype.toString = function() { |
| 7906 return ("(" + this.left + ", " + this.top + ", " + this.width + ", " + this.he
ight + ")"); |
| 7907 } |
| 7908 SimpleClientRect.prototype.toString$0 = SimpleClientRect.prototype.toString; |
| 7909 // ********** Code for ElementRectWrappingImplementation ************** |
| 7910 function ElementRectWrappingImplementation(element) { |
| 7911 this.client = new SimpleClientRect(element.clientLeft, element.clientTop, elem
ent.clientWidth, element.clientHeight); |
| 7912 this.scroll = new SimpleClientRect(element.scrollLeft, element.scrollTop, elem
ent.scrollWidth, element.scrollHeight); |
| 7913 this._clientRects = element.getClientRects(); |
| 7914 this.offset = new SimpleClientRect(element.offsetLeft, element.offsetTop, elem
ent.offsetWidth, element.offsetHeight); |
| 7915 this._boundingClientRect = element.getBoundingClientRect(); |
| 7916 } |
| 7917 // ********** Code for ErrorEventWrappingImplementation ************** |
| 7918 $inherits(ErrorEventWrappingImplementation, EventWrappingImplementation); |
| 7919 function ErrorEventWrappingImplementation() {} |
| 7920 ErrorEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 7921 EventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7922 } |
| 7923 ErrorEventWrappingImplementation._wrap$ctor.prototype = ErrorEventWrappingImplem
entation.prototype; |
| 7924 // ********** Code for _EventListenerWrapper ************** |
| 7925 function _EventListenerWrapper(raw, wrapped, useCapture) { |
| 7926 this.wrapped = wrapped; |
| 7927 this.useCapture = useCapture; |
| 7928 this.raw = raw; |
| 7929 } |
| 7930 // ********** Code for EventListenerListImplementation ************** |
| 7931 function EventListenerListImplementation(_ptr, _type) { |
| 7932 this._ptr = _ptr; |
| 7933 this._type = _type; |
| 7934 this._wrappers = new Array(); |
| 7935 } |
| 7936 EventListenerListImplementation.prototype.get$_ptr = function() { return this._p
tr; }; |
| 7937 EventListenerListImplementation.prototype.add = function(listener, useCapture) { |
| 7938 this._add(listener, useCapture); |
| 7939 return this; |
| 7940 } |
| 7941 EventListenerListImplementation.prototype.remove = function(listener, useCapture
) { |
| 7942 this._remove(listener, useCapture); |
| 7943 return this; |
| 7944 } |
| 7945 EventListenerListImplementation.prototype._add = function(listener, useCapture)
{ |
| 7946 this._ptr.addEventListener$3(this._type, this._findOrAddWrapper(listener, useC
apture), useCapture); |
| 7947 } |
| 7948 EventListenerListImplementation.prototype._remove = function(listener, useCaptur
e) { |
| 7949 var wrapper = this._removeWrapper(listener, useCapture); |
| 7950 if (wrapper != null) { |
| 7951 this._ptr.removeEventListener$3(this._type, wrapper, useCapture); |
| 7952 } |
| 7953 } |
| 7954 EventListenerListImplementation.prototype._removeWrapper = function(listener, us
eCapture) { |
| 7955 if (this._wrappers == null) { |
| 7956 return null; |
| 7957 } |
| 7958 for (var i = (0); |
| 7959 i < this._wrappers.get$length(); i++) { |
| 7960 var wrapper = this._wrappers.$index(i); |
| 7961 if (wrapper.raw == listener && $eq(wrapper.useCapture, useCapture)) { |
| 7962 if (i + (1) != this._wrappers.get$length()) { |
| 7963 this._wrappers.$setindex(i, this._wrappers.removeLast$0()); |
| 7964 } |
| 7965 else { |
| 7966 this._wrappers.removeLast$0(); |
| 7967 } |
| 7968 return wrapper.wrapped; |
| 7969 } |
| 7970 } |
| 7971 return null; |
| 7972 } |
| 7973 EventListenerListImplementation.prototype._findOrAddWrapper = function(listener,
useCapture) { |
| 7974 if (this._wrappers == null) { |
| 7975 this._wrappers = []; |
| 7976 } |
| 7977 else { |
| 7978 var $$list = this._wrappers; |
| 7979 for (var $$i = 0;$$i < $$list.get$length(); $$i++) { |
| 7980 var wrapper = $$list.$index($$i); |
| 7981 if (wrapper.raw == listener && $eq(wrapper.useCapture, useCapture)) { |
| 7982 return wrapper.wrapped; |
| 7983 } |
| 7984 } |
| 7985 } |
| 7986 var wrapped = (function (e) { |
| 7987 listener.call$1(LevelDom.wrapEvent(e)); |
| 7988 }) |
| 7989 ; |
| 7990 this._wrappers.add$1(new _EventListenerWrapper(listener, wrapped, useCapture))
; |
| 7991 return wrapped; |
| 7992 } |
| 7993 EventListenerListImplementation.prototype.add$1 = function($0) { |
| 7994 return this.add(to$call$1($0), false); |
| 7995 }; |
| 7996 EventListenerListImplementation.prototype.add$2 = function($0, $1) { |
| 7997 return this.add(to$call$1($0), $1); |
| 7998 }; |
| 7999 EventListenerListImplementation.prototype.remove$1 = function($0) { |
| 8000 return this.remove(to$call$1($0), false); |
| 8001 }; |
| 8002 EventListenerListImplementation.prototype.remove$2 = function($0, $1) { |
| 8003 return this.remove(to$call$1($0), $1); |
| 8004 }; |
| 8005 // ********** Code for HashChangeEventWrappingImplementation ************** |
| 8006 $inherits(HashChangeEventWrappingImplementation, EventWrappingImplementation); |
| 8007 function HashChangeEventWrappingImplementation() {} |
| 8008 HashChangeEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 8009 EventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 8010 } |
| 8011 HashChangeEventWrappingImplementation._wrap$ctor.prototype = HashChangeEventWrap
pingImplementation.prototype; |
| 8012 // ********** Code for KeyboardEventWrappingImplementation ************** |
| 8013 $inherits(KeyboardEventWrappingImplementation, UIEventWrappingImplementation); |
| 8014 function KeyboardEventWrappingImplementation() {} |
| 8015 KeyboardEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 8016 UIEventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 8017 } |
| 8018 KeyboardEventWrappingImplementation._wrap$ctor.prototype = KeyboardEventWrapping
Implementation.prototype; |
| 8019 // ********** Code for _MeasurementRequest ************** |
| 8020 function _MeasurementRequest(computeValue, completer) { |
| 8021 this.computeValue = computeValue; |
| 8022 this.exception = false; |
| 8023 this.completer = completer; |
| 8024 } |
| 8025 _MeasurementRequest.prototype.get$value = function() { return this.value; }; |
| 8026 _MeasurementRequest.prototype.set$value = function(value) { return this.value =
value; }; |
| 8027 // ********** Code for MessageEventWrappingImplementation ************** |
| 8028 $inherits(MessageEventWrappingImplementation, EventWrappingImplementation); |
| 8029 function MessageEventWrappingImplementation() {} |
| 8030 MessageEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 8031 EventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 8032 } |
| 8033 MessageEventWrappingImplementation._wrap$ctor.prototype = MessageEventWrappingIm
plementation.prototype; |
| 8034 // ********** Code for MouseEventWrappingImplementation ************** |
| 8035 $inherits(MouseEventWrappingImplementation, UIEventWrappingImplementation); |
| 8036 function MouseEventWrappingImplementation() {} |
| 8037 MouseEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 8038 UIEventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 8039 } |
| 8040 MouseEventWrappingImplementation._wrap$ctor.prototype = MouseEventWrappingImplem
entation.prototype; |
| 8041 // ********** Code for MutationEventWrappingImplementation ************** |
| 8042 $inherits(MutationEventWrappingImplementation, EventWrappingImplementation); |
| 8043 function MutationEventWrappingImplementation() {} |
| 8044 MutationEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 8045 EventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 8046 } |
| 8047 MutationEventWrappingImplementation._wrap$ctor.prototype = MutationEventWrapping
Implementation.prototype; |
| 8048 // ********** Code for _ChildrenNodeList ************** |
| 8049 function _ChildrenNodeList() {} |
| 8050 _ChildrenNodeList._wrap$ctor = function(node) { |
| 8051 this._node = node; |
| 8052 this._childNodes = node.get$childNodes(); |
| 8053 } |
| 8054 _ChildrenNodeList._wrap$ctor.prototype = _ChildrenNodeList.prototype; |
| 8055 _ChildrenNodeList.prototype.is$List = function(){return true}; |
| 8056 _ChildrenNodeList.prototype._toList = function() { |
| 8057 var output = new Array(this._childNodes.get$length()); |
| 8058 for (var i = (0), len = this._childNodes.get$length(); |
| 8059 i < len; i++) { |
| 8060 output.$setindex(i, LevelDom.wrapNode(this._childNodes.$index(i))); |
| 8061 } |
| 8062 return output; |
| 8063 } |
| 8064 _ChildrenNodeList.prototype.get$first = function() { |
| 8065 return LevelDom.wrapNode(this._node.get$firstChild()); |
| 8066 } |
| 8067 _ChildrenNodeList.prototype.forEach = function(f) { |
| 8068 return this._toList().forEach(f); |
| 8069 } |
| 8070 _ChildrenNodeList.prototype.filter = function(f) { |
| 8071 return this._toList().filter$1(f); |
| 8072 } |
| 8073 _ChildrenNodeList.prototype.isEmpty = function() { |
| 8074 return !this._node.hasChildNodes$0(); |
| 8075 } |
| 8076 _ChildrenNodeList.prototype.get$length = function() { |
| 8077 return this._childNodes.get$length(); |
| 8078 } |
| 8079 _ChildrenNodeList.prototype.$index = function(index) { |
| 8080 return LevelDom.wrapNode(this._childNodes.$index(index)); |
| 8081 } |
| 8082 _ChildrenNodeList.prototype.$setindex = function(index, value) { |
| 8083 this._node.replaceChild$2(LevelDom.unwrap(value), this._childNodes.$index(inde
x)); |
| 8084 } |
| 8085 _ChildrenNodeList.prototype.add = function(value) { |
| 8086 this._node.appendChild$1(LevelDom.unwrap(value)); |
| 8087 return value; |
| 8088 } |
| 8089 _ChildrenNodeList.prototype.iterator = function() { |
| 8090 return this._toList().iterator$0(); |
| 8091 } |
| 8092 _ChildrenNodeList.prototype.addAll = function(collection) { |
| 8093 for (var $$i = collection.iterator$0(); $$i.hasNext$0(); ) { |
| 8094 var node = $$i.next$0(); |
| 8095 this._node.appendChild$1(LevelDom.unwrap(node)); |
| 8096 } |
| 8097 } |
| 8098 _ChildrenNodeList.prototype.clear = function() { |
| 8099 this._node.set$textContent(""); |
| 8100 } |
| 8101 _ChildrenNodeList.prototype.get$clear = function() { |
| 8102 return this.clear.bind(this); |
| 8103 } |
| 8104 _ChildrenNodeList.prototype.removeLast = function() { |
| 8105 var last = this.last(); |
| 8106 if (last != null) { |
| 8107 this._node.removeChild$1(LevelDom.unwrap(last)); |
| 8108 } |
| 8109 return last; |
| 8110 } |
| 8111 _ChildrenNodeList.prototype.last = function() { |
| 8112 return LevelDom.wrapNode(this._node.get$lastChild()); |
| 8113 } |
| 8114 _ChildrenNodeList.prototype.add$1 = _ChildrenNodeList.prototype.add; |
| 8115 _ChildrenNodeList.prototype.addAll$1 = _ChildrenNodeList.prototype.addAll; |
| 8116 _ChildrenNodeList.prototype.clear$0 = _ChildrenNodeList.prototype.clear; |
| 8117 _ChildrenNodeList.prototype.filter$1 = function($0) { |
| 8118 return this.filter(to$call$1($0)); |
| 8119 }; |
| 8120 _ChildrenNodeList.prototype.iterator$0 = _ChildrenNodeList.prototype.iterator; |
| 8121 _ChildrenNodeList.prototype.last$0 = _ChildrenNodeList.prototype.last; |
| 8122 _ChildrenNodeList.prototype.removeLast$0 = _ChildrenNodeList.prototype.removeLas
t; |
| 8123 // ********** Code for ObjectElementWrappingImplementation ************** |
| 8124 $inherits(ObjectElementWrappingImplementation, ElementWrappingImplementation); |
| 8125 function ObjectElementWrappingImplementation() {} |
| 8126 ObjectElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 8127 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 8128 } |
| 8129 ObjectElementWrappingImplementation._wrap$ctor.prototype = ObjectElementWrapping
Implementation.prototype; |
| 8130 ObjectElementWrappingImplementation.prototype.is$html_html_Element = function(){
return true}; |
| 8131 ObjectElementWrappingImplementation.prototype.get$name = function() { |
| 8132 return this._ptr.get$name(); |
| 8133 } |
| 8134 // ********** Code for OverflowEventWrappingImplementation ************** |
| 8135 $inherits(OverflowEventWrappingImplementation, EventWrappingImplementation); |
| 8136 function OverflowEventWrappingImplementation() {} |
| 8137 OverflowEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 8138 EventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 8139 } |
| 8140 OverflowEventWrappingImplementation._wrap$ctor.prototype = OverflowEventWrapping
Implementation.prototype; |
| 8141 // ********** Code for PageTransitionEventWrappingImplementation ************** |
| 8142 $inherits(PageTransitionEventWrappingImplementation, EventWrappingImplementation
); |
| 8143 function PageTransitionEventWrappingImplementation() {} |
| 8144 PageTransitionEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 8145 EventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 8146 } |
| 8147 PageTransitionEventWrappingImplementation._wrap$ctor.prototype = PageTransitionE
ventWrappingImplementation.prototype; |
| 8148 // ********** Code for PopStateEventWrappingImplementation ************** |
| 8149 $inherits(PopStateEventWrappingImplementation, EventWrappingImplementation); |
| 8150 function PopStateEventWrappingImplementation() {} |
| 8151 PopStateEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 8152 EventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 8153 } |
| 8154 PopStateEventWrappingImplementation._wrap$ctor.prototype = PopStateEventWrapping
Implementation.prototype; |
| 8155 // ********** Code for ProgressEventWrappingImplementation ************** |
| 8156 $inherits(ProgressEventWrappingImplementation, EventWrappingImplementation); |
| 8157 function ProgressEventWrappingImplementation() {} |
| 8158 ProgressEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 8159 EventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 8160 } |
| 8161 ProgressEventWrappingImplementation._wrap$ctor.prototype = ProgressEventWrapping
Implementation.prototype; |
| 8162 // ********** Code for StorageEventWrappingImplementation ************** |
| 8163 $inherits(StorageEventWrappingImplementation, EventWrappingImplementation); |
| 8164 function StorageEventWrappingImplementation() {} |
| 8165 StorageEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 8166 EventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 8167 } |
| 8168 StorageEventWrappingImplementation._wrap$ctor.prototype = StorageEventWrappingIm
plementation.prototype; |
| 8169 // ********** Code for SVGDocumentWrappingImplementation ************** |
| 8170 $inherits(SVGDocumentWrappingImplementation, DocumentWrappingImplementation); |
| 8171 function SVGDocumentWrappingImplementation() {} |
| 8172 SVGDocumentWrappingImplementation._wrap$ctor = function(ptr) { |
| 8173 DocumentWrappingImplementation._wrap$ctor.call(this, ptr, ptr.rootElement); |
| 8174 } |
| 8175 SVGDocumentWrappingImplementation._wrap$ctor.prototype = SVGDocumentWrappingImpl
ementation.prototype; |
| 8176 SVGDocumentWrappingImplementation.prototype.is$html_html_Element = function(){re
turn true}; |
| 8177 // ********** Code for SVGSVGElementWrappingImplementation ************** |
| 8178 $inherits(SVGSVGElementWrappingImplementation, SVGElementWrappingImplementation)
; |
| 8179 function SVGSVGElementWrappingImplementation() {} |
| 8180 SVGSVGElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 8181 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 8182 } |
| 8183 SVGSVGElementWrappingImplementation._wrap$ctor.prototype = SVGSVGElementWrapping
Implementation.prototype; |
| 8184 SVGSVGElementWrappingImplementation.prototype.is$html_html_Element = function(){
return true}; |
| 8185 SVGSVGElementWrappingImplementation.prototype.get$style = function() { |
| 8186 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 8187 } |
| 8188 // ********** Code for TextEventWrappingImplementation ************** |
| 8189 $inherits(TextEventWrappingImplementation, UIEventWrappingImplementation); |
| 8190 function TextEventWrappingImplementation() {} |
| 8191 TextEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 8192 UIEventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 8193 } |
| 8194 TextEventWrappingImplementation._wrap$ctor.prototype = TextEventWrappingImplemen
tation.prototype; |
| 8195 // ********** Code for TouchEventWrappingImplementation ************** |
| 8196 $inherits(TouchEventWrappingImplementation, UIEventWrappingImplementation); |
| 8197 function TouchEventWrappingImplementation() {} |
| 8198 TouchEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 8199 UIEventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 8200 } |
| 8201 TouchEventWrappingImplementation._wrap$ctor.prototype = TouchEventWrappingImplem
entation.prototype; |
| 8202 // ********** Code for TransitionEventWrappingImplementation ************** |
| 8203 $inherits(TransitionEventWrappingImplementation, EventWrappingImplementation); |
| 8204 function TransitionEventWrappingImplementation() {} |
| 8205 TransitionEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 8206 EventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 8207 } |
| 8208 TransitionEventWrappingImplementation._wrap$ctor.prototype = TransitionEventWrap
pingImplementation.prototype; |
| 8209 // ********** Code for WheelEventWrappingImplementation ************** |
| 8210 $inherits(WheelEventWrappingImplementation, UIEventWrappingImplementation); |
| 8211 function WheelEventWrappingImplementation() {} |
| 8212 WheelEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 8213 UIEventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 8214 } |
| 8215 WheelEventWrappingImplementation._wrap$ctor.prototype = WheelEventWrappingImplem
entation.prototype; |
| 8216 // ********** Code for WindowEventsImplementation ************** |
| 8217 $inherits(WindowEventsImplementation, EventsImplementation); |
| 8218 function WindowEventsImplementation() {} |
| 8219 WindowEventsImplementation._wrap$ctor = function(_ptr) { |
| 8220 EventsImplementation._wrap$ctor.call(this, _ptr); |
| 8221 } |
| 8222 WindowEventsImplementation._wrap$ctor.prototype = WindowEventsImplementation.pro
totype; |
| 8223 WindowEventsImplementation.prototype.get$click = function() { |
| 8224 return this._get("click"); |
| 8225 } |
| 8226 WindowEventsImplementation.prototype.get$message = function() { |
| 8227 return this._get("message"); |
| 8228 } |
| 8229 WindowEventsImplementation.prototype.get$mouseDown = function() { |
| 8230 return this._get("mousedown"); |
| 8231 } |
| 8232 WindowEventsImplementation.prototype.get$mouseMove = function() { |
| 8233 return this._get("mousemove"); |
| 8234 } |
| 8235 WindowEventsImplementation.prototype.get$mouseUp = function() { |
| 8236 return this._get("mouseup"); |
| 8237 } |
| 8238 WindowEventsImplementation.prototype.click$0 = function() { |
| 8239 return this.get$click().call$0(); |
| 8240 }; |
| 8241 // ********** Code for WindowWrappingImplementation ************** |
| 8242 $inherits(WindowWrappingImplementation, EventTargetWrappingImplementation); |
| 8243 function WindowWrappingImplementation() {} |
| 8244 WindowWrappingImplementation._wrap$ctor = function(ptr) { |
| 8245 EventTargetWrappingImplementation._wrap$ctor.call(this, ptr); |
| 8246 } |
| 8247 WindowWrappingImplementation._wrap$ctor.prototype = WindowWrappingImplementation
.prototype; |
| 8248 WindowWrappingImplementation.prototype.get$length = function() { |
| 8249 return this._ptr.get$length(); |
| 8250 } |
| 8251 WindowWrappingImplementation.prototype.get$name = function() { |
| 8252 return this._ptr.get$name(); |
| 8253 } |
| 8254 WindowWrappingImplementation.prototype.set$onmessage = function(value) { |
| 8255 this._ptr.set$onmessage(LevelDom.unwrap(value)); |
| 8256 } |
| 8257 WindowWrappingImplementation.prototype.postMessage = function(message, messagePo
rt, targetOrigin) { |
| 8258 if (targetOrigin == null) { |
| 8259 if (messagePort == null) { |
| 8260 this._ptr.postMessage$1(message); |
| 8261 return; |
| 8262 } |
| 8263 else { |
| 8264 this._ptr.postMessage$2(message, messagePort); |
| 8265 return; |
| 8266 } |
| 8267 } |
| 8268 else { |
| 8269 this._ptr.postMessage$3(message, LevelDom.unwrap(messagePort), targetOrigin)
; |
| 8270 return; |
| 8271 } |
| 8272 $throw("Incorrect number or type of arguments"); |
| 8273 } |
| 8274 WindowWrappingImplementation.prototype.setTimeout = function(handler, timeout) { |
| 8275 return this._ptr.setTimeout$2(handler, timeout); |
| 8276 } |
| 8277 WindowWrappingImplementation.prototype.get$on = function() { |
| 8278 if (this._on == null) { |
| 8279 this._on = new WindowEventsImplementation._wrap$ctor(this._ptr); |
| 8280 } |
| 8281 return this._on; |
| 8282 } |
| 8283 WindowWrappingImplementation.prototype.postMessage$1 = WindowWrappingImplementat
ion.prototype.postMessage; |
| 8284 WindowWrappingImplementation.prototype.postMessage$2 = WindowWrappingImplementat
ion.prototype.postMessage; |
| 8285 WindowWrappingImplementation.prototype.postMessage$3 = WindowWrappingImplementat
ion.prototype.postMessage; |
| 8286 WindowWrappingImplementation.prototype.setTimeout$2 = function($0, $1) { |
| 8287 return this.setTimeout(to$call$0($0), $1); |
| 8288 }; |
| 8289 // ********** Code for XMLHttpRequestProgressEventWrappingImplementation *******
******* |
| 8290 $inherits(XMLHttpRequestProgressEventWrappingImplementation, ProgressEventWrappi
ngImplementation); |
| 8291 function XMLHttpRequestProgressEventWrappingImplementation() {} |
| 8292 XMLHttpRequestProgressEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 8293 ProgressEventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 8294 } |
| 8295 XMLHttpRequestProgressEventWrappingImplementation._wrap$ctor.prototype = XMLHttp
RequestProgressEventWrappingImplementation.prototype; |
| 8296 // ********** Code for top level ************** |
| 8297 var _pendingRequests; |
| 8298 var _pendingMeasurementFrameCallbacks; |
| 8299 function _maybeScheduleMeasurementFrame() { |
| 8300 if ($globals._nextMeasurementFrameScheduled) return; |
| 8301 $globals._nextMeasurementFrameScheduled = true; |
| 8302 if ($globals._firstMeasurementRequest) { |
| 8303 html_get$window().get$on().get$message().add((function (e) { |
| 8304 return _completeMeasurementFutures(); |
| 8305 }) |
| 8306 , false); |
| 8307 $globals._firstMeasurementRequest = false; |
| 8308 } |
| 8309 html_get$window().postMessage("DART-MEASURE", "*"); |
| 8310 } |
| 8311 function _createMeasurementFuture(computeValue, completer) { |
| 8312 if ($globals._pendingRequests == null) { |
| 8313 $globals._pendingRequests = []; |
| 8314 _maybeScheduleMeasurementFrame(); |
| 8315 } |
| 8316 $globals._pendingRequests.add$1(new _MeasurementRequest(computeValue, complete
r)); |
| 8317 return completer.get$future(); |
| 8318 } |
| 8319 function _completeMeasurementFutures() { |
| 8320 if ($eq($globals._nextMeasurementFrameScheduled, false)) { |
| 8321 return; |
| 8322 } |
| 8323 $globals._nextMeasurementFrameScheduled = false; |
| 8324 if ($globals._pendingRequests != null) { |
| 8325 var $$list = $globals._pendingRequests; |
| 8326 for (var $$i = 0;$$i < $$list.get$length(); $$i++) { |
| 8327 var request = $$list.$index($$i); |
| 8328 try { |
| 8329 request.value = request.computeValue.call$0(); |
| 8330 } catch (e) { |
| 8331 e = _toDartException(e); |
| 8332 request.value = e; |
| 8333 request.exception = true; |
| 8334 } |
| 8335 } |
| 8336 } |
| 8337 var completedRequests = $globals._pendingRequests; |
| 8338 var readyMeasurementFrameCallbacks = $globals._pendingMeasurementFrameCallback
s; |
| 8339 $globals._pendingRequests = null; |
| 8340 $globals._pendingMeasurementFrameCallbacks = null; |
| 8341 if (completedRequests != null) { |
| 8342 for (var $$i = completedRequests.iterator$0(); $$i.hasNext$0(); ) { |
| 8343 var request = $$i.next$0(); |
| 8344 if (request.exception) { |
| 8345 request.completer.completeException(request.value); |
| 8346 } |
| 8347 else { |
| 8348 request.completer.complete(request.value); |
| 8349 } |
| 8350 } |
| 8351 } |
| 8352 if (readyMeasurementFrameCallbacks != null) { |
| 8353 for (var $$i = readyMeasurementFrameCallbacks.iterator$0(); $$i.hasNext$0();
) { |
| 8354 var handler = $$i.next$0(); |
| 8355 handler.call$0(); |
| 8356 } |
| 8357 } |
| 8358 } |
| 8359 // ********** Library html ************** |
| 8360 // ********** Code for top level ************** |
| 8361 var secretWindow; |
| 8362 var secretDocument; |
| 8363 function html_get$window() { |
| 8364 if ($globals.secretWindow == null) { |
| 8365 LevelDom.initialize(); |
| 8366 } |
| 8367 return $globals.secretWindow; |
| 8368 } |
| 8369 function html_get$document() { |
| 8370 if ($globals.secretWindow == null) { |
| 8371 LevelDom.initialize(); |
| 8372 } |
| 8373 return $globals.secretDocument; |
| 8374 } |
| 8375 // ********** Library dartcombatlib ************** |
| 8376 // ********** Code for FlakyProxy ************** |
| 8377 function FlakyProxy(_target) { |
| 8378 var $this = this; // closure support |
| 8379 this._target = _target; |
| 8380 this.proxy = ReceivePortFactory.ReceivePort$factory(); |
| 8381 this.proxy.receive((function (message, reply) { |
| 8382 html_get$window().setTimeout((function () { |
| 8383 if ($this.randomlyFail()) { |
| 8384 reply.send(const$0018, null); |
| 8385 } |
| 8386 else { |
| 8387 $this._target.send(message, reply); |
| 8388 } |
| 8389 }) |
| 8390 , (200)); |
| 8391 }) |
| 8392 ); |
| 8393 } |
| 8394 FlakyProxy.prototype.get$sendPort = function() { |
| 8395 return this.proxy.toSendPort(); |
| 8396 } |
| 8397 FlakyProxy.prototype.randomlyFail = function() { |
| 8398 return false; |
| 8399 } |
| 8400 // ********** Code for Boat ************** |
| 8401 function Boat(startX, startY, horizontal, length) { |
| 8402 this.horizontal = horizontal; |
| 8403 this.startY = startY; |
| 8404 this.startX = startX; |
| 8405 this.hitCount = (0); |
| 8406 this.length = length; |
| 8407 } |
| 8408 Boat.prototype.get$length = function() { return this.length; }; |
| 8409 Boat.prototype.get$sunk = function() { |
| 8410 return this.length == this.hitCount; |
| 8411 } |
| 8412 // ********** Code for BoatGrid ************** |
| 8413 function BoatGrid() { |
| 8414 this.boatMap = new Array((10)); |
| 8415 for (var i = (0); |
| 8416 i < (10); i++) { |
| 8417 this.boatMap.$setindex(i, new Array((10))); |
| 8418 } |
| 8419 } |
| 8420 BoatGrid.prototype.placeBoats = function(boats) { |
| 8421 for (var b = (0); |
| 8422 b < boats.get$length(); b++) { |
| 8423 var boat = boats.$index(b); |
| 8424 for (var i = (0); |
| 8425 i < boat.length; i++) { |
| 8426 var x = boat.startX + (boat.horizontal ? i : (0)); |
| 8427 var y = boat.startY + (boat.horizontal ? (0) : i); |
| 8428 this.boatMap.$index(x).$setindex(y, boat); |
| 8429 } |
| 8430 } |
| 8431 } |
| 8432 BoatGrid.prototype.shoot = function(state, x, y) { |
| 8433 var b = this.boatMap.$index(x).$index(y); |
| 8434 if (b == null) { |
| 8435 state.miss(x, y); |
| 8436 return const$0016; |
| 8437 } |
| 8438 else { |
| 8439 state.hit(x, y); |
| 8440 b.hitCount++; |
| 8441 return b.get$sunk() ? [(3), b.length] : const$0017; |
| 8442 } |
| 8443 } |
| 8444 // ********** Code for GridState ************** |
| 8445 function GridState() { |
| 8446 this.cells = new Array((10)); |
| 8447 for (var i = (0); |
| 8448 i < (10); i++) { |
| 8449 this.cells.$setindex(i, new Array((10))); |
| 8450 } |
| 8451 } |
| 8452 GridState.prototype.valueAt = function(x, y) { |
| 8453 return this.cells.$index(x).$index(y); |
| 8454 } |
| 8455 GridState.prototype.miss = function(x, y) { |
| 8456 this.cells.$index(x).$setindex(y, (1)); |
| 8457 } |
| 8458 GridState.prototype.hit = function(x, y) { |
| 8459 this.cells.$index(x).$setindex(y, (2)); |
| 8460 } |
| 8461 GridState.prototype.pending = function(x, y) { |
| 8462 this.cells.$index(x).$setindex(y, (4)); |
| 8463 } |
| 8464 GridState.prototype.clear = function(x, y) { |
| 8465 this.cells.$index(x).$setindex(y); |
| 8466 } |
| 8467 GridState.prototype.get$clear = function() { |
| 8468 return this.clear.bind(this); |
| 8469 } |
| 8470 // ********** Code for Constants ************** |
| 8471 function Constants() {} |
| 8472 // ********** Code for PlayerImpl ************** |
| 8473 function PlayerImpl() { |
| 8474 this.portToPlayer = new PlayerState().spawn(); |
| 8475 } |
| 8476 PlayerImpl.prototype.setup = function(window, player) { |
| 8477 this.portToPlayer.then((function (port) { |
| 8478 return port.call(_map(["action", (1), "args", [player]])); |
| 8479 }) |
| 8480 ); |
| 8481 } |
| 8482 PlayerImpl.prototype.set$enemy = function(portToEnemy) { |
| 8483 this.portToPlayer.then((function (port) { |
| 8484 return port.call$1(_map(["action", (2), "args", [portToEnemy]])); |
| 8485 }) |
| 8486 ); |
| 8487 } |
| 8488 // ********** Code for EnemyImpl ************** |
| 8489 function EnemyImpl(portToEnemy) { |
| 8490 this.portToEnemy = portToEnemy; |
| 8491 } |
| 8492 EnemyImpl.prototype.ready = function() { |
| 8493 var res = new CompleterImpl(); |
| 8494 var port = this.portToEnemy.call(_map(["action", (3)])); |
| 8495 port.receive((function (message, replyTo) { |
| 8496 var success = message.$index((0)); |
| 8497 if (success) { |
| 8498 res.complete((0)); |
| 8499 } |
| 8500 else { |
| 8501 res.completeException(message.$index((1))); |
| 8502 } |
| 8503 }) |
| 8504 ); |
| 8505 return res.get$future(); |
| 8506 } |
| 8507 EnemyImpl.prototype.shoot = function(x, y) { |
| 8508 var res = new CompleterImpl(); |
| 8509 var port = this.portToEnemy.call(_map(["action", (4), "args", [x, y]])); |
| 8510 port.receive((function (message, replyTo) { |
| 8511 var success = message.$index((0)); |
| 8512 if (success) { |
| 8513 res.complete(message.$index((1)).$index((0))); |
| 8514 } |
| 8515 else { |
| 8516 res.completeException(message.$index((1))); |
| 8517 } |
| 8518 }) |
| 8519 ); |
| 8520 return res.get$future(); |
| 8521 } |
| 8522 // ********** Code for MessageIds ************** |
| 8523 function MessageIds() {} |
| 8524 // ********** Code for PlayerState ************** |
| 8525 $inherits(PlayerState, Isolate); |
| 8526 function PlayerState() { |
| 8527 Isolate.light$ctor.call(this); |
| 8528 } |
| 8529 PlayerState.prototype.main = function() { |
| 8530 var $this = this; // closure support |
| 8531 this.get$port().receive((function (message, replyTo) { |
| 8532 $this.dispatch(message, replyTo); |
| 8533 }) |
| 8534 ); |
| 8535 } |
| 8536 PlayerState.prototype.dispatch = function(message, replyTo) { |
| 8537 var action = message.$index("action"); |
| 8538 var args = message.$index("args"); |
| 8539 switch (action) { |
| 8540 case (1): |
| 8541 |
| 8542 this.handleSetup(args.$index((0))); |
| 8543 break; |
| 8544 |
| 8545 case (2): |
| 8546 |
| 8547 this.enemy = new EnemyImpl(args.$index((0))); |
| 8548 break; |
| 8549 |
| 8550 case (3): |
| 8551 |
| 8552 this._enemyView.setEnemyReady(); |
| 8553 replyTo.send([true], null); |
| 8554 break; |
| 8555 |
| 8556 case (4): |
| 8557 |
| 8558 var res = this.handleShot(args.$index((0)), args.$index((1))); |
| 8559 replyTo.send([true, res], null); |
| 8560 break; |
| 8561 |
| 8562 case (5): |
| 8563 |
| 8564 this._portForTest = args.$index((0)); |
| 8565 replyTo.send([true], null); |
| 8566 break; |
| 8567 |
| 8568 default: |
| 8569 |
| 8570 break; |
| 8571 |
| 8572 } |
| 8573 } |
| 8574 PlayerState.prototype.handleSetup = function(id) { |
| 8575 this._id = id; |
| 8576 this.boats = new BoatGrid(); |
| 8577 this.localGrid = new GridState(); |
| 8578 this.enemyGrid = new GridState(); |
| 8579 this.totalShots = (0); |
| 8580 this.totalHits = (0); |
| 8581 this.totalMisses = (0); |
| 8582 this.boatsSunk = (0); |
| 8583 this._ownView = new PlayerGridView(this, html_get$document().query(("#p" + id
+ "own"))); |
| 8584 this._enemyView = new EnemyGridView(this, html_get$document().query(("#p" + id
+ "enemy"))); |
| 8585 if (this._portForTest != null) { |
| 8586 this._portForTest.call(["_TEST:handleSetup", id]); |
| 8587 } |
| 8588 } |
| 8589 PlayerState.prototype.handleShot = function(x, y) { |
| 8590 var res = this.boats.shoot(this.localGrid, x, y); |
| 8591 switch (res.$index((0))) { |
| 8592 case (1): |
| 8593 |
| 8594 this._ownView.addMiss(x, y); |
| 8595 break; |
| 8596 |
| 8597 case (2): |
| 8598 |
| 8599 this._ownView.addHit(x, y); |
| 8600 break; |
| 8601 |
| 8602 case (3): |
| 8603 |
| 8604 this._ownView.addHit(x, y); |
| 8605 break; |
| 8606 |
| 8607 } |
| 8608 if (this._portForTest != null) { |
| 8609 this._portForTest.call(["_TEST:handleShot", this._id, res.$index((0)), x, y]
); |
| 8610 } |
| 8611 return res; |
| 8612 } |
| 8613 PlayerState.prototype.addBoat = function(boat) { |
| 8614 this.boats.placeBoats([boat]); |
| 8615 this.enemy.ready(); |
| 8616 } |
| 8617 PlayerState.prototype.shoot = function(x, y) { |
| 8618 this.superShot(x, y, $mod(this._id, (2)) == (0)); |
| 8619 } |
| 8620 PlayerState.prototype.superShot = function(x, y, parallel) { |
| 8621 var $this = this; // closure support |
| 8622 if (this._canShoot(x, y)) { |
| 8623 this._recordPendingShot(x, y); |
| 8624 var firstShot = this.enemy.shoot(x, y); |
| 8625 firstShot.then((function (res) { |
| 8626 $this._recordShotResult(res, x, y); |
| 8627 if (res == (2)) { |
| 8628 $this._exploreAllDirections(x, y, parallel); |
| 8629 } |
| 8630 }) |
| 8631 ); |
| 8632 firstShot.handleException((function (error) { |
| 8633 $this._recordFailedShot(x, y); |
| 8634 return true; |
| 8635 }) |
| 8636 ); |
| 8637 } |
| 8638 } |
| 8639 PlayerState.prototype._exploreAllDirections = function(x, y, parallel) { |
| 8640 var superShot_ = new CompleterImpl(); |
| 8641 if (parallel) { |
| 8642 var arr = new Array(); |
| 8643 arr.add$1(this._exploreDirectionHelper(const$0011, x, y)); |
| 8644 arr.add$1(this._exploreDirectionHelper(const$0013, x, y)); |
| 8645 arr.add$1(this._exploreDirectionHelper(const$0014, x, y)); |
| 8646 arr.add$1(this._exploreDirectionHelper(const$0015, x, y)); |
| 8647 Futures.wait(arr).then((function (arrValues) { |
| 8648 superShot_.complete(true); |
| 8649 }) |
| 8650 ); |
| 8651 } |
| 8652 else { |
| 8653 this._seqExploreDirectionHelper(const$0011, x, y, superShot_, to$call$1(this
._seqExploreDirectionHelper(const$0013, x, y, superShot_, to$call$1(this._seqExp
loreDirectionHelper(const$0014, x, y, superShot_, to$call$1(this._seqExploreDire
ctionHelper(const$0015, x, y, superShot_, to$call$1(null)))))))).call$1(false); |
| 8654 } |
| 8655 return superShot_.get$future(); |
| 8656 } |
| 8657 PlayerState.prototype._seqExploreDirectionHelper = function(dir, x, y, seq, _nex
t) { |
| 8658 var $this = this; // closure support |
| 8659 return (function (res) { |
| 8660 if (res) { |
| 8661 seq.complete(true); |
| 8662 } |
| 8663 else { |
| 8664 $this._exploreDirectionHelper(dir, x, y).then(to$call$1((_next != null) ?
_next : (function _(v) { |
| 8665 seq.complete(false); |
| 8666 } |
| 8667 ))); |
| 8668 } |
| 8669 }) |
| 8670 ; |
| 8671 } |
| 8672 PlayerState.prototype._exploreDirectionHelper = function(dir, x, y) { |
| 8673 var sunk = new CompleterImpl(); |
| 8674 this._followDir(x + dir.$index((0)), y + dir.$index((1)), dir.$index((0)), dir
.$index((1)), sunk); |
| 8675 return sunk.get$future(); |
| 8676 } |
| 8677 PlayerState.prototype._followDir = function(x, y, incX, incY, sunk) { |
| 8678 var $this = this; // closure support |
| 8679 if (this._canShoot(x, y)) { |
| 8680 this._recordPendingShot(x, y); |
| 8681 var shot = this.enemy.shoot(x, y); |
| 8682 shot.then((function (res) { |
| 8683 $this._recordShotResult(res, x, y); |
| 8684 switch (res) { |
| 8685 case (2): |
| 8686 |
| 8687 if (!sunk.get$future().get$isComplete()) { |
| 8688 $this._followDir(x + incX, y + incY, incX, incY, sunk); |
| 8689 } |
| 8690 break; |
| 8691 |
| 8692 case (3): |
| 8693 |
| 8694 sunk.complete(true); |
| 8695 break; |
| 8696 |
| 8697 case (1): |
| 8698 |
| 8699 sunk.complete(false); |
| 8700 break; |
| 8701 |
| 8702 } |
| 8703 }) |
| 8704 ); |
| 8705 shot.handleException((function (error) { |
| 8706 $this._recordFailedShot(x, y); |
| 8707 sunk.completeException(error); |
| 8708 return true; |
| 8709 }) |
| 8710 ); |
| 8711 } |
| 8712 else { |
| 8713 sunk.complete(false); |
| 8714 } |
| 8715 } |
| 8716 PlayerState.prototype._canShoot = function(x, y) { |
| 8717 return this._inRange(x, y) && this.enemyGrid.valueAt(x, y) == null; |
| 8718 } |
| 8719 PlayerState.prototype._inRange = function(x, y) { |
| 8720 return x >= (0) && y >= (0) && x < (10) && y < (10); |
| 8721 } |
| 8722 PlayerState.prototype._recordPendingShot = function(x, y) { |
| 8723 this.totalShots++; |
| 8724 this._enemyView.statusBar.updateStatus(); |
| 8725 this._enemyView.addMaybeHit(x, y); |
| 8726 this.enemyGrid.pending(x, y); |
| 8727 } |
| 8728 PlayerState.prototype._recordCancelledShot = function(x, y) { |
| 8729 this.totalShots--; |
| 8730 this._enemyView.removeMaybeHit(x, y); |
| 8731 this._enemyView.statusBar.updateStatus(); |
| 8732 this.enemyGrid.clear(x, y); |
| 8733 } |
| 8734 PlayerState.prototype._recordFailedShot = function(x, y) { |
| 8735 this._recordCancelledShot(x, y); |
| 8736 } |
| 8737 PlayerState.prototype._recordShotResult = function(shotResult, x, y) { |
| 8738 switch (shotResult) { |
| 8739 case (1): |
| 8740 |
| 8741 this.totalMisses++; |
| 8742 this._enemyView.addMiss(x, y); |
| 8743 this.enemyGrid.miss(x, y); |
| 8744 break; |
| 8745 |
| 8746 case (2): |
| 8747 |
| 8748 this.totalHits++; |
| 8749 this._enemyView.addHit(x, y); |
| 8750 this.enemyGrid.hit(x, y); |
| 8751 break; |
| 8752 |
| 8753 case (3): |
| 8754 |
| 8755 this.totalHits++; |
| 8756 this.boatsSunk++; |
| 8757 this._enemyView.addHit(x, y); |
| 8758 this.enemyGrid.hit(x, y); |
| 8759 break; |
| 8760 |
| 8761 } |
| 8762 this._enemyView.statusBar.updateStatus(); |
| 8763 } |
| 8764 // ********** Code for View ************** |
| 8765 function View(doc) { |
| 8766 this.doc = doc; |
| 8767 } |
| 8768 // ********** Code for PlayerGridView ************** |
| 8769 $inherits(PlayerGridView, View); |
| 8770 function PlayerGridView(state, rootNode) { |
| 8771 this.state = state; |
| 8772 this._rootNode = rootNode; |
| 8773 View.call(this, rootNode.get$document()); |
| 8774 this.render(); |
| 8775 } |
| 8776 PlayerGridView.prototype.render = function() { |
| 8777 var cell = "<div class='icons water'></div>"; |
| 8778 var _cells = new StringBufferImpl(""); |
| 8779 for (var i = (0); |
| 8780 i < this.state.localGrid.cells.get$length(); i++) { |
| 8781 _cells.add(cell); |
| 8782 } |
| 8783 var cells = _cells.toString(); |
| 8784 var row = ("<div class='hbox'>" + cells + "</div>"); |
| 8785 var _rows = new StringBufferImpl(""); |
| 8786 for (var i = (0); |
| 8787 i < this.state.localGrid.cells.get$length(); i++) { |
| 8788 _rows.add(row); |
| 8789 } |
| 8790 var rows = _rows.toString(); |
| 8791 var table = ("<div class='vbox'>" + rows + "</div>"); |
| 8792 this._rootNode.set$innerHTML(table); |
| 8793 new PlaceBoatView(this.state, this._rootNode).attach(); |
| 8794 } |
| 8795 PlayerGridView.prototype.addMiss = function(x, y) { |
| 8796 var node = ViewUtil.createDiv("icons miss"); |
| 8797 ViewUtil.placeNodeAt(node, x, y); |
| 8798 this._rootNode.get$nodes().add$1(node); |
| 8799 } |
| 8800 PlayerGridView.prototype.addHit = function(x, y) { |
| 8801 var node = ViewUtil.createDiv("icons hit-onboat"); |
| 8802 ViewUtil.placeNodeAt(node, x, y); |
| 8803 this._rootNode.get$nodes().add$1(node); |
| 8804 } |
| 8805 // ********** Code for PlaceBoatView ************** |
| 8806 $inherits(PlaceBoatView, View); |
| 8807 function PlaceBoatView(state, rootNode) { |
| 8808 this._rootNode = rootNode; |
| 8809 this.state = state; |
| 8810 View.call(this, rootNode.get$document()); |
| 8811 } |
| 8812 PlaceBoatView.prototype.attach = function() { |
| 8813 this._rootNode.get$on().get$mouseDown().add$1(this.get$handleMouseDown()); |
| 8814 this._rootNode.get$on().get$mouseUp().add$1(this.get$handleMouseUp()); |
| 8815 } |
| 8816 PlaceBoatView.prototype.handleMouseDown = function(e) { |
| 8817 var $this = this; // closure support |
| 8818 e.preventDefault$0(); |
| 8819 ViewUtil.positionFromEvent(this._rootNode, e).then((function (pos) { |
| 8820 $this._boatStartX = pos.$index((0)); |
| 8821 $this._boatStartY = pos.$index((1)); |
| 8822 if ($this._moveListener != null) { |
| 8823 $this._rootNode.get$on().get$mouseMove().remove$2($this._moveListener, fal
se); |
| 8824 $this._possibleBoat.remove(); |
| 8825 $this._moveListener = null; |
| 8826 } |
| 8827 $this._possibleBoat = ViewUtil.createDiv("icons boat2"); |
| 8828 ViewUtil.placeNodeAt($this._possibleBoat, $this._boatStartX, $this._boatStar
tY); |
| 8829 $this._rootNode.get$nodes().add$1($this._possibleBoat); |
| 8830 $this._moveListener = $this.get$handleMouseMove(); |
| 8831 $this._rootNode.get$on().get$mouseMove().add$1($this._moveListener); |
| 8832 }) |
| 8833 ); |
| 8834 } |
| 8835 PlaceBoatView.prototype.get$handleMouseDown = function() { |
| 8836 return this.handleMouseDown.bind(this); |
| 8837 } |
| 8838 PlaceBoatView.prototype.handleMouseMove = function(e) { |
| 8839 var $this = this; // closure support |
| 8840 e.preventDefault$0(); |
| 8841 ViewUtil.positionFromEvent(this._rootNode, e).then((function (pos) { |
| 8842 if ($this._boatLastX == pos.$index((0)) && $this._boatLastY == pos.$index((1
))) { |
| 8843 return; |
| 8844 } |
| 8845 $this._boatLastX = pos.$index((0)); |
| 8846 $this._boatLastY = pos.$index((1)); |
| 8847 var deltaX = $this._boatLastX - $this._boatStartX; |
| 8848 var deltaY = $this._boatLastY - $this._boatStartY; |
| 8849 var dir; |
| 8850 var flip = false; |
| 8851 var boatSize = (2); |
| 8852 if (deltaX.abs() >= deltaY.abs()) { |
| 8853 dir = deltaX < (0) ? "right" : "left"; |
| 8854 boatSize = Math.max((2), Math.min((5), deltaX.abs() + (1))); |
| 8855 } |
| 8856 else { |
| 8857 dir = deltaY < (0) ? "up" : "down"; |
| 8858 boatSize = Math.max((2), Math.min((5), deltaY.abs() + (1))); |
| 8859 } |
| 8860 $this._possibleBoat.get$attributes().$setindex("class", ("icons boat" + boat
Size + " boatdir-" + dir)); |
| 8861 }) |
| 8862 ); |
| 8863 } |
| 8864 PlaceBoatView.prototype.get$handleMouseMove = function() { |
| 8865 return this.handleMouseMove.bind(this); |
| 8866 } |
| 8867 PlaceBoatView.prototype.handleMouseUp = function(e) { |
| 8868 var $this = this; // closure support |
| 8869 this._rootNode.get$on().get$mouseMove().remove$2(this._moveListener, false); |
| 8870 this._moveListener = null; |
| 8871 ViewUtil.positionFromEvent(this._rootNode, e).then((function (pos) { |
| 8872 var _boatEndX = pos.$index((0)); |
| 8873 var _boatEndY = pos.$index((1)); |
| 8874 var deltaX = _boatEndX - $this._boatStartX; |
| 8875 var deltaY = _boatEndY - $this._boatStartY; |
| 8876 var boat; |
| 8877 if (deltaX.abs() >= deltaY.abs()) { |
| 8878 var boatSize = Math.max((2), Math.min((5), deltaX.abs() + (1))); |
| 8879 boat = new Boat(deltaX < (0) ? ($this._boatStartX - boatSize + (1)) : $thi
s._boatStartX, $this._boatStartY, true, boatSize); |
| 8880 } |
| 8881 else { |
| 8882 var boatSize = Math.max((2), Math.min((5), deltaY.abs() + (1))); |
| 8883 boat = new Boat($this._boatStartX, deltaY < (0) ? ($this._boatStartY - boa
tSize + (1)) : $this._boatStartY, false, boatSize); |
| 8884 } |
| 8885 $this.state.addBoat(boat); |
| 8886 }) |
| 8887 ); |
| 8888 } |
| 8889 PlaceBoatView.prototype.get$handleMouseUp = function() { |
| 8890 return this.handleMouseUp.bind(this); |
| 8891 } |
| 8892 // ********** Code for EnemyGridView ************** |
| 8893 $inherits(EnemyGridView, View); |
| 8894 function EnemyGridView(state, rootNode) { |
| 8895 var $this = this; // closure support |
| 8896 this.state = state; |
| 8897 this._rootNode = rootNode; |
| 8898 this._enemyReady = false; |
| 8899 View.call(this, rootNode.get$document()); |
| 8900 var cell = "<div class='icons water'></div>"; |
| 8901 var _cells = new StringBufferImpl(""); |
| 8902 for (var i = (0); |
| 8903 i < this.state.enemyGrid.cells.get$length(); i++) { |
| 8904 _cells.add(cell); |
| 8905 } |
| 8906 var cells = _cells.toString(); |
| 8907 var row = ("<div class='hbox'>" + cells + "</div>"); |
| 8908 var _rows = new StringBufferImpl(""); |
| 8909 for (var i = (0); |
| 8910 i < this.state.enemyGrid.cells.get$length(); i++) { |
| 8911 _rows.add(row); |
| 8912 } |
| 8913 var rows = _rows.toString(); |
| 8914 var table = ("<div class='vbox'>" + rows + "</div>"); |
| 8915 this._rootNode.set$innerHTML(("" + table + "<div class='notready'>ENEMY IS NOT
READY</div>")); |
| 8916 this.statusBar = new ShootingStatusView(this.state, this.doc); |
| 8917 this._rootNode.get$nodes().add$1(this.statusBar._rootNode); |
| 8918 this._rootNode.get$on().get$click().add$2((function (e) { |
| 8919 var mouseEvent = e; |
| 8920 $this.handleClick(mouseEvent); |
| 8921 }) |
| 8922 , false); |
| 8923 } |
| 8924 EnemyGridView.prototype.handleClick = function(e) { |
| 8925 var $this = this; // closure support |
| 8926 ViewUtil.positionFromEvent(this._rootNode, e).then((function (pos) { |
| 8927 $this.state.shoot(pos.$index((0)), pos.$index((1))); |
| 8928 }) |
| 8929 ); |
| 8930 } |
| 8931 EnemyGridView.prototype.setEnemyReady = function() { |
| 8932 if (!this._enemyReady) { |
| 8933 this._enemyReady = true; |
| 8934 this._rootNode.query(".notready").remove(); |
| 8935 } |
| 8936 } |
| 8937 EnemyGridView.prototype.addHit = function(x, y) { |
| 8938 var node = ViewUtil.createDiv("icons hit"); |
| 8939 ViewUtil.placeNodeAt(node, x, y); |
| 8940 this._rootNode.get$nodes().add$1(node); |
| 8941 } |
| 8942 EnemyGridView.prototype.addMiss = function(x, y) { |
| 8943 var node = ViewUtil.createDiv("icons miss"); |
| 8944 ViewUtil.placeNodeAt(node, x, y); |
| 8945 this._rootNode.get$nodes().add$1(node); |
| 8946 } |
| 8947 EnemyGridView.prototype.addMaybeHit = function(x, y) { |
| 8948 var node = ViewUtil.createDiv("icons maybe-hit"); |
| 8949 ViewUtil.placeNodeAt(node, x, y); |
| 8950 this._rootNode.get$nodes().add$1(node); |
| 8951 } |
| 8952 EnemyGridView.prototype.removeMaybeHit = function(x, y) { |
| 8953 var $$list = this._rootNode.queryAll(".maybe-hit"); |
| 8954 for (var $$i = $$list.iterator$0(); $$i.hasNext$0(); ) { |
| 8955 var node = $$i.next$0(); |
| 8956 var xoffset = x * (50); |
| 8957 var yoffset = y * (50); |
| 8958 if (node.get$style().getPropertyValue("top") == ("" + yoffset + "px") && nod
e.get$style().getPropertyValue("left") == ("" + xoffset + "px")) { |
| 8959 node.remove(); |
| 8960 return; |
| 8961 } |
| 8962 } |
| 8963 } |
| 8964 // ********** Code for ShootingStatusView ************** |
| 8965 $inherits(ShootingStatusView, View); |
| 8966 function ShootingStatusView(state, doc) { |
| 8967 this.state = state; |
| 8968 View.call(this, doc); |
| 8969 this._rootNode = ViewUtil.createDiv("shooting-status"); |
| 8970 this.updateStatus(); |
| 8971 } |
| 8972 ShootingStatusView.prototype.updateStatus = function() { |
| 8973 var total = this.state.totalShots; |
| 8974 var hit = this.state.totalHits; |
| 8975 var miss = this.state.totalMisses; |
| 8976 var accounted = $add(hit, miss); |
| 8977 var sunk = this.state.boatsSunk; |
| 8978 this._rootNode.set$innerHTML(("" + total + " <= " + accounted + " (" + hit
+ " + " + miss + "); " + sunk)); |
| 8979 } |
| 8980 // ********** Code for ViewUtil ************** |
| 8981 function ViewUtil() {} |
| 8982 ViewUtil.positionFromEvent = function(gridNode, e) { |
| 8983 var completer = new CompleterImpl(); |
| 8984 gridNode.get$rect().then((function (rect) { |
| 8985 var x = $truncdiv((e.get$pageX() - rect.offset.get$left()), (50)); |
| 8986 var y = $truncdiv((e.get$pageY() - rect.offset.get$top()), (50)); |
| 8987 completer.complete$1([x, y]); |
| 8988 }) |
| 8989 ); |
| 8990 return completer.get$future(); |
| 8991 } |
| 8992 ViewUtil.placeNodeAt = function(node, x, y) { |
| 8993 var xoffset = x * (50); |
| 8994 var yoffset = y * (50); |
| 8995 node.get$style().setProperty$2("top", yoffset.toString$0() + "px"); |
| 8996 node.get$style().setProperty$2("left", xoffset.toString$0() + "px"); |
| 8997 } |
| 8998 ViewUtil.createDiv = function(className) { |
| 8999 var node = ElementWrappingImplementation.ElementWrappingImplementation$tag$fac
tory("div"); |
| 9000 node.get$attributes().$setindex("class", className); |
| 9001 return node; |
| 9002 } |
| 9003 // ********** Code for top level ************** |
| 9004 function setUpGame() { |
| 9005 setupUI(); |
| 9006 createPlayers(); |
| 9007 } |
| 9008 function setupUI() { |
| 9009 var div = ElementWrappingImplementation.ElementWrappingImplementation$tag$fact
ory("div"); |
| 9010 div.set$innerHTML(" <div class='hbox'>\n <div class='vbox'>\n P
layer 1 board:\n <div class='own' id='p1own'></div>\n Known of ene
my's board:\n <div class='enemy' id='p1enemy'></div>\n </div>\n
<div style='width:20%'></div>\n <div class='vbox'>\n Player 2 board
:\n <div class='own' id='p2own'></div>\n Known of enemy's board:\n
<div class='enemy' id='p2enemy'></div>\n </div>\n </div>\n "); |
| 9011 html_get$document().get$body().get$nodes().add$1(div); |
| 9012 } |
| 9013 function createPlayers() { |
| 9014 var player1 = new PlayerImpl(); |
| 9015 player1.setup(html_get$window(), (1)); |
| 9016 var player2 = new PlayerImpl(); |
| 9017 player2.setup(html_get$window(), (2)); |
| 9018 player2.portToPlayer.then((function (port) { |
| 9019 player1.set$enemy(new FlakyProxy(port).get$sendPort()); |
| 9020 }) |
| 9021 ); |
| 9022 player1.portToPlayer.then((function (port) { |
| 9023 player2.set$enemy(new FlakyProxy(port).get$sendPort()); |
| 9024 }) |
| 9025 ); |
| 9026 } |
| 9027 // ********** Library dartcombat ************** |
| 9028 // ********** Code for top level ************** |
| 9029 function main() { |
| 9030 setUpGame(); |
| 9031 } |
| 9032 // ********** Generic Type Inheritance ************** |
| 9033 /** Implements extends for generic types. */ |
| 9034 function $inheritsMembers(child, parent) { |
| 9035 child = child.prototype; |
| 9036 parent = parent.prototype; |
| 9037 Object.getOwnPropertyNames(parent).forEach(function(name) { |
| 9038 if (typeof(child[name]) == 'undefined') child[name] = parent[name]; |
| 9039 }); |
| 9040 } |
| 9041 $inheritsMembers(_DoubleLinkedQueueEntrySentinel_E, DoubleLinkedQueueEntry_E); |
| 9042 $inheritsMembers(_DoubleLinkedQueueEntrySentinel_KeyValuePair_K$V, DoubleLinkedQ
ueueEntry_KeyValuePair_K$V); |
| 9043 // 318 dynamic types. |
| 9044 // 502 types |
| 9045 // 41 !leaf |
| 9046 (function(){ |
| 9047 var v0/*CSSValueList*/ = 'CSSValueList|WebKitCSSFilterValue|WebKitCSSTransform
Value'; |
| 9048 var v1/*HTMLInputElement*/ = 'HTMLInputElement|HTMLIsIndexElement'; |
| 9049 var v2/*SVGGradientElement*/ = 'SVGGradientElement|SVGLinearGradientElement|SV
GRadialGradientElement'; |
| 9050 var v3/*SVGTextContentElement*/ = 'SVGTextContentElement|SVGTextPathElement|SV
GTextPositioningElement|SVGAltGlyphElement|SVGTRefElement|SVGTSpanElement|SVGTex
tElement'; |
| 9051 var v4/*HTMLElement*/ = [v1/*HTMLInputElement*/,'HTMLElement|HTMLAnchorElement
|HTMLAppletElement|HTMLAreaElement|HTMLBRElement|HTMLBaseElement|HTMLBaseFontEle
ment|HTMLBodyElement|HTMLButtonElement|HTMLCanvasElement|HTMLDListElement|HTMLDa
taListElement|HTMLDetailsElement|HTMLDirectoryElement|HTMLDivElement|HTMLEmbedEl
ement|HTMLFieldSetElement|HTMLFontElement|HTMLFormElement|HTMLFrameElement|HTMLF
rameSetElement|HTMLHRElement|HTMLHeadElement|HTMLHeadingElement|HTMLHtmlElement|
HTMLIFrameElement|HTMLImageElement|HTMLKeygenElement|HTMLLIElement|HTMLLabelElem
ent|HTMLLegendElement|HTMLLinkElement|HTMLMapElement|HTMLMarqueeElement|HTMLMedi
aElement|HTMLAudioElement|HTMLVideoElement|HTMLMenuElement|HTMLMetaElement|HTMLM
eterElement|HTMLModElement|HTMLOListElement|HTMLObjectElement|HTMLOptGroupElemen
t|HTMLOptionElement|HTMLOutputElement|HTMLParagraphElement|HTMLParamElement|HTML
PreElement|HTMLProgressElement|HTMLQuoteElement|HTMLScriptElement|HTMLSelectElem
ent|HTMLSourceElement|HTMLSpanElement|HTMLStyleElement|HTMLTableCaptionElement|H
TMLTableCellElement|HTMLTableColElement|HTMLTableElement|HTMLTableRowElement|HTM
LTableSectionElement|HTMLTextAreaElement|HTMLTitleElement|HTMLTrackElement|HTMLU
ListElement|HTMLUnknownElement'].join('|'); |
| 9052 var v5/*SVGElement*/ = [v2/*SVGGradientElement*/,v3/*SVGTextContentElement*/,'
SVGElement|SVGAElement|SVGAltGlyphDefElement|SVGAltGlyphItemElement|SVGAnimation
Element|SVGAnimateColorElement|SVGAnimateElement|SVGAnimateMotionElement|SVGAnim
ateTransformElement|SVGSetElement|SVGCircleElement|SVGClipPathElement|SVGCompone
ntTransferFunctionElement|SVGFEFuncAElement|SVGFEFuncBElement|SVGFEFuncGElement|
SVGFEFuncRElement|SVGCursorElement|SVGDefsElement|SVGDescElement|SVGEllipseEleme
nt|SVGFEBlendElement|SVGFEColorMatrixElement|SVGFEComponentTransferElement|SVGFE
CompositeElement|SVGFEConvolveMatrixElement|SVGFEDiffuseLightingElement|SVGFEDis
placementMapElement|SVGFEDistantLightElement|SVGFEDropShadowElement|SVGFEFloodEl
ement|SVGFEGaussianBlurElement|SVGFEImageElement|SVGFEMergeElement|SVGFEMergeNod
eElement|SVGFEMorphologyElement|SVGFEOffsetElement|SVGFEPointLightElement|SVGFES
pecularLightingElement|SVGFESpotLightElement|SVGFETileElement|SVGFETurbulenceEle
ment|SVGFilterElement|SVGFontElement|SVGFontFaceElement|SVGFontFaceFormatElement
|SVGFontFaceNameElement|SVGFontFaceSrcElement|SVGFontFaceUriElement|SVGForeignOb
jectElement|SVGGElement|SVGGlyphElement|SVGGlyphRefElement|SVGHKernElement|SVGIm
ageElement|SVGLineElement|SVGMPathElement|SVGMarkerElement|SVGMaskElement|SVGMet
adataElement|SVGMissingGlyphElement|SVGPathElement|SVGPatternElement|SVGPolygonE
lement|SVGPolylineElement|SVGRectElement|SVGSVGElement|SVGScriptElement|SVGStopE
lement|SVGStyleElement|SVGSwitchElement|SVGSymbolElement|SVGTitleElement|SVGUseE
lement|SVGVKernElement|SVGViewElement'].join('|'); |
| 9053 var v6/*UIEvent*/ = 'UIEvent|CompositionEvent|KeyboardEvent|MouseEvent|SVGZoom
Event|TextEvent|TouchEvent|WheelEvent'; |
| 9054 var v7/*CharacterData*/ = 'CharacterData|Comment|Text|CDATASection'; |
| 9055 var v8/*Document*/ = 'Document|HTMLDocument|SVGDocument'; |
| 9056 var v9/*Element*/ = [v4/*HTMLElement*/,v5/*SVGElement*/,'Element'].join('|'); |
| 9057 var table = [ |
| 9058 // [dynamic-dispatch-tag, tags of classes implementing dynamic-dispatch-tag] |
| 9059 ['AbstractWorker', 'AbstractWorker|SharedWorker|Worker'], |
| 9060 ['ArrayBufferView', 'ArrayBufferView|DataView|Float32Array|Float64Array|Int1
6Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array'], |
| 9061 ['AudioNode', 'AudioNode|AudioChannelMerger|AudioChannelSplitter|AudioDestin
ationNode|AudioGainNode|AudioPannerNode|AudioSourceNode|AudioBufferSourceNode|Me
diaElementAudioSourceNode|BiquadFilterNode|ConvolverNode|DelayNode|DynamicsCompr
essorNode|HighPass2FilterNode|JavaScriptAudioNode|LowPass2FilterNode|RealtimeAna
lyserNode|WaveShaperNode'], |
| 9062 ['AudioParam', 'AudioParam|AudioGain'], |
| 9063 ['Blob', 'Blob|File'], |
| 9064 ['CSSRule', 'CSSRule|CSSCharsetRule|CSSFontFaceRule|CSSImportRule|CSSMediaRu
le|CSSPageRule|CSSStyleRule|CSSUnknownRule|WebKitCSSKeyframeRule|WebKitCSSKeyfra
mesRule'], |
| 9065 ['CSSValueList', v0/*CSSValueList*/], |
| 9066 ['CSSValue', [v0/*CSSValueList*/,'CSSValue|CSSPrimitiveValue|SVGColor|SVGPai
nt'].join('|')], |
| 9067 ['CanvasRenderingContext', 'CanvasRenderingContext|CanvasRenderingContext2D|
WebGLRenderingContext'], |
| 9068 ['CharacterData', v7/*CharacterData*/], |
| 9069 ['DOMTokenList', 'DOMTokenList|DOMSettableTokenList'], |
| 9070 ['DOMWindow', 'DOMWindow|Window'], |
| 9071 ['Document', v8/*Document*/], |
| 9072 ['HTMLInputElement', v1/*HTMLInputElement*/], |
| 9073 ['HTMLElement', v4/*HTMLElement*/], |
| 9074 ['SVGGradientElement', v2/*SVGGradientElement*/], |
| 9075 ['SVGTextContentElement', v3/*SVGTextContentElement*/], |
| 9076 ['SVGElement', v5/*SVGElement*/], |
| 9077 ['Element', v9/*Element*/], |
| 9078 ['Entry', 'Entry|DirectoryEntry|FileEntry'], |
| 9079 ['EntrySync', 'EntrySync|DirectoryEntrySync|FileEntrySync'], |
| 9080 ['UIEvent', v6/*UIEvent*/], |
| 9081 ['Event', [v6/*UIEvent*/,'Event|AudioProcessingEvent|BeforeLoadEvent|CloseEv
ent|CustomEvent|DeviceMotionEvent|DeviceOrientationEvent|ErrorEvent|HashChangeEv
ent|IDBVersionChangeEvent|MessageEvent|MutationEvent|OfflineAudioCompletionEvent
|OverflowEvent|PageTransitionEvent|PopStateEvent|ProgressEvent|XMLHttpRequestPro
gressEvent|SpeechInputEvent|StorageEvent|TrackEvent|WebGLContextEvent|WebKitAnim
ationEvent|WebKitTransitionEvent'].join('|')], |
| 9082 ['HTMLCollection', 'HTMLCollection|HTMLOptionsCollection|HTMLPropertiesColle
ction'], |
| 9083 ['IDBCursor', 'IDBCursor|IDBCursorWithValue'], |
| 9084 ['IDBRequest', 'IDBRequest|IDBVersionChangeRequest'], |
| 9085 ['Node', [v7/*CharacterData*/,v8/*Document*/,v9/*Element*/,'Node|Attr|Docume
ntFragment|DocumentType|Entity|EntityReference|Notation|ProcessingInstruction'].
join('|')], |
| 9086 ['SVGLocatable', 'SVGLocatable|SVGTransformable'], |
| 9087 ['SVGPathSeg', 'SVGPathSeg|SVGPathSegArcAbs|SVGPathSegArcRel|SVGPathSegClose
Path|SVGPathSegCurvetoCubicAbs|SVGPathSegCurvetoCubicRel|SVGPathSegCurvetoCubicS
moothAbs|SVGPathSegCurvetoCubicSmoothRel|SVGPathSegCurvetoQuadraticAbs|SVGPathSe
gCurvetoQuadraticRel|SVGPathSegCurvetoQuadraticSmoothAbs|SVGPathSegCurvetoQuadra
ticSmoothRel|SVGPathSegLinetoAbs|SVGPathSegLinetoHorizontalAbs|SVGPathSegLinetoH
orizontalRel|SVGPathSegLinetoRel|SVGPathSegLinetoVerticalAbs|SVGPathSegLinetoVer
ticalRel|SVGPathSegMovetoAbs|SVGPathSegMovetoRel'], |
| 9088 ['SVGStylable', 'SVGStylable|SVGFilterPrimitiveStandardAttributes'], |
| 9089 ['SVGZoomAndPan', 'SVGZoomAndPan|SVGViewSpec'], |
| 9090 ['StyleSheet', 'StyleSheet|CSSStyleSheet'], |
| 9091 ['WorkerContext', 'WorkerContext|DedicatedWorkerContext|SharedWorkercontext'
], |
| 9092 ]; |
| 9093 $dynamicSetMetadata(table); |
| 9094 })(); |
| 9095 // ********** Globals ************** |
| 9096 function $static_init(){ |
| 9097 $globals._firstMeasurementRequest = true; |
| 9098 $globals.ReceivePortImpl__nextFreeId = (1); |
| 9099 $globals._nextMeasurementFrameScheduled = false; |
| 9100 } |
| 9101 var const$0000 = Object.create(NoMoreElementsException.prototype, {}); |
| 9102 var const$0002 = Object.create(_DeletedKeySentinel.prototype, {}); |
| 9103 var const$0003 = Object.create(EmptyQueueException.prototype, {}); |
| 9104 var const$0006 = Object.create(SimpleClientRect.prototype, {left: {"value": (0),
writeable: false}, top: {"value": (0), writeable: false}, width: {"value": (0),
writeable: false}, height: {"value": (0), writeable: false}, }); |
| 9105 var const$0007 = Object.create(IllegalAccessException.prototype, {}); |
| 9106 var const$0008 = ImmutableList.ImmutableList$from$factory([]); |
| 9107 var const$0009 = Object.create(EmptyElementRect.prototype, {client: {"value": co
nst$0006, writeable: false}, scroll: {"value": const$0006, writeable: false}, bo
unding: {"value": const$0006, writeable: false}, clientRects: {"value": const$00
08, writeable: false}, offset: {"value": const$0006, writeable: false}, }); |
| 9108 var const$0010 = _constMap([]); |
| 9109 var const$0011 = ImmutableList.ImmutableList$from$factory([(-1), (0)]); |
| 9110 var const$0012 = Object.create(UnsupportedOperationException.prototype, {_messag
e: {"value": "", writeable: false}, }); |
| 9111 var const$0013 = ImmutableList.ImmutableList$from$factory([(1), (0)]); |
| 9112 var const$0014 = ImmutableList.ImmutableList$from$factory([(0), (-1)]); |
| 9113 var const$0015 = ImmutableList.ImmutableList$from$factory([(0), (1)]); |
| 9114 var const$0016 = ImmutableList.ImmutableList$from$factory([(1)]); |
| 9115 var const$0017 = ImmutableList.ImmutableList$from$factory([(2)]); |
| 9116 var const$0018 = ImmutableList.ImmutableList$from$factory([false, "There was an
error"]); |
| 9117 startRootIsolate(main); |
OLD | NEW |