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 function $wrap_call$0(fn) { return fn; } |
| 50 function $wrap_call$1(fn) { return fn; } |
| 51 function $add(x, y) { |
| 52 return ((typeof(x) == 'number' && typeof(y) == 'number') || |
| 53 (typeof(x) == 'string')) |
| 54 ? x + y : x.$add(y); |
| 55 } |
| 56 function $eq(x, y) { |
| 57 if (x == null) return y == null; |
| 58 return (typeof(x) == 'number' && typeof(y) == 'number') || |
| 59 (typeof(x) == 'boolean' && typeof(y) == 'boolean') || |
| 60 (typeof(x) == 'string' && typeof(y) == 'string') |
| 61 ? x == y : x.$eq(y); |
| 62 } |
| 63 // TODO(jimhug): Should this or should it not match equals? |
| 64 Object.defineProperty(Object.prototype, '$eq', { value: function(other) { |
| 65 return this === other; |
| 66 }, enumerable: false, writable: true, configurable: true }); |
| 67 function $mod(x, y) { |
| 68 if (typeof(x) == 'number' && typeof(y) == 'number') { |
| 69 var result = x % y; |
| 70 if (result == 0) { |
| 71 return 0; // Make sure we don't return -0.0. |
| 72 } else if (result < 0) { |
| 73 if (y < 0) { |
| 74 return result - y; |
| 75 } else { |
| 76 return result + y; |
| 77 } |
| 78 } |
| 79 return result; |
| 80 } else { |
| 81 return x.$mod(y); |
| 82 } |
| 83 } |
| 84 function $ne(x, y) { |
| 85 if (x == null) return y != null; |
| 86 return (typeof(x) == 'number' && typeof(y) == 'number') || |
| 87 (typeof(x) == 'boolean' && typeof(y) == 'boolean') || |
| 88 (typeof(x) == 'string' && typeof(y) == 'string') |
| 89 ? x != y : !x.$eq(y); |
| 90 } |
| 91 function $truncdiv(x, y) { |
| 92 if (typeof(x) == 'number' && typeof(y) == 'number') { |
| 93 if (y == 0) $throw(new IntegerDivisionByZeroException()); |
| 94 var tmp = x / y; |
| 95 return (tmp < 0) ? Math.ceil(tmp) : Math.floor(tmp); |
| 96 } else { |
| 97 return x.$truncdiv(y); |
| 98 } |
| 99 } |
| 100 Object.defineProperty(Object.prototype, "get$typeName", { value: Object.prototyp
e.$typeNameOf, enumerable: false, writable: true, configurable: true}); |
| 101 // ********** Code for Object ************** |
| 102 Object.defineProperty(Object.prototype, "get$dynamic", { value: function() { |
| 103 "use strict"; return this; |
| 104 }, enumerable: false, writable: true, configurable: true }); |
| 105 Object.defineProperty(Object.prototype, "noSuchMethod", { value: function(name,
args) { |
| 106 $throw(new NoSuchMethodException(this, name, args)); |
| 107 }, enumerable: false, writable: true, configurable: true }); |
| 108 Object.defineProperty(Object.prototype, "_applyLayout$0", { value: function() { |
| 109 return this.noSuchMethod$2("_applyLayout", []); |
| 110 }, enumerable: false, writable: true, configurable: true }); |
| 111 Object.defineProperty(Object.prototype, "_asNonSentinelEntry$0", { value: functi
on() { |
| 112 return this.noSuchMethod$2("_asNonSentinelEntry", []); |
| 113 }, enumerable: false, writable: true, configurable: true }); |
| 114 Object.defineProperty(Object.prototype, "_eatEnd$0", { value: function() { |
| 115 return this.noSuchMethod$2("_eatEnd", []); |
| 116 }, enumerable: false, writable: true, configurable: true }); |
| 117 Object.defineProperty(Object.prototype, "_enterDocument$0", { value: function()
{ |
| 118 return this.noSuchMethod$2("_enterDocument", []); |
| 119 }, enumerable: false, writable: true, configurable: true }); |
| 120 Object.defineProperty(Object.prototype, "_exitDocument$0", { value: function() { |
| 121 return this.noSuchMethod$2("_exitDocument", []); |
| 122 }, enumerable: false, writable: true, configurable: true }); |
| 123 Object.defineProperty(Object.prototype, "_maybeEatString$0", { value: function()
{ |
| 124 return this.noSuchMethod$2("_maybeEatString", []); |
| 125 }, enumerable: false, writable: true, configurable: true }); |
| 126 Object.defineProperty(Object.prototype, "_measureLayoutHelper$1", { value: funct
ion($0) { |
| 127 return this.noSuchMethod$2("_measureLayoutHelper", [$0]); |
| 128 }, enumerable: false, writable: true, configurable: true }); |
| 129 Object.defineProperty(Object.prototype, "_notify$0", { value: function() { |
| 130 return this.noSuchMethod$2("_notify", []); |
| 131 }, enumerable: false, writable: true, configurable: true }); |
| 132 Object.defineProperty(Object.prototype, "_parseTemplate$0", { value: function()
{ |
| 133 return this.noSuchMethod$2("_parseTemplate", []); |
| 134 }, enumerable: false, writable: true, configurable: true }); |
| 135 Object.defineProperty(Object.prototype, "_parseTrack$1", { value: function($0) { |
| 136 return this.noSuchMethod$2("_parseTrack", [$0]); |
| 137 }, enumerable: false, writable: true, configurable: true }); |
| 138 Object.defineProperty(Object.prototype, "_parseTrackList$0", { value: function()
{ |
| 139 return this.noSuchMethod$2("_parseTrackList", []); |
| 140 }, enumerable: false, writable: true, configurable: true }); |
| 141 Object.defineProperty(Object.prototype, "_parseTrackMinmax$0", { value: function
() { |
| 142 return this.noSuchMethod$2("_parseTrackMinmax", []); |
| 143 }, enumerable: false, writable: true, configurable: true }); |
| 144 Object.defineProperty(Object.prototype, "add$1", { value: function($0) { |
| 145 return this.noSuchMethod$2("add", [$0]); |
| 146 }, enumerable: false, writable: true, configurable: true }); |
| 147 Object.defineProperty(Object.prototype, "add$2", { value: function($0, $1) { |
| 148 return this.noSuchMethod$2("add", [$0, $1]); |
| 149 }, enumerable: false, writable: true, configurable: true }); |
| 150 Object.defineProperty(Object.prototype, "addAll$1", { value: function($0) { |
| 151 return this.noSuchMethod$2("addAll", [$0]); |
| 152 }, enumerable: false, writable: true, configurable: true }); |
| 153 Object.defineProperty(Object.prototype, "addClass$1", { value: function($0) { |
| 154 return this.noSuchMethod$2("addClass", [$0]); |
| 155 }, enumerable: false, writable: true, configurable: true }); |
| 156 Object.defineProperty(Object.prototype, "addEvent$1", { value: function($0) { |
| 157 return this.noSuchMethod$2("addEvent", [$0]); |
| 158 }, enumerable: false, writable: true, configurable: true }); |
| 159 Object.defineProperty(Object.prototype, "addEventListener$3", { value: function(
$0, $1, $2) { |
| 160 return this.noSuchMethod$2("addEventListener", [$0, $1, $2]); |
| 161 }, enumerable: false, writable: true, configurable: true }); |
| 162 Object.defineProperty(Object.prototype, "appendChild$1", { value: function($0) { |
| 163 return this.noSuchMethod$2("appendChild", [$0]); |
| 164 }, enumerable: false, writable: true, configurable: true }); |
| 165 Object.defineProperty(Object.prototype, "applyLayout$0", { value: function() { |
| 166 return this.noSuchMethod$2("applyLayout", []); |
| 167 }, enumerable: false, writable: true, configurable: true }); |
| 168 Object.defineProperty(Object.prototype, "back$0", { value: function() { |
| 169 return this.noSuchMethod$2("back", []); |
| 170 }, enumerable: false, writable: true, configurable: true }); |
| 171 Object.defineProperty(Object.prototype, "blur$0", { value: function() { |
| 172 return this.noSuchMethod$2("blur", []); |
| 173 }, enumerable: false, writable: true, configurable: true }); |
| 174 Object.defineProperty(Object.prototype, "cacheExistingBrowserLayout$0", { value:
function() { |
| 175 return this.noSuchMethod$2("cacheExistingBrowserLayout", []); |
| 176 }, enumerable: false, writable: true, configurable: true }); |
| 177 Object.defineProperty(Object.prototype, "checkValid$0", { value: function() { |
| 178 return this.noSuchMethod$2("checkValid", []); |
| 179 }, enumerable: false, writable: true, configurable: true }); |
| 180 Object.defineProperty(Object.prototype, "clear$0", { value: function() { |
| 181 return this.noSuchMethod$2("clear", []); |
| 182 }, enumerable: false, writable: true, configurable: true }); |
| 183 Object.defineProperty(Object.prototype, "clear$1", { value: function($0) { |
| 184 return this.noSuchMethod$2("clear", [$0]); |
| 185 }, enumerable: false, writable: true, configurable: true }); |
| 186 Object.defineProperty(Object.prototype, "clearInterval$0", { value: function() { |
| 187 return this.noSuchMethod$2("clearInterval", []); |
| 188 }, enumerable: false, writable: true, configurable: true }); |
| 189 Object.defineProperty(Object.prototype, "clearInterval$1", { value: function($0)
{ |
| 190 return this.noSuchMethod$2("clearInterval", [$0]); |
| 191 }, enumerable: false, writable: true, configurable: true }); |
| 192 Object.defineProperty(Object.prototype, "clearTimeout$0", { value: function() { |
| 193 return this.noSuchMethod$2("clearTimeout", []); |
| 194 }, enumerable: false, writable: true, configurable: true }); |
| 195 Object.defineProperty(Object.prototype, "clearTimeout$1", { value: function($0)
{ |
| 196 return this.noSuchMethod$2("clearTimeout", [$0]); |
| 197 }, enumerable: false, writable: true, configurable: true }); |
| 198 Object.defineProperty(Object.prototype, "click$0", { value: function() { |
| 199 return this.noSuchMethod$2("click", []); |
| 200 }, enumerable: false, writable: true, configurable: true }); |
| 201 Object.defineProperty(Object.prototype, "clone$0", { value: function() { |
| 202 return this.noSuchMethod$2("clone", []); |
| 203 }, enumerable: false, writable: true, configurable: true }); |
| 204 Object.defineProperty(Object.prototype, "complete$1", { value: function($0) { |
| 205 return this.noSuchMethod$2("complete", [$0]); |
| 206 }, enumerable: false, writable: true, configurable: true }); |
| 207 Object.defineProperty(Object.prototype, "contains$1", { value: function($0) { |
| 208 return this.noSuchMethod$2("contains", [$0]); |
| 209 }, enumerable: false, writable: true, configurable: true }); |
| 210 Object.defineProperty(Object.prototype, "difference$1", { value: function($0) { |
| 211 return this.noSuchMethod$2("difference", [$0]); |
| 212 }, enumerable: false, writable: true, configurable: true }); |
| 213 Object.defineProperty(Object.prototype, "dispatchEvent$1", { value: function($0)
{ |
| 214 return this.noSuchMethod$2("dispatchEvent", [$0]); |
| 215 }, enumerable: false, writable: true, configurable: true }); |
| 216 Object.defineProperty(Object.prototype, "doLayout$0", { value: function() { |
| 217 return this.noSuchMethod$2("doLayout", []); |
| 218 }, enumerable: false, writable: true, configurable: true }); |
| 219 Object.defineProperty(Object.prototype, "end$0", { value: function() { |
| 220 return this.noSuchMethod$2("end", []); |
| 221 }, enumerable: false, writable: true, configurable: true }); |
| 222 Object.defineProperty(Object.prototype, "filter$1", { value: function($0) { |
| 223 return this.noSuchMethod$2("filter", [$0]); |
| 224 }, enumerable: false, writable: true, configurable: true }); |
| 225 Object.defineProperty(Object.prototype, "firstEntry$0", { value: function() { |
| 226 return this.noSuchMethod$2("firstEntry", []); |
| 227 }, enumerable: false, writable: true, configurable: true }); |
| 228 Object.defineProperty(Object.prototype, "focus$0", { value: function() { |
| 229 return this.noSuchMethod$2("focus", []); |
| 230 }, enumerable: false, writable: true, configurable: true }); |
| 231 Object.defineProperty(Object.prototype, "forEach$1", { value: function($0) { |
| 232 return this.noSuchMethod$2("forEach", [$0]); |
| 233 }, enumerable: false, writable: true, configurable: true }); |
| 234 Object.defineProperty(Object.prototype, "forward$0", { value: function() { |
| 235 return this.noSuchMethod$2("forward", []); |
| 236 }, enumerable: false, writable: true, configurable: true }); |
| 237 Object.defineProperty(Object.prototype, "getAttribute$1", { value: function($0)
{ |
| 238 return this.noSuchMethod$2("getAttribute", [$0]); |
| 239 }, enumerable: false, writable: true, configurable: true }); |
| 240 Object.defineProperty(Object.prototype, "getContext$0", { value: function() { |
| 241 return this.noSuchMethod$2("getContext", []); |
| 242 }, enumerable: false, writable: true, configurable: true }); |
| 243 Object.defineProperty(Object.prototype, "getContext$1", { value: function($0) { |
| 244 return this.noSuchMethod$2("getContext", [$0]); |
| 245 }, enumerable: false, writable: true, configurable: true }); |
| 246 Object.defineProperty(Object.prototype, "getPropertyValue$1", { value: function(
$0) { |
| 247 return this.noSuchMethod$2("getPropertyValue", [$0]); |
| 248 }, enumerable: false, writable: true, configurable: true }); |
| 249 Object.defineProperty(Object.prototype, "getRange$2", { value: function($0, $1)
{ |
| 250 return this.noSuchMethod$2("getRange", [$0, $1]); |
| 251 }, enumerable: false, writable: true, configurable: true }); |
| 252 Object.defineProperty(Object.prototype, "getValues$0", { value: function() { |
| 253 return this.noSuchMethod$2("getValues", []); |
| 254 }, enumerable: false, writable: true, configurable: true }); |
| 255 Object.defineProperty(Object.prototype, "group$1", { value: function($0) { |
| 256 return this.noSuchMethod$2("group", [$0]); |
| 257 }, enumerable: false, writable: true, configurable: true }); |
| 258 Object.defineProperty(Object.prototype, "hasAttribute$1", { value: function($0)
{ |
| 259 return this.noSuchMethod$2("hasAttribute", [$0]); |
| 260 }, enumerable: false, writable: true, configurable: true }); |
| 261 Object.defineProperty(Object.prototype, "hasChildNodes$0", { value: function() { |
| 262 return this.noSuchMethod$2("hasChildNodes", []); |
| 263 }, enumerable: false, writable: true, configurable: true }); |
| 264 Object.defineProperty(Object.prototype, "hasNext$0", { value: function() { |
| 265 return this.noSuchMethod$2("hasNext", []); |
| 266 }, enumerable: false, writable: true, configurable: true }); |
| 267 Object.defineProperty(Object.prototype, "hashCode$0", { value: function() { |
| 268 return this.noSuchMethod$2("hashCode", []); |
| 269 }, enumerable: false, writable: true, configurable: true }); |
| 270 Object.defineProperty(Object.prototype, "initEvent$3", { value: function($0, $1,
$2) { |
| 271 return this.noSuchMethod$2("initEvent", [$0, $1, $2]); |
| 272 }, enumerable: false, writable: true, configurable: true }); |
| 273 Object.defineProperty(Object.prototype, "is$BodyElement", { value: function() { |
| 274 return false; |
| 275 }, enumerable: false, writable: true, configurable: true }); |
| 276 Object.defineProperty(Object.prototype, "is$DivElement", { value: function() { |
| 277 return false; |
| 278 }, enumerable: false, writable: true, configurable: true }); |
| 279 Object.defineProperty(Object.prototype, "is$Duration", { value: function() { |
| 280 return false; |
| 281 }, enumerable: false, writable: true, configurable: true }); |
| 282 Object.defineProperty(Object.prototype, "is$List", { value: function() { |
| 283 return false; |
| 284 }, enumerable: false, writable: true, configurable: true }); |
| 285 Object.defineProperty(Object.prototype, "is$Map_dart_core_String$Dynamic", { val
ue: function() { |
| 286 return false; |
| 287 }, enumerable: false, writable: true, configurable: true }); |
| 288 Object.defineProperty(Object.prototype, "is$ObservableList_D", { value: function
() { |
| 289 return false; |
| 290 }, enumerable: false, writable: true, configurable: true }); |
| 291 Object.defineProperty(Object.prototype, "is$RegExp", { value: function() { |
| 292 return false; |
| 293 }, enumerable: false, writable: true, configurable: true }); |
| 294 Object.defineProperty(Object.prototype, "is$html_html_Document", { value: functi
on() { |
| 295 return false; |
| 296 }, enumerable: false, writable: true, configurable: true }); |
| 297 Object.defineProperty(Object.prototype, "is$html_html_Element", { value: functio
n() { |
| 298 return false; |
| 299 }, enumerable: false, writable: true, configurable: true }); |
| 300 Object.defineProperty(Object.prototype, "item$1", { value: function($0) { |
| 301 return this.noSuchMethod$2("item", [$0]); |
| 302 }, enumerable: false, writable: true, configurable: true }); |
| 303 Object.defineProperty(Object.prototype, "iterator$0", { value: function() { |
| 304 return this.noSuchMethod$2("iterator", []); |
| 305 }, enumerable: false, writable: true, configurable: true }); |
| 306 Object.defineProperty(Object.prototype, "last$0", { value: function() { |
| 307 return this.noSuchMethod$2("last", []); |
| 308 }, enumerable: false, writable: true, configurable: true }); |
| 309 Object.defineProperty(Object.prototype, "load$0", { value: function() { |
| 310 return this.noSuchMethod$2("load", []); |
| 311 }, enumerable: false, writable: true, configurable: true }); |
| 312 Object.defineProperty(Object.prototype, "measureContent$3", { value: function($0
, $1, $2) { |
| 313 return this.noSuchMethod$2("measureContent", [$0, $1, $2]); |
| 314 }, enumerable: false, writable: true, configurable: true }); |
| 315 Object.defineProperty(Object.prototype, "measureText$1", { value: function($0) { |
| 316 return this.noSuchMethod$2("measureText", [$0]); |
| 317 }, enumerable: false, writable: true, configurable: true }); |
| 318 Object.defineProperty(Object.prototype, "next$0", { value: function() { |
| 319 return this.noSuchMethod$2("next", []); |
| 320 }, enumerable: false, writable: true, configurable: true }); |
| 321 Object.defineProperty(Object.prototype, "nextEntry$0", { value: function() { |
| 322 return this.noSuchMethod$2("nextEntry", []); |
| 323 }, enumerable: false, writable: true, configurable: true }); |
| 324 Object.defineProperty(Object.prototype, "noSuchMethod$2", { value: function($0,
$1) { |
| 325 return this.noSuchMethod($0, $1); |
| 326 }, enumerable: false, writable: true, configurable: true }); |
| 327 Object.defineProperty(Object.prototype, "notify$0", { value: function() { |
| 328 return this.noSuchMethod$2("notify", []); |
| 329 }, enumerable: false, writable: true, configurable: true }); |
| 330 Object.defineProperty(Object.prototype, "onScrollerMoved$3", { value: function($
0, $1, $2) { |
| 331 return this.noSuchMethod$2("onScrollerMoved", [$0, $1, $2]); |
| 332 }, enumerable: false, writable: true, configurable: true }); |
| 333 Object.defineProperty(Object.prototype, "open$2", { value: function($0, $1) { |
| 334 return this.noSuchMethod$2("open", [$0, $1]); |
| 335 }, enumerable: false, writable: true, configurable: true }); |
| 336 Object.defineProperty(Object.prototype, "open$3", { value: function($0, $1, $2)
{ |
| 337 return this.noSuchMethod$2("open", [$0, $1, $2]); |
| 338 }, enumerable: false, writable: true, configurable: true }); |
| 339 Object.defineProperty(Object.prototype, "open$4", { value: function($0, $1, $2,
$3) { |
| 340 return this.noSuchMethod$2("open", [$0, $1, $2, $3]); |
| 341 }, enumerable: false, writable: true, configurable: true }); |
| 342 Object.defineProperty(Object.prototype, "open$5", { value: function($0, $1, $2,
$3, $4) { |
| 343 return this.noSuchMethod$2("open", [$0, $1, $2, $3, $4]); |
| 344 }, enumerable: false, writable: true, configurable: true }); |
| 345 Object.defineProperty(Object.prototype, "postMessage$1", { value: function($0) { |
| 346 return this.noSuchMethod$2("postMessage", [$0]); |
| 347 }, enumerable: false, writable: true, configurable: true }); |
| 348 Object.defineProperty(Object.prototype, "postMessage$2", { value: function($0, $
1) { |
| 349 return this.noSuchMethod$2("postMessage", [$0, $1]); |
| 350 }, enumerable: false, writable: true, configurable: true }); |
| 351 Object.defineProperty(Object.prototype, "postMessage$3", { value: function($0, $
1, $2) { |
| 352 return this.noSuchMethod$2("postMessage", [$0, $1, $2]); |
| 353 }, enumerable: false, writable: true, configurable: true }); |
| 354 Object.defineProperty(Object.prototype, "preventDefault$0", { value: function()
{ |
| 355 return this.noSuchMethod$2("preventDefault", []); |
| 356 }, enumerable: false, writable: true, configurable: true }); |
| 357 Object.defineProperty(Object.prototype, "pushState$2", { value: function($0, $1)
{ |
| 358 return this.noSuchMethod$2("pushState", [$0, $1]); |
| 359 }, enumerable: false, writable: true, configurable: true }); |
| 360 Object.defineProperty(Object.prototype, "pushState$3", { value: function($0, $1,
$2) { |
| 361 return this.noSuchMethod$2("pushState", [$0, $1, $2]); |
| 362 }, enumerable: false, writable: true, configurable: true }); |
| 363 Object.defineProperty(Object.prototype, "putIfAbsent$2", { value: function($0, $
1) { |
| 364 return this.noSuchMethod$2("putIfAbsent", [$0, $1]); |
| 365 }, enumerable: false, writable: true, configurable: true }); |
| 366 Object.defineProperty(Object.prototype, "query$1", { value: function($0) { |
| 367 return this.noSuchMethod$2("query", [$0]); |
| 368 }, enumerable: false, writable: true, configurable: true }); |
| 369 Object.defineProperty(Object.prototype, "queryAll$1", { value: function($0) { |
| 370 return this.noSuchMethod$2("queryAll", [$0]); |
| 371 }, enumerable: false, writable: true, configurable: true }); |
| 372 Object.defineProperty(Object.prototype, "querySelector$1", { value: function($0)
{ |
| 373 return this.noSuchMethod$2("querySelector", [$0]); |
| 374 }, enumerable: false, writable: true, configurable: true }); |
| 375 Object.defineProperty(Object.prototype, "querySelectorAll$1", { value: function(
$0) { |
| 376 return this.noSuchMethod$2("querySelectorAll", [$0]); |
| 377 }, enumerable: false, writable: true, configurable: true }); |
| 378 Object.defineProperty(Object.prototype, "readInt$0", { value: function() { |
| 379 return this.noSuchMethod$2("readInt", []); |
| 380 }, enumerable: false, writable: true, configurable: true }); |
| 381 Object.defineProperty(Object.prototype, "ready$1", { value: function($0) { |
| 382 return this.noSuchMethod$2("ready", [$0]); |
| 383 }, enumerable: false, writable: true, configurable: true }); |
| 384 Object.defineProperty(Object.prototype, "reload$0", { value: function() { |
| 385 return this.noSuchMethod$2("reload", []); |
| 386 }, enumerable: false, writable: true, configurable: true }); |
| 387 Object.defineProperty(Object.prototype, "remove$0", { value: function() { |
| 388 return this.noSuchMethod$2("remove", []); |
| 389 }, enumerable: false, writable: true, configurable: true }); |
| 390 Object.defineProperty(Object.prototype, "remove$1", { value: function($0) { |
| 391 return this.noSuchMethod$2("remove", [$0]); |
| 392 }, enumerable: false, writable: true, configurable: true }); |
| 393 Object.defineProperty(Object.prototype, "remove$2", { value: function($0, $1) { |
| 394 return this.noSuchMethod$2("remove", [$0, $1]); |
| 395 }, enumerable: false, writable: true, configurable: true }); |
| 396 Object.defineProperty(Object.prototype, "removeAttribute$1", { value: function($
0) { |
| 397 return this.noSuchMethod$2("removeAttribute", [$0]); |
| 398 }, enumerable: false, writable: true, configurable: true }); |
| 399 Object.defineProperty(Object.prototype, "removeChild$1", { value: function($0) { |
| 400 return this.noSuchMethod$2("removeChild", [$0]); |
| 401 }, enumerable: false, writable: true, configurable: true }); |
| 402 Object.defineProperty(Object.prototype, "removeEventListener$3", { value: functi
on($0, $1, $2) { |
| 403 return this.noSuchMethod$2("removeEventListener", [$0, $1, $2]); |
| 404 }, enumerable: false, writable: true, configurable: true }); |
| 405 Object.defineProperty(Object.prototype, "removeLast$0", { value: function() { |
| 406 return this.noSuchMethod$2("removeLast", []); |
| 407 }, enumerable: false, writable: true, configurable: true }); |
| 408 Object.defineProperty(Object.prototype, "removeProperty$1", { value: function($0
) { |
| 409 return this.noSuchMethod$2("removeProperty", [$0]); |
| 410 }, enumerable: false, writable: true, configurable: true }); |
| 411 Object.defineProperty(Object.prototype, "replaceChild$2", { value: function($0,
$1) { |
| 412 return this.noSuchMethod$2("replaceChild", [$0, $1]); |
| 413 }, enumerable: false, writable: true, configurable: true }); |
| 414 Object.defineProperty(Object.prototype, "replaceState$2", { value: function($0,
$1) { |
| 415 return this.noSuchMethod$2("replaceState", [$0, $1]); |
| 416 }, enumerable: false, writable: true, configurable: true }); |
| 417 Object.defineProperty(Object.prototype, "replaceState$3", { value: function($0,
$1, $2) { |
| 418 return this.noSuchMethod$2("replaceState", [$0, $1, $2]); |
| 419 }, enumerable: false, writable: true, configurable: true }); |
| 420 Object.defineProperty(Object.prototype, "replaceWith$1", { value: function($0) { |
| 421 return this.noSuchMethod$2("replaceWith", [$0]); |
| 422 }, enumerable: false, writable: true, configurable: true }); |
| 423 Object.defineProperty(Object.prototype, "resolveLength$1", { value: function($0)
{ |
| 424 return this.noSuchMethod$2("resolveLength", [$0]); |
| 425 }, enumerable: false, writable: true, configurable: true }); |
| 426 Object.defineProperty(Object.prototype, "round$0", { value: function() { |
| 427 return this.noSuchMethod$2("round", []); |
| 428 }, enumerable: false, writable: true, configurable: true }); |
| 429 Object.defineProperty(Object.prototype, "send$0", { value: function() { |
| 430 return this.noSuchMethod$2("send", []); |
| 431 }, enumerable: false, writable: true, configurable: true }); |
| 432 Object.defineProperty(Object.prototype, "send$1", { value: function($0) { |
| 433 return this.noSuchMethod$2("send", [$0]); |
| 434 }, enumerable: false, writable: true, configurable: true }); |
| 435 Object.defineProperty(Object.prototype, "setAttribute$2", { value: function($0,
$1) { |
| 436 return this.noSuchMethod$2("setAttribute", [$0, $1]); |
| 437 }, enumerable: false, writable: true, configurable: true }); |
| 438 Object.defineProperty(Object.prototype, "setBounds$4", { value: function($0, $1,
$2, $3) { |
| 439 return this.noSuchMethod$2("setBounds", [$0, $1, $2, $3]); |
| 440 }, enumerable: false, writable: true, configurable: true }); |
| 441 Object.defineProperty(Object.prototype, "setInterval$2", { value: function($0, $
1) { |
| 442 return this.noSuchMethod$2("setInterval", [$0, $1]); |
| 443 }, enumerable: false, writable: true, configurable: true }); |
| 444 Object.defineProperty(Object.prototype, "setProperty$3", { value: function($0, $
1, $2) { |
| 445 return this.noSuchMethod$2("setProperty", [$0, $1, $2]); |
| 446 }, enumerable: false, writable: true, configurable: true }); |
| 447 Object.defineProperty(Object.prototype, "setTimeout$2", { value: function($0, $1
) { |
| 448 return this.noSuchMethod$2("setTimeout", [$0, $1]); |
| 449 }, enumerable: false, writable: true, configurable: true }); |
| 450 Object.defineProperty(Object.prototype, "start$0", { value: function() { |
| 451 return this.noSuchMethod$2("start", []); |
| 452 }, enumerable: false, writable: true, configurable: true }); |
| 453 Object.defineProperty(Object.prototype, "stopPropagation$0", { value: function()
{ |
| 454 return this.noSuchMethod$2("stopPropagation", []); |
| 455 }, enumerable: false, writable: true, configurable: true }); |
| 456 Object.defineProperty(Object.prototype, "swapCache$0", { value: function() { |
| 457 return this.noSuchMethod$2("swapCache", []); |
| 458 }, enumerable: false, writable: true, configurable: true }); |
| 459 Object.defineProperty(Object.prototype, "time$1", { value: function($0) { |
| 460 return this.noSuchMethod$2("time", [$0]); |
| 461 }, enumerable: false, writable: true, configurable: true }); |
| 462 Object.defineProperty(Object.prototype, "timeStamp$0", { value: function() { |
| 463 return this.noSuchMethod$2("timeStamp", []); |
| 464 }, enumerable: false, writable: true, configurable: true }); |
| 465 Object.defineProperty(Object.prototype, "toInt$0", { value: function() { |
| 466 return this.noSuchMethod$2("toInt", []); |
| 467 }, enumerable: false, writable: true, configurable: true }); |
| 468 Object.defineProperty(Object.prototype, "toLowerCase$0", { value: function() { |
| 469 return this.noSuchMethod$2("toLowerCase", []); |
| 470 }, enumerable: false, writable: true, configurable: true }); |
| 471 Object.defineProperty(Object.prototype, "toString$0", { value: function() { |
| 472 return this.toString(); |
| 473 }, enumerable: false, writable: true, configurable: true }); |
| 474 Object.defineProperty(Object.prototype, "warn$1", { value: function($0) { |
| 475 return this.noSuchMethod$2("warn", [$0]); |
| 476 }, enumerable: false, writable: true, configurable: true }); |
| 477 Object.defineProperty(Object.prototype, "webkitConvertPointFromNodeToPage$0", {
value: function() { |
| 478 return this.noSuchMethod$2("webkitConvertPointFromNodeToPage", []); |
| 479 }, enumerable: false, writable: true, configurable: true }); |
| 480 Object.defineProperty(Object.prototype, "webkitConvertPointFromNodeToPage$1", {
value: function($0) { |
| 481 return this.noSuchMethod$2("webkitConvertPointFromNodeToPage", [$0]); |
| 482 }, enumerable: false, writable: true, configurable: true }); |
| 483 Object.defineProperty(Object.prototype, "webkitConvertPointFromNodeToPage$2", {
value: function($0, $1) { |
| 484 return this.noSuchMethod$2("webkitConvertPointFromNodeToPage", [$0, $1]); |
| 485 }, enumerable: false, writable: true, configurable: true }); |
| 486 Object.defineProperty(Object.prototype, "webkitConvertPointFromPageToNode$0", {
value: function() { |
| 487 return this.noSuchMethod$2("webkitConvertPointFromPageToNode", []); |
| 488 }, enumerable: false, writable: true, configurable: true }); |
| 489 Object.defineProperty(Object.prototype, "webkitConvertPointFromPageToNode$1", {
value: function($0) { |
| 490 return this.noSuchMethod$2("webkitConvertPointFromPageToNode", [$0]); |
| 491 }, enumerable: false, writable: true, configurable: true }); |
| 492 Object.defineProperty(Object.prototype, "webkitConvertPointFromPageToNode$2", {
value: function($0, $1) { |
| 493 return this.noSuchMethod$2("webkitConvertPointFromPageToNode", [$0, $1]); |
| 494 }, enumerable: false, writable: true, configurable: true }); |
| 495 Object.defineProperty(Object.prototype, "webkitRequestAnimationFrame$2", { value
: function($0, $1) { |
| 496 return this.noSuchMethod$2("webkitRequestAnimationFrame", [$0, $1]); |
| 497 }, enumerable: false, writable: true, configurable: true }); |
| 498 // ********** Code for IndexOutOfRangeException ************** |
| 499 function IndexOutOfRangeException(_index) { |
| 500 this._index = _index; |
| 501 } |
| 502 IndexOutOfRangeException.prototype.toString = function() { |
| 503 return ("IndexOutOfRangeException: " + this._index); |
| 504 } |
| 505 IndexOutOfRangeException.prototype.toString$0 = IndexOutOfRangeException.prototy
pe.toString; |
| 506 // ********** Code for IllegalAccessException ************** |
| 507 function IllegalAccessException() { |
| 508 |
| 509 } |
| 510 IllegalAccessException.prototype.toString = function() { |
| 511 return "Attempt to modify an immutable object"; |
| 512 } |
| 513 IllegalAccessException.prototype.toString$0 = IllegalAccessException.prototype.t
oString; |
| 514 // ********** Code for NoSuchMethodException ************** |
| 515 function NoSuchMethodException(_receiver, _functionName, _arguments) { |
| 516 this._receiver = _receiver; |
| 517 this._functionName = _functionName; |
| 518 this._arguments = _arguments; |
| 519 } |
| 520 NoSuchMethodException.prototype.toString = function() { |
| 521 var sb = new StringBufferImpl(""); |
| 522 for (var i = (0); |
| 523 i < this._arguments.get$length(); i++) { |
| 524 if (i > (0)) { |
| 525 sb.add(", "); |
| 526 } |
| 527 sb.add(this._arguments.$index(i)); |
| 528 } |
| 529 sb.add("]"); |
| 530 return ("NoSuchMethodException - receiver: '" + this._receiver + "' ") + ("fun
ction name: '" + this._functionName + "' arguments: [" + sb + "]"); |
| 531 } |
| 532 NoSuchMethodException.prototype.toString$0 = NoSuchMethodException.prototype.toS
tring; |
| 533 // ********** Code for ClosureArgumentMismatchException ************** |
| 534 function ClosureArgumentMismatchException() { |
| 535 |
| 536 } |
| 537 ClosureArgumentMismatchException.prototype.toString = function() { |
| 538 return "Closure argument mismatch"; |
| 539 } |
| 540 ClosureArgumentMismatchException.prototype.toString$0 = ClosureArgumentMismatchE
xception.prototype.toString; |
| 541 // ********** Code for ObjectNotClosureException ************** |
| 542 function ObjectNotClosureException() { |
| 543 |
| 544 } |
| 545 ObjectNotClosureException.prototype.toString = function() { |
| 546 return "Object is not closure"; |
| 547 } |
| 548 ObjectNotClosureException.prototype.toString$0 = ObjectNotClosureException.proto
type.toString; |
| 549 // ********** Code for IllegalArgumentException ************** |
| 550 function IllegalArgumentException(args) { |
| 551 this._args = args; |
| 552 } |
| 553 IllegalArgumentException.prototype.toString = function() { |
| 554 return ("Illegal argument(s): " + this._args); |
| 555 } |
| 556 IllegalArgumentException.prototype.toString$0 = IllegalArgumentException.prototy
pe.toString; |
| 557 // ********** Code for StackOverflowException ************** |
| 558 function StackOverflowException() { |
| 559 |
| 560 } |
| 561 StackOverflowException.prototype.toString = function() { |
| 562 return "Stack Overflow"; |
| 563 } |
| 564 StackOverflowException.prototype.toString$0 = StackOverflowException.prototype.t
oString; |
| 565 // ********** Code for BadNumberFormatException ************** |
| 566 function BadNumberFormatException(_s) { |
| 567 this._s = _s; |
| 568 } |
| 569 BadNumberFormatException.prototype.toString = function() { |
| 570 return ("BadNumberFormatException: '" + this._s + "'"); |
| 571 } |
| 572 BadNumberFormatException.prototype.toString$0 = BadNumberFormatException.prototy
pe.toString; |
| 573 // ********** Code for NullPointerException ************** |
| 574 function NullPointerException() { |
| 575 |
| 576 } |
| 577 NullPointerException.prototype.toString = function() { |
| 578 return "NullPointerException"; |
| 579 } |
| 580 NullPointerException.prototype.toString$0 = NullPointerException.prototype.toStr
ing; |
| 581 // ********** Code for NoMoreElementsException ************** |
| 582 function NoMoreElementsException() { |
| 583 |
| 584 } |
| 585 NoMoreElementsException.prototype.toString = function() { |
| 586 return "NoMoreElementsException"; |
| 587 } |
| 588 NoMoreElementsException.prototype.toString$0 = NoMoreElementsException.prototype
.toString; |
| 589 // ********** Code for EmptyQueueException ************** |
| 590 function EmptyQueueException() { |
| 591 |
| 592 } |
| 593 EmptyQueueException.prototype.toString = function() { |
| 594 return "EmptyQueueException"; |
| 595 } |
| 596 EmptyQueueException.prototype.toString$0 = EmptyQueueException.prototype.toStrin
g; |
| 597 // ********** Code for UnsupportedOperationException ************** |
| 598 function UnsupportedOperationException(_message) { |
| 599 this._message = _message; |
| 600 } |
| 601 UnsupportedOperationException.prototype.toString = function() { |
| 602 return ("UnsupportedOperationException: " + this._message); |
| 603 } |
| 604 UnsupportedOperationException.prototype.toString$0 = UnsupportedOperationExcepti
on.prototype.toString; |
| 605 // ********** Code for NotImplementedException ************** |
| 606 function NotImplementedException() { |
| 607 |
| 608 } |
| 609 NotImplementedException.prototype.toString = function() { |
| 610 return "NotImplementedException"; |
| 611 } |
| 612 NotImplementedException.prototype.toString$0 = NotImplementedException.prototype
.toString; |
| 613 // ********** Code for dart_core_Function ************** |
| 614 Function.prototype.to$call$0 = function() { |
| 615 this.call$0 = this._genStub(0); |
| 616 this.to$call$0 = function() { return this.call$0; }; |
| 617 return this.call$0; |
| 618 }; |
| 619 Function.prototype.call$0 = function() { |
| 620 return this.to$call$0()(); |
| 621 }; |
| 622 function to$call$0(f) { return f && f.to$call$0(); } |
| 623 Function.prototype.to$call$1 = function() { |
| 624 this.call$1 = this._genStub(1); |
| 625 this.to$call$1 = function() { return this.call$1; }; |
| 626 return this.call$1; |
| 627 }; |
| 628 Function.prototype.call$1 = function($0) { |
| 629 return this.to$call$1()($0); |
| 630 }; |
| 631 function to$call$1(f) { return f && f.to$call$1(); } |
| 632 Function.prototype.to$call$2 = function() { |
| 633 this.call$2 = this._genStub(2); |
| 634 this.to$call$2 = function() { return this.call$2; }; |
| 635 return this.call$2; |
| 636 }; |
| 637 Function.prototype.call$2 = function($0, $1) { |
| 638 return this.to$call$2()($0, $1); |
| 639 }; |
| 640 function to$call$2(f) { return f && f.to$call$2(); } |
| 641 Function.prototype.to$call$3 = function() { |
| 642 this.call$3 = this._genStub(3); |
| 643 this.to$call$3 = function() { return this.call$3; }; |
| 644 return this.call$3; |
| 645 }; |
| 646 Function.prototype.call$3 = function($0, $1, $2) { |
| 647 return this.to$call$3()($0, $1, $2); |
| 648 }; |
| 649 function to$call$3(f) { return f && f.to$call$3(); } |
| 650 // ********** Code for Math ************** |
| 651 Math.parseInt = function(str) { |
| 652 var ret = parseInt(str); |
| 653 if (isNaN(ret)) $throw(new BadNumberFormatException(str)); |
| 654 return ret; |
| 655 } |
| 656 Math.parseDouble = function(str) { |
| 657 var ret = parseFloat(str); |
| 658 if (isNaN(ret) && str != 'NaN') $throw(new BadNumberFormatException(str)); |
| 659 return ret; |
| 660 } |
| 661 Math.min = function(a, b) { |
| 662 if (a == b) return a; |
| 663 if (a < b) { |
| 664 if (isNaN(b)) return b; |
| 665 else return a; |
| 666 } |
| 667 if (isNaN(a)) return a; |
| 668 else return b; |
| 669 } |
| 670 Math.max = function(a, b) { |
| 671 return (a >= b) ? a : b; |
| 672 } |
| 673 // ********** Code for Strings ************** |
| 674 function Strings() {} |
| 675 Strings.String$fromCharCodes$factory = function(charCodes) { |
| 676 return StringBase.createFromCharCodes(charCodes); |
| 677 } |
| 678 Strings.join = function(strings, separator) { |
| 679 return StringBase.join(strings, separator); |
| 680 } |
| 681 // ********** Code for top level ************** |
| 682 function dart_core_print(obj) { |
| 683 return _print(obj); |
| 684 } |
| 685 function _print(obj) { |
| 686 if (typeof console == 'object') { |
| 687 if (obj) obj = obj.toString(); |
| 688 console.log(obj); |
| 689 } else { |
| 690 write(obj); |
| 691 write('\n'); |
| 692 } |
| 693 } |
| 694 function _toDartException(e) { |
| 695 function attachStack(dartEx) { |
| 696 // TODO(jmesserly): setting the stack property is not a long term solution. |
| 697 var stack = e.stack; |
| 698 // The stack contains the error message, and the stack is all that is |
| 699 // printed (the exception's toString() is never called). Make the Dart |
| 700 // exception's toString() be the dominant message. |
| 701 if (typeof stack == 'string') { |
| 702 var message = dartEx.toString(); |
| 703 if (/^(Type|Range)Error:/.test(stack)) { |
| 704 // Indent JS message (it can be helpful) so new message stands out. |
| 705 stack = ' (' + stack.substring(0, stack.indexOf('\n')) + ')\n' + |
| 706 stack.substring(stack.indexOf('\n') + 1); |
| 707 } |
| 708 stack = message + '\n' + stack; |
| 709 } |
| 710 dartEx.stack = stack; |
| 711 return dartEx; |
| 712 } |
| 713 |
| 714 if (e instanceof TypeError) { |
| 715 switch(e.type) { |
| 716 case 'property_not_function': |
| 717 case 'called_non_callable': |
| 718 if (e.arguments[0] == null) { |
| 719 return attachStack(new NullPointerException()); |
| 720 } else { |
| 721 return attachStack(new ObjectNotClosureException()); |
| 722 } |
| 723 break; |
| 724 case 'non_object_property_call': |
| 725 case 'non_object_property_load': |
| 726 return attachStack(new NullPointerException()); |
| 727 break; |
| 728 case 'undefined_method': |
| 729 var mname = e.arguments[0]; |
| 730 if (typeof(mname) == 'string' && (mname.indexOf('call$') == 0 |
| 731 || mname == 'call' || mname == 'apply')) { |
| 732 return attachStack(new ObjectNotClosureException()); |
| 733 } else { |
| 734 // TODO(jmesserly): fix noSuchMethod on operators so we don't hit this |
| 735 return attachStack(new NoSuchMethodException('', e.arguments[0], [])); |
| 736 } |
| 737 break; |
| 738 } |
| 739 } else if (e instanceof RangeError) { |
| 740 if (e.message.indexOf('call stack') >= 0) { |
| 741 return attachStack(new StackOverflowException()); |
| 742 } |
| 743 } |
| 744 return e; |
| 745 } |
| 746 // ********** Library dart:coreimpl ************** |
| 747 // ********** Code for ListFactory ************** |
| 748 ListFactory = Array; |
| 749 Object.defineProperty(ListFactory.prototype, "is$List", { value: function(){retu
rn true}, enumerable: false, writable: true, configurable: true }); |
| 750 ListFactory.ListFactory$from$factory = function(other) { |
| 751 var list = []; |
| 752 for (var $$i = other.iterator$0(); $$i.hasNext$0(); ) { |
| 753 var e = $$i.next$0(); |
| 754 list.add$1(e); |
| 755 } |
| 756 return list; |
| 757 } |
| 758 Object.defineProperty(ListFactory.prototype, "get$length", { value: function() {
return this.length; }, enumerable: false, writable: true, configurable: true })
; |
| 759 Object.defineProperty(ListFactory.prototype, "set$length", { value: function(val
ue) { return this.length = value; }, enumerable: false, writable: true, configur
able: true }); |
| 760 Object.defineProperty(ListFactory.prototype, "add", { value: function(value) { |
| 761 this.push(value); |
| 762 }, enumerable: false, writable: true, configurable: true }); |
| 763 Object.defineProperty(ListFactory.prototype, "addAll", { value: function(collect
ion) { |
| 764 for (var $$i = collection.iterator$0(); $$i.hasNext$0(); ) { |
| 765 var item = $$i.next$0(); |
| 766 this.add(item); |
| 767 } |
| 768 }, enumerable: false, writable: true, configurable: true }); |
| 769 Object.defineProperty(ListFactory.prototype, "clear", { value: function() { |
| 770 this.set$length((0)); |
| 771 }, enumerable: false, writable: true, configurable: true }); |
| 772 Object.defineProperty(ListFactory.prototype, "get$clear", { value: function() { |
| 773 return this.clear.bind(this); |
| 774 }, enumerable: false, writable: true, configurable: true }); |
| 775 Object.defineProperty(ListFactory.prototype, "removeLast", { value: function() { |
| 776 return this.pop(); |
| 777 }, enumerable: false, writable: true, configurable: true }); |
| 778 Object.defineProperty(ListFactory.prototype, "last", { value: function() { |
| 779 return this[this.get$length() - (1)]; |
| 780 }, enumerable: false, writable: true, configurable: true }); |
| 781 Object.defineProperty(ListFactory.prototype, "getRange", { value: function(start
, length) { |
| 782 return this.slice(start, start + length); |
| 783 }, enumerable: false, writable: true, configurable: true }); |
| 784 Object.defineProperty(ListFactory.prototype, "isEmpty", { value: function() { |
| 785 return this.get$length() == (0); |
| 786 }, enumerable: false, writable: true, configurable: true }); |
| 787 Object.defineProperty(ListFactory.prototype, "iterator", { value: function() { |
| 788 return new ListIterator(this); |
| 789 }, enumerable: false, writable: true, configurable: true }); |
| 790 Object.defineProperty(ListFactory.prototype, "add$1", { value: ListFactory.proto
type.add, enumerable: false, writable: true, configurable: true }); |
| 791 Object.defineProperty(ListFactory.prototype, "addAll$1", { value: ListFactory.pr
ototype.addAll, enumerable: false, writable: true, configurable: true }); |
| 792 Object.defineProperty(ListFactory.prototype, "clear$0", { value: ListFactory.pro
totype.clear, enumerable: false, writable: true, configurable: true }); |
| 793 Object.defineProperty(ListFactory.prototype, "filter$1", { value: function($0) { |
| 794 return this.filter(to$call$1($0)); |
| 795 }, enumerable: false, writable: true, configurable: true }); |
| 796 Object.defineProperty(ListFactory.prototype, "forEach$1", { value: function($0)
{ |
| 797 return this.forEach(to$call$1($0)); |
| 798 }, enumerable: false, writable: true, configurable: true }); |
| 799 Object.defineProperty(ListFactory.prototype, "getRange$2", { value: ListFactory.
prototype.getRange, enumerable: false, writable: true, configurable: true }); |
| 800 Object.defineProperty(ListFactory.prototype, "iterator$0", { value: ListFactory.
prototype.iterator, enumerable: false, writable: true, configurable: true }); |
| 801 Object.defineProperty(ListFactory.prototype, "last$0", { value: ListFactory.prot
otype.last, enumerable: false, writable: true, configurable: true }); |
| 802 Object.defineProperty(ListFactory.prototype, "removeLast$0", { value: ListFactor
y.prototype.removeLast, enumerable: false, writable: true, configurable: true })
; |
| 803 ListFactory_Article = ListFactory; |
| 804 ListFactory_CallbackData = ListFactory; |
| 805 ListFactory_ChangeEvent = ListFactory; |
| 806 ListFactory_ChangeListener = ListFactory; |
| 807 ListFactory_E = ListFactory; |
| 808 ListFactory_EventListener = ListFactory; |
| 809 ListFactory_Feed = ListFactory; |
| 810 ListFactory_GridTrack = ListFactory; |
| 811 ListFactory_K = ListFactory; |
| 812 ListFactory_ScrollListener = ListFactory; |
| 813 ListFactory_Section = ListFactory; |
| 814 ListFactory_String = ListFactory; |
| 815 ListFactory_T = ListFactory; |
| 816 ListFactory_html_html_Touch = ListFactory; |
| 817 ListFactory_V = ListFactory; |
| 818 ListFactory_View = ListFactory; |
| 819 ListFactory__EventListenerWrapper = ListFactory; |
| 820 ListFactory_int = ListFactory; |
| 821 // ********** Code for ListIterator ************** |
| 822 function ListIterator(array) { |
| 823 this._array = array; |
| 824 this._pos = (0); |
| 825 } |
| 826 ListIterator.prototype.hasNext = function() { |
| 827 return this._array.get$length() > this._pos; |
| 828 } |
| 829 ListIterator.prototype.next = function() { |
| 830 if (!this.hasNext()) { |
| 831 $throw(const$0001); |
| 832 } |
| 833 return this._array.$index(this._pos++); |
| 834 } |
| 835 ListIterator.prototype.hasNext$0 = ListIterator.prototype.hasNext; |
| 836 ListIterator.prototype.next$0 = ListIterator.prototype.next; |
| 837 // ********** Code for ImmutableList ************** |
| 838 /** Implements extends for Dart classes on JavaScript prototypes. */ |
| 839 function $inherits(child, parent) { |
| 840 if (child.prototype.__proto__) { |
| 841 child.prototype.__proto__ = parent.prototype; |
| 842 } else { |
| 843 function tmp() {}; |
| 844 tmp.prototype = parent.prototype; |
| 845 child.prototype = new tmp(); |
| 846 child.prototype.constructor = child; |
| 847 } |
| 848 } |
| 849 $inherits(ImmutableList, ListFactory_E); |
| 850 function ImmutableList(length) { |
| 851 Array.call(this, length); |
| 852 } |
| 853 ImmutableList.ImmutableList$from$factory = function(other) { |
| 854 return _constList(other); |
| 855 } |
| 856 ImmutableList.prototype.get$length = function() { |
| 857 return this.length; |
| 858 } |
| 859 ImmutableList.prototype.set$length = function(length) { |
| 860 $throw(const$0003); |
| 861 } |
| 862 ImmutableList.prototype.$setindex = function(index, value) { |
| 863 $throw(const$0003); |
| 864 } |
| 865 ImmutableList.prototype.sort = function(compare) { |
| 866 $throw(const$0003); |
| 867 } |
| 868 ImmutableList.prototype.add = function(element) { |
| 869 $throw(const$0003); |
| 870 } |
| 871 ImmutableList.prototype.addAll = function(elements) { |
| 872 $throw(const$0003); |
| 873 } |
| 874 ImmutableList.prototype.clear = function() { |
| 875 $throw(const$0003); |
| 876 } |
| 877 ImmutableList.prototype.get$clear = function() { |
| 878 return this.clear.bind(this); |
| 879 } |
| 880 ImmutableList.prototype.removeLast = function() { |
| 881 $throw(const$0003); |
| 882 } |
| 883 ImmutableList.prototype.toString = function() { |
| 884 return ListFactory.ListFactory$from$factory(this).toString$0(); |
| 885 } |
| 886 ImmutableList.prototype.add$1 = ImmutableList.prototype.add; |
| 887 ImmutableList.prototype.addAll$1 = ImmutableList.prototype.addAll; |
| 888 ImmutableList.prototype.clear$0 = ImmutableList.prototype.clear; |
| 889 ImmutableList.prototype.removeLast$0 = ImmutableList.prototype.removeLast; |
| 890 ImmutableList.prototype.toString$0 = ImmutableList.prototype.toString; |
| 891 // ********** Code for ImmutableMap ************** |
| 892 function ImmutableMap(keyValuePairs) { |
| 893 this._dart_coreimpl_internal = _map(keyValuePairs); |
| 894 } |
| 895 ImmutableMap.prototype.is$Map_dart_core_String$Dynamic = function(){return true}
; |
| 896 ImmutableMap.prototype.$index = function(key) { |
| 897 return this._dart_coreimpl_internal.$index(key); |
| 898 } |
| 899 ImmutableMap.prototype.get$length = function() { |
| 900 return this._dart_coreimpl_internal.get$length(); |
| 901 } |
| 902 ImmutableMap.prototype.forEach = function(f) { |
| 903 this._dart_coreimpl_internal.forEach(f); |
| 904 } |
| 905 ImmutableMap.prototype.getValues = function() { |
| 906 return this._dart_coreimpl_internal.getValues$0(); |
| 907 } |
| 908 ImmutableMap.prototype.containsKey = function(key) { |
| 909 return this._dart_coreimpl_internal.containsKey(key); |
| 910 } |
| 911 ImmutableMap.prototype.$setindex = function(key, value) { |
| 912 $throw(const$0003); |
| 913 } |
| 914 ImmutableMap.prototype.putIfAbsent = function(key, ifAbsent) { |
| 915 $throw(const$0003); |
| 916 } |
| 917 ImmutableMap.prototype.clear = function() { |
| 918 $throw(const$0003); |
| 919 } |
| 920 ImmutableMap.prototype.get$clear = function() { |
| 921 return this.clear.bind(this); |
| 922 } |
| 923 ImmutableMap.prototype.remove = function(key) { |
| 924 $throw(const$0003); |
| 925 } |
| 926 ImmutableMap.prototype.clear$0 = ImmutableMap.prototype.clear; |
| 927 ImmutableMap.prototype.forEach$1 = function($0) { |
| 928 return this.forEach(to$call$2($0)); |
| 929 }; |
| 930 ImmutableMap.prototype.getValues$0 = ImmutableMap.prototype.getValues; |
| 931 ImmutableMap.prototype.putIfAbsent$2 = function($0, $1) { |
| 932 return this.putIfAbsent($0, to$call$0($1)); |
| 933 }; |
| 934 ImmutableMap.prototype.remove$1 = ImmutableMap.prototype.remove; |
| 935 // ********** Code for JSSyntaxRegExp ************** |
| 936 function JSSyntaxRegExp(pattern, multiLine, ignoreCase) { |
| 937 JSSyntaxRegExp._create$ctor.call(this, pattern, ($eq(multiLine, true) ? "m" :
"") + ($eq(ignoreCase, true) ? "i" : "")); |
| 938 } |
| 939 JSSyntaxRegExp._create$ctor = function(pattern, flags) { |
| 940 this.re = new RegExp(pattern, flags); |
| 941 this.pattern = pattern; |
| 942 this.multiLine = this.re.multiline; |
| 943 this.ignoreCase = this.re.ignoreCase; |
| 944 } |
| 945 JSSyntaxRegExp._create$ctor.prototype = JSSyntaxRegExp.prototype; |
| 946 JSSyntaxRegExp.prototype.is$RegExp = function(){return true}; |
| 947 JSSyntaxRegExp.prototype.firstMatch = function(str) { |
| 948 var m = this._exec(str); |
| 949 return m == null ? null : new MatchImplementation(this.pattern, str, this._mat
chStart(m), this.get$_lastIndex(), m); |
| 950 } |
| 951 JSSyntaxRegExp.prototype._exec = function(str) { |
| 952 return this.re.exec(str); |
| 953 } |
| 954 JSSyntaxRegExp.prototype._matchStart = function(m) { |
| 955 return m.index; |
| 956 } |
| 957 JSSyntaxRegExp.prototype.get$_lastIndex = function() { |
| 958 return this.re.lastIndex; |
| 959 } |
| 960 JSSyntaxRegExp.prototype.hasMatch = function(str) { |
| 961 return this.re.test(str); |
| 962 } |
| 963 JSSyntaxRegExp.prototype.allMatches = function(str) { |
| 964 return new _AllMatchesIterable(this, str); |
| 965 } |
| 966 JSSyntaxRegExp.prototype.get$_global = function() { |
| 967 return new JSSyntaxRegExp._create$ctor(this.pattern, "g" + (this.multiLine ? "
m" : "") + (this.ignoreCase ? "i" : "")); |
| 968 } |
| 969 // ********** Code for MatchImplementation ************** |
| 970 function MatchImplementation(pattern, str, _start, _end, _groups) { |
| 971 this.str = str; |
| 972 this._start = _start; |
| 973 this._groups = _groups; |
| 974 this.pattern = pattern; |
| 975 this._end = _end; |
| 976 } |
| 977 MatchImplementation.prototype.start = function() { |
| 978 return this._start; |
| 979 } |
| 980 MatchImplementation.prototype.get$start = function() { |
| 981 return this.start.bind(this); |
| 982 } |
| 983 MatchImplementation.prototype.end = function() { |
| 984 return this._end; |
| 985 } |
| 986 MatchImplementation.prototype.get$end = function() { |
| 987 return this.end.bind(this); |
| 988 } |
| 989 MatchImplementation.prototype.group = function(group) { |
| 990 return this._groups.$index(group); |
| 991 } |
| 992 MatchImplementation.prototype.$index = function(group) { |
| 993 return this._groups.$index(group); |
| 994 } |
| 995 MatchImplementation.prototype.end$0 = MatchImplementation.prototype.end; |
| 996 MatchImplementation.prototype.group$1 = MatchImplementation.prototype.group; |
| 997 MatchImplementation.prototype.start$0 = MatchImplementation.prototype.start; |
| 998 // ********** Code for _AllMatchesIterable ************** |
| 999 function _AllMatchesIterable(_re, _str) { |
| 1000 this._re = _re; |
| 1001 this._str = _str; |
| 1002 } |
| 1003 _AllMatchesIterable.prototype.iterator = function() { |
| 1004 return new _AllMatchesIterator(this._re, this._str); |
| 1005 } |
| 1006 _AllMatchesIterable.prototype.iterator$0 = _AllMatchesIterable.prototype.iterato
r; |
| 1007 // ********** Code for _AllMatchesIterator ************** |
| 1008 function _AllMatchesIterator(re, _str) { |
| 1009 this._dart_coreimpl_done = false; |
| 1010 this._re = re.get$_global(); |
| 1011 this._str = _str; |
| 1012 } |
| 1013 _AllMatchesIterator.prototype.next = function() { |
| 1014 if (!this.hasNext()) { |
| 1015 $throw(const$0001); |
| 1016 } |
| 1017 var next = this._next; |
| 1018 this._next = null; |
| 1019 return next; |
| 1020 } |
| 1021 _AllMatchesIterator.prototype.hasNext = function() { |
| 1022 if (this._dart_coreimpl_done) { |
| 1023 return false; |
| 1024 } |
| 1025 else if (this._next != null) { |
| 1026 return true; |
| 1027 } |
| 1028 this._next = this._re.firstMatch(this._str); |
| 1029 if (this._next == null) { |
| 1030 this._dart_coreimpl_done = true; |
| 1031 return false; |
| 1032 } |
| 1033 else { |
| 1034 return true; |
| 1035 } |
| 1036 } |
| 1037 _AllMatchesIterator.prototype.hasNext$0 = _AllMatchesIterator.prototype.hasNext; |
| 1038 _AllMatchesIterator.prototype.next$0 = _AllMatchesIterator.prototype.next; |
| 1039 // ********** Code for NumImplementation ************** |
| 1040 NumImplementation = Number; |
| 1041 NumImplementation.prototype.$negate = function() { |
| 1042 'use strict'; return -this; |
| 1043 } |
| 1044 NumImplementation.prototype.remainder = function(other) { |
| 1045 'use strict'; return this % other; |
| 1046 } |
| 1047 NumImplementation.prototype.isNegative = function() { |
| 1048 'use strict'; return this == 0 ? (1 / this) < 0 : this < 0; |
| 1049 } |
| 1050 NumImplementation.prototype.abs = function() { |
| 1051 'use strict'; return Math.abs(this); |
| 1052 } |
| 1053 NumImplementation.prototype.round = function() { |
| 1054 'use strict'; return Math.round(this); |
| 1055 } |
| 1056 NumImplementation.prototype.floor = function() { |
| 1057 'use strict'; return Math.floor(this); |
| 1058 } |
| 1059 NumImplementation.prototype.ceil = function() { |
| 1060 'use strict'; return Math.ceil(this); |
| 1061 } |
| 1062 NumImplementation.prototype.hashCode = function() { |
| 1063 'use strict'; return this & 0x1FFFFFFF; |
| 1064 } |
| 1065 NumImplementation.prototype.toInt = function() { |
| 1066 'use strict'; |
| 1067 if (isNaN(this)) $throw(new BadNumberFormatException("NaN")); |
| 1068 if ((this == Infinity) || (this == -Infinity)) { |
| 1069 $throw(new BadNumberFormatException("Infinity")); |
| 1070 } |
| 1071 var truncated = (this < 0) ? Math.ceil(this) : Math.floor(this); |
| 1072 if (truncated == -0.0) return 0; |
| 1073 return truncated; |
| 1074 } |
| 1075 NumImplementation.prototype.hashCode$0 = NumImplementation.prototype.hashCode; |
| 1076 NumImplementation.prototype.round$0 = NumImplementation.prototype.round; |
| 1077 NumImplementation.prototype.toInt$0 = NumImplementation.prototype.toInt; |
| 1078 // ********** Code for DurationImplementation ************** |
| 1079 function DurationImplementation(days, hours, minutes, seconds, milliseconds) { |
| 1080 this.inMilliseconds = days * (86400000) + hours * (3600000) + minutes * (60000
) + seconds * (1000) + milliseconds; |
| 1081 } |
| 1082 DurationImplementation.prototype.is$Duration = function(){return true}; |
| 1083 DurationImplementation.prototype.get$inMilliseconds = function() { return this.i
nMilliseconds; }; |
| 1084 DurationImplementation.prototype.get$inDays = function() { |
| 1085 return $truncdiv(this.inMilliseconds, (86400000)); |
| 1086 } |
| 1087 DurationImplementation.prototype.get$inHours = function() { |
| 1088 return $truncdiv(this.inMilliseconds, (3600000)); |
| 1089 } |
| 1090 DurationImplementation.prototype.get$inMinutes = function() { |
| 1091 return $truncdiv(this.inMilliseconds, (60000)); |
| 1092 } |
| 1093 DurationImplementation.prototype.get$inSeconds = function() { |
| 1094 return $truncdiv(this.inMilliseconds, (1000)); |
| 1095 } |
| 1096 DurationImplementation.prototype.$eq = function(other) { |
| 1097 if (!(other && other.is$Duration())) return false; |
| 1098 return this.inMilliseconds == other.get$inMilliseconds(); |
| 1099 } |
| 1100 DurationImplementation.prototype.hashCode = function() { |
| 1101 return this.inMilliseconds.hashCode(); |
| 1102 } |
| 1103 DurationImplementation.prototype.toString = function() { |
| 1104 function threeDigits(n) { |
| 1105 if (n >= (100)) return ("" + n); |
| 1106 if (n > (10)) return ("0" + n); |
| 1107 return ("00" + n); |
| 1108 } |
| 1109 function twoDigits(n) { |
| 1110 if (n >= (10)) return ("" + n); |
| 1111 return ("0" + n); |
| 1112 } |
| 1113 if (this.inMilliseconds < (0)) { |
| 1114 var duration = new DurationImplementation((0), (0), (0), (0), -this.inMillis
econds); |
| 1115 return ("-" + duration); |
| 1116 } |
| 1117 var twoDigitMinutes = twoDigits.call$1(this.get$inMinutes().remainder((60))); |
| 1118 var twoDigitSeconds = twoDigits.call$1(this.get$inSeconds().remainder((60))); |
| 1119 var threeDigitMs = threeDigits.call$1(this.inMilliseconds.remainder((1000))); |
| 1120 return ("" + this.get$inHours() + ":" + twoDigitMinutes + ":" + twoDigitSecond
s + "." + threeDigitMs); |
| 1121 } |
| 1122 DurationImplementation.prototype.hashCode$0 = DurationImplementation.prototype.h
ashCode; |
| 1123 DurationImplementation.prototype.toString$0 = DurationImplementation.prototype.t
oString; |
| 1124 // ********** Code for FutureNotCompleteException ************** |
| 1125 function FutureNotCompleteException() { |
| 1126 |
| 1127 } |
| 1128 FutureNotCompleteException.prototype.toString = function() { |
| 1129 return "Exception: future has not been completed"; |
| 1130 } |
| 1131 FutureNotCompleteException.prototype.toString$0 = FutureNotCompleteException.pro
totype.toString; |
| 1132 // ********** Code for FutureAlreadyCompleteException ************** |
| 1133 function FutureAlreadyCompleteException() { |
| 1134 |
| 1135 } |
| 1136 FutureAlreadyCompleteException.prototype.toString = function() { |
| 1137 return "Exception: future already completed"; |
| 1138 } |
| 1139 FutureAlreadyCompleteException.prototype.toString$0 = FutureAlreadyCompleteExcep
tion.prototype.toString; |
| 1140 // ********** Code for FutureImpl ************** |
| 1141 function FutureImpl() { |
| 1142 this._exceptionHandlers = new Array(); |
| 1143 this._dart_coreimpl_listeners = new Array(); |
| 1144 this._isComplete = false; |
| 1145 this._exceptionHandled = false; |
| 1146 } |
| 1147 FutureImpl.prototype.get$value = function() { |
| 1148 if (!this.get$isComplete()) { |
| 1149 $throw(new FutureNotCompleteException()); |
| 1150 } |
| 1151 if (this._exception != null) { |
| 1152 $throw(this._exception); |
| 1153 } |
| 1154 return this._dart_coreimpl_value; |
| 1155 } |
| 1156 FutureImpl.prototype.get$isComplete = function() { |
| 1157 return this._isComplete; |
| 1158 } |
| 1159 FutureImpl.prototype.get$hasValue = function() { |
| 1160 return this.get$isComplete() && this._exception == null; |
| 1161 } |
| 1162 FutureImpl.prototype.then = function(onComplete) { |
| 1163 if (this.get$hasValue()) { |
| 1164 onComplete.call$1(this.get$value()); |
| 1165 } |
| 1166 else if (!this.get$isComplete()) { |
| 1167 this._dart_coreimpl_listeners.add$1(onComplete); |
| 1168 } |
| 1169 else if (!this._exceptionHandled) { |
| 1170 $throw(this._exception); |
| 1171 } |
| 1172 } |
| 1173 FutureImpl.prototype._complete = function() { |
| 1174 this._isComplete = true; |
| 1175 if (this._exception != null) { |
| 1176 var $$list = this._exceptionHandlers; |
| 1177 for (var $$i = 0;$$i < $$list.get$length(); $$i++) { |
| 1178 var handler = $$list.$index($$i); |
| 1179 if (handler.call$1(this._exception)) { |
| 1180 this._exceptionHandled = true; |
| 1181 break; |
| 1182 } |
| 1183 } |
| 1184 } |
| 1185 if (this.get$hasValue()) { |
| 1186 var $$list = this._dart_coreimpl_listeners; |
| 1187 for (var $$i = 0;$$i < $$list.get$length(); $$i++) { |
| 1188 var listener = $$list.$index($$i); |
| 1189 listener.call$1(this.get$value()); |
| 1190 } |
| 1191 } |
| 1192 else { |
| 1193 if (!this._exceptionHandled && this._dart_coreimpl_listeners.get$length() >
(0)) { |
| 1194 $throw(this._exception); |
| 1195 } |
| 1196 } |
| 1197 } |
| 1198 FutureImpl.prototype._setValue = function(value) { |
| 1199 if (this._isComplete) { |
| 1200 $throw(new FutureAlreadyCompleteException()); |
| 1201 } |
| 1202 this._dart_coreimpl_value = value; |
| 1203 this._complete(); |
| 1204 } |
| 1205 FutureImpl.prototype._setException = function(exception) { |
| 1206 if (exception == null) { |
| 1207 $throw(new IllegalArgumentException(null)); |
| 1208 } |
| 1209 if (this._isComplete) { |
| 1210 $throw(new FutureAlreadyCompleteException()); |
| 1211 } |
| 1212 this._exception = exception; |
| 1213 this._complete(); |
| 1214 } |
| 1215 // ********** Code for FutureImpl_T ************** |
| 1216 $inherits(FutureImpl_T, FutureImpl); |
| 1217 function FutureImpl_T() {} |
| 1218 FutureImpl_T.prototype._complete = function() { |
| 1219 this._isComplete = true; |
| 1220 if (this._exception != null) { |
| 1221 var $$list = this._exceptionHandlers; |
| 1222 for (var $$i = 0;$$i < $$list.get$length(); $$i++) { |
| 1223 var handler = $$list.$index($$i); |
| 1224 if (handler.call$1(this._exception)) { |
| 1225 this._exceptionHandled = true; |
| 1226 break; |
| 1227 } |
| 1228 } |
| 1229 } |
| 1230 if (this.get$hasValue()) { |
| 1231 var $$list = this._dart_coreimpl_listeners; |
| 1232 for (var $$i = 0;$$i < $$list.get$length(); $$i++) { |
| 1233 var listener = $$list.$index($$i); |
| 1234 listener.call$1(this.get$value()); |
| 1235 } |
| 1236 } |
| 1237 else { |
| 1238 if (!this._exceptionHandled && this._dart_coreimpl_listeners.get$length() >
(0)) { |
| 1239 $throw(this._exception); |
| 1240 } |
| 1241 } |
| 1242 } |
| 1243 FutureImpl_T.prototype._setValue = function(value) { |
| 1244 if (this._isComplete) { |
| 1245 $throw(new FutureAlreadyCompleteException()); |
| 1246 } |
| 1247 this._dart_coreimpl_value = value; |
| 1248 this._complete(); |
| 1249 } |
| 1250 FutureImpl_T.prototype._setException = function(exception) { |
| 1251 if (exception == null) { |
| 1252 $throw(new IllegalArgumentException(null)); |
| 1253 } |
| 1254 if (this._isComplete) { |
| 1255 $throw(new FutureAlreadyCompleteException()); |
| 1256 } |
| 1257 this._exception = exception; |
| 1258 this._complete(); |
| 1259 } |
| 1260 // ********** Code for CompleterImpl ************** |
| 1261 function CompleterImpl() { |
| 1262 this._futureImpl = new FutureImpl(); |
| 1263 } |
| 1264 CompleterImpl.prototype.get$future = function() { |
| 1265 return this._futureImpl; |
| 1266 } |
| 1267 CompleterImpl.prototype.complete = function(value) { |
| 1268 this._futureImpl._setValue(value); |
| 1269 } |
| 1270 CompleterImpl.prototype.get$complete = function() { |
| 1271 return this.complete.bind(this); |
| 1272 } |
| 1273 CompleterImpl.prototype.completeException = function(exception) { |
| 1274 this._futureImpl._setException(exception); |
| 1275 } |
| 1276 CompleterImpl.prototype.complete$1 = CompleterImpl.prototype.complete; |
| 1277 // ********** Code for CompleterImpl_html_html_CSSStyleDeclaration *************
* |
| 1278 $inherits(CompleterImpl_html_html_CSSStyleDeclaration, CompleterImpl); |
| 1279 function CompleterImpl_html_html_CSSStyleDeclaration() {} |
| 1280 // ********** Code for CompleterImpl_ElementRect ************** |
| 1281 $inherits(CompleterImpl_ElementRect, CompleterImpl); |
| 1282 function CompleterImpl_ElementRect() {} |
| 1283 // ********** Code for CompleterImpl_Size ************** |
| 1284 $inherits(CompleterImpl_Size, CompleterImpl); |
| 1285 function CompleterImpl_Size() {} |
| 1286 // ********** Code for CompleterImpl_bool ************** |
| 1287 $inherits(CompleterImpl_bool, CompleterImpl); |
| 1288 function CompleterImpl_bool() {} |
| 1289 // ********** Code for HashMapImplementation ************** |
| 1290 function HashMapImplementation() { |
| 1291 this._numberOfEntries = (0); |
| 1292 this._numberOfDeleted = (0); |
| 1293 this._loadLimit = HashMapImplementation._computeLoadLimit((8)); |
| 1294 this._keys = new Array((8)); |
| 1295 this._values = new Array((8)); |
| 1296 } |
| 1297 HashMapImplementation.prototype.is$Map_dart_core_String$Dynamic = function(){ret
urn true}; |
| 1298 HashMapImplementation._computeLoadLimit = function(capacity) { |
| 1299 return $truncdiv((capacity * (3)), (4)); |
| 1300 } |
| 1301 HashMapImplementation._firstProbe = function(hashCode, length) { |
| 1302 return hashCode & (length - (1)); |
| 1303 } |
| 1304 HashMapImplementation._nextProbe = function(currentProbe, numberOfProbes, length
) { |
| 1305 return (currentProbe + numberOfProbes) & (length - (1)); |
| 1306 } |
| 1307 HashMapImplementation.prototype._probeForAdding = function(key) { |
| 1308 var hash = HashMapImplementation._firstProbe(key.hashCode$0(), this._keys.get$
length()); |
| 1309 var numberOfProbes = (1); |
| 1310 var initialHash = hash; |
| 1311 var insertionIndex = (-1); |
| 1312 while (true) { |
| 1313 var existingKey = this._keys.$index(hash); |
| 1314 if (existingKey == null) { |
| 1315 if (insertionIndex < (0)) return hash; |
| 1316 return insertionIndex; |
| 1317 } |
| 1318 else if ($eq(existingKey, key)) { |
| 1319 return hash; |
| 1320 } |
| 1321 else if ((insertionIndex < (0)) && (const$0000 == existingKey)) { |
| 1322 insertionIndex = hash; |
| 1323 } |
| 1324 hash = HashMapImplementation._nextProbe(hash, numberOfProbes++, this._keys.g
et$length()); |
| 1325 } |
| 1326 } |
| 1327 HashMapImplementation.prototype._probeForLookup = function(key) { |
| 1328 var hash = HashMapImplementation._firstProbe(key.hashCode$0(), this._keys.get$
length()); |
| 1329 var numberOfProbes = (1); |
| 1330 var initialHash = hash; |
| 1331 while (true) { |
| 1332 var existingKey = this._keys.$index(hash); |
| 1333 if (existingKey == null) return (-1); |
| 1334 if ($eq(existingKey, key)) return hash; |
| 1335 hash = HashMapImplementation._nextProbe(hash, numberOfProbes++, this._keys.g
et$length()); |
| 1336 } |
| 1337 } |
| 1338 HashMapImplementation.prototype._ensureCapacity = function() { |
| 1339 var newNumberOfEntries = this._numberOfEntries + (1); |
| 1340 if (newNumberOfEntries >= this._loadLimit) { |
| 1341 this._grow(this._keys.get$length() * (2)); |
| 1342 return; |
| 1343 } |
| 1344 var capacity = this._keys.get$length(); |
| 1345 var numberOfFreeOrDeleted = capacity - newNumberOfEntries; |
| 1346 var numberOfFree = numberOfFreeOrDeleted - this._numberOfDeleted; |
| 1347 if (this._numberOfDeleted > numberOfFree) { |
| 1348 this._grow(this._keys.get$length()); |
| 1349 } |
| 1350 } |
| 1351 HashMapImplementation._isPowerOfTwo = function(x) { |
| 1352 return ((x & (x - (1))) == (0)); |
| 1353 } |
| 1354 HashMapImplementation.prototype._grow = function(newCapacity) { |
| 1355 var capacity = this._keys.get$length(); |
| 1356 this._loadLimit = HashMapImplementation._computeLoadLimit(newCapacity); |
| 1357 var oldKeys = this._keys; |
| 1358 var oldValues = this._values; |
| 1359 this._keys = new Array(newCapacity); |
| 1360 this._values = new Array(newCapacity); |
| 1361 for (var i = (0); |
| 1362 i < capacity; i++) { |
| 1363 var key = oldKeys.$index(i); |
| 1364 if (key == null || key == const$0000) { |
| 1365 continue; |
| 1366 } |
| 1367 var value = oldValues.$index(i); |
| 1368 var newIndex = this._probeForAdding(key); |
| 1369 this._keys.$setindex(newIndex, key); |
| 1370 this._values.$setindex(newIndex, value); |
| 1371 } |
| 1372 this._numberOfDeleted = (0); |
| 1373 } |
| 1374 HashMapImplementation.prototype.clear = function() { |
| 1375 this._numberOfEntries = (0); |
| 1376 this._numberOfDeleted = (0); |
| 1377 var length = this._keys.get$length(); |
| 1378 for (var i = (0); |
| 1379 i < length; i++) { |
| 1380 this._keys.$setindex(i); |
| 1381 this._values.$setindex(i); |
| 1382 } |
| 1383 } |
| 1384 HashMapImplementation.prototype.get$clear = function() { |
| 1385 return this.clear.bind(this); |
| 1386 } |
| 1387 HashMapImplementation.prototype.$setindex = function(key, value) { |
| 1388 this._ensureCapacity(); |
| 1389 var index = this._probeForAdding(key); |
| 1390 if ((this._keys.$index(index) == null) || (this._keys.$index(index) == const$0
000)) { |
| 1391 this._numberOfEntries++; |
| 1392 } |
| 1393 this._keys.$setindex(index, key); |
| 1394 this._values.$setindex(index, value); |
| 1395 } |
| 1396 HashMapImplementation.prototype.$index = function(key) { |
| 1397 var index = this._probeForLookup(key); |
| 1398 if (index < (0)) return null; |
| 1399 return this._values.$index(index); |
| 1400 } |
| 1401 HashMapImplementation.prototype.putIfAbsent = function(key, ifAbsent) { |
| 1402 var index = this._probeForLookup(key); |
| 1403 if (index >= (0)) return this._values.$index(index); |
| 1404 var value = ifAbsent.call$0(); |
| 1405 this.$setindex(key, value); |
| 1406 return value; |
| 1407 } |
| 1408 HashMapImplementation.prototype.remove = function(key) { |
| 1409 var index = this._probeForLookup(key); |
| 1410 if (index >= (0)) { |
| 1411 this._numberOfEntries--; |
| 1412 var value = this._values.$index(index); |
| 1413 this._values.$setindex(index); |
| 1414 this._keys.$setindex(index, const$0000); |
| 1415 this._numberOfDeleted++; |
| 1416 return value; |
| 1417 } |
| 1418 return null; |
| 1419 } |
| 1420 HashMapImplementation.prototype.isEmpty = function() { |
| 1421 return this._numberOfEntries == (0); |
| 1422 } |
| 1423 HashMapImplementation.prototype.get$length = function() { |
| 1424 return this._numberOfEntries; |
| 1425 } |
| 1426 HashMapImplementation.prototype.forEach = function(f) { |
| 1427 var length = this._keys.get$length(); |
| 1428 for (var i = (0); |
| 1429 i < length; i++) { |
| 1430 var key = this._keys.$index(i); |
| 1431 if ((key != null) && (key != const$0000)) { |
| 1432 f.call$2(key, this._values.$index(i)); |
| 1433 } |
| 1434 } |
| 1435 } |
| 1436 HashMapImplementation.prototype.getKeys = function() { |
| 1437 var list = new Array(this.get$length()); |
| 1438 var i = (0); |
| 1439 this.forEach(function _(key, value) { |
| 1440 list.$setindex(i++, key); |
| 1441 } |
| 1442 ); |
| 1443 return list; |
| 1444 } |
| 1445 HashMapImplementation.prototype.getValues = function() { |
| 1446 var list = new Array(this.get$length()); |
| 1447 var i = (0); |
| 1448 this.forEach(function _(key, value) { |
| 1449 list.$setindex(i++, value); |
| 1450 } |
| 1451 ); |
| 1452 return list; |
| 1453 } |
| 1454 HashMapImplementation.prototype.containsKey = function(key) { |
| 1455 return (this._probeForLookup(key) != (-1)); |
| 1456 } |
| 1457 HashMapImplementation.prototype.clear$0 = HashMapImplementation.prototype.clear; |
| 1458 HashMapImplementation.prototype.forEach$1 = function($0) { |
| 1459 return this.forEach(to$call$2($0)); |
| 1460 }; |
| 1461 HashMapImplementation.prototype.getValues$0 = HashMapImplementation.prototype.ge
tValues; |
| 1462 HashMapImplementation.prototype.putIfAbsent$2 = function($0, $1) { |
| 1463 return this.putIfAbsent($0, to$call$0($1)); |
| 1464 }; |
| 1465 HashMapImplementation.prototype.remove$1 = HashMapImplementation.prototype.remov
e; |
| 1466 // ********** Code for HashMapImplementation_E$E ************** |
| 1467 $inherits(HashMapImplementation_E$E, HashMapImplementation); |
| 1468 function HashMapImplementation_E$E() { |
| 1469 this._numberOfEntries = (0); |
| 1470 this._numberOfDeleted = (0); |
| 1471 this._loadLimit = HashMapImplementation._computeLoadLimit((8)); |
| 1472 this._keys = new Array((8)); |
| 1473 this._values = new Array((8)); |
| 1474 } |
| 1475 HashMapImplementation_E$E.prototype.is$Map_dart_core_String$Dynamic = function()
{return true}; |
| 1476 HashMapImplementation_E$E._computeLoadLimit = function(capacity) { |
| 1477 return $truncdiv((capacity * (3)), (4)); |
| 1478 } |
| 1479 HashMapImplementation_E$E._firstProbe = function(hashCode, length) { |
| 1480 return hashCode & (length - (1)); |
| 1481 } |
| 1482 HashMapImplementation_E$E._nextProbe = function(currentProbe, numberOfProbes, le
ngth) { |
| 1483 return (currentProbe + numberOfProbes) & (length - (1)); |
| 1484 } |
| 1485 HashMapImplementation_E$E.prototype._probeForAdding = function(key) { |
| 1486 var hash = HashMapImplementation._firstProbe(key.hashCode$0(), this._keys.get$
length()); |
| 1487 var numberOfProbes = (1); |
| 1488 var initialHash = hash; |
| 1489 var insertionIndex = (-1); |
| 1490 while (true) { |
| 1491 var existingKey = this._keys.$index(hash); |
| 1492 if (existingKey == null) { |
| 1493 if (insertionIndex < (0)) return hash; |
| 1494 return insertionIndex; |
| 1495 } |
| 1496 else if ($eq(existingKey, key)) { |
| 1497 return hash; |
| 1498 } |
| 1499 else if ((insertionIndex < (0)) && (const$0000 == existingKey)) { |
| 1500 insertionIndex = hash; |
| 1501 } |
| 1502 hash = HashMapImplementation._nextProbe(hash, numberOfProbes++, this._keys.g
et$length()); |
| 1503 } |
| 1504 } |
| 1505 HashMapImplementation_E$E.prototype._probeForLookup = function(key) { |
| 1506 var hash = HashMapImplementation._firstProbe(key.hashCode$0(), this._keys.get$
length()); |
| 1507 var numberOfProbes = (1); |
| 1508 var initialHash = hash; |
| 1509 while (true) { |
| 1510 var existingKey = this._keys.$index(hash); |
| 1511 if (existingKey == null) return (-1); |
| 1512 if ($eq(existingKey, key)) return hash; |
| 1513 hash = HashMapImplementation._nextProbe(hash, numberOfProbes++, this._keys.g
et$length()); |
| 1514 } |
| 1515 } |
| 1516 HashMapImplementation_E$E.prototype._ensureCapacity = function() { |
| 1517 var newNumberOfEntries = this._numberOfEntries + (1); |
| 1518 if (newNumberOfEntries >= this._loadLimit) { |
| 1519 this._grow(this._keys.get$length() * (2)); |
| 1520 return; |
| 1521 } |
| 1522 var capacity = this._keys.get$length(); |
| 1523 var numberOfFreeOrDeleted = capacity - newNumberOfEntries; |
| 1524 var numberOfFree = numberOfFreeOrDeleted - this._numberOfDeleted; |
| 1525 if (this._numberOfDeleted > numberOfFree) { |
| 1526 this._grow(this._keys.get$length()); |
| 1527 } |
| 1528 } |
| 1529 HashMapImplementation_E$E._isPowerOfTwo = function(x) { |
| 1530 return ((x & (x - (1))) == (0)); |
| 1531 } |
| 1532 HashMapImplementation_E$E.prototype._grow = function(newCapacity) { |
| 1533 var capacity = this._keys.get$length(); |
| 1534 this._loadLimit = HashMapImplementation._computeLoadLimit(newCapacity); |
| 1535 var oldKeys = this._keys; |
| 1536 var oldValues = this._values; |
| 1537 this._keys = new Array(newCapacity); |
| 1538 this._values = new Array(newCapacity); |
| 1539 for (var i = (0); |
| 1540 i < capacity; i++) { |
| 1541 var key = oldKeys.$index(i); |
| 1542 if (key == null || key == const$0000) { |
| 1543 continue; |
| 1544 } |
| 1545 var value = oldValues.$index(i); |
| 1546 var newIndex = this._probeForAdding(key); |
| 1547 this._keys.$setindex(newIndex, key); |
| 1548 this._values.$setindex(newIndex, value); |
| 1549 } |
| 1550 this._numberOfDeleted = (0); |
| 1551 } |
| 1552 HashMapImplementation_E$E.prototype.clear = function() { |
| 1553 this._numberOfEntries = (0); |
| 1554 this._numberOfDeleted = (0); |
| 1555 var length = this._keys.get$length(); |
| 1556 for (var i = (0); |
| 1557 i < length; i++) { |
| 1558 this._keys.$setindex(i); |
| 1559 this._values.$setindex(i); |
| 1560 } |
| 1561 } |
| 1562 HashMapImplementation_E$E.prototype.$setindex = function(key, value) { |
| 1563 this._ensureCapacity(); |
| 1564 var index = this._probeForAdding(key); |
| 1565 if ((this._keys.$index(index) == null) || (this._keys.$index(index) == const$0
000)) { |
| 1566 this._numberOfEntries++; |
| 1567 } |
| 1568 this._keys.$setindex(index, key); |
| 1569 this._values.$setindex(index, value); |
| 1570 } |
| 1571 HashMapImplementation_E$E.prototype.remove = function(key) { |
| 1572 var index = this._probeForLookup(key); |
| 1573 if (index >= (0)) { |
| 1574 this._numberOfEntries--; |
| 1575 var value = this._values.$index(index); |
| 1576 this._values.$setindex(index); |
| 1577 this._keys.$setindex(index, const$0000); |
| 1578 this._numberOfDeleted++; |
| 1579 return value; |
| 1580 } |
| 1581 return null; |
| 1582 } |
| 1583 HashMapImplementation_E$E.prototype.isEmpty = function() { |
| 1584 return this._numberOfEntries == (0); |
| 1585 } |
| 1586 HashMapImplementation_E$E.prototype.forEach = function(f) { |
| 1587 var length = this._keys.get$length(); |
| 1588 for (var i = (0); |
| 1589 i < length; i++) { |
| 1590 var key = this._keys.$index(i); |
| 1591 if ((key != null) && (key != const$0000)) { |
| 1592 f.call$2(key, this._values.$index(i)); |
| 1593 } |
| 1594 } |
| 1595 } |
| 1596 HashMapImplementation_E$E.prototype.getKeys = function() { |
| 1597 var list = new Array(this.get$length()); |
| 1598 var i = (0); |
| 1599 this.forEach(function _(key, value) { |
| 1600 list.$setindex(i++, key); |
| 1601 } |
| 1602 ); |
| 1603 return list; |
| 1604 } |
| 1605 HashMapImplementation_E$E.prototype.containsKey = function(key) { |
| 1606 return (this._probeForLookup(key) != (-1)); |
| 1607 } |
| 1608 // ********** Code for HashMapImplementation_K$DoubleLinkedQueueEntry_KeyValuePa
ir_K$V ************** |
| 1609 $inherits(HashMapImplementation_K$DoubleLinkedQueueEntry_KeyValuePair_K$V, HashM
apImplementation); |
| 1610 function HashMapImplementation_K$DoubleLinkedQueueEntry_KeyValuePair_K$V() {} |
| 1611 HashMapImplementation_K$DoubleLinkedQueueEntry_KeyValuePair_K$V.prototype.is$Map
_dart_core_String$Dynamic = function(){return true}; |
| 1612 // ********** Code for HashMapImplementation_dart_core_String$dart_core_String *
************* |
| 1613 $inherits(HashMapImplementation_dart_core_String$dart_core_String, HashMapImplem
entation); |
| 1614 function HashMapImplementation_dart_core_String$dart_core_String() {} |
| 1615 HashMapImplementation_dart_core_String$dart_core_String.prototype.is$Map_dart_co
re_String$Dynamic = function(){return true}; |
| 1616 // ********** Code for HashMapImplementation_dart_core_String$int ************** |
| 1617 $inherits(HashMapImplementation_dart_core_String$int, HashMapImplementation); |
| 1618 function HashMapImplementation_dart_core_String$int() {} |
| 1619 HashMapImplementation_dart_core_String$int.prototype.is$Map_dart_core_String$Dyn
amic = function(){return true}; |
| 1620 // ********** Code for HashMapImplementation_dart_core_String$num ************** |
| 1621 $inherits(HashMapImplementation_dart_core_String$num, HashMapImplementation); |
| 1622 function HashMapImplementation_dart_core_String$num() {} |
| 1623 HashMapImplementation_dart_core_String$num.prototype.is$Map_dart_core_String$Dyn
amic = function(){return true}; |
| 1624 // ********** Code for HashMapImplementation_int$EventSummary ************** |
| 1625 $inherits(HashMapImplementation_int$EventSummary, HashMapImplementation); |
| 1626 function HashMapImplementation_int$EventSummary() {} |
| 1627 HashMapImplementation_int$EventSummary.prototype.is$Map_dart_core_String$Dynamic
= function(){return false}; |
| 1628 // ********** Code for HashMapImplementation_int$View ************** |
| 1629 $inherits(HashMapImplementation_int$View, HashMapImplementation); |
| 1630 function HashMapImplementation_int$View() {} |
| 1631 HashMapImplementation_int$View.prototype.is$Map_dart_core_String$Dynamic = funct
ion(){return false}; |
| 1632 // ********** Code for HashMapImplementation_int$_GridTemplateRect *************
* |
| 1633 $inherits(HashMapImplementation_int$_GridTemplateRect, HashMapImplementation); |
| 1634 function HashMapImplementation_int$_GridTemplateRect() {} |
| 1635 HashMapImplementation_int$_GridTemplateRect.prototype.is$Map_dart_core_String$Dy
namic = function(){return false}; |
| 1636 // ********** Code for HashSetImplementation ************** |
| 1637 function HashSetImplementation() { |
| 1638 this._backingMap = new HashMapImplementation_E$E(); |
| 1639 } |
| 1640 HashSetImplementation.HashSetImplementation$from$factory = function(other) { |
| 1641 var set = new HashSetImplementation_E(); |
| 1642 for (var $$i = other.iterator$0(); $$i.hasNext$0(); ) { |
| 1643 var e = $$i.next$0(); |
| 1644 set.add(e); |
| 1645 } |
| 1646 return set; |
| 1647 } |
| 1648 HashSetImplementation.prototype.clear = function() { |
| 1649 this._backingMap.clear(); |
| 1650 } |
| 1651 HashSetImplementation.prototype.get$clear = function() { |
| 1652 return this.clear.bind(this); |
| 1653 } |
| 1654 HashSetImplementation.prototype.add = function(value) { |
| 1655 this._backingMap.$setindex(value, value); |
| 1656 } |
| 1657 HashSetImplementation.prototype.contains = function(value) { |
| 1658 return this._backingMap.containsKey(value); |
| 1659 } |
| 1660 HashSetImplementation.prototype.remove = function(value) { |
| 1661 if (!this._backingMap.containsKey(value)) return false; |
| 1662 this._backingMap.remove(value); |
| 1663 return true; |
| 1664 } |
| 1665 HashSetImplementation.prototype.addAll = function(collection) { |
| 1666 var $this = this; // closure support |
| 1667 collection.forEach(function _(value) { |
| 1668 $this.add(value); |
| 1669 } |
| 1670 ); |
| 1671 } |
| 1672 HashSetImplementation.prototype.forEach = function(f) { |
| 1673 this._backingMap.forEach(function _(key, value) { |
| 1674 f.call$1(key); |
| 1675 } |
| 1676 ); |
| 1677 } |
| 1678 HashSetImplementation.prototype.filter = function(f) { |
| 1679 var result = new HashSetImplementation(); |
| 1680 this._backingMap.forEach(function _(key, value) { |
| 1681 if (f.call$1(key)) result.add(key); |
| 1682 } |
| 1683 ); |
| 1684 return result; |
| 1685 } |
| 1686 HashSetImplementation.prototype.some = function(f) { |
| 1687 var keys = this._backingMap.getKeys(); |
| 1688 return keys.some(f); |
| 1689 } |
| 1690 HashSetImplementation.prototype.isEmpty = function() { |
| 1691 return this._backingMap.isEmpty(); |
| 1692 } |
| 1693 HashSetImplementation.prototype.get$length = function() { |
| 1694 return this._backingMap.get$length(); |
| 1695 } |
| 1696 HashSetImplementation.prototype.iterator = function() { |
| 1697 return new HashSetIterator_E(this); |
| 1698 } |
| 1699 HashSetImplementation.prototype.add$1 = HashSetImplementation.prototype.add; |
| 1700 HashSetImplementation.prototype.addAll$1 = HashSetImplementation.prototype.addAl
l; |
| 1701 HashSetImplementation.prototype.clear$0 = HashSetImplementation.prototype.clear; |
| 1702 HashSetImplementation.prototype.contains$1 = HashSetImplementation.prototype.con
tains; |
| 1703 HashSetImplementation.prototype.filter$1 = function($0) { |
| 1704 return this.filter(to$call$1($0)); |
| 1705 }; |
| 1706 HashSetImplementation.prototype.forEach$1 = function($0) { |
| 1707 return this.forEach(to$call$1($0)); |
| 1708 }; |
| 1709 HashSetImplementation.prototype.iterator$0 = HashSetImplementation.prototype.ite
rator; |
| 1710 HashSetImplementation.prototype.remove$1 = HashSetImplementation.prototype.remov
e; |
| 1711 // ********** Code for HashSetImplementation_E ************** |
| 1712 $inherits(HashSetImplementation_E, HashSetImplementation); |
| 1713 function HashSetImplementation_E() { |
| 1714 this._backingMap = new HashMapImplementation_E$E(); |
| 1715 } |
| 1716 // ********** Code for HashSetImplementation_dart_core_String ************** |
| 1717 $inherits(HashSetImplementation_dart_core_String, HashSetImplementation); |
| 1718 function HashSetImplementation_dart_core_String() {} |
| 1719 // ********** Code for HashSetIterator ************** |
| 1720 function HashSetIterator(set_) { |
| 1721 this._entries = set_._backingMap._keys; |
| 1722 this._nextValidIndex = (-1); |
| 1723 this._advance(); |
| 1724 } |
| 1725 HashSetIterator.prototype.hasNext = function() { |
| 1726 if (this._nextValidIndex >= this._entries.get$length()) return false; |
| 1727 if (this._entries.$index(this._nextValidIndex) == const$0000) { |
| 1728 this._advance(); |
| 1729 } |
| 1730 return this._nextValidIndex < this._entries.get$length(); |
| 1731 } |
| 1732 HashSetIterator.prototype.next = function() { |
| 1733 if (!this.hasNext()) { |
| 1734 $throw(const$0001); |
| 1735 } |
| 1736 var res = this._entries.$index(this._nextValidIndex); |
| 1737 this._advance(); |
| 1738 return res; |
| 1739 } |
| 1740 HashSetIterator.prototype._advance = function() { |
| 1741 var length = this._entries.get$length(); |
| 1742 var entry; |
| 1743 var deletedKey = const$0000; |
| 1744 do { |
| 1745 if (++this._nextValidIndex >= length) break; |
| 1746 entry = this._entries.$index(this._nextValidIndex); |
| 1747 } |
| 1748 while ((entry == null) || (entry == deletedKey)) |
| 1749 } |
| 1750 HashSetIterator.prototype.hasNext$0 = HashSetIterator.prototype.hasNext; |
| 1751 HashSetIterator.prototype.next$0 = HashSetIterator.prototype.next; |
| 1752 // ********** Code for HashSetIterator_E ************** |
| 1753 $inherits(HashSetIterator_E, HashSetIterator); |
| 1754 function HashSetIterator_E(set_) { |
| 1755 this._nextValidIndex = (-1); |
| 1756 this._entries = set_._backingMap._keys; |
| 1757 this._advance(); |
| 1758 } |
| 1759 HashSetIterator_E.prototype._advance = function() { |
| 1760 var length = this._entries.get$length(); |
| 1761 var entry; |
| 1762 var deletedKey = const$0000; |
| 1763 do { |
| 1764 if (++this._nextValidIndex >= length) break; |
| 1765 entry = this._entries.$index(this._nextValidIndex); |
| 1766 } |
| 1767 while ((entry == null) || (entry == deletedKey)) |
| 1768 } |
| 1769 // ********** Code for _DeletedKeySentinel ************** |
| 1770 function _DeletedKeySentinel() { |
| 1771 |
| 1772 } |
| 1773 // ********** Code for KeyValuePair ************** |
| 1774 function KeyValuePair(key, value) { |
| 1775 this.value = value; |
| 1776 this.key = key; |
| 1777 } |
| 1778 KeyValuePair.prototype.get$value = function() { return this.value; }; |
| 1779 KeyValuePair.prototype.set$value = function(value) { return this.value = value;
}; |
| 1780 // ********** Code for KeyValuePair_K$V ************** |
| 1781 $inherits(KeyValuePair_K$V, KeyValuePair); |
| 1782 function KeyValuePair_K$V(key, value) { |
| 1783 this.key = key; |
| 1784 this.value = value; |
| 1785 } |
| 1786 // ********** Code for LinkedHashMapImplementation ************** |
| 1787 function LinkedHashMapImplementation() { |
| 1788 this._map = new HashMapImplementation(); |
| 1789 this._list = new DoubleLinkedQueue_KeyValuePair_K$V(); |
| 1790 } |
| 1791 LinkedHashMapImplementation.prototype.is$Map_dart_core_String$Dynamic = function
(){return true}; |
| 1792 LinkedHashMapImplementation.prototype.$setindex = function(key, value) { |
| 1793 if (this._map.containsKey(key)) { |
| 1794 this._map.$index(key).get$element().set$value(value); |
| 1795 } |
| 1796 else { |
| 1797 this._list.addLast(new KeyValuePair_K$V(key, value)); |
| 1798 this._map.$setindex(key, this._list.lastEntry()); |
| 1799 } |
| 1800 } |
| 1801 LinkedHashMapImplementation.prototype.$index = function(key) { |
| 1802 var entry = this._map.$index(key); |
| 1803 if (entry == null) return null; |
| 1804 return entry.get$element().get$value(); |
| 1805 } |
| 1806 LinkedHashMapImplementation.prototype.remove = function(key) { |
| 1807 var entry = this._map.remove$1(key); |
| 1808 if (entry == null) return null; |
| 1809 entry.remove$0(); |
| 1810 return entry.get$element().get$value(); |
| 1811 } |
| 1812 LinkedHashMapImplementation.prototype.putIfAbsent = function(key, ifAbsent) { |
| 1813 var value = this.$index(key); |
| 1814 if ((this.$index(key) == null) && !(this.containsKey(key))) { |
| 1815 value = ifAbsent.call$0(); |
| 1816 this.$setindex(key, value); |
| 1817 } |
| 1818 return value; |
| 1819 } |
| 1820 LinkedHashMapImplementation.prototype.getValues = function() { |
| 1821 var list = new Array(this.get$length()); |
| 1822 var index = (0); |
| 1823 this._list.forEach(function _(entry) { |
| 1824 list.$setindex(index++, entry.value); |
| 1825 } |
| 1826 ); |
| 1827 return list; |
| 1828 } |
| 1829 LinkedHashMapImplementation.prototype.forEach = function(f) { |
| 1830 this._list.forEach(function _(entry) { |
| 1831 f.call$2(entry.key, entry.value); |
| 1832 } |
| 1833 ); |
| 1834 } |
| 1835 LinkedHashMapImplementation.prototype.containsKey = function(key) { |
| 1836 return this._map.containsKey(key); |
| 1837 } |
| 1838 LinkedHashMapImplementation.prototype.get$length = function() { |
| 1839 return this._map.get$length(); |
| 1840 } |
| 1841 LinkedHashMapImplementation.prototype.clear = function() { |
| 1842 this._map.clear(); |
| 1843 this._list.clear(); |
| 1844 } |
| 1845 LinkedHashMapImplementation.prototype.get$clear = function() { |
| 1846 return this.clear.bind(this); |
| 1847 } |
| 1848 LinkedHashMapImplementation.prototype.clear$0 = LinkedHashMapImplementation.prot
otype.clear; |
| 1849 LinkedHashMapImplementation.prototype.forEach$1 = function($0) { |
| 1850 return this.forEach(to$call$2($0)); |
| 1851 }; |
| 1852 LinkedHashMapImplementation.prototype.getValues$0 = LinkedHashMapImplementation.
prototype.getValues; |
| 1853 LinkedHashMapImplementation.prototype.putIfAbsent$2 = function($0, $1) { |
| 1854 return this.putIfAbsent($0, to$call$0($1)); |
| 1855 }; |
| 1856 LinkedHashMapImplementation.prototype.remove$1 = LinkedHashMapImplementation.pro
totype.remove; |
| 1857 // ********** Code for DoubleLinkedQueueEntry ************** |
| 1858 function DoubleLinkedQueueEntry(e) { |
| 1859 this._dart_coreimpl_element = e; |
| 1860 } |
| 1861 DoubleLinkedQueueEntry.prototype._link = function(p, n) { |
| 1862 this._next = n; |
| 1863 this._previous = p; |
| 1864 p._next = this; |
| 1865 n._previous = this; |
| 1866 } |
| 1867 DoubleLinkedQueueEntry.prototype.prepend = function(e) { |
| 1868 new DoubleLinkedQueueEntry_E(e)._link(this._previous, this); |
| 1869 } |
| 1870 DoubleLinkedQueueEntry.prototype.remove = function() { |
| 1871 this._previous._next = this._next; |
| 1872 this._next._previous = this._previous; |
| 1873 this._next = null; |
| 1874 this._previous = null; |
| 1875 return this._dart_coreimpl_element; |
| 1876 } |
| 1877 DoubleLinkedQueueEntry.prototype._asNonSentinelEntry = function() { |
| 1878 return this; |
| 1879 } |
| 1880 DoubleLinkedQueueEntry.prototype.previousEntry = function() { |
| 1881 return this._previous._asNonSentinelEntry(); |
| 1882 } |
| 1883 DoubleLinkedQueueEntry.prototype.nextEntry = function() { |
| 1884 return this._next._asNonSentinelEntry(); |
| 1885 } |
| 1886 DoubleLinkedQueueEntry.prototype.get$element = function() { |
| 1887 return this._dart_coreimpl_element; |
| 1888 } |
| 1889 DoubleLinkedQueueEntry.prototype._asNonSentinelEntry$0 = DoubleLinkedQueueEntry.
prototype._asNonSentinelEntry; |
| 1890 DoubleLinkedQueueEntry.prototype.nextEntry$0 = DoubleLinkedQueueEntry.prototype.
nextEntry; |
| 1891 DoubleLinkedQueueEntry.prototype.remove$0 = DoubleLinkedQueueEntry.prototype.rem
ove; |
| 1892 // ********** Code for DoubleLinkedQueueEntry_E ************** |
| 1893 $inherits(DoubleLinkedQueueEntry_E, DoubleLinkedQueueEntry); |
| 1894 function DoubleLinkedQueueEntry_E(e) { |
| 1895 this._dart_coreimpl_element = e; |
| 1896 } |
| 1897 DoubleLinkedQueueEntry_E.prototype._link = function(p, n) { |
| 1898 this._next = n; |
| 1899 this._previous = p; |
| 1900 p._next = this; |
| 1901 n._previous = this; |
| 1902 } |
| 1903 DoubleLinkedQueueEntry_E.prototype.prepend = function(e) { |
| 1904 new DoubleLinkedQueueEntry_E(e)._link(this._previous, this); |
| 1905 } |
| 1906 DoubleLinkedQueueEntry_E.prototype.remove = function() { |
| 1907 this._previous._next = this._next; |
| 1908 this._next._previous = this._previous; |
| 1909 this._next = null; |
| 1910 this._previous = null; |
| 1911 return this._dart_coreimpl_element; |
| 1912 } |
| 1913 DoubleLinkedQueueEntry_E.prototype._asNonSentinelEntry = function() { |
| 1914 return this; |
| 1915 } |
| 1916 DoubleLinkedQueueEntry_E.prototype.nextEntry = function() { |
| 1917 return this._next._asNonSentinelEntry(); |
| 1918 } |
| 1919 // ********** Code for DoubleLinkedQueueEntry_KeyValuePair_K$V ************** |
| 1920 $inherits(DoubleLinkedQueueEntry_KeyValuePair_K$V, DoubleLinkedQueueEntry); |
| 1921 function DoubleLinkedQueueEntry_KeyValuePair_K$V(e) { |
| 1922 this._dart_coreimpl_element = e; |
| 1923 } |
| 1924 DoubleLinkedQueueEntry_KeyValuePair_K$V.prototype._link = function(p, n) { |
| 1925 this._next = n; |
| 1926 this._previous = p; |
| 1927 p._next = this; |
| 1928 n._previous = this; |
| 1929 } |
| 1930 DoubleLinkedQueueEntry_KeyValuePair_K$V.prototype.prepend = function(e) { |
| 1931 new DoubleLinkedQueueEntry_KeyValuePair_K$V(e)._link(this._previous, this); |
| 1932 } |
| 1933 DoubleLinkedQueueEntry_KeyValuePair_K$V.prototype.remove = function() { |
| 1934 this._previous._next = this._next; |
| 1935 this._next._previous = this._previous; |
| 1936 this._next = null; |
| 1937 this._previous = null; |
| 1938 return this._dart_coreimpl_element; |
| 1939 } |
| 1940 DoubleLinkedQueueEntry_KeyValuePair_K$V.prototype._asNonSentinelEntry = function
() { |
| 1941 return this; |
| 1942 } |
| 1943 DoubleLinkedQueueEntry_KeyValuePair_K$V.prototype.previousEntry = function() { |
| 1944 return this._previous._asNonSentinelEntry$0(); |
| 1945 } |
| 1946 // ********** Code for _DoubleLinkedQueueEntrySentinel ************** |
| 1947 $inherits(_DoubleLinkedQueueEntrySentinel, DoubleLinkedQueueEntry_E); |
| 1948 function _DoubleLinkedQueueEntrySentinel() { |
| 1949 DoubleLinkedQueueEntry_E.call(this, null); |
| 1950 this._link(this, this); |
| 1951 } |
| 1952 _DoubleLinkedQueueEntrySentinel.prototype.remove = function() { |
| 1953 $throw(const$0004); |
| 1954 } |
| 1955 _DoubleLinkedQueueEntrySentinel.prototype._asNonSentinelEntry = function() { |
| 1956 return null; |
| 1957 } |
| 1958 _DoubleLinkedQueueEntrySentinel.prototype.get$element = function() { |
| 1959 $throw(const$0004); |
| 1960 } |
| 1961 _DoubleLinkedQueueEntrySentinel.prototype._asNonSentinelEntry$0 = _DoubleLinkedQ
ueueEntrySentinel.prototype._asNonSentinelEntry; |
| 1962 _DoubleLinkedQueueEntrySentinel.prototype.remove$0 = _DoubleLinkedQueueEntrySent
inel.prototype.remove; |
| 1963 // ********** Code for _DoubleLinkedQueueEntrySentinel_E ************** |
| 1964 $inherits(_DoubleLinkedQueueEntrySentinel_E, _DoubleLinkedQueueEntrySentinel); |
| 1965 function _DoubleLinkedQueueEntrySentinel_E() { |
| 1966 DoubleLinkedQueueEntry_E.call(this, null); |
| 1967 this._link(this, this); |
| 1968 } |
| 1969 // ********** Code for _DoubleLinkedQueueEntrySentinel_KeyValuePair_K$V ********
****** |
| 1970 $inherits(_DoubleLinkedQueueEntrySentinel_KeyValuePair_K$V, _DoubleLinkedQueueEn
trySentinel); |
| 1971 function _DoubleLinkedQueueEntrySentinel_KeyValuePair_K$V() { |
| 1972 DoubleLinkedQueueEntry_KeyValuePair_K$V.call(this, null); |
| 1973 this._link(this, this); |
| 1974 } |
| 1975 // ********** Code for DoubleLinkedQueue ************** |
| 1976 function DoubleLinkedQueue() { |
| 1977 this._sentinel = new _DoubleLinkedQueueEntrySentinel_E(); |
| 1978 } |
| 1979 DoubleLinkedQueue.prototype.addLast = function(value) { |
| 1980 this._sentinel.prepend(value); |
| 1981 } |
| 1982 DoubleLinkedQueue.prototype.add = function(value) { |
| 1983 this.addLast(value); |
| 1984 } |
| 1985 DoubleLinkedQueue.prototype.addAll = function(collection) { |
| 1986 for (var $$i = collection.iterator$0(); $$i.hasNext$0(); ) { |
| 1987 var e = $$i.next$0(); |
| 1988 this.add(e); |
| 1989 } |
| 1990 } |
| 1991 DoubleLinkedQueue.prototype.removeLast = function() { |
| 1992 return this._sentinel._previous.remove(); |
| 1993 } |
| 1994 DoubleLinkedQueue.prototype.removeFirst = function() { |
| 1995 return this._sentinel._next.remove(); |
| 1996 } |
| 1997 DoubleLinkedQueue.prototype.first = function() { |
| 1998 return this._sentinel._next.get$element(); |
| 1999 } |
| 2000 DoubleLinkedQueue.prototype.get$first = function() { |
| 2001 return this.first.bind(this); |
| 2002 } |
| 2003 DoubleLinkedQueue.prototype.last = function() { |
| 2004 return this._sentinel._previous.get$element(); |
| 2005 } |
| 2006 DoubleLinkedQueue.prototype.firstEntry = function() { |
| 2007 return this._sentinel.nextEntry(); |
| 2008 } |
| 2009 DoubleLinkedQueue.prototype.get$length = function() { |
| 2010 var counter = (0); |
| 2011 this.forEach(function _(element) { |
| 2012 counter++; |
| 2013 } |
| 2014 ); |
| 2015 return counter; |
| 2016 } |
| 2017 DoubleLinkedQueue.prototype.isEmpty = function() { |
| 2018 return (this._sentinel._next == this._sentinel); |
| 2019 } |
| 2020 DoubleLinkedQueue.prototype.clear = function() { |
| 2021 this._sentinel._next = this._sentinel; |
| 2022 this._sentinel._previous = this._sentinel; |
| 2023 } |
| 2024 DoubleLinkedQueue.prototype.get$clear = function() { |
| 2025 return this.clear.bind(this); |
| 2026 } |
| 2027 DoubleLinkedQueue.prototype.forEach = function(f) { |
| 2028 var entry = this._sentinel._next; |
| 2029 while (entry != this._sentinel) { |
| 2030 var nextEntry = entry._next; |
| 2031 f.call$1(entry._dart_coreimpl_element); |
| 2032 entry = nextEntry; |
| 2033 } |
| 2034 } |
| 2035 DoubleLinkedQueue.prototype.some = function(f) { |
| 2036 var entry = this._sentinel._next; |
| 2037 while (entry != this._sentinel) { |
| 2038 var nextEntry = entry._next; |
| 2039 if (f.call$1(entry._dart_coreimpl_element)) return true; |
| 2040 entry = nextEntry; |
| 2041 } |
| 2042 return false; |
| 2043 } |
| 2044 DoubleLinkedQueue.prototype.filter = function(f) { |
| 2045 var other = new DoubleLinkedQueue(); |
| 2046 var entry = this._sentinel._next; |
| 2047 while (entry != this._sentinel) { |
| 2048 var nextEntry = entry._next; |
| 2049 if (f.call$1(entry._dart_coreimpl_element)) other.addLast(entry._dart_coreim
pl_element); |
| 2050 entry = nextEntry; |
| 2051 } |
| 2052 return other; |
| 2053 } |
| 2054 DoubleLinkedQueue.prototype.iterator = function() { |
| 2055 return new _DoubleLinkedQueueIterator_E(this._sentinel); |
| 2056 } |
| 2057 DoubleLinkedQueue.prototype.add$1 = DoubleLinkedQueue.prototype.add; |
| 2058 DoubleLinkedQueue.prototype.addAll$1 = DoubleLinkedQueue.prototype.addAll; |
| 2059 DoubleLinkedQueue.prototype.clear$0 = DoubleLinkedQueue.prototype.clear; |
| 2060 DoubleLinkedQueue.prototype.filter$1 = function($0) { |
| 2061 return this.filter(to$call$1($0)); |
| 2062 }; |
| 2063 DoubleLinkedQueue.prototype.firstEntry$0 = DoubleLinkedQueue.prototype.firstEntr
y; |
| 2064 DoubleLinkedQueue.prototype.forEach$1 = function($0) { |
| 2065 return this.forEach(to$call$1($0)); |
| 2066 }; |
| 2067 DoubleLinkedQueue.prototype.iterator$0 = DoubleLinkedQueue.prototype.iterator; |
| 2068 DoubleLinkedQueue.prototype.last$0 = DoubleLinkedQueue.prototype.last; |
| 2069 DoubleLinkedQueue.prototype.removeLast$0 = DoubleLinkedQueue.prototype.removeLas
t; |
| 2070 // ********** Code for DoubleLinkedQueue_E ************** |
| 2071 $inherits(DoubleLinkedQueue_E, DoubleLinkedQueue); |
| 2072 function DoubleLinkedQueue_E() {} |
| 2073 // ********** Code for DoubleLinkedQueue_KeyValuePair_K$V ************** |
| 2074 $inherits(DoubleLinkedQueue_KeyValuePair_K$V, DoubleLinkedQueue); |
| 2075 function DoubleLinkedQueue_KeyValuePair_K$V() { |
| 2076 this._sentinel = new _DoubleLinkedQueueEntrySentinel_KeyValuePair_K$V(); |
| 2077 } |
| 2078 DoubleLinkedQueue_KeyValuePair_K$V.prototype.addLast = function(value) { |
| 2079 this._sentinel.prepend(value); |
| 2080 } |
| 2081 DoubleLinkedQueue_KeyValuePair_K$V.prototype.lastEntry = function() { |
| 2082 return this._sentinel.previousEntry(); |
| 2083 } |
| 2084 DoubleLinkedQueue_KeyValuePair_K$V.prototype.clear = function() { |
| 2085 this._sentinel._next = this._sentinel; |
| 2086 this._sentinel._previous = this._sentinel; |
| 2087 } |
| 2088 DoubleLinkedQueue_KeyValuePair_K$V.prototype.forEach = function(f) { |
| 2089 var entry = this._sentinel._next; |
| 2090 while (entry != this._sentinel) { |
| 2091 var nextEntry = entry._next; |
| 2092 f.call$1(entry._dart_coreimpl_element); |
| 2093 entry = nextEntry; |
| 2094 } |
| 2095 } |
| 2096 // ********** Code for DoubleLinkedQueue__Move ************** |
| 2097 $inherits(DoubleLinkedQueue__Move, DoubleLinkedQueue); |
| 2098 function DoubleLinkedQueue__Move() {} |
| 2099 // ********** Code for DoubleLinkedQueue_num ************** |
| 2100 $inherits(DoubleLinkedQueue_num, DoubleLinkedQueue); |
| 2101 function DoubleLinkedQueue_num() {} |
| 2102 // ********** Code for _DoubleLinkedQueueIterator ************** |
| 2103 function _DoubleLinkedQueueIterator(_sentinel) { |
| 2104 this._sentinel = _sentinel; |
| 2105 this._currentEntry = this._sentinel; |
| 2106 } |
| 2107 _DoubleLinkedQueueIterator.prototype.hasNext = function() { |
| 2108 return this._currentEntry._next != this._sentinel; |
| 2109 } |
| 2110 _DoubleLinkedQueueIterator.prototype.next = function() { |
| 2111 if (!this.hasNext()) { |
| 2112 $throw(const$0001); |
| 2113 } |
| 2114 this._currentEntry = this._currentEntry._next; |
| 2115 return this._currentEntry.get$element(); |
| 2116 } |
| 2117 _DoubleLinkedQueueIterator.prototype.hasNext$0 = _DoubleLinkedQueueIterator.prot
otype.hasNext; |
| 2118 _DoubleLinkedQueueIterator.prototype.next$0 = _DoubleLinkedQueueIterator.prototy
pe.next; |
| 2119 // ********** Code for _DoubleLinkedQueueIterator_E ************** |
| 2120 $inherits(_DoubleLinkedQueueIterator_E, _DoubleLinkedQueueIterator); |
| 2121 function _DoubleLinkedQueueIterator_E(_sentinel) { |
| 2122 this._sentinel = _sentinel; |
| 2123 this._currentEntry = this._sentinel; |
| 2124 } |
| 2125 // ********** Code for StringBufferImpl ************** |
| 2126 function StringBufferImpl(content) { |
| 2127 this.clear(); |
| 2128 this.add(content); |
| 2129 } |
| 2130 StringBufferImpl.prototype.get$length = function() { |
| 2131 return this._length; |
| 2132 } |
| 2133 StringBufferImpl.prototype.add = function(obj) { |
| 2134 var str = obj.toString$0(); |
| 2135 if (str == null || str.isEmpty()) return this; |
| 2136 this._buffer.add$1(str); |
| 2137 this._length = this._length + str.length; |
| 2138 return this; |
| 2139 } |
| 2140 StringBufferImpl.prototype.addAll = function(objects) { |
| 2141 for (var $$i = objects.iterator$0(); $$i.hasNext$0(); ) { |
| 2142 var obj = $$i.next$0(); |
| 2143 this.add(obj); |
| 2144 } |
| 2145 return this; |
| 2146 } |
| 2147 StringBufferImpl.prototype.clear = function() { |
| 2148 this._buffer = new Array(); |
| 2149 this._length = (0); |
| 2150 return this; |
| 2151 } |
| 2152 StringBufferImpl.prototype.get$clear = function() { |
| 2153 return this.clear.bind(this); |
| 2154 } |
| 2155 StringBufferImpl.prototype.toString = function() { |
| 2156 if (this._buffer.get$length() == (0)) return ""; |
| 2157 if (this._buffer.get$length() == (1)) return this._buffer.$index((0)); |
| 2158 var result = StringBase.concatAll(this._buffer); |
| 2159 this._buffer.clear$0(); |
| 2160 this._buffer.add$1(result); |
| 2161 return result; |
| 2162 } |
| 2163 StringBufferImpl.prototype.add$1 = StringBufferImpl.prototype.add; |
| 2164 StringBufferImpl.prototype.addAll$1 = StringBufferImpl.prototype.addAll; |
| 2165 StringBufferImpl.prototype.clear$0 = StringBufferImpl.prototype.clear; |
| 2166 StringBufferImpl.prototype.toString$0 = StringBufferImpl.prototype.toString; |
| 2167 // ********** Code for StringBase ************** |
| 2168 function StringBase() {} |
| 2169 StringBase.createFromCharCodes = function(charCodes) { |
| 2170 if (Object.getPrototypeOf(charCodes) !== Array.prototype) { |
| 2171 charCodes = new ListFactory.ListFactory$from$factory(charCodes); |
| 2172 } |
| 2173 return String.fromCharCode.apply(null, charCodes); |
| 2174 } |
| 2175 StringBase.join = function(strings, separator) { |
| 2176 if (strings.get$length() == (0)) return ""; |
| 2177 var s = strings.$index((0)); |
| 2178 for (var i = (1); |
| 2179 i < strings.get$length(); i++) { |
| 2180 s = s + separator + strings.$index(i); |
| 2181 } |
| 2182 return s; |
| 2183 } |
| 2184 StringBase.concatAll = function(strings) { |
| 2185 return StringBase.join(strings, ""); |
| 2186 } |
| 2187 // ********** Code for StringImplementation ************** |
| 2188 StringImplementation = String; |
| 2189 StringImplementation.prototype.get$length = function() { return this.length; }; |
| 2190 StringImplementation.prototype.endsWith = function(other) { |
| 2191 'use strict'; |
| 2192 if (other.length > this.length) return false; |
| 2193 return other == this.substring(this.length - other.length); |
| 2194 } |
| 2195 StringImplementation.prototype.startsWith = function(other) { |
| 2196 'use strict'; |
| 2197 if (other.length > this.length) return false; |
| 2198 return other == this.substring(0, other.length); |
| 2199 } |
| 2200 StringImplementation.prototype.isEmpty = function() { |
| 2201 return this.length == (0); |
| 2202 } |
| 2203 StringImplementation.prototype.contains = function(pattern, startIndex) { |
| 2204 'use strict'; return this.indexOf(pattern, startIndex) >= 0; |
| 2205 } |
| 2206 StringImplementation.prototype._replaceFirst = function(from, to) { |
| 2207 'use strict';return this.replace(from, to); |
| 2208 } |
| 2209 StringImplementation.prototype._replaceRegExp = function(from, to) { |
| 2210 'use strict';return this.replace(from.re, to); |
| 2211 } |
| 2212 StringImplementation.prototype.replaceFirst = function(from, to) { |
| 2213 if ((typeof(from) == 'string')) return this._replaceFirst(from, to); |
| 2214 if (!!(from && from.is$RegExp())) return this._replaceRegExp(from, to); |
| 2215 var $$list = from.allMatches(this); |
| 2216 for (var $$i = $$list.iterator$0(); $$i.hasNext$0(); ) { |
| 2217 var match = $$i.next$0(); |
| 2218 return this.substring((0), match.start$0()) + to + this.substring(match.end$
0()); |
| 2219 } |
| 2220 } |
| 2221 StringImplementation.prototype._replaceAll = function(from, to) { |
| 2222 'use strict'; |
| 2223 from = new RegExp(from.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), 'g'); |
| 2224 to = to.replace(/\$/g, '$$$$'); // Escape sequences are fun! |
| 2225 return this.replace(from, to); |
| 2226 } |
| 2227 StringImplementation.prototype.replaceAll = function(from, to) { |
| 2228 if ((typeof(from) == 'string')) return this._replaceAll(from, to); |
| 2229 if (!!(from && from.is$RegExp())) return this._replaceRegExp(from.get$dynamic(
).get$_global(), to); |
| 2230 var buffer = new StringBufferImpl(""); |
| 2231 var lastMatchEnd = (0); |
| 2232 var $$list = from.allMatches(this); |
| 2233 for (var $$i = $$list.iterator$0(); $$i.hasNext$0(); ) { |
| 2234 var match = $$i.next$0(); |
| 2235 buffer.add$1(this.substring(lastMatchEnd, match.start$0())); |
| 2236 buffer.add$1(to); |
| 2237 lastMatchEnd = match.end$0(); |
| 2238 } |
| 2239 buffer.add$1(this.substring(lastMatchEnd)); |
| 2240 } |
| 2241 StringImplementation.prototype.hashCode = function() { |
| 2242 'use strict'; |
| 2243 var hash = 0; |
| 2244 for (var i = 0; i < this.length; i++) { |
| 2245 hash = 0x1fffffff & (hash + this.charCodeAt(i)); |
| 2246 hash = 0x1fffffff & (hash + ((0x0007ffff & hash) << 10)); |
| 2247 hash ^= hash >> 6; |
| 2248 } |
| 2249 |
| 2250 hash = 0x1fffffff & (hash + ((0x03ffffff & hash) << 3)); |
| 2251 hash ^= hash >> 11; |
| 2252 return 0x1fffffff & (hash + ((0x00003fff & hash) << 15)); |
| 2253 } |
| 2254 StringImplementation.prototype.contains$1 = StringImplementation.prototype.conta
ins; |
| 2255 StringImplementation.prototype.hashCode$0 = StringImplementation.prototype.hashC
ode; |
| 2256 StringImplementation.prototype.toLowerCase$0 = StringImplementation.prototype.to
LowerCase; |
| 2257 // ********** Code for Collections ************** |
| 2258 function Collections() {} |
| 2259 Collections.forEach = function(iterable, f) { |
| 2260 for (var $$i = iterable.iterator$0(); $$i.hasNext$0(); ) { |
| 2261 var e = $$i.next$0(); |
| 2262 f.call$1(e); |
| 2263 } |
| 2264 } |
| 2265 Collections.some = function(iterable, f) { |
| 2266 for (var $$i = iterable.iterator$0(); $$i.hasNext$0(); ) { |
| 2267 var e = $$i.next$0(); |
| 2268 if (f.call$1(e)) return true; |
| 2269 } |
| 2270 return false; |
| 2271 } |
| 2272 Collections.filter = function(source, destination, f) { |
| 2273 for (var $$i = source.iterator$0(); $$i.hasNext$0(); ) { |
| 2274 var e = $$i.next$0(); |
| 2275 if (f.call$1(e)) destination.add$1(e); |
| 2276 } |
| 2277 return destination; |
| 2278 } |
| 2279 // ********** Code for DateImplementation ************** |
| 2280 function DateImplementation() {} |
| 2281 DateImplementation.now$ctor = function() { |
| 2282 this.timeZone = new TimeZoneImplementation.local$ctor(); |
| 2283 this.value = DateImplementation._now(); |
| 2284 this._asJs(); |
| 2285 } |
| 2286 DateImplementation.now$ctor.prototype = DateImplementation.prototype; |
| 2287 DateImplementation.withTimeZone$ctor = function(years, month, day, hours, minute
s, seconds, milliseconds, timeZone) { |
| 2288 this.timeZone = timeZone; |
| 2289 this.value = DateImplementation._valueFromDecomposed(years, month, day, hours,
minutes, seconds, milliseconds, timeZone.isUtc); |
| 2290 this._asJs(); |
| 2291 } |
| 2292 DateImplementation.withTimeZone$ctor.prototype = DateImplementation.prototype; |
| 2293 DateImplementation.fromEpoch$ctor = function(value, timeZone) { |
| 2294 this.timeZone = timeZone; |
| 2295 this.value = value; |
| 2296 } |
| 2297 DateImplementation.fromEpoch$ctor.prototype = DateImplementation.prototype; |
| 2298 DateImplementation.DateImplementation$factory = function(years, month, day, hour
s, minutes, seconds, milliseconds) { |
| 2299 return new DateImplementation.withTimeZone$ctor(years, month, day, hours, minu
tes, seconds, milliseconds, new TimeZoneImplementation.local$ctor()); |
| 2300 } |
| 2301 DateImplementation.prototype.get$value = function() { return this.value; }; |
| 2302 DateImplementation.prototype.get$timeZone = function() { return this.timeZone; }
; |
| 2303 DateImplementation.prototype.$eq = function(other) { |
| 2304 if (!((other instanceof DateImplementation))) return false; |
| 2305 return (this.value == other.get$value()) && ($eq(this.timeZone, other.get$time
Zone())); |
| 2306 } |
| 2307 DateImplementation.prototype.get$year = function() { |
| 2308 return this.isUtc ? this._asJs().getUTCFullYear() : |
| 2309 this._asJs().getFullYear(); |
| 2310 } |
| 2311 DateImplementation.prototype.get$month = function() { |
| 2312 return this.isUtc ? this._asJs().getMonth() + 1 : |
| 2313 this._asJs().getMonth() + 1; |
| 2314 } |
| 2315 DateImplementation.prototype.get$day = function() { |
| 2316 return this.isUtc ? this._asJs().getUTCDate() : this._asJs().getDate() |
| 2317 } |
| 2318 DateImplementation.prototype.get$hours = function() { |
| 2319 return this.isUtc ? this._asJs().getUTCHours() : this._asJs().getHours() |
| 2320 } |
| 2321 DateImplementation.prototype.get$minutes = function() { |
| 2322 return this.isUtc ? this._asJs().getUTCMinutes() : this._asJs().getMinutes() |
| 2323 } |
| 2324 DateImplementation.prototype.get$seconds = function() { |
| 2325 return this.isUtc ? this._asJs().getUTCSeconds() : this._asJs().getSeconds() |
| 2326 } |
| 2327 DateImplementation.prototype.get$milliseconds = function() { |
| 2328 return this.isUtc ? this._asJs().getUTCMilliseconds() : |
| 2329 this._asJs().getMilliseconds(); |
| 2330 } |
| 2331 DateImplementation.prototype.isUtc = function() { |
| 2332 return this.timeZone.isUtc; |
| 2333 } |
| 2334 DateImplementation.prototype.get$isUtc = function() { |
| 2335 return this.isUtc.bind(this); |
| 2336 } |
| 2337 DateImplementation.prototype.toString = function() { |
| 2338 function threeDigits(n) { |
| 2339 if (n >= (100)) return ("" + n); |
| 2340 if (n > (10)) return ("0" + n); |
| 2341 return ("00" + n); |
| 2342 } |
| 2343 function twoDigits(n) { |
| 2344 if (n >= (10)) return ("" + n); |
| 2345 return ("0" + n); |
| 2346 } |
| 2347 var m = twoDigits.call$1(this.get$month()); |
| 2348 var d = twoDigits.call$1(this.get$day()); |
| 2349 var h = twoDigits.call$1(this.get$hours()); |
| 2350 var min = twoDigits.call$1(this.get$minutes()); |
| 2351 var sec = twoDigits.call$1(this.get$seconds()); |
| 2352 var ms = threeDigits.call$1(this.get$milliseconds()); |
| 2353 if (this.timeZone.isUtc) { |
| 2354 return ("" + this.get$year() + "-" + m + "-" + d + " " + h + ":" + min + ":"
+ sec + "." + ms + "Z"); |
| 2355 } |
| 2356 else { |
| 2357 return ("" + this.get$year() + "-" + m + "-" + d + " " + h + ":" + min + ":"
+ sec + "." + ms); |
| 2358 } |
| 2359 } |
| 2360 DateImplementation.prototype.add = function(duration) { |
| 2361 return new DateImplementation.fromEpoch$ctor(this.value + duration.inMilliseco
nds, this.timeZone); |
| 2362 } |
| 2363 DateImplementation.prototype.difference = function(other) { |
| 2364 return new DurationImplementation((0), (0), (0), (0), this.value - other.value
); |
| 2365 } |
| 2366 DateImplementation._valueFromDecomposed = function(years, month, day, hours, min
utes, seconds, milliseconds, isUtc) { |
| 2367 var jsMonth = month - 1; |
| 2368 var value = isUtc ? |
| 2369 Date.UTC(years, jsMonth, day, |
| 2370 hours, minutes, seconds, milliseconds) : |
| 2371 new Date(years, jsMonth, day, |
| 2372 hours, minutes, seconds, milliseconds).valueOf(); |
| 2373 if (isNaN(value)) throw Error("Invalid Date"); |
| 2374 return value; |
| 2375 } |
| 2376 DateImplementation._now = function() { |
| 2377 return new Date().valueOf(); |
| 2378 } |
| 2379 DateImplementation.prototype._asJs = function() { |
| 2380 if (!this.date) { |
| 2381 this.date = new Date(this.value); |
| 2382 } |
| 2383 return this.date; |
| 2384 } |
| 2385 DateImplementation.prototype.add$1 = DateImplementation.prototype.add; |
| 2386 DateImplementation.prototype.difference$1 = DateImplementation.prototype.differe
nce; |
| 2387 DateImplementation.prototype.toString$0 = DateImplementation.prototype.toString; |
| 2388 // ********** Code for TimeZoneImplementation ************** |
| 2389 function TimeZoneImplementation() {} |
| 2390 TimeZoneImplementation.utc$ctor = function() { |
| 2391 this.isUtc = true; |
| 2392 } |
| 2393 TimeZoneImplementation.utc$ctor.prototype = TimeZoneImplementation.prototype; |
| 2394 TimeZoneImplementation.local$ctor = function() { |
| 2395 this.isUtc = false; |
| 2396 } |
| 2397 TimeZoneImplementation.local$ctor.prototype = TimeZoneImplementation.prototype; |
| 2398 TimeZoneImplementation.prototype.$eq = function(other) { |
| 2399 if (!((other instanceof TimeZoneImplementation))) return false; |
| 2400 return $eq(this.isUtc, other.get$isUtc()); |
| 2401 } |
| 2402 TimeZoneImplementation.prototype.toString = function() { |
| 2403 if (this.isUtc) return "TimeZone (UTC)"; |
| 2404 return "TimeZone (Local)"; |
| 2405 } |
| 2406 TimeZoneImplementation.prototype.get$isUtc = function() { return this.isUtc; }; |
| 2407 TimeZoneImplementation.prototype.toString$0 = TimeZoneImplementation.prototype.t
oString; |
| 2408 // ********** Code for _Worker ************** |
| 2409 function $dynamic(name) { |
| 2410 var f = Object.prototype[name]; |
| 2411 if (f && f.methods) return f.methods; |
| 2412 |
| 2413 var methods = {}; |
| 2414 if (f) methods.Object = f; |
| 2415 function $dynamicBind() { |
| 2416 // Find the target method |
| 2417 var obj = this; |
| 2418 var tag = obj.$typeNameOf(); |
| 2419 var method = methods[tag]; |
| 2420 if (!method) { |
| 2421 var table = $dynamicMetadata; |
| 2422 for (var i = 0; i < table.length; i++) { |
| 2423 var entry = table[i]; |
| 2424 if (entry.map.hasOwnProperty(tag)) { |
| 2425 method = methods[entry.tag]; |
| 2426 if (method) break; |
| 2427 } |
| 2428 } |
| 2429 } |
| 2430 method = method || methods.Object; |
| 2431 var proto = Object.getPrototypeOf(obj); |
| 2432 if (!proto.hasOwnProperty(name)) { |
| 2433 Object.defineProperty(proto, name, |
| 2434 { value: method, enumerable: false, writable: true, |
| 2435 configurable: true }); |
| 2436 } |
| 2437 |
| 2438 return method.apply(this, Array.prototype.slice.call(arguments)); |
| 2439 }; |
| 2440 $dynamicBind.methods = methods; |
| 2441 Object.defineProperty(Object.prototype, name, { value: $dynamicBind, |
| 2442 enumerable: false, writable: true, configurable: true}); |
| 2443 return methods; |
| 2444 } |
| 2445 if (typeof $dynamicMetadata == 'undefined') $dynamicMetadata = []; |
| 2446 |
| 2447 function $dynamicSetMetadata(inputTable) { |
| 2448 // TODO: Deal with light isolates. |
| 2449 var table = []; |
| 2450 for (var i = 0; i < inputTable.length; i++) { |
| 2451 var tag = inputTable[i][0]; |
| 2452 var tags = inputTable[i][1]; |
| 2453 var map = {}; |
| 2454 var tagNames = tags.split('|'); |
| 2455 for (var j = 0; j < tagNames.length; j++) { |
| 2456 map[tagNames[j]] = true; |
| 2457 } |
| 2458 table.push({tag: tag, tags: tags, map: map}); |
| 2459 } |
| 2460 $dynamicMetadata = table; |
| 2461 } |
| 2462 $dynamic("get$id").Worker = function() { |
| 2463 return this.id; |
| 2464 } |
| 2465 $dynamic("postMessage").Worker = function(msg) { |
| 2466 return this.postMessage(msg); |
| 2467 } |
| 2468 $dynamic("postMessage$1").Worker = function($0) { |
| 2469 return this.postMessage($0); |
| 2470 }; |
| 2471 // ********** Code for _ArgumentMismatchException ************** |
| 2472 $inherits(_ArgumentMismatchException, ClosureArgumentMismatchException); |
| 2473 function _ArgumentMismatchException(_message) { |
| 2474 this._dart_coreimpl_message = _message; |
| 2475 ClosureArgumentMismatchException.call(this); |
| 2476 } |
| 2477 _ArgumentMismatchException.prototype.toString = function() { |
| 2478 return ("Closure argument mismatch: " + this._dart_coreimpl_message); |
| 2479 } |
| 2480 _ArgumentMismatchException.prototype.toString$0 = _ArgumentMismatchException.pro
totype.toString; |
| 2481 // ********** Code for _FunctionImplementation ************** |
| 2482 _FunctionImplementation = Function; |
| 2483 _FunctionImplementation.prototype._genStub = function(argsLength, names) { |
| 2484 // Fast path #1: if no named arguments and arg count matches |
| 2485 if (this.length == argsLength && !names) { |
| 2486 return this; |
| 2487 } |
| 2488 |
| 2489 var paramsNamed = this.$optional ? (this.$optional.length / 2) : 0; |
| 2490 var paramsBare = this.length - paramsNamed; |
| 2491 var argsNamed = names ? names.length : 0; |
| 2492 var argsBare = argsLength - argsNamed; |
| 2493 |
| 2494 // Check we got the right number of arguments |
| 2495 if (argsBare < paramsBare || argsLength > this.length || |
| 2496 argsNamed > paramsNamed) { |
| 2497 return function() { |
| 2498 $throw(new _ArgumentMismatchException( |
| 2499 'Wrong number of arguments to function. Expected ' + paramsBare + |
| 2500 ' positional arguments and at most ' + paramsNamed + |
| 2501 ' named arguments, but got ' + argsBare + |
| 2502 ' positional arguments and ' + argsNamed + ' named arguments.')); |
| 2503 }; |
| 2504 } |
| 2505 |
| 2506 // First, fill in all of the default values |
| 2507 var p = new Array(paramsBare); |
| 2508 if (paramsNamed) { |
| 2509 p = p.concat(this.$optional.slice(paramsNamed)); |
| 2510 } |
| 2511 // Fill in positional args |
| 2512 var a = new Array(argsLength); |
| 2513 for (var i = 0; i < argsBare; i++) { |
| 2514 p[i] = a[i] = '$' + i; |
| 2515 } |
| 2516 // Then overwrite with supplied values for optional args |
| 2517 var lastParameterIndex; |
| 2518 var namesInOrder = true; |
| 2519 for (var i = 0; i < argsNamed; i++) { |
| 2520 var name = names[i]; |
| 2521 a[i + argsBare] = name; |
| 2522 var j = this.$optional.indexOf(name); |
| 2523 if (j < 0 || j >= paramsNamed) { |
| 2524 return function() { |
| 2525 $throw(new _ArgumentMismatchException( |
| 2526 'Named argument "' + name + '" was not expected by function.' + |
| 2527 ' Did you forget to mark the function parameter [optional]?')); |
| 2528 }; |
| 2529 } else if (lastParameterIndex && lastParameterIndex > j) { |
| 2530 namesInOrder = false; |
| 2531 } |
| 2532 p[j + paramsBare] = name; |
| 2533 lastParameterIndex = j; |
| 2534 } |
| 2535 |
| 2536 if (this.length == argsLength && namesInOrder) { |
| 2537 // Fast path #2: named arguments, but they're in order and all supplied. |
| 2538 return this; |
| 2539 } |
| 2540 |
| 2541 // Note: using Function instead of 'eval' to get a clean scope. |
| 2542 // TODO(jmesserly): evaluate the performance of these stubs. |
| 2543 var f = 'function(' + a.join(',') + '){return $f(' + p.join(',') + ');}'; |
| 2544 return new Function('$f', 'return ' + f + '').call(null, this); |
| 2545 |
| 2546 } |
| 2547 // ********** Code for top level ************** |
| 2548 function _constList(other) { |
| 2549 other.__proto__ = ImmutableList.prototype; |
| 2550 return other; |
| 2551 } |
| 2552 function _map(itemsAndKeys) { |
| 2553 var ret = new LinkedHashMapImplementation(); |
| 2554 for (var i = (0); |
| 2555 i < itemsAndKeys.get$length(); ) { |
| 2556 ret.$setindex(itemsAndKeys.$index(i++), itemsAndKeys.$index(i++)); |
| 2557 } |
| 2558 return ret; |
| 2559 } |
| 2560 function _constMap(itemsAndKeys) { |
| 2561 return new ImmutableMap(itemsAndKeys); |
| 2562 } |
| 2563 // ********** Library json ************** |
| 2564 // ********** Code for _JSON ************** |
| 2565 _JSON = JSON; |
| 2566 // ********** Code for json_JSON ************** |
| 2567 function json_JSON() {} |
| 2568 json_JSON.parse = function(str) { |
| 2569 return _JSON.parse(str, (function (_, obj) { |
| 2570 var keys = _jsKeys(obj); |
| 2571 if (keys == null) return obj; |
| 2572 var map = new HashMapImplementation(); |
| 2573 for (var $$i = keys.iterator$0(); $$i.hasNext$0(); ) { |
| 2574 var key = $$i.next$0(); |
| 2575 map.$setindex(key, _getValue(obj, key)); |
| 2576 } |
| 2577 return map; |
| 2578 }) |
| 2579 ); |
| 2580 } |
| 2581 json_JSON.stringify = function(value) { |
| 2582 return _JSON.stringify(value, (function (_, obj) { |
| 2583 if (_directToJson(obj)) return obj; |
| 2584 if (!!(obj && obj.is$Map_dart_core_String$Dynamic())) { |
| 2585 var map = obj; |
| 2586 obj = new Object(); |
| 2587 map.forEach((function (k, v) { |
| 2588 return _setValue(obj, k, v); |
| 2589 }) |
| 2590 ); |
| 2591 return obj; |
| 2592 } |
| 2593 $throw(new IllegalArgumentException(("cannot convert \"" + value + "\" to JS
ON"))); |
| 2594 }) |
| 2595 ); |
| 2596 } |
| 2597 // ********** Code for top level ************** |
| 2598 function _getValue(obj, key) { |
| 2599 return obj[key] |
| 2600 } |
| 2601 function _setValue(obj, key, value) { |
| 2602 obj[key] = value |
| 2603 } |
| 2604 function _directToJson(obj) { |
| 2605 return typeof obj != 'object' || obj == null || obj instanceof Array |
| 2606 } |
| 2607 function _jsKeys(obj) { |
| 2608 if (obj != null && typeof obj == 'object' && !(obj instanceof Array)) { |
| 2609 return Object.keys(obj); |
| 2610 } |
| 2611 return null; |
| 2612 } |
| 2613 // ********** Library dom ************** |
| 2614 // ********** Code for Window ************** |
| 2615 // ********** Code for AbstractWorker ************** |
| 2616 $dynamic("get$dartObjectLocalStorage").AbstractWorker = function() { return this
.dartObjectLocalStorage; }; |
| 2617 $dynamic("set$dartObjectLocalStorage").AbstractWorker = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 2618 $dynamic("addEventListener$3").AbstractWorker = function($0, $1, $2) { |
| 2619 return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 2620 }; |
| 2621 $dynamic("dispatchEvent$1").AbstractWorker = function($0) { |
| 2622 return this.dispatchEvent($0); |
| 2623 }; |
| 2624 $dynamic("removeEventListener$3").AbstractWorker = function($0, $1, $2) { |
| 2625 return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 2626 }; |
| 2627 // ********** Code for ArrayBuffer ************** |
| 2628 $dynamic("get$dartObjectLocalStorage").ArrayBuffer = function() { return this.da
rtObjectLocalStorage; }; |
| 2629 $dynamic("set$dartObjectLocalStorage").ArrayBuffer = function(value) { return th
is.dartObjectLocalStorage = value; }; |
| 2630 // ********** Code for ArrayBufferView ************** |
| 2631 $dynamic("get$dartObjectLocalStorage").ArrayBufferView = function() { return thi
s.dartObjectLocalStorage; }; |
| 2632 $dynamic("set$dartObjectLocalStorage").ArrayBufferView = function(value) { retur
n this.dartObjectLocalStorage = value; }; |
| 2633 // ********** Code for dom_Attr ************** |
| 2634 $dynamic("get$name").Attr = function() { return this.name; }; |
| 2635 $dynamic("set$name").Attr = function(value) { return this.name = value; }; |
| 2636 $dynamic("get$value").Attr = function() { return this.value; }; |
| 2637 $dynamic("set$value").Attr = function(value) { return this.value = value; }; |
| 2638 // ********** Code for AudioBuffer ************** |
| 2639 $dynamic("get$length").AudioBuffer = function() { return this.length; }; |
| 2640 $dynamic("set$length").AudioBuffer = function(value) { return this.length = valu
e; }; |
| 2641 $dynamic("get$dartObjectLocalStorage").AudioBuffer = function() { return this.da
rtObjectLocalStorage; }; |
| 2642 $dynamic("set$dartObjectLocalStorage").AudioBuffer = function(value) { return th
is.dartObjectLocalStorage = value; }; |
| 2643 // ********** Code for AudioBufferSourceNode ************** |
| 2644 // ********** Code for AudioChannelMerger ************** |
| 2645 // ********** Code for AudioChannelSplitter ************** |
| 2646 // ********** Code for AudioContext ************** |
| 2647 $dynamic("get$dartObjectLocalStorage").AudioContext = function() { return this.d
artObjectLocalStorage; }; |
| 2648 $dynamic("set$dartObjectLocalStorage").AudioContext = function(value) { return t
his.dartObjectLocalStorage = value; }; |
| 2649 // ********** Code for AudioDestinationNode ************** |
| 2650 // ********** Code for AudioGain ************** |
| 2651 // ********** Code for AudioGainNode ************** |
| 2652 // ********** Code for AudioListener ************** |
| 2653 $dynamic("get$dartObjectLocalStorage").AudioListener = function() { return this.
dartObjectLocalStorage; }; |
| 2654 $dynamic("set$dartObjectLocalStorage").AudioListener = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 2655 // ********** Code for AudioNode ************** |
| 2656 $dynamic("get$dartObjectLocalStorage").AudioNode = function() { return this.dart
ObjectLocalStorage; }; |
| 2657 $dynamic("set$dartObjectLocalStorage").AudioNode = function(value) { return this
.dartObjectLocalStorage = value; }; |
| 2658 // ********** Code for AudioPannerNode ************** |
| 2659 // ********** Code for AudioParam ************** |
| 2660 $dynamic("get$name").AudioParam = function() { return this.name; }; |
| 2661 $dynamic("set$name").AudioParam = function(value) { return this.name = value; }; |
| 2662 $dynamic("get$value").AudioParam = function() { return this.value; }; |
| 2663 $dynamic("set$value").AudioParam = function(value) { return this.value = value;
}; |
| 2664 $dynamic("get$dartObjectLocalStorage").AudioParam = function() { return this.dar
tObjectLocalStorage; }; |
| 2665 $dynamic("set$dartObjectLocalStorage").AudioParam = function(value) { return thi
s.dartObjectLocalStorage = value; }; |
| 2666 // ********** Code for AudioProcessingEvent ************** |
| 2667 // ********** Code for AudioSourceNode ************** |
| 2668 // ********** Code for BarInfo ************** |
| 2669 $dynamic("get$dartObjectLocalStorage").BarInfo = function() { return this.dartOb
jectLocalStorage; }; |
| 2670 $dynamic("set$dartObjectLocalStorage").BarInfo = function(value) { return this.d
artObjectLocalStorage = value; }; |
| 2671 // ********** Code for BeforeLoadEvent ************** |
| 2672 // ********** Code for BiquadFilterNode ************** |
| 2673 $dynamic("get$type").BiquadFilterNode = function() { return this.type; }; |
| 2674 $dynamic("set$type").BiquadFilterNode = function(value) { return this.type = val
ue; }; |
| 2675 // ********** Code for Blob ************** |
| 2676 $dynamic("get$type").Blob = function() { return this.type; }; |
| 2677 $dynamic("set$type").Blob = function(value) { return this.type = value; }; |
| 2678 $dynamic("get$dartObjectLocalStorage").Blob = function() { return this.dartObjec
tLocalStorage; }; |
| 2679 $dynamic("set$dartObjectLocalStorage").Blob = function(value) { return this.dart
ObjectLocalStorage = value; }; |
| 2680 // ********** Code for CDATASection ************** |
| 2681 // ********** Code for CSSCharsetRule ************** |
| 2682 // ********** Code for CSSFontFaceRule ************** |
| 2683 $dynamic("get$style").CSSFontFaceRule = function() { return this.style; }; |
| 2684 $dynamic("set$style").CSSFontFaceRule = function(value) { return this.style = va
lue; }; |
| 2685 // ********** Code for CSSImportRule ************** |
| 2686 // ********** Code for CSSMediaRule ************** |
| 2687 // ********** Code for CSSPageRule ************** |
| 2688 $dynamic("get$style").CSSPageRule = function() { return this.style; }; |
| 2689 $dynamic("set$style").CSSPageRule = function(value) { return this.style = value;
}; |
| 2690 // ********** Code for CSSPrimitiveValue ************** |
| 2691 // ********** Code for CSSRule ************** |
| 2692 $dynamic("get$type").CSSRule = function() { return this.type; }; |
| 2693 $dynamic("set$type").CSSRule = function(value) { return this.type = value; }; |
| 2694 $dynamic("get$dartObjectLocalStorage").CSSRule = function() { return this.dartOb
jectLocalStorage; }; |
| 2695 $dynamic("set$dartObjectLocalStorage").CSSRule = function(value) { return this.d
artObjectLocalStorage = value; }; |
| 2696 // ********** Code for CSSRuleList ************** |
| 2697 $dynamic("get$length").CSSRuleList = function() { return this.length; }; |
| 2698 $dynamic("set$length").CSSRuleList = function(value) { return this.length = valu
e; }; |
| 2699 $dynamic("get$dartObjectLocalStorage").CSSRuleList = function() { return this.da
rtObjectLocalStorage; }; |
| 2700 $dynamic("set$dartObjectLocalStorage").CSSRuleList = function(value) { return th
is.dartObjectLocalStorage = value; }; |
| 2701 $dynamic("item$1").CSSRuleList = function($0) { |
| 2702 return this.item($0); |
| 2703 }; |
| 2704 // ********** Code for CSSStyleDeclaration ************** |
| 2705 $dynamic("get$length").CSSStyleDeclaration = function() { return this.length; }; |
| 2706 $dynamic("set$length").CSSStyleDeclaration = function(value) { return this.lengt
h = value; }; |
| 2707 $dynamic("get$dartObjectLocalStorage").CSSStyleDeclaration = function() { return
this.dartObjectLocalStorage; }; |
| 2708 $dynamic("set$dartObjectLocalStorage").CSSStyleDeclaration = function(value) { r
eturn this.dartObjectLocalStorage = value; }; |
| 2709 $dynamic("getPropertyValue$1").CSSStyleDeclaration = function($0) { |
| 2710 return this.getPropertyValue($0); |
| 2711 }; |
| 2712 $dynamic("item$1").CSSStyleDeclaration = function($0) { |
| 2713 return this.item($0); |
| 2714 }; |
| 2715 $dynamic("removeProperty$1").CSSStyleDeclaration = function($0) { |
| 2716 return this.removeProperty($0); |
| 2717 }; |
| 2718 $dynamic("setProperty$3").CSSStyleDeclaration = function($0, $1, $2) { |
| 2719 return this.setProperty($0, $1, $2); |
| 2720 }; |
| 2721 // ********** Code for CSSStyleRule ************** |
| 2722 $dynamic("get$style").CSSStyleRule = function() { return this.style; }; |
| 2723 $dynamic("set$style").CSSStyleRule = function(value) { return this.style = value
; }; |
| 2724 // ********** Code for CSSStyleSheet ************** |
| 2725 // ********** Code for CSSUnknownRule ************** |
| 2726 // ********** Code for CSSValue ************** |
| 2727 $dynamic("get$dartObjectLocalStorage").CSSValue = function() { return this.dartO
bjectLocalStorage; }; |
| 2728 $dynamic("set$dartObjectLocalStorage").CSSValue = function(value) { return this.
dartObjectLocalStorage = value; }; |
| 2729 // ********** Code for CSSValueList ************** |
| 2730 $dynamic("get$length").CSSValueList = function() { return this.length; }; |
| 2731 $dynamic("set$length").CSSValueList = function(value) { return this.length = val
ue; }; |
| 2732 $dynamic("item$1").CSSValueList = function($0) { |
| 2733 return this.item($0); |
| 2734 }; |
| 2735 // ********** Code for CanvasGradient ************** |
| 2736 $dynamic("get$dartObjectLocalStorage").CanvasGradient = function() { return this
.dartObjectLocalStorage; }; |
| 2737 $dynamic("set$dartObjectLocalStorage").CanvasGradient = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 2738 // ********** Code for CanvasPattern ************** |
| 2739 $dynamic("get$dartObjectLocalStorage").CanvasPattern = function() { return this.
dartObjectLocalStorage; }; |
| 2740 $dynamic("set$dartObjectLocalStorage").CanvasPattern = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 2741 // ********** Code for CanvasPixelArray ************** |
| 2742 $dynamic("get$length").CanvasPixelArray = function() { return this.length; }; |
| 2743 $dynamic("set$length").CanvasPixelArray = function(value) { return this.length =
value; }; |
| 2744 $dynamic("get$dartObjectLocalStorage").CanvasPixelArray = function() { return th
is.dartObjectLocalStorage; }; |
| 2745 $dynamic("set$dartObjectLocalStorage").CanvasPixelArray = function(value) { retu
rn this.dartObjectLocalStorage = value; }; |
| 2746 // ********** Code for CanvasRenderingContext ************** |
| 2747 $dynamic("get$dartObjectLocalStorage").CanvasRenderingContext = function() { ret
urn this.dartObjectLocalStorage; }; |
| 2748 $dynamic("set$dartObjectLocalStorage").CanvasRenderingContext = function(value)
{ return this.dartObjectLocalStorage = value; }; |
| 2749 // ********** Code for CanvasRenderingContext2D ************** |
| 2750 $dynamic("get$font").CanvasRenderingContext2D = function() { return this.font; }
; |
| 2751 $dynamic("set$font").CanvasRenderingContext2D = function(value) { return this.fo
nt = value; }; |
| 2752 $dynamic("get$transform").CanvasRenderingContext2D = function() { |
| 2753 return this.transform.bind(this); |
| 2754 } |
| 2755 $dynamic("measureText$1").CanvasRenderingContext2D = function($0) { |
| 2756 return this.measureText($0); |
| 2757 }; |
| 2758 // ********** Code for CharacterData ************** |
| 2759 $dynamic("get$length").CharacterData = function() { return this.length; }; |
| 2760 $dynamic("set$length").CharacterData = function(value) { return this.length = va
lue; }; |
| 2761 // ********** Code for ClientRect ************** |
| 2762 $dynamic("get$height").ClientRect = function() { return this.height; }; |
| 2763 $dynamic("set$height").ClientRect = function(value) { return this.height = value
; }; |
| 2764 $dynamic("get$left").ClientRect = function() { return this.left; }; |
| 2765 $dynamic("set$left").ClientRect = function(value) { return this.left = value; }; |
| 2766 $dynamic("get$top").ClientRect = function() { return this.top; }; |
| 2767 $dynamic("set$top").ClientRect = function(value) { return this.top = value; }; |
| 2768 $dynamic("get$width").ClientRect = function() { return this.width; }; |
| 2769 $dynamic("set$width").ClientRect = function(value) { return this.width = value;
}; |
| 2770 $dynamic("get$dartObjectLocalStorage").ClientRect = function() { return this.dar
tObjectLocalStorage; }; |
| 2771 $dynamic("set$dartObjectLocalStorage").ClientRect = function(value) { return thi
s.dartObjectLocalStorage = value; }; |
| 2772 // ********** Code for ClientRectList ************** |
| 2773 $dynamic("get$length").ClientRectList = function() { return this.length; }; |
| 2774 $dynamic("set$length").ClientRectList = function(value) { return this.length = v
alue; }; |
| 2775 $dynamic("get$dartObjectLocalStorage").ClientRectList = function() { return this
.dartObjectLocalStorage; }; |
| 2776 $dynamic("set$dartObjectLocalStorage").ClientRectList = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 2777 $dynamic("item$1").ClientRectList = function($0) { |
| 2778 return this.item($0); |
| 2779 }; |
| 2780 // ********** Code for Clipboard ************** |
| 2781 $dynamic("get$dartObjectLocalStorage").Clipboard = function() { return this.dart
ObjectLocalStorage; }; |
| 2782 $dynamic("set$dartObjectLocalStorage").Clipboard = function(value) { return this
.dartObjectLocalStorage = value; }; |
| 2783 // ********** Code for CloseEvent ************** |
| 2784 // ********** Code for Comment ************** |
| 2785 // ********** Code for CompositionEvent ************** |
| 2786 // ********** Code for Console ************** |
| 2787 Console = (typeof console == 'undefined' ? {} : console); |
| 2788 Console.get$time = function() { |
| 2789 return this.time.bind(this); |
| 2790 } |
| 2791 Console.get$timeStamp = function() { |
| 2792 return this.timeStamp.bind(this); |
| 2793 } |
| 2794 Console.get$dartObjectLocalStorage = function() { return this.dartObjectLocalSto
rage; }; |
| 2795 Console.set$dartObjectLocalStorage = function(value) { return this.dartObjectLoc
alStorage = value; }; |
| 2796 Console.time$1 = Console.time; |
| 2797 Console.timeStamp$0 = Console.timeStamp; |
| 2798 Console.warn$1 = Console.warn; |
| 2799 // ********** Code for ConvolverNode ************** |
| 2800 // ********** Code for Coordinates ************** |
| 2801 $dynamic("get$dartObjectLocalStorage").Coordinates = function() { return this.da
rtObjectLocalStorage; }; |
| 2802 $dynamic("set$dartObjectLocalStorage").Coordinates = function(value) { return th
is.dartObjectLocalStorage = value; }; |
| 2803 // ********** Code for Counter ************** |
| 2804 $dynamic("get$dartObjectLocalStorage").Counter = function() { return this.dartOb
jectLocalStorage; }; |
| 2805 $dynamic("set$dartObjectLocalStorage").Counter = function(value) { return this.d
artObjectLocalStorage = value; }; |
| 2806 // ********** Code for Crypto ************** |
| 2807 $dynamic("get$dartObjectLocalStorage").Crypto = function() { return this.dartObj
ectLocalStorage; }; |
| 2808 $dynamic("set$dartObjectLocalStorage").Crypto = function(value) { return this.da
rtObjectLocalStorage = value; }; |
| 2809 // ********** Code for CustomEvent ************** |
| 2810 // ********** Code for DOMApplicationCache ************** |
| 2811 $dynamic("get$status").DOMApplicationCache = function() { return this.status; }; |
| 2812 $dynamic("set$status").DOMApplicationCache = function(value) { return this.statu
s = value; }; |
| 2813 $dynamic("get$dartObjectLocalStorage").DOMApplicationCache = function() { return
this.dartObjectLocalStorage; }; |
| 2814 $dynamic("set$dartObjectLocalStorage").DOMApplicationCache = function(value) { r
eturn this.dartObjectLocalStorage = value; }; |
| 2815 $dynamic("addEventListener$3").DOMApplicationCache = function($0, $1, $2) { |
| 2816 return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 2817 }; |
| 2818 $dynamic("dispatchEvent$1").DOMApplicationCache = function($0) { |
| 2819 return this.dispatchEvent($0); |
| 2820 }; |
| 2821 $dynamic("removeEventListener$3").DOMApplicationCache = function($0, $1, $2) { |
| 2822 return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 2823 }; |
| 2824 $dynamic("swapCache$0").DOMApplicationCache = function() { |
| 2825 return this.swapCache(); |
| 2826 }; |
| 2827 // ********** Code for DOMException ************** |
| 2828 $dynamic("get$name").DOMException = function() { return this.name; }; |
| 2829 $dynamic("set$name").DOMException = function(value) { return this.name = value;
}; |
| 2830 $dynamic("get$dartObjectLocalStorage").DOMException = function() { return this.d
artObjectLocalStorage; }; |
| 2831 $dynamic("set$dartObjectLocalStorage").DOMException = function(value) { return t
his.dartObjectLocalStorage = value; }; |
| 2832 $dynamic("toString$0").DOMException = function() { |
| 2833 return this.toString(); |
| 2834 }; |
| 2835 // ********** Code for DOMFileSystem ************** |
| 2836 $dynamic("get$name").DOMFileSystem = function() { return this.name; }; |
| 2837 $dynamic("set$name").DOMFileSystem = function(value) { return this.name = value;
}; |
| 2838 $dynamic("get$dartObjectLocalStorage").DOMFileSystem = function() { return this.
dartObjectLocalStorage; }; |
| 2839 $dynamic("set$dartObjectLocalStorage").DOMFileSystem = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 2840 // ********** Code for DOMFileSystemSync ************** |
| 2841 $dynamic("get$name").DOMFileSystemSync = function() { return this.name; }; |
| 2842 $dynamic("set$name").DOMFileSystemSync = function(value) { return this.name = va
lue; }; |
| 2843 $dynamic("get$dartObjectLocalStorage").DOMFileSystemSync = function() { return t
his.dartObjectLocalStorage; }; |
| 2844 $dynamic("set$dartObjectLocalStorage").DOMFileSystemSync = function(value) { ret
urn this.dartObjectLocalStorage = value; }; |
| 2845 // ********** Code for DOMFormData ************** |
| 2846 $dynamic("get$dartObjectLocalStorage").DOMFormData = function() { return this.da
rtObjectLocalStorage; }; |
| 2847 $dynamic("set$dartObjectLocalStorage").DOMFormData = function(value) { return th
is.dartObjectLocalStorage = value; }; |
| 2848 // ********** Code for dom_DOMImplementation ************** |
| 2849 $dynamic("get$dartObjectLocalStorage").DOMImplementation = function() { return t
his.dartObjectLocalStorage; }; |
| 2850 $dynamic("set$dartObjectLocalStorage").DOMImplementation = function(value) { ret
urn this.dartObjectLocalStorage = value; }; |
| 2851 // ********** Code for DOMMimeType ************** |
| 2852 $dynamic("get$type").DOMMimeType = function() { return this.type; }; |
| 2853 $dynamic("set$type").DOMMimeType = function(value) { return this.type = value; }
; |
| 2854 $dynamic("get$dartObjectLocalStorage").DOMMimeType = function() { return this.da
rtObjectLocalStorage; }; |
| 2855 $dynamic("set$dartObjectLocalStorage").DOMMimeType = function(value) { return th
is.dartObjectLocalStorage = value; }; |
| 2856 // ********** Code for DOMMimeTypeArray ************** |
| 2857 $dynamic("get$length").DOMMimeTypeArray = function() { return this.length; }; |
| 2858 $dynamic("set$length").DOMMimeTypeArray = function(value) { return this.length =
value; }; |
| 2859 $dynamic("get$dartObjectLocalStorage").DOMMimeTypeArray = function() { return th
is.dartObjectLocalStorage; }; |
| 2860 $dynamic("set$dartObjectLocalStorage").DOMMimeTypeArray = function(value) { retu
rn this.dartObjectLocalStorage = value; }; |
| 2861 $dynamic("item$1").DOMMimeTypeArray = function($0) { |
| 2862 return this.item($0); |
| 2863 }; |
| 2864 // ********** Code for DOMParser ************** |
| 2865 $dynamic("get$dartObjectLocalStorage").DOMParser = function() { return this.dart
ObjectLocalStorage; }; |
| 2866 $dynamic("set$dartObjectLocalStorage").DOMParser = function(value) { return this
.dartObjectLocalStorage = value; }; |
| 2867 // ********** Code for DOMPlugin ************** |
| 2868 $dynamic("get$length").DOMPlugin = function() { return this.length; }; |
| 2869 $dynamic("set$length").DOMPlugin = function(value) { return this.length = value;
}; |
| 2870 $dynamic("get$name").DOMPlugin = function() { return this.name; }; |
| 2871 $dynamic("set$name").DOMPlugin = function(value) { return this.name = value; }; |
| 2872 $dynamic("get$dartObjectLocalStorage").DOMPlugin = function() { return this.dart
ObjectLocalStorage; }; |
| 2873 $dynamic("set$dartObjectLocalStorage").DOMPlugin = function(value) { return this
.dartObjectLocalStorage = value; }; |
| 2874 $dynamic("item$1").DOMPlugin = function($0) { |
| 2875 return this.item($0); |
| 2876 }; |
| 2877 // ********** Code for DOMPluginArray ************** |
| 2878 $dynamic("get$length").DOMPluginArray = function() { return this.length; }; |
| 2879 $dynamic("set$length").DOMPluginArray = function(value) { return this.length = v
alue; }; |
| 2880 $dynamic("get$dartObjectLocalStorage").DOMPluginArray = function() { return this
.dartObjectLocalStorage; }; |
| 2881 $dynamic("set$dartObjectLocalStorage").DOMPluginArray = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 2882 $dynamic("item$1").DOMPluginArray = function($0) { |
| 2883 return this.item($0); |
| 2884 }; |
| 2885 // ********** Code for DOMSelection ************** |
| 2886 $dynamic("get$type").DOMSelection = function() { return this.type; }; |
| 2887 $dynamic("set$type").DOMSelection = function(value) { return this.type = value;
}; |
| 2888 $dynamic("get$dartObjectLocalStorage").DOMSelection = function() { return this.d
artObjectLocalStorage; }; |
| 2889 $dynamic("set$dartObjectLocalStorage").DOMSelection = function(value) { return t
his.dartObjectLocalStorage = value; }; |
| 2890 $dynamic("toString$0").DOMSelection = function() { |
| 2891 return this.toString(); |
| 2892 }; |
| 2893 // ********** Code for DOMSettableTokenList ************** |
| 2894 $dynamic("get$value").DOMSettableTokenList = function() { return this.value; }; |
| 2895 $dynamic("set$value").DOMSettableTokenList = function(value) { return this.value
= value; }; |
| 2896 // ********** Code for DOMTokenList ************** |
| 2897 $dynamic("get$length").DOMTokenList = function() { return this.length; }; |
| 2898 $dynamic("set$length").DOMTokenList = function(value) { return this.length = val
ue; }; |
| 2899 $dynamic("get$dartObjectLocalStorage").DOMTokenList = function() { return this.d
artObjectLocalStorage; }; |
| 2900 $dynamic("set$dartObjectLocalStorage").DOMTokenList = function(value) { return t
his.dartObjectLocalStorage = value; }; |
| 2901 $dynamic("add$1").DOMTokenList = function($0) { |
| 2902 return this.add($0); |
| 2903 }; |
| 2904 $dynamic("contains$1").DOMTokenList = function($0) { |
| 2905 return this.contains($0); |
| 2906 }; |
| 2907 $dynamic("item$1").DOMTokenList = function($0) { |
| 2908 return this.item($0); |
| 2909 }; |
| 2910 $dynamic("remove$1").DOMTokenList = function($0) { |
| 2911 return this.remove($0); |
| 2912 }; |
| 2913 $dynamic("toString$0").DOMTokenList = function() { |
| 2914 return this.toString(); |
| 2915 }; |
| 2916 // ********** Code for DOMURL ************** |
| 2917 $dynamic("get$dartObjectLocalStorage").DOMURL = function() { return this.dartObj
ectLocalStorage; }; |
| 2918 $dynamic("set$dartObjectLocalStorage").DOMURL = function(value) { return this.da
rtObjectLocalStorage = value; }; |
| 2919 // ********** Code for dom_DOMWindow ************** |
| 2920 $dynamic("get$applicationCache").DOMWindow = function() { return this.applicatio
nCache; }; |
| 2921 $dynamic("set$applicationCache").DOMWindow = function(value) { return this.appli
cationCache = value; }; |
| 2922 $dynamic("get$console").DOMWindow = function() { return this.console; }; |
| 2923 $dynamic("set$console").DOMWindow = function(value) { return this.console = valu
e; }; |
| 2924 $dynamic("get$history").DOMWindow = function() { return this.history; }; |
| 2925 $dynamic("set$history").DOMWindow = function(value) { return this.history = valu
e; }; |
| 2926 $dynamic("get$length").DOMWindow = function() { return this.length; }; |
| 2927 $dynamic("set$length").DOMWindow = function(value) { return this.length = value;
}; |
| 2928 $dynamic("get$location").DOMWindow = function() { return this.location; }; |
| 2929 $dynamic("set$location").DOMWindow = function(value) { return this.location = va
lue; }; |
| 2930 $dynamic("get$name").DOMWindow = function() { return this.name; }; |
| 2931 $dynamic("set$name").DOMWindow = function(value) { return this.name = value; }; |
| 2932 $dynamic("get$navigator").DOMWindow = function() { return this.navigator; }; |
| 2933 $dynamic("set$navigator").DOMWindow = function(value) { return this.navigator =
value; }; |
| 2934 $dynamic("get$screen").DOMWindow = function() { return this.screen; }; |
| 2935 $dynamic("set$screen").DOMWindow = function(value) { return this.screen = value;
}; |
| 2936 $dynamic("get$status").DOMWindow = function() { return this.status; }; |
| 2937 $dynamic("set$status").DOMWindow = function(value) { return this.status = value;
}; |
| 2938 $dynamic("get$top").DOMWindow = function() { return this.top; }; |
| 2939 $dynamic("set$top").DOMWindow = function(value) { return this.top = value; }; |
| 2940 $dynamic("get$blur").DOMWindow = function() { |
| 2941 return this.blur.bind(this); |
| 2942 } |
| 2943 $dynamic("get$focus").DOMWindow = function() { |
| 2944 return this.focus.bind(this); |
| 2945 } |
| 2946 $dynamic("get$open").DOMWindow = function() { |
| 2947 return this.open.bind(this); |
| 2948 } |
| 2949 $dynamic("get$dartObjectLocalStorage").DOMWindow = function() { return this.dart
ObjectLocalStorage; }; |
| 2950 $dynamic("set$dartObjectLocalStorage").DOMWindow = function(value) { return this
.dartObjectLocalStorage = value; }; |
| 2951 $dynamic("addEventListener$3").DOMWindow = function($0, $1, $2) { |
| 2952 return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 2953 }; |
| 2954 $dynamic("blur$0").DOMWindow = function() { |
| 2955 return this.blur(); |
| 2956 }; |
| 2957 $dynamic("clearInterval$1").DOMWindow = function($0) { |
| 2958 return this.clearInterval($0); |
| 2959 }; |
| 2960 $dynamic("clearTimeout$1").DOMWindow = function($0) { |
| 2961 return this.clearTimeout($0); |
| 2962 }; |
| 2963 $dynamic("dispatchEvent$1").DOMWindow = function($0) { |
| 2964 return this.dispatchEvent($0); |
| 2965 }; |
| 2966 $dynamic("focus$0").DOMWindow = function() { |
| 2967 return this.focus(); |
| 2968 }; |
| 2969 $dynamic("open$2").DOMWindow = function($0, $1) { |
| 2970 return this.open($0, $1); |
| 2971 }; |
| 2972 $dynamic("open$3").DOMWindow = function($0, $1, $2) { |
| 2973 return this.open($0, $1, $2); |
| 2974 }; |
| 2975 $dynamic("postMessage$2").DOMWindow = function($0, $1) { |
| 2976 return this.postMessage($0, $1); |
| 2977 }; |
| 2978 $dynamic("postMessage$3").DOMWindow = function($0, $1, $2) { |
| 2979 return this.postMessage($0, $1, $2); |
| 2980 }; |
| 2981 $dynamic("removeEventListener$3").DOMWindow = function($0, $1, $2) { |
| 2982 return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 2983 }; |
| 2984 $dynamic("setInterval$2").DOMWindow = function($0, $1) { |
| 2985 return this.setInterval($wrap_call$0(to$call$0($0)), $1); |
| 2986 }; |
| 2987 $dynamic("setTimeout$2").DOMWindow = function($0, $1) { |
| 2988 return this.setTimeout($wrap_call$0(to$call$0($0)), $1); |
| 2989 }; |
| 2990 $dynamic("webkitConvertPointFromNodeToPage$2").DOMWindow = function($0, $1) { |
| 2991 return this.webkitConvertPointFromNodeToPage($0, $1); |
| 2992 }; |
| 2993 $dynamic("webkitConvertPointFromPageToNode$2").DOMWindow = function($0, $1) { |
| 2994 return this.webkitConvertPointFromPageToNode($0, $1); |
| 2995 }; |
| 2996 $dynamic("webkitRequestAnimationFrame$2").DOMWindow = function($0, $1) { |
| 2997 return this.webkitRequestAnimationFrame($wrap_call$1(to$call$1($0)), $1); |
| 2998 }; |
| 2999 // ********** Code for DataTransferItem ************** |
| 3000 $dynamic("get$type").DataTransferItem = function() { return this.type; }; |
| 3001 $dynamic("set$type").DataTransferItem = function(value) { return this.type = val
ue; }; |
| 3002 $dynamic("get$dartObjectLocalStorage").DataTransferItem = function() { return th
is.dartObjectLocalStorage; }; |
| 3003 $dynamic("set$dartObjectLocalStorage").DataTransferItem = function(value) { retu
rn this.dartObjectLocalStorage = value; }; |
| 3004 // ********** Code for DataTransferItemList ************** |
| 3005 $dynamic("get$length").DataTransferItemList = function() { return this.length; }
; |
| 3006 $dynamic("set$length").DataTransferItemList = function(value) { return this.leng
th = value; }; |
| 3007 $dynamic("get$clear").DataTransferItemList = function() { |
| 3008 return this.clear.bind(this); |
| 3009 } |
| 3010 $dynamic("get$dartObjectLocalStorage").DataTransferItemList = function() { retur
n this.dartObjectLocalStorage; }; |
| 3011 $dynamic("set$dartObjectLocalStorage").DataTransferItemList = function(value) {
return this.dartObjectLocalStorage = value; }; |
| 3012 $dynamic("add$2").DataTransferItemList = function($0, $1) { |
| 3013 return this.add($0, $1); |
| 3014 }; |
| 3015 $dynamic("clear$0").DataTransferItemList = function() { |
| 3016 return this.clear(); |
| 3017 }; |
| 3018 $dynamic("item$1").DataTransferItemList = function($0) { |
| 3019 return this.item($0); |
| 3020 }; |
| 3021 // ********** Code for DataView ************** |
| 3022 // ********** Code for dom_Database ************** |
| 3023 $dynamic("get$dartObjectLocalStorage").Database = function() { return this.dartO
bjectLocalStorage; }; |
| 3024 $dynamic("set$dartObjectLocalStorage").Database = function(value) { return this.
dartObjectLocalStorage = value; }; |
| 3025 // ********** Code for dom_DatabaseSync ************** |
| 3026 $dynamic("get$dartObjectLocalStorage").DatabaseSync = function() { return this.d
artObjectLocalStorage; }; |
| 3027 $dynamic("set$dartObjectLocalStorage").DatabaseSync = function(value) { return t
his.dartObjectLocalStorage = value; }; |
| 3028 // ********** Code for dom_DedicatedWorkerContext ************** |
| 3029 $dynamic("postMessage$1").DedicatedWorkerContext = function($0) { |
| 3030 return this.postMessage($0); |
| 3031 }; |
| 3032 $dynamic("postMessage$2").DedicatedWorkerContext = function($0, $1) { |
| 3033 return this.postMessage($0, $1); |
| 3034 }; |
| 3035 // ********** Code for DelayNode ************** |
| 3036 // ********** Code for DeviceMotionEvent ************** |
| 3037 // ********** Code for DeviceOrientationEvent ************** |
| 3038 // ********** Code for DirectoryEntry ************** |
| 3039 // ********** Code for DirectoryEntrySync ************** |
| 3040 // ********** Code for DirectoryReader ************** |
| 3041 $dynamic("get$dartObjectLocalStorage").DirectoryReader = function() { return thi
s.dartObjectLocalStorage; }; |
| 3042 $dynamic("set$dartObjectLocalStorage").DirectoryReader = function(value) { retur
n this.dartObjectLocalStorage = value; }; |
| 3043 // ********** Code for DirectoryReaderSync ************** |
| 3044 $dynamic("get$dartObjectLocalStorage").DirectoryReaderSync = function() { return
this.dartObjectLocalStorage; }; |
| 3045 $dynamic("set$dartObjectLocalStorage").DirectoryReaderSync = function(value) { r
eturn this.dartObjectLocalStorage = value; }; |
| 3046 // ********** Code for Document ************** |
| 3047 $dynamic("get$body").Document = function() { return this.body; }; |
| 3048 $dynamic("set$body").Document = function(value) { return this.body = value; }; |
| 3049 $dynamic("get$documentElement").Document = function() { return this.documentElem
ent; }; |
| 3050 $dynamic("set$documentElement").Document = function(value) { return this.documen
tElement = value; }; |
| 3051 $dynamic("get$location").Document = function() { return this.location; }; |
| 3052 $dynamic("set$location").Document = function(value) { return this.location = val
ue; }; |
| 3053 $dynamic("get$readyState").Document = function() { return this.readyState; }; |
| 3054 $dynamic("set$readyState").Document = function(value) { return this.readyState =
value; }; |
| 3055 $dynamic("get$title").Document = function() { return this.title; }; |
| 3056 $dynamic("set$title").Document = function(value) { return this.title = value; }; |
| 3057 $dynamic("querySelector$1").Document = function($0) { |
| 3058 return this.querySelector($0); |
| 3059 }; |
| 3060 $dynamic("querySelectorAll$1").Document = function($0) { |
| 3061 return this.querySelectorAll($0); |
| 3062 }; |
| 3063 // ********** Code for DocumentFragment ************** |
| 3064 $dynamic("querySelector$1").DocumentFragment = function($0) { |
| 3065 return this.querySelector($0); |
| 3066 }; |
| 3067 $dynamic("querySelectorAll$1").DocumentFragment = function($0) { |
| 3068 return this.querySelectorAll($0); |
| 3069 }; |
| 3070 // ********** Code for dom_DocumentType ************** |
| 3071 $dynamic("get$name").DocumentType = function() { return this.name; }; |
| 3072 $dynamic("set$name").DocumentType = function(value) { return this.name = value;
}; |
| 3073 // ********** Code for DynamicsCompressorNode ************** |
| 3074 // ********** Code for Element ************** |
| 3075 $dynamic("get$childElementCount").Element = function() { return this.childElemen
tCount; }; |
| 3076 $dynamic("set$childElementCount").Element = function(value) { return this.childE
lementCount = value; }; |
| 3077 $dynamic("get$firstElementChild").Element = function() { return this.firstElemen
tChild; }; |
| 3078 $dynamic("set$firstElementChild").Element = function(value) { return this.firstE
lementChild = value; }; |
| 3079 $dynamic("get$lastElementChild").Element = function() { return this.lastElementC
hild; }; |
| 3080 $dynamic("set$lastElementChild").Element = function(value) { return this.lastEle
mentChild = value; }; |
| 3081 $dynamic("get$nextElementSibling").Element = function() { return this.nextElemen
tSibling; }; |
| 3082 $dynamic("set$nextElementSibling").Element = function(value) { return this.nextE
lementSibling = value; }; |
| 3083 $dynamic("get$previousElementSibling").Element = function() { return this.previo
usElementSibling; }; |
| 3084 $dynamic("set$previousElementSibling").Element = function(value) { return this.p
reviousElementSibling = value; }; |
| 3085 $dynamic("get$style").Element = function() { return this.style; }; |
| 3086 $dynamic("set$style").Element = function(value) { return this.style = value; }; |
| 3087 $dynamic("get$blur").Element = function() { |
| 3088 return this.blur.bind(this); |
| 3089 } |
| 3090 $dynamic("get$focus").Element = function() { |
| 3091 return this.focus.bind(this); |
| 3092 } |
| 3093 $dynamic("blur$0").Element = function() { |
| 3094 return this.blur(); |
| 3095 }; |
| 3096 $dynamic("focus$0").Element = function() { |
| 3097 return this.focus(); |
| 3098 }; |
| 3099 $dynamic("getAttribute$1").Element = function($0) { |
| 3100 return this.getAttribute($0); |
| 3101 }; |
| 3102 $dynamic("hasAttribute$1").Element = function($0) { |
| 3103 return this.hasAttribute($0); |
| 3104 }; |
| 3105 $dynamic("querySelector$1").Element = function($0) { |
| 3106 return this.querySelector($0); |
| 3107 }; |
| 3108 $dynamic("querySelectorAll$1").Element = function($0) { |
| 3109 return this.querySelectorAll($0); |
| 3110 }; |
| 3111 $dynamic("removeAttribute$1").Element = function($0) { |
| 3112 return this.removeAttribute($0); |
| 3113 }; |
| 3114 $dynamic("setAttribute$2").Element = function($0, $1) { |
| 3115 return this.setAttribute($0, $1); |
| 3116 }; |
| 3117 // ********** Code for ElementTimeControl ************** |
| 3118 $dynamic("get$dartObjectLocalStorage").ElementTimeControl = function() { return
this.dartObjectLocalStorage; }; |
| 3119 $dynamic("set$dartObjectLocalStorage").ElementTimeControl = function(value) { re
turn this.dartObjectLocalStorage = value; }; |
| 3120 // ********** Code for dom_ElementTraversal ************** |
| 3121 $dynamic("get$childElementCount").ElementTraversal = function() { return this.ch
ildElementCount; }; |
| 3122 $dynamic("set$childElementCount").ElementTraversal = function(value) { return th
is.childElementCount = value; }; |
| 3123 $dynamic("get$firstElementChild").ElementTraversal = function() { return this.fi
rstElementChild; }; |
| 3124 $dynamic("set$firstElementChild").ElementTraversal = function(value) { return th
is.firstElementChild = value; }; |
| 3125 $dynamic("get$lastElementChild").ElementTraversal = function() { return this.las
tElementChild; }; |
| 3126 $dynamic("set$lastElementChild").ElementTraversal = function(value) { return thi
s.lastElementChild = value; }; |
| 3127 $dynamic("get$nextElementSibling").ElementTraversal = function() { return this.n
extElementSibling; }; |
| 3128 $dynamic("set$nextElementSibling").ElementTraversal = function(value) { return t
his.nextElementSibling = value; }; |
| 3129 $dynamic("get$previousElementSibling").ElementTraversal = function() { return th
is.previousElementSibling; }; |
| 3130 $dynamic("set$previousElementSibling").ElementTraversal = function(value) { retu
rn this.previousElementSibling = value; }; |
| 3131 $dynamic("get$dartObjectLocalStorage").ElementTraversal = function() { return th
is.dartObjectLocalStorage; }; |
| 3132 $dynamic("set$dartObjectLocalStorage").ElementTraversal = function(value) { retu
rn this.dartObjectLocalStorage = value; }; |
| 3133 // ********** Code for Entity ************** |
| 3134 // ********** Code for EntityReference ************** |
| 3135 // ********** Code for Entry ************** |
| 3136 $dynamic("get$name").Entry = function() { return this.name; }; |
| 3137 $dynamic("set$name").Entry = function(value) { return this.name = value; }; |
| 3138 $dynamic("get$dartObjectLocalStorage").Entry = function() { return this.dartObje
ctLocalStorage; }; |
| 3139 $dynamic("set$dartObjectLocalStorage").Entry = function(value) { return this.dar
tObjectLocalStorage = value; }; |
| 3140 $dynamic("remove$1").Entry = function($0) { |
| 3141 return this.remove($wrap_call$0(to$call$0($0)), $wrap_call$1(to$call$1(null)))
; |
| 3142 }; |
| 3143 $dynamic("remove$2").Entry = function($0, $1) { |
| 3144 return this.remove($wrap_call$0(to$call$0($0)), $wrap_call$1(to$call$1($1))); |
| 3145 }; |
| 3146 // ********** Code for EntryArray ************** |
| 3147 $dynamic("get$length").EntryArray = function() { return this.length; }; |
| 3148 $dynamic("set$length").EntryArray = function(value) { return this.length = value
; }; |
| 3149 $dynamic("get$dartObjectLocalStorage").EntryArray = function() { return this.dar
tObjectLocalStorage; }; |
| 3150 $dynamic("set$dartObjectLocalStorage").EntryArray = function(value) { return thi
s.dartObjectLocalStorage = value; }; |
| 3151 $dynamic("item$1").EntryArray = function($0) { |
| 3152 return this.item($0); |
| 3153 }; |
| 3154 // ********** Code for EntryArraySync ************** |
| 3155 $dynamic("get$length").EntryArraySync = function() { return this.length; }; |
| 3156 $dynamic("set$length").EntryArraySync = function(value) { return this.length = v
alue; }; |
| 3157 $dynamic("get$dartObjectLocalStorage").EntryArraySync = function() { return this
.dartObjectLocalStorage; }; |
| 3158 $dynamic("set$dartObjectLocalStorage").EntryArraySync = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 3159 $dynamic("item$1").EntryArraySync = function($0) { |
| 3160 return this.item($0); |
| 3161 }; |
| 3162 // ********** Code for EntrySync ************** |
| 3163 $dynamic("get$name").EntrySync = function() { return this.name; }; |
| 3164 $dynamic("set$name").EntrySync = function(value) { return this.name = value; }; |
| 3165 $dynamic("get$dartObjectLocalStorage").EntrySync = function() { return this.dart
ObjectLocalStorage; }; |
| 3166 $dynamic("set$dartObjectLocalStorage").EntrySync = function(value) { return this
.dartObjectLocalStorage = value; }; |
| 3167 $dynamic("remove$0").EntrySync = function() { |
| 3168 return this.remove(); |
| 3169 }; |
| 3170 // ********** Code for ErrorEvent ************** |
| 3171 // ********** Code for Event ************** |
| 3172 $dynamic("get$target").Event = function() { return this.target; }; |
| 3173 $dynamic("set$target").Event = function(value) { return this.target = value; }; |
| 3174 $dynamic("get$timeStamp").Event = function() { return this.timeStamp; }; |
| 3175 $dynamic("set$timeStamp").Event = function(value) { return this.timeStamp = valu
e; }; |
| 3176 $dynamic("get$type").Event = function() { return this.type; }; |
| 3177 $dynamic("set$type").Event = function(value) { return this.type = value; }; |
| 3178 $dynamic("get$dartObjectLocalStorage").Event = function() { return this.dartObje
ctLocalStorage; }; |
| 3179 $dynamic("set$dartObjectLocalStorage").Event = function(value) { return this.dar
tObjectLocalStorage = value; }; |
| 3180 $dynamic("initEvent$3").Event = function($0, $1, $2) { |
| 3181 return this.initEvent($0, $1, $2); |
| 3182 }; |
| 3183 $dynamic("preventDefault$0").Event = function() { |
| 3184 return this.preventDefault(); |
| 3185 }; |
| 3186 $dynamic("stopPropagation$0").Event = function() { |
| 3187 return this.stopPropagation(); |
| 3188 }; |
| 3189 $dynamic("timeStamp$0").Event = function() { |
| 3190 return this.timeStamp.call$0(); |
| 3191 }; |
| 3192 // ********** Code for EventException ************** |
| 3193 $dynamic("get$name").EventException = function() { return this.name; }; |
| 3194 $dynamic("set$name").EventException = function(value) { return this.name = value
; }; |
| 3195 $dynamic("get$dartObjectLocalStorage").EventException = function() { return this
.dartObjectLocalStorage; }; |
| 3196 $dynamic("set$dartObjectLocalStorage").EventException = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 3197 $dynamic("toString$0").EventException = function() { |
| 3198 return this.toString(); |
| 3199 }; |
| 3200 // ********** Code for EventSource ************** |
| 3201 $dynamic("get$readyState").EventSource = function() { return this.readyState; }; |
| 3202 $dynamic("set$readyState").EventSource = function(value) { return this.readyStat
e = value; }; |
| 3203 $dynamic("get$dartObjectLocalStorage").EventSource = function() { return this.da
rtObjectLocalStorage; }; |
| 3204 $dynamic("set$dartObjectLocalStorage").EventSource = function(value) { return th
is.dartObjectLocalStorage = value; }; |
| 3205 $dynamic("addEventListener$3").EventSource = function($0, $1, $2) { |
| 3206 return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 3207 }; |
| 3208 $dynamic("dispatchEvent$1").EventSource = function($0) { |
| 3209 return this.dispatchEvent($0); |
| 3210 }; |
| 3211 $dynamic("removeEventListener$3").EventSource = function($0, $1, $2) { |
| 3212 return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 3213 }; |
| 3214 // ********** Code for EventTarget ************** |
| 3215 $dynamic("get$dartObjectLocalStorage").EventTarget = function() { return this.da
rtObjectLocalStorage; }; |
| 3216 $dynamic("set$dartObjectLocalStorage").EventTarget = function(value) { return th
is.dartObjectLocalStorage = value; }; |
| 3217 $dynamic("addEventListener$3").EventTarget = function($0, $1, $2) { |
| 3218 return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 3219 }; |
| 3220 $dynamic("dispatchEvent$1").EventTarget = function($0) { |
| 3221 return this.dispatchEvent($0); |
| 3222 }; |
| 3223 $dynamic("removeEventListener$3").EventTarget = function($0, $1, $2) { |
| 3224 return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 3225 }; |
| 3226 // ********** Code for File ************** |
| 3227 $dynamic("get$name").File = function() { return this.name; }; |
| 3228 $dynamic("set$name").File = function(value) { return this.name = value; }; |
| 3229 // ********** Code for FileEntry ************** |
| 3230 // ********** Code for FileEntrySync ************** |
| 3231 // ********** Code for FileError ************** |
| 3232 $dynamic("get$dartObjectLocalStorage").FileError = function() { return this.dart
ObjectLocalStorage; }; |
| 3233 $dynamic("set$dartObjectLocalStorage").FileError = function(value) { return this
.dartObjectLocalStorage = value; }; |
| 3234 // ********** Code for FileException ************** |
| 3235 $dynamic("get$name").FileException = function() { return this.name; }; |
| 3236 $dynamic("set$name").FileException = function(value) { return this.name = value;
}; |
| 3237 $dynamic("get$dartObjectLocalStorage").FileException = function() { return this.
dartObjectLocalStorage; }; |
| 3238 $dynamic("set$dartObjectLocalStorage").FileException = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 3239 $dynamic("toString$0").FileException = function() { |
| 3240 return this.toString(); |
| 3241 }; |
| 3242 // ********** Code for FileList ************** |
| 3243 $dynamic("get$length").FileList = function() { return this.length; }; |
| 3244 $dynamic("set$length").FileList = function(value) { return this.length = value;
}; |
| 3245 $dynamic("get$dartObjectLocalStorage").FileList = function() { return this.dartO
bjectLocalStorage; }; |
| 3246 $dynamic("set$dartObjectLocalStorage").FileList = function(value) { return this.
dartObjectLocalStorage = value; }; |
| 3247 $dynamic("item$1").FileList = function($0) { |
| 3248 return this.item($0); |
| 3249 }; |
| 3250 // ********** Code for FileReader ************** |
| 3251 $dynamic("get$readyState").FileReader = function() { return this.readyState; }; |
| 3252 $dynamic("set$readyState").FileReader = function(value) { return this.readyState
= value; }; |
| 3253 $dynamic("get$dartObjectLocalStorage").FileReader = function() { return this.dar
tObjectLocalStorage; }; |
| 3254 $dynamic("set$dartObjectLocalStorage").FileReader = function(value) { return thi
s.dartObjectLocalStorage = value; }; |
| 3255 $dynamic("addEventListener$3").FileReader = function($0, $1, $2) { |
| 3256 return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 3257 }; |
| 3258 $dynamic("dispatchEvent$1").FileReader = function($0) { |
| 3259 return this.dispatchEvent($0); |
| 3260 }; |
| 3261 $dynamic("removeEventListener$3").FileReader = function($0, $1, $2) { |
| 3262 return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 3263 }; |
| 3264 // ********** Code for FileReaderSync ************** |
| 3265 $dynamic("get$dartObjectLocalStorage").FileReaderSync = function() { return this
.dartObjectLocalStorage; }; |
| 3266 $dynamic("set$dartObjectLocalStorage").FileReaderSync = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 3267 // ********** Code for FileWriter ************** |
| 3268 $dynamic("get$length").FileWriter = function() { return this.length; }; |
| 3269 $dynamic("set$length").FileWriter = function(value) { return this.length = value
; }; |
| 3270 $dynamic("get$position").FileWriter = function() { return this.position; }; |
| 3271 $dynamic("set$position").FileWriter = function(value) { return this.position = v
alue; }; |
| 3272 $dynamic("get$readyState").FileWriter = function() { return this.readyState; }; |
| 3273 $dynamic("set$readyState").FileWriter = function(value) { return this.readyState
= value; }; |
| 3274 $dynamic("get$dartObjectLocalStorage").FileWriter = function() { return this.dar
tObjectLocalStorage; }; |
| 3275 $dynamic("set$dartObjectLocalStorage").FileWriter = function(value) { return thi
s.dartObjectLocalStorage = value; }; |
| 3276 // ********** Code for FileWriterSync ************** |
| 3277 $dynamic("get$length").FileWriterSync = function() { return this.length; }; |
| 3278 $dynamic("set$length").FileWriterSync = function(value) { return this.length = v
alue; }; |
| 3279 $dynamic("get$position").FileWriterSync = function() { return this.position; }; |
| 3280 $dynamic("set$position").FileWriterSync = function(value) { return this.position
= value; }; |
| 3281 $dynamic("get$dartObjectLocalStorage").FileWriterSync = function() { return this
.dartObjectLocalStorage; }; |
| 3282 $dynamic("set$dartObjectLocalStorage").FileWriterSync = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 3283 // ********** Code for Float32Array ************** |
| 3284 $dynamic("is$List").Float32Array = function(){return true}; |
| 3285 $dynamic("get$length").Float32Array = function() { return this.length; }; |
| 3286 $dynamic("set$length").Float32Array = function(value) { return this.length = val
ue; }; |
| 3287 // ********** Code for Float64Array ************** |
| 3288 $dynamic("is$List").Float64Array = function(){return true}; |
| 3289 $dynamic("get$length").Float64Array = function() { return this.length; }; |
| 3290 $dynamic("set$length").Float64Array = function(value) { return this.length = val
ue; }; |
| 3291 // ********** Code for Geolocation ************** |
| 3292 $dynamic("get$dartObjectLocalStorage").Geolocation = function() { return this.da
rtObjectLocalStorage; }; |
| 3293 $dynamic("set$dartObjectLocalStorage").Geolocation = function(value) { return th
is.dartObjectLocalStorage = value; }; |
| 3294 // ********** Code for Geoposition ************** |
| 3295 $dynamic("get$dartObjectLocalStorage").Geoposition = function() { return this.da
rtObjectLocalStorage; }; |
| 3296 $dynamic("set$dartObjectLocalStorage").Geoposition = function(value) { return th
is.dartObjectLocalStorage = value; }; |
| 3297 // ********** Code for HTMLAllCollection ************** |
| 3298 $dynamic("get$length").HTMLAllCollection = function() { return this.length; }; |
| 3299 $dynamic("set$length").HTMLAllCollection = function(value) { return this.length
= value; }; |
| 3300 $dynamic("get$dartObjectLocalStorage").HTMLAllCollection = function() { return t
his.dartObjectLocalStorage; }; |
| 3301 $dynamic("set$dartObjectLocalStorage").HTMLAllCollection = function(value) { ret
urn this.dartObjectLocalStorage = value; }; |
| 3302 $dynamic("item$1").HTMLAllCollection = function($0) { |
| 3303 return this.item($0); |
| 3304 }; |
| 3305 // ********** Code for dom_HTMLAnchorElement ************** |
| 3306 $dynamic("get$hash").HTMLAnchorElement = function() { return this.hash; }; |
| 3307 $dynamic("set$hash").HTMLAnchorElement = function(value) { return this.hash = va
lue; }; |
| 3308 $dynamic("get$host").HTMLAnchorElement = function() { return this.host; }; |
| 3309 $dynamic("set$host").HTMLAnchorElement = function(value) { return this.host = va
lue; }; |
| 3310 $dynamic("get$name").HTMLAnchorElement = function() { return this.name; }; |
| 3311 $dynamic("set$name").HTMLAnchorElement = function(value) { return this.name = va
lue; }; |
| 3312 $dynamic("get$protocol").HTMLAnchorElement = function() { return this.protocol;
}; |
| 3313 $dynamic("set$protocol").HTMLAnchorElement = function(value) { return this.proto
col = value; }; |
| 3314 $dynamic("get$target").HTMLAnchorElement = function() { return this.target; }; |
| 3315 $dynamic("set$target").HTMLAnchorElement = function(value) { return this.target
= value; }; |
| 3316 $dynamic("get$text").HTMLAnchorElement = function() { return this.text; }; |
| 3317 $dynamic("set$text").HTMLAnchorElement = function(value) { return this.text = va
lue; }; |
| 3318 $dynamic("get$type").HTMLAnchorElement = function() { return this.type; }; |
| 3319 $dynamic("set$type").HTMLAnchorElement = function(value) { return this.type = va
lue; }; |
| 3320 $dynamic("toString$0").HTMLAnchorElement = function() { |
| 3321 return this.toString(); |
| 3322 }; |
| 3323 // ********** Code for dom_HTMLAppletElement ************** |
| 3324 $dynamic("get$height").HTMLAppletElement = function() { return this.height; }; |
| 3325 $dynamic("set$height").HTMLAppletElement = function(value) { return this.height
= value; }; |
| 3326 $dynamic("get$name").HTMLAppletElement = function() { return this.name; }; |
| 3327 $dynamic("set$name").HTMLAppletElement = function(value) { return this.name = va
lue; }; |
| 3328 $dynamic("get$width").HTMLAppletElement = function() { return this.width; }; |
| 3329 $dynamic("set$width").HTMLAppletElement = function(value) { return this.width =
value; }; |
| 3330 // ********** Code for dom_HTMLAreaElement ************** |
| 3331 $dynamic("get$hash").HTMLAreaElement = function() { return this.hash; }; |
| 3332 $dynamic("set$hash").HTMLAreaElement = function(value) { return this.hash = valu
e; }; |
| 3333 $dynamic("get$host").HTMLAreaElement = function() { return this.host; }; |
| 3334 $dynamic("set$host").HTMLAreaElement = function(value) { return this.host = valu
e; }; |
| 3335 $dynamic("get$protocol").HTMLAreaElement = function() { return this.protocol; }; |
| 3336 $dynamic("set$protocol").HTMLAreaElement = function(value) { return this.protoco
l = value; }; |
| 3337 $dynamic("get$target").HTMLAreaElement = function() { return this.target; }; |
| 3338 $dynamic("set$target").HTMLAreaElement = function(value) { return this.target =
value; }; |
| 3339 // ********** Code for dom_HTMLAudioElement ************** |
| 3340 // ********** Code for dom_HTMLBRElement ************** |
| 3341 $dynamic("get$clear").HTMLBRElement = function() { return this.clear; }; |
| 3342 $dynamic("set$clear").HTMLBRElement = function(value) { return this.clear = valu
e; }; |
| 3343 $dynamic("clear$0").HTMLBRElement = function() { |
| 3344 return this.clear.call$0(); |
| 3345 }; |
| 3346 $dynamic("clear$1").HTMLBRElement = function($0) { |
| 3347 return this.clear.call$1($0); |
| 3348 }; |
| 3349 // ********** Code for dom_HTMLBaseElement ************** |
| 3350 $dynamic("get$target").HTMLBaseElement = function() { return this.target; }; |
| 3351 $dynamic("set$target").HTMLBaseElement = function(value) { return this.target =
value; }; |
| 3352 // ********** Code for dom_HTMLBaseFontElement ************** |
| 3353 // ********** Code for dom_HTMLBodyElement ************** |
| 3354 $dynamic("get$text").HTMLBodyElement = function() { return this.text; }; |
| 3355 $dynamic("set$text").HTMLBodyElement = function(value) { return this.text = valu
e; }; |
| 3356 // ********** Code for dom_HTMLButtonElement ************** |
| 3357 $dynamic("get$name").HTMLButtonElement = function() { return this.name; }; |
| 3358 $dynamic("set$name").HTMLButtonElement = function(value) { return this.name = va
lue; }; |
| 3359 $dynamic("get$type").HTMLButtonElement = function() { return this.type; }; |
| 3360 $dynamic("set$type").HTMLButtonElement = function(value) { return this.type = va
lue; }; |
| 3361 $dynamic("get$value").HTMLButtonElement = function() { return this.value; }; |
| 3362 $dynamic("set$value").HTMLButtonElement = function(value) { return this.value =
value; }; |
| 3363 $dynamic("get$click").HTMLButtonElement = function() { |
| 3364 return this.click.bind(this); |
| 3365 } |
| 3366 $dynamic("click$0").HTMLButtonElement = function() { |
| 3367 return this.click(); |
| 3368 }; |
| 3369 // ********** Code for dom_HTMLCanvasElement ************** |
| 3370 $dynamic("get$height").HTMLCanvasElement = function() { return this.height; }; |
| 3371 $dynamic("set$height").HTMLCanvasElement = function(value) { return this.height
= value; }; |
| 3372 $dynamic("get$width").HTMLCanvasElement = function() { return this.width; }; |
| 3373 $dynamic("set$width").HTMLCanvasElement = function(value) { return this.width =
value; }; |
| 3374 $dynamic("getContext$1").HTMLCanvasElement = function($0) { |
| 3375 return this.getContext($0); |
| 3376 }; |
| 3377 // ********** Code for dom_HTMLCollection ************** |
| 3378 $dynamic("get$length").HTMLCollection = function() { return this.length; }; |
| 3379 $dynamic("set$length").HTMLCollection = function(value) { return this.length = v
alue; }; |
| 3380 $dynamic("$setindex").HTMLCollection = function(index, value) { |
| 3381 $throw(new UnsupportedOperationException("Cannot assign element of immutable L
ist.")); |
| 3382 } |
| 3383 $dynamic("get$dartObjectLocalStorage").HTMLCollection = function() { return this
.dartObjectLocalStorage; }; |
| 3384 $dynamic("set$dartObjectLocalStorage").HTMLCollection = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 3385 $dynamic("item$1").HTMLCollection = function($0) { |
| 3386 if (Object.getPrototypeOf(this).hasOwnProperty("item$1")) { |
| 3387 return this.item($0); |
| 3388 } |
| 3389 return Object.prototype.item$1.call(this, $0); |
| 3390 }; |
| 3391 // ********** Code for dom_HTMLDListElement ************** |
| 3392 // ********** Code for dom_HTMLDataListElement ************** |
| 3393 // ********** Code for dom_HTMLDetailsElement ************** |
| 3394 $dynamic("get$open").HTMLDetailsElement = function() { return this.open; }; |
| 3395 $dynamic("set$open").HTMLDetailsElement = function(value) { return this.open = v
alue; }; |
| 3396 $dynamic("open$2").HTMLDetailsElement = function($0, $1) { |
| 3397 return this.open.call$2($0, $1); |
| 3398 }; |
| 3399 $dynamic("open$3").HTMLDetailsElement = function($0, $1, $2) { |
| 3400 return this.open($0, $1, $2); |
| 3401 }; |
| 3402 $dynamic("open$4").HTMLDetailsElement = function($0, $1, $2, $3) { |
| 3403 return this.open($0, $1, $2, $3); |
| 3404 }; |
| 3405 $dynamic("open$5").HTMLDetailsElement = function($0, $1, $2, $3, $4) { |
| 3406 return this.open($0, $1, $2, $3, $4); |
| 3407 }; |
| 3408 // ********** Code for dom_HTMLDirectoryElement ************** |
| 3409 // ********** Code for dom_HTMLDivElement ************** |
| 3410 // ********** Code for dom_HTMLDocument ************** |
| 3411 $dynamic("get$activeElement").HTMLDocument = function() { return this.activeElem
ent; }; |
| 3412 $dynamic("set$activeElement").HTMLDocument = function(value) { return this.activ
eElement = value; }; |
| 3413 $dynamic("get$clear").HTMLDocument = function() { |
| 3414 return this.clear.bind(this); |
| 3415 } |
| 3416 $dynamic("get$open").HTMLDocument = function() { |
| 3417 return this.open.bind(this); |
| 3418 } |
| 3419 $dynamic("clear$0").HTMLDocument = function() { |
| 3420 return this.clear(); |
| 3421 }; |
| 3422 // ********** Code for dom_HTMLElement ************** |
| 3423 $dynamic("get$children").HTMLElement = function() { return this.children; }; |
| 3424 $dynamic("set$children").HTMLElement = function(value) { return this.children =
value; }; |
| 3425 $dynamic("get$className").HTMLElement = function() { return this.className; }; |
| 3426 $dynamic("set$className").HTMLElement = function(value) { return this.className
= value; }; |
| 3427 $dynamic("get$id").HTMLElement = function() { return this.id; }; |
| 3428 $dynamic("set$id").HTMLElement = function(value) { return this.id = value; }; |
| 3429 $dynamic("get$innerHTML").HTMLElement = function() { return this.innerHTML; }; |
| 3430 $dynamic("set$innerHTML").HTMLElement = function(value) { return this.innerHTML
= value; }; |
| 3431 $dynamic("get$tabIndex").HTMLElement = function() { return this.tabIndex; }; |
| 3432 $dynamic("set$tabIndex").HTMLElement = function(value) { return this.tabIndex =
value; }; |
| 3433 $dynamic("get$title").HTMLElement = function() { return this.title; }; |
| 3434 $dynamic("set$title").HTMLElement = function(value) { return this.title = value;
}; |
| 3435 // ********** Code for dom_HTMLEmbedElement ************** |
| 3436 $dynamic("get$height").HTMLEmbedElement = function() { return this.height; }; |
| 3437 $dynamic("set$height").HTMLEmbedElement = function(value) { return this.height =
value; }; |
| 3438 $dynamic("get$name").HTMLEmbedElement = function() { return this.name; }; |
| 3439 $dynamic("set$name").HTMLEmbedElement = function(value) { return this.name = val
ue; }; |
| 3440 $dynamic("get$type").HTMLEmbedElement = function() { return this.type; }; |
| 3441 $dynamic("set$type").HTMLEmbedElement = function(value) { return this.type = val
ue; }; |
| 3442 $dynamic("get$width").HTMLEmbedElement = function() { return this.width; }; |
| 3443 $dynamic("set$width").HTMLEmbedElement = function(value) { return this.width = v
alue; }; |
| 3444 // ********** Code for dom_HTMLFieldSetElement ************** |
| 3445 // ********** Code for dom_HTMLFontElement ************** |
| 3446 // ********** Code for dom_HTMLFormElement ************** |
| 3447 $dynamic("get$elements").HTMLFormElement = function() { return this.elements; }; |
| 3448 $dynamic("set$elements").HTMLFormElement = function(value) { return this.element
s = value; }; |
| 3449 $dynamic("get$length").HTMLFormElement = function() { return this.length; }; |
| 3450 $dynamic("set$length").HTMLFormElement = function(value) { return this.length =
value; }; |
| 3451 $dynamic("get$name").HTMLFormElement = function() { return this.name; }; |
| 3452 $dynamic("set$name").HTMLFormElement = function(value) { return this.name = valu
e; }; |
| 3453 $dynamic("get$target").HTMLFormElement = function() { return this.target; }; |
| 3454 $dynamic("set$target").HTMLFormElement = function(value) { return this.target =
value; }; |
| 3455 // ********** Code for dom_HTMLFrameElement ************** |
| 3456 $dynamic("get$height").HTMLFrameElement = function() { return this.height; }; |
| 3457 $dynamic("set$height").HTMLFrameElement = function(value) { return this.height =
value; }; |
| 3458 $dynamic("get$location").HTMLFrameElement = function() { return this.location; }
; |
| 3459 $dynamic("set$location").HTMLFrameElement = function(value) { return this.locati
on = value; }; |
| 3460 $dynamic("get$name").HTMLFrameElement = function() { return this.name; }; |
| 3461 $dynamic("set$name").HTMLFrameElement = function(value) { return this.name = val
ue; }; |
| 3462 $dynamic("get$width").HTMLFrameElement = function() { return this.width; }; |
| 3463 $dynamic("set$width").HTMLFrameElement = function(value) { return this.width = v
alue; }; |
| 3464 // ********** Code for dom_HTMLFrameSetElement ************** |
| 3465 // ********** Code for dom_HTMLHRElement ************** |
| 3466 $dynamic("get$width").HTMLHRElement = function() { return this.width; }; |
| 3467 $dynamic("set$width").HTMLHRElement = function(value) { return this.width = valu
e; }; |
| 3468 // ********** Code for dom_HTMLHeadElement ************** |
| 3469 // ********** Code for dom_HTMLHeadingElement ************** |
| 3470 // ********** Code for dom_HTMLHtmlElement ************** |
| 3471 // ********** Code for dom_HTMLIFrameElement ************** |
| 3472 $dynamic("get$height").HTMLIFrameElement = function() { return this.height; }; |
| 3473 $dynamic("set$height").HTMLIFrameElement = function(value) { return this.height
= value; }; |
| 3474 $dynamic("get$name").HTMLIFrameElement = function() { return this.name; }; |
| 3475 $dynamic("set$name").HTMLIFrameElement = function(value) { return this.name = va
lue; }; |
| 3476 $dynamic("get$width").HTMLIFrameElement = function() { return this.width; }; |
| 3477 $dynamic("set$width").HTMLIFrameElement = function(value) { return this.width =
value; }; |
| 3478 // ********** Code for dom_HTMLImageElement ************** |
| 3479 $dynamic("get$complete").HTMLImageElement = function() { return this.complete; }
; |
| 3480 $dynamic("set$complete").HTMLImageElement = function(value) { return this.comple
te = value; }; |
| 3481 $dynamic("get$height").HTMLImageElement = function() { return this.height; }; |
| 3482 $dynamic("set$height").HTMLImageElement = function(value) { return this.height =
value; }; |
| 3483 $dynamic("get$name").HTMLImageElement = function() { return this.name; }; |
| 3484 $dynamic("set$name").HTMLImageElement = function(value) { return this.name = val
ue; }; |
| 3485 $dynamic("get$width").HTMLImageElement = function() { return this.width; }; |
| 3486 $dynamic("set$width").HTMLImageElement = function(value) { return this.width = v
alue; }; |
| 3487 $dynamic("get$x").HTMLImageElement = function() { return this.x; }; |
| 3488 $dynamic("set$x").HTMLImageElement = function(value) { return this.x = value; }; |
| 3489 $dynamic("get$y").HTMLImageElement = function() { return this.y; }; |
| 3490 $dynamic("set$y").HTMLImageElement = function(value) { return this.y = value; }; |
| 3491 $dynamic("complete$1").HTMLImageElement = function($0) { |
| 3492 return this.complete.call$1($0); |
| 3493 }; |
| 3494 // ********** Code for dom_HTMLInputElement ************** |
| 3495 $dynamic("get$name").HTMLInputElement = function() { return this.name; }; |
| 3496 $dynamic("set$name").HTMLInputElement = function(value) { return this.name = val
ue; }; |
| 3497 $dynamic("get$type").HTMLInputElement = function() { return this.type; }; |
| 3498 $dynamic("set$type").HTMLInputElement = function(value) { return this.type = val
ue; }; |
| 3499 $dynamic("get$value").HTMLInputElement = function() { return this.value; }; |
| 3500 $dynamic("set$value").HTMLInputElement = function(value) { return this.value = v
alue; }; |
| 3501 $dynamic("get$click").HTMLInputElement = function() { |
| 3502 return this.click.bind(this); |
| 3503 } |
| 3504 $dynamic("click$0").HTMLInputElement = function() { |
| 3505 return this.click(); |
| 3506 }; |
| 3507 // ********** Code for dom_HTMLIsIndexElement ************** |
| 3508 // ********** Code for dom_HTMLKeygenElement ************** |
| 3509 $dynamic("get$name").HTMLKeygenElement = function() { return this.name; }; |
| 3510 $dynamic("set$name").HTMLKeygenElement = function(value) { return this.name = va
lue; }; |
| 3511 $dynamic("get$type").HTMLKeygenElement = function() { return this.type; }; |
| 3512 $dynamic("set$type").HTMLKeygenElement = function(value) { return this.type = va
lue; }; |
| 3513 // ********** Code for dom_HTMLLIElement ************** |
| 3514 $dynamic("get$type").HTMLLIElement = function() { return this.type; }; |
| 3515 $dynamic("set$type").HTMLLIElement = function(value) { return this.type = value;
}; |
| 3516 $dynamic("get$value").HTMLLIElement = function() { return this.value; }; |
| 3517 $dynamic("set$value").HTMLLIElement = function(value) { return this.value = valu
e; }; |
| 3518 // ********** Code for dom_HTMLLabelElement ************** |
| 3519 // ********** Code for dom_HTMLLegendElement ************** |
| 3520 // ********** Code for dom_HTMLLinkElement ************** |
| 3521 $dynamic("get$target").HTMLLinkElement = function() { return this.target; }; |
| 3522 $dynamic("set$target").HTMLLinkElement = function(value) { return this.target =
value; }; |
| 3523 $dynamic("get$type").HTMLLinkElement = function() { return this.type; }; |
| 3524 $dynamic("set$type").HTMLLinkElement = function(value) { return this.type = valu
e; }; |
| 3525 // ********** Code for dom_HTMLMapElement ************** |
| 3526 $dynamic("get$name").HTMLMapElement = function() { return this.name; }; |
| 3527 $dynamic("set$name").HTMLMapElement = function(value) { return this.name = value
; }; |
| 3528 // ********** Code for dom_HTMLMarqueeElement ************** |
| 3529 $dynamic("get$height").HTMLMarqueeElement = function() { return this.height; }; |
| 3530 $dynamic("set$height").HTMLMarqueeElement = function(value) { return this.height
= value; }; |
| 3531 $dynamic("get$width").HTMLMarqueeElement = function() { return this.width; }; |
| 3532 $dynamic("set$width").HTMLMarqueeElement = function(value) { return this.width =
value; }; |
| 3533 $dynamic("get$start").HTMLMarqueeElement = function() { |
| 3534 return this.start.bind(this); |
| 3535 } |
| 3536 $dynamic("start$0").HTMLMarqueeElement = function() { |
| 3537 return this.start(); |
| 3538 }; |
| 3539 // ********** Code for dom_HTMLMediaElement ************** |
| 3540 $dynamic("get$readyState").HTMLMediaElement = function() { return this.readyStat
e; }; |
| 3541 $dynamic("set$readyState").HTMLMediaElement = function(value) { return this.read
yState = value; }; |
| 3542 $dynamic("get$load").HTMLMediaElement = function() { |
| 3543 return this.load.bind(this); |
| 3544 } |
| 3545 $dynamic("load$0").HTMLMediaElement = function() { |
| 3546 return this.load(); |
| 3547 }; |
| 3548 // ********** Code for dom_HTMLMenuElement ************** |
| 3549 // ********** Code for dom_HTMLMetaElement ************** |
| 3550 $dynamic("get$name").HTMLMetaElement = function() { return this.name; }; |
| 3551 $dynamic("set$name").HTMLMetaElement = function(value) { return this.name = valu
e; }; |
| 3552 // ********** Code for dom_HTMLMeterElement ************** |
| 3553 $dynamic("get$value").HTMLMeterElement = function() { return this.value; }; |
| 3554 $dynamic("set$value").HTMLMeterElement = function(value) { return this.value = v
alue; }; |
| 3555 // ********** Code for dom_HTMLModElement ************** |
| 3556 // ********** Code for dom_HTMLOListElement ************** |
| 3557 $dynamic("get$start").HTMLOListElement = function() { return this.start; }; |
| 3558 $dynamic("set$start").HTMLOListElement = function(value) { return this.start = v
alue; }; |
| 3559 $dynamic("get$type").HTMLOListElement = function() { return this.type; }; |
| 3560 $dynamic("set$type").HTMLOListElement = function(value) { return this.type = val
ue; }; |
| 3561 $dynamic("start$0").HTMLOListElement = function() { |
| 3562 return this.start.call$0(); |
| 3563 }; |
| 3564 // ********** Code for dom_HTMLObjectElement ************** |
| 3565 $dynamic("get$height").HTMLObjectElement = function() { return this.height; }; |
| 3566 $dynamic("set$height").HTMLObjectElement = function(value) { return this.height
= value; }; |
| 3567 $dynamic("get$name").HTMLObjectElement = function() { return this.name; }; |
| 3568 $dynamic("set$name").HTMLObjectElement = function(value) { return this.name = va
lue; }; |
| 3569 $dynamic("get$type").HTMLObjectElement = function() { return this.type; }; |
| 3570 $dynamic("set$type").HTMLObjectElement = function(value) { return this.type = va
lue; }; |
| 3571 $dynamic("get$width").HTMLObjectElement = function() { return this.width; }; |
| 3572 $dynamic("set$width").HTMLObjectElement = function(value) { return this.width =
value; }; |
| 3573 // ********** Code for dom_HTMLOptGroupElement ************** |
| 3574 // ********** Code for dom_HTMLOptionElement ************** |
| 3575 $dynamic("get$text").HTMLOptionElement = function() { return this.text; }; |
| 3576 $dynamic("set$text").HTMLOptionElement = function(value) { return this.text = va
lue; }; |
| 3577 $dynamic("get$value").HTMLOptionElement = function() { return this.value; }; |
| 3578 $dynamic("set$value").HTMLOptionElement = function(value) { return this.value =
value; }; |
| 3579 // ********** Code for dom_HTMLOptionsCollection ************** |
| 3580 $dynamic("get$length").HTMLOptionsCollection = function() { return this.length;
}; |
| 3581 $dynamic("set$length").HTMLOptionsCollection = function(value) { return this.len
gth = value; }; |
| 3582 $dynamic("remove$1").HTMLOptionsCollection = function($0) { |
| 3583 return this.remove($0); |
| 3584 }; |
| 3585 // ********** Code for dom_HTMLOutputElement ************** |
| 3586 $dynamic("get$name").HTMLOutputElement = function() { return this.name; }; |
| 3587 $dynamic("set$name").HTMLOutputElement = function(value) { return this.name = va
lue; }; |
| 3588 $dynamic("get$type").HTMLOutputElement = function() { return this.type; }; |
| 3589 $dynamic("set$type").HTMLOutputElement = function(value) { return this.type = va
lue; }; |
| 3590 $dynamic("get$value").HTMLOutputElement = function() { return this.value; }; |
| 3591 $dynamic("set$value").HTMLOutputElement = function(value) { return this.value =
value; }; |
| 3592 // ********** Code for dom_HTMLParagraphElement ************** |
| 3593 // ********** Code for dom_HTMLParamElement ************** |
| 3594 $dynamic("get$name").HTMLParamElement = function() { return this.name; }; |
| 3595 $dynamic("set$name").HTMLParamElement = function(value) { return this.name = val
ue; }; |
| 3596 $dynamic("get$type").HTMLParamElement = function() { return this.type; }; |
| 3597 $dynamic("set$type").HTMLParamElement = function(value) { return this.type = val
ue; }; |
| 3598 $dynamic("get$value").HTMLParamElement = function() { return this.value; }; |
| 3599 $dynamic("set$value").HTMLParamElement = function(value) { return this.value = v
alue; }; |
| 3600 // ********** Code for dom_HTMLPreElement ************** |
| 3601 $dynamic("get$width").HTMLPreElement = function() { return this.width; }; |
| 3602 $dynamic("set$width").HTMLPreElement = function(value) { return this.width = val
ue; }; |
| 3603 // ********** Code for dom_HTMLProgressElement ************** |
| 3604 $dynamic("get$position").HTMLProgressElement = function() { return this.position
; }; |
| 3605 $dynamic("set$position").HTMLProgressElement = function(value) { return this.pos
ition = value; }; |
| 3606 $dynamic("get$value").HTMLProgressElement = function() { return this.value; }; |
| 3607 $dynamic("set$value").HTMLProgressElement = function(value) { return this.value
= value; }; |
| 3608 // ********** Code for dom_HTMLPropertiesCollection ************** |
| 3609 $dynamic("get$length").HTMLPropertiesCollection = function() { return this.lengt
h; }; |
| 3610 $dynamic("set$length").HTMLPropertiesCollection = function(value) { return this.
length = value; }; |
| 3611 $dynamic("item$1").HTMLPropertiesCollection = function($0) { |
| 3612 return this.item($0); |
| 3613 }; |
| 3614 // ********** Code for dom_HTMLQuoteElement ************** |
| 3615 // ********** Code for dom_HTMLScriptElement ************** |
| 3616 $dynamic("get$text").HTMLScriptElement = function() { return this.text; }; |
| 3617 $dynamic("set$text").HTMLScriptElement = function(value) { return this.text = va
lue; }; |
| 3618 $dynamic("get$type").HTMLScriptElement = function() { return this.type; }; |
| 3619 $dynamic("set$type").HTMLScriptElement = function(value) { return this.type = va
lue; }; |
| 3620 // ********** Code for dom_HTMLSelectElement ************** |
| 3621 $dynamic("get$length").HTMLSelectElement = function() { return this.length; }; |
| 3622 $dynamic("set$length").HTMLSelectElement = function(value) { return this.length
= value; }; |
| 3623 $dynamic("get$name").HTMLSelectElement = function() { return this.name; }; |
| 3624 $dynamic("set$name").HTMLSelectElement = function(value) { return this.name = va
lue; }; |
| 3625 $dynamic("get$type").HTMLSelectElement = function() { return this.type; }; |
| 3626 $dynamic("set$type").HTMLSelectElement = function(value) { return this.type = va
lue; }; |
| 3627 $dynamic("get$value").HTMLSelectElement = function() { return this.value; }; |
| 3628 $dynamic("set$value").HTMLSelectElement = function(value) { return this.value =
value; }; |
| 3629 $dynamic("add$2").HTMLSelectElement = function($0, $1) { |
| 3630 return this.add($0, $1); |
| 3631 }; |
| 3632 $dynamic("item$1").HTMLSelectElement = function($0) { |
| 3633 return this.item($0); |
| 3634 }; |
| 3635 $dynamic("remove$1").HTMLSelectElement = function($0) { |
| 3636 return this.remove($0); |
| 3637 }; |
| 3638 // ********** Code for dom_HTMLSourceElement ************** |
| 3639 $dynamic("get$type").HTMLSourceElement = function() { return this.type; }; |
| 3640 $dynamic("set$type").HTMLSourceElement = function(value) { return this.type = va
lue; }; |
| 3641 // ********** Code for dom_HTMLSpanElement ************** |
| 3642 // ********** Code for dom_HTMLStyleElement ************** |
| 3643 $dynamic("get$type").HTMLStyleElement = function() { return this.type; }; |
| 3644 $dynamic("set$type").HTMLStyleElement = function(value) { return this.type = val
ue; }; |
| 3645 // ********** Code for dom_HTMLTableCaptionElement ************** |
| 3646 // ********** Code for dom_HTMLTableCellElement ************** |
| 3647 $dynamic("get$height").HTMLTableCellElement = function() { return this.height; }
; |
| 3648 $dynamic("set$height").HTMLTableCellElement = function(value) { return this.heig
ht = value; }; |
| 3649 $dynamic("get$rowSpan").HTMLTableCellElement = function() { return this.rowSpan;
}; |
| 3650 $dynamic("set$rowSpan").HTMLTableCellElement = function(value) { return this.row
Span = value; }; |
| 3651 $dynamic("get$width").HTMLTableCellElement = function() { return this.width; }; |
| 3652 $dynamic("set$width").HTMLTableCellElement = function(value) { return this.width
= value; }; |
| 3653 // ********** Code for dom_HTMLTableColElement ************** |
| 3654 $dynamic("get$width").HTMLTableColElement = function() { return this.width; }; |
| 3655 $dynamic("set$width").HTMLTableColElement = function(value) { return this.width
= value; }; |
| 3656 // ********** Code for dom_HTMLTableElement ************** |
| 3657 $dynamic("get$width").HTMLTableElement = function() { return this.width; }; |
| 3658 $dynamic("set$width").HTMLTableElement = function(value) { return this.width = v
alue; }; |
| 3659 // ********** Code for dom_HTMLTableRowElement ************** |
| 3660 // ********** Code for dom_HTMLTableSectionElement ************** |
| 3661 // ********** Code for dom_HTMLTextAreaElement ************** |
| 3662 $dynamic("get$name").HTMLTextAreaElement = function() { return this.name; }; |
| 3663 $dynamic("set$name").HTMLTextAreaElement = function(value) { return this.name =
value; }; |
| 3664 $dynamic("get$type").HTMLTextAreaElement = function() { return this.type; }; |
| 3665 $dynamic("set$type").HTMLTextAreaElement = function(value) { return this.type =
value; }; |
| 3666 $dynamic("get$value").HTMLTextAreaElement = function() { return this.value; }; |
| 3667 $dynamic("set$value").HTMLTextAreaElement = function(value) { return this.value
= value; }; |
| 3668 // ********** Code for dom_HTMLTitleElement ************** |
| 3669 $dynamic("get$text").HTMLTitleElement = function() { return this.text; }; |
| 3670 $dynamic("set$text").HTMLTitleElement = function(value) { return this.text = val
ue; }; |
| 3671 // ********** Code for dom_HTMLTrackElement ************** |
| 3672 $dynamic("get$readyState").HTMLTrackElement = function() { return this.readyStat
e; }; |
| 3673 $dynamic("set$readyState").HTMLTrackElement = function(value) { return this.read
yState = value; }; |
| 3674 // ********** Code for dom_HTMLUListElement ************** |
| 3675 $dynamic("get$type").HTMLUListElement = function() { return this.type; }; |
| 3676 $dynamic("set$type").HTMLUListElement = function(value) { return this.type = val
ue; }; |
| 3677 // ********** Code for dom_HTMLUnknownElement ************** |
| 3678 // ********** Code for dom_HTMLVideoElement ************** |
| 3679 $dynamic("get$height").HTMLVideoElement = function() { return this.height; }; |
| 3680 $dynamic("set$height").HTMLVideoElement = function(value) { return this.height =
value; }; |
| 3681 $dynamic("get$width").HTMLVideoElement = function() { return this.width; }; |
| 3682 $dynamic("set$width").HTMLVideoElement = function(value) { return this.width = v
alue; }; |
| 3683 // ********** Code for HashChangeEvent ************** |
| 3684 // ********** Code for HighPass2FilterNode ************** |
| 3685 // ********** Code for History ************** |
| 3686 $dynamic("get$length").History = function() { return this.length; }; |
| 3687 $dynamic("set$length").History = function(value) { return this.length = value; }
; |
| 3688 $dynamic("get$dartObjectLocalStorage").History = function() { return this.dartOb
jectLocalStorage; }; |
| 3689 $dynamic("set$dartObjectLocalStorage").History = function(value) { return this.d
artObjectLocalStorage = value; }; |
| 3690 $dynamic("back$0").History = function() { |
| 3691 return this.back(); |
| 3692 }; |
| 3693 $dynamic("forward$0").History = function() { |
| 3694 return this.forward(); |
| 3695 }; |
| 3696 $dynamic("pushState$2").History = function($0, $1) { |
| 3697 return this.pushState($0, $1); |
| 3698 }; |
| 3699 $dynamic("pushState$3").History = function($0, $1, $2) { |
| 3700 return this.pushState($0, $1, $2); |
| 3701 }; |
| 3702 $dynamic("replaceState$2").History = function($0, $1) { |
| 3703 return this.replaceState($0, $1); |
| 3704 }; |
| 3705 $dynamic("replaceState$3").History = function($0, $1, $2) { |
| 3706 return this.replaceState($0, $1, $2); |
| 3707 }; |
| 3708 // ********** Code for IDBAny ************** |
| 3709 $dynamic("get$dartObjectLocalStorage").IDBAny = function() { return this.dartObj
ectLocalStorage; }; |
| 3710 $dynamic("set$dartObjectLocalStorage").IDBAny = function(value) { return this.da
rtObjectLocalStorage = value; }; |
| 3711 // ********** Code for IDBCursor ************** |
| 3712 $dynamic("get$source").IDBCursor = function() { return this.source; }; |
| 3713 $dynamic("set$source").IDBCursor = function(value) { return this.source = value;
}; |
| 3714 $dynamic("get$dartObjectLocalStorage").IDBCursor = function() { return this.dart
ObjectLocalStorage; }; |
| 3715 $dynamic("set$dartObjectLocalStorage").IDBCursor = function(value) { return this
.dartObjectLocalStorage = value; }; |
| 3716 // ********** Code for IDBCursorWithValue ************** |
| 3717 $dynamic("get$value").IDBCursorWithValue = function() { return this.value; }; |
| 3718 $dynamic("set$value").IDBCursorWithValue = function(value) { return this.value =
value; }; |
| 3719 // ********** Code for IDBDatabase ************** |
| 3720 $dynamic("get$name").IDBDatabase = function() { return this.name; }; |
| 3721 $dynamic("set$name").IDBDatabase = function(value) { return this.name = value; }
; |
| 3722 $dynamic("get$dartObjectLocalStorage").IDBDatabase = function() { return this.da
rtObjectLocalStorage; }; |
| 3723 $dynamic("set$dartObjectLocalStorage").IDBDatabase = function(value) { return th
is.dartObjectLocalStorage = value; }; |
| 3724 $dynamic("addEventListener$3").IDBDatabase = function($0, $1, $2) { |
| 3725 return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 3726 }; |
| 3727 $dynamic("dispatchEvent$1").IDBDatabase = function($0) { |
| 3728 return this.dispatchEvent($0); |
| 3729 }; |
| 3730 $dynamic("removeEventListener$3").IDBDatabase = function($0, $1, $2) { |
| 3731 return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 3732 }; |
| 3733 // ********** Code for IDBDatabaseError ************** |
| 3734 $dynamic("get$dartObjectLocalStorage").IDBDatabaseError = function() { return th
is.dartObjectLocalStorage; }; |
| 3735 $dynamic("set$dartObjectLocalStorage").IDBDatabaseError = function(value) { retu
rn this.dartObjectLocalStorage = value; }; |
| 3736 // ********** Code for IDBDatabaseException ************** |
| 3737 $dynamic("get$name").IDBDatabaseException = function() { return this.name; }; |
| 3738 $dynamic("set$name").IDBDatabaseException = function(value) { return this.name =
value; }; |
| 3739 $dynamic("get$dartObjectLocalStorage").IDBDatabaseException = function() { retur
n this.dartObjectLocalStorage; }; |
| 3740 $dynamic("set$dartObjectLocalStorage").IDBDatabaseException = function(value) {
return this.dartObjectLocalStorage = value; }; |
| 3741 $dynamic("toString$0").IDBDatabaseException = function() { |
| 3742 return this.toString(); |
| 3743 }; |
| 3744 // ********** Code for IDBFactory ************** |
| 3745 $dynamic("get$open").IDBFactory = function() { |
| 3746 return this.open.bind(this); |
| 3747 } |
| 3748 $dynamic("get$dartObjectLocalStorage").IDBFactory = function() { return this.dar
tObjectLocalStorage; }; |
| 3749 $dynamic("set$dartObjectLocalStorage").IDBFactory = function(value) { return thi
s.dartObjectLocalStorage = value; }; |
| 3750 // ********** Code for IDBIndex ************** |
| 3751 $dynamic("get$name").IDBIndex = function() { return this.name; }; |
| 3752 $dynamic("set$name").IDBIndex = function(value) { return this.name = value; }; |
| 3753 $dynamic("get$dartObjectLocalStorage").IDBIndex = function() { return this.dartO
bjectLocalStorage; }; |
| 3754 $dynamic("set$dartObjectLocalStorage").IDBIndex = function(value) { return this.
dartObjectLocalStorage = value; }; |
| 3755 // ********** Code for IDBKey ************** |
| 3756 $dynamic("get$dartObjectLocalStorage").IDBKey = function() { return this.dartObj
ectLocalStorage; }; |
| 3757 $dynamic("set$dartObjectLocalStorage").IDBKey = function(value) { return this.da
rtObjectLocalStorage = value; }; |
| 3758 // ********** Code for IDBKeyRange ************** |
| 3759 $dynamic("get$dartObjectLocalStorage").IDBKeyRange = function() { return this.da
rtObjectLocalStorage; }; |
| 3760 $dynamic("set$dartObjectLocalStorage").IDBKeyRange = function(value) { return th
is.dartObjectLocalStorage = value; }; |
| 3761 // ********** Code for IDBObjectStore ************** |
| 3762 $dynamic("get$name").IDBObjectStore = function() { return this.name; }; |
| 3763 $dynamic("set$name").IDBObjectStore = function(value) { return this.name = value
; }; |
| 3764 $dynamic("get$clear").IDBObjectStore = function() { |
| 3765 return this.clear.bind(this); |
| 3766 } |
| 3767 $dynamic("get$dartObjectLocalStorage").IDBObjectStore = function() { return this
.dartObjectLocalStorage; }; |
| 3768 $dynamic("set$dartObjectLocalStorage").IDBObjectStore = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 3769 $dynamic("add$1").IDBObjectStore = function($0) { |
| 3770 return this.add($0); |
| 3771 }; |
| 3772 $dynamic("add$2").IDBObjectStore = function($0, $1) { |
| 3773 return this.add($0, $1); |
| 3774 }; |
| 3775 $dynamic("clear$0").IDBObjectStore = function() { |
| 3776 return this.clear(); |
| 3777 }; |
| 3778 // ********** Code for IDBRequest ************** |
| 3779 $dynamic("get$readyState").IDBRequest = function() { return this.readyState; }; |
| 3780 $dynamic("set$readyState").IDBRequest = function(value) { return this.readyState
= value; }; |
| 3781 $dynamic("get$source").IDBRequest = function() { return this.source; }; |
| 3782 $dynamic("set$source").IDBRequest = function(value) { return this.source = value
; }; |
| 3783 $dynamic("get$dartObjectLocalStorage").IDBRequest = function() { return this.dar
tObjectLocalStorage; }; |
| 3784 $dynamic("set$dartObjectLocalStorage").IDBRequest = function(value) { return thi
s.dartObjectLocalStorage = value; }; |
| 3785 $dynamic("addEventListener$3").IDBRequest = function($0, $1, $2) { |
| 3786 return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 3787 }; |
| 3788 $dynamic("dispatchEvent$1").IDBRequest = function($0) { |
| 3789 return this.dispatchEvent($0); |
| 3790 }; |
| 3791 $dynamic("removeEventListener$3").IDBRequest = function($0, $1, $2) { |
| 3792 return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 3793 }; |
| 3794 // ********** Code for IDBTransaction ************** |
| 3795 $dynamic("get$dartObjectLocalStorage").IDBTransaction = function() { return this
.dartObjectLocalStorage; }; |
| 3796 $dynamic("set$dartObjectLocalStorage").IDBTransaction = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 3797 $dynamic("addEventListener$3").IDBTransaction = function($0, $1, $2) { |
| 3798 return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 3799 }; |
| 3800 $dynamic("dispatchEvent$1").IDBTransaction = function($0) { |
| 3801 return this.dispatchEvent($0); |
| 3802 }; |
| 3803 $dynamic("removeEventListener$3").IDBTransaction = function($0, $1, $2) { |
| 3804 return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 3805 }; |
| 3806 // ********** Code for IDBVersionChangeEvent ************** |
| 3807 // ********** Code for IDBVersionChangeRequest ************** |
| 3808 // ********** Code for ImageData ************** |
| 3809 $dynamic("get$height").ImageData = function() { return this.height; }; |
| 3810 $dynamic("set$height").ImageData = function(value) { return this.height = value;
}; |
| 3811 $dynamic("get$width").ImageData = function() { return this.width; }; |
| 3812 $dynamic("set$width").ImageData = function(value) { return this.width = value; }
; |
| 3813 $dynamic("get$dartObjectLocalStorage").ImageData = function() { return this.dart
ObjectLocalStorage; }; |
| 3814 $dynamic("set$dartObjectLocalStorage").ImageData = function(value) { return this
.dartObjectLocalStorage = value; }; |
| 3815 // ********** Code for dom_InjectedScriptHost ************** |
| 3816 $dynamic("get$type").InjectedScriptHost = function() { |
| 3817 return this.type.bind(this); |
| 3818 } |
| 3819 $dynamic("get$dartObjectLocalStorage").InjectedScriptHost = function() { return
this.dartObjectLocalStorage; }; |
| 3820 $dynamic("set$dartObjectLocalStorage").InjectedScriptHost = function(value) { re
turn this.dartObjectLocalStorage = value; }; |
| 3821 // ********** Code for dom_InspectorFrontendHost ************** |
| 3822 $dynamic("get$dartObjectLocalStorage").InspectorFrontendHost = function() { retu
rn this.dartObjectLocalStorage; }; |
| 3823 $dynamic("set$dartObjectLocalStorage").InspectorFrontendHost = function(value) {
return this.dartObjectLocalStorage = value; }; |
| 3824 // ********** Code for Int16Array ************** |
| 3825 $dynamic("is$List").Int16Array = function(){return true}; |
| 3826 $dynamic("get$length").Int16Array = function() { return this.length; }; |
| 3827 $dynamic("set$length").Int16Array = function(value) { return this.length = value
; }; |
| 3828 // ********** Code for Int32Array ************** |
| 3829 $dynamic("is$List").Int32Array = function(){return true}; |
| 3830 $dynamic("get$length").Int32Array = function() { return this.length; }; |
| 3831 $dynamic("set$length").Int32Array = function(value) { return this.length = value
; }; |
| 3832 // ********** Code for Int8Array ************** |
| 3833 $dynamic("is$List").Int8Array = function(){return true}; |
| 3834 $dynamic("get$length").Int8Array = function() { return this.length; }; |
| 3835 $dynamic("set$length").Int8Array = function(value) { return this.length = value;
}; |
| 3836 // ********** Code for JavaScriptAudioNode ************** |
| 3837 // ********** Code for dom_JavaScriptCallFrame ************** |
| 3838 $dynamic("get$column").JavaScriptCallFrame = function() { return this.column; }; |
| 3839 $dynamic("set$column").JavaScriptCallFrame = function(value) { return this.colum
n = value; }; |
| 3840 $dynamic("get$type").JavaScriptCallFrame = function() { return this.type; }; |
| 3841 $dynamic("set$type").JavaScriptCallFrame = function(value) { return this.type =
value; }; |
| 3842 $dynamic("get$dartObjectLocalStorage").JavaScriptCallFrame = function() { return
this.dartObjectLocalStorage; }; |
| 3843 $dynamic("set$dartObjectLocalStorage").JavaScriptCallFrame = function(value) { r
eturn this.dartObjectLocalStorage = value; }; |
| 3844 // ********** Code for KeyboardEvent ************** |
| 3845 // ********** Code for Location ************** |
| 3846 $dynamic("get$hash").Location = function() { return this.hash; }; |
| 3847 $dynamic("set$hash").Location = function(value) { return this.hash = value; }; |
| 3848 $dynamic("get$host").Location = function() { return this.host; }; |
| 3849 $dynamic("set$host").Location = function(value) { return this.host = value; }; |
| 3850 $dynamic("get$protocol").Location = function() { return this.protocol; }; |
| 3851 $dynamic("set$protocol").Location = function(value) { return this.protocol = val
ue; }; |
| 3852 $dynamic("get$dartObjectLocalStorage").Location = function() { return this.dartO
bjectLocalStorage; }; |
| 3853 $dynamic("set$dartObjectLocalStorage").Location = function(value) { return this.
dartObjectLocalStorage = value; }; |
| 3854 $dynamic("reload$0").Location = function() { |
| 3855 return this.reload(); |
| 3856 }; |
| 3857 $dynamic("toString$0").Location = function() { |
| 3858 return this.toString(); |
| 3859 }; |
| 3860 // ********** Code for LowPass2FilterNode ************** |
| 3861 // ********** Code for dom_MediaController ************** |
| 3862 $dynamic("get$dartObjectLocalStorage").MediaController = function() { return thi
s.dartObjectLocalStorage; }; |
| 3863 $dynamic("set$dartObjectLocalStorage").MediaController = function(value) { retur
n this.dartObjectLocalStorage = value; }; |
| 3864 $dynamic("addEventListener$3").MediaController = function($0, $1, $2) { |
| 3865 return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 3866 }; |
| 3867 $dynamic("dispatchEvent$1").MediaController = function($0) { |
| 3868 return this.dispatchEvent($0); |
| 3869 }; |
| 3870 $dynamic("removeEventListener$3").MediaController = function($0, $1, $2) { |
| 3871 return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 3872 }; |
| 3873 // ********** Code for MediaElementAudioSourceNode ************** |
| 3874 // ********** Code for MediaError ************** |
| 3875 $dynamic("get$dartObjectLocalStorage").MediaError = function() { return this.dar
tObjectLocalStorage; }; |
| 3876 $dynamic("set$dartObjectLocalStorage").MediaError = function(value) { return thi
s.dartObjectLocalStorage = value; }; |
| 3877 // ********** Code for MediaList ************** |
| 3878 $dynamic("get$length").MediaList = function() { return this.length; }; |
| 3879 $dynamic("set$length").MediaList = function(value) { return this.length = value;
}; |
| 3880 $dynamic("$setindex").MediaList = function(index, value) { |
| 3881 $throw(new UnsupportedOperationException("Cannot assign element of immutable L
ist.")); |
| 3882 } |
| 3883 $dynamic("get$dartObjectLocalStorage").MediaList = function() { return this.dart
ObjectLocalStorage; }; |
| 3884 $dynamic("set$dartObjectLocalStorage").MediaList = function(value) { return this
.dartObjectLocalStorage = value; }; |
| 3885 $dynamic("item$1").MediaList = function($0) { |
| 3886 return this.item($0); |
| 3887 }; |
| 3888 // ********** Code for MediaQueryList ************** |
| 3889 $dynamic("get$dartObjectLocalStorage").MediaQueryList = function() { return this
.dartObjectLocalStorage; }; |
| 3890 $dynamic("set$dartObjectLocalStorage").MediaQueryList = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 3891 // ********** Code for MediaQueryListListener ************** |
| 3892 $dynamic("get$dartObjectLocalStorage").MediaQueryListListener = function() { ret
urn this.dartObjectLocalStorage; }; |
| 3893 $dynamic("set$dartObjectLocalStorage").MediaQueryListListener = function(value)
{ return this.dartObjectLocalStorage = value; }; |
| 3894 // ********** Code for dom_MemoryInfo ************** |
| 3895 $dynamic("get$dartObjectLocalStorage").MemoryInfo = function() { return this.dar
tObjectLocalStorage; }; |
| 3896 $dynamic("set$dartObjectLocalStorage").MemoryInfo = function(value) { return thi
s.dartObjectLocalStorage = value; }; |
| 3897 // ********** Code for MessageChannel ************** |
| 3898 $dynamic("get$dartObjectLocalStorage").MessageChannel = function() { return this
.dartObjectLocalStorage; }; |
| 3899 $dynamic("set$dartObjectLocalStorage").MessageChannel = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 3900 // ********** Code for MessageEvent ************** |
| 3901 $dynamic("get$source").MessageEvent = function() { return this.source; }; |
| 3902 $dynamic("set$source").MessageEvent = function(value) { return this.source = val
ue; }; |
| 3903 // ********** Code for MessagePort ************** |
| 3904 $dynamic("get$start").MessagePort = function() { |
| 3905 return this.start.bind(this); |
| 3906 } |
| 3907 $dynamic("get$dartObjectLocalStorage").MessagePort = function() { return this.da
rtObjectLocalStorage; }; |
| 3908 $dynamic("set$dartObjectLocalStorage").MessagePort = function(value) { return th
is.dartObjectLocalStorage = value; }; |
| 3909 $dynamic("addEventListener$3").MessagePort = function($0, $1, $2) { |
| 3910 return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 3911 }; |
| 3912 $dynamic("dispatchEvent$1").MessagePort = function($0) { |
| 3913 return this.dispatchEvent($0); |
| 3914 }; |
| 3915 $dynamic("postMessage$1").MessagePort = function($0) { |
| 3916 return this.postMessage($0); |
| 3917 }; |
| 3918 $dynamic("postMessage$2").MessagePort = function($0, $1) { |
| 3919 return this.postMessage($0, $1); |
| 3920 }; |
| 3921 $dynamic("removeEventListener$3").MessagePort = function($0, $1, $2) { |
| 3922 return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 3923 }; |
| 3924 $dynamic("start$0").MessagePort = function() { |
| 3925 return this.start(); |
| 3926 }; |
| 3927 // ********** Code for Metadata ************** |
| 3928 $dynamic("get$dartObjectLocalStorage").Metadata = function() { return this.dartO
bjectLocalStorage; }; |
| 3929 $dynamic("set$dartObjectLocalStorage").Metadata = function(value) { return this.
dartObjectLocalStorage = value; }; |
| 3930 // ********** Code for MouseEvent ************** |
| 3931 $dynamic("get$clientX").MouseEvent = function() { return this.clientX; }; |
| 3932 $dynamic("set$clientX").MouseEvent = function(value) { return this.clientX = val
ue; }; |
| 3933 $dynamic("get$clientY").MouseEvent = function() { return this.clientY; }; |
| 3934 $dynamic("set$clientY").MouseEvent = function(value) { return this.clientY = val
ue; }; |
| 3935 $dynamic("get$x").MouseEvent = function() { return this.x; }; |
| 3936 $dynamic("set$x").MouseEvent = function(value) { return this.x = value; }; |
| 3937 $dynamic("get$y").MouseEvent = function() { return this.y; }; |
| 3938 $dynamic("set$y").MouseEvent = function(value) { return this.y = value; }; |
| 3939 // ********** Code for MutationCallback ************** |
| 3940 $dynamic("get$dartObjectLocalStorage").MutationCallback = function() { return th
is.dartObjectLocalStorage; }; |
| 3941 $dynamic("set$dartObjectLocalStorage").MutationCallback = function(value) { retu
rn this.dartObjectLocalStorage = value; }; |
| 3942 // ********** Code for MutationEvent ************** |
| 3943 // ********** Code for MutationRecord ************** |
| 3944 $dynamic("get$target").MutationRecord = function() { return this.target; }; |
| 3945 $dynamic("set$target").MutationRecord = function(value) { return this.target = v
alue; }; |
| 3946 $dynamic("get$type").MutationRecord = function() { return this.type; }; |
| 3947 $dynamic("set$type").MutationRecord = function(value) { return this.type = value
; }; |
| 3948 $dynamic("get$dartObjectLocalStorage").MutationRecord = function() { return this
.dartObjectLocalStorage; }; |
| 3949 $dynamic("set$dartObjectLocalStorage").MutationRecord = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 3950 // ********** Code for dom_NamedNodeMap ************** |
| 3951 $dynamic("get$length").NamedNodeMap = function() { return this.length; }; |
| 3952 $dynamic("set$length").NamedNodeMap = function(value) { return this.length = val
ue; }; |
| 3953 $dynamic("$setindex").NamedNodeMap = function(index, value) { |
| 3954 $throw(new UnsupportedOperationException("Cannot assign element of immutable L
ist.")); |
| 3955 } |
| 3956 $dynamic("get$dartObjectLocalStorage").NamedNodeMap = function() { return this.d
artObjectLocalStorage; }; |
| 3957 $dynamic("set$dartObjectLocalStorage").NamedNodeMap = function(value) { return t
his.dartObjectLocalStorage = value; }; |
| 3958 $dynamic("item$1").NamedNodeMap = function($0) { |
| 3959 return this.item($0); |
| 3960 }; |
| 3961 // ********** Code for Navigator ************** |
| 3962 $dynamic("get$userAgent").Navigator = function() { return this.userAgent; }; |
| 3963 $dynamic("set$userAgent").Navigator = function(value) { return this.userAgent =
value; }; |
| 3964 $dynamic("get$dartObjectLocalStorage").Navigator = function() { return this.dart
ObjectLocalStorage; }; |
| 3965 $dynamic("set$dartObjectLocalStorage").Navigator = function(value) { return this
.dartObjectLocalStorage = value; }; |
| 3966 // ********** Code for Node ************** |
| 3967 $dynamic("get$attributes").Node = function() { return this.attributes; }; |
| 3968 $dynamic("set$attributes").Node = function(value) { return this.attributes = val
ue; }; |
| 3969 $dynamic("get$childNodes").Node = function() { return this.childNodes; }; |
| 3970 $dynamic("set$childNodes").Node = function(value) { return this.childNodes = val
ue; }; |
| 3971 $dynamic("get$firstChild").Node = function() { return this.firstChild; }; |
| 3972 $dynamic("set$firstChild").Node = function(value) { return this.firstChild = val
ue; }; |
| 3973 $dynamic("get$lastChild").Node = function() { return this.lastChild; }; |
| 3974 $dynamic("set$lastChild").Node = function(value) { return this.lastChild = value
; }; |
| 3975 $dynamic("get$ownerDocument").Node = function() { return this.ownerDocument; }; |
| 3976 $dynamic("set$ownerDocument").Node = function(value) { return this.ownerDocument
= value; }; |
| 3977 $dynamic("get$parentNode").Node = function() { return this.parentNode; }; |
| 3978 $dynamic("set$parentNode").Node = function(value) { return this.parentNode = val
ue; }; |
| 3979 $dynamic("get$textContent").Node = function() { return this.textContent; }; |
| 3980 $dynamic("set$textContent").Node = function(value) { return this.textContent = v
alue; }; |
| 3981 $dynamic("get$dartObjectLocalStorage").Node = function() { return this.dartObjec
tLocalStorage; }; |
| 3982 $dynamic("set$dartObjectLocalStorage").Node = function(value) { return this.dart
ObjectLocalStorage = value; }; |
| 3983 $dynamic("addEventListener$3").Node = function($0, $1, $2) { |
| 3984 return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 3985 }; |
| 3986 $dynamic("appendChild$1").Node = function($0) { |
| 3987 return this.appendChild($0); |
| 3988 }; |
| 3989 $dynamic("contains$1").Node = function($0) { |
| 3990 return this.contains($0); |
| 3991 }; |
| 3992 $dynamic("dispatchEvent$1").Node = function($0) { |
| 3993 return this.dispatchEvent($0); |
| 3994 }; |
| 3995 $dynamic("hasChildNodes$0").Node = function() { |
| 3996 return this.hasChildNodes(); |
| 3997 }; |
| 3998 $dynamic("removeChild$1").Node = function($0) { |
| 3999 return this.removeChild($0); |
| 4000 }; |
| 4001 $dynamic("removeEventListener$3").Node = function($0, $1, $2) { |
| 4002 return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 4003 }; |
| 4004 $dynamic("replaceChild$2").Node = function($0, $1) { |
| 4005 return this.replaceChild($0, $1); |
| 4006 }; |
| 4007 // ********** Code for dom_NodeFilter ************** |
| 4008 $dynamic("get$dartObjectLocalStorage").NodeFilter = function() { return this.dar
tObjectLocalStorage; }; |
| 4009 $dynamic("set$dartObjectLocalStorage").NodeFilter = function(value) { return thi
s.dartObjectLocalStorage = value; }; |
| 4010 // ********** Code for dom_NodeIterator ************** |
| 4011 $dynamic("get$dartObjectLocalStorage").NodeIterator = function() { return this.d
artObjectLocalStorage; }; |
| 4012 $dynamic("set$dartObjectLocalStorage").NodeIterator = function(value) { return t
his.dartObjectLocalStorage = value; }; |
| 4013 $dynamic("filter$1").NodeIterator = function($0) { |
| 4014 return this.filter.call$1($0); |
| 4015 }; |
| 4016 // ********** Code for NodeList ************** |
| 4017 $dynamic("get$length").NodeList = function() { return this.length; }; |
| 4018 $dynamic("set$length").NodeList = function(value) { return this.length = value;
}; |
| 4019 $dynamic("$setindex").NodeList = function(index, value) { |
| 4020 $throw(new UnsupportedOperationException("Cannot assign element of immutable L
ist.")); |
| 4021 } |
| 4022 $dynamic("get$dartObjectLocalStorage").NodeList = function() { return this.dartO
bjectLocalStorage; }; |
| 4023 $dynamic("set$dartObjectLocalStorage").NodeList = function(value) { return this.
dartObjectLocalStorage = value; }; |
| 4024 $dynamic("item$1").NodeList = function($0) { |
| 4025 return this.item($0); |
| 4026 }; |
| 4027 // ********** Code for dom_NodeSelector ************** |
| 4028 $dynamic("get$dartObjectLocalStorage").NodeSelector = function() { return this.d
artObjectLocalStorage; }; |
| 4029 $dynamic("set$dartObjectLocalStorage").NodeSelector = function(value) { return t
his.dartObjectLocalStorage = value; }; |
| 4030 $dynamic("querySelector$1").NodeSelector = function($0) { |
| 4031 return this.querySelector($0); |
| 4032 }; |
| 4033 $dynamic("querySelectorAll$1").NodeSelector = function($0) { |
| 4034 return this.querySelectorAll($0); |
| 4035 }; |
| 4036 // ********** Code for Notation ************** |
| 4037 // ********** Code for Notification ************** |
| 4038 $dynamic("get$dartObjectLocalStorage").Notification = function() { return this.d
artObjectLocalStorage; }; |
| 4039 $dynamic("set$dartObjectLocalStorage").Notification = function(value) { return t
his.dartObjectLocalStorage = value; }; |
| 4040 $dynamic("addEventListener$3").Notification = function($0, $1, $2) { |
| 4041 return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 4042 }; |
| 4043 $dynamic("dispatchEvent$1").Notification = function($0) { |
| 4044 return this.dispatchEvent($0); |
| 4045 }; |
| 4046 $dynamic("removeEventListener$3").Notification = function($0, $1, $2) { |
| 4047 return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 4048 }; |
| 4049 // ********** Code for NotificationCenter ************** |
| 4050 $dynamic("get$dartObjectLocalStorage").NotificationCenter = function() { return
this.dartObjectLocalStorage; }; |
| 4051 $dynamic("set$dartObjectLocalStorage").NotificationCenter = function(value) { re
turn this.dartObjectLocalStorage = value; }; |
| 4052 // ********** Code for OESStandardDerivatives ************** |
| 4053 $dynamic("get$dartObjectLocalStorage").OESStandardDerivatives = function() { ret
urn this.dartObjectLocalStorage; }; |
| 4054 $dynamic("set$dartObjectLocalStorage").OESStandardDerivatives = function(value)
{ return this.dartObjectLocalStorage = value; }; |
| 4055 // ********** Code for OESTextureFloat ************** |
| 4056 $dynamic("get$dartObjectLocalStorage").OESTextureFloat = function() { return thi
s.dartObjectLocalStorage; }; |
| 4057 $dynamic("set$dartObjectLocalStorage").OESTextureFloat = function(value) { retur
n this.dartObjectLocalStorage = value; }; |
| 4058 // ********** Code for OESVertexArrayObject ************** |
| 4059 $dynamic("get$dartObjectLocalStorage").OESVertexArrayObject = function() { retur
n this.dartObjectLocalStorage; }; |
| 4060 $dynamic("set$dartObjectLocalStorage").OESVertexArrayObject = function(value) {
return this.dartObjectLocalStorage = value; }; |
| 4061 // ********** Code for OfflineAudioCompletionEvent ************** |
| 4062 // ********** Code for OperationNotAllowedException ************** |
| 4063 $dynamic("get$name").OperationNotAllowedException = function() { return this.nam
e; }; |
| 4064 $dynamic("set$name").OperationNotAllowedException = function(value) { return thi
s.name = value; }; |
| 4065 $dynamic("get$dartObjectLocalStorage").OperationNotAllowedException = function()
{ return this.dartObjectLocalStorage; }; |
| 4066 $dynamic("set$dartObjectLocalStorage").OperationNotAllowedException = function(v
alue) { return this.dartObjectLocalStorage = value; }; |
| 4067 $dynamic("toString$0").OperationNotAllowedException = function() { |
| 4068 return this.toString(); |
| 4069 }; |
| 4070 // ********** Code for OverflowEvent ************** |
| 4071 // ********** Code for PageTransitionEvent ************** |
| 4072 // ********** Code for dom_Performance ************** |
| 4073 $dynamic("get$dartObjectLocalStorage").Performance = function() { return this.da
rtObjectLocalStorage; }; |
| 4074 $dynamic("set$dartObjectLocalStorage").Performance = function(value) { return th
is.dartObjectLocalStorage = value; }; |
| 4075 // ********** Code for dom_PerformanceNavigation ************** |
| 4076 $dynamic("get$type").PerformanceNavigation = function() { return this.type; }; |
| 4077 $dynamic("set$type").PerformanceNavigation = function(value) { return this.type
= value; }; |
| 4078 $dynamic("get$dartObjectLocalStorage").PerformanceNavigation = function() { retu
rn this.dartObjectLocalStorage; }; |
| 4079 $dynamic("set$dartObjectLocalStorage").PerformanceNavigation = function(value) {
return this.dartObjectLocalStorage = value; }; |
| 4080 // ********** Code for dom_PerformanceTiming ************** |
| 4081 $dynamic("get$dartObjectLocalStorage").PerformanceTiming = function() { return t
his.dartObjectLocalStorage; }; |
| 4082 $dynamic("set$dartObjectLocalStorage").PerformanceTiming = function(value) { ret
urn this.dartObjectLocalStorage = value; }; |
| 4083 // ********** Code for dom_PointerLock ************** |
| 4084 $dynamic("get$dartObjectLocalStorage").PointerLock = function() { return this.da
rtObjectLocalStorage; }; |
| 4085 $dynamic("set$dartObjectLocalStorage").PointerLock = function(value) { return th
is.dartObjectLocalStorage = value; }; |
| 4086 // ********** Code for PopStateEvent ************** |
| 4087 // ********** Code for PositionError ************** |
| 4088 $dynamic("get$dartObjectLocalStorage").PositionError = function() { return this.
dartObjectLocalStorage; }; |
| 4089 $dynamic("set$dartObjectLocalStorage").PositionError = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 4090 // ********** Code for ProcessingInstruction ************** |
| 4091 $dynamic("get$target").ProcessingInstruction = function() { return this.target;
}; |
| 4092 $dynamic("set$target").ProcessingInstruction = function(value) { return this.tar
get = value; }; |
| 4093 // ********** Code for ProgressEvent ************** |
| 4094 // ********** Code for RGBColor ************** |
| 4095 $dynamic("get$dartObjectLocalStorage").RGBColor = function() { return this.dartO
bjectLocalStorage; }; |
| 4096 $dynamic("set$dartObjectLocalStorage").RGBColor = function(value) { return this.
dartObjectLocalStorage = value; }; |
| 4097 // ********** Code for Range ************** |
| 4098 $dynamic("get$dartObjectLocalStorage").Range = function() { return this.dartObje
ctLocalStorage; }; |
| 4099 $dynamic("set$dartObjectLocalStorage").Range = function(value) { return this.dar
tObjectLocalStorage = value; }; |
| 4100 $dynamic("toString$0").Range = function() { |
| 4101 return this.toString(); |
| 4102 }; |
| 4103 // ********** Code for RangeException ************** |
| 4104 $dynamic("get$name").RangeException = function() { return this.name; }; |
| 4105 $dynamic("set$name").RangeException = function(value) { return this.name = value
; }; |
| 4106 $dynamic("get$dartObjectLocalStorage").RangeException = function() { return this
.dartObjectLocalStorage; }; |
| 4107 $dynamic("set$dartObjectLocalStorage").RangeException = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 4108 $dynamic("toString$0").RangeException = function() { |
| 4109 return this.toString(); |
| 4110 }; |
| 4111 // ********** Code for RealtimeAnalyserNode ************** |
| 4112 // ********** Code for Rect ************** |
| 4113 $dynamic("get$left").Rect = function() { return this.left; }; |
| 4114 $dynamic("set$left").Rect = function(value) { return this.left = value; }; |
| 4115 $dynamic("get$top").Rect = function() { return this.top; }; |
| 4116 $dynamic("set$top").Rect = function(value) { return this.top = value; }; |
| 4117 $dynamic("get$dartObjectLocalStorage").Rect = function() { return this.dartObjec
tLocalStorage; }; |
| 4118 $dynamic("set$dartObjectLocalStorage").Rect = function(value) { return this.dart
ObjectLocalStorage = value; }; |
| 4119 // ********** Code for dom_SQLError ************** |
| 4120 $dynamic("get$dartObjectLocalStorage").SQLError = function() { return this.dartO
bjectLocalStorage; }; |
| 4121 $dynamic("set$dartObjectLocalStorage").SQLError = function(value) { return this.
dartObjectLocalStorage = value; }; |
| 4122 // ********** Code for dom_SQLException ************** |
| 4123 $dynamic("get$dartObjectLocalStorage").SQLException = function() { return this.d
artObjectLocalStorage; }; |
| 4124 $dynamic("set$dartObjectLocalStorage").SQLException = function(value) { return t
his.dartObjectLocalStorage = value; }; |
| 4125 // ********** Code for dom_SQLResultSet ************** |
| 4126 $dynamic("get$dartObjectLocalStorage").SQLResultSet = function() { return this.d
artObjectLocalStorage; }; |
| 4127 $dynamic("set$dartObjectLocalStorage").SQLResultSet = function(value) { return t
his.dartObjectLocalStorage = value; }; |
| 4128 // ********** Code for dom_SQLResultSetRowList ************** |
| 4129 $dynamic("get$length").SQLResultSetRowList = function() { return this.length; }; |
| 4130 $dynamic("set$length").SQLResultSetRowList = function(value) { return this.lengt
h = value; }; |
| 4131 $dynamic("get$dartObjectLocalStorage").SQLResultSetRowList = function() { return
this.dartObjectLocalStorage; }; |
| 4132 $dynamic("set$dartObjectLocalStorage").SQLResultSetRowList = function(value) { r
eturn this.dartObjectLocalStorage = value; }; |
| 4133 $dynamic("item$1").SQLResultSetRowList = function($0) { |
| 4134 return this.item($0); |
| 4135 }; |
| 4136 // ********** Code for dom_SQLTransaction ************** |
| 4137 $dynamic("get$dartObjectLocalStorage").SQLTransaction = function() { return this
.dartObjectLocalStorage; }; |
| 4138 $dynamic("set$dartObjectLocalStorage").SQLTransaction = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 4139 // ********** Code for dom_SQLTransactionSync ************** |
| 4140 $dynamic("get$dartObjectLocalStorage").SQLTransactionSync = function() { return
this.dartObjectLocalStorage; }; |
| 4141 $dynamic("set$dartObjectLocalStorage").SQLTransactionSync = function(value) { re
turn this.dartObjectLocalStorage = value; }; |
| 4142 // ********** Code for SVGAElement ************** |
| 4143 $dynamic("get$target").SVGAElement = function() { return this.target; }; |
| 4144 $dynamic("set$target").SVGAElement = function(value) { return this.target = valu
e; }; |
| 4145 $dynamic("get$className").SVGAElement = function() { return this.className; }; |
| 4146 $dynamic("set$className").SVGAElement = function(value) { return this.className
= value; }; |
| 4147 $dynamic("get$style").SVGAElement = function() { return this.style; }; |
| 4148 $dynamic("set$style").SVGAElement = function(value) { return this.style = value;
}; |
| 4149 $dynamic("get$transform").SVGAElement = function() { return this.transform; }; |
| 4150 $dynamic("set$transform").SVGAElement = function(value) { return this.transform
= value; }; |
| 4151 // ********** Code for SVGAltGlyphDefElement ************** |
| 4152 // ********** Code for SVGAltGlyphElement ************** |
| 4153 // ********** Code for SVGAltGlyphItemElement ************** |
| 4154 // ********** Code for SVGAngle ************** |
| 4155 $dynamic("get$value").SVGAngle = function() { return this.value; }; |
| 4156 $dynamic("set$value").SVGAngle = function(value) { return this.value = value; }; |
| 4157 $dynamic("get$dartObjectLocalStorage").SVGAngle = function() { return this.dartO
bjectLocalStorage; }; |
| 4158 $dynamic("set$dartObjectLocalStorage").SVGAngle = function(value) { return this.
dartObjectLocalStorage = value; }; |
| 4159 // ********** Code for SVGAnimateColorElement ************** |
| 4160 // ********** Code for SVGAnimateElement ************** |
| 4161 // ********** Code for SVGAnimateMotionElement ************** |
| 4162 // ********** Code for SVGAnimateTransformElement ************** |
| 4163 // ********** Code for SVGAnimatedAngle ************** |
| 4164 $dynamic("get$baseVal").SVGAnimatedAngle = function() { return this.baseVal; }; |
| 4165 $dynamic("set$baseVal").SVGAnimatedAngle = function(value) { return this.baseVal
= value; }; |
| 4166 $dynamic("get$dartObjectLocalStorage").SVGAnimatedAngle = function() { return th
is.dartObjectLocalStorage; }; |
| 4167 $dynamic("set$dartObjectLocalStorage").SVGAnimatedAngle = function(value) { retu
rn this.dartObjectLocalStorage = value; }; |
| 4168 // ********** Code for SVGAnimatedBoolean ************** |
| 4169 $dynamic("get$baseVal").SVGAnimatedBoolean = function() { return this.baseVal; }
; |
| 4170 $dynamic("set$baseVal").SVGAnimatedBoolean = function(value) { return this.baseV
al = value; }; |
| 4171 $dynamic("get$dartObjectLocalStorage").SVGAnimatedBoolean = function() { return
this.dartObjectLocalStorage; }; |
| 4172 $dynamic("set$dartObjectLocalStorage").SVGAnimatedBoolean = function(value) { re
turn this.dartObjectLocalStorage = value; }; |
| 4173 // ********** Code for SVGAnimatedEnumeration ************** |
| 4174 $dynamic("get$baseVal").SVGAnimatedEnumeration = function() { return this.baseVa
l; }; |
| 4175 $dynamic("set$baseVal").SVGAnimatedEnumeration = function(value) { return this.b
aseVal = value; }; |
| 4176 $dynamic("get$dartObjectLocalStorage").SVGAnimatedEnumeration = function() { ret
urn this.dartObjectLocalStorage; }; |
| 4177 $dynamic("set$dartObjectLocalStorage").SVGAnimatedEnumeration = function(value)
{ return this.dartObjectLocalStorage = value; }; |
| 4178 // ********** Code for SVGAnimatedInteger ************** |
| 4179 $dynamic("get$baseVal").SVGAnimatedInteger = function() { return this.baseVal; }
; |
| 4180 $dynamic("set$baseVal").SVGAnimatedInteger = function(value) { return this.baseV
al = value; }; |
| 4181 $dynamic("get$dartObjectLocalStorage").SVGAnimatedInteger = function() { return
this.dartObjectLocalStorage; }; |
| 4182 $dynamic("set$dartObjectLocalStorage").SVGAnimatedInteger = function(value) { re
turn this.dartObjectLocalStorage = value; }; |
| 4183 // ********** Code for SVGAnimatedLength ************** |
| 4184 $dynamic("get$baseVal").SVGAnimatedLength = function() { return this.baseVal; }; |
| 4185 $dynamic("set$baseVal").SVGAnimatedLength = function(value) { return this.baseVa
l = value; }; |
| 4186 $dynamic("get$dartObjectLocalStorage").SVGAnimatedLength = function() { return t
his.dartObjectLocalStorage; }; |
| 4187 $dynamic("set$dartObjectLocalStorage").SVGAnimatedLength = function(value) { ret
urn this.dartObjectLocalStorage = value; }; |
| 4188 // ********** Code for SVGAnimatedLengthList ************** |
| 4189 $dynamic("get$baseVal").SVGAnimatedLengthList = function() { return this.baseVal
; }; |
| 4190 $dynamic("set$baseVal").SVGAnimatedLengthList = function(value) { return this.ba
seVal = value; }; |
| 4191 $dynamic("get$dartObjectLocalStorage").SVGAnimatedLengthList = function() { retu
rn this.dartObjectLocalStorage; }; |
| 4192 $dynamic("set$dartObjectLocalStorage").SVGAnimatedLengthList = function(value) {
return this.dartObjectLocalStorage = value; }; |
| 4193 // ********** Code for SVGAnimatedNumber ************** |
| 4194 $dynamic("get$baseVal").SVGAnimatedNumber = function() { return this.baseVal; }; |
| 4195 $dynamic("set$baseVal").SVGAnimatedNumber = function(value) { return this.baseVa
l = value; }; |
| 4196 $dynamic("get$dartObjectLocalStorage").SVGAnimatedNumber = function() { return t
his.dartObjectLocalStorage; }; |
| 4197 $dynamic("set$dartObjectLocalStorage").SVGAnimatedNumber = function(value) { ret
urn this.dartObjectLocalStorage = value; }; |
| 4198 // ********** Code for SVGAnimatedNumberList ************** |
| 4199 $dynamic("get$baseVal").SVGAnimatedNumberList = function() { return this.baseVal
; }; |
| 4200 $dynamic("set$baseVal").SVGAnimatedNumberList = function(value) { return this.ba
seVal = value; }; |
| 4201 $dynamic("get$dartObjectLocalStorage").SVGAnimatedNumberList = function() { retu
rn this.dartObjectLocalStorage; }; |
| 4202 $dynamic("set$dartObjectLocalStorage").SVGAnimatedNumberList = function(value) {
return this.dartObjectLocalStorage = value; }; |
| 4203 // ********** Code for SVGAnimatedPreserveAspectRatio ************** |
| 4204 $dynamic("get$baseVal").SVGAnimatedPreserveAspectRatio = function() { return thi
s.baseVal; }; |
| 4205 $dynamic("set$baseVal").SVGAnimatedPreserveAspectRatio = function(value) { retur
n this.baseVal = value; }; |
| 4206 $dynamic("get$dartObjectLocalStorage").SVGAnimatedPreserveAspectRatio = function
() { return this.dartObjectLocalStorage; }; |
| 4207 $dynamic("set$dartObjectLocalStorage").SVGAnimatedPreserveAspectRatio = function
(value) { return this.dartObjectLocalStorage = value; }; |
| 4208 // ********** Code for SVGAnimatedRect ************** |
| 4209 $dynamic("get$baseVal").SVGAnimatedRect = function() { return this.baseVal; }; |
| 4210 $dynamic("set$baseVal").SVGAnimatedRect = function(value) { return this.baseVal
= value; }; |
| 4211 $dynamic("get$dartObjectLocalStorage").SVGAnimatedRect = function() { return thi
s.dartObjectLocalStorage; }; |
| 4212 $dynamic("set$dartObjectLocalStorage").SVGAnimatedRect = function(value) { retur
n this.dartObjectLocalStorage = value; }; |
| 4213 // ********** Code for SVGAnimatedString ************** |
| 4214 $dynamic("get$baseVal").SVGAnimatedString = function() { return this.baseVal; }; |
| 4215 $dynamic("set$baseVal").SVGAnimatedString = function(value) { return this.baseVa
l = value; }; |
| 4216 $dynamic("get$dartObjectLocalStorage").SVGAnimatedString = function() { return t
his.dartObjectLocalStorage; }; |
| 4217 $dynamic("set$dartObjectLocalStorage").SVGAnimatedString = function(value) { ret
urn this.dartObjectLocalStorage = value; }; |
| 4218 // ********** Code for SVGAnimatedTransformList ************** |
| 4219 $dynamic("get$baseVal").SVGAnimatedTransformList = function() { return this.base
Val; }; |
| 4220 $dynamic("set$baseVal").SVGAnimatedTransformList = function(value) { return this
.baseVal = value; }; |
| 4221 $dynamic("get$dartObjectLocalStorage").SVGAnimatedTransformList = function() { r
eturn this.dartObjectLocalStorage; }; |
| 4222 $dynamic("set$dartObjectLocalStorage").SVGAnimatedTransformList = function(value
) { return this.dartObjectLocalStorage = value; }; |
| 4223 // ********** Code for SVGAnimationElement ************** |
| 4224 // ********** Code for SVGCircleElement ************** |
| 4225 $dynamic("get$className").SVGCircleElement = function() { return this.className;
}; |
| 4226 $dynamic("set$className").SVGCircleElement = function(value) { return this.class
Name = value; }; |
| 4227 $dynamic("get$style").SVGCircleElement = function() { return this.style; }; |
| 4228 $dynamic("set$style").SVGCircleElement = function(value) { return this.style = v
alue; }; |
| 4229 $dynamic("get$transform").SVGCircleElement = function() { return this.transform;
}; |
| 4230 $dynamic("set$transform").SVGCircleElement = function(value) { return this.trans
form = value; }; |
| 4231 // ********** Code for SVGClipPathElement ************** |
| 4232 $dynamic("get$className").SVGClipPathElement = function() { return this.classNam
e; }; |
| 4233 $dynamic("set$className").SVGClipPathElement = function(value) { return this.cla
ssName = value; }; |
| 4234 $dynamic("get$style").SVGClipPathElement = function() { return this.style; }; |
| 4235 $dynamic("set$style").SVGClipPathElement = function(value) { return this.style =
value; }; |
| 4236 $dynamic("get$transform").SVGClipPathElement = function() { return this.transfor
m; }; |
| 4237 $dynamic("set$transform").SVGClipPathElement = function(value) { return this.tra
nsform = value; }; |
| 4238 // ********** Code for SVGColor ************** |
| 4239 // ********** Code for SVGComponentTransferFunctionElement ************** |
| 4240 $dynamic("get$offset").SVGComponentTransferFunctionElement = function() { return
this.offset; }; |
| 4241 $dynamic("set$offset").SVGComponentTransferFunctionElement = function(value) { r
eturn this.offset = value; }; |
| 4242 $dynamic("get$type").SVGComponentTransferFunctionElement = function() { return t
his.type; }; |
| 4243 $dynamic("set$type").SVGComponentTransferFunctionElement = function(value) { ret
urn this.type = value; }; |
| 4244 // ********** Code for SVGCursorElement ************** |
| 4245 $dynamic("get$x").SVGCursorElement = function() { return this.x; }; |
| 4246 $dynamic("set$x").SVGCursorElement = function(value) { return this.x = value; }; |
| 4247 $dynamic("get$y").SVGCursorElement = function() { return this.y; }; |
| 4248 $dynamic("set$y").SVGCursorElement = function(value) { return this.y = value; }; |
| 4249 // ********** Code for SVGDefsElement ************** |
| 4250 $dynamic("get$className").SVGDefsElement = function() { return this.className; }
; |
| 4251 $dynamic("set$className").SVGDefsElement = function(value) { return this.classNa
me = value; }; |
| 4252 $dynamic("get$style").SVGDefsElement = function() { return this.style; }; |
| 4253 $dynamic("set$style").SVGDefsElement = function(value) { return this.style = val
ue; }; |
| 4254 $dynamic("get$transform").SVGDefsElement = function() { return this.transform; }
; |
| 4255 $dynamic("set$transform").SVGDefsElement = function(value) { return this.transfo
rm = value; }; |
| 4256 // ********** Code for SVGDescElement ************** |
| 4257 $dynamic("get$className").SVGDescElement = function() { return this.className; }
; |
| 4258 $dynamic("set$className").SVGDescElement = function(value) { return this.classNa
me = value; }; |
| 4259 $dynamic("get$style").SVGDescElement = function() { return this.style; }; |
| 4260 $dynamic("set$style").SVGDescElement = function(value) { return this.style = val
ue; }; |
| 4261 // ********** Code for SVGDocument ************** |
| 4262 // ********** Code for SVGElement ************** |
| 4263 $dynamic("get$id").SVGElement = function() { return this.id; }; |
| 4264 $dynamic("set$id").SVGElement = function(value) { return this.id = value; }; |
| 4265 // ********** Code for SVGElementInstance ************** |
| 4266 $dynamic("get$childNodes").SVGElementInstance = function() { return this.childNo
des; }; |
| 4267 $dynamic("set$childNodes").SVGElementInstance = function(value) { return this.ch
ildNodes = value; }; |
| 4268 $dynamic("get$firstChild").SVGElementInstance = function() { return this.firstCh
ild; }; |
| 4269 $dynamic("set$firstChild").SVGElementInstance = function(value) { return this.fi
rstChild = value; }; |
| 4270 $dynamic("get$lastChild").SVGElementInstance = function() { return this.lastChil
d; }; |
| 4271 $dynamic("set$lastChild").SVGElementInstance = function(value) { return this.las
tChild = value; }; |
| 4272 $dynamic("get$parentNode").SVGElementInstance = function() { return this.parentN
ode; }; |
| 4273 $dynamic("set$parentNode").SVGElementInstance = function(value) { return this.pa
rentNode = value; }; |
| 4274 $dynamic("get$dartObjectLocalStorage").SVGElementInstance = function() { return
this.dartObjectLocalStorage; }; |
| 4275 $dynamic("set$dartObjectLocalStorage").SVGElementInstance = function(value) { re
turn this.dartObjectLocalStorage = value; }; |
| 4276 $dynamic("addEventListener$3").SVGElementInstance = function($0, $1, $2) { |
| 4277 return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 4278 }; |
| 4279 $dynamic("dispatchEvent$1").SVGElementInstance = function($0) { |
| 4280 return this.dispatchEvent($0); |
| 4281 }; |
| 4282 $dynamic("removeEventListener$3").SVGElementInstance = function($0, $1, $2) { |
| 4283 return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 4284 }; |
| 4285 // ********** Code for SVGElementInstanceList ************** |
| 4286 $dynamic("get$length").SVGElementInstanceList = function() { return this.length;
}; |
| 4287 $dynamic("set$length").SVGElementInstanceList = function(value) { return this.le
ngth = value; }; |
| 4288 $dynamic("get$dartObjectLocalStorage").SVGElementInstanceList = function() { ret
urn this.dartObjectLocalStorage; }; |
| 4289 $dynamic("set$dartObjectLocalStorage").SVGElementInstanceList = function(value)
{ return this.dartObjectLocalStorage = value; }; |
| 4290 $dynamic("item$1").SVGElementInstanceList = function($0) { |
| 4291 return this.item($0); |
| 4292 }; |
| 4293 // ********** Code for SVGEllipseElement ************** |
| 4294 $dynamic("get$className").SVGEllipseElement = function() { return this.className
; }; |
| 4295 $dynamic("set$className").SVGEllipseElement = function(value) { return this.clas
sName = value; }; |
| 4296 $dynamic("get$style").SVGEllipseElement = function() { return this.style; }; |
| 4297 $dynamic("set$style").SVGEllipseElement = function(value) { return this.style =
value; }; |
| 4298 $dynamic("get$transform").SVGEllipseElement = function() { return this.transform
; }; |
| 4299 $dynamic("set$transform").SVGEllipseElement = function(value) { return this.tran
sform = value; }; |
| 4300 // ********** Code for SVGException ************** |
| 4301 $dynamic("get$name").SVGException = function() { return this.name; }; |
| 4302 $dynamic("set$name").SVGException = function(value) { return this.name = value;
}; |
| 4303 $dynamic("get$dartObjectLocalStorage").SVGException = function() { return this.d
artObjectLocalStorage; }; |
| 4304 $dynamic("set$dartObjectLocalStorage").SVGException = function(value) { return t
his.dartObjectLocalStorage = value; }; |
| 4305 $dynamic("toString$0").SVGException = function() { |
| 4306 return this.toString(); |
| 4307 }; |
| 4308 // ********** Code for SVGExternalResourcesRequired ************** |
| 4309 $dynamic("get$dartObjectLocalStorage").SVGExternalResourcesRequired = function()
{ return this.dartObjectLocalStorage; }; |
| 4310 $dynamic("set$dartObjectLocalStorage").SVGExternalResourcesRequired = function(v
alue) { return this.dartObjectLocalStorage = value; }; |
| 4311 // ********** Code for SVGFEBlendElement ************** |
| 4312 $dynamic("get$height").SVGFEBlendElement = function() { return this.height; }; |
| 4313 $dynamic("set$height").SVGFEBlendElement = function(value) { return this.height
= value; }; |
| 4314 $dynamic("get$width").SVGFEBlendElement = function() { return this.width; }; |
| 4315 $dynamic("set$width").SVGFEBlendElement = function(value) { return this.width =
value; }; |
| 4316 $dynamic("get$x").SVGFEBlendElement = function() { return this.x; }; |
| 4317 $dynamic("set$x").SVGFEBlendElement = function(value) { return this.x = value; }
; |
| 4318 $dynamic("get$y").SVGFEBlendElement = function() { return this.y; }; |
| 4319 $dynamic("set$y").SVGFEBlendElement = function(value) { return this.y = value; }
; |
| 4320 $dynamic("get$className").SVGFEBlendElement = function() { return this.className
; }; |
| 4321 $dynamic("set$className").SVGFEBlendElement = function(value) { return this.clas
sName = value; }; |
| 4322 $dynamic("get$style").SVGFEBlendElement = function() { return this.style; }; |
| 4323 $dynamic("set$style").SVGFEBlendElement = function(value) { return this.style =
value; }; |
| 4324 // ********** Code for SVGFEColorMatrixElement ************** |
| 4325 $dynamic("get$type").SVGFEColorMatrixElement = function() { return this.type; }; |
| 4326 $dynamic("set$type").SVGFEColorMatrixElement = function(value) { return this.typ
e = value; }; |
| 4327 $dynamic("get$height").SVGFEColorMatrixElement = function() { return this.height
; }; |
| 4328 $dynamic("set$height").SVGFEColorMatrixElement = function(value) { return this.h
eight = value; }; |
| 4329 $dynamic("get$width").SVGFEColorMatrixElement = function() { return this.width;
}; |
| 4330 $dynamic("set$width").SVGFEColorMatrixElement = function(value) { return this.wi
dth = value; }; |
| 4331 $dynamic("get$x").SVGFEColorMatrixElement = function() { return this.x; }; |
| 4332 $dynamic("set$x").SVGFEColorMatrixElement = function(value) { return this.x = va
lue; }; |
| 4333 $dynamic("get$y").SVGFEColorMatrixElement = function() { return this.y; }; |
| 4334 $dynamic("set$y").SVGFEColorMatrixElement = function(value) { return this.y = va
lue; }; |
| 4335 $dynamic("get$className").SVGFEColorMatrixElement = function() { return this.cla
ssName; }; |
| 4336 $dynamic("set$className").SVGFEColorMatrixElement = function(value) { return thi
s.className = value; }; |
| 4337 $dynamic("get$style").SVGFEColorMatrixElement = function() { return this.style;
}; |
| 4338 $dynamic("set$style").SVGFEColorMatrixElement = function(value) { return this.st
yle = value; }; |
| 4339 // ********** Code for SVGFEComponentTransferElement ************** |
| 4340 $dynamic("get$height").SVGFEComponentTransferElement = function() { return this.
height; }; |
| 4341 $dynamic("set$height").SVGFEComponentTransferElement = function(value) { return
this.height = value; }; |
| 4342 $dynamic("get$width").SVGFEComponentTransferElement = function() { return this.w
idth; }; |
| 4343 $dynamic("set$width").SVGFEComponentTransferElement = function(value) { return t
his.width = value; }; |
| 4344 $dynamic("get$x").SVGFEComponentTransferElement = function() { return this.x; }; |
| 4345 $dynamic("set$x").SVGFEComponentTransferElement = function(value) { return this.
x = value; }; |
| 4346 $dynamic("get$y").SVGFEComponentTransferElement = function() { return this.y; }; |
| 4347 $dynamic("set$y").SVGFEComponentTransferElement = function(value) { return this.
y = value; }; |
| 4348 $dynamic("get$className").SVGFEComponentTransferElement = function() { return th
is.className; }; |
| 4349 $dynamic("set$className").SVGFEComponentTransferElement = function(value) { retu
rn this.className = value; }; |
| 4350 $dynamic("get$style").SVGFEComponentTransferElement = function() { return this.s
tyle; }; |
| 4351 $dynamic("set$style").SVGFEComponentTransferElement = function(value) { return t
his.style = value; }; |
| 4352 // ********** Code for dom_SVGFECompositeElement ************** |
| 4353 $dynamic("get$height").SVGFECompositeElement = function() { return this.height;
}; |
| 4354 $dynamic("set$height").SVGFECompositeElement = function(value) { return this.hei
ght = value; }; |
| 4355 $dynamic("get$width").SVGFECompositeElement = function() { return this.width; }; |
| 4356 $dynamic("set$width").SVGFECompositeElement = function(value) { return this.widt
h = value; }; |
| 4357 $dynamic("get$x").SVGFECompositeElement = function() { return this.x; }; |
| 4358 $dynamic("set$x").SVGFECompositeElement = function(value) { return this.x = valu
e; }; |
| 4359 $dynamic("get$y").SVGFECompositeElement = function() { return this.y; }; |
| 4360 $dynamic("set$y").SVGFECompositeElement = function(value) { return this.y = valu
e; }; |
| 4361 $dynamic("get$className").SVGFECompositeElement = function() { return this.class
Name; }; |
| 4362 $dynamic("set$className").SVGFECompositeElement = function(value) { return this.
className = value; }; |
| 4363 $dynamic("get$style").SVGFECompositeElement = function() { return this.style; }; |
| 4364 $dynamic("set$style").SVGFECompositeElement = function(value) { return this.styl
e = value; }; |
| 4365 // ********** Code for SVGFEConvolveMatrixElement ************** |
| 4366 $dynamic("get$height").SVGFEConvolveMatrixElement = function() { return this.hei
ght; }; |
| 4367 $dynamic("set$height").SVGFEConvolveMatrixElement = function(value) { return thi
s.height = value; }; |
| 4368 $dynamic("get$width").SVGFEConvolveMatrixElement = function() { return this.widt
h; }; |
| 4369 $dynamic("set$width").SVGFEConvolveMatrixElement = function(value) { return this
.width = value; }; |
| 4370 $dynamic("get$x").SVGFEConvolveMatrixElement = function() { return this.x; }; |
| 4371 $dynamic("set$x").SVGFEConvolveMatrixElement = function(value) { return this.x =
value; }; |
| 4372 $dynamic("get$y").SVGFEConvolveMatrixElement = function() { return this.y; }; |
| 4373 $dynamic("set$y").SVGFEConvolveMatrixElement = function(value) { return this.y =
value; }; |
| 4374 $dynamic("get$className").SVGFEConvolveMatrixElement = function() { return this.
className; }; |
| 4375 $dynamic("set$className").SVGFEConvolveMatrixElement = function(value) { return
this.className = value; }; |
| 4376 $dynamic("get$style").SVGFEConvolveMatrixElement = function() { return this.styl
e; }; |
| 4377 $dynamic("set$style").SVGFEConvolveMatrixElement = function(value) { return this
.style = value; }; |
| 4378 // ********** Code for SVGFEDiffuseLightingElement ************** |
| 4379 $dynamic("get$height").SVGFEDiffuseLightingElement = function() { return this.he
ight; }; |
| 4380 $dynamic("set$height").SVGFEDiffuseLightingElement = function(value) { return th
is.height = value; }; |
| 4381 $dynamic("get$width").SVGFEDiffuseLightingElement = function() { return this.wid
th; }; |
| 4382 $dynamic("set$width").SVGFEDiffuseLightingElement = function(value) { return thi
s.width = value; }; |
| 4383 $dynamic("get$x").SVGFEDiffuseLightingElement = function() { return this.x; }; |
| 4384 $dynamic("set$x").SVGFEDiffuseLightingElement = function(value) { return this.x
= value; }; |
| 4385 $dynamic("get$y").SVGFEDiffuseLightingElement = function() { return this.y; }; |
| 4386 $dynamic("set$y").SVGFEDiffuseLightingElement = function(value) { return this.y
= value; }; |
| 4387 $dynamic("get$className").SVGFEDiffuseLightingElement = function() { return this
.className; }; |
| 4388 $dynamic("set$className").SVGFEDiffuseLightingElement = function(value) { return
this.className = value; }; |
| 4389 $dynamic("get$style").SVGFEDiffuseLightingElement = function() { return this.sty
le; }; |
| 4390 $dynamic("set$style").SVGFEDiffuseLightingElement = function(value) { return thi
s.style = value; }; |
| 4391 // ********** Code for SVGFEDisplacementMapElement ************** |
| 4392 $dynamic("get$height").SVGFEDisplacementMapElement = function() { return this.he
ight; }; |
| 4393 $dynamic("set$height").SVGFEDisplacementMapElement = function(value) { return th
is.height = value; }; |
| 4394 $dynamic("get$width").SVGFEDisplacementMapElement = function() { return this.wid
th; }; |
| 4395 $dynamic("set$width").SVGFEDisplacementMapElement = function(value) { return thi
s.width = value; }; |
| 4396 $dynamic("get$x").SVGFEDisplacementMapElement = function() { return this.x; }; |
| 4397 $dynamic("set$x").SVGFEDisplacementMapElement = function(value) { return this.x
= value; }; |
| 4398 $dynamic("get$y").SVGFEDisplacementMapElement = function() { return this.y; }; |
| 4399 $dynamic("set$y").SVGFEDisplacementMapElement = function(value) { return this.y
= value; }; |
| 4400 $dynamic("get$className").SVGFEDisplacementMapElement = function() { return this
.className; }; |
| 4401 $dynamic("set$className").SVGFEDisplacementMapElement = function(value) { return
this.className = value; }; |
| 4402 $dynamic("get$style").SVGFEDisplacementMapElement = function() { return this.sty
le; }; |
| 4403 $dynamic("set$style").SVGFEDisplacementMapElement = function(value) { return thi
s.style = value; }; |
| 4404 // ********** Code for SVGFEDistantLightElement ************** |
| 4405 // ********** Code for SVGFEDropShadowElement ************** |
| 4406 $dynamic("get$height").SVGFEDropShadowElement = function() { return this.height;
}; |
| 4407 $dynamic("set$height").SVGFEDropShadowElement = function(value) { return this.he
ight = value; }; |
| 4408 $dynamic("get$width").SVGFEDropShadowElement = function() { return this.width; }
; |
| 4409 $dynamic("set$width").SVGFEDropShadowElement = function(value) { return this.wid
th = value; }; |
| 4410 $dynamic("get$x").SVGFEDropShadowElement = function() { return this.x; }; |
| 4411 $dynamic("set$x").SVGFEDropShadowElement = function(value) { return this.x = val
ue; }; |
| 4412 $dynamic("get$y").SVGFEDropShadowElement = function() { return this.y; }; |
| 4413 $dynamic("set$y").SVGFEDropShadowElement = function(value) { return this.y = val
ue; }; |
| 4414 $dynamic("get$className").SVGFEDropShadowElement = function() { return this.clas
sName; }; |
| 4415 $dynamic("set$className").SVGFEDropShadowElement = function(value) { return this
.className = value; }; |
| 4416 $dynamic("get$style").SVGFEDropShadowElement = function() { return this.style; }
; |
| 4417 $dynamic("set$style").SVGFEDropShadowElement = function(value) { return this.sty
le = value; }; |
| 4418 // ********** Code for SVGFEFloodElement ************** |
| 4419 $dynamic("get$height").SVGFEFloodElement = function() { return this.height; }; |
| 4420 $dynamic("set$height").SVGFEFloodElement = function(value) { return this.height
= value; }; |
| 4421 $dynamic("get$width").SVGFEFloodElement = function() { return this.width; }; |
| 4422 $dynamic("set$width").SVGFEFloodElement = function(value) { return this.width =
value; }; |
| 4423 $dynamic("get$x").SVGFEFloodElement = function() { return this.x; }; |
| 4424 $dynamic("set$x").SVGFEFloodElement = function(value) { return this.x = value; }
; |
| 4425 $dynamic("get$y").SVGFEFloodElement = function() { return this.y; }; |
| 4426 $dynamic("set$y").SVGFEFloodElement = function(value) { return this.y = value; }
; |
| 4427 $dynamic("get$className").SVGFEFloodElement = function() { return this.className
; }; |
| 4428 $dynamic("set$className").SVGFEFloodElement = function(value) { return this.clas
sName = value; }; |
| 4429 $dynamic("get$style").SVGFEFloodElement = function() { return this.style; }; |
| 4430 $dynamic("set$style").SVGFEFloodElement = function(value) { return this.style =
value; }; |
| 4431 // ********** Code for SVGFEFuncAElement ************** |
| 4432 // ********** Code for SVGFEFuncBElement ************** |
| 4433 // ********** Code for SVGFEFuncGElement ************** |
| 4434 // ********** Code for SVGFEFuncRElement ************** |
| 4435 // ********** Code for SVGFEGaussianBlurElement ************** |
| 4436 $dynamic("get$height").SVGFEGaussianBlurElement = function() { return this.heigh
t; }; |
| 4437 $dynamic("set$height").SVGFEGaussianBlurElement = function(value) { return this.
height = value; }; |
| 4438 $dynamic("get$width").SVGFEGaussianBlurElement = function() { return this.width;
}; |
| 4439 $dynamic("set$width").SVGFEGaussianBlurElement = function(value) { return this.w
idth = value; }; |
| 4440 $dynamic("get$x").SVGFEGaussianBlurElement = function() { return this.x; }; |
| 4441 $dynamic("set$x").SVGFEGaussianBlurElement = function(value) { return this.x = v
alue; }; |
| 4442 $dynamic("get$y").SVGFEGaussianBlurElement = function() { return this.y; }; |
| 4443 $dynamic("set$y").SVGFEGaussianBlurElement = function(value) { return this.y = v
alue; }; |
| 4444 $dynamic("get$className").SVGFEGaussianBlurElement = function() { return this.cl
assName; }; |
| 4445 $dynamic("set$className").SVGFEGaussianBlurElement = function(value) { return th
is.className = value; }; |
| 4446 $dynamic("get$style").SVGFEGaussianBlurElement = function() { return this.style;
}; |
| 4447 $dynamic("set$style").SVGFEGaussianBlurElement = function(value) { return this.s
tyle = value; }; |
| 4448 // ********** Code for SVGFEImageElement ************** |
| 4449 $dynamic("get$height").SVGFEImageElement = function() { return this.height; }; |
| 4450 $dynamic("set$height").SVGFEImageElement = function(value) { return this.height
= value; }; |
| 4451 $dynamic("get$width").SVGFEImageElement = function() { return this.width; }; |
| 4452 $dynamic("set$width").SVGFEImageElement = function(value) { return this.width =
value; }; |
| 4453 $dynamic("get$x").SVGFEImageElement = function() { return this.x; }; |
| 4454 $dynamic("set$x").SVGFEImageElement = function(value) { return this.x = value; }
; |
| 4455 $dynamic("get$y").SVGFEImageElement = function() { return this.y; }; |
| 4456 $dynamic("set$y").SVGFEImageElement = function(value) { return this.y = value; }
; |
| 4457 $dynamic("get$className").SVGFEImageElement = function() { return this.className
; }; |
| 4458 $dynamic("set$className").SVGFEImageElement = function(value) { return this.clas
sName = value; }; |
| 4459 $dynamic("get$style").SVGFEImageElement = function() { return this.style; }; |
| 4460 $dynamic("set$style").SVGFEImageElement = function(value) { return this.style =
value; }; |
| 4461 // ********** Code for SVGFEMergeElement ************** |
| 4462 $dynamic("get$height").SVGFEMergeElement = function() { return this.height; }; |
| 4463 $dynamic("set$height").SVGFEMergeElement = function(value) { return this.height
= value; }; |
| 4464 $dynamic("get$width").SVGFEMergeElement = function() { return this.width; }; |
| 4465 $dynamic("set$width").SVGFEMergeElement = function(value) { return this.width =
value; }; |
| 4466 $dynamic("get$x").SVGFEMergeElement = function() { return this.x; }; |
| 4467 $dynamic("set$x").SVGFEMergeElement = function(value) { return this.x = value; }
; |
| 4468 $dynamic("get$y").SVGFEMergeElement = function() { return this.y; }; |
| 4469 $dynamic("set$y").SVGFEMergeElement = function(value) { return this.y = value; }
; |
| 4470 $dynamic("get$className").SVGFEMergeElement = function() { return this.className
; }; |
| 4471 $dynamic("set$className").SVGFEMergeElement = function(value) { return this.clas
sName = value; }; |
| 4472 $dynamic("get$style").SVGFEMergeElement = function() { return this.style; }; |
| 4473 $dynamic("set$style").SVGFEMergeElement = function(value) { return this.style =
value; }; |
| 4474 // ********** Code for SVGFEMergeNodeElement ************** |
| 4475 // ********** Code for dom_SVGFEMorphologyElement ************** |
| 4476 $dynamic("get$height").SVGFEMorphologyElement = function() { return this.height;
}; |
| 4477 $dynamic("set$height").SVGFEMorphologyElement = function(value) { return this.he
ight = value; }; |
| 4478 $dynamic("get$width").SVGFEMorphologyElement = function() { return this.width; }
; |
| 4479 $dynamic("set$width").SVGFEMorphologyElement = function(value) { return this.wid
th = value; }; |
| 4480 $dynamic("get$x").SVGFEMorphologyElement = function() { return this.x; }; |
| 4481 $dynamic("set$x").SVGFEMorphologyElement = function(value) { return this.x = val
ue; }; |
| 4482 $dynamic("get$y").SVGFEMorphologyElement = function() { return this.y; }; |
| 4483 $dynamic("set$y").SVGFEMorphologyElement = function(value) { return this.y = val
ue; }; |
| 4484 $dynamic("get$className").SVGFEMorphologyElement = function() { return this.clas
sName; }; |
| 4485 $dynamic("set$className").SVGFEMorphologyElement = function(value) { return this
.className = value; }; |
| 4486 $dynamic("get$style").SVGFEMorphologyElement = function() { return this.style; }
; |
| 4487 $dynamic("set$style").SVGFEMorphologyElement = function(value) { return this.sty
le = value; }; |
| 4488 // ********** Code for SVGFEOffsetElement ************** |
| 4489 $dynamic("get$height").SVGFEOffsetElement = function() { return this.height; }; |
| 4490 $dynamic("set$height").SVGFEOffsetElement = function(value) { return this.height
= value; }; |
| 4491 $dynamic("get$width").SVGFEOffsetElement = function() { return this.width; }; |
| 4492 $dynamic("set$width").SVGFEOffsetElement = function(value) { return this.width =
value; }; |
| 4493 $dynamic("get$x").SVGFEOffsetElement = function() { return this.x; }; |
| 4494 $dynamic("set$x").SVGFEOffsetElement = function(value) { return this.x = value;
}; |
| 4495 $dynamic("get$y").SVGFEOffsetElement = function() { return this.y; }; |
| 4496 $dynamic("set$y").SVGFEOffsetElement = function(value) { return this.y = value;
}; |
| 4497 $dynamic("get$className").SVGFEOffsetElement = function() { return this.classNam
e; }; |
| 4498 $dynamic("set$className").SVGFEOffsetElement = function(value) { return this.cla
ssName = value; }; |
| 4499 $dynamic("get$style").SVGFEOffsetElement = function() { return this.style; }; |
| 4500 $dynamic("set$style").SVGFEOffsetElement = function(value) { return this.style =
value; }; |
| 4501 // ********** Code for SVGFEPointLightElement ************** |
| 4502 $dynamic("get$x").SVGFEPointLightElement = function() { return this.x; }; |
| 4503 $dynamic("set$x").SVGFEPointLightElement = function(value) { return this.x = val
ue; }; |
| 4504 $dynamic("get$y").SVGFEPointLightElement = function() { return this.y; }; |
| 4505 $dynamic("set$y").SVGFEPointLightElement = function(value) { return this.y = val
ue; }; |
| 4506 // ********** Code for SVGFESpecularLightingElement ************** |
| 4507 $dynamic("get$height").SVGFESpecularLightingElement = function() { return this.h
eight; }; |
| 4508 $dynamic("set$height").SVGFESpecularLightingElement = function(value) { return t
his.height = value; }; |
| 4509 $dynamic("get$width").SVGFESpecularLightingElement = function() { return this.wi
dth; }; |
| 4510 $dynamic("set$width").SVGFESpecularLightingElement = function(value) { return th
is.width = value; }; |
| 4511 $dynamic("get$x").SVGFESpecularLightingElement = function() { return this.x; }; |
| 4512 $dynamic("set$x").SVGFESpecularLightingElement = function(value) { return this.x
= value; }; |
| 4513 $dynamic("get$y").SVGFESpecularLightingElement = function() { return this.y; }; |
| 4514 $dynamic("set$y").SVGFESpecularLightingElement = function(value) { return this.y
= value; }; |
| 4515 $dynamic("get$className").SVGFESpecularLightingElement = function() { return thi
s.className; }; |
| 4516 $dynamic("set$className").SVGFESpecularLightingElement = function(value) { retur
n this.className = value; }; |
| 4517 $dynamic("get$style").SVGFESpecularLightingElement = function() { return this.st
yle; }; |
| 4518 $dynamic("set$style").SVGFESpecularLightingElement = function(value) { return th
is.style = value; }; |
| 4519 // ********** Code for SVGFESpotLightElement ************** |
| 4520 $dynamic("get$x").SVGFESpotLightElement = function() { return this.x; }; |
| 4521 $dynamic("set$x").SVGFESpotLightElement = function(value) { return this.x = valu
e; }; |
| 4522 $dynamic("get$y").SVGFESpotLightElement = function() { return this.y; }; |
| 4523 $dynamic("set$y").SVGFESpotLightElement = function(value) { return this.y = valu
e; }; |
| 4524 // ********** Code for SVGFETileElement ************** |
| 4525 $dynamic("get$height").SVGFETileElement = function() { return this.height; }; |
| 4526 $dynamic("set$height").SVGFETileElement = function(value) { return this.height =
value; }; |
| 4527 $dynamic("get$width").SVGFETileElement = function() { return this.width; }; |
| 4528 $dynamic("set$width").SVGFETileElement = function(value) { return this.width = v
alue; }; |
| 4529 $dynamic("get$x").SVGFETileElement = function() { return this.x; }; |
| 4530 $dynamic("set$x").SVGFETileElement = function(value) { return this.x = value; }; |
| 4531 $dynamic("get$y").SVGFETileElement = function() { return this.y; }; |
| 4532 $dynamic("set$y").SVGFETileElement = function(value) { return this.y = value; }; |
| 4533 $dynamic("get$className").SVGFETileElement = function() { return this.className;
}; |
| 4534 $dynamic("set$className").SVGFETileElement = function(value) { return this.class
Name = value; }; |
| 4535 $dynamic("get$style").SVGFETileElement = function() { return this.style; }; |
| 4536 $dynamic("set$style").SVGFETileElement = function(value) { return this.style = v
alue; }; |
| 4537 // ********** Code for SVGFETurbulenceElement ************** |
| 4538 $dynamic("get$type").SVGFETurbulenceElement = function() { return this.type; }; |
| 4539 $dynamic("set$type").SVGFETurbulenceElement = function(value) { return this.type
= value; }; |
| 4540 $dynamic("get$height").SVGFETurbulenceElement = function() { return this.height;
}; |
| 4541 $dynamic("set$height").SVGFETurbulenceElement = function(value) { return this.he
ight = value; }; |
| 4542 $dynamic("get$width").SVGFETurbulenceElement = function() { return this.width; }
; |
| 4543 $dynamic("set$width").SVGFETurbulenceElement = function(value) { return this.wid
th = value; }; |
| 4544 $dynamic("get$x").SVGFETurbulenceElement = function() { return this.x; }; |
| 4545 $dynamic("set$x").SVGFETurbulenceElement = function(value) { return this.x = val
ue; }; |
| 4546 $dynamic("get$y").SVGFETurbulenceElement = function() { return this.y; }; |
| 4547 $dynamic("set$y").SVGFETurbulenceElement = function(value) { return this.y = val
ue; }; |
| 4548 $dynamic("get$className").SVGFETurbulenceElement = function() { return this.clas
sName; }; |
| 4549 $dynamic("set$className").SVGFETurbulenceElement = function(value) { return this
.className = value; }; |
| 4550 $dynamic("get$style").SVGFETurbulenceElement = function() { return this.style; }
; |
| 4551 $dynamic("set$style").SVGFETurbulenceElement = function(value) { return this.sty
le = value; }; |
| 4552 // ********** Code for SVGFilterElement ************** |
| 4553 $dynamic("get$height").SVGFilterElement = function() { return this.height; }; |
| 4554 $dynamic("set$height").SVGFilterElement = function(value) { return this.height =
value; }; |
| 4555 $dynamic("get$width").SVGFilterElement = function() { return this.width; }; |
| 4556 $dynamic("set$width").SVGFilterElement = function(value) { return this.width = v
alue; }; |
| 4557 $dynamic("get$x").SVGFilterElement = function() { return this.x; }; |
| 4558 $dynamic("set$x").SVGFilterElement = function(value) { return this.x = value; }; |
| 4559 $dynamic("get$y").SVGFilterElement = function() { return this.y; }; |
| 4560 $dynamic("set$y").SVGFilterElement = function(value) { return this.y = value; }; |
| 4561 $dynamic("get$className").SVGFilterElement = function() { return this.className;
}; |
| 4562 $dynamic("set$className").SVGFilterElement = function(value) { return this.class
Name = value; }; |
| 4563 $dynamic("get$style").SVGFilterElement = function() { return this.style; }; |
| 4564 $dynamic("set$style").SVGFilterElement = function(value) { return this.style = v
alue; }; |
| 4565 // ********** Code for SVGFilterPrimitiveStandardAttributes ************** |
| 4566 $dynamic("get$height").SVGFilterPrimitiveStandardAttributes = function() { retur
n this.height; }; |
| 4567 $dynamic("set$height").SVGFilterPrimitiveStandardAttributes = function(value) {
return this.height = value; }; |
| 4568 $dynamic("get$width").SVGFilterPrimitiveStandardAttributes = function() { return
this.width; }; |
| 4569 $dynamic("set$width").SVGFilterPrimitiveStandardAttributes = function(value) { r
eturn this.width = value; }; |
| 4570 $dynamic("get$x").SVGFilterPrimitiveStandardAttributes = function() { return thi
s.x; }; |
| 4571 $dynamic("set$x").SVGFilterPrimitiveStandardAttributes = function(value) { retur
n this.x = value; }; |
| 4572 $dynamic("get$y").SVGFilterPrimitiveStandardAttributes = function() { return thi
s.y; }; |
| 4573 $dynamic("set$y").SVGFilterPrimitiveStandardAttributes = function(value) { retur
n this.y = value; }; |
| 4574 // ********** Code for SVGFitToViewBox ************** |
| 4575 $dynamic("get$dartObjectLocalStorage").SVGFitToViewBox = function() { return thi
s.dartObjectLocalStorage; }; |
| 4576 $dynamic("set$dartObjectLocalStorage").SVGFitToViewBox = function(value) { retur
n this.dartObjectLocalStorage = value; }; |
| 4577 // ********** Code for SVGFontElement ************** |
| 4578 // ********** Code for SVGFontFaceElement ************** |
| 4579 // ********** Code for SVGFontFaceFormatElement ************** |
| 4580 // ********** Code for SVGFontFaceNameElement ************** |
| 4581 // ********** Code for SVGFontFaceSrcElement ************** |
| 4582 // ********** Code for SVGFontFaceUriElement ************** |
| 4583 // ********** Code for SVGForeignObjectElement ************** |
| 4584 $dynamic("get$height").SVGForeignObjectElement = function() { return this.height
; }; |
| 4585 $dynamic("set$height").SVGForeignObjectElement = function(value) { return this.h
eight = value; }; |
| 4586 $dynamic("get$width").SVGForeignObjectElement = function() { return this.width;
}; |
| 4587 $dynamic("set$width").SVGForeignObjectElement = function(value) { return this.wi
dth = value; }; |
| 4588 $dynamic("get$x").SVGForeignObjectElement = function() { return this.x; }; |
| 4589 $dynamic("set$x").SVGForeignObjectElement = function(value) { return this.x = va
lue; }; |
| 4590 $dynamic("get$y").SVGForeignObjectElement = function() { return this.y; }; |
| 4591 $dynamic("set$y").SVGForeignObjectElement = function(value) { return this.y = va
lue; }; |
| 4592 $dynamic("get$className").SVGForeignObjectElement = function() { return this.cla
ssName; }; |
| 4593 $dynamic("set$className").SVGForeignObjectElement = function(value) { return thi
s.className = value; }; |
| 4594 $dynamic("get$style").SVGForeignObjectElement = function() { return this.style;
}; |
| 4595 $dynamic("set$style").SVGForeignObjectElement = function(value) { return this.st
yle = value; }; |
| 4596 $dynamic("get$transform").SVGForeignObjectElement = function() { return this.tra
nsform; }; |
| 4597 $dynamic("set$transform").SVGForeignObjectElement = function(value) { return thi
s.transform = value; }; |
| 4598 // ********** Code for SVGGElement ************** |
| 4599 $dynamic("get$className").SVGGElement = function() { return this.className; }; |
| 4600 $dynamic("set$className").SVGGElement = function(value) { return this.className
= value; }; |
| 4601 $dynamic("get$style").SVGGElement = function() { return this.style; }; |
| 4602 $dynamic("set$style").SVGGElement = function(value) { return this.style = value;
}; |
| 4603 $dynamic("get$transform").SVGGElement = function() { return this.transform; }; |
| 4604 $dynamic("set$transform").SVGGElement = function(value) { return this.transform
= value; }; |
| 4605 // ********** Code for SVGGlyphElement ************** |
| 4606 // ********** Code for SVGGlyphRefElement ************** |
| 4607 $dynamic("get$x").SVGGlyphRefElement = function() { return this.x; }; |
| 4608 $dynamic("set$x").SVGGlyphRefElement = function(value) { return this.x = value;
}; |
| 4609 $dynamic("get$y").SVGGlyphRefElement = function() { return this.y; }; |
| 4610 $dynamic("set$y").SVGGlyphRefElement = function(value) { return this.y = value;
}; |
| 4611 $dynamic("get$className").SVGGlyphRefElement = function() { return this.classNam
e; }; |
| 4612 $dynamic("set$className").SVGGlyphRefElement = function(value) { return this.cla
ssName = value; }; |
| 4613 $dynamic("get$style").SVGGlyphRefElement = function() { return this.style; }; |
| 4614 $dynamic("set$style").SVGGlyphRefElement = function(value) { return this.style =
value; }; |
| 4615 // ********** Code for SVGGradientElement ************** |
| 4616 $dynamic("get$className").SVGGradientElement = function() { return this.classNam
e; }; |
| 4617 $dynamic("set$className").SVGGradientElement = function(value) { return this.cla
ssName = value; }; |
| 4618 $dynamic("get$style").SVGGradientElement = function() { return this.style; }; |
| 4619 $dynamic("set$style").SVGGradientElement = function(value) { return this.style =
value; }; |
| 4620 // ********** Code for SVGHKernElement ************** |
| 4621 // ********** Code for SVGImageElement ************** |
| 4622 $dynamic("get$height").SVGImageElement = function() { return this.height; }; |
| 4623 $dynamic("set$height").SVGImageElement = function(value) { return this.height =
value; }; |
| 4624 $dynamic("get$width").SVGImageElement = function() { return this.width; }; |
| 4625 $dynamic("set$width").SVGImageElement = function(value) { return this.width = va
lue; }; |
| 4626 $dynamic("get$x").SVGImageElement = function() { return this.x; }; |
| 4627 $dynamic("set$x").SVGImageElement = function(value) { return this.x = value; }; |
| 4628 $dynamic("get$y").SVGImageElement = function() { return this.y; }; |
| 4629 $dynamic("set$y").SVGImageElement = function(value) { return this.y = value; }; |
| 4630 $dynamic("get$className").SVGImageElement = function() { return this.className;
}; |
| 4631 $dynamic("set$className").SVGImageElement = function(value) { return this.classN
ame = value; }; |
| 4632 $dynamic("get$style").SVGImageElement = function() { return this.style; }; |
| 4633 $dynamic("set$style").SVGImageElement = function(value) { return this.style = va
lue; }; |
| 4634 $dynamic("get$transform").SVGImageElement = function() { return this.transform;
}; |
| 4635 $dynamic("set$transform").SVGImageElement = function(value) { return this.transf
orm = value; }; |
| 4636 // ********** Code for SVGLangSpace ************** |
| 4637 $dynamic("get$dartObjectLocalStorage").SVGLangSpace = function() { return this.d
artObjectLocalStorage; }; |
| 4638 $dynamic("set$dartObjectLocalStorage").SVGLangSpace = function(value) { return t
his.dartObjectLocalStorage = value; }; |
| 4639 // ********** Code for SVGLength ************** |
| 4640 $dynamic("get$value").SVGLength = function() { return this.value; }; |
| 4641 $dynamic("set$value").SVGLength = function(value) { return this.value = value; }
; |
| 4642 $dynamic("get$dartObjectLocalStorage").SVGLength = function() { return this.dart
ObjectLocalStorage; }; |
| 4643 $dynamic("set$dartObjectLocalStorage").SVGLength = function(value) { return this
.dartObjectLocalStorage = value; }; |
| 4644 // ********** Code for SVGLengthList ************** |
| 4645 $dynamic("get$clear").SVGLengthList = function() { |
| 4646 return this.clear.bind(this); |
| 4647 } |
| 4648 $dynamic("get$dartObjectLocalStorage").SVGLengthList = function() { return this.
dartObjectLocalStorage; }; |
| 4649 $dynamic("set$dartObjectLocalStorage").SVGLengthList = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 4650 $dynamic("clear$0").SVGLengthList = function() { |
| 4651 return this.clear(); |
| 4652 }; |
| 4653 // ********** Code for SVGLineElement ************** |
| 4654 $dynamic("get$className").SVGLineElement = function() { return this.className; }
; |
| 4655 $dynamic("set$className").SVGLineElement = function(value) { return this.classNa
me = value; }; |
| 4656 $dynamic("get$style").SVGLineElement = function() { return this.style; }; |
| 4657 $dynamic("set$style").SVGLineElement = function(value) { return this.style = val
ue; }; |
| 4658 $dynamic("get$transform").SVGLineElement = function() { return this.transform; }
; |
| 4659 $dynamic("set$transform").SVGLineElement = function(value) { return this.transfo
rm = value; }; |
| 4660 // ********** Code for SVGLinearGradientElement ************** |
| 4661 // ********** Code for SVGLocatable ************** |
| 4662 $dynamic("get$dartObjectLocalStorage").SVGLocatable = function() { return this.d
artObjectLocalStorage; }; |
| 4663 $dynamic("set$dartObjectLocalStorage").SVGLocatable = function(value) { return t
his.dartObjectLocalStorage = value; }; |
| 4664 // ********** Code for SVGMPathElement ************** |
| 4665 // ********** Code for SVGMarkerElement ************** |
| 4666 $dynamic("get$className").SVGMarkerElement = function() { return this.className;
}; |
| 4667 $dynamic("set$className").SVGMarkerElement = function(value) { return this.class
Name = value; }; |
| 4668 $dynamic("get$style").SVGMarkerElement = function() { return this.style; }; |
| 4669 $dynamic("set$style").SVGMarkerElement = function(value) { return this.style = v
alue; }; |
| 4670 // ********** Code for SVGMaskElement ************** |
| 4671 $dynamic("get$height").SVGMaskElement = function() { return this.height; }; |
| 4672 $dynamic("set$height").SVGMaskElement = function(value) { return this.height = v
alue; }; |
| 4673 $dynamic("get$width").SVGMaskElement = function() { return this.width; }; |
| 4674 $dynamic("set$width").SVGMaskElement = function(value) { return this.width = val
ue; }; |
| 4675 $dynamic("get$x").SVGMaskElement = function() { return this.x; }; |
| 4676 $dynamic("set$x").SVGMaskElement = function(value) { return this.x = value; }; |
| 4677 $dynamic("get$y").SVGMaskElement = function() { return this.y; }; |
| 4678 $dynamic("set$y").SVGMaskElement = function(value) { return this.y = value; }; |
| 4679 $dynamic("get$className").SVGMaskElement = function() { return this.className; }
; |
| 4680 $dynamic("set$className").SVGMaskElement = function(value) { return this.classNa
me = value; }; |
| 4681 $dynamic("get$style").SVGMaskElement = function() { return this.style; }; |
| 4682 $dynamic("set$style").SVGMaskElement = function(value) { return this.style = val
ue; }; |
| 4683 // ********** Code for SVGMatrix ************** |
| 4684 $dynamic("get$dartObjectLocalStorage").SVGMatrix = function() { return this.dart
ObjectLocalStorage; }; |
| 4685 $dynamic("set$dartObjectLocalStorage").SVGMatrix = function(value) { return this
.dartObjectLocalStorage = value; }; |
| 4686 // ********** Code for SVGMetadataElement ************** |
| 4687 // ********** Code for SVGMissingGlyphElement ************** |
| 4688 // ********** Code for SVGNumber ************** |
| 4689 $dynamic("get$value").SVGNumber = function() { return this.value; }; |
| 4690 $dynamic("set$value").SVGNumber = function(value) { return this.value = value; }
; |
| 4691 $dynamic("get$dartObjectLocalStorage").SVGNumber = function() { return this.dart
ObjectLocalStorage; }; |
| 4692 $dynamic("set$dartObjectLocalStorage").SVGNumber = function(value) { return this
.dartObjectLocalStorage = value; }; |
| 4693 // ********** Code for SVGNumberList ************** |
| 4694 $dynamic("get$clear").SVGNumberList = function() { |
| 4695 return this.clear.bind(this); |
| 4696 } |
| 4697 $dynamic("get$dartObjectLocalStorage").SVGNumberList = function() { return this.
dartObjectLocalStorage; }; |
| 4698 $dynamic("set$dartObjectLocalStorage").SVGNumberList = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 4699 $dynamic("clear$0").SVGNumberList = function() { |
| 4700 return this.clear(); |
| 4701 }; |
| 4702 // ********** Code for SVGPaint ************** |
| 4703 // ********** Code for SVGPathElement ************** |
| 4704 $dynamic("get$className").SVGPathElement = function() { return this.className; }
; |
| 4705 $dynamic("set$className").SVGPathElement = function(value) { return this.classNa
me = value; }; |
| 4706 $dynamic("get$style").SVGPathElement = function() { return this.style; }; |
| 4707 $dynamic("set$style").SVGPathElement = function(value) { return this.style = val
ue; }; |
| 4708 $dynamic("get$transform").SVGPathElement = function() { return this.transform; }
; |
| 4709 $dynamic("set$transform").SVGPathElement = function(value) { return this.transfo
rm = value; }; |
| 4710 // ********** Code for SVGPathSeg ************** |
| 4711 $dynamic("get$dartObjectLocalStorage").SVGPathSeg = function() { return this.dar
tObjectLocalStorage; }; |
| 4712 $dynamic("set$dartObjectLocalStorage").SVGPathSeg = function(value) { return thi
s.dartObjectLocalStorage = value; }; |
| 4713 // ********** Code for SVGPathSegArcAbs ************** |
| 4714 $dynamic("get$x").SVGPathSegArcAbs = function() { return this.x; }; |
| 4715 $dynamic("set$x").SVGPathSegArcAbs = function(value) { return this.x = value; }; |
| 4716 $dynamic("get$y").SVGPathSegArcAbs = function() { return this.y; }; |
| 4717 $dynamic("set$y").SVGPathSegArcAbs = function(value) { return this.y = value; }; |
| 4718 // ********** Code for SVGPathSegArcRel ************** |
| 4719 $dynamic("get$x").SVGPathSegArcRel = function() { return this.x; }; |
| 4720 $dynamic("set$x").SVGPathSegArcRel = function(value) { return this.x = value; }; |
| 4721 $dynamic("get$y").SVGPathSegArcRel = function() { return this.y; }; |
| 4722 $dynamic("set$y").SVGPathSegArcRel = function(value) { return this.y = value; }; |
| 4723 // ********** Code for SVGPathSegClosePath ************** |
| 4724 // ********** Code for SVGPathSegCurvetoCubicAbs ************** |
| 4725 $dynamic("get$x").SVGPathSegCurvetoCubicAbs = function() { return this.x; }; |
| 4726 $dynamic("set$x").SVGPathSegCurvetoCubicAbs = function(value) { return this.x =
value; }; |
| 4727 $dynamic("get$y").SVGPathSegCurvetoCubicAbs = function() { return this.y; }; |
| 4728 $dynamic("set$y").SVGPathSegCurvetoCubicAbs = function(value) { return this.y =
value; }; |
| 4729 // ********** Code for SVGPathSegCurvetoCubicRel ************** |
| 4730 $dynamic("get$x").SVGPathSegCurvetoCubicRel = function() { return this.x; }; |
| 4731 $dynamic("set$x").SVGPathSegCurvetoCubicRel = function(value) { return this.x =
value; }; |
| 4732 $dynamic("get$y").SVGPathSegCurvetoCubicRel = function() { return this.y; }; |
| 4733 $dynamic("set$y").SVGPathSegCurvetoCubicRel = function(value) { return this.y =
value; }; |
| 4734 // ********** Code for SVGPathSegCurvetoCubicSmoothAbs ************** |
| 4735 $dynamic("get$x").SVGPathSegCurvetoCubicSmoothAbs = function() { return this.x;
}; |
| 4736 $dynamic("set$x").SVGPathSegCurvetoCubicSmoothAbs = function(value) { return thi
s.x = value; }; |
| 4737 $dynamic("get$y").SVGPathSegCurvetoCubicSmoothAbs = function() { return this.y;
}; |
| 4738 $dynamic("set$y").SVGPathSegCurvetoCubicSmoothAbs = function(value) { return thi
s.y = value; }; |
| 4739 // ********** Code for SVGPathSegCurvetoCubicSmoothRel ************** |
| 4740 $dynamic("get$x").SVGPathSegCurvetoCubicSmoothRel = function() { return this.x;
}; |
| 4741 $dynamic("set$x").SVGPathSegCurvetoCubicSmoothRel = function(value) { return thi
s.x = value; }; |
| 4742 $dynamic("get$y").SVGPathSegCurvetoCubicSmoothRel = function() { return this.y;
}; |
| 4743 $dynamic("set$y").SVGPathSegCurvetoCubicSmoothRel = function(value) { return thi
s.y = value; }; |
| 4744 // ********** Code for SVGPathSegCurvetoQuadraticAbs ************** |
| 4745 $dynamic("get$x").SVGPathSegCurvetoQuadraticAbs = function() { return this.x; }; |
| 4746 $dynamic("set$x").SVGPathSegCurvetoQuadraticAbs = function(value) { return this.
x = value; }; |
| 4747 $dynamic("get$y").SVGPathSegCurvetoQuadraticAbs = function() { return this.y; }; |
| 4748 $dynamic("set$y").SVGPathSegCurvetoQuadraticAbs = function(value) { return this.
y = value; }; |
| 4749 // ********** Code for SVGPathSegCurvetoQuadraticRel ************** |
| 4750 $dynamic("get$x").SVGPathSegCurvetoQuadraticRel = function() { return this.x; }; |
| 4751 $dynamic("set$x").SVGPathSegCurvetoQuadraticRel = function(value) { return this.
x = value; }; |
| 4752 $dynamic("get$y").SVGPathSegCurvetoQuadraticRel = function() { return this.y; }; |
| 4753 $dynamic("set$y").SVGPathSegCurvetoQuadraticRel = function(value) { return this.
y = value; }; |
| 4754 // ********** Code for SVGPathSegCurvetoQuadraticSmoothAbs ************** |
| 4755 $dynamic("get$x").SVGPathSegCurvetoQuadraticSmoothAbs = function() { return this
.x; }; |
| 4756 $dynamic("set$x").SVGPathSegCurvetoQuadraticSmoothAbs = function(value) { return
this.x = value; }; |
| 4757 $dynamic("get$y").SVGPathSegCurvetoQuadraticSmoothAbs = function() { return this
.y; }; |
| 4758 $dynamic("set$y").SVGPathSegCurvetoQuadraticSmoothAbs = function(value) { return
this.y = value; }; |
| 4759 // ********** Code for SVGPathSegCurvetoQuadraticSmoothRel ************** |
| 4760 $dynamic("get$x").SVGPathSegCurvetoQuadraticSmoothRel = function() { return this
.x; }; |
| 4761 $dynamic("set$x").SVGPathSegCurvetoQuadraticSmoothRel = function(value) { return
this.x = value; }; |
| 4762 $dynamic("get$y").SVGPathSegCurvetoQuadraticSmoothRel = function() { return this
.y; }; |
| 4763 $dynamic("set$y").SVGPathSegCurvetoQuadraticSmoothRel = function(value) { return
this.y = value; }; |
| 4764 // ********** Code for SVGPathSegLinetoAbs ************** |
| 4765 $dynamic("get$x").SVGPathSegLinetoAbs = function() { return this.x; }; |
| 4766 $dynamic("set$x").SVGPathSegLinetoAbs = function(value) { return this.x = value;
}; |
| 4767 $dynamic("get$y").SVGPathSegLinetoAbs = function() { return this.y; }; |
| 4768 $dynamic("set$y").SVGPathSegLinetoAbs = function(value) { return this.y = value;
}; |
| 4769 // ********** Code for SVGPathSegLinetoHorizontalAbs ************** |
| 4770 $dynamic("get$x").SVGPathSegLinetoHorizontalAbs = function() { return this.x; }; |
| 4771 $dynamic("set$x").SVGPathSegLinetoHorizontalAbs = function(value) { return this.
x = value; }; |
| 4772 // ********** Code for SVGPathSegLinetoHorizontalRel ************** |
| 4773 $dynamic("get$x").SVGPathSegLinetoHorizontalRel = function() { return this.x; }; |
| 4774 $dynamic("set$x").SVGPathSegLinetoHorizontalRel = function(value) { return this.
x = value; }; |
| 4775 // ********** Code for SVGPathSegLinetoRel ************** |
| 4776 $dynamic("get$x").SVGPathSegLinetoRel = function() { return this.x; }; |
| 4777 $dynamic("set$x").SVGPathSegLinetoRel = function(value) { return this.x = value;
}; |
| 4778 $dynamic("get$y").SVGPathSegLinetoRel = function() { return this.y; }; |
| 4779 $dynamic("set$y").SVGPathSegLinetoRel = function(value) { return this.y = value;
}; |
| 4780 // ********** Code for SVGPathSegLinetoVerticalAbs ************** |
| 4781 $dynamic("get$y").SVGPathSegLinetoVerticalAbs = function() { return this.y; }; |
| 4782 $dynamic("set$y").SVGPathSegLinetoVerticalAbs = function(value) { return this.y
= value; }; |
| 4783 // ********** Code for SVGPathSegLinetoVerticalRel ************** |
| 4784 $dynamic("get$y").SVGPathSegLinetoVerticalRel = function() { return this.y; }; |
| 4785 $dynamic("set$y").SVGPathSegLinetoVerticalRel = function(value) { return this.y
= value; }; |
| 4786 // ********** Code for SVGPathSegList ************** |
| 4787 $dynamic("get$clear").SVGPathSegList = function() { |
| 4788 return this.clear.bind(this); |
| 4789 } |
| 4790 $dynamic("get$dartObjectLocalStorage").SVGPathSegList = function() { return this
.dartObjectLocalStorage; }; |
| 4791 $dynamic("set$dartObjectLocalStorage").SVGPathSegList = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 4792 $dynamic("clear$0").SVGPathSegList = function() { |
| 4793 return this.clear(); |
| 4794 }; |
| 4795 // ********** Code for SVGPathSegMovetoAbs ************** |
| 4796 $dynamic("get$x").SVGPathSegMovetoAbs = function() { return this.x; }; |
| 4797 $dynamic("set$x").SVGPathSegMovetoAbs = function(value) { return this.x = value;
}; |
| 4798 $dynamic("get$y").SVGPathSegMovetoAbs = function() { return this.y; }; |
| 4799 $dynamic("set$y").SVGPathSegMovetoAbs = function(value) { return this.y = value;
}; |
| 4800 // ********** Code for SVGPathSegMovetoRel ************** |
| 4801 $dynamic("get$x").SVGPathSegMovetoRel = function() { return this.x; }; |
| 4802 $dynamic("set$x").SVGPathSegMovetoRel = function(value) { return this.x = value;
}; |
| 4803 $dynamic("get$y").SVGPathSegMovetoRel = function() { return this.y; }; |
| 4804 $dynamic("set$y").SVGPathSegMovetoRel = function(value) { return this.y = value;
}; |
| 4805 // ********** Code for SVGPatternElement ************** |
| 4806 $dynamic("get$height").SVGPatternElement = function() { return this.height; }; |
| 4807 $dynamic("set$height").SVGPatternElement = function(value) { return this.height
= value; }; |
| 4808 $dynamic("get$width").SVGPatternElement = function() { return this.width; }; |
| 4809 $dynamic("set$width").SVGPatternElement = function(value) { return this.width =
value; }; |
| 4810 $dynamic("get$x").SVGPatternElement = function() { return this.x; }; |
| 4811 $dynamic("set$x").SVGPatternElement = function(value) { return this.x = value; }
; |
| 4812 $dynamic("get$y").SVGPatternElement = function() { return this.y; }; |
| 4813 $dynamic("set$y").SVGPatternElement = function(value) { return this.y = value; }
; |
| 4814 $dynamic("get$className").SVGPatternElement = function() { return this.className
; }; |
| 4815 $dynamic("set$className").SVGPatternElement = function(value) { return this.clas
sName = value; }; |
| 4816 $dynamic("get$style").SVGPatternElement = function() { return this.style; }; |
| 4817 $dynamic("set$style").SVGPatternElement = function(value) { return this.style =
value; }; |
| 4818 // ********** Code for SVGPoint ************** |
| 4819 $dynamic("get$x").SVGPoint = function() { return this.x; }; |
| 4820 $dynamic("set$x").SVGPoint = function(value) { return this.x = value; }; |
| 4821 $dynamic("get$y").SVGPoint = function() { return this.y; }; |
| 4822 $dynamic("set$y").SVGPoint = function(value) { return this.y = value; }; |
| 4823 $dynamic("get$dartObjectLocalStorage").SVGPoint = function() { return this.dartO
bjectLocalStorage; }; |
| 4824 $dynamic("set$dartObjectLocalStorage").SVGPoint = function(value) { return this.
dartObjectLocalStorage = value; }; |
| 4825 // ********** Code for SVGPointList ************** |
| 4826 $dynamic("get$clear").SVGPointList = function() { |
| 4827 return this.clear.bind(this); |
| 4828 } |
| 4829 $dynamic("get$dartObjectLocalStorage").SVGPointList = function() { return this.d
artObjectLocalStorage; }; |
| 4830 $dynamic("set$dartObjectLocalStorage").SVGPointList = function(value) { return t
his.dartObjectLocalStorage = value; }; |
| 4831 $dynamic("clear$0").SVGPointList = function() { |
| 4832 return this.clear(); |
| 4833 }; |
| 4834 // ********** Code for SVGPolygonElement ************** |
| 4835 $dynamic("get$className").SVGPolygonElement = function() { return this.className
; }; |
| 4836 $dynamic("set$className").SVGPolygonElement = function(value) { return this.clas
sName = value; }; |
| 4837 $dynamic("get$style").SVGPolygonElement = function() { return this.style; }; |
| 4838 $dynamic("set$style").SVGPolygonElement = function(value) { return this.style =
value; }; |
| 4839 $dynamic("get$transform").SVGPolygonElement = function() { return this.transform
; }; |
| 4840 $dynamic("set$transform").SVGPolygonElement = function(value) { return this.tran
sform = value; }; |
| 4841 // ********** Code for SVGPolylineElement ************** |
| 4842 $dynamic("get$className").SVGPolylineElement = function() { return this.classNam
e; }; |
| 4843 $dynamic("set$className").SVGPolylineElement = function(value) { return this.cla
ssName = value; }; |
| 4844 $dynamic("get$style").SVGPolylineElement = function() { return this.style; }; |
| 4845 $dynamic("set$style").SVGPolylineElement = function(value) { return this.style =
value; }; |
| 4846 $dynamic("get$transform").SVGPolylineElement = function() { return this.transfor
m; }; |
| 4847 $dynamic("set$transform").SVGPolylineElement = function(value) { return this.tra
nsform = value; }; |
| 4848 // ********** Code for SVGPreserveAspectRatio ************** |
| 4849 $dynamic("get$dartObjectLocalStorage").SVGPreserveAspectRatio = function() { ret
urn this.dartObjectLocalStorage; }; |
| 4850 $dynamic("set$dartObjectLocalStorage").SVGPreserveAspectRatio = function(value)
{ return this.dartObjectLocalStorage = value; }; |
| 4851 // ********** Code for SVGRadialGradientElement ************** |
| 4852 // ********** Code for SVGRect ************** |
| 4853 $dynamic("get$height").SVGRect = function() { return this.height; }; |
| 4854 $dynamic("set$height").SVGRect = function(value) { return this.height = value; }
; |
| 4855 $dynamic("get$width").SVGRect = function() { return this.width; }; |
| 4856 $dynamic("set$width").SVGRect = function(value) { return this.width = value; }; |
| 4857 $dynamic("get$x").SVGRect = function() { return this.x; }; |
| 4858 $dynamic("set$x").SVGRect = function(value) { return this.x = value; }; |
| 4859 $dynamic("get$y").SVGRect = function() { return this.y; }; |
| 4860 $dynamic("set$y").SVGRect = function(value) { return this.y = value; }; |
| 4861 $dynamic("get$dartObjectLocalStorage").SVGRect = function() { return this.dartOb
jectLocalStorage; }; |
| 4862 $dynamic("set$dartObjectLocalStorage").SVGRect = function(value) { return this.d
artObjectLocalStorage = value; }; |
| 4863 // ********** Code for SVGRectElement ************** |
| 4864 $dynamic("get$height").SVGRectElement = function() { return this.height; }; |
| 4865 $dynamic("set$height").SVGRectElement = function(value) { return this.height = v
alue; }; |
| 4866 $dynamic("get$width").SVGRectElement = function() { return this.width; }; |
| 4867 $dynamic("set$width").SVGRectElement = function(value) { return this.width = val
ue; }; |
| 4868 $dynamic("get$x").SVGRectElement = function() { return this.x; }; |
| 4869 $dynamic("set$x").SVGRectElement = function(value) { return this.x = value; }; |
| 4870 $dynamic("get$y").SVGRectElement = function() { return this.y; }; |
| 4871 $dynamic("set$y").SVGRectElement = function(value) { return this.y = value; }; |
| 4872 $dynamic("get$className").SVGRectElement = function() { return this.className; }
; |
| 4873 $dynamic("set$className").SVGRectElement = function(value) { return this.classNa
me = value; }; |
| 4874 $dynamic("get$style").SVGRectElement = function() { return this.style; }; |
| 4875 $dynamic("set$style").SVGRectElement = function(value) { return this.style = val
ue; }; |
| 4876 $dynamic("get$transform").SVGRectElement = function() { return this.transform; }
; |
| 4877 $dynamic("set$transform").SVGRectElement = function(value) { return this.transfo
rm = value; }; |
| 4878 // ********** Code for SVGRenderingIntent ************** |
| 4879 $dynamic("get$dartObjectLocalStorage").SVGRenderingIntent = function() { return
this.dartObjectLocalStorage; }; |
| 4880 $dynamic("set$dartObjectLocalStorage").SVGRenderingIntent = function(value) { re
turn this.dartObjectLocalStorage = value; }; |
| 4881 // ********** Code for SVGSVGElement ************** |
| 4882 $dynamic("get$height").SVGSVGElement = function() { return this.height; }; |
| 4883 $dynamic("set$height").SVGSVGElement = function(value) { return this.height = va
lue; }; |
| 4884 $dynamic("get$width").SVGSVGElement = function() { return this.width; }; |
| 4885 $dynamic("set$width").SVGSVGElement = function(value) { return this.width = valu
e; }; |
| 4886 $dynamic("get$x").SVGSVGElement = function() { return this.x; }; |
| 4887 $dynamic("set$x").SVGSVGElement = function(value) { return this.x = value; }; |
| 4888 $dynamic("get$y").SVGSVGElement = function() { return this.y; }; |
| 4889 $dynamic("set$y").SVGSVGElement = function(value) { return this.y = value; }; |
| 4890 $dynamic("get$className").SVGSVGElement = function() { return this.className; }; |
| 4891 $dynamic("set$className").SVGSVGElement = function(value) { return this.classNam
e = value; }; |
| 4892 $dynamic("get$style").SVGSVGElement = function() { return this.style; }; |
| 4893 $dynamic("set$style").SVGSVGElement = function(value) { return this.style = valu
e; }; |
| 4894 // ********** Code for SVGScriptElement ************** |
| 4895 $dynamic("get$type").SVGScriptElement = function() { return this.type; }; |
| 4896 $dynamic("set$type").SVGScriptElement = function(value) { return this.type = val
ue; }; |
| 4897 // ********** Code for SVGSetElement ************** |
| 4898 // ********** Code for SVGStopElement ************** |
| 4899 $dynamic("get$offset").SVGStopElement = function() { return this.offset; }; |
| 4900 $dynamic("set$offset").SVGStopElement = function(value) { return this.offset = v
alue; }; |
| 4901 $dynamic("get$className").SVGStopElement = function() { return this.className; }
; |
| 4902 $dynamic("set$className").SVGStopElement = function(value) { return this.classNa
me = value; }; |
| 4903 $dynamic("get$style").SVGStopElement = function() { return this.style; }; |
| 4904 $dynamic("set$style").SVGStopElement = function(value) { return this.style = val
ue; }; |
| 4905 // ********** Code for SVGStringList ************** |
| 4906 $dynamic("get$clear").SVGStringList = function() { |
| 4907 return this.clear.bind(this); |
| 4908 } |
| 4909 $dynamic("get$dartObjectLocalStorage").SVGStringList = function() { return this.
dartObjectLocalStorage; }; |
| 4910 $dynamic("set$dartObjectLocalStorage").SVGStringList = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 4911 $dynamic("clear$0").SVGStringList = function() { |
| 4912 return this.clear(); |
| 4913 }; |
| 4914 // ********** Code for SVGStylable ************** |
| 4915 $dynamic("get$className").SVGStylable = function() { return this.className; }; |
| 4916 $dynamic("set$className").SVGStylable = function(value) { return this.className
= value; }; |
| 4917 $dynamic("get$style").SVGStylable = function() { return this.style; }; |
| 4918 $dynamic("set$style").SVGStylable = function(value) { return this.style = value;
}; |
| 4919 $dynamic("get$dartObjectLocalStorage").SVGStylable = function() { return this.da
rtObjectLocalStorage; }; |
| 4920 $dynamic("set$dartObjectLocalStorage").SVGStylable = function(value) { return th
is.dartObjectLocalStorage = value; }; |
| 4921 // ********** Code for SVGStyleElement ************** |
| 4922 $dynamic("get$title").SVGStyleElement = function() { return this.title; }; |
| 4923 $dynamic("set$title").SVGStyleElement = function(value) { return this.title = va
lue; }; |
| 4924 $dynamic("get$type").SVGStyleElement = function() { return this.type; }; |
| 4925 $dynamic("set$type").SVGStyleElement = function(value) { return this.type = valu
e; }; |
| 4926 // ********** Code for SVGSwitchElement ************** |
| 4927 $dynamic("get$className").SVGSwitchElement = function() { return this.className;
}; |
| 4928 $dynamic("set$className").SVGSwitchElement = function(value) { return this.class
Name = value; }; |
| 4929 $dynamic("get$style").SVGSwitchElement = function() { return this.style; }; |
| 4930 $dynamic("set$style").SVGSwitchElement = function(value) { return this.style = v
alue; }; |
| 4931 $dynamic("get$transform").SVGSwitchElement = function() { return this.transform;
}; |
| 4932 $dynamic("set$transform").SVGSwitchElement = function(value) { return this.trans
form = value; }; |
| 4933 // ********** Code for SVGSymbolElement ************** |
| 4934 $dynamic("get$className").SVGSymbolElement = function() { return this.className;
}; |
| 4935 $dynamic("set$className").SVGSymbolElement = function(value) { return this.class
Name = value; }; |
| 4936 $dynamic("get$style").SVGSymbolElement = function() { return this.style; }; |
| 4937 $dynamic("set$style").SVGSymbolElement = function(value) { return this.style = v
alue; }; |
| 4938 // ********** Code for SVGTRefElement ************** |
| 4939 // ********** Code for SVGTSpanElement ************** |
| 4940 // ********** Code for SVGTests ************** |
| 4941 $dynamic("get$dartObjectLocalStorage").SVGTests = function() { return this.dartO
bjectLocalStorage; }; |
| 4942 $dynamic("set$dartObjectLocalStorage").SVGTests = function(value) { return this.
dartObjectLocalStorage = value; }; |
| 4943 // ********** Code for SVGTextContentElement ************** |
| 4944 $dynamic("get$className").SVGTextContentElement = function() { return this.class
Name; }; |
| 4945 $dynamic("set$className").SVGTextContentElement = function(value) { return this.
className = value; }; |
| 4946 $dynamic("get$style").SVGTextContentElement = function() { return this.style; }; |
| 4947 $dynamic("set$style").SVGTextContentElement = function(value) { return this.styl
e = value; }; |
| 4948 // ********** Code for SVGTextElement ************** |
| 4949 $dynamic("get$transform").SVGTextElement = function() { return this.transform; }
; |
| 4950 $dynamic("set$transform").SVGTextElement = function(value) { return this.transfo
rm = value; }; |
| 4951 // ********** Code for SVGTextPathElement ************** |
| 4952 // ********** Code for SVGTextPositioningElement ************** |
| 4953 $dynamic("get$x").SVGTextPositioningElement = function() { return this.x; }; |
| 4954 $dynamic("set$x").SVGTextPositioningElement = function(value) { return this.x =
value; }; |
| 4955 $dynamic("get$y").SVGTextPositioningElement = function() { return this.y; }; |
| 4956 $dynamic("set$y").SVGTextPositioningElement = function(value) { return this.y =
value; }; |
| 4957 // ********** Code for SVGTitleElement ************** |
| 4958 $dynamic("get$className").SVGTitleElement = function() { return this.className;
}; |
| 4959 $dynamic("set$className").SVGTitleElement = function(value) { return this.classN
ame = value; }; |
| 4960 $dynamic("get$style").SVGTitleElement = function() { return this.style; }; |
| 4961 $dynamic("set$style").SVGTitleElement = function(value) { return this.style = va
lue; }; |
| 4962 // ********** Code for SVGTransform ************** |
| 4963 $dynamic("get$type").SVGTransform = function() { return this.type; }; |
| 4964 $dynamic("set$type").SVGTransform = function(value) { return this.type = value;
}; |
| 4965 $dynamic("get$dartObjectLocalStorage").SVGTransform = function() { return this.d
artObjectLocalStorage; }; |
| 4966 $dynamic("set$dartObjectLocalStorage").SVGTransform = function(value) { return t
his.dartObjectLocalStorage = value; }; |
| 4967 // ********** Code for SVGTransformList ************** |
| 4968 $dynamic("get$clear").SVGTransformList = function() { |
| 4969 return this.clear.bind(this); |
| 4970 } |
| 4971 $dynamic("get$dartObjectLocalStorage").SVGTransformList = function() { return th
is.dartObjectLocalStorage; }; |
| 4972 $dynamic("set$dartObjectLocalStorage").SVGTransformList = function(value) { retu
rn this.dartObjectLocalStorage = value; }; |
| 4973 $dynamic("clear$0").SVGTransformList = function() { |
| 4974 return this.clear(); |
| 4975 }; |
| 4976 // ********** Code for SVGTransformable ************** |
| 4977 $dynamic("get$transform").SVGTransformable = function() { return this.transform;
}; |
| 4978 $dynamic("set$transform").SVGTransformable = function(value) { return this.trans
form = value; }; |
| 4979 // ********** Code for SVGURIReference ************** |
| 4980 $dynamic("get$dartObjectLocalStorage").SVGURIReference = function() { return thi
s.dartObjectLocalStorage; }; |
| 4981 $dynamic("set$dartObjectLocalStorage").SVGURIReference = function(value) { retur
n this.dartObjectLocalStorage = value; }; |
| 4982 // ********** Code for SVGUnitTypes ************** |
| 4983 $dynamic("get$dartObjectLocalStorage").SVGUnitTypes = function() { return this.d
artObjectLocalStorage; }; |
| 4984 $dynamic("set$dartObjectLocalStorage").SVGUnitTypes = function(value) { return t
his.dartObjectLocalStorage = value; }; |
| 4985 // ********** Code for SVGUseElement ************** |
| 4986 $dynamic("get$height").SVGUseElement = function() { return this.height; }; |
| 4987 $dynamic("set$height").SVGUseElement = function(value) { return this.height = va
lue; }; |
| 4988 $dynamic("get$width").SVGUseElement = function() { return this.width; }; |
| 4989 $dynamic("set$width").SVGUseElement = function(value) { return this.width = valu
e; }; |
| 4990 $dynamic("get$x").SVGUseElement = function() { return this.x; }; |
| 4991 $dynamic("set$x").SVGUseElement = function(value) { return this.x = value; }; |
| 4992 $dynamic("get$y").SVGUseElement = function() { return this.y; }; |
| 4993 $dynamic("set$y").SVGUseElement = function(value) { return this.y = value; }; |
| 4994 $dynamic("get$className").SVGUseElement = function() { return this.className; }; |
| 4995 $dynamic("set$className").SVGUseElement = function(value) { return this.classNam
e = value; }; |
| 4996 $dynamic("get$style").SVGUseElement = function() { return this.style; }; |
| 4997 $dynamic("set$style").SVGUseElement = function(value) { return this.style = valu
e; }; |
| 4998 $dynamic("get$transform").SVGUseElement = function() { return this.transform; }; |
| 4999 $dynamic("set$transform").SVGUseElement = function(value) { return this.transfor
m = value; }; |
| 5000 // ********** Code for SVGVKernElement ************** |
| 5001 // ********** Code for SVGViewElement ************** |
| 5002 // ********** Code for SVGViewSpec ************** |
| 5003 $dynamic("get$transform").SVGViewSpec = function() { return this.transform; }; |
| 5004 $dynamic("set$transform").SVGViewSpec = function(value) { return this.transform
= value; }; |
| 5005 // ********** Code for SVGZoomAndPan ************** |
| 5006 $dynamic("get$dartObjectLocalStorage").SVGZoomAndPan = function() { return this.
dartObjectLocalStorage; }; |
| 5007 $dynamic("set$dartObjectLocalStorage").SVGZoomAndPan = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 5008 // ********** Code for SVGZoomEvent ************** |
| 5009 // ********** Code for Screen ************** |
| 5010 $dynamic("get$height").Screen = function() { return this.height; }; |
| 5011 $dynamic("set$height").Screen = function(value) { return this.height = value; }; |
| 5012 $dynamic("get$width").Screen = function() { return this.width; }; |
| 5013 $dynamic("set$width").Screen = function(value) { return this.width = value; }; |
| 5014 $dynamic("get$dartObjectLocalStorage").Screen = function() { return this.dartObj
ectLocalStorage; }; |
| 5015 $dynamic("set$dartObjectLocalStorage").Screen = function(value) { return this.da
rtObjectLocalStorage = value; }; |
| 5016 // ********** Code for dom_ScriptProfile ************** |
| 5017 $dynamic("get$title").ScriptProfile = function() { return this.title; }; |
| 5018 $dynamic("set$title").ScriptProfile = function(value) { return this.title = valu
e; }; |
| 5019 $dynamic("get$dartObjectLocalStorage").ScriptProfile = function() { return this.
dartObjectLocalStorage; }; |
| 5020 $dynamic("set$dartObjectLocalStorage").ScriptProfile = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 5021 // ********** Code for dom_ScriptProfileNode ************** |
| 5022 $dynamic("get$children").ScriptProfileNode = function() { return this.children;
}; |
| 5023 $dynamic("set$children").ScriptProfileNode = function(value) { return this.child
ren = value; }; |
| 5024 $dynamic("get$dartObjectLocalStorage").ScriptProfileNode = function() { return t
his.dartObjectLocalStorage; }; |
| 5025 $dynamic("set$dartObjectLocalStorage").ScriptProfileNode = function(value) { ret
urn this.dartObjectLocalStorage = value; }; |
| 5026 // ********** Code for SharedWorker ************** |
| 5027 // ********** Code for dom_SharedWorkercontext ************** |
| 5028 $dynamic("get$name").SharedWorkercontext = function() { return this.name; }; |
| 5029 $dynamic("set$name").SharedWorkercontext = function(value) { return this.name =
value; }; |
| 5030 // ********** Code for SpeechInputEvent ************** |
| 5031 // ********** Code for SpeechInputResult ************** |
| 5032 $dynamic("get$dartObjectLocalStorage").SpeechInputResult = function() { return t
his.dartObjectLocalStorage; }; |
| 5033 $dynamic("set$dartObjectLocalStorage").SpeechInputResult = function(value) { ret
urn this.dartObjectLocalStorage = value; }; |
| 5034 // ********** Code for SpeechInputResultList ************** |
| 5035 $dynamic("get$length").SpeechInputResultList = function() { return this.length;
}; |
| 5036 $dynamic("set$length").SpeechInputResultList = function(value) { return this.len
gth = value; }; |
| 5037 $dynamic("get$dartObjectLocalStorage").SpeechInputResultList = function() { retu
rn this.dartObjectLocalStorage; }; |
| 5038 $dynamic("set$dartObjectLocalStorage").SpeechInputResultList = function(value) {
return this.dartObjectLocalStorage = value; }; |
| 5039 $dynamic("item$1").SpeechInputResultList = function($0) { |
| 5040 return this.item($0); |
| 5041 }; |
| 5042 // ********** Code for Storage ************** |
| 5043 $dynamic("get$length").Storage = function() { return this.length; }; |
| 5044 $dynamic("set$length").Storage = function(value) { return this.length = value; }
; |
| 5045 $dynamic("get$clear").Storage = function() { |
| 5046 return this.clear.bind(this); |
| 5047 } |
| 5048 $dynamic("get$dartObjectLocalStorage").Storage = function() { |
| 5049 |
| 5050 if (this === window.localStorage) |
| 5051 return window._dartLocalStorageLocalStorage; |
| 5052 else if (this === window.sessionStorage) |
| 5053 return window._dartSessionStorageLocalStorage; |
| 5054 else |
| 5055 throw new UnsupportedOperationException('Cannot dartObjectLocalStorage f
or unknown Storage object.'); |
| 5056 |
| 5057 } |
| 5058 $dynamic("set$dartObjectLocalStorage").Storage = function(value) { |
| 5059 |
| 5060 if (this === window.localStorage) |
| 5061 window._dartLocalStorageLocalStorage = value; |
| 5062 else if (this === window.sessionStorage) |
| 5063 window._dartSessionStorageLocalStorage = value; |
| 5064 else |
| 5065 throw new UnsupportedOperationException('Cannot dartObjectLocalStorage f
or unknown Storage object.'); |
| 5066 |
| 5067 } |
| 5068 $dynamic("clear$0").Storage = function() { |
| 5069 return this.clear(); |
| 5070 }; |
| 5071 // ********** Code for StorageEvent ************** |
| 5072 // ********** Code for StorageInfo ************** |
| 5073 $dynamic("get$dartObjectLocalStorage").StorageInfo = function() { return this.da
rtObjectLocalStorage; }; |
| 5074 $dynamic("set$dartObjectLocalStorage").StorageInfo = function(value) { return th
is.dartObjectLocalStorage = value; }; |
| 5075 // ********** Code for StyleMedia ************** |
| 5076 $dynamic("get$type").StyleMedia = function() { return this.type; }; |
| 5077 $dynamic("set$type").StyleMedia = function(value) { return this.type = value; }; |
| 5078 $dynamic("get$dartObjectLocalStorage").StyleMedia = function() { return this.dar
tObjectLocalStorage; }; |
| 5079 $dynamic("set$dartObjectLocalStorage").StyleMedia = function(value) { return thi
s.dartObjectLocalStorage = value; }; |
| 5080 // ********** Code for StyleSheet ************** |
| 5081 $dynamic("get$title").StyleSheet = function() { return this.title; }; |
| 5082 $dynamic("set$title").StyleSheet = function(value) { return this.title = value;
}; |
| 5083 $dynamic("get$type").StyleSheet = function() { return this.type; }; |
| 5084 $dynamic("set$type").StyleSheet = function(value) { return this.type = value; }; |
| 5085 $dynamic("get$dartObjectLocalStorage").StyleSheet = function() { return this.dar
tObjectLocalStorage; }; |
| 5086 $dynamic("set$dartObjectLocalStorage").StyleSheet = function(value) { return thi
s.dartObjectLocalStorage = value; }; |
| 5087 // ********** Code for StyleSheetList ************** |
| 5088 $dynamic("get$length").StyleSheetList = function() { return this.length; }; |
| 5089 $dynamic("set$length").StyleSheetList = function(value) { return this.length = v
alue; }; |
| 5090 $dynamic("$setindex").StyleSheetList = function(index, value) { |
| 5091 $throw(new UnsupportedOperationException("Cannot assign element of immutable L
ist.")); |
| 5092 } |
| 5093 $dynamic("get$dartObjectLocalStorage").StyleSheetList = function() { return this
.dartObjectLocalStorage; }; |
| 5094 $dynamic("set$dartObjectLocalStorage").StyleSheetList = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 5095 $dynamic("item$1").StyleSheetList = function($0) { |
| 5096 return this.item($0); |
| 5097 }; |
| 5098 // ********** Code for Text ************** |
| 5099 // ********** Code for TextEvent ************** |
| 5100 // ********** Code for TextMetrics ************** |
| 5101 $dynamic("get$width").TextMetrics = function() { return this.width; }; |
| 5102 $dynamic("set$width").TextMetrics = function(value) { return this.width = value;
}; |
| 5103 $dynamic("get$dartObjectLocalStorage").TextMetrics = function() { return this.da
rtObjectLocalStorage; }; |
| 5104 $dynamic("set$dartObjectLocalStorage").TextMetrics = function(value) { return th
is.dartObjectLocalStorage = value; }; |
| 5105 // ********** Code for TextTrack ************** |
| 5106 $dynamic("get$dartObjectLocalStorage").TextTrack = function() { return this.dart
ObjectLocalStorage; }; |
| 5107 $dynamic("set$dartObjectLocalStorage").TextTrack = function(value) { return this
.dartObjectLocalStorage = value; }; |
| 5108 $dynamic("addEventListener$3").TextTrack = function($0, $1, $2) { |
| 5109 return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 5110 }; |
| 5111 $dynamic("dispatchEvent$1").TextTrack = function($0) { |
| 5112 return this.dispatchEvent($0); |
| 5113 }; |
| 5114 $dynamic("removeEventListener$3").TextTrack = function($0, $1, $2) { |
| 5115 return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 5116 }; |
| 5117 // ********** Code for TextTrackCue ************** |
| 5118 $dynamic("get$id").TextTrackCue = function() { return this.id; }; |
| 5119 $dynamic("set$id").TextTrackCue = function(value) { return this.id = value; }; |
| 5120 $dynamic("get$text").TextTrackCue = function() { return this.text; }; |
| 5121 $dynamic("set$text").TextTrackCue = function(value) { return this.text = value;
}; |
| 5122 $dynamic("get$dartObjectLocalStorage").TextTrackCue = function() { return this.d
artObjectLocalStorage; }; |
| 5123 $dynamic("set$dartObjectLocalStorage").TextTrackCue = function(value) { return t
his.dartObjectLocalStorage = value; }; |
| 5124 $dynamic("addEventListener$3").TextTrackCue = function($0, $1, $2) { |
| 5125 return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 5126 }; |
| 5127 $dynamic("dispatchEvent$1").TextTrackCue = function($0) { |
| 5128 return this.dispatchEvent($0); |
| 5129 }; |
| 5130 $dynamic("removeEventListener$3").TextTrackCue = function($0, $1, $2) { |
| 5131 return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 5132 }; |
| 5133 // ********** Code for TextTrackCueList ************** |
| 5134 $dynamic("get$length").TextTrackCueList = function() { return this.length; }; |
| 5135 $dynamic("set$length").TextTrackCueList = function(value) { return this.length =
value; }; |
| 5136 $dynamic("get$dartObjectLocalStorage").TextTrackCueList = function() { return th
is.dartObjectLocalStorage; }; |
| 5137 $dynamic("set$dartObjectLocalStorage").TextTrackCueList = function(value) { retu
rn this.dartObjectLocalStorage = value; }; |
| 5138 $dynamic("item$1").TextTrackCueList = function($0) { |
| 5139 return this.item($0); |
| 5140 }; |
| 5141 // ********** Code for dom_TextTrackList ************** |
| 5142 $dynamic("get$length").TextTrackList = function() { return this.length; }; |
| 5143 $dynamic("set$length").TextTrackList = function(value) { return this.length = va
lue; }; |
| 5144 $dynamic("get$dartObjectLocalStorage").TextTrackList = function() { return this.
dartObjectLocalStorage; }; |
| 5145 $dynamic("set$dartObjectLocalStorage").TextTrackList = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 5146 $dynamic("addEventListener$3").TextTrackList = function($0, $1, $2) { |
| 5147 return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 5148 }; |
| 5149 $dynamic("dispatchEvent$1").TextTrackList = function($0) { |
| 5150 return this.dispatchEvent($0); |
| 5151 }; |
| 5152 $dynamic("item$1").TextTrackList = function($0) { |
| 5153 return this.item($0); |
| 5154 }; |
| 5155 $dynamic("removeEventListener$3").TextTrackList = function($0, $1, $2) { |
| 5156 return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 5157 }; |
| 5158 // ********** Code for TimeRanges ************** |
| 5159 $dynamic("get$length").TimeRanges = function() { return this.length; }; |
| 5160 $dynamic("set$length").TimeRanges = function(value) { return this.length = value
; }; |
| 5161 $dynamic("get$end").TimeRanges = function() { |
| 5162 return this.end.bind(this); |
| 5163 } |
| 5164 $dynamic("get$start").TimeRanges = function() { |
| 5165 return this.start.bind(this); |
| 5166 } |
| 5167 $dynamic("get$dartObjectLocalStorage").TimeRanges = function() { return this.dar
tObjectLocalStorage; }; |
| 5168 $dynamic("set$dartObjectLocalStorage").TimeRanges = function(value) { return thi
s.dartObjectLocalStorage = value; }; |
| 5169 // ********** Code for Touch ************** |
| 5170 $dynamic("get$clientX").Touch = function() { return this.clientX; }; |
| 5171 $dynamic("set$clientX").Touch = function(value) { return this.clientX = value; }
; |
| 5172 $dynamic("get$clientY").Touch = function() { return this.clientY; }; |
| 5173 $dynamic("set$clientY").Touch = function(value) { return this.clientY = value; }
; |
| 5174 $dynamic("get$pageX").Touch = function() { return this.pageX; }; |
| 5175 $dynamic("set$pageX").Touch = function(value) { return this.pageX = value; }; |
| 5176 $dynamic("get$pageY").Touch = function() { return this.pageY; }; |
| 5177 $dynamic("set$pageY").Touch = function(value) { return this.pageY = value; }; |
| 5178 $dynamic("get$target").Touch = function() { return this.target; }; |
| 5179 $dynamic("set$target").Touch = function(value) { return this.target = value; }; |
| 5180 $dynamic("get$dartObjectLocalStorage").Touch = function() { return this.dartObje
ctLocalStorage; }; |
| 5181 $dynamic("set$dartObjectLocalStorage").Touch = function(value) { return this.dar
tObjectLocalStorage = value; }; |
| 5182 // ********** Code for TouchEvent ************** |
| 5183 $dynamic("get$changedTouches").TouchEvent = function() { return this.changedTouc
hes; }; |
| 5184 $dynamic("set$changedTouches").TouchEvent = function(value) { return this.change
dTouches = value; }; |
| 5185 $dynamic("get$touches").TouchEvent = function() { return this.touches; }; |
| 5186 $dynamic("set$touches").TouchEvent = function(value) { return this.touches = val
ue; }; |
| 5187 // ********** Code for TouchList ************** |
| 5188 $dynamic("get$length").TouchList = function() { return this.length; }; |
| 5189 $dynamic("set$length").TouchList = function(value) { return this.length = value;
}; |
| 5190 $dynamic("$setindex").TouchList = function(index, value) { |
| 5191 $throw(new UnsupportedOperationException("Cannot assign element of immutable L
ist.")); |
| 5192 } |
| 5193 $dynamic("get$dartObjectLocalStorage").TouchList = function() { return this.dart
ObjectLocalStorage; }; |
| 5194 $dynamic("set$dartObjectLocalStorage").TouchList = function(value) { return this
.dartObjectLocalStorage = value; }; |
| 5195 $dynamic("item$1").TouchList = function($0) { |
| 5196 return this.item($0); |
| 5197 }; |
| 5198 // ********** Code for dom_TrackEvent ************** |
| 5199 // ********** Code for dom_TreeWalker ************** |
| 5200 $dynamic("get$firstChild").TreeWalker = function() { |
| 5201 return this.firstChild.bind(this); |
| 5202 } |
| 5203 $dynamic("get$lastChild").TreeWalker = function() { |
| 5204 return this.lastChild.bind(this); |
| 5205 } |
| 5206 $dynamic("get$parentNode").TreeWalker = function() { |
| 5207 return this.parentNode.bind(this); |
| 5208 } |
| 5209 $dynamic("get$dartObjectLocalStorage").TreeWalker = function() { return this.dar
tObjectLocalStorage; }; |
| 5210 $dynamic("set$dartObjectLocalStorage").TreeWalker = function(value) { return thi
s.dartObjectLocalStorage = value; }; |
| 5211 $dynamic("filter$1").TreeWalker = function($0) { |
| 5212 return this.filter.call$1($0); |
| 5213 }; |
| 5214 // ********** Code for UIEvent ************** |
| 5215 $dynamic("get$keyCode").UIEvent = function() { return this.keyCode; }; |
| 5216 $dynamic("set$keyCode").UIEvent = function(value) { return this.keyCode = value;
}; |
| 5217 $dynamic("get$pageX").UIEvent = function() { return this.pageX; }; |
| 5218 $dynamic("set$pageX").UIEvent = function(value) { return this.pageX = value; }; |
| 5219 $dynamic("get$pageY").UIEvent = function() { return this.pageY; }; |
| 5220 $dynamic("set$pageY").UIEvent = function(value) { return this.pageY = value; }; |
| 5221 $dynamic("get$view").UIEvent = function() { return this.view; }; |
| 5222 $dynamic("set$view").UIEvent = function(value) { return this.view = value; }; |
| 5223 // ********** Code for Uint16Array ************** |
| 5224 $dynamic("is$List").Uint16Array = function(){return true}; |
| 5225 $dynamic("get$length").Uint16Array = function() { return this.length; }; |
| 5226 $dynamic("set$length").Uint16Array = function(value) { return this.length = valu
e; }; |
| 5227 // ********** Code for Uint32Array ************** |
| 5228 $dynamic("is$List").Uint32Array = function(){return true}; |
| 5229 $dynamic("get$length").Uint32Array = function() { return this.length; }; |
| 5230 $dynamic("set$length").Uint32Array = function(value) { return this.length = valu
e; }; |
| 5231 // ********** Code for Uint8Array ************** |
| 5232 $dynamic("is$List").Uint8Array = function(){return true}; |
| 5233 $dynamic("get$length").Uint8Array = function() { return this.length; }; |
| 5234 $dynamic("set$length").Uint8Array = function(value) { return this.length = value
; }; |
| 5235 // ********** Code for ValidityState ************** |
| 5236 $dynamic("get$dartObjectLocalStorage").ValidityState = function() { return this.
dartObjectLocalStorage; }; |
| 5237 $dynamic("set$dartObjectLocalStorage").ValidityState = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 5238 // ********** Code for WaveShaperNode ************** |
| 5239 // ********** Code for WebGLActiveInfo ************** |
| 5240 $dynamic("get$name").WebGLActiveInfo = function() { return this.name; }; |
| 5241 $dynamic("set$name").WebGLActiveInfo = function(value) { return this.name = valu
e; }; |
| 5242 $dynamic("get$type").WebGLActiveInfo = function() { return this.type; }; |
| 5243 $dynamic("set$type").WebGLActiveInfo = function(value) { return this.type = valu
e; }; |
| 5244 $dynamic("get$dartObjectLocalStorage").WebGLActiveInfo = function() { return thi
s.dartObjectLocalStorage; }; |
| 5245 $dynamic("set$dartObjectLocalStorage").WebGLActiveInfo = function(value) { retur
n this.dartObjectLocalStorage = value; }; |
| 5246 // ********** Code for WebGLBuffer ************** |
| 5247 $dynamic("get$dartObjectLocalStorage").WebGLBuffer = function() { return this.da
rtObjectLocalStorage; }; |
| 5248 $dynamic("set$dartObjectLocalStorage").WebGLBuffer = function(value) { return th
is.dartObjectLocalStorage = value; }; |
| 5249 // ********** Code for dom_WebGLCompressedTextures ************** |
| 5250 $dynamic("get$dartObjectLocalStorage").WebGLCompressedTextures = function() { re
turn this.dartObjectLocalStorage; }; |
| 5251 $dynamic("set$dartObjectLocalStorage").WebGLCompressedTextures = function(value)
{ return this.dartObjectLocalStorage = value; }; |
| 5252 // ********** Code for WebGLContextAttributes ************** |
| 5253 $dynamic("get$dartObjectLocalStorage").WebGLContextAttributes = function() { ret
urn this.dartObjectLocalStorage; }; |
| 5254 $dynamic("set$dartObjectLocalStorage").WebGLContextAttributes = function(value)
{ return this.dartObjectLocalStorage = value; }; |
| 5255 // ********** Code for WebGLContextEvent ************** |
| 5256 // ********** Code for WebGLDebugRendererInfo ************** |
| 5257 $dynamic("get$dartObjectLocalStorage").WebGLDebugRendererInfo = function() { ret
urn this.dartObjectLocalStorage; }; |
| 5258 $dynamic("set$dartObjectLocalStorage").WebGLDebugRendererInfo = function(value)
{ return this.dartObjectLocalStorage = value; }; |
| 5259 // ********** Code for WebGLDebugShaders ************** |
| 5260 $dynamic("get$dartObjectLocalStorage").WebGLDebugShaders = function() { return t
his.dartObjectLocalStorage; }; |
| 5261 $dynamic("set$dartObjectLocalStorage").WebGLDebugShaders = function(value) { ret
urn this.dartObjectLocalStorage = value; }; |
| 5262 // ********** Code for WebGLFramebuffer ************** |
| 5263 $dynamic("get$dartObjectLocalStorage").WebGLFramebuffer = function() { return th
is.dartObjectLocalStorage; }; |
| 5264 $dynamic("set$dartObjectLocalStorage").WebGLFramebuffer = function(value) { retu
rn this.dartObjectLocalStorage = value; }; |
| 5265 // ********** Code for dom_WebGLLoseContext ************** |
| 5266 $dynamic("get$dartObjectLocalStorage").WebGLLoseContext = function() { return th
is.dartObjectLocalStorage; }; |
| 5267 $dynamic("set$dartObjectLocalStorage").WebGLLoseContext = function(value) { retu
rn this.dartObjectLocalStorage = value; }; |
| 5268 // ********** Code for WebGLProgram ************** |
| 5269 $dynamic("get$dartObjectLocalStorage").WebGLProgram = function() { return this.d
artObjectLocalStorage; }; |
| 5270 $dynamic("set$dartObjectLocalStorage").WebGLProgram = function(value) { return t
his.dartObjectLocalStorage = value; }; |
| 5271 // ********** Code for WebGLRenderbuffer ************** |
| 5272 $dynamic("get$dartObjectLocalStorage").WebGLRenderbuffer = function() { return t
his.dartObjectLocalStorage; }; |
| 5273 $dynamic("set$dartObjectLocalStorage").WebGLRenderbuffer = function(value) { ret
urn this.dartObjectLocalStorage = value; }; |
| 5274 // ********** Code for WebGLRenderingContext ************** |
| 5275 $dynamic("get$clear").WebGLRenderingContext = function() { |
| 5276 return this.clear.bind(this); |
| 5277 } |
| 5278 $dynamic("clear$1").WebGLRenderingContext = function($0) { |
| 5279 return this.clear($0); |
| 5280 }; |
| 5281 // ********** Code for WebGLShader ************** |
| 5282 $dynamic("get$dartObjectLocalStorage").WebGLShader = function() { return this.da
rtObjectLocalStorage; }; |
| 5283 $dynamic("set$dartObjectLocalStorage").WebGLShader = function(value) { return th
is.dartObjectLocalStorage = value; }; |
| 5284 // ********** Code for WebGLTexture ************** |
| 5285 $dynamic("get$dartObjectLocalStorage").WebGLTexture = function() { return this.d
artObjectLocalStorage; }; |
| 5286 $dynamic("set$dartObjectLocalStorage").WebGLTexture = function(value) { return t
his.dartObjectLocalStorage = value; }; |
| 5287 // ********** Code for WebGLUniformLocation ************** |
| 5288 $dynamic("get$dartObjectLocalStorage").WebGLUniformLocation = function() { retur
n this.dartObjectLocalStorage; }; |
| 5289 $dynamic("set$dartObjectLocalStorage").WebGLUniformLocation = function(value) {
return this.dartObjectLocalStorage = value; }; |
| 5290 // ********** Code for WebGLVertexArrayObjectOES ************** |
| 5291 $dynamic("get$dartObjectLocalStorage").WebGLVertexArrayObjectOES = function() {
return this.dartObjectLocalStorage; }; |
| 5292 $dynamic("set$dartObjectLocalStorage").WebGLVertexArrayObjectOES = function(valu
e) { return this.dartObjectLocalStorage = value; }; |
| 5293 // ********** Code for dom_WebKitAnimation ************** |
| 5294 $dynamic("get$name").WebKitAnimation = function() { return this.name; }; |
| 5295 $dynamic("set$name").WebKitAnimation = function(value) { return this.name = valu
e; }; |
| 5296 $dynamic("get$dartObjectLocalStorage").WebKitAnimation = function() { return thi
s.dartObjectLocalStorage; }; |
| 5297 $dynamic("set$dartObjectLocalStorage").WebKitAnimation = function(value) { retur
n this.dartObjectLocalStorage = value; }; |
| 5298 // ********** Code for dom_WebKitAnimationEvent ************** |
| 5299 // ********** Code for dom_WebKitAnimationList ************** |
| 5300 $dynamic("get$length").WebKitAnimationList = function() { return this.length; }; |
| 5301 $dynamic("set$length").WebKitAnimationList = function(value) { return this.lengt
h = value; }; |
| 5302 $dynamic("get$dartObjectLocalStorage").WebKitAnimationList = function() { return
this.dartObjectLocalStorage; }; |
| 5303 $dynamic("set$dartObjectLocalStorage").WebKitAnimationList = function(value) { r
eturn this.dartObjectLocalStorage = value; }; |
| 5304 $dynamic("item$1").WebKitAnimationList = function($0) { |
| 5305 return this.item($0); |
| 5306 }; |
| 5307 // ********** Code for dom_WebKitBlobBuilder ************** |
| 5308 $dynamic("get$dartObjectLocalStorage").WebKitBlobBuilder = function() { return t
his.dartObjectLocalStorage; }; |
| 5309 $dynamic("set$dartObjectLocalStorage").WebKitBlobBuilder = function(value) { ret
urn this.dartObjectLocalStorage = value; }; |
| 5310 // ********** Code for WebKitCSSFilterValue ************** |
| 5311 // ********** Code for dom_WebKitCSSKeyframeRule ************** |
| 5312 $dynamic("get$style").WebKitCSSKeyframeRule = function() { return this.style; }; |
| 5313 $dynamic("set$style").WebKitCSSKeyframeRule = function(value) { return this.styl
e = value; }; |
| 5314 // ********** Code for dom_WebKitCSSKeyframesRule ************** |
| 5315 $dynamic("get$name").WebKitCSSKeyframesRule = function() { return this.name; }; |
| 5316 $dynamic("set$name").WebKitCSSKeyframesRule = function(value) { return this.name
= value; }; |
| 5317 // ********** Code for dom_WebKitCSSMatrix ************** |
| 5318 $dynamic("get$dartObjectLocalStorage").WebKitCSSMatrix = function() { return thi
s.dartObjectLocalStorage; }; |
| 5319 $dynamic("set$dartObjectLocalStorage").WebKitCSSMatrix = function(value) { retur
n this.dartObjectLocalStorage = value; }; |
| 5320 $dynamic("toString$0").WebKitCSSMatrix = function() { |
| 5321 return this.toString(); |
| 5322 }; |
| 5323 // ********** Code for dom_WebKitCSSTransformValue ************** |
| 5324 // ********** Code for WebKitMutationObserver ************** |
| 5325 $dynamic("get$dartObjectLocalStorage").WebKitMutationObserver = function() { ret
urn this.dartObjectLocalStorage; }; |
| 5326 $dynamic("set$dartObjectLocalStorage").WebKitMutationObserver = function(value)
{ return this.dartObjectLocalStorage = value; }; |
| 5327 // ********** Code for dom_WebKitNamedFlow ************** |
| 5328 $dynamic("get$dartObjectLocalStorage").WebKitNamedFlow = function() { return thi
s.dartObjectLocalStorage; }; |
| 5329 $dynamic("set$dartObjectLocalStorage").WebKitNamedFlow = function(value) { retur
n this.dartObjectLocalStorage = value; }; |
| 5330 // ********** Code for dom_WebKitPoint ************** |
| 5331 $dynamic("get$x").WebKitPoint = function() { return this.x; }; |
| 5332 $dynamic("set$x").WebKitPoint = function(value) { return this.x = value; }; |
| 5333 $dynamic("get$y").WebKitPoint = function() { return this.y; }; |
| 5334 $dynamic("set$y").WebKitPoint = function(value) { return this.y = value; }; |
| 5335 $dynamic("get$dartObjectLocalStorage").WebKitPoint = function() { return this.da
rtObjectLocalStorage; }; |
| 5336 $dynamic("set$dartObjectLocalStorage").WebKitPoint = function(value) { return th
is.dartObjectLocalStorage = value; }; |
| 5337 // ********** Code for dom_WebKitTransitionEvent ************** |
| 5338 // ********** Code for WebSocket ************** |
| 5339 $dynamic("get$protocol").WebSocket = function() { return this.protocol; }; |
| 5340 $dynamic("set$protocol").WebSocket = function(value) { return this.protocol = va
lue; }; |
| 5341 $dynamic("get$readyState").WebSocket = function() { return this.readyState; }; |
| 5342 $dynamic("set$readyState").WebSocket = function(value) { return this.readyState
= value; }; |
| 5343 $dynamic("get$dartObjectLocalStorage").WebSocket = function() { return this.dart
ObjectLocalStorage; }; |
| 5344 $dynamic("set$dartObjectLocalStorage").WebSocket = function(value) { return this
.dartObjectLocalStorage = value; }; |
| 5345 $dynamic("addEventListener$3").WebSocket = function($0, $1, $2) { |
| 5346 return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 5347 }; |
| 5348 $dynamic("dispatchEvent$1").WebSocket = function($0) { |
| 5349 return this.dispatchEvent($0); |
| 5350 }; |
| 5351 $dynamic("removeEventListener$3").WebSocket = function($0, $1, $2) { |
| 5352 return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 5353 }; |
| 5354 $dynamic("send$1").WebSocket = function($0) { |
| 5355 return this.send($0); |
| 5356 }; |
| 5357 // ********** Code for WheelEvent ************** |
| 5358 $dynamic("get$clientX").WheelEvent = function() { return this.clientX; }; |
| 5359 $dynamic("set$clientX").WheelEvent = function(value) { return this.clientX = val
ue; }; |
| 5360 $dynamic("get$clientY").WheelEvent = function() { return this.clientY; }; |
| 5361 $dynamic("set$clientY").WheelEvent = function(value) { return this.clientY = val
ue; }; |
| 5362 $dynamic("get$wheelDeltaX").WheelEvent = function() { return this.wheelDeltaX; }
; |
| 5363 $dynamic("set$wheelDeltaX").WheelEvent = function(value) { return this.wheelDelt
aX = value; }; |
| 5364 $dynamic("get$wheelDeltaY").WheelEvent = function() { return this.wheelDeltaY; }
; |
| 5365 $dynamic("set$wheelDeltaY").WheelEvent = function(value) { return this.wheelDelt
aY = value; }; |
| 5366 $dynamic("get$x").WheelEvent = function() { return this.x; }; |
| 5367 $dynamic("set$x").WheelEvent = function(value) { return this.x = value; }; |
| 5368 $dynamic("get$y").WheelEvent = function() { return this.y; }; |
| 5369 $dynamic("set$y").WheelEvent = function(value) { return this.y = value; }; |
| 5370 // ********** Code for Worker ************** |
| 5371 $dynamic("postMessage$1").Worker = function($0) { |
| 5372 return this.postMessage($0); |
| 5373 }; |
| 5374 $dynamic("postMessage$2").Worker = function($0, $1) { |
| 5375 return this.postMessage($0, $1); |
| 5376 }; |
| 5377 // ********** Code for dom_WorkerContext ************** |
| 5378 $dynamic("get$location").WorkerContext = function() { return this.location; }; |
| 5379 $dynamic("set$location").WorkerContext = function(value) { return this.location
= value; }; |
| 5380 $dynamic("get$navigator").WorkerContext = function() { return this.navigator; }; |
| 5381 $dynamic("set$navigator").WorkerContext = function(value) { return this.navigato
r = value; }; |
| 5382 $dynamic("get$dartObjectLocalStorage").WorkerContext = function() { return this.
dartObjectLocalStorage; }; |
| 5383 $dynamic("set$dartObjectLocalStorage").WorkerContext = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 5384 $dynamic("addEventListener$3").WorkerContext = function($0, $1, $2) { |
| 5385 return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 5386 }; |
| 5387 $dynamic("clearInterval$1").WorkerContext = function($0) { |
| 5388 return this.clearInterval($0); |
| 5389 }; |
| 5390 $dynamic("clearTimeout$1").WorkerContext = function($0) { |
| 5391 return this.clearTimeout($0); |
| 5392 }; |
| 5393 $dynamic("dispatchEvent$1").WorkerContext = function($0) { |
| 5394 return this.dispatchEvent($0); |
| 5395 }; |
| 5396 $dynamic("removeEventListener$3").WorkerContext = function($0, $1, $2) { |
| 5397 return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 5398 }; |
| 5399 $dynamic("setInterval$2").WorkerContext = function($0, $1) { |
| 5400 return this.setInterval($wrap_call$0(to$call$0($0)), $1); |
| 5401 }; |
| 5402 $dynamic("setTimeout$2").WorkerContext = function($0, $1) { |
| 5403 return this.setTimeout($wrap_call$0(to$call$0($0)), $1); |
| 5404 }; |
| 5405 // ********** Code for dom_WorkerLocation ************** |
| 5406 $dynamic("get$hash").WorkerLocation = function() { return this.hash; }; |
| 5407 $dynamic("set$hash").WorkerLocation = function(value) { return this.hash = value
; }; |
| 5408 $dynamic("get$host").WorkerLocation = function() { return this.host; }; |
| 5409 $dynamic("set$host").WorkerLocation = function(value) { return this.host = value
; }; |
| 5410 $dynamic("get$protocol").WorkerLocation = function() { return this.protocol; }; |
| 5411 $dynamic("set$protocol").WorkerLocation = function(value) { return this.protocol
= value; }; |
| 5412 $dynamic("get$dartObjectLocalStorage").WorkerLocation = function() { return this
.dartObjectLocalStorage; }; |
| 5413 $dynamic("set$dartObjectLocalStorage").WorkerLocation = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 5414 $dynamic("toString$0").WorkerLocation = function() { |
| 5415 return this.toString(); |
| 5416 }; |
| 5417 // ********** Code for dom_WorkerNavigator ************** |
| 5418 $dynamic("get$userAgent").WorkerNavigator = function() { return this.userAgent;
}; |
| 5419 $dynamic("set$userAgent").WorkerNavigator = function(value) { return this.userAg
ent = value; }; |
| 5420 $dynamic("get$dartObjectLocalStorage").WorkerNavigator = function() { return thi
s.dartObjectLocalStorage; }; |
| 5421 $dynamic("set$dartObjectLocalStorage").WorkerNavigator = function(value) { retur
n this.dartObjectLocalStorage = value; }; |
| 5422 // ********** Code for XMLHttpRequest ************** |
| 5423 $dynamic("get$readyState").XMLHttpRequest = function() { return this.readyState;
}; |
| 5424 $dynamic("set$readyState").XMLHttpRequest = function(value) { return this.readyS
tate = value; }; |
| 5425 $dynamic("get$responseText").XMLHttpRequest = function() { return this.responseT
ext; }; |
| 5426 $dynamic("set$responseText").XMLHttpRequest = function(value) { return this.resp
onseText = value; }; |
| 5427 $dynamic("get$status").XMLHttpRequest = function() { return this.status; }; |
| 5428 $dynamic("set$status").XMLHttpRequest = function(value) { return this.status = v
alue; }; |
| 5429 $dynamic("get$withCredentials").XMLHttpRequest = function() { return this.withCr
edentials; }; |
| 5430 $dynamic("set$withCredentials").XMLHttpRequest = function(value) { return this.w
ithCredentials = value; }; |
| 5431 $dynamic("get$open").XMLHttpRequest = function() { |
| 5432 return this.open.bind(this); |
| 5433 } |
| 5434 $dynamic("get$dartObjectLocalStorage").XMLHttpRequest = function() { return this
.dartObjectLocalStorage; }; |
| 5435 $dynamic("set$dartObjectLocalStorage").XMLHttpRequest = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 5436 $dynamic("addEventListener$3").XMLHttpRequest = function($0, $1, $2) { |
| 5437 return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 5438 }; |
| 5439 $dynamic("dispatchEvent$1").XMLHttpRequest = function($0) { |
| 5440 return this.dispatchEvent($0); |
| 5441 }; |
| 5442 $dynamic("open$2").XMLHttpRequest = function($0, $1) { |
| 5443 return this.open($0, $1); |
| 5444 }; |
| 5445 $dynamic("open$3").XMLHttpRequest = function($0, $1, $2) { |
| 5446 return this.open($0, $1, $2); |
| 5447 }; |
| 5448 $dynamic("open$4").XMLHttpRequest = function($0, $1, $2, $3) { |
| 5449 return this.open($0, $1, $2, $3); |
| 5450 }; |
| 5451 $dynamic("open$5").XMLHttpRequest = function($0, $1, $2, $3, $4) { |
| 5452 return this.open($0, $1, $2, $3, $4); |
| 5453 }; |
| 5454 $dynamic("removeEventListener$3").XMLHttpRequest = function($0, $1, $2) { |
| 5455 return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 5456 }; |
| 5457 $dynamic("send$0").XMLHttpRequest = function() { |
| 5458 return this.send(); |
| 5459 }; |
| 5460 $dynamic("send$1").XMLHttpRequest = function($0) { |
| 5461 return this.send($0); |
| 5462 }; |
| 5463 // ********** Code for XMLHttpRequestException ************** |
| 5464 $dynamic("get$name").XMLHttpRequestException = function() { return this.name; }; |
| 5465 $dynamic("set$name").XMLHttpRequestException = function(value) { return this.nam
e = value; }; |
| 5466 $dynamic("get$dartObjectLocalStorage").XMLHttpRequestException = function() { re
turn this.dartObjectLocalStorage; }; |
| 5467 $dynamic("set$dartObjectLocalStorage").XMLHttpRequestException = function(value)
{ return this.dartObjectLocalStorage = value; }; |
| 5468 $dynamic("toString$0").XMLHttpRequestException = function() { |
| 5469 return this.toString(); |
| 5470 }; |
| 5471 // ********** Code for XMLHttpRequestProgressEvent ************** |
| 5472 $dynamic("get$position").XMLHttpRequestProgressEvent = function() { return this.
position; }; |
| 5473 $dynamic("set$position").XMLHttpRequestProgressEvent = function(value) { return
this.position = value; }; |
| 5474 // ********** Code for XMLHttpRequestUpload ************** |
| 5475 $dynamic("get$dartObjectLocalStorage").XMLHttpRequestUpload = function() { retur
n this.dartObjectLocalStorage; }; |
| 5476 $dynamic("set$dartObjectLocalStorage").XMLHttpRequestUpload = function(value) {
return this.dartObjectLocalStorage = value; }; |
| 5477 $dynamic("addEventListener$3").XMLHttpRequestUpload = function($0, $1, $2) { |
| 5478 return this.addEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 5479 }; |
| 5480 $dynamic("dispatchEvent$1").XMLHttpRequestUpload = function($0) { |
| 5481 return this.dispatchEvent($0); |
| 5482 }; |
| 5483 $dynamic("removeEventListener$3").XMLHttpRequestUpload = function($0, $1, $2) { |
| 5484 return this.removeEventListener($0, $wrap_call$1(to$call$1($1)), $2); |
| 5485 }; |
| 5486 // ********** Code for dom_XMLSerializer ************** |
| 5487 $dynamic("get$dartObjectLocalStorage").XMLSerializer = function() { return this.
dartObjectLocalStorage; }; |
| 5488 $dynamic("set$dartObjectLocalStorage").XMLSerializer = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 5489 // ********** Code for dom_XPathEvaluator ************** |
| 5490 $dynamic("get$dartObjectLocalStorage").XPathEvaluator = function() { return this
.dartObjectLocalStorage; }; |
| 5491 $dynamic("set$dartObjectLocalStorage").XPathEvaluator = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 5492 // ********** Code for dom_XPathException ************** |
| 5493 $dynamic("get$name").XPathException = function() { return this.name; }; |
| 5494 $dynamic("set$name").XPathException = function(value) { return this.name = value
; }; |
| 5495 $dynamic("get$dartObjectLocalStorage").XPathException = function() { return this
.dartObjectLocalStorage; }; |
| 5496 $dynamic("set$dartObjectLocalStorage").XPathException = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 5497 $dynamic("toString$0").XPathException = function() { |
| 5498 return this.toString(); |
| 5499 }; |
| 5500 // ********** Code for dom_XPathExpression ************** |
| 5501 $dynamic("get$dartObjectLocalStorage").XPathExpression = function() { return thi
s.dartObjectLocalStorage; }; |
| 5502 $dynamic("set$dartObjectLocalStorage").XPathExpression = function(value) { retur
n this.dartObjectLocalStorage = value; }; |
| 5503 // ********** Code for dom_XPathNSResolver ************** |
| 5504 $dynamic("get$dartObjectLocalStorage").XPathNSResolver = function() { return thi
s.dartObjectLocalStorage; }; |
| 5505 $dynamic("set$dartObjectLocalStorage").XPathNSResolver = function(value) { retur
n this.dartObjectLocalStorage = value; }; |
| 5506 // ********** Code for dom_XPathResult ************** |
| 5507 $dynamic("get$dartObjectLocalStorage").XPathResult = function() { return this.da
rtObjectLocalStorage; }; |
| 5508 $dynamic("set$dartObjectLocalStorage").XPathResult = function(value) { return th
is.dartObjectLocalStorage = value; }; |
| 5509 // ********** Code for dom_XSLTProcessor ************** |
| 5510 $dynamic("get$dartObjectLocalStorage").XSLTProcessor = function() { return this.
dartObjectLocalStorage; }; |
| 5511 $dynamic("set$dartObjectLocalStorage").XSLTProcessor = function(value) { return
this.dartObjectLocalStorage = value; }; |
| 5512 // ********** Code for dom__Collections ************** |
| 5513 function dom__Collections() {} |
| 5514 // ********** Code for _VariableSizeListIterator_T ************** |
| 5515 $inherits(_VariableSizeListIterator_T, dom__VariableSizeListIterator); |
| 5516 function _VariableSizeListIterator_T() {} |
| 5517 // ********** Code for dom__FixedSizeListIterator ************** |
| 5518 $inherits(dom__FixedSizeListIterator, _VariableSizeListIterator_T); |
| 5519 function dom__FixedSizeListIterator() {} |
| 5520 dom__FixedSizeListIterator.prototype.hasNext = function() { |
| 5521 return this._dom_length > this._dom_pos; |
| 5522 } |
| 5523 dom__FixedSizeListIterator.prototype.hasNext$0 = dom__FixedSizeListIterator.prot
otype.hasNext; |
| 5524 // ********** Code for dom__VariableSizeListIterator ************** |
| 5525 function dom__VariableSizeListIterator() {} |
| 5526 dom__VariableSizeListIterator.prototype.hasNext = function() { |
| 5527 return this._dom_array.get$length() > this._dom_pos; |
| 5528 } |
| 5529 dom__VariableSizeListIterator.prototype.next = function() { |
| 5530 if (!this.hasNext()) { |
| 5531 $throw(const$0001); |
| 5532 } |
| 5533 return this._dom_array.$index(this._dom_pos++); |
| 5534 } |
| 5535 dom__VariableSizeListIterator.prototype.hasNext$0 = dom__VariableSizeListIterato
r.prototype.hasNext; |
| 5536 dom__VariableSizeListIterator.prototype.next$0 = dom__VariableSizeListIterator.p
rototype.next; |
| 5537 // ********** Code for _Lists ************** |
| 5538 function _Lists() {} |
| 5539 // ********** Code for top level ************** |
| 5540 function get$window() { |
| 5541 return window; |
| 5542 } |
| 5543 function get$document() { |
| 5544 return window.document; |
| 5545 } |
| 5546 // ********** Library htmlimpl ************** |
| 5547 // ********** Code for DOMWrapperBase ************** |
| 5548 function DOMWrapperBase() {} |
| 5549 DOMWrapperBase._wrap$ctor = function(_ptr) { |
| 5550 this._ptr = _ptr; |
| 5551 this._ptr.set$dartObjectLocalStorage(this); |
| 5552 } |
| 5553 DOMWrapperBase._wrap$ctor.prototype = DOMWrapperBase.prototype; |
| 5554 DOMWrapperBase.prototype.get$_ptr = function() { return this._ptr; }; |
| 5555 // ********** Code for EventTargetWrappingImplementation ************** |
| 5556 $inherits(EventTargetWrappingImplementation, DOMWrapperBase); |
| 5557 function EventTargetWrappingImplementation() {} |
| 5558 EventTargetWrappingImplementation._wrap$ctor = function(ptr) { |
| 5559 DOMWrapperBase._wrap$ctor.call(this, ptr); |
| 5560 } |
| 5561 EventTargetWrappingImplementation._wrap$ctor.prototype = EventTargetWrappingImpl
ementation.prototype; |
| 5562 EventTargetWrappingImplementation.prototype.get$on = function() { |
| 5563 if (this._on == null) { |
| 5564 this._on = new EventsImplementation._wrap$ctor(this._ptr); |
| 5565 } |
| 5566 return this._on; |
| 5567 } |
| 5568 // ********** Code for NodeWrappingImplementation ************** |
| 5569 $inherits(NodeWrappingImplementation, EventTargetWrappingImplementation); |
| 5570 function NodeWrappingImplementation() {} |
| 5571 NodeWrappingImplementation._wrap$ctor = function(ptr) { |
| 5572 EventTargetWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5573 } |
| 5574 NodeWrappingImplementation._wrap$ctor.prototype = NodeWrappingImplementation.pro
totype; |
| 5575 NodeWrappingImplementation.prototype.get$nodes = function() { |
| 5576 if (this._nodes == null) { |
| 5577 this._nodes = new _ChildrenNodeList._wrap$ctor(this._ptr); |
| 5578 } |
| 5579 return this._nodes; |
| 5580 } |
| 5581 NodeWrappingImplementation.prototype.get$document = function() { |
| 5582 return LevelDom.wrapDocument(this._ptr.get$ownerDocument()); |
| 5583 } |
| 5584 NodeWrappingImplementation.prototype.get$parent = function() { |
| 5585 return LevelDom.wrapNode(this._ptr.get$parentNode()); |
| 5586 } |
| 5587 NodeWrappingImplementation.prototype.get$text = function() { |
| 5588 return this._ptr.get$textContent(); |
| 5589 } |
| 5590 NodeWrappingImplementation.prototype.set$text = function(value) { |
| 5591 this._ptr.set$textContent(value); |
| 5592 } |
| 5593 NodeWrappingImplementation.prototype.replaceWith = function(otherNode) { |
| 5594 try { |
| 5595 this._ptr.get$parentNode().replaceChild$2(LevelDom.unwrap(otherNode), this._
ptr); |
| 5596 } catch (e) { |
| 5597 e = _toDartException(e); |
| 5598 } |
| 5599 return this; |
| 5600 } |
| 5601 NodeWrappingImplementation.prototype.remove = function() { |
| 5602 if (this._ptr.get$parentNode() != null) { |
| 5603 this._ptr.get$parentNode().removeChild$1(this._ptr); |
| 5604 } |
| 5605 return this; |
| 5606 } |
| 5607 NodeWrappingImplementation.prototype.contains = function(otherNode) { |
| 5608 while (otherNode != null && $ne(otherNode, this)) { |
| 5609 otherNode = otherNode.get$parent(); |
| 5610 } |
| 5611 return $eq(otherNode, this); |
| 5612 } |
| 5613 NodeWrappingImplementation.prototype.contains$1 = NodeWrappingImplementation.pro
totype.contains; |
| 5614 NodeWrappingImplementation.prototype.remove$0 = NodeWrappingImplementation.proto
type.remove; |
| 5615 NodeWrappingImplementation.prototype.replaceWith$1 = NodeWrappingImplementation.
prototype.replaceWith; |
| 5616 // ********** Code for ElementWrappingImplementation ************** |
| 5617 $inherits(ElementWrappingImplementation, NodeWrappingImplementation); |
| 5618 function ElementWrappingImplementation() {} |
| 5619 ElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5620 NodeWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5621 } |
| 5622 ElementWrappingImplementation._wrap$ctor.prototype = ElementWrappingImplementati
on.prototype; |
| 5623 ElementWrappingImplementation.prototype.is$html_html_Element = function(){return
true}; |
| 5624 ElementWrappingImplementation.ElementWrappingImplementation$html$factory = funct
ion(html) { |
| 5625 var parentTag = "div"; |
| 5626 var tag; |
| 5627 var match = const$0002.firstMatch(html); |
| 5628 if (match != null) { |
| 5629 tag = match.group$1((1)).toLowerCase$0(); |
| 5630 if (const$0005.containsKey(tag)) { |
| 5631 parentTag = const$0005.$index(tag); |
| 5632 } |
| 5633 } |
| 5634 var temp = get$document().createElement(parentTag); |
| 5635 temp.set$innerHTML(html); |
| 5636 if ($eq(temp.get$childElementCount(), (1))) { |
| 5637 return LevelDom.wrapElement(temp.get$firstElementChild()); |
| 5638 } |
| 5639 else if (parentTag == "html" && $eq(temp.get$childElementCount(), (2))) { |
| 5640 return LevelDom.wrapElement(temp.get$children().item$1(tag == "head" ? (0) :
(1))); |
| 5641 } |
| 5642 else { |
| 5643 $throw(new IllegalArgumentException(("HTML had " + temp.get$childElementCoun
t() + " ") + "top level elements but 1 expected")); |
| 5644 } |
| 5645 } |
| 5646 ElementWrappingImplementation.ElementWrappingImplementation$tag$factory = functi
on(tag) { |
| 5647 return LevelDom.wrapElement(get$document().createElement(tag)); |
| 5648 } |
| 5649 ElementWrappingImplementation.prototype.get$attributes = function() { |
| 5650 if (this._elementAttributeMap == null) { |
| 5651 this._elementAttributeMap = new ElementAttributeMap._wrap$ctor(this._ptr); |
| 5652 } |
| 5653 return this._elementAttributeMap; |
| 5654 } |
| 5655 ElementWrappingImplementation.prototype.get$elements = function() { |
| 5656 if (this._elements == null) { |
| 5657 this._elements = new _ChildrenElementList._wrap$ctor(this._ptr); |
| 5658 } |
| 5659 return this._elements; |
| 5660 } |
| 5661 ElementWrappingImplementation.prototype.get$classes = function() { |
| 5662 if (this._cssClassSet == null) { |
| 5663 this._cssClassSet = new _CssClassSet(this._ptr); |
| 5664 } |
| 5665 return this._cssClassSet; |
| 5666 } |
| 5667 ElementWrappingImplementation.prototype.get$firstElementChild = function() { |
| 5668 return LevelDom.wrapElement(this._ptr.get$firstElementChild()); |
| 5669 } |
| 5670 ElementWrappingImplementation.prototype.get$id = function() { |
| 5671 return this._ptr.get$id(); |
| 5672 } |
| 5673 ElementWrappingImplementation.prototype.set$innerHTML = function(value) { |
| 5674 this._ptr.set$innerHTML(value); |
| 5675 } |
| 5676 ElementWrappingImplementation.prototype.get$lastElementChild = function() { |
| 5677 return LevelDom.wrapElement(this._ptr.get$lastElementChild()); |
| 5678 } |
| 5679 ElementWrappingImplementation.prototype.get$nextElementSibling = function() { |
| 5680 return LevelDom.wrapElement(this._ptr.get$nextElementSibling()); |
| 5681 } |
| 5682 ElementWrappingImplementation.prototype.get$previousElementSibling = function()
{ |
| 5683 return LevelDom.wrapElement(this._ptr.get$previousElementSibling()); |
| 5684 } |
| 5685 ElementWrappingImplementation.prototype.get$style = function() { |
| 5686 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 5687 } |
| 5688 ElementWrappingImplementation.prototype.set$tabIndex = function(value) { |
| 5689 this._ptr.set$tabIndex(value); |
| 5690 } |
| 5691 ElementWrappingImplementation.prototype.get$title = function() { |
| 5692 return this._ptr.get$title(); |
| 5693 } |
| 5694 ElementWrappingImplementation.prototype.blur = function() { |
| 5695 this._ptr.blur$0(); |
| 5696 } |
| 5697 ElementWrappingImplementation.prototype.get$blur = function() { |
| 5698 return this.blur.bind(this); |
| 5699 } |
| 5700 ElementWrappingImplementation.prototype.contains = function(element) { |
| 5701 return this._ptr.contains$1(LevelDom.unwrap(element)); |
| 5702 } |
| 5703 ElementWrappingImplementation.prototype.focus = function() { |
| 5704 this._ptr.focus$0(); |
| 5705 } |
| 5706 ElementWrappingImplementation.prototype.get$focus = function() { |
| 5707 return this.focus.bind(this); |
| 5708 } |
| 5709 ElementWrappingImplementation.prototype.query = function(selectors) { |
| 5710 return LevelDom.wrapElement(this._ptr.querySelector$1(selectors)); |
| 5711 } |
| 5712 ElementWrappingImplementation.prototype.queryAll = function(selectors) { |
| 5713 return new FrozenElementList._wrap$ctor(this._ptr.querySelectorAll$1(selectors
)); |
| 5714 } |
| 5715 ElementWrappingImplementation.prototype.get$rect = function() { |
| 5716 var $this = this; // closure support |
| 5717 return _createMeasurementFuture((function () { |
| 5718 return new ElementRectWrappingImplementation($this._ptr); |
| 5719 }) |
| 5720 , new CompleterImpl()); |
| 5721 } |
| 5722 ElementWrappingImplementation.prototype.get$computedStyle = function() { |
| 5723 return this.getComputedStyle(""); |
| 5724 } |
| 5725 ElementWrappingImplementation.prototype.getComputedStyle = function(pseudoElemen
t) { |
| 5726 var $this = this; // closure support |
| 5727 return _createMeasurementFuture((function () { |
| 5728 return LevelDom.wrapCSSStyleDeclaration(get$window().getComputedStyle($this.
_ptr, pseudoElement)); |
| 5729 }) |
| 5730 , new CompleterImpl()); |
| 5731 } |
| 5732 ElementWrappingImplementation.prototype.get$on = function() { |
| 5733 if (this._on == null) { |
| 5734 this._on = new ElementEventsImplementation._wrap$ctor(this._ptr); |
| 5735 } |
| 5736 return this._on; |
| 5737 } |
| 5738 ElementWrappingImplementation.prototype.blur$0 = ElementWrappingImplementation.p
rototype.blur; |
| 5739 ElementWrappingImplementation.prototype.contains$1 = ElementWrappingImplementati
on.prototype.contains; |
| 5740 ElementWrappingImplementation.prototype.focus$0 = ElementWrappingImplementation.
prototype.focus; |
| 5741 ElementWrappingImplementation.prototype.query$1 = ElementWrappingImplementation.
prototype.query; |
| 5742 ElementWrappingImplementation.prototype.queryAll$1 = ElementWrappingImplementati
on.prototype.queryAll; |
| 5743 // ********** Code for AnchorElementWrappingImplementation ************** |
| 5744 $inherits(AnchorElementWrappingImplementation, ElementWrappingImplementation); |
| 5745 function AnchorElementWrappingImplementation() {} |
| 5746 AnchorElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5747 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5748 } |
| 5749 AnchorElementWrappingImplementation._wrap$ctor.prototype = AnchorElementWrapping
Implementation.prototype; |
| 5750 AnchorElementWrappingImplementation.prototype.is$html_html_Element = function(){
return true}; |
| 5751 AnchorElementWrappingImplementation.prototype.get$hash = function() { |
| 5752 return this._ptr.get$hash(); |
| 5753 } |
| 5754 AnchorElementWrappingImplementation.prototype.get$host = function() { |
| 5755 return this._ptr.get$host(); |
| 5756 } |
| 5757 AnchorElementWrappingImplementation.prototype.get$name = function() { |
| 5758 return this._ptr.get$name(); |
| 5759 } |
| 5760 AnchorElementWrappingImplementation.prototype.get$protocol = function() { |
| 5761 return this._ptr.get$protocol(); |
| 5762 } |
| 5763 AnchorElementWrappingImplementation.prototype.get$target = function() { |
| 5764 return this._ptr.get$target(); |
| 5765 } |
| 5766 AnchorElementWrappingImplementation.prototype.set$target = function(value) { |
| 5767 this._ptr.set$target(value); |
| 5768 } |
| 5769 AnchorElementWrappingImplementation.prototype.get$text = function() { |
| 5770 return this._ptr.get$text(); |
| 5771 } |
| 5772 AnchorElementWrappingImplementation.prototype.get$type = function() { |
| 5773 return this._ptr.get$type(); |
| 5774 } |
| 5775 AnchorElementWrappingImplementation.prototype.toString = function() { |
| 5776 return this._ptr.toString$0(); |
| 5777 } |
| 5778 AnchorElementWrappingImplementation.prototype.toString$0 = AnchorElementWrapping
Implementation.prototype.toString; |
| 5779 // ********** Code for AreaElementWrappingImplementation ************** |
| 5780 $inherits(AreaElementWrappingImplementation, ElementWrappingImplementation); |
| 5781 function AreaElementWrappingImplementation() {} |
| 5782 AreaElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5783 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5784 } |
| 5785 AreaElementWrappingImplementation._wrap$ctor.prototype = AreaElementWrappingImpl
ementation.prototype; |
| 5786 AreaElementWrappingImplementation.prototype.is$html_html_Element = function(){re
turn true}; |
| 5787 AreaElementWrappingImplementation.prototype.get$hash = function() { |
| 5788 return this._ptr.get$hash(); |
| 5789 } |
| 5790 AreaElementWrappingImplementation.prototype.get$host = function() { |
| 5791 return this._ptr.get$host(); |
| 5792 } |
| 5793 AreaElementWrappingImplementation.prototype.get$protocol = function() { |
| 5794 return this._ptr.get$protocol(); |
| 5795 } |
| 5796 AreaElementWrappingImplementation.prototype.get$target = function() { |
| 5797 return this._ptr.get$target(); |
| 5798 } |
| 5799 AreaElementWrappingImplementation.prototype.set$target = function(value) { |
| 5800 this._ptr.set$target(value); |
| 5801 } |
| 5802 // ********** Code for MediaElementWrappingImplementation ************** |
| 5803 $inherits(MediaElementWrappingImplementation, ElementWrappingImplementation); |
| 5804 function MediaElementWrappingImplementation() {} |
| 5805 MediaElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5806 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5807 } |
| 5808 MediaElementWrappingImplementation._wrap$ctor.prototype = MediaElementWrappingIm
plementation.prototype; |
| 5809 MediaElementWrappingImplementation.prototype.is$html_html_Element = function(){r
eturn true}; |
| 5810 MediaElementWrappingImplementation.prototype.get$readyState = function() { |
| 5811 return this._ptr.get$readyState(); |
| 5812 } |
| 5813 MediaElementWrappingImplementation.prototype.load = function() { |
| 5814 this._ptr.load$0(); |
| 5815 return; |
| 5816 } |
| 5817 MediaElementWrappingImplementation.prototype.get$load = function() { |
| 5818 return this.load.bind(this); |
| 5819 } |
| 5820 MediaElementWrappingImplementation.prototype.load$0 = MediaElementWrappingImplem
entation.prototype.load; |
| 5821 // ********** Code for AudioElementWrappingImplementation ************** |
| 5822 $inherits(AudioElementWrappingImplementation, MediaElementWrappingImplementation
); |
| 5823 function AudioElementWrappingImplementation() {} |
| 5824 AudioElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5825 MediaElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5826 } |
| 5827 AudioElementWrappingImplementation._wrap$ctor.prototype = AudioElementWrappingIm
plementation.prototype; |
| 5828 AudioElementWrappingImplementation.prototype.is$html_html_Element = function(){r
eturn true}; |
| 5829 // ********** Code for EventWrappingImplementation ************** |
| 5830 $inherits(EventWrappingImplementation, DOMWrapperBase); |
| 5831 function EventWrappingImplementation() {} |
| 5832 EventWrappingImplementation._wrap$ctor = function(ptr) { |
| 5833 DOMWrapperBase._wrap$ctor.call(this, ptr); |
| 5834 } |
| 5835 EventWrappingImplementation._wrap$ctor.prototype = EventWrappingImplementation.p
rototype; |
| 5836 EventWrappingImplementation.EventWrappingImplementation$factory = function(type,
canBubble, cancelable) { |
| 5837 var e = get$document().createEvent("Event"); |
| 5838 e.initEvent$3(type, canBubble, cancelable); |
| 5839 return LevelDom.wrapEvent(e); |
| 5840 } |
| 5841 EventWrappingImplementation.prototype.get$target = function() { |
| 5842 return LevelDom.wrapEventTarget(this._ptr.get$target()); |
| 5843 } |
| 5844 EventWrappingImplementation.prototype.get$timeStamp = function() { |
| 5845 return this._ptr.get$timeStamp(); |
| 5846 } |
| 5847 EventWrappingImplementation.prototype.get$type = function() { |
| 5848 return this._ptr.get$type(); |
| 5849 } |
| 5850 EventWrappingImplementation.prototype.preventDefault = function() { |
| 5851 this._ptr.preventDefault$0(); |
| 5852 return; |
| 5853 } |
| 5854 EventWrappingImplementation.prototype.stopPropagation = function() { |
| 5855 this._ptr.stopPropagation$0(); |
| 5856 return; |
| 5857 } |
| 5858 EventWrappingImplementation.prototype.preventDefault$0 = EventWrappingImplementa
tion.prototype.preventDefault; |
| 5859 EventWrappingImplementation.prototype.stopPropagation$0 = EventWrappingImplement
ation.prototype.stopPropagation; |
| 5860 EventWrappingImplementation.prototype.timeStamp$0 = function() { |
| 5861 return this.get$timeStamp().call$0(); |
| 5862 }; |
| 5863 // ********** Code for AudioProcessingEventWrappingImplementation ************** |
| 5864 $inherits(AudioProcessingEventWrappingImplementation, EventWrappingImplementatio
n); |
| 5865 function AudioProcessingEventWrappingImplementation() {} |
| 5866 AudioProcessingEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 5867 EventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5868 } |
| 5869 AudioProcessingEventWrappingImplementation._wrap$ctor.prototype = AudioProcessin
gEventWrappingImplementation.prototype; |
| 5870 // ********** Code for BRElementWrappingImplementation ************** |
| 5871 $inherits(BRElementWrappingImplementation, ElementWrappingImplementation); |
| 5872 function BRElementWrappingImplementation() {} |
| 5873 BRElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5874 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5875 } |
| 5876 BRElementWrappingImplementation._wrap$ctor.prototype = BRElementWrappingImplemen
tation.prototype; |
| 5877 BRElementWrappingImplementation.prototype.is$html_html_Element = function(){retu
rn true}; |
| 5878 BRElementWrappingImplementation.prototype.get$clear = function() { |
| 5879 return this._ptr.get$clear(); |
| 5880 } |
| 5881 BRElementWrappingImplementation.prototype.clear$0 = function() { |
| 5882 return this.get$clear().call$0(); |
| 5883 }; |
| 5884 BRElementWrappingImplementation.prototype.clear$1 = function($0) { |
| 5885 return this.get$clear().call$1($0); |
| 5886 }; |
| 5887 // ********** Code for BaseElementWrappingImplementation ************** |
| 5888 $inherits(BaseElementWrappingImplementation, ElementWrappingImplementation); |
| 5889 function BaseElementWrappingImplementation() {} |
| 5890 BaseElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5891 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5892 } |
| 5893 BaseElementWrappingImplementation._wrap$ctor.prototype = BaseElementWrappingImpl
ementation.prototype; |
| 5894 BaseElementWrappingImplementation.prototype.is$html_html_Element = function(){re
turn true}; |
| 5895 BaseElementWrappingImplementation.prototype.get$target = function() { |
| 5896 return this._ptr.get$target(); |
| 5897 } |
| 5898 BaseElementWrappingImplementation.prototype.set$target = function(value) { |
| 5899 this._ptr.set$target(value); |
| 5900 } |
| 5901 // ********** Code for ButtonElementWrappingImplementation ************** |
| 5902 $inherits(ButtonElementWrappingImplementation, ElementWrappingImplementation); |
| 5903 function ButtonElementWrappingImplementation() {} |
| 5904 ButtonElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5905 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5906 } |
| 5907 ButtonElementWrappingImplementation._wrap$ctor.prototype = ButtonElementWrapping
Implementation.prototype; |
| 5908 ButtonElementWrappingImplementation.prototype.is$html_html_Element = function(){
return true}; |
| 5909 ButtonElementWrappingImplementation.prototype.get$name = function() { |
| 5910 return this._ptr.get$name(); |
| 5911 } |
| 5912 ButtonElementWrappingImplementation.prototype.get$type = function() { |
| 5913 return this._ptr.get$type(); |
| 5914 } |
| 5915 ButtonElementWrappingImplementation.prototype.get$value = function() { |
| 5916 return this._ptr.get$value(); |
| 5917 } |
| 5918 ButtonElementWrappingImplementation.prototype.set$value = function(value) { |
| 5919 this._ptr.set$value(value); |
| 5920 } |
| 5921 ButtonElementWrappingImplementation.prototype.click = function() { |
| 5922 this._ptr.click$0(); |
| 5923 return; |
| 5924 } |
| 5925 ButtonElementWrappingImplementation.prototype.get$click = function() { |
| 5926 return this.click.bind(this); |
| 5927 } |
| 5928 ButtonElementWrappingImplementation.prototype.click$0 = ButtonElementWrappingImp
lementation.prototype.click; |
| 5929 // ********** Code for CharacterDataWrappingImplementation ************** |
| 5930 $inherits(CharacterDataWrappingImplementation, NodeWrappingImplementation); |
| 5931 function CharacterDataWrappingImplementation() {} |
| 5932 CharacterDataWrappingImplementation._wrap$ctor = function(ptr) { |
| 5933 NodeWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5934 } |
| 5935 CharacterDataWrappingImplementation._wrap$ctor.prototype = CharacterDataWrapping
Implementation.prototype; |
| 5936 CharacterDataWrappingImplementation.prototype.get$length = function() { |
| 5937 return this._ptr.get$length(); |
| 5938 } |
| 5939 // ********** Code for TextWrappingImplementation ************** |
| 5940 $inherits(TextWrappingImplementation, CharacterDataWrappingImplementation); |
| 5941 function TextWrappingImplementation() {} |
| 5942 TextWrappingImplementation._wrap$ctor = function(ptr) { |
| 5943 CharacterDataWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5944 } |
| 5945 TextWrappingImplementation._wrap$ctor.prototype = TextWrappingImplementation.pro
totype; |
| 5946 // ********** Code for CDATASectionWrappingImplementation ************** |
| 5947 $inherits(CDATASectionWrappingImplementation, TextWrappingImplementation); |
| 5948 function CDATASectionWrappingImplementation() {} |
| 5949 CDATASectionWrappingImplementation._wrap$ctor = function(ptr) { |
| 5950 TextWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5951 } |
| 5952 CDATASectionWrappingImplementation._wrap$ctor.prototype = CDATASectionWrappingIm
plementation.prototype; |
| 5953 // ********** Code for CanvasElementWrappingImplementation ************** |
| 5954 $inherits(CanvasElementWrappingImplementation, ElementWrappingImplementation); |
| 5955 function CanvasElementWrappingImplementation() {} |
| 5956 CanvasElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 5957 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5958 } |
| 5959 CanvasElementWrappingImplementation._wrap$ctor.prototype = CanvasElementWrapping
Implementation.prototype; |
| 5960 CanvasElementWrappingImplementation.prototype.is$html_html_Element = function(){
return true}; |
| 5961 CanvasElementWrappingImplementation.prototype.get$height = function() { |
| 5962 return this._ptr.get$height(); |
| 5963 } |
| 5964 CanvasElementWrappingImplementation.prototype.set$height = function(value) { |
| 5965 this._ptr.set$height(value); |
| 5966 } |
| 5967 CanvasElementWrappingImplementation.prototype.get$width = function() { |
| 5968 return this._ptr.get$width(); |
| 5969 } |
| 5970 CanvasElementWrappingImplementation.prototype.set$width = function(value) { |
| 5971 this._ptr.set$width(value); |
| 5972 } |
| 5973 CanvasElementWrappingImplementation.prototype.getContext = function(contextId) { |
| 5974 if (contextId == null) { |
| 5975 return LevelDom.wrapCanvasRenderingContext(this._ptr.getContext$0()); |
| 5976 } |
| 5977 else { |
| 5978 return LevelDom.wrapCanvasRenderingContext(this._ptr.getContext$1(contextId)
); |
| 5979 } |
| 5980 } |
| 5981 CanvasElementWrappingImplementation.prototype.getContext$0 = CanvasElementWrappi
ngImplementation.prototype.getContext; |
| 5982 CanvasElementWrappingImplementation.prototype.getContext$1 = CanvasElementWrappi
ngImplementation.prototype.getContext; |
| 5983 // ********** Code for CanvasRenderingContextWrappingImplementation ************
** |
| 5984 $inherits(CanvasRenderingContextWrappingImplementation, DOMWrapperBase); |
| 5985 function CanvasRenderingContextWrappingImplementation() {} |
| 5986 CanvasRenderingContextWrappingImplementation._wrap$ctor = function(ptr) { |
| 5987 DOMWrapperBase._wrap$ctor.call(this, ptr); |
| 5988 } |
| 5989 CanvasRenderingContextWrappingImplementation._wrap$ctor.prototype = CanvasRender
ingContextWrappingImplementation.prototype; |
| 5990 // ********** Code for CanvasRenderingContext2DWrappingImplementation **********
**** |
| 5991 $inherits(CanvasRenderingContext2DWrappingImplementation, CanvasRenderingContext
WrappingImplementation); |
| 5992 function CanvasRenderingContext2DWrappingImplementation() {} |
| 5993 CanvasRenderingContext2DWrappingImplementation._wrap$ctor = function(ptr) { |
| 5994 CanvasRenderingContextWrappingImplementation._wrap$ctor.call(this, ptr); |
| 5995 } |
| 5996 CanvasRenderingContext2DWrappingImplementation._wrap$ctor.prototype = CanvasRend
eringContext2DWrappingImplementation.prototype; |
| 5997 CanvasRenderingContext2DWrappingImplementation.prototype.set$font = function(val
ue) { |
| 5998 this._ptr.set$font(value); |
| 5999 } |
| 6000 CanvasRenderingContext2DWrappingImplementation.prototype.measureText = function(
text) { |
| 6001 return LevelDom.wrapTextMetrics(this._ptr.measureText$1(text)); |
| 6002 } |
| 6003 CanvasRenderingContext2DWrappingImplementation.prototype.measureText$1 = CanvasR
enderingContext2DWrappingImplementation.prototype.measureText; |
| 6004 // ********** Code for CommentWrappingImplementation ************** |
| 6005 $inherits(CommentWrappingImplementation, CharacterDataWrappingImplementation); |
| 6006 function CommentWrappingImplementation() {} |
| 6007 CommentWrappingImplementation._wrap$ctor = function(ptr) { |
| 6008 CharacterDataWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6009 } |
| 6010 CommentWrappingImplementation._wrap$ctor.prototype = CommentWrappingImplementati
on.prototype; |
| 6011 // ********** Code for ConsoleWrappingImplementation ************** |
| 6012 $inherits(ConsoleWrappingImplementation, DOMWrapperBase); |
| 6013 function ConsoleWrappingImplementation() {} |
| 6014 ConsoleWrappingImplementation._wrap$ctor = function(ptr) { |
| 6015 DOMWrapperBase._wrap$ctor.call(this, ptr); |
| 6016 } |
| 6017 ConsoleWrappingImplementation._wrap$ctor.prototype = ConsoleWrappingImplementati
on.prototype; |
| 6018 ConsoleWrappingImplementation.prototype.time = function(title) { |
| 6019 this._ptr.time$1(title); |
| 6020 return; |
| 6021 } |
| 6022 ConsoleWrappingImplementation.prototype.get$time = function() { |
| 6023 return this.time.bind(this); |
| 6024 } |
| 6025 ConsoleWrappingImplementation.prototype.timeStamp = function() { |
| 6026 this._ptr.timeStamp$0(); |
| 6027 return; |
| 6028 } |
| 6029 ConsoleWrappingImplementation.prototype.get$timeStamp = function() { |
| 6030 return this.timeStamp.bind(this); |
| 6031 } |
| 6032 ConsoleWrappingImplementation.prototype.warn = function(arg) { |
| 6033 this._ptr.warn$1(LevelDom.unwrapMaybePrimitive(arg)); |
| 6034 return; |
| 6035 } |
| 6036 ConsoleWrappingImplementation.prototype.time$1 = ConsoleWrappingImplementation.p
rototype.time; |
| 6037 ConsoleWrappingImplementation.prototype.timeStamp$0 = ConsoleWrappingImplementat
ion.prototype.timeStamp; |
| 6038 ConsoleWrappingImplementation.prototype.warn$1 = ConsoleWrappingImplementation.p
rototype.warn; |
| 6039 // ********** Code for DListElementWrappingImplementation ************** |
| 6040 $inherits(DListElementWrappingImplementation, ElementWrappingImplementation); |
| 6041 function DListElementWrappingImplementation() {} |
| 6042 DListElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6043 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6044 } |
| 6045 DListElementWrappingImplementation._wrap$ctor.prototype = DListElementWrappingIm
plementation.prototype; |
| 6046 DListElementWrappingImplementation.prototype.is$html_html_Element = function(){r
eturn true}; |
| 6047 // ********** Code for DataListElementWrappingImplementation ************** |
| 6048 $inherits(DataListElementWrappingImplementation, ElementWrappingImplementation); |
| 6049 function DataListElementWrappingImplementation() {} |
| 6050 DataListElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6051 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6052 } |
| 6053 DataListElementWrappingImplementation._wrap$ctor.prototype = DataListElementWrap
pingImplementation.prototype; |
| 6054 DataListElementWrappingImplementation.prototype.is$html_html_Element = function(
){return true}; |
| 6055 // ********** Code for DetailsElementWrappingImplementation ************** |
| 6056 $inherits(DetailsElementWrappingImplementation, ElementWrappingImplementation); |
| 6057 function DetailsElementWrappingImplementation() {} |
| 6058 DetailsElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6059 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6060 } |
| 6061 DetailsElementWrappingImplementation._wrap$ctor.prototype = DetailsElementWrappi
ngImplementation.prototype; |
| 6062 DetailsElementWrappingImplementation.prototype.is$html_html_Element = function()
{return true}; |
| 6063 DetailsElementWrappingImplementation.prototype.get$open = function() { |
| 6064 return this._ptr.get$open(); |
| 6065 } |
| 6066 DetailsElementWrappingImplementation.prototype.open$2 = function($0, $1) { |
| 6067 return this.get$open().call$2($0, $1); |
| 6068 }; |
| 6069 DetailsElementWrappingImplementation.prototype.open$3 = function($0, $1, $2) { |
| 6070 return this.get$open()($0, $1, $2); |
| 6071 }; |
| 6072 DetailsElementWrappingImplementation.prototype.open$4 = function($0, $1, $2, $3)
{ |
| 6073 return this.get$open()($0, $1, $2, $3); |
| 6074 }; |
| 6075 DetailsElementWrappingImplementation.prototype.open$5 = function($0, $1, $2, $3,
$4) { |
| 6076 return this.get$open()($0, $1, $2, $3, $4); |
| 6077 }; |
| 6078 // ********** Code for DivElementWrappingImplementation ************** |
| 6079 $inherits(DivElementWrappingImplementation, ElementWrappingImplementation); |
| 6080 function DivElementWrappingImplementation() {} |
| 6081 DivElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6082 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6083 } |
| 6084 DivElementWrappingImplementation._wrap$ctor.prototype = DivElementWrappingImplem
entation.prototype; |
| 6085 DivElementWrappingImplementation.prototype.is$DivElement = function(){return tru
e}; |
| 6086 DivElementWrappingImplementation.prototype.is$html_html_Element = function(){ret
urn true}; |
| 6087 // ********** Code for EmbedElementWrappingImplementation ************** |
| 6088 $inherits(EmbedElementWrappingImplementation, ElementWrappingImplementation); |
| 6089 function EmbedElementWrappingImplementation() {} |
| 6090 EmbedElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6091 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6092 } |
| 6093 EmbedElementWrappingImplementation._wrap$ctor.prototype = EmbedElementWrappingIm
plementation.prototype; |
| 6094 EmbedElementWrappingImplementation.prototype.is$html_html_Element = function(){r
eturn true}; |
| 6095 EmbedElementWrappingImplementation.prototype.get$height = function() { |
| 6096 return this._ptr.get$height(); |
| 6097 } |
| 6098 EmbedElementWrappingImplementation.prototype.set$height = function(value) { |
| 6099 this._ptr.set$height(value); |
| 6100 } |
| 6101 EmbedElementWrappingImplementation.prototype.get$name = function() { |
| 6102 return this._ptr.get$name(); |
| 6103 } |
| 6104 EmbedElementWrappingImplementation.prototype.get$type = function() { |
| 6105 return this._ptr.get$type(); |
| 6106 } |
| 6107 EmbedElementWrappingImplementation.prototype.get$width = function() { |
| 6108 return this._ptr.get$width(); |
| 6109 } |
| 6110 EmbedElementWrappingImplementation.prototype.set$width = function(value) { |
| 6111 this._ptr.set$width(value); |
| 6112 } |
| 6113 // ********** Code for EntityReferenceWrappingImplementation ************** |
| 6114 $inherits(EntityReferenceWrappingImplementation, NodeWrappingImplementation); |
| 6115 function EntityReferenceWrappingImplementation() {} |
| 6116 EntityReferenceWrappingImplementation._wrap$ctor = function(ptr) { |
| 6117 NodeWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6118 } |
| 6119 EntityReferenceWrappingImplementation._wrap$ctor.prototype = EntityReferenceWrap
pingImplementation.prototype; |
| 6120 // ********** Code for EntityWrappingImplementation ************** |
| 6121 $inherits(EntityWrappingImplementation, NodeWrappingImplementation); |
| 6122 function EntityWrappingImplementation() {} |
| 6123 EntityWrappingImplementation._wrap$ctor = function(ptr) { |
| 6124 NodeWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6125 } |
| 6126 EntityWrappingImplementation._wrap$ctor.prototype = EntityWrappingImplementation
.prototype; |
| 6127 // ********** Code for FieldSetElementWrappingImplementation ************** |
| 6128 $inherits(FieldSetElementWrappingImplementation, ElementWrappingImplementation); |
| 6129 function FieldSetElementWrappingImplementation() {} |
| 6130 FieldSetElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6131 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6132 } |
| 6133 FieldSetElementWrappingImplementation._wrap$ctor.prototype = FieldSetElementWrap
pingImplementation.prototype; |
| 6134 FieldSetElementWrappingImplementation.prototype.is$html_html_Element = function(
){return true}; |
| 6135 // ********** Code for FontElementWrappingImplementation ************** |
| 6136 $inherits(FontElementWrappingImplementation, ElementWrappingImplementation); |
| 6137 function FontElementWrappingImplementation() {} |
| 6138 FontElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6139 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6140 } |
| 6141 FontElementWrappingImplementation._wrap$ctor.prototype = FontElementWrappingImpl
ementation.prototype; |
| 6142 FontElementWrappingImplementation.prototype.is$html_html_Element = function(){re
turn true}; |
| 6143 // ********** Code for FormElementWrappingImplementation ************** |
| 6144 $inherits(FormElementWrappingImplementation, ElementWrappingImplementation); |
| 6145 function FormElementWrappingImplementation() {} |
| 6146 FormElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6147 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6148 } |
| 6149 FormElementWrappingImplementation._wrap$ctor.prototype = FormElementWrappingImpl
ementation.prototype; |
| 6150 FormElementWrappingImplementation.prototype.is$html_html_Element = function(){re
turn true}; |
| 6151 FormElementWrappingImplementation.prototype.get$length = function() { |
| 6152 return this._ptr.get$length(); |
| 6153 } |
| 6154 FormElementWrappingImplementation.prototype.get$name = function() { |
| 6155 return this._ptr.get$name(); |
| 6156 } |
| 6157 FormElementWrappingImplementation.prototype.get$target = function() { |
| 6158 return this._ptr.get$target(); |
| 6159 } |
| 6160 FormElementWrappingImplementation.prototype.set$target = function(value) { |
| 6161 this._ptr.set$target(value); |
| 6162 } |
| 6163 // ********** Code for HRElementWrappingImplementation ************** |
| 6164 $inherits(HRElementWrappingImplementation, ElementWrappingImplementation); |
| 6165 function HRElementWrappingImplementation() {} |
| 6166 HRElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6167 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6168 } |
| 6169 HRElementWrappingImplementation._wrap$ctor.prototype = HRElementWrappingImplemen
tation.prototype; |
| 6170 HRElementWrappingImplementation.prototype.is$html_html_Element = function(){retu
rn true}; |
| 6171 HRElementWrappingImplementation.prototype.get$width = function() { |
| 6172 return this._ptr.get$width(); |
| 6173 } |
| 6174 HRElementWrappingImplementation.prototype.set$width = function(value) { |
| 6175 this._ptr.set$width(value); |
| 6176 } |
| 6177 // ********** Code for HeadElementWrappingImplementation ************** |
| 6178 $inherits(HeadElementWrappingImplementation, ElementWrappingImplementation); |
| 6179 function HeadElementWrappingImplementation() {} |
| 6180 HeadElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6181 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6182 } |
| 6183 HeadElementWrappingImplementation._wrap$ctor.prototype = HeadElementWrappingImpl
ementation.prototype; |
| 6184 HeadElementWrappingImplementation.prototype.is$html_html_Element = function(){re
turn true}; |
| 6185 // ********** Code for HeadingElementWrappingImplementation ************** |
| 6186 $inherits(HeadingElementWrappingImplementation, ElementWrappingImplementation); |
| 6187 function HeadingElementWrappingImplementation() {} |
| 6188 HeadingElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6189 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6190 } |
| 6191 HeadingElementWrappingImplementation._wrap$ctor.prototype = HeadingElementWrappi
ngImplementation.prototype; |
| 6192 HeadingElementWrappingImplementation.prototype.is$html_html_Element = function()
{return true}; |
| 6193 // ********** Code for HistoryWrappingImplementation ************** |
| 6194 $inherits(HistoryWrappingImplementation, DOMWrapperBase); |
| 6195 function HistoryWrappingImplementation() {} |
| 6196 HistoryWrappingImplementation._wrap$ctor = function(ptr) { |
| 6197 DOMWrapperBase._wrap$ctor.call(this, ptr); |
| 6198 } |
| 6199 HistoryWrappingImplementation._wrap$ctor.prototype = HistoryWrappingImplementati
on.prototype; |
| 6200 HistoryWrappingImplementation.prototype.get$length = function() { |
| 6201 return this._ptr.get$length(); |
| 6202 } |
| 6203 HistoryWrappingImplementation.prototype.back = function() { |
| 6204 this._ptr.back$0(); |
| 6205 return; |
| 6206 } |
| 6207 HistoryWrappingImplementation.prototype.forward = function() { |
| 6208 this._ptr.forward$0(); |
| 6209 return; |
| 6210 } |
| 6211 HistoryWrappingImplementation.prototype.pushState = function(data, title, url) { |
| 6212 if (url == null) { |
| 6213 this._ptr.pushState$2(LevelDom.unwrapMaybePrimitive(data), title); |
| 6214 return; |
| 6215 } |
| 6216 else { |
| 6217 this._ptr.pushState$3(LevelDom.unwrapMaybePrimitive(data), title, url); |
| 6218 return; |
| 6219 } |
| 6220 } |
| 6221 HistoryWrappingImplementation.prototype.replaceState = function(data, title, url
) { |
| 6222 if (url == null) { |
| 6223 this._ptr.replaceState$2(LevelDom.unwrapMaybePrimitive(data), title); |
| 6224 return; |
| 6225 } |
| 6226 else { |
| 6227 this._ptr.replaceState$3(LevelDom.unwrapMaybePrimitive(data), title, url); |
| 6228 return; |
| 6229 } |
| 6230 } |
| 6231 HistoryWrappingImplementation.prototype.back$0 = HistoryWrappingImplementation.p
rototype.back; |
| 6232 HistoryWrappingImplementation.prototype.forward$0 = HistoryWrappingImplementatio
n.prototype.forward; |
| 6233 HistoryWrappingImplementation.prototype.pushState$2 = HistoryWrappingImplementat
ion.prototype.pushState; |
| 6234 HistoryWrappingImplementation.prototype.pushState$3 = HistoryWrappingImplementat
ion.prototype.pushState; |
| 6235 HistoryWrappingImplementation.prototype.replaceState$2 = HistoryWrappingImplemen
tation.prototype.replaceState; |
| 6236 HistoryWrappingImplementation.prototype.replaceState$3 = HistoryWrappingImplemen
tation.prototype.replaceState; |
| 6237 // ********** Code for IDBVersionChangeEventWrappingImplementation *************
* |
| 6238 $inherits(IDBVersionChangeEventWrappingImplementation, EventWrappingImplementati
on); |
| 6239 function IDBVersionChangeEventWrappingImplementation() {} |
| 6240 IDBVersionChangeEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 6241 EventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6242 } |
| 6243 IDBVersionChangeEventWrappingImplementation._wrap$ctor.prototype = IDBVersionCha
ngeEventWrappingImplementation.prototype; |
| 6244 // ********** Code for IFrameElementWrappingImplementation ************** |
| 6245 $inherits(IFrameElementWrappingImplementation, ElementWrappingImplementation); |
| 6246 function IFrameElementWrappingImplementation() {} |
| 6247 IFrameElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6248 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6249 } |
| 6250 IFrameElementWrappingImplementation._wrap$ctor.prototype = IFrameElementWrapping
Implementation.prototype; |
| 6251 IFrameElementWrappingImplementation.prototype.is$html_html_Element = function(){
return true}; |
| 6252 IFrameElementWrappingImplementation.prototype.get$height = function() { |
| 6253 return this._ptr.get$height(); |
| 6254 } |
| 6255 IFrameElementWrappingImplementation.prototype.set$height = function(value) { |
| 6256 this._ptr.set$height(value); |
| 6257 } |
| 6258 IFrameElementWrappingImplementation.prototype.get$name = function() { |
| 6259 return this._ptr.get$name(); |
| 6260 } |
| 6261 IFrameElementWrappingImplementation.prototype.get$width = function() { |
| 6262 return this._ptr.get$width(); |
| 6263 } |
| 6264 IFrameElementWrappingImplementation.prototype.set$width = function(value) { |
| 6265 this._ptr.set$width(value); |
| 6266 } |
| 6267 // ********** Code for ImageElementWrappingImplementation ************** |
| 6268 $inherits(ImageElementWrappingImplementation, ElementWrappingImplementation); |
| 6269 function ImageElementWrappingImplementation() {} |
| 6270 ImageElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6271 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6272 } |
| 6273 ImageElementWrappingImplementation._wrap$ctor.prototype = ImageElementWrappingIm
plementation.prototype; |
| 6274 ImageElementWrappingImplementation.prototype.is$html_html_Element = function(){r
eturn true}; |
| 6275 ImageElementWrappingImplementation.prototype.get$complete = function() { |
| 6276 return this._ptr.get$complete(); |
| 6277 } |
| 6278 ImageElementWrappingImplementation.prototype.get$height = function() { |
| 6279 return this._ptr.get$height(); |
| 6280 } |
| 6281 ImageElementWrappingImplementation.prototype.set$height = function(value) { |
| 6282 this._ptr.set$height(value); |
| 6283 } |
| 6284 ImageElementWrappingImplementation.prototype.get$name = function() { |
| 6285 return this._ptr.get$name(); |
| 6286 } |
| 6287 ImageElementWrappingImplementation.prototype.get$width = function() { |
| 6288 return this._ptr.get$width(); |
| 6289 } |
| 6290 ImageElementWrappingImplementation.prototype.set$width = function(value) { |
| 6291 this._ptr.set$width(value); |
| 6292 } |
| 6293 ImageElementWrappingImplementation.prototype.get$x = function() { |
| 6294 return this._ptr.get$x(); |
| 6295 } |
| 6296 ImageElementWrappingImplementation.prototype.get$y = function() { |
| 6297 return this._ptr.get$y(); |
| 6298 } |
| 6299 ImageElementWrappingImplementation.prototype.complete$1 = function($0) { |
| 6300 return this.get$complete().call$1($0); |
| 6301 }; |
| 6302 // ********** Code for InputElementWrappingImplementation ************** |
| 6303 $inherits(InputElementWrappingImplementation, ElementWrappingImplementation); |
| 6304 function InputElementWrappingImplementation() {} |
| 6305 InputElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6306 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6307 } |
| 6308 InputElementWrappingImplementation._wrap$ctor.prototype = InputElementWrappingIm
plementation.prototype; |
| 6309 InputElementWrappingImplementation.prototype.is$html_html_Element = function(){r
eturn true}; |
| 6310 InputElementWrappingImplementation.prototype.get$name = function() { |
| 6311 return this._ptr.get$name(); |
| 6312 } |
| 6313 InputElementWrappingImplementation.prototype.get$type = function() { |
| 6314 return this._ptr.get$type(); |
| 6315 } |
| 6316 InputElementWrappingImplementation.prototype.get$value = function() { |
| 6317 return this._ptr.get$value(); |
| 6318 } |
| 6319 InputElementWrappingImplementation.prototype.set$value = function(value) { |
| 6320 this._ptr.set$value(value); |
| 6321 } |
| 6322 InputElementWrappingImplementation.prototype.click = function() { |
| 6323 this._ptr.click$0(); |
| 6324 return; |
| 6325 } |
| 6326 InputElementWrappingImplementation.prototype.get$click = function() { |
| 6327 return this.click.bind(this); |
| 6328 } |
| 6329 InputElementWrappingImplementation.prototype.click$0 = InputElementWrappingImple
mentation.prototype.click; |
| 6330 // ********** Code for KeygenElementWrappingImplementation ************** |
| 6331 $inherits(KeygenElementWrappingImplementation, ElementWrappingImplementation); |
| 6332 function KeygenElementWrappingImplementation() {} |
| 6333 KeygenElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6334 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6335 } |
| 6336 KeygenElementWrappingImplementation._wrap$ctor.prototype = KeygenElementWrapping
Implementation.prototype; |
| 6337 KeygenElementWrappingImplementation.prototype.is$html_html_Element = function(){
return true}; |
| 6338 KeygenElementWrappingImplementation.prototype.get$name = function() { |
| 6339 return this._ptr.get$name(); |
| 6340 } |
| 6341 KeygenElementWrappingImplementation.prototype.get$type = function() { |
| 6342 return this._ptr.get$type(); |
| 6343 } |
| 6344 // ********** Code for LIElementWrappingImplementation ************** |
| 6345 $inherits(LIElementWrappingImplementation, ElementWrappingImplementation); |
| 6346 function LIElementWrappingImplementation() {} |
| 6347 LIElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6348 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6349 } |
| 6350 LIElementWrappingImplementation._wrap$ctor.prototype = LIElementWrappingImplemen
tation.prototype; |
| 6351 LIElementWrappingImplementation.prototype.is$html_html_Element = function(){retu
rn true}; |
| 6352 LIElementWrappingImplementation.prototype.get$type = function() { |
| 6353 return this._ptr.get$type(); |
| 6354 } |
| 6355 LIElementWrappingImplementation.prototype.get$value = function() { |
| 6356 return this._ptr.get$value(); |
| 6357 } |
| 6358 LIElementWrappingImplementation.prototype.set$value = function(value) { |
| 6359 this._ptr.set$value(value); |
| 6360 } |
| 6361 // ********** Code for LabelElementWrappingImplementation ************** |
| 6362 $inherits(LabelElementWrappingImplementation, ElementWrappingImplementation); |
| 6363 function LabelElementWrappingImplementation() {} |
| 6364 LabelElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6365 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6366 } |
| 6367 LabelElementWrappingImplementation._wrap$ctor.prototype = LabelElementWrappingIm
plementation.prototype; |
| 6368 LabelElementWrappingImplementation.prototype.is$html_html_Element = function(){r
eturn true}; |
| 6369 // ********** Code for LegendElementWrappingImplementation ************** |
| 6370 $inherits(LegendElementWrappingImplementation, ElementWrappingImplementation); |
| 6371 function LegendElementWrappingImplementation() {} |
| 6372 LegendElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6373 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6374 } |
| 6375 LegendElementWrappingImplementation._wrap$ctor.prototype = LegendElementWrapping
Implementation.prototype; |
| 6376 LegendElementWrappingImplementation.prototype.is$html_html_Element = function(){
return true}; |
| 6377 // ********** Code for LinkElementWrappingImplementation ************** |
| 6378 $inherits(LinkElementWrappingImplementation, ElementWrappingImplementation); |
| 6379 function LinkElementWrappingImplementation() {} |
| 6380 LinkElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6381 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6382 } |
| 6383 LinkElementWrappingImplementation._wrap$ctor.prototype = LinkElementWrappingImpl
ementation.prototype; |
| 6384 LinkElementWrappingImplementation.prototype.is$html_html_Element = function(){re
turn true}; |
| 6385 LinkElementWrappingImplementation.prototype.get$target = function() { |
| 6386 return this._ptr.get$target(); |
| 6387 } |
| 6388 LinkElementWrappingImplementation.prototype.set$target = function(value) { |
| 6389 this._ptr.set$target(value); |
| 6390 } |
| 6391 LinkElementWrappingImplementation.prototype.get$type = function() { |
| 6392 return this._ptr.get$type(); |
| 6393 } |
| 6394 // ********** Code for LocationWrappingImplementation ************** |
| 6395 $inherits(LocationWrappingImplementation, DOMWrapperBase); |
| 6396 function LocationWrappingImplementation() {} |
| 6397 LocationWrappingImplementation._wrap$ctor = function(ptr) { |
| 6398 DOMWrapperBase._wrap$ctor.call(this, ptr); |
| 6399 } |
| 6400 LocationWrappingImplementation._wrap$ctor.prototype = LocationWrappingImplementa
tion.prototype; |
| 6401 LocationWrappingImplementation.prototype.get$hash = function() { |
| 6402 return this._ptr.get$hash(); |
| 6403 } |
| 6404 LocationWrappingImplementation.prototype.get$host = function() { |
| 6405 return this._ptr.get$host(); |
| 6406 } |
| 6407 LocationWrappingImplementation.prototype.get$protocol = function() { |
| 6408 return this._ptr.get$protocol(); |
| 6409 } |
| 6410 LocationWrappingImplementation.prototype.reload = function() { |
| 6411 this._ptr.reload$0(); |
| 6412 return; |
| 6413 } |
| 6414 LocationWrappingImplementation.prototype.toString = function() { |
| 6415 return this._ptr.toString$0(); |
| 6416 } |
| 6417 LocationWrappingImplementation.prototype.reload$0 = LocationWrappingImplementati
on.prototype.reload; |
| 6418 LocationWrappingImplementation.prototype.toString$0 = LocationWrappingImplementa
tion.prototype.toString; |
| 6419 // ********** Code for MapElementWrappingImplementation ************** |
| 6420 $inherits(MapElementWrappingImplementation, ElementWrappingImplementation); |
| 6421 function MapElementWrappingImplementation() {} |
| 6422 MapElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6423 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6424 } |
| 6425 MapElementWrappingImplementation._wrap$ctor.prototype = MapElementWrappingImplem
entation.prototype; |
| 6426 MapElementWrappingImplementation.prototype.is$html_html_Element = function(){ret
urn true}; |
| 6427 MapElementWrappingImplementation.prototype.get$name = function() { |
| 6428 return this._ptr.get$name(); |
| 6429 } |
| 6430 // ********** Code for MarqueeElementWrappingImplementation ************** |
| 6431 $inherits(MarqueeElementWrappingImplementation, ElementWrappingImplementation); |
| 6432 function MarqueeElementWrappingImplementation() {} |
| 6433 MarqueeElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6434 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6435 } |
| 6436 MarqueeElementWrappingImplementation._wrap$ctor.prototype = MarqueeElementWrappi
ngImplementation.prototype; |
| 6437 MarqueeElementWrappingImplementation.prototype.is$html_html_Element = function()
{return true}; |
| 6438 MarqueeElementWrappingImplementation.prototype.get$height = function() { |
| 6439 return this._ptr.get$height(); |
| 6440 } |
| 6441 MarqueeElementWrappingImplementation.prototype.set$height = function(value) { |
| 6442 this._ptr.set$height(value); |
| 6443 } |
| 6444 MarqueeElementWrappingImplementation.prototype.get$width = function() { |
| 6445 return this._ptr.get$width(); |
| 6446 } |
| 6447 MarqueeElementWrappingImplementation.prototype.set$width = function(value) { |
| 6448 this._ptr.set$width(value); |
| 6449 } |
| 6450 MarqueeElementWrappingImplementation.prototype.start = function() { |
| 6451 this._ptr.start$0(); |
| 6452 return; |
| 6453 } |
| 6454 MarqueeElementWrappingImplementation.prototype.get$start = function() { |
| 6455 return this.start.bind(this); |
| 6456 } |
| 6457 MarqueeElementWrappingImplementation.prototype.start$0 = MarqueeElementWrappingI
mplementation.prototype.start; |
| 6458 // ********** Code for MenuElementWrappingImplementation ************** |
| 6459 $inherits(MenuElementWrappingImplementation, ElementWrappingImplementation); |
| 6460 function MenuElementWrappingImplementation() {} |
| 6461 MenuElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6462 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6463 } |
| 6464 MenuElementWrappingImplementation._wrap$ctor.prototype = MenuElementWrappingImpl
ementation.prototype; |
| 6465 MenuElementWrappingImplementation.prototype.is$html_html_Element = function(){re
turn true}; |
| 6466 // ********** Code for MetaElementWrappingImplementation ************** |
| 6467 $inherits(MetaElementWrappingImplementation, ElementWrappingImplementation); |
| 6468 function MetaElementWrappingImplementation() {} |
| 6469 MetaElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6470 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6471 } |
| 6472 MetaElementWrappingImplementation._wrap$ctor.prototype = MetaElementWrappingImpl
ementation.prototype; |
| 6473 MetaElementWrappingImplementation.prototype.is$html_html_Element = function(){re
turn true}; |
| 6474 MetaElementWrappingImplementation.prototype.get$name = function() { |
| 6475 return this._ptr.get$name(); |
| 6476 } |
| 6477 // ********** Code for MeterElementWrappingImplementation ************** |
| 6478 $inherits(MeterElementWrappingImplementation, ElementWrappingImplementation); |
| 6479 function MeterElementWrappingImplementation() {} |
| 6480 MeterElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6481 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6482 } |
| 6483 MeterElementWrappingImplementation._wrap$ctor.prototype = MeterElementWrappingIm
plementation.prototype; |
| 6484 MeterElementWrappingImplementation.prototype.is$html_html_Element = function(){r
eturn true}; |
| 6485 MeterElementWrappingImplementation.prototype.get$value = function() { |
| 6486 return this._ptr.get$value(); |
| 6487 } |
| 6488 MeterElementWrappingImplementation.prototype.set$value = function(value) { |
| 6489 this._ptr.set$value(value); |
| 6490 } |
| 6491 // ********** Code for ModElementWrappingImplementation ************** |
| 6492 $inherits(ModElementWrappingImplementation, ElementWrappingImplementation); |
| 6493 function ModElementWrappingImplementation() {} |
| 6494 ModElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6495 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6496 } |
| 6497 ModElementWrappingImplementation._wrap$ctor.prototype = ModElementWrappingImplem
entation.prototype; |
| 6498 ModElementWrappingImplementation.prototype.is$html_html_Element = function(){ret
urn true}; |
| 6499 // ********** Code for NavigatorWrappingImplementation ************** |
| 6500 $inherits(NavigatorWrappingImplementation, DOMWrapperBase); |
| 6501 function NavigatorWrappingImplementation() {} |
| 6502 NavigatorWrappingImplementation._wrap$ctor = function(ptr) { |
| 6503 DOMWrapperBase._wrap$ctor.call(this, ptr); |
| 6504 } |
| 6505 NavigatorWrappingImplementation._wrap$ctor.prototype = NavigatorWrappingImplemen
tation.prototype; |
| 6506 NavigatorWrappingImplementation.prototype.get$userAgent = function() { |
| 6507 return this._ptr.get$userAgent(); |
| 6508 } |
| 6509 // ********** Code for NotationWrappingImplementation ************** |
| 6510 $inherits(NotationWrappingImplementation, NodeWrappingImplementation); |
| 6511 function NotationWrappingImplementation() {} |
| 6512 NotationWrappingImplementation._wrap$ctor = function(ptr) { |
| 6513 NodeWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6514 } |
| 6515 NotationWrappingImplementation._wrap$ctor.prototype = NotationWrappingImplementa
tion.prototype; |
| 6516 // ********** Code for OListElementWrappingImplementation ************** |
| 6517 $inherits(OListElementWrappingImplementation, ElementWrappingImplementation); |
| 6518 function OListElementWrappingImplementation() {} |
| 6519 OListElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6520 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6521 } |
| 6522 OListElementWrappingImplementation._wrap$ctor.prototype = OListElementWrappingIm
plementation.prototype; |
| 6523 OListElementWrappingImplementation.prototype.is$html_html_Element = function(){r
eturn true}; |
| 6524 OListElementWrappingImplementation.prototype.get$start = function() { |
| 6525 return this._ptr.get$start(); |
| 6526 } |
| 6527 OListElementWrappingImplementation.prototype.set$start = function(value) { |
| 6528 this._ptr.set$start(value); |
| 6529 } |
| 6530 OListElementWrappingImplementation.prototype.get$type = function() { |
| 6531 return this._ptr.get$type(); |
| 6532 } |
| 6533 OListElementWrappingImplementation.prototype.start$0 = function() { |
| 6534 return this.get$start().call$0(); |
| 6535 }; |
| 6536 // ********** Code for OfflineAudioCompletionEventWrappingImplementation *******
******* |
| 6537 $inherits(OfflineAudioCompletionEventWrappingImplementation, EventWrappingImplem
entation); |
| 6538 function OfflineAudioCompletionEventWrappingImplementation() {} |
| 6539 OfflineAudioCompletionEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 6540 EventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6541 } |
| 6542 OfflineAudioCompletionEventWrappingImplementation._wrap$ctor.prototype = Offline
AudioCompletionEventWrappingImplementation.prototype; |
| 6543 // ********** Code for OptGroupElementWrappingImplementation ************** |
| 6544 $inherits(OptGroupElementWrappingImplementation, ElementWrappingImplementation); |
| 6545 function OptGroupElementWrappingImplementation() {} |
| 6546 OptGroupElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6547 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6548 } |
| 6549 OptGroupElementWrappingImplementation._wrap$ctor.prototype = OptGroupElementWrap
pingImplementation.prototype; |
| 6550 OptGroupElementWrappingImplementation.prototype.is$html_html_Element = function(
){return true}; |
| 6551 // ********** Code for OptionElementWrappingImplementation ************** |
| 6552 $inherits(OptionElementWrappingImplementation, ElementWrappingImplementation); |
| 6553 function OptionElementWrappingImplementation() {} |
| 6554 OptionElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6555 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6556 } |
| 6557 OptionElementWrappingImplementation._wrap$ctor.prototype = OptionElementWrapping
Implementation.prototype; |
| 6558 OptionElementWrappingImplementation.prototype.is$html_html_Element = function(){
return true}; |
| 6559 OptionElementWrappingImplementation.prototype.get$text = function() { |
| 6560 return this._ptr.get$text(); |
| 6561 } |
| 6562 OptionElementWrappingImplementation.prototype.set$text = function(value) { |
| 6563 this._ptr.set$text(value); |
| 6564 } |
| 6565 OptionElementWrappingImplementation.prototype.get$value = function() { |
| 6566 return this._ptr.get$value(); |
| 6567 } |
| 6568 OptionElementWrappingImplementation.prototype.set$value = function(value) { |
| 6569 this._ptr.set$value(value); |
| 6570 } |
| 6571 // ********** Code for OutputElementWrappingImplementation ************** |
| 6572 $inherits(OutputElementWrappingImplementation, ElementWrappingImplementation); |
| 6573 function OutputElementWrappingImplementation() {} |
| 6574 OutputElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6575 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6576 } |
| 6577 OutputElementWrappingImplementation._wrap$ctor.prototype = OutputElementWrapping
Implementation.prototype; |
| 6578 OutputElementWrappingImplementation.prototype.is$html_html_Element = function(){
return true}; |
| 6579 OutputElementWrappingImplementation.prototype.get$name = function() { |
| 6580 return this._ptr.get$name(); |
| 6581 } |
| 6582 OutputElementWrappingImplementation.prototype.get$type = function() { |
| 6583 return this._ptr.get$type(); |
| 6584 } |
| 6585 OutputElementWrappingImplementation.prototype.get$value = function() { |
| 6586 return this._ptr.get$value(); |
| 6587 } |
| 6588 OutputElementWrappingImplementation.prototype.set$value = function(value) { |
| 6589 this._ptr.set$value(value); |
| 6590 } |
| 6591 // ********** Code for ParagraphElementWrappingImplementation ************** |
| 6592 $inherits(ParagraphElementWrappingImplementation, ElementWrappingImplementation)
; |
| 6593 function ParagraphElementWrappingImplementation() {} |
| 6594 ParagraphElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6595 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6596 } |
| 6597 ParagraphElementWrappingImplementation._wrap$ctor.prototype = ParagraphElementWr
appingImplementation.prototype; |
| 6598 ParagraphElementWrappingImplementation.prototype.is$html_html_Element = function
(){return true}; |
| 6599 // ********** Code for ParamElementWrappingImplementation ************** |
| 6600 $inherits(ParamElementWrappingImplementation, ElementWrappingImplementation); |
| 6601 function ParamElementWrappingImplementation() {} |
| 6602 ParamElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6603 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6604 } |
| 6605 ParamElementWrappingImplementation._wrap$ctor.prototype = ParamElementWrappingIm
plementation.prototype; |
| 6606 ParamElementWrappingImplementation.prototype.is$html_html_Element = function(){r
eturn true}; |
| 6607 ParamElementWrappingImplementation.prototype.get$name = function() { |
| 6608 return this._ptr.get$name(); |
| 6609 } |
| 6610 ParamElementWrappingImplementation.prototype.get$type = function() { |
| 6611 return this._ptr.get$type(); |
| 6612 } |
| 6613 ParamElementWrappingImplementation.prototype.get$value = function() { |
| 6614 return this._ptr.get$value(); |
| 6615 } |
| 6616 ParamElementWrappingImplementation.prototype.set$value = function(value) { |
| 6617 this._ptr.set$value(value); |
| 6618 } |
| 6619 // ********** Code for PointWrappingImplementation ************** |
| 6620 $inherits(PointWrappingImplementation, DOMWrapperBase); |
| 6621 function PointWrappingImplementation() {} |
| 6622 PointWrappingImplementation._wrap$ctor = function(ptr) { |
| 6623 DOMWrapperBase._wrap$ctor.call(this, ptr); |
| 6624 } |
| 6625 PointWrappingImplementation._wrap$ctor.prototype = PointWrappingImplementation.p
rototype; |
| 6626 PointWrappingImplementation.prototype.get$x = function() { |
| 6627 return this._ptr.get$x(); |
| 6628 } |
| 6629 PointWrappingImplementation.prototype.get$y = function() { |
| 6630 return this._ptr.get$y(); |
| 6631 } |
| 6632 // ********** Code for PreElementWrappingImplementation ************** |
| 6633 $inherits(PreElementWrappingImplementation, ElementWrappingImplementation); |
| 6634 function PreElementWrappingImplementation() {} |
| 6635 PreElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6636 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6637 } |
| 6638 PreElementWrappingImplementation._wrap$ctor.prototype = PreElementWrappingImplem
entation.prototype; |
| 6639 PreElementWrappingImplementation.prototype.is$html_html_Element = function(){ret
urn true}; |
| 6640 PreElementWrappingImplementation.prototype.get$width = function() { |
| 6641 return this._ptr.get$width(); |
| 6642 } |
| 6643 PreElementWrappingImplementation.prototype.set$width = function(value) { |
| 6644 this._ptr.set$width(value); |
| 6645 } |
| 6646 // ********** Code for ProcessingInstructionWrappingImplementation *************
* |
| 6647 $inherits(ProcessingInstructionWrappingImplementation, NodeWrappingImplementatio
n); |
| 6648 function ProcessingInstructionWrappingImplementation() {} |
| 6649 ProcessingInstructionWrappingImplementation._wrap$ctor = function(ptr) { |
| 6650 NodeWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6651 } |
| 6652 ProcessingInstructionWrappingImplementation._wrap$ctor.prototype = ProcessingIns
tructionWrappingImplementation.prototype; |
| 6653 ProcessingInstructionWrappingImplementation.prototype.get$target = function() { |
| 6654 return this._ptr.get$target(); |
| 6655 } |
| 6656 // ********** Code for ProgressElementWrappingImplementation ************** |
| 6657 $inherits(ProgressElementWrappingImplementation, ElementWrappingImplementation); |
| 6658 function ProgressElementWrappingImplementation() {} |
| 6659 ProgressElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6660 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6661 } |
| 6662 ProgressElementWrappingImplementation._wrap$ctor.prototype = ProgressElementWrap
pingImplementation.prototype; |
| 6663 ProgressElementWrappingImplementation.prototype.is$html_html_Element = function(
){return true}; |
| 6664 ProgressElementWrappingImplementation.prototype.get$value = function() { |
| 6665 return this._ptr.get$value(); |
| 6666 } |
| 6667 ProgressElementWrappingImplementation.prototype.set$value = function(value) { |
| 6668 this._ptr.set$value(value); |
| 6669 } |
| 6670 // ********** Code for QuoteElementWrappingImplementation ************** |
| 6671 $inherits(QuoteElementWrappingImplementation, ElementWrappingImplementation); |
| 6672 function QuoteElementWrappingImplementation() {} |
| 6673 QuoteElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6674 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6675 } |
| 6676 QuoteElementWrappingImplementation._wrap$ctor.prototype = QuoteElementWrappingIm
plementation.prototype; |
| 6677 QuoteElementWrappingImplementation.prototype.is$html_html_Element = function(){r
eturn true}; |
| 6678 // ********** Code for SVGElementWrappingImplementation ************** |
| 6679 $inherits(SVGElementWrappingImplementation, ElementWrappingImplementation); |
| 6680 function SVGElementWrappingImplementation() {} |
| 6681 SVGElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6682 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6683 } |
| 6684 SVGElementWrappingImplementation._wrap$ctor.prototype = SVGElementWrappingImplem
entation.prototype; |
| 6685 SVGElementWrappingImplementation.prototype.is$html_html_Element = function(){ret
urn true}; |
| 6686 SVGElementWrappingImplementation.prototype.get$classes = function() { |
| 6687 if (this._cssClassSet == null) { |
| 6688 this._cssClassSet = new _SVGClassSet(this._ptr); |
| 6689 } |
| 6690 return this._cssClassSet; |
| 6691 } |
| 6692 SVGElementWrappingImplementation.prototype.get$id = function() { |
| 6693 return this._ptr.get$id(); |
| 6694 } |
| 6695 SVGElementWrappingImplementation.prototype.get$elements = function() { |
| 6696 if (this._elements == null) { |
| 6697 this._elements = new FilteredElementList(this); |
| 6698 } |
| 6699 return this._elements; |
| 6700 } |
| 6701 SVGElementWrappingImplementation.prototype.set$elements = function(value) { |
| 6702 var elements = this.get$elements(); |
| 6703 elements.clear$0(); |
| 6704 elements.addAll$1(value); |
| 6705 } |
| 6706 SVGElementWrappingImplementation.prototype.set$innerHTML = function(svg) { |
| 6707 var container = ElementWrappingImplementation.ElementWrappingImplementation$ta
g$factory("div"); |
| 6708 container.set$innerHTML(("<svg version=\"1.1\">" + svg + "</svg>")); |
| 6709 this.set$elements(container.get$elements().get$first().get$elements()); |
| 6710 } |
| 6711 // ********** Code for SVGAElementWrappingImplementation ************** |
| 6712 $inherits(SVGAElementWrappingImplementation, SVGElementWrappingImplementation); |
| 6713 function SVGAElementWrappingImplementation() {} |
| 6714 SVGAElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6715 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6716 } |
| 6717 SVGAElementWrappingImplementation._wrap$ctor.prototype = SVGAElementWrappingImpl
ementation.prototype; |
| 6718 SVGAElementWrappingImplementation.prototype.is$html_html_Element = function(){re
turn true}; |
| 6719 SVGAElementWrappingImplementation.prototype.get$target = function() { |
| 6720 return LevelDom.wrapSVGAnimatedString(this._ptr.get$target()); |
| 6721 } |
| 6722 SVGAElementWrappingImplementation.prototype.get$className = function() { |
| 6723 return LevelDom.wrapSVGAnimatedString(this._ptr.get$className()); |
| 6724 } |
| 6725 SVGAElementWrappingImplementation.prototype.get$style = function() { |
| 6726 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 6727 } |
| 6728 // ********** Code for SVGAltGlyphDefElementWrappingImplementation *************
* |
| 6729 $inherits(SVGAltGlyphDefElementWrappingImplementation, SVGElementWrappingImpleme
ntation); |
| 6730 function SVGAltGlyphDefElementWrappingImplementation() {} |
| 6731 SVGAltGlyphDefElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6732 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6733 } |
| 6734 SVGAltGlyphDefElementWrappingImplementation._wrap$ctor.prototype = SVGAltGlyphDe
fElementWrappingImplementation.prototype; |
| 6735 SVGAltGlyphDefElementWrappingImplementation.prototype.is$html_html_Element = fun
ction(){return true}; |
| 6736 // ********** Code for SVGTextContentElementWrappingImplementation *************
* |
| 6737 $inherits(SVGTextContentElementWrappingImplementation, SVGElementWrappingImpleme
ntation); |
| 6738 function SVGTextContentElementWrappingImplementation() {} |
| 6739 SVGTextContentElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6740 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6741 } |
| 6742 SVGTextContentElementWrappingImplementation._wrap$ctor.prototype = SVGTextConten
tElementWrappingImplementation.prototype; |
| 6743 SVGTextContentElementWrappingImplementation.prototype.is$html_html_Element = fun
ction(){return true}; |
| 6744 SVGTextContentElementWrappingImplementation.prototype.get$className = function()
{ |
| 6745 return LevelDom.wrapSVGAnimatedString(this._ptr.get$className()); |
| 6746 } |
| 6747 SVGTextContentElementWrappingImplementation.prototype.get$style = function() { |
| 6748 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 6749 } |
| 6750 // ********** Code for SVGTextPositioningElementWrappingImplementation *********
***** |
| 6751 $inherits(SVGTextPositioningElementWrappingImplementation, SVGTextContentElement
WrappingImplementation); |
| 6752 function SVGTextPositioningElementWrappingImplementation() {} |
| 6753 SVGTextPositioningElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6754 SVGTextContentElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6755 } |
| 6756 SVGTextPositioningElementWrappingImplementation._wrap$ctor.prototype = SVGTextPo
sitioningElementWrappingImplementation.prototype; |
| 6757 SVGTextPositioningElementWrappingImplementation.prototype.is$html_html_Element =
function(){return true}; |
| 6758 SVGTextPositioningElementWrappingImplementation.prototype.get$x = function() { |
| 6759 return LevelDom.wrapSVGAnimatedLengthList(this._ptr.get$x()); |
| 6760 } |
| 6761 SVGTextPositioningElementWrappingImplementation.prototype.get$y = function() { |
| 6762 return LevelDom.wrapSVGAnimatedLengthList(this._ptr.get$y()); |
| 6763 } |
| 6764 // ********** Code for SVGAltGlyphElementWrappingImplementation ************** |
| 6765 $inherits(SVGAltGlyphElementWrappingImplementation, SVGTextPositioningElementWra
ppingImplementation); |
| 6766 function SVGAltGlyphElementWrappingImplementation() {} |
| 6767 SVGAltGlyphElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6768 SVGTextPositioningElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6769 } |
| 6770 SVGAltGlyphElementWrappingImplementation._wrap$ctor.prototype = SVGAltGlyphEleme
ntWrappingImplementation.prototype; |
| 6771 SVGAltGlyphElementWrappingImplementation.prototype.is$html_html_Element = functi
on(){return true}; |
| 6772 // ********** Code for SVGAltGlyphItemElementWrappingImplementation ************
** |
| 6773 $inherits(SVGAltGlyphItemElementWrappingImplementation, SVGElementWrappingImplem
entation); |
| 6774 function SVGAltGlyphItemElementWrappingImplementation() {} |
| 6775 SVGAltGlyphItemElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6776 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6777 } |
| 6778 SVGAltGlyphItemElementWrappingImplementation._wrap$ctor.prototype = SVGAltGlyphI
temElementWrappingImplementation.prototype; |
| 6779 SVGAltGlyphItemElementWrappingImplementation.prototype.is$html_html_Element = fu
nction(){return true}; |
| 6780 // ********** Code for SVGAnimationElementWrappingImplementation ************** |
| 6781 $inherits(SVGAnimationElementWrappingImplementation, SVGElementWrappingImplement
ation); |
| 6782 function SVGAnimationElementWrappingImplementation() {} |
| 6783 SVGAnimationElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6784 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6785 } |
| 6786 SVGAnimationElementWrappingImplementation._wrap$ctor.prototype = SVGAnimationEle
mentWrappingImplementation.prototype; |
| 6787 SVGAnimationElementWrappingImplementation.prototype.is$html_html_Element = funct
ion(){return true}; |
| 6788 // ********** Code for SVGAnimateColorElementWrappingImplementation ************
** |
| 6789 $inherits(SVGAnimateColorElementWrappingImplementation, SVGAnimationElementWrapp
ingImplementation); |
| 6790 function SVGAnimateColorElementWrappingImplementation() {} |
| 6791 SVGAnimateColorElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6792 SVGAnimationElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6793 } |
| 6794 SVGAnimateColorElementWrappingImplementation._wrap$ctor.prototype = SVGAnimateCo
lorElementWrappingImplementation.prototype; |
| 6795 SVGAnimateColorElementWrappingImplementation.prototype.is$html_html_Element = fu
nction(){return true}; |
| 6796 // ********** Code for SVGAnimateElementWrappingImplementation ************** |
| 6797 $inherits(SVGAnimateElementWrappingImplementation, SVGAnimationElementWrappingIm
plementation); |
| 6798 function SVGAnimateElementWrappingImplementation() {} |
| 6799 SVGAnimateElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6800 SVGAnimationElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6801 } |
| 6802 SVGAnimateElementWrappingImplementation._wrap$ctor.prototype = SVGAnimateElement
WrappingImplementation.prototype; |
| 6803 SVGAnimateElementWrappingImplementation.prototype.is$html_html_Element = functio
n(){return true}; |
| 6804 // ********** Code for SVGAnimateMotionElementWrappingImplementation ***********
*** |
| 6805 $inherits(SVGAnimateMotionElementWrappingImplementation, SVGAnimationElementWrap
pingImplementation); |
| 6806 function SVGAnimateMotionElementWrappingImplementation() {} |
| 6807 SVGAnimateMotionElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6808 SVGAnimationElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6809 } |
| 6810 SVGAnimateMotionElementWrappingImplementation._wrap$ctor.prototype = SVGAnimateM
otionElementWrappingImplementation.prototype; |
| 6811 SVGAnimateMotionElementWrappingImplementation.prototype.is$html_html_Element = f
unction(){return true}; |
| 6812 // ********** Code for SVGAnimateTransformElementWrappingImplementation ********
****** |
| 6813 $inherits(SVGAnimateTransformElementWrappingImplementation, SVGAnimationElementW
rappingImplementation); |
| 6814 function SVGAnimateTransformElementWrappingImplementation() {} |
| 6815 SVGAnimateTransformElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6816 SVGAnimationElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6817 } |
| 6818 SVGAnimateTransformElementWrappingImplementation._wrap$ctor.prototype = SVGAnima
teTransformElementWrappingImplementation.prototype; |
| 6819 SVGAnimateTransformElementWrappingImplementation.prototype.is$html_html_Element
= function(){return true}; |
| 6820 // ********** Code for SVGAnimatedEnumerationWrappingImplementation ************
** |
| 6821 $inherits(SVGAnimatedEnumerationWrappingImplementation, DOMWrapperBase); |
| 6822 function SVGAnimatedEnumerationWrappingImplementation() {} |
| 6823 SVGAnimatedEnumerationWrappingImplementation._wrap$ctor = function(ptr) { |
| 6824 DOMWrapperBase._wrap$ctor.call(this, ptr); |
| 6825 } |
| 6826 SVGAnimatedEnumerationWrappingImplementation._wrap$ctor.prototype = SVGAnimatedE
numerationWrappingImplementation.prototype; |
| 6827 SVGAnimatedEnumerationWrappingImplementation.prototype.get$baseVal = function()
{ |
| 6828 return this._ptr.get$baseVal(); |
| 6829 } |
| 6830 SVGAnimatedEnumerationWrappingImplementation.prototype.set$baseVal = function(va
lue) { |
| 6831 this._ptr.set$baseVal(value); |
| 6832 } |
| 6833 // ********** Code for SVGAnimatedLengthListWrappingImplementation *************
* |
| 6834 $inherits(SVGAnimatedLengthListWrappingImplementation, DOMWrapperBase); |
| 6835 function SVGAnimatedLengthListWrappingImplementation() {} |
| 6836 SVGAnimatedLengthListWrappingImplementation._wrap$ctor = function(ptr) { |
| 6837 DOMWrapperBase._wrap$ctor.call(this, ptr); |
| 6838 } |
| 6839 SVGAnimatedLengthListWrappingImplementation._wrap$ctor.prototype = SVGAnimatedLe
ngthListWrappingImplementation.prototype; |
| 6840 SVGAnimatedLengthListWrappingImplementation.prototype.get$baseVal = function() { |
| 6841 return LevelDom.wrapSVGLengthList(this._ptr.get$baseVal()); |
| 6842 } |
| 6843 // ********** Code for SVGAnimatedLengthWrappingImplementation ************** |
| 6844 $inherits(SVGAnimatedLengthWrappingImplementation, DOMWrapperBase); |
| 6845 function SVGAnimatedLengthWrappingImplementation() {} |
| 6846 SVGAnimatedLengthWrappingImplementation._wrap$ctor = function(ptr) { |
| 6847 DOMWrapperBase._wrap$ctor.call(this, ptr); |
| 6848 } |
| 6849 SVGAnimatedLengthWrappingImplementation._wrap$ctor.prototype = SVGAnimatedLength
WrappingImplementation.prototype; |
| 6850 SVGAnimatedLengthWrappingImplementation.prototype.get$baseVal = function() { |
| 6851 return LevelDom.wrapSVGLength(this._ptr.get$baseVal()); |
| 6852 } |
| 6853 // ********** Code for SVGAnimatedNumberWrappingImplementation ************** |
| 6854 $inherits(SVGAnimatedNumberWrappingImplementation, DOMWrapperBase); |
| 6855 function SVGAnimatedNumberWrappingImplementation() {} |
| 6856 SVGAnimatedNumberWrappingImplementation._wrap$ctor = function(ptr) { |
| 6857 DOMWrapperBase._wrap$ctor.call(this, ptr); |
| 6858 } |
| 6859 SVGAnimatedNumberWrappingImplementation._wrap$ctor.prototype = SVGAnimatedNumber
WrappingImplementation.prototype; |
| 6860 SVGAnimatedNumberWrappingImplementation.prototype.get$baseVal = function() { |
| 6861 return this._ptr.get$baseVal(); |
| 6862 } |
| 6863 SVGAnimatedNumberWrappingImplementation.prototype.set$baseVal = function(value)
{ |
| 6864 this._ptr.set$baseVal(value); |
| 6865 } |
| 6866 // ********** Code for SVGAnimatedStringWrappingImplementation ************** |
| 6867 $inherits(SVGAnimatedStringWrappingImplementation, DOMWrapperBase); |
| 6868 function SVGAnimatedStringWrappingImplementation() {} |
| 6869 SVGAnimatedStringWrappingImplementation._wrap$ctor = function(ptr) { |
| 6870 DOMWrapperBase._wrap$ctor.call(this, ptr); |
| 6871 } |
| 6872 SVGAnimatedStringWrappingImplementation._wrap$ctor.prototype = SVGAnimatedString
WrappingImplementation.prototype; |
| 6873 SVGAnimatedStringWrappingImplementation.prototype.get$baseVal = function() { |
| 6874 return this._ptr.get$baseVal(); |
| 6875 } |
| 6876 SVGAnimatedStringWrappingImplementation.prototype.set$baseVal = function(value)
{ |
| 6877 this._ptr.set$baseVal(value); |
| 6878 } |
| 6879 // ********** Code for SVGCircleElementWrappingImplementation ************** |
| 6880 $inherits(SVGCircleElementWrappingImplementation, SVGElementWrappingImplementati
on); |
| 6881 function SVGCircleElementWrappingImplementation() {} |
| 6882 SVGCircleElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6883 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6884 } |
| 6885 SVGCircleElementWrappingImplementation._wrap$ctor.prototype = SVGCircleElementWr
appingImplementation.prototype; |
| 6886 SVGCircleElementWrappingImplementation.prototype.is$html_html_Element = function
(){return true}; |
| 6887 SVGCircleElementWrappingImplementation.prototype.get$className = function() { |
| 6888 return LevelDom.wrapSVGAnimatedString(this._ptr.get$className()); |
| 6889 } |
| 6890 SVGCircleElementWrappingImplementation.prototype.get$style = function() { |
| 6891 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 6892 } |
| 6893 // ********** Code for SVGClipPathElementWrappingImplementation ************** |
| 6894 $inherits(SVGClipPathElementWrappingImplementation, SVGElementWrappingImplementa
tion); |
| 6895 function SVGClipPathElementWrappingImplementation() {} |
| 6896 SVGClipPathElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6897 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6898 } |
| 6899 SVGClipPathElementWrappingImplementation._wrap$ctor.prototype = SVGClipPathEleme
ntWrappingImplementation.prototype; |
| 6900 SVGClipPathElementWrappingImplementation.prototype.is$html_html_Element = functi
on(){return true}; |
| 6901 SVGClipPathElementWrappingImplementation.prototype.get$className = function() { |
| 6902 return LevelDom.wrapSVGAnimatedString(this._ptr.get$className()); |
| 6903 } |
| 6904 SVGClipPathElementWrappingImplementation.prototype.get$style = function() { |
| 6905 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 6906 } |
| 6907 // ********** Code for SVGComponentTransferFunctionElementWrappingImplementation
************** |
| 6908 $inherits(SVGComponentTransferFunctionElementWrappingImplementation, SVGElementW
rappingImplementation); |
| 6909 function SVGComponentTransferFunctionElementWrappingImplementation() {} |
| 6910 SVGComponentTransferFunctionElementWrappingImplementation._wrap$ctor = function(
ptr) { |
| 6911 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6912 } |
| 6913 SVGComponentTransferFunctionElementWrappingImplementation._wrap$ctor.prototype =
SVGComponentTransferFunctionElementWrappingImplementation.prototype; |
| 6914 SVGComponentTransferFunctionElementWrappingImplementation.prototype.is$html_html
_Element = function(){return true}; |
| 6915 SVGComponentTransferFunctionElementWrappingImplementation.prototype.get$offset =
function() { |
| 6916 return LevelDom.wrapSVGAnimatedNumber(this._ptr.get$offset()); |
| 6917 } |
| 6918 SVGComponentTransferFunctionElementWrappingImplementation.prototype.get$type = f
unction() { |
| 6919 return LevelDom.wrapSVGAnimatedEnumeration(this._ptr.get$type()); |
| 6920 } |
| 6921 // ********** Code for SVGCursorElementWrappingImplementation ************** |
| 6922 $inherits(SVGCursorElementWrappingImplementation, SVGElementWrappingImplementati
on); |
| 6923 function SVGCursorElementWrappingImplementation() {} |
| 6924 SVGCursorElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6925 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6926 } |
| 6927 SVGCursorElementWrappingImplementation._wrap$ctor.prototype = SVGCursorElementWr
appingImplementation.prototype; |
| 6928 SVGCursorElementWrappingImplementation.prototype.is$html_html_Element = function
(){return true}; |
| 6929 SVGCursorElementWrappingImplementation.prototype.get$x = function() { |
| 6930 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$x()); |
| 6931 } |
| 6932 SVGCursorElementWrappingImplementation.prototype.get$y = function() { |
| 6933 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$y()); |
| 6934 } |
| 6935 // ********** Code for SVGDefsElementWrappingImplementation ************** |
| 6936 $inherits(SVGDefsElementWrappingImplementation, SVGElementWrappingImplementation
); |
| 6937 function SVGDefsElementWrappingImplementation() {} |
| 6938 SVGDefsElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6939 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6940 } |
| 6941 SVGDefsElementWrappingImplementation._wrap$ctor.prototype = SVGDefsElementWrappi
ngImplementation.prototype; |
| 6942 SVGDefsElementWrappingImplementation.prototype.is$html_html_Element = function()
{return true}; |
| 6943 SVGDefsElementWrappingImplementation.prototype.get$className = function() { |
| 6944 return LevelDom.wrapSVGAnimatedString(this._ptr.get$className()); |
| 6945 } |
| 6946 SVGDefsElementWrappingImplementation.prototype.get$style = function() { |
| 6947 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 6948 } |
| 6949 // ********** Code for SVGDescElementWrappingImplementation ************** |
| 6950 $inherits(SVGDescElementWrappingImplementation, SVGElementWrappingImplementation
); |
| 6951 function SVGDescElementWrappingImplementation() {} |
| 6952 SVGDescElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6953 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6954 } |
| 6955 SVGDescElementWrappingImplementation._wrap$ctor.prototype = SVGDescElementWrappi
ngImplementation.prototype; |
| 6956 SVGDescElementWrappingImplementation.prototype.is$html_html_Element = function()
{return true}; |
| 6957 SVGDescElementWrappingImplementation.prototype.get$className = function() { |
| 6958 return LevelDom.wrapSVGAnimatedString(this._ptr.get$className()); |
| 6959 } |
| 6960 SVGDescElementWrappingImplementation.prototype.get$style = function() { |
| 6961 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 6962 } |
| 6963 // ********** Code for SVGElementInstanceListWrappingImplementation ************
** |
| 6964 $inherits(SVGElementInstanceListWrappingImplementation, DOMWrapperBase); |
| 6965 function SVGElementInstanceListWrappingImplementation() {} |
| 6966 SVGElementInstanceListWrappingImplementation._wrap$ctor = function(ptr) { |
| 6967 DOMWrapperBase._wrap$ctor.call(this, ptr); |
| 6968 } |
| 6969 SVGElementInstanceListWrappingImplementation._wrap$ctor.prototype = SVGElementIn
stanceListWrappingImplementation.prototype; |
| 6970 SVGElementInstanceListWrappingImplementation.prototype.get$length = function() { |
| 6971 return this._ptr.get$length(); |
| 6972 } |
| 6973 SVGElementInstanceListWrappingImplementation.prototype.item = function(index) { |
| 6974 return LevelDom.wrapSVGElementInstance(this._ptr.item$1(index)); |
| 6975 } |
| 6976 SVGElementInstanceListWrappingImplementation.prototype.item$1 = SVGElementInstan
ceListWrappingImplementation.prototype.item; |
| 6977 // ********** Code for SVGEllipseElementWrappingImplementation ************** |
| 6978 $inherits(SVGEllipseElementWrappingImplementation, SVGElementWrappingImplementat
ion); |
| 6979 function SVGEllipseElementWrappingImplementation() {} |
| 6980 SVGEllipseElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6981 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6982 } |
| 6983 SVGEllipseElementWrappingImplementation._wrap$ctor.prototype = SVGEllipseElement
WrappingImplementation.prototype; |
| 6984 SVGEllipseElementWrappingImplementation.prototype.is$html_html_Element = functio
n(){return true}; |
| 6985 SVGEllipseElementWrappingImplementation.prototype.get$className = function() { |
| 6986 return LevelDom.wrapSVGAnimatedString(this._ptr.get$className()); |
| 6987 } |
| 6988 SVGEllipseElementWrappingImplementation.prototype.get$style = function() { |
| 6989 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 6990 } |
| 6991 // ********** Code for SVGFEBlendElementWrappingImplementation ************** |
| 6992 $inherits(SVGFEBlendElementWrappingImplementation, SVGElementWrappingImplementat
ion); |
| 6993 function SVGFEBlendElementWrappingImplementation() {} |
| 6994 SVGFEBlendElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 6995 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 6996 } |
| 6997 SVGFEBlendElementWrappingImplementation._wrap$ctor.prototype = SVGFEBlendElement
WrappingImplementation.prototype; |
| 6998 SVGFEBlendElementWrappingImplementation.prototype.is$html_html_Element = functio
n(){return true}; |
| 6999 SVGFEBlendElementWrappingImplementation.prototype.get$height = function() { |
| 7000 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$height()); |
| 7001 } |
| 7002 SVGFEBlendElementWrappingImplementation.prototype.get$width = function() { |
| 7003 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$width()); |
| 7004 } |
| 7005 SVGFEBlendElementWrappingImplementation.prototype.get$x = function() { |
| 7006 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$x()); |
| 7007 } |
| 7008 SVGFEBlendElementWrappingImplementation.prototype.get$y = function() { |
| 7009 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$y()); |
| 7010 } |
| 7011 SVGFEBlendElementWrappingImplementation.prototype.get$className = function() { |
| 7012 return LevelDom.wrapSVGAnimatedString(this._ptr.get$className()); |
| 7013 } |
| 7014 SVGFEBlendElementWrappingImplementation.prototype.get$style = function() { |
| 7015 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 7016 } |
| 7017 // ********** Code for SVGFEColorMatrixElementWrappingImplementation ***********
*** |
| 7018 $inherits(SVGFEColorMatrixElementWrappingImplementation, SVGElementWrappingImple
mentation); |
| 7019 function SVGFEColorMatrixElementWrappingImplementation() {} |
| 7020 SVGFEColorMatrixElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7021 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7022 } |
| 7023 SVGFEColorMatrixElementWrappingImplementation._wrap$ctor.prototype = SVGFEColorM
atrixElementWrappingImplementation.prototype; |
| 7024 SVGFEColorMatrixElementWrappingImplementation.prototype.is$html_html_Element = f
unction(){return true}; |
| 7025 SVGFEColorMatrixElementWrappingImplementation.prototype.get$type = function() { |
| 7026 return LevelDom.wrapSVGAnimatedEnumeration(this._ptr.get$type()); |
| 7027 } |
| 7028 SVGFEColorMatrixElementWrappingImplementation.prototype.get$height = function()
{ |
| 7029 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$height()); |
| 7030 } |
| 7031 SVGFEColorMatrixElementWrappingImplementation.prototype.get$width = function() { |
| 7032 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$width()); |
| 7033 } |
| 7034 SVGFEColorMatrixElementWrappingImplementation.prototype.get$x = function() { |
| 7035 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$x()); |
| 7036 } |
| 7037 SVGFEColorMatrixElementWrappingImplementation.prototype.get$y = function() { |
| 7038 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$y()); |
| 7039 } |
| 7040 SVGFEColorMatrixElementWrappingImplementation.prototype.get$className = function
() { |
| 7041 return LevelDom.wrapSVGAnimatedString(this._ptr.get$className()); |
| 7042 } |
| 7043 SVGFEColorMatrixElementWrappingImplementation.prototype.get$style = function() { |
| 7044 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 7045 } |
| 7046 // ********** Code for SVGFEComponentTransferElementWrappingImplementation *****
********* |
| 7047 $inherits(SVGFEComponentTransferElementWrappingImplementation, SVGElementWrappin
gImplementation); |
| 7048 function SVGFEComponentTransferElementWrappingImplementation() {} |
| 7049 SVGFEComponentTransferElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7050 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7051 } |
| 7052 SVGFEComponentTransferElementWrappingImplementation._wrap$ctor.prototype = SVGFE
ComponentTransferElementWrappingImplementation.prototype; |
| 7053 SVGFEComponentTransferElementWrappingImplementation.prototype.is$html_html_Eleme
nt = function(){return true}; |
| 7054 SVGFEComponentTransferElementWrappingImplementation.prototype.get$height = funct
ion() { |
| 7055 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$height()); |
| 7056 } |
| 7057 SVGFEComponentTransferElementWrappingImplementation.prototype.get$width = functi
on() { |
| 7058 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$width()); |
| 7059 } |
| 7060 SVGFEComponentTransferElementWrappingImplementation.prototype.get$x = function()
{ |
| 7061 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$x()); |
| 7062 } |
| 7063 SVGFEComponentTransferElementWrappingImplementation.prototype.get$y = function()
{ |
| 7064 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$y()); |
| 7065 } |
| 7066 SVGFEComponentTransferElementWrappingImplementation.prototype.get$className = fu
nction() { |
| 7067 return LevelDom.wrapSVGAnimatedString(this._ptr.get$className()); |
| 7068 } |
| 7069 SVGFEComponentTransferElementWrappingImplementation.prototype.get$style = functi
on() { |
| 7070 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 7071 } |
| 7072 // ********** Code for SVGFEConvolveMatrixElementWrappingImplementation ********
****** |
| 7073 $inherits(SVGFEConvolveMatrixElementWrappingImplementation, SVGElementWrappingIm
plementation); |
| 7074 function SVGFEConvolveMatrixElementWrappingImplementation() {} |
| 7075 SVGFEConvolveMatrixElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7076 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7077 } |
| 7078 SVGFEConvolveMatrixElementWrappingImplementation._wrap$ctor.prototype = SVGFECon
volveMatrixElementWrappingImplementation.prototype; |
| 7079 SVGFEConvolveMatrixElementWrappingImplementation.prototype.is$html_html_Element
= function(){return true}; |
| 7080 SVGFEConvolveMatrixElementWrappingImplementation.prototype.get$height = function
() { |
| 7081 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$height()); |
| 7082 } |
| 7083 SVGFEConvolveMatrixElementWrappingImplementation.prototype.get$width = function(
) { |
| 7084 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$width()); |
| 7085 } |
| 7086 SVGFEConvolveMatrixElementWrappingImplementation.prototype.get$x = function() { |
| 7087 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$x()); |
| 7088 } |
| 7089 SVGFEConvolveMatrixElementWrappingImplementation.prototype.get$y = function() { |
| 7090 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$y()); |
| 7091 } |
| 7092 SVGFEConvolveMatrixElementWrappingImplementation.prototype.get$className = funct
ion() { |
| 7093 return LevelDom.wrapSVGAnimatedString(this._ptr.get$className()); |
| 7094 } |
| 7095 SVGFEConvolveMatrixElementWrappingImplementation.prototype.get$style = function(
) { |
| 7096 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 7097 } |
| 7098 // ********** Code for SVGFEDiffuseLightingElementWrappingImplementation *******
******* |
| 7099 $inherits(SVGFEDiffuseLightingElementWrappingImplementation, SVGElementWrappingI
mplementation); |
| 7100 function SVGFEDiffuseLightingElementWrappingImplementation() {} |
| 7101 SVGFEDiffuseLightingElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7102 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7103 } |
| 7104 SVGFEDiffuseLightingElementWrappingImplementation._wrap$ctor.prototype = SVGFEDi
ffuseLightingElementWrappingImplementation.prototype; |
| 7105 SVGFEDiffuseLightingElementWrappingImplementation.prototype.is$html_html_Element
= function(){return true}; |
| 7106 SVGFEDiffuseLightingElementWrappingImplementation.prototype.get$height = functio
n() { |
| 7107 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$height()); |
| 7108 } |
| 7109 SVGFEDiffuseLightingElementWrappingImplementation.prototype.get$width = function
() { |
| 7110 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$width()); |
| 7111 } |
| 7112 SVGFEDiffuseLightingElementWrappingImplementation.prototype.get$x = function() { |
| 7113 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$x()); |
| 7114 } |
| 7115 SVGFEDiffuseLightingElementWrappingImplementation.prototype.get$y = function() { |
| 7116 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$y()); |
| 7117 } |
| 7118 SVGFEDiffuseLightingElementWrappingImplementation.prototype.get$className = func
tion() { |
| 7119 return LevelDom.wrapSVGAnimatedString(this._ptr.get$className()); |
| 7120 } |
| 7121 SVGFEDiffuseLightingElementWrappingImplementation.prototype.get$style = function
() { |
| 7122 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 7123 } |
| 7124 // ********** Code for SVGFEDisplacementMapElementWrappingImplementation *******
******* |
| 7125 $inherits(SVGFEDisplacementMapElementWrappingImplementation, SVGElementWrappingI
mplementation); |
| 7126 function SVGFEDisplacementMapElementWrappingImplementation() {} |
| 7127 SVGFEDisplacementMapElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7128 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7129 } |
| 7130 SVGFEDisplacementMapElementWrappingImplementation._wrap$ctor.prototype = SVGFEDi
splacementMapElementWrappingImplementation.prototype; |
| 7131 SVGFEDisplacementMapElementWrappingImplementation.prototype.is$html_html_Element
= function(){return true}; |
| 7132 SVGFEDisplacementMapElementWrappingImplementation.prototype.get$height = functio
n() { |
| 7133 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$height()); |
| 7134 } |
| 7135 SVGFEDisplacementMapElementWrappingImplementation.prototype.get$width = function
() { |
| 7136 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$width()); |
| 7137 } |
| 7138 SVGFEDisplacementMapElementWrappingImplementation.prototype.get$x = function() { |
| 7139 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$x()); |
| 7140 } |
| 7141 SVGFEDisplacementMapElementWrappingImplementation.prototype.get$y = function() { |
| 7142 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$y()); |
| 7143 } |
| 7144 SVGFEDisplacementMapElementWrappingImplementation.prototype.get$className = func
tion() { |
| 7145 return LevelDom.wrapSVGAnimatedString(this._ptr.get$className()); |
| 7146 } |
| 7147 SVGFEDisplacementMapElementWrappingImplementation.prototype.get$style = function
() { |
| 7148 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 7149 } |
| 7150 // ********** Code for SVGFEDistantLightElementWrappingImplementation **********
**** |
| 7151 $inherits(SVGFEDistantLightElementWrappingImplementation, SVGElementWrappingImpl
ementation); |
| 7152 function SVGFEDistantLightElementWrappingImplementation() {} |
| 7153 SVGFEDistantLightElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7154 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7155 } |
| 7156 SVGFEDistantLightElementWrappingImplementation._wrap$ctor.prototype = SVGFEDista
ntLightElementWrappingImplementation.prototype; |
| 7157 SVGFEDistantLightElementWrappingImplementation.prototype.is$html_html_Element =
function(){return true}; |
| 7158 // ********** Code for SVGFEDropShadowElementWrappingImplementation ************
** |
| 7159 $inherits(SVGFEDropShadowElementWrappingImplementation, SVGElementWrappingImplem
entation); |
| 7160 function SVGFEDropShadowElementWrappingImplementation() {} |
| 7161 SVGFEDropShadowElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7162 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7163 } |
| 7164 SVGFEDropShadowElementWrappingImplementation._wrap$ctor.prototype = SVGFEDropSha
dowElementWrappingImplementation.prototype; |
| 7165 SVGFEDropShadowElementWrappingImplementation.prototype.is$html_html_Element = fu
nction(){return true}; |
| 7166 SVGFEDropShadowElementWrappingImplementation.prototype.get$height = function() { |
| 7167 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$height()); |
| 7168 } |
| 7169 SVGFEDropShadowElementWrappingImplementation.prototype.get$width = function() { |
| 7170 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$width()); |
| 7171 } |
| 7172 SVGFEDropShadowElementWrappingImplementation.prototype.get$x = function() { |
| 7173 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$x()); |
| 7174 } |
| 7175 SVGFEDropShadowElementWrappingImplementation.prototype.get$y = function() { |
| 7176 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$y()); |
| 7177 } |
| 7178 SVGFEDropShadowElementWrappingImplementation.prototype.get$className = function(
) { |
| 7179 return LevelDom.wrapSVGAnimatedString(this._ptr.get$className()); |
| 7180 } |
| 7181 SVGFEDropShadowElementWrappingImplementation.prototype.get$style = function() { |
| 7182 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 7183 } |
| 7184 // ********** Code for SVGFEFloodElementWrappingImplementation ************** |
| 7185 $inherits(SVGFEFloodElementWrappingImplementation, SVGElementWrappingImplementat
ion); |
| 7186 function SVGFEFloodElementWrappingImplementation() {} |
| 7187 SVGFEFloodElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7188 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7189 } |
| 7190 SVGFEFloodElementWrappingImplementation._wrap$ctor.prototype = SVGFEFloodElement
WrappingImplementation.prototype; |
| 7191 SVGFEFloodElementWrappingImplementation.prototype.is$html_html_Element = functio
n(){return true}; |
| 7192 SVGFEFloodElementWrappingImplementation.prototype.get$height = function() { |
| 7193 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$height()); |
| 7194 } |
| 7195 SVGFEFloodElementWrappingImplementation.prototype.get$width = function() { |
| 7196 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$width()); |
| 7197 } |
| 7198 SVGFEFloodElementWrappingImplementation.prototype.get$x = function() { |
| 7199 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$x()); |
| 7200 } |
| 7201 SVGFEFloodElementWrappingImplementation.prototype.get$y = function() { |
| 7202 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$y()); |
| 7203 } |
| 7204 SVGFEFloodElementWrappingImplementation.prototype.get$className = function() { |
| 7205 return LevelDom.wrapSVGAnimatedString(this._ptr.get$className()); |
| 7206 } |
| 7207 SVGFEFloodElementWrappingImplementation.prototype.get$style = function() { |
| 7208 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 7209 } |
| 7210 // ********** Code for SVGFEFuncAElementWrappingImplementation ************** |
| 7211 $inherits(SVGFEFuncAElementWrappingImplementation, SVGComponentTransferFunctionE
lementWrappingImplementation); |
| 7212 function SVGFEFuncAElementWrappingImplementation() {} |
| 7213 SVGFEFuncAElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7214 SVGComponentTransferFunctionElementWrappingImplementation._wrap$ctor.call(this
, ptr); |
| 7215 } |
| 7216 SVGFEFuncAElementWrappingImplementation._wrap$ctor.prototype = SVGFEFuncAElement
WrappingImplementation.prototype; |
| 7217 SVGFEFuncAElementWrappingImplementation.prototype.is$html_html_Element = functio
n(){return true}; |
| 7218 // ********** Code for SVGFEFuncBElementWrappingImplementation ************** |
| 7219 $inherits(SVGFEFuncBElementWrappingImplementation, SVGComponentTransferFunctionE
lementWrappingImplementation); |
| 7220 function SVGFEFuncBElementWrappingImplementation() {} |
| 7221 SVGFEFuncBElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7222 SVGComponentTransferFunctionElementWrappingImplementation._wrap$ctor.call(this
, ptr); |
| 7223 } |
| 7224 SVGFEFuncBElementWrappingImplementation._wrap$ctor.prototype = SVGFEFuncBElement
WrappingImplementation.prototype; |
| 7225 SVGFEFuncBElementWrappingImplementation.prototype.is$html_html_Element = functio
n(){return true}; |
| 7226 // ********** Code for SVGFEFuncGElementWrappingImplementation ************** |
| 7227 $inherits(SVGFEFuncGElementWrappingImplementation, SVGComponentTransferFunctionE
lementWrappingImplementation); |
| 7228 function SVGFEFuncGElementWrappingImplementation() {} |
| 7229 SVGFEFuncGElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7230 SVGComponentTransferFunctionElementWrappingImplementation._wrap$ctor.call(this
, ptr); |
| 7231 } |
| 7232 SVGFEFuncGElementWrappingImplementation._wrap$ctor.prototype = SVGFEFuncGElement
WrappingImplementation.prototype; |
| 7233 SVGFEFuncGElementWrappingImplementation.prototype.is$html_html_Element = functio
n(){return true}; |
| 7234 // ********** Code for SVGFEFuncRElementWrappingImplementation ************** |
| 7235 $inherits(SVGFEFuncRElementWrappingImplementation, SVGComponentTransferFunctionE
lementWrappingImplementation); |
| 7236 function SVGFEFuncRElementWrappingImplementation() {} |
| 7237 SVGFEFuncRElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7238 SVGComponentTransferFunctionElementWrappingImplementation._wrap$ctor.call(this
, ptr); |
| 7239 } |
| 7240 SVGFEFuncRElementWrappingImplementation._wrap$ctor.prototype = SVGFEFuncRElement
WrappingImplementation.prototype; |
| 7241 SVGFEFuncRElementWrappingImplementation.prototype.is$html_html_Element = functio
n(){return true}; |
| 7242 // ********** Code for SVGFEGaussianBlurElementWrappingImplementation **********
**** |
| 7243 $inherits(SVGFEGaussianBlurElementWrappingImplementation, SVGElementWrappingImpl
ementation); |
| 7244 function SVGFEGaussianBlurElementWrappingImplementation() {} |
| 7245 SVGFEGaussianBlurElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7246 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7247 } |
| 7248 SVGFEGaussianBlurElementWrappingImplementation._wrap$ctor.prototype = SVGFEGauss
ianBlurElementWrappingImplementation.prototype; |
| 7249 SVGFEGaussianBlurElementWrappingImplementation.prototype.is$html_html_Element =
function(){return true}; |
| 7250 SVGFEGaussianBlurElementWrappingImplementation.prototype.get$height = function()
{ |
| 7251 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$height()); |
| 7252 } |
| 7253 SVGFEGaussianBlurElementWrappingImplementation.prototype.get$width = function()
{ |
| 7254 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$width()); |
| 7255 } |
| 7256 SVGFEGaussianBlurElementWrappingImplementation.prototype.get$x = function() { |
| 7257 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$x()); |
| 7258 } |
| 7259 SVGFEGaussianBlurElementWrappingImplementation.prototype.get$y = function() { |
| 7260 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$y()); |
| 7261 } |
| 7262 SVGFEGaussianBlurElementWrappingImplementation.prototype.get$className = functio
n() { |
| 7263 return LevelDom.wrapSVGAnimatedString(this._ptr.get$className()); |
| 7264 } |
| 7265 SVGFEGaussianBlurElementWrappingImplementation.prototype.get$style = function()
{ |
| 7266 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 7267 } |
| 7268 // ********** Code for SVGFEImageElementWrappingImplementation ************** |
| 7269 $inherits(SVGFEImageElementWrappingImplementation, SVGElementWrappingImplementat
ion); |
| 7270 function SVGFEImageElementWrappingImplementation() {} |
| 7271 SVGFEImageElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7272 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7273 } |
| 7274 SVGFEImageElementWrappingImplementation._wrap$ctor.prototype = SVGFEImageElement
WrappingImplementation.prototype; |
| 7275 SVGFEImageElementWrappingImplementation.prototype.is$html_html_Element = functio
n(){return true}; |
| 7276 SVGFEImageElementWrappingImplementation.prototype.get$height = function() { |
| 7277 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$height()); |
| 7278 } |
| 7279 SVGFEImageElementWrappingImplementation.prototype.get$width = function() { |
| 7280 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$width()); |
| 7281 } |
| 7282 SVGFEImageElementWrappingImplementation.prototype.get$x = function() { |
| 7283 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$x()); |
| 7284 } |
| 7285 SVGFEImageElementWrappingImplementation.prototype.get$y = function() { |
| 7286 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$y()); |
| 7287 } |
| 7288 SVGFEImageElementWrappingImplementation.prototype.get$className = function() { |
| 7289 return LevelDom.wrapSVGAnimatedString(this._ptr.get$className()); |
| 7290 } |
| 7291 SVGFEImageElementWrappingImplementation.prototype.get$style = function() { |
| 7292 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 7293 } |
| 7294 // ********** Code for SVGFEMergeElementWrappingImplementation ************** |
| 7295 $inherits(SVGFEMergeElementWrappingImplementation, SVGElementWrappingImplementat
ion); |
| 7296 function SVGFEMergeElementWrappingImplementation() {} |
| 7297 SVGFEMergeElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7298 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7299 } |
| 7300 SVGFEMergeElementWrappingImplementation._wrap$ctor.prototype = SVGFEMergeElement
WrappingImplementation.prototype; |
| 7301 SVGFEMergeElementWrappingImplementation.prototype.is$html_html_Element = functio
n(){return true}; |
| 7302 SVGFEMergeElementWrappingImplementation.prototype.get$height = function() { |
| 7303 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$height()); |
| 7304 } |
| 7305 SVGFEMergeElementWrappingImplementation.prototype.get$width = function() { |
| 7306 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$width()); |
| 7307 } |
| 7308 SVGFEMergeElementWrappingImplementation.prototype.get$x = function() { |
| 7309 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$x()); |
| 7310 } |
| 7311 SVGFEMergeElementWrappingImplementation.prototype.get$y = function() { |
| 7312 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$y()); |
| 7313 } |
| 7314 SVGFEMergeElementWrappingImplementation.prototype.get$className = function() { |
| 7315 return LevelDom.wrapSVGAnimatedString(this._ptr.get$className()); |
| 7316 } |
| 7317 SVGFEMergeElementWrappingImplementation.prototype.get$style = function() { |
| 7318 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 7319 } |
| 7320 // ********** Code for SVGFEMergeNodeElementWrappingImplementation *************
* |
| 7321 $inherits(SVGFEMergeNodeElementWrappingImplementation, SVGElementWrappingImpleme
ntation); |
| 7322 function SVGFEMergeNodeElementWrappingImplementation() {} |
| 7323 SVGFEMergeNodeElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7324 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7325 } |
| 7326 SVGFEMergeNodeElementWrappingImplementation._wrap$ctor.prototype = SVGFEMergeNod
eElementWrappingImplementation.prototype; |
| 7327 SVGFEMergeNodeElementWrappingImplementation.prototype.is$html_html_Element = fun
ction(){return true}; |
| 7328 // ********** Code for SVGFEOffsetElementWrappingImplementation ************** |
| 7329 $inherits(SVGFEOffsetElementWrappingImplementation, SVGElementWrappingImplementa
tion); |
| 7330 function SVGFEOffsetElementWrappingImplementation() {} |
| 7331 SVGFEOffsetElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7332 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7333 } |
| 7334 SVGFEOffsetElementWrappingImplementation._wrap$ctor.prototype = SVGFEOffsetEleme
ntWrappingImplementation.prototype; |
| 7335 SVGFEOffsetElementWrappingImplementation.prototype.is$html_html_Element = functi
on(){return true}; |
| 7336 SVGFEOffsetElementWrappingImplementation.prototype.get$height = function() { |
| 7337 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$height()); |
| 7338 } |
| 7339 SVGFEOffsetElementWrappingImplementation.prototype.get$width = function() { |
| 7340 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$width()); |
| 7341 } |
| 7342 SVGFEOffsetElementWrappingImplementation.prototype.get$x = function() { |
| 7343 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$x()); |
| 7344 } |
| 7345 SVGFEOffsetElementWrappingImplementation.prototype.get$y = function() { |
| 7346 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$y()); |
| 7347 } |
| 7348 SVGFEOffsetElementWrappingImplementation.prototype.get$className = function() { |
| 7349 return LevelDom.wrapSVGAnimatedString(this._ptr.get$className()); |
| 7350 } |
| 7351 SVGFEOffsetElementWrappingImplementation.prototype.get$style = function() { |
| 7352 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 7353 } |
| 7354 // ********** Code for SVGFEPointLightElementWrappingImplementation ************
** |
| 7355 $inherits(SVGFEPointLightElementWrappingImplementation, SVGElementWrappingImplem
entation); |
| 7356 function SVGFEPointLightElementWrappingImplementation() {} |
| 7357 SVGFEPointLightElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7358 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7359 } |
| 7360 SVGFEPointLightElementWrappingImplementation._wrap$ctor.prototype = SVGFEPointLi
ghtElementWrappingImplementation.prototype; |
| 7361 SVGFEPointLightElementWrappingImplementation.prototype.is$html_html_Element = fu
nction(){return true}; |
| 7362 SVGFEPointLightElementWrappingImplementation.prototype.get$x = function() { |
| 7363 return LevelDom.wrapSVGAnimatedNumber(this._ptr.get$x()); |
| 7364 } |
| 7365 SVGFEPointLightElementWrappingImplementation.prototype.get$y = function() { |
| 7366 return LevelDom.wrapSVGAnimatedNumber(this._ptr.get$y()); |
| 7367 } |
| 7368 // ********** Code for SVGFESpecularLightingElementWrappingImplementation ******
******** |
| 7369 $inherits(SVGFESpecularLightingElementWrappingImplementation, SVGElementWrapping
Implementation); |
| 7370 function SVGFESpecularLightingElementWrappingImplementation() {} |
| 7371 SVGFESpecularLightingElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7372 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7373 } |
| 7374 SVGFESpecularLightingElementWrappingImplementation._wrap$ctor.prototype = SVGFES
pecularLightingElementWrappingImplementation.prototype; |
| 7375 SVGFESpecularLightingElementWrappingImplementation.prototype.is$html_html_Elemen
t = function(){return true}; |
| 7376 SVGFESpecularLightingElementWrappingImplementation.prototype.get$height = functi
on() { |
| 7377 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$height()); |
| 7378 } |
| 7379 SVGFESpecularLightingElementWrappingImplementation.prototype.get$width = functio
n() { |
| 7380 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$width()); |
| 7381 } |
| 7382 SVGFESpecularLightingElementWrappingImplementation.prototype.get$x = function()
{ |
| 7383 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$x()); |
| 7384 } |
| 7385 SVGFESpecularLightingElementWrappingImplementation.prototype.get$y = function()
{ |
| 7386 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$y()); |
| 7387 } |
| 7388 SVGFESpecularLightingElementWrappingImplementation.prototype.get$className = fun
ction() { |
| 7389 return LevelDom.wrapSVGAnimatedString(this._ptr.get$className()); |
| 7390 } |
| 7391 SVGFESpecularLightingElementWrappingImplementation.prototype.get$style = functio
n() { |
| 7392 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 7393 } |
| 7394 // ********** Code for SVGFESpotLightElementWrappingImplementation *************
* |
| 7395 $inherits(SVGFESpotLightElementWrappingImplementation, SVGElementWrappingImpleme
ntation); |
| 7396 function SVGFESpotLightElementWrappingImplementation() {} |
| 7397 SVGFESpotLightElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7398 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7399 } |
| 7400 SVGFESpotLightElementWrappingImplementation._wrap$ctor.prototype = SVGFESpotLigh
tElementWrappingImplementation.prototype; |
| 7401 SVGFESpotLightElementWrappingImplementation.prototype.is$html_html_Element = fun
ction(){return true}; |
| 7402 SVGFESpotLightElementWrappingImplementation.prototype.get$x = function() { |
| 7403 return LevelDom.wrapSVGAnimatedNumber(this._ptr.get$x()); |
| 7404 } |
| 7405 SVGFESpotLightElementWrappingImplementation.prototype.get$y = function() { |
| 7406 return LevelDom.wrapSVGAnimatedNumber(this._ptr.get$y()); |
| 7407 } |
| 7408 // ********** Code for SVGFETileElementWrappingImplementation ************** |
| 7409 $inherits(SVGFETileElementWrappingImplementation, SVGElementWrappingImplementati
on); |
| 7410 function SVGFETileElementWrappingImplementation() {} |
| 7411 SVGFETileElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7412 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7413 } |
| 7414 SVGFETileElementWrappingImplementation._wrap$ctor.prototype = SVGFETileElementWr
appingImplementation.prototype; |
| 7415 SVGFETileElementWrappingImplementation.prototype.is$html_html_Element = function
(){return true}; |
| 7416 SVGFETileElementWrappingImplementation.prototype.get$height = function() { |
| 7417 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$height()); |
| 7418 } |
| 7419 SVGFETileElementWrappingImplementation.prototype.get$width = function() { |
| 7420 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$width()); |
| 7421 } |
| 7422 SVGFETileElementWrappingImplementation.prototype.get$x = function() { |
| 7423 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$x()); |
| 7424 } |
| 7425 SVGFETileElementWrappingImplementation.prototype.get$y = function() { |
| 7426 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$y()); |
| 7427 } |
| 7428 SVGFETileElementWrappingImplementation.prototype.get$className = function() { |
| 7429 return LevelDom.wrapSVGAnimatedString(this._ptr.get$className()); |
| 7430 } |
| 7431 SVGFETileElementWrappingImplementation.prototype.get$style = function() { |
| 7432 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 7433 } |
| 7434 // ********** Code for SVGFETurbulenceElementWrappingImplementation ************
** |
| 7435 $inherits(SVGFETurbulenceElementWrappingImplementation, SVGElementWrappingImplem
entation); |
| 7436 function SVGFETurbulenceElementWrappingImplementation() {} |
| 7437 SVGFETurbulenceElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7438 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7439 } |
| 7440 SVGFETurbulenceElementWrappingImplementation._wrap$ctor.prototype = SVGFETurbule
nceElementWrappingImplementation.prototype; |
| 7441 SVGFETurbulenceElementWrappingImplementation.prototype.is$html_html_Element = fu
nction(){return true}; |
| 7442 SVGFETurbulenceElementWrappingImplementation.prototype.get$type = function() { |
| 7443 return LevelDom.wrapSVGAnimatedEnumeration(this._ptr.get$type()); |
| 7444 } |
| 7445 SVGFETurbulenceElementWrappingImplementation.prototype.get$height = function() { |
| 7446 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$height()); |
| 7447 } |
| 7448 SVGFETurbulenceElementWrappingImplementation.prototype.get$width = function() { |
| 7449 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$width()); |
| 7450 } |
| 7451 SVGFETurbulenceElementWrappingImplementation.prototype.get$x = function() { |
| 7452 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$x()); |
| 7453 } |
| 7454 SVGFETurbulenceElementWrappingImplementation.prototype.get$y = function() { |
| 7455 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$y()); |
| 7456 } |
| 7457 SVGFETurbulenceElementWrappingImplementation.prototype.get$className = function(
) { |
| 7458 return LevelDom.wrapSVGAnimatedString(this._ptr.get$className()); |
| 7459 } |
| 7460 SVGFETurbulenceElementWrappingImplementation.prototype.get$style = function() { |
| 7461 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 7462 } |
| 7463 // ********** Code for SVGFilterElementWrappingImplementation ************** |
| 7464 $inherits(SVGFilterElementWrappingImplementation, SVGElementWrappingImplementati
on); |
| 7465 function SVGFilterElementWrappingImplementation() {} |
| 7466 SVGFilterElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7467 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7468 } |
| 7469 SVGFilterElementWrappingImplementation._wrap$ctor.prototype = SVGFilterElementWr
appingImplementation.prototype; |
| 7470 SVGFilterElementWrappingImplementation.prototype.is$html_html_Element = function
(){return true}; |
| 7471 SVGFilterElementWrappingImplementation.prototype.get$height = function() { |
| 7472 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$height()); |
| 7473 } |
| 7474 SVGFilterElementWrappingImplementation.prototype.get$width = function() { |
| 7475 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$width()); |
| 7476 } |
| 7477 SVGFilterElementWrappingImplementation.prototype.get$x = function() { |
| 7478 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$x()); |
| 7479 } |
| 7480 SVGFilterElementWrappingImplementation.prototype.get$y = function() { |
| 7481 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$y()); |
| 7482 } |
| 7483 SVGFilterElementWrappingImplementation.prototype.get$className = function() { |
| 7484 return LevelDom.wrapSVGAnimatedString(this._ptr.get$className()); |
| 7485 } |
| 7486 SVGFilterElementWrappingImplementation.prototype.get$style = function() { |
| 7487 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 7488 } |
| 7489 // ********** Code for SVGFontElementWrappingImplementation ************** |
| 7490 $inherits(SVGFontElementWrappingImplementation, SVGElementWrappingImplementation
); |
| 7491 function SVGFontElementWrappingImplementation() {} |
| 7492 SVGFontElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7493 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7494 } |
| 7495 SVGFontElementWrappingImplementation._wrap$ctor.prototype = SVGFontElementWrappi
ngImplementation.prototype; |
| 7496 SVGFontElementWrappingImplementation.prototype.is$html_html_Element = function()
{return true}; |
| 7497 // ********** Code for SVGFontFaceElementWrappingImplementation ************** |
| 7498 $inherits(SVGFontFaceElementWrappingImplementation, SVGElementWrappingImplementa
tion); |
| 7499 function SVGFontFaceElementWrappingImplementation() {} |
| 7500 SVGFontFaceElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7501 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7502 } |
| 7503 SVGFontFaceElementWrappingImplementation._wrap$ctor.prototype = SVGFontFaceEleme
ntWrappingImplementation.prototype; |
| 7504 SVGFontFaceElementWrappingImplementation.prototype.is$html_html_Element = functi
on(){return true}; |
| 7505 // ********** Code for SVGFontFaceFormatElementWrappingImplementation **********
**** |
| 7506 $inherits(SVGFontFaceFormatElementWrappingImplementation, SVGElementWrappingImpl
ementation); |
| 7507 function SVGFontFaceFormatElementWrappingImplementation() {} |
| 7508 SVGFontFaceFormatElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7509 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7510 } |
| 7511 SVGFontFaceFormatElementWrappingImplementation._wrap$ctor.prototype = SVGFontFac
eFormatElementWrappingImplementation.prototype; |
| 7512 SVGFontFaceFormatElementWrappingImplementation.prototype.is$html_html_Element =
function(){return true}; |
| 7513 // ********** Code for SVGFontFaceNameElementWrappingImplementation ************
** |
| 7514 $inherits(SVGFontFaceNameElementWrappingImplementation, SVGElementWrappingImplem
entation); |
| 7515 function SVGFontFaceNameElementWrappingImplementation() {} |
| 7516 SVGFontFaceNameElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7517 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7518 } |
| 7519 SVGFontFaceNameElementWrappingImplementation._wrap$ctor.prototype = SVGFontFaceN
ameElementWrappingImplementation.prototype; |
| 7520 SVGFontFaceNameElementWrappingImplementation.prototype.is$html_html_Element = fu
nction(){return true}; |
| 7521 // ********** Code for SVGFontFaceSrcElementWrappingImplementation *************
* |
| 7522 $inherits(SVGFontFaceSrcElementWrappingImplementation, SVGElementWrappingImpleme
ntation); |
| 7523 function SVGFontFaceSrcElementWrappingImplementation() {} |
| 7524 SVGFontFaceSrcElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7525 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7526 } |
| 7527 SVGFontFaceSrcElementWrappingImplementation._wrap$ctor.prototype = SVGFontFaceSr
cElementWrappingImplementation.prototype; |
| 7528 SVGFontFaceSrcElementWrappingImplementation.prototype.is$html_html_Element = fun
ction(){return true}; |
| 7529 // ********** Code for SVGFontFaceUriElementWrappingImplementation *************
* |
| 7530 $inherits(SVGFontFaceUriElementWrappingImplementation, SVGElementWrappingImpleme
ntation); |
| 7531 function SVGFontFaceUriElementWrappingImplementation() {} |
| 7532 SVGFontFaceUriElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7533 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7534 } |
| 7535 SVGFontFaceUriElementWrappingImplementation._wrap$ctor.prototype = SVGFontFaceUr
iElementWrappingImplementation.prototype; |
| 7536 SVGFontFaceUriElementWrappingImplementation.prototype.is$html_html_Element = fun
ction(){return true}; |
| 7537 // ********** Code for SVGForeignObjectElementWrappingImplementation ***********
*** |
| 7538 $inherits(SVGForeignObjectElementWrappingImplementation, SVGElementWrappingImple
mentation); |
| 7539 function SVGForeignObjectElementWrappingImplementation() {} |
| 7540 SVGForeignObjectElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7541 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7542 } |
| 7543 SVGForeignObjectElementWrappingImplementation._wrap$ctor.prototype = SVGForeignO
bjectElementWrappingImplementation.prototype; |
| 7544 SVGForeignObjectElementWrappingImplementation.prototype.is$html_html_Element = f
unction(){return true}; |
| 7545 SVGForeignObjectElementWrappingImplementation.prototype.get$height = function()
{ |
| 7546 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$height()); |
| 7547 } |
| 7548 SVGForeignObjectElementWrappingImplementation.prototype.get$width = function() { |
| 7549 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$width()); |
| 7550 } |
| 7551 SVGForeignObjectElementWrappingImplementation.prototype.get$x = function() { |
| 7552 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$x()); |
| 7553 } |
| 7554 SVGForeignObjectElementWrappingImplementation.prototype.get$y = function() { |
| 7555 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$y()); |
| 7556 } |
| 7557 SVGForeignObjectElementWrappingImplementation.prototype.get$className = function
() { |
| 7558 return LevelDom.wrapSVGAnimatedString(this._ptr.get$className()); |
| 7559 } |
| 7560 SVGForeignObjectElementWrappingImplementation.prototype.get$style = function() { |
| 7561 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 7562 } |
| 7563 // ********** Code for SVGGElementWrappingImplementation ************** |
| 7564 $inherits(SVGGElementWrappingImplementation, SVGElementWrappingImplementation); |
| 7565 function SVGGElementWrappingImplementation() {} |
| 7566 SVGGElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7567 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7568 } |
| 7569 SVGGElementWrappingImplementation._wrap$ctor.prototype = SVGGElementWrappingImpl
ementation.prototype; |
| 7570 SVGGElementWrappingImplementation.prototype.is$html_html_Element = function(){re
turn true}; |
| 7571 SVGGElementWrappingImplementation.prototype.get$className = function() { |
| 7572 return LevelDom.wrapSVGAnimatedString(this._ptr.get$className()); |
| 7573 } |
| 7574 SVGGElementWrappingImplementation.prototype.get$style = function() { |
| 7575 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 7576 } |
| 7577 // ********** Code for SVGGlyphElementWrappingImplementation ************** |
| 7578 $inherits(SVGGlyphElementWrappingImplementation, SVGElementWrappingImplementatio
n); |
| 7579 function SVGGlyphElementWrappingImplementation() {} |
| 7580 SVGGlyphElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7581 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7582 } |
| 7583 SVGGlyphElementWrappingImplementation._wrap$ctor.prototype = SVGGlyphElementWrap
pingImplementation.prototype; |
| 7584 SVGGlyphElementWrappingImplementation.prototype.is$html_html_Element = function(
){return true}; |
| 7585 // ********** Code for SVGGlyphRefElementWrappingImplementation ************** |
| 7586 $inherits(SVGGlyphRefElementWrappingImplementation, SVGElementWrappingImplementa
tion); |
| 7587 function SVGGlyphRefElementWrappingImplementation() {} |
| 7588 SVGGlyphRefElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7589 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7590 } |
| 7591 SVGGlyphRefElementWrappingImplementation._wrap$ctor.prototype = SVGGlyphRefEleme
ntWrappingImplementation.prototype; |
| 7592 SVGGlyphRefElementWrappingImplementation.prototype.is$html_html_Element = functi
on(){return true}; |
| 7593 SVGGlyphRefElementWrappingImplementation.prototype.get$x = function() { |
| 7594 return this._ptr.get$x(); |
| 7595 } |
| 7596 SVGGlyphRefElementWrappingImplementation.prototype.get$y = function() { |
| 7597 return this._ptr.get$y(); |
| 7598 } |
| 7599 SVGGlyphRefElementWrappingImplementation.prototype.get$className = function() { |
| 7600 return LevelDom.wrapSVGAnimatedString(this._ptr.get$className()); |
| 7601 } |
| 7602 SVGGlyphRefElementWrappingImplementation.prototype.get$style = function() { |
| 7603 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 7604 } |
| 7605 // ********** Code for SVGGradientElementWrappingImplementation ************** |
| 7606 $inherits(SVGGradientElementWrappingImplementation, SVGElementWrappingImplementa
tion); |
| 7607 function SVGGradientElementWrappingImplementation() {} |
| 7608 SVGGradientElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7609 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7610 } |
| 7611 SVGGradientElementWrappingImplementation._wrap$ctor.prototype = SVGGradientEleme
ntWrappingImplementation.prototype; |
| 7612 SVGGradientElementWrappingImplementation.prototype.is$html_html_Element = functi
on(){return true}; |
| 7613 SVGGradientElementWrappingImplementation.prototype.get$className = function() { |
| 7614 return LevelDom.wrapSVGAnimatedString(this._ptr.get$className()); |
| 7615 } |
| 7616 SVGGradientElementWrappingImplementation.prototype.get$style = function() { |
| 7617 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 7618 } |
| 7619 // ********** Code for SVGHKernElementWrappingImplementation ************** |
| 7620 $inherits(SVGHKernElementWrappingImplementation, SVGElementWrappingImplementatio
n); |
| 7621 function SVGHKernElementWrappingImplementation() {} |
| 7622 SVGHKernElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7623 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7624 } |
| 7625 SVGHKernElementWrappingImplementation._wrap$ctor.prototype = SVGHKernElementWrap
pingImplementation.prototype; |
| 7626 SVGHKernElementWrappingImplementation.prototype.is$html_html_Element = function(
){return true}; |
| 7627 // ********** Code for SVGImageElementWrappingImplementation ************** |
| 7628 $inherits(SVGImageElementWrappingImplementation, SVGElementWrappingImplementatio
n); |
| 7629 function SVGImageElementWrappingImplementation() {} |
| 7630 SVGImageElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7631 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7632 } |
| 7633 SVGImageElementWrappingImplementation._wrap$ctor.prototype = SVGImageElementWrap
pingImplementation.prototype; |
| 7634 SVGImageElementWrappingImplementation.prototype.is$html_html_Element = function(
){return true}; |
| 7635 SVGImageElementWrappingImplementation.prototype.get$height = function() { |
| 7636 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$height()); |
| 7637 } |
| 7638 SVGImageElementWrappingImplementation.prototype.get$width = function() { |
| 7639 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$width()); |
| 7640 } |
| 7641 SVGImageElementWrappingImplementation.prototype.get$x = function() { |
| 7642 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$x()); |
| 7643 } |
| 7644 SVGImageElementWrappingImplementation.prototype.get$y = function() { |
| 7645 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$y()); |
| 7646 } |
| 7647 SVGImageElementWrappingImplementation.prototype.get$className = function() { |
| 7648 return LevelDom.wrapSVGAnimatedString(this._ptr.get$className()); |
| 7649 } |
| 7650 SVGImageElementWrappingImplementation.prototype.get$style = function() { |
| 7651 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 7652 } |
| 7653 // ********** Code for SVGLengthListWrappingImplementation ************** |
| 7654 $inherits(SVGLengthListWrappingImplementation, DOMWrapperBase); |
| 7655 function SVGLengthListWrappingImplementation() {} |
| 7656 SVGLengthListWrappingImplementation._wrap$ctor = function(ptr) { |
| 7657 DOMWrapperBase._wrap$ctor.call(this, ptr); |
| 7658 } |
| 7659 SVGLengthListWrappingImplementation._wrap$ctor.prototype = SVGLengthListWrapping
Implementation.prototype; |
| 7660 SVGLengthListWrappingImplementation.prototype.clear = function() { |
| 7661 this._ptr.clear$0(); |
| 7662 return; |
| 7663 } |
| 7664 SVGLengthListWrappingImplementation.prototype.get$clear = function() { |
| 7665 return this.clear.bind(this); |
| 7666 } |
| 7667 SVGLengthListWrappingImplementation.prototype.clear$0 = SVGLengthListWrappingImp
lementation.prototype.clear; |
| 7668 // ********** Code for SVGLengthWrappingImplementation ************** |
| 7669 $inherits(SVGLengthWrappingImplementation, DOMWrapperBase); |
| 7670 function SVGLengthWrappingImplementation() {} |
| 7671 SVGLengthWrappingImplementation._wrap$ctor = function(ptr) { |
| 7672 DOMWrapperBase._wrap$ctor.call(this, ptr); |
| 7673 } |
| 7674 SVGLengthWrappingImplementation._wrap$ctor.prototype = SVGLengthWrappingImplemen
tation.prototype; |
| 7675 SVGLengthWrappingImplementation.prototype.get$value = function() { |
| 7676 return this._ptr.get$value(); |
| 7677 } |
| 7678 SVGLengthWrappingImplementation.prototype.set$value = function(value) { |
| 7679 this._ptr.set$value(value); |
| 7680 } |
| 7681 // ********** Code for SVGLineElementWrappingImplementation ************** |
| 7682 $inherits(SVGLineElementWrappingImplementation, SVGElementWrappingImplementation
); |
| 7683 function SVGLineElementWrappingImplementation() {} |
| 7684 SVGLineElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7685 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7686 } |
| 7687 SVGLineElementWrappingImplementation._wrap$ctor.prototype = SVGLineElementWrappi
ngImplementation.prototype; |
| 7688 SVGLineElementWrappingImplementation.prototype.is$html_html_Element = function()
{return true}; |
| 7689 SVGLineElementWrappingImplementation.prototype.get$className = function() { |
| 7690 return LevelDom.wrapSVGAnimatedString(this._ptr.get$className()); |
| 7691 } |
| 7692 SVGLineElementWrappingImplementation.prototype.get$style = function() { |
| 7693 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 7694 } |
| 7695 // ********** Code for SVGLinearGradientElementWrappingImplementation **********
**** |
| 7696 $inherits(SVGLinearGradientElementWrappingImplementation, SVGGradientElementWrap
pingImplementation); |
| 7697 function SVGLinearGradientElementWrappingImplementation() {} |
| 7698 SVGLinearGradientElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7699 SVGGradientElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7700 } |
| 7701 SVGLinearGradientElementWrappingImplementation._wrap$ctor.prototype = SVGLinearG
radientElementWrappingImplementation.prototype; |
| 7702 SVGLinearGradientElementWrappingImplementation.prototype.is$html_html_Element =
function(){return true}; |
| 7703 // ********** Code for SVGMPathElementWrappingImplementation ************** |
| 7704 $inherits(SVGMPathElementWrappingImplementation, SVGElementWrappingImplementatio
n); |
| 7705 function SVGMPathElementWrappingImplementation() {} |
| 7706 SVGMPathElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7707 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7708 } |
| 7709 SVGMPathElementWrappingImplementation._wrap$ctor.prototype = SVGMPathElementWrap
pingImplementation.prototype; |
| 7710 SVGMPathElementWrappingImplementation.prototype.is$html_html_Element = function(
){return true}; |
| 7711 // ********** Code for SVGMarkerElementWrappingImplementation ************** |
| 7712 $inherits(SVGMarkerElementWrappingImplementation, SVGElementWrappingImplementati
on); |
| 7713 function SVGMarkerElementWrappingImplementation() {} |
| 7714 SVGMarkerElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7715 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7716 } |
| 7717 SVGMarkerElementWrappingImplementation._wrap$ctor.prototype = SVGMarkerElementWr
appingImplementation.prototype; |
| 7718 SVGMarkerElementWrappingImplementation.prototype.is$html_html_Element = function
(){return true}; |
| 7719 SVGMarkerElementWrappingImplementation.prototype.get$className = function() { |
| 7720 return LevelDom.wrapSVGAnimatedString(this._ptr.get$className()); |
| 7721 } |
| 7722 SVGMarkerElementWrappingImplementation.prototype.get$style = function() { |
| 7723 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 7724 } |
| 7725 // ********** Code for SVGMaskElementWrappingImplementation ************** |
| 7726 $inherits(SVGMaskElementWrappingImplementation, SVGElementWrappingImplementation
); |
| 7727 function SVGMaskElementWrappingImplementation() {} |
| 7728 SVGMaskElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7729 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7730 } |
| 7731 SVGMaskElementWrappingImplementation._wrap$ctor.prototype = SVGMaskElementWrappi
ngImplementation.prototype; |
| 7732 SVGMaskElementWrappingImplementation.prototype.is$html_html_Element = function()
{return true}; |
| 7733 SVGMaskElementWrappingImplementation.prototype.get$height = function() { |
| 7734 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$height()); |
| 7735 } |
| 7736 SVGMaskElementWrappingImplementation.prototype.get$width = function() { |
| 7737 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$width()); |
| 7738 } |
| 7739 SVGMaskElementWrappingImplementation.prototype.get$x = function() { |
| 7740 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$x()); |
| 7741 } |
| 7742 SVGMaskElementWrappingImplementation.prototype.get$y = function() { |
| 7743 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$y()); |
| 7744 } |
| 7745 SVGMaskElementWrappingImplementation.prototype.get$className = function() { |
| 7746 return LevelDom.wrapSVGAnimatedString(this._ptr.get$className()); |
| 7747 } |
| 7748 SVGMaskElementWrappingImplementation.prototype.get$style = function() { |
| 7749 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 7750 } |
| 7751 // ********** Code for SVGMetadataElementWrappingImplementation ************** |
| 7752 $inherits(SVGMetadataElementWrappingImplementation, SVGElementWrappingImplementa
tion); |
| 7753 function SVGMetadataElementWrappingImplementation() {} |
| 7754 SVGMetadataElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7755 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7756 } |
| 7757 SVGMetadataElementWrappingImplementation._wrap$ctor.prototype = SVGMetadataEleme
ntWrappingImplementation.prototype; |
| 7758 SVGMetadataElementWrappingImplementation.prototype.is$html_html_Element = functi
on(){return true}; |
| 7759 // ********** Code for SVGMissingGlyphElementWrappingImplementation ************
** |
| 7760 $inherits(SVGMissingGlyphElementWrappingImplementation, SVGElementWrappingImplem
entation); |
| 7761 function SVGMissingGlyphElementWrappingImplementation() {} |
| 7762 SVGMissingGlyphElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7763 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7764 } |
| 7765 SVGMissingGlyphElementWrappingImplementation._wrap$ctor.prototype = SVGMissingGl
yphElementWrappingImplementation.prototype; |
| 7766 SVGMissingGlyphElementWrappingImplementation.prototype.is$html_html_Element = fu
nction(){return true}; |
| 7767 // ********** Code for SVGPathElementWrappingImplementation ************** |
| 7768 $inherits(SVGPathElementWrappingImplementation, SVGElementWrappingImplementation
); |
| 7769 function SVGPathElementWrappingImplementation() {} |
| 7770 SVGPathElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7771 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7772 } |
| 7773 SVGPathElementWrappingImplementation._wrap$ctor.prototype = SVGPathElementWrappi
ngImplementation.prototype; |
| 7774 SVGPathElementWrappingImplementation.prototype.is$html_html_Element = function()
{return true}; |
| 7775 SVGPathElementWrappingImplementation.prototype.get$className = function() { |
| 7776 return LevelDom.wrapSVGAnimatedString(this._ptr.get$className()); |
| 7777 } |
| 7778 SVGPathElementWrappingImplementation.prototype.get$style = function() { |
| 7779 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 7780 } |
| 7781 // ********** Code for SVGPatternElementWrappingImplementation ************** |
| 7782 $inherits(SVGPatternElementWrappingImplementation, SVGElementWrappingImplementat
ion); |
| 7783 function SVGPatternElementWrappingImplementation() {} |
| 7784 SVGPatternElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7785 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7786 } |
| 7787 SVGPatternElementWrappingImplementation._wrap$ctor.prototype = SVGPatternElement
WrappingImplementation.prototype; |
| 7788 SVGPatternElementWrappingImplementation.prototype.is$html_html_Element = functio
n(){return true}; |
| 7789 SVGPatternElementWrappingImplementation.prototype.get$height = function() { |
| 7790 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$height()); |
| 7791 } |
| 7792 SVGPatternElementWrappingImplementation.prototype.get$width = function() { |
| 7793 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$width()); |
| 7794 } |
| 7795 SVGPatternElementWrappingImplementation.prototype.get$x = function() { |
| 7796 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$x()); |
| 7797 } |
| 7798 SVGPatternElementWrappingImplementation.prototype.get$y = function() { |
| 7799 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$y()); |
| 7800 } |
| 7801 SVGPatternElementWrappingImplementation.prototype.get$className = function() { |
| 7802 return LevelDom.wrapSVGAnimatedString(this._ptr.get$className()); |
| 7803 } |
| 7804 SVGPatternElementWrappingImplementation.prototype.get$style = function() { |
| 7805 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 7806 } |
| 7807 // ********** Code for SVGPolygonElementWrappingImplementation ************** |
| 7808 $inherits(SVGPolygonElementWrappingImplementation, SVGElementWrappingImplementat
ion); |
| 7809 function SVGPolygonElementWrappingImplementation() {} |
| 7810 SVGPolygonElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7811 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7812 } |
| 7813 SVGPolygonElementWrappingImplementation._wrap$ctor.prototype = SVGPolygonElement
WrappingImplementation.prototype; |
| 7814 SVGPolygonElementWrappingImplementation.prototype.is$html_html_Element = functio
n(){return true}; |
| 7815 SVGPolygonElementWrappingImplementation.prototype.get$className = function() { |
| 7816 return LevelDom.wrapSVGAnimatedString(this._ptr.get$className()); |
| 7817 } |
| 7818 SVGPolygonElementWrappingImplementation.prototype.get$style = function() { |
| 7819 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 7820 } |
| 7821 // ********** Code for SVGPolylineElementWrappingImplementation ************** |
| 7822 $inherits(SVGPolylineElementWrappingImplementation, SVGElementWrappingImplementa
tion); |
| 7823 function SVGPolylineElementWrappingImplementation() {} |
| 7824 SVGPolylineElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7825 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7826 } |
| 7827 SVGPolylineElementWrappingImplementation._wrap$ctor.prototype = SVGPolylineEleme
ntWrappingImplementation.prototype; |
| 7828 SVGPolylineElementWrappingImplementation.prototype.is$html_html_Element = functi
on(){return true}; |
| 7829 SVGPolylineElementWrappingImplementation.prototype.get$className = function() { |
| 7830 return LevelDom.wrapSVGAnimatedString(this._ptr.get$className()); |
| 7831 } |
| 7832 SVGPolylineElementWrappingImplementation.prototype.get$style = function() { |
| 7833 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 7834 } |
| 7835 // ********** Code for SVGRadialGradientElementWrappingImplementation **********
**** |
| 7836 $inherits(SVGRadialGradientElementWrappingImplementation, SVGGradientElementWrap
pingImplementation); |
| 7837 function SVGRadialGradientElementWrappingImplementation() {} |
| 7838 SVGRadialGradientElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7839 SVGGradientElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7840 } |
| 7841 SVGRadialGradientElementWrappingImplementation._wrap$ctor.prototype = SVGRadialG
radientElementWrappingImplementation.prototype; |
| 7842 SVGRadialGradientElementWrappingImplementation.prototype.is$html_html_Element =
function(){return true}; |
| 7843 // ********** Code for SVGRectElementWrappingImplementation ************** |
| 7844 $inherits(SVGRectElementWrappingImplementation, SVGElementWrappingImplementation
); |
| 7845 function SVGRectElementWrappingImplementation() {} |
| 7846 SVGRectElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7847 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7848 } |
| 7849 SVGRectElementWrappingImplementation._wrap$ctor.prototype = SVGRectElementWrappi
ngImplementation.prototype; |
| 7850 SVGRectElementWrappingImplementation.prototype.is$html_html_Element = function()
{return true}; |
| 7851 SVGRectElementWrappingImplementation.prototype.get$height = function() { |
| 7852 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$height()); |
| 7853 } |
| 7854 SVGRectElementWrappingImplementation.prototype.get$width = function() { |
| 7855 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$width()); |
| 7856 } |
| 7857 SVGRectElementWrappingImplementation.prototype.get$x = function() { |
| 7858 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$x()); |
| 7859 } |
| 7860 SVGRectElementWrappingImplementation.prototype.get$y = function() { |
| 7861 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$y()); |
| 7862 } |
| 7863 SVGRectElementWrappingImplementation.prototype.get$className = function() { |
| 7864 return LevelDom.wrapSVGAnimatedString(this._ptr.get$className()); |
| 7865 } |
| 7866 SVGRectElementWrappingImplementation.prototype.get$style = function() { |
| 7867 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 7868 } |
| 7869 // ********** Code for SVGScriptElementWrappingImplementation ************** |
| 7870 $inherits(SVGScriptElementWrappingImplementation, SVGElementWrappingImplementati
on); |
| 7871 function SVGScriptElementWrappingImplementation() {} |
| 7872 SVGScriptElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7873 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7874 } |
| 7875 SVGScriptElementWrappingImplementation._wrap$ctor.prototype = SVGScriptElementWr
appingImplementation.prototype; |
| 7876 SVGScriptElementWrappingImplementation.prototype.is$html_html_Element = function
(){return true}; |
| 7877 SVGScriptElementWrappingImplementation.prototype.get$type = function() { |
| 7878 return this._ptr.get$type(); |
| 7879 } |
| 7880 // ********** Code for SVGSetElementWrappingImplementation ************** |
| 7881 $inherits(SVGSetElementWrappingImplementation, SVGAnimationElementWrappingImplem
entation); |
| 7882 function SVGSetElementWrappingImplementation() {} |
| 7883 SVGSetElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7884 SVGAnimationElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7885 } |
| 7886 SVGSetElementWrappingImplementation._wrap$ctor.prototype = SVGSetElementWrapping
Implementation.prototype; |
| 7887 SVGSetElementWrappingImplementation.prototype.is$html_html_Element = function(){
return true}; |
| 7888 // ********** Code for SVGStopElementWrappingImplementation ************** |
| 7889 $inherits(SVGStopElementWrappingImplementation, SVGElementWrappingImplementation
); |
| 7890 function SVGStopElementWrappingImplementation() {} |
| 7891 SVGStopElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7892 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7893 } |
| 7894 SVGStopElementWrappingImplementation._wrap$ctor.prototype = SVGStopElementWrappi
ngImplementation.prototype; |
| 7895 SVGStopElementWrappingImplementation.prototype.is$html_html_Element = function()
{return true}; |
| 7896 SVGStopElementWrappingImplementation.prototype.get$offset = function() { |
| 7897 return LevelDom.wrapSVGAnimatedNumber(this._ptr.get$offset()); |
| 7898 } |
| 7899 SVGStopElementWrappingImplementation.prototype.get$className = function() { |
| 7900 return LevelDom.wrapSVGAnimatedString(this._ptr.get$className()); |
| 7901 } |
| 7902 SVGStopElementWrappingImplementation.prototype.get$style = function() { |
| 7903 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 7904 } |
| 7905 // ********** Code for SVGStyleElementWrappingImplementation ************** |
| 7906 $inherits(SVGStyleElementWrappingImplementation, SVGElementWrappingImplementatio
n); |
| 7907 function SVGStyleElementWrappingImplementation() {} |
| 7908 SVGStyleElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7909 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7910 } |
| 7911 SVGStyleElementWrappingImplementation._wrap$ctor.prototype = SVGStyleElementWrap
pingImplementation.prototype; |
| 7912 SVGStyleElementWrappingImplementation.prototype.is$html_html_Element = function(
){return true}; |
| 7913 SVGStyleElementWrappingImplementation.prototype.get$title = function() { |
| 7914 return this._ptr.get$title(); |
| 7915 } |
| 7916 SVGStyleElementWrappingImplementation.prototype.get$type = function() { |
| 7917 return this._ptr.get$type(); |
| 7918 } |
| 7919 // ********** Code for SVGSwitchElementWrappingImplementation ************** |
| 7920 $inherits(SVGSwitchElementWrappingImplementation, SVGElementWrappingImplementati
on); |
| 7921 function SVGSwitchElementWrappingImplementation() {} |
| 7922 SVGSwitchElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7923 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7924 } |
| 7925 SVGSwitchElementWrappingImplementation._wrap$ctor.prototype = SVGSwitchElementWr
appingImplementation.prototype; |
| 7926 SVGSwitchElementWrappingImplementation.prototype.is$html_html_Element = function
(){return true}; |
| 7927 SVGSwitchElementWrappingImplementation.prototype.get$className = function() { |
| 7928 return LevelDom.wrapSVGAnimatedString(this._ptr.get$className()); |
| 7929 } |
| 7930 SVGSwitchElementWrappingImplementation.prototype.get$style = function() { |
| 7931 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 7932 } |
| 7933 // ********** Code for SVGSymbolElementWrappingImplementation ************** |
| 7934 $inherits(SVGSymbolElementWrappingImplementation, SVGElementWrappingImplementati
on); |
| 7935 function SVGSymbolElementWrappingImplementation() {} |
| 7936 SVGSymbolElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7937 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7938 } |
| 7939 SVGSymbolElementWrappingImplementation._wrap$ctor.prototype = SVGSymbolElementWr
appingImplementation.prototype; |
| 7940 SVGSymbolElementWrappingImplementation.prototype.is$html_html_Element = function
(){return true}; |
| 7941 SVGSymbolElementWrappingImplementation.prototype.get$className = function() { |
| 7942 return LevelDom.wrapSVGAnimatedString(this._ptr.get$className()); |
| 7943 } |
| 7944 SVGSymbolElementWrappingImplementation.prototype.get$style = function() { |
| 7945 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 7946 } |
| 7947 // ********** Code for SVGTRefElementWrappingImplementation ************** |
| 7948 $inherits(SVGTRefElementWrappingImplementation, SVGTextPositioningElementWrappin
gImplementation); |
| 7949 function SVGTRefElementWrappingImplementation() {} |
| 7950 SVGTRefElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7951 SVGTextPositioningElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7952 } |
| 7953 SVGTRefElementWrappingImplementation._wrap$ctor.prototype = SVGTRefElementWrappi
ngImplementation.prototype; |
| 7954 SVGTRefElementWrappingImplementation.prototype.is$html_html_Element = function()
{return true}; |
| 7955 // ********** Code for SVGTSpanElementWrappingImplementation ************** |
| 7956 $inherits(SVGTSpanElementWrappingImplementation, SVGTextPositioningElementWrappi
ngImplementation); |
| 7957 function SVGTSpanElementWrappingImplementation() {} |
| 7958 SVGTSpanElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7959 SVGTextPositioningElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7960 } |
| 7961 SVGTSpanElementWrappingImplementation._wrap$ctor.prototype = SVGTSpanElementWrap
pingImplementation.prototype; |
| 7962 SVGTSpanElementWrappingImplementation.prototype.is$html_html_Element = function(
){return true}; |
| 7963 // ********** Code for SVGTextElementWrappingImplementation ************** |
| 7964 $inherits(SVGTextElementWrappingImplementation, SVGTextPositioningElementWrappin
gImplementation); |
| 7965 function SVGTextElementWrappingImplementation() {} |
| 7966 SVGTextElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7967 SVGTextPositioningElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7968 } |
| 7969 SVGTextElementWrappingImplementation._wrap$ctor.prototype = SVGTextElementWrappi
ngImplementation.prototype; |
| 7970 SVGTextElementWrappingImplementation.prototype.is$html_html_Element = function()
{return true}; |
| 7971 // ********** Code for SVGTextPathElementWrappingImplementation ************** |
| 7972 $inherits(SVGTextPathElementWrappingImplementation, SVGTextContentElementWrappin
gImplementation); |
| 7973 function SVGTextPathElementWrappingImplementation() {} |
| 7974 SVGTextPathElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7975 SVGTextContentElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7976 } |
| 7977 SVGTextPathElementWrappingImplementation._wrap$ctor.prototype = SVGTextPathEleme
ntWrappingImplementation.prototype; |
| 7978 SVGTextPathElementWrappingImplementation.prototype.is$html_html_Element = functi
on(){return true}; |
| 7979 // ********** Code for SVGTitleElementWrappingImplementation ************** |
| 7980 $inherits(SVGTitleElementWrappingImplementation, SVGElementWrappingImplementatio
n); |
| 7981 function SVGTitleElementWrappingImplementation() {} |
| 7982 SVGTitleElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7983 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7984 } |
| 7985 SVGTitleElementWrappingImplementation._wrap$ctor.prototype = SVGTitleElementWrap
pingImplementation.prototype; |
| 7986 SVGTitleElementWrappingImplementation.prototype.is$html_html_Element = function(
){return true}; |
| 7987 SVGTitleElementWrappingImplementation.prototype.get$className = function() { |
| 7988 return LevelDom.wrapSVGAnimatedString(this._ptr.get$className()); |
| 7989 } |
| 7990 SVGTitleElementWrappingImplementation.prototype.get$style = function() { |
| 7991 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 7992 } |
| 7993 // ********** Code for SVGUseElementWrappingImplementation ************** |
| 7994 $inherits(SVGUseElementWrappingImplementation, SVGElementWrappingImplementation)
; |
| 7995 function SVGUseElementWrappingImplementation() {} |
| 7996 SVGUseElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 7997 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 7998 } |
| 7999 SVGUseElementWrappingImplementation._wrap$ctor.prototype = SVGUseElementWrapping
Implementation.prototype; |
| 8000 SVGUseElementWrappingImplementation.prototype.is$html_html_Element = function(){
return true}; |
| 8001 SVGUseElementWrappingImplementation.prototype.get$height = function() { |
| 8002 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$height()); |
| 8003 } |
| 8004 SVGUseElementWrappingImplementation.prototype.get$width = function() { |
| 8005 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$width()); |
| 8006 } |
| 8007 SVGUseElementWrappingImplementation.prototype.get$x = function() { |
| 8008 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$x()); |
| 8009 } |
| 8010 SVGUseElementWrappingImplementation.prototype.get$y = function() { |
| 8011 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$y()); |
| 8012 } |
| 8013 SVGUseElementWrappingImplementation.prototype.get$className = function() { |
| 8014 return LevelDom.wrapSVGAnimatedString(this._ptr.get$className()); |
| 8015 } |
| 8016 SVGUseElementWrappingImplementation.prototype.get$style = function() { |
| 8017 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 8018 } |
| 8019 // ********** Code for SVGVKernElementWrappingImplementation ************** |
| 8020 $inherits(SVGVKernElementWrappingImplementation, SVGElementWrappingImplementatio
n); |
| 8021 function SVGVKernElementWrappingImplementation() {} |
| 8022 SVGVKernElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 8023 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 8024 } |
| 8025 SVGVKernElementWrappingImplementation._wrap$ctor.prototype = SVGVKernElementWrap
pingImplementation.prototype; |
| 8026 SVGVKernElementWrappingImplementation.prototype.is$html_html_Element = function(
){return true}; |
| 8027 // ********** Code for SVGViewElementWrappingImplementation ************** |
| 8028 $inherits(SVGViewElementWrappingImplementation, SVGElementWrappingImplementation
); |
| 8029 function SVGViewElementWrappingImplementation() {} |
| 8030 SVGViewElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 8031 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 8032 } |
| 8033 SVGViewElementWrappingImplementation._wrap$ctor.prototype = SVGViewElementWrappi
ngImplementation.prototype; |
| 8034 SVGViewElementWrappingImplementation.prototype.is$html_html_Element = function()
{return true}; |
| 8035 // ********** Code for UIEventWrappingImplementation ************** |
| 8036 $inherits(UIEventWrappingImplementation, EventWrappingImplementation); |
| 8037 function UIEventWrappingImplementation() {} |
| 8038 UIEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 8039 EventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 8040 } |
| 8041 UIEventWrappingImplementation._wrap$ctor.prototype = UIEventWrappingImplementati
on.prototype; |
| 8042 UIEventWrappingImplementation.prototype.get$keyCode = function() { |
| 8043 return this._ptr.get$keyCode(); |
| 8044 } |
| 8045 UIEventWrappingImplementation.prototype.get$pageX = function() { |
| 8046 return this._ptr.get$pageX(); |
| 8047 } |
| 8048 UIEventWrappingImplementation.prototype.get$pageY = function() { |
| 8049 return this._ptr.get$pageY(); |
| 8050 } |
| 8051 UIEventWrappingImplementation.prototype.get$view = function() { |
| 8052 return LevelDom.wrapWindow(this._ptr.get$view()); |
| 8053 } |
| 8054 // ********** Code for SVGZoomEventWrappingImplementation ************** |
| 8055 $inherits(SVGZoomEventWrappingImplementation, UIEventWrappingImplementation); |
| 8056 function SVGZoomEventWrappingImplementation() {} |
| 8057 SVGZoomEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 8058 UIEventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 8059 } |
| 8060 SVGZoomEventWrappingImplementation._wrap$ctor.prototype = SVGZoomEventWrappingIm
plementation.prototype; |
| 8061 // ********** Code for ScreenWrappingImplementation ************** |
| 8062 $inherits(ScreenWrappingImplementation, DOMWrapperBase); |
| 8063 function ScreenWrappingImplementation() {} |
| 8064 ScreenWrappingImplementation._wrap$ctor = function(ptr) { |
| 8065 DOMWrapperBase._wrap$ctor.call(this, ptr); |
| 8066 } |
| 8067 ScreenWrappingImplementation._wrap$ctor.prototype = ScreenWrappingImplementation
.prototype; |
| 8068 ScreenWrappingImplementation.prototype.get$height = function() { |
| 8069 return this._ptr.get$height(); |
| 8070 } |
| 8071 ScreenWrappingImplementation.prototype.get$width = function() { |
| 8072 return this._ptr.get$width(); |
| 8073 } |
| 8074 // ********** Code for ScriptElementWrappingImplementation ************** |
| 8075 $inherits(ScriptElementWrappingImplementation, ElementWrappingImplementation); |
| 8076 function ScriptElementWrappingImplementation() {} |
| 8077 ScriptElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 8078 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 8079 } |
| 8080 ScriptElementWrappingImplementation._wrap$ctor.prototype = ScriptElementWrapping
Implementation.prototype; |
| 8081 ScriptElementWrappingImplementation.prototype.is$html_html_Element = function(){
return true}; |
| 8082 ScriptElementWrappingImplementation.prototype.get$text = function() { |
| 8083 return this._ptr.get$text(); |
| 8084 } |
| 8085 ScriptElementWrappingImplementation.prototype.set$text = function(value) { |
| 8086 this._ptr.set$text(value); |
| 8087 } |
| 8088 ScriptElementWrappingImplementation.prototype.get$type = function() { |
| 8089 return this._ptr.get$type(); |
| 8090 } |
| 8091 // ********** Code for SelectElementWrappingImplementation ************** |
| 8092 $inherits(SelectElementWrappingImplementation, ElementWrappingImplementation); |
| 8093 function SelectElementWrappingImplementation() {} |
| 8094 SelectElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 8095 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 8096 } |
| 8097 SelectElementWrappingImplementation._wrap$ctor.prototype = SelectElementWrapping
Implementation.prototype; |
| 8098 SelectElementWrappingImplementation.prototype.is$html_html_Element = function(){
return true}; |
| 8099 SelectElementWrappingImplementation.prototype.get$length = function() { |
| 8100 return this._ptr.get$length(); |
| 8101 } |
| 8102 SelectElementWrappingImplementation.prototype.get$name = function() { |
| 8103 return this._ptr.get$name(); |
| 8104 } |
| 8105 SelectElementWrappingImplementation.prototype.get$type = function() { |
| 8106 return this._ptr.get$type(); |
| 8107 } |
| 8108 SelectElementWrappingImplementation.prototype.get$value = function() { |
| 8109 return this._ptr.get$value(); |
| 8110 } |
| 8111 SelectElementWrappingImplementation.prototype.set$value = function(value) { |
| 8112 this._ptr.set$value(value); |
| 8113 } |
| 8114 SelectElementWrappingImplementation.prototype.add = function(element, before) { |
| 8115 this._ptr.add$2(LevelDom.unwrap(element), LevelDom.unwrap(before)); |
| 8116 return; |
| 8117 } |
| 8118 SelectElementWrappingImplementation.prototype.item = function(index) { |
| 8119 return LevelDom.wrapNode(this._ptr.item$1(index)); |
| 8120 } |
| 8121 SelectElementWrappingImplementation.prototype.add$2 = SelectElementWrappingImple
mentation.prototype.add; |
| 8122 SelectElementWrappingImplementation.prototype.item$1 = SelectElementWrappingImpl
ementation.prototype.item; |
| 8123 // ********** Code for SourceElementWrappingImplementation ************** |
| 8124 $inherits(SourceElementWrappingImplementation, ElementWrappingImplementation); |
| 8125 function SourceElementWrappingImplementation() {} |
| 8126 SourceElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 8127 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 8128 } |
| 8129 SourceElementWrappingImplementation._wrap$ctor.prototype = SourceElementWrapping
Implementation.prototype; |
| 8130 SourceElementWrappingImplementation.prototype.is$html_html_Element = function(){
return true}; |
| 8131 SourceElementWrappingImplementation.prototype.get$type = function() { |
| 8132 return this._ptr.get$type(); |
| 8133 } |
| 8134 // ********** Code for SpanElementWrappingImplementation ************** |
| 8135 $inherits(SpanElementWrappingImplementation, ElementWrappingImplementation); |
| 8136 function SpanElementWrappingImplementation() {} |
| 8137 SpanElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 8138 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 8139 } |
| 8140 SpanElementWrappingImplementation._wrap$ctor.prototype = SpanElementWrappingImpl
ementation.prototype; |
| 8141 SpanElementWrappingImplementation.prototype.is$html_html_Element = function(){re
turn true}; |
| 8142 // ********** Code for SpeechInputEventWrappingImplementation ************** |
| 8143 $inherits(SpeechInputEventWrappingImplementation, EventWrappingImplementation); |
| 8144 function SpeechInputEventWrappingImplementation() {} |
| 8145 SpeechInputEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 8146 EventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 8147 } |
| 8148 SpeechInputEventWrappingImplementation._wrap$ctor.prototype = SpeechInputEventWr
appingImplementation.prototype; |
| 8149 // ********** Code for StyleElementWrappingImplementation ************** |
| 8150 $inherits(StyleElementWrappingImplementation, ElementWrappingImplementation); |
| 8151 function StyleElementWrappingImplementation() {} |
| 8152 StyleElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 8153 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 8154 } |
| 8155 StyleElementWrappingImplementation._wrap$ctor.prototype = StyleElementWrappingIm
plementation.prototype; |
| 8156 StyleElementWrappingImplementation.prototype.is$html_html_Element = function(){r
eturn true}; |
| 8157 StyleElementWrappingImplementation.prototype.get$type = function() { |
| 8158 return this._ptr.get$type(); |
| 8159 } |
| 8160 // ********** Code for TableCaptionElementWrappingImplementation ************** |
| 8161 $inherits(TableCaptionElementWrappingImplementation, ElementWrappingImplementati
on); |
| 8162 function TableCaptionElementWrappingImplementation() {} |
| 8163 TableCaptionElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 8164 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 8165 } |
| 8166 TableCaptionElementWrappingImplementation._wrap$ctor.prototype = TableCaptionEle
mentWrappingImplementation.prototype; |
| 8167 TableCaptionElementWrappingImplementation.prototype.is$html_html_Element = funct
ion(){return true}; |
| 8168 // ********** Code for TableCellElementWrappingImplementation ************** |
| 8169 $inherits(TableCellElementWrappingImplementation, ElementWrappingImplementation)
; |
| 8170 function TableCellElementWrappingImplementation() {} |
| 8171 TableCellElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 8172 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 8173 } |
| 8174 TableCellElementWrappingImplementation._wrap$ctor.prototype = TableCellElementWr
appingImplementation.prototype; |
| 8175 TableCellElementWrappingImplementation.prototype.is$html_html_Element = function
(){return true}; |
| 8176 TableCellElementWrappingImplementation.prototype.get$height = function() { |
| 8177 return this._ptr.get$height(); |
| 8178 } |
| 8179 TableCellElementWrappingImplementation.prototype.set$height = function(value) { |
| 8180 this._ptr.set$height(value); |
| 8181 } |
| 8182 TableCellElementWrappingImplementation.prototype.get$rowSpan = function() { |
| 8183 return this._ptr.get$rowSpan(); |
| 8184 } |
| 8185 TableCellElementWrappingImplementation.prototype.get$width = function() { |
| 8186 return this._ptr.get$width(); |
| 8187 } |
| 8188 TableCellElementWrappingImplementation.prototype.set$width = function(value) { |
| 8189 this._ptr.set$width(value); |
| 8190 } |
| 8191 // ********** Code for TableColElementWrappingImplementation ************** |
| 8192 $inherits(TableColElementWrappingImplementation, ElementWrappingImplementation); |
| 8193 function TableColElementWrappingImplementation() {} |
| 8194 TableColElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 8195 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 8196 } |
| 8197 TableColElementWrappingImplementation._wrap$ctor.prototype = TableColElementWrap
pingImplementation.prototype; |
| 8198 TableColElementWrappingImplementation.prototype.is$html_html_Element = function(
){return true}; |
| 8199 TableColElementWrappingImplementation.prototype.get$width = function() { |
| 8200 return this._ptr.get$width(); |
| 8201 } |
| 8202 TableColElementWrappingImplementation.prototype.set$width = function(value) { |
| 8203 this._ptr.set$width(value); |
| 8204 } |
| 8205 // ********** Code for TableElementWrappingImplementation ************** |
| 8206 $inherits(TableElementWrappingImplementation, ElementWrappingImplementation); |
| 8207 function TableElementWrappingImplementation() {} |
| 8208 TableElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 8209 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 8210 } |
| 8211 TableElementWrappingImplementation._wrap$ctor.prototype = TableElementWrappingIm
plementation.prototype; |
| 8212 TableElementWrappingImplementation.prototype.is$html_html_Element = function(){r
eturn true}; |
| 8213 TableElementWrappingImplementation.prototype.get$width = function() { |
| 8214 return this._ptr.get$width(); |
| 8215 } |
| 8216 TableElementWrappingImplementation.prototype.set$width = function(value) { |
| 8217 this._ptr.set$width(value); |
| 8218 } |
| 8219 // ********** Code for TableRowElementWrappingImplementation ************** |
| 8220 $inherits(TableRowElementWrappingImplementation, ElementWrappingImplementation); |
| 8221 function TableRowElementWrappingImplementation() {} |
| 8222 TableRowElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 8223 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 8224 } |
| 8225 TableRowElementWrappingImplementation._wrap$ctor.prototype = TableRowElementWrap
pingImplementation.prototype; |
| 8226 TableRowElementWrappingImplementation.prototype.is$html_html_Element = function(
){return true}; |
| 8227 // ********** Code for TableSectionElementWrappingImplementation ************** |
| 8228 $inherits(TableSectionElementWrappingImplementation, ElementWrappingImplementati
on); |
| 8229 function TableSectionElementWrappingImplementation() {} |
| 8230 TableSectionElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 8231 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 8232 } |
| 8233 TableSectionElementWrappingImplementation._wrap$ctor.prototype = TableSectionEle
mentWrappingImplementation.prototype; |
| 8234 TableSectionElementWrappingImplementation.prototype.is$html_html_Element = funct
ion(){return true}; |
| 8235 // ********** Code for TextAreaElementWrappingImplementation ************** |
| 8236 $inherits(TextAreaElementWrappingImplementation, ElementWrappingImplementation); |
| 8237 function TextAreaElementWrappingImplementation() {} |
| 8238 TextAreaElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 8239 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 8240 } |
| 8241 TextAreaElementWrappingImplementation._wrap$ctor.prototype = TextAreaElementWrap
pingImplementation.prototype; |
| 8242 TextAreaElementWrappingImplementation.prototype.is$html_html_Element = function(
){return true}; |
| 8243 TextAreaElementWrappingImplementation.prototype.get$name = function() { |
| 8244 return this._ptr.get$name(); |
| 8245 } |
| 8246 TextAreaElementWrappingImplementation.prototype.get$type = function() { |
| 8247 return this._ptr.get$type(); |
| 8248 } |
| 8249 TextAreaElementWrappingImplementation.prototype.get$value = function() { |
| 8250 return this._ptr.get$value(); |
| 8251 } |
| 8252 TextAreaElementWrappingImplementation.prototype.set$value = function(value) { |
| 8253 this._ptr.set$value(value); |
| 8254 } |
| 8255 // ********** Code for TextMetricsWrappingImplementation ************** |
| 8256 $inherits(TextMetricsWrappingImplementation, DOMWrapperBase); |
| 8257 function TextMetricsWrappingImplementation() {} |
| 8258 TextMetricsWrappingImplementation._wrap$ctor = function(ptr) { |
| 8259 DOMWrapperBase._wrap$ctor.call(this, ptr); |
| 8260 } |
| 8261 TextMetricsWrappingImplementation._wrap$ctor.prototype = TextMetricsWrappingImpl
ementation.prototype; |
| 8262 TextMetricsWrappingImplementation.prototype.get$width = function() { |
| 8263 return this._ptr.get$width(); |
| 8264 } |
| 8265 // ********** Code for TitleElementWrappingImplementation ************** |
| 8266 $inherits(TitleElementWrappingImplementation, ElementWrappingImplementation); |
| 8267 function TitleElementWrappingImplementation() {} |
| 8268 TitleElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 8269 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 8270 } |
| 8271 TitleElementWrappingImplementation._wrap$ctor.prototype = TitleElementWrappingIm
plementation.prototype; |
| 8272 TitleElementWrappingImplementation.prototype.is$html_html_Element = function(){r
eturn true}; |
| 8273 TitleElementWrappingImplementation.prototype.get$text = function() { |
| 8274 return this._ptr.get$text(); |
| 8275 } |
| 8276 TitleElementWrappingImplementation.prototype.set$text = function(value) { |
| 8277 this._ptr.set$text(value); |
| 8278 } |
| 8279 // ********** Code for TouchListWrappingImplementation ************** |
| 8280 $inherits(TouchListWrappingImplementation, DOMWrapperBase); |
| 8281 function TouchListWrappingImplementation() {} |
| 8282 TouchListWrappingImplementation._wrap$ctor = function(ptr) { |
| 8283 DOMWrapperBase._wrap$ctor.call(this, ptr); |
| 8284 } |
| 8285 TouchListWrappingImplementation._wrap$ctor.prototype = TouchListWrappingImplemen
tation.prototype; |
| 8286 TouchListWrappingImplementation.prototype.is$List = function(){return true}; |
| 8287 TouchListWrappingImplementation.prototype.get$length = function() { |
| 8288 return this._ptr.get$length(); |
| 8289 } |
| 8290 TouchListWrappingImplementation.prototype.$index = function(index) { |
| 8291 return LevelDom.wrapTouch(this._ptr.$index(index)); |
| 8292 } |
| 8293 TouchListWrappingImplementation.prototype.$setindex = function(index, value) { |
| 8294 this._ptr.$setindex(index, LevelDom.unwrap(value)); |
| 8295 } |
| 8296 TouchListWrappingImplementation.prototype.add = function(value) { |
| 8297 $throw(new UnsupportedOperationException("Cannot add to immutable List.")); |
| 8298 } |
| 8299 TouchListWrappingImplementation.prototype.addAll = function(collection) { |
| 8300 $throw(new UnsupportedOperationException("Cannot add to immutable List.")); |
| 8301 } |
| 8302 TouchListWrappingImplementation.prototype.sort = function(compare) { |
| 8303 $throw(new UnsupportedOperationException("Cannot sort immutable List.")); |
| 8304 } |
| 8305 TouchListWrappingImplementation.prototype.indexOf = function(element, start) { |
| 8306 return Lists.indexOf(this, element, start, this.get$length()); |
| 8307 } |
| 8308 TouchListWrappingImplementation.prototype.clear = function() { |
| 8309 $throw(new UnsupportedOperationException("Cannot clear immutable List.")); |
| 8310 } |
| 8311 TouchListWrappingImplementation.prototype.get$clear = function() { |
| 8312 return this.clear.bind(this); |
| 8313 } |
| 8314 TouchListWrappingImplementation.prototype.removeLast = function() { |
| 8315 $throw(new UnsupportedOperationException("Cannot removeLast on immutable List.
")); |
| 8316 } |
| 8317 TouchListWrappingImplementation.prototype.last = function() { |
| 8318 return this.$index(this.get$length() - (1)); |
| 8319 } |
| 8320 TouchListWrappingImplementation.prototype.forEach = function(f) { |
| 8321 _Collections.forEach(this, f); |
| 8322 } |
| 8323 TouchListWrappingImplementation.prototype.filter = function(f) { |
| 8324 return _Collections.filter(this, new Array(), f); |
| 8325 } |
| 8326 TouchListWrappingImplementation.prototype.some = function(f) { |
| 8327 return _Collections.some(this, f); |
| 8328 } |
| 8329 TouchListWrappingImplementation.prototype.getRange = function(start, length) { |
| 8330 $throw(new NotImplementedException()); |
| 8331 } |
| 8332 TouchListWrappingImplementation.prototype.isEmpty = function() { |
| 8333 return this.get$length() == (0); |
| 8334 } |
| 8335 TouchListWrappingImplementation.prototype.iterator = function() { |
| 8336 return new _FixedSizeListIterator_html_html_Touch(this); |
| 8337 } |
| 8338 TouchListWrappingImplementation.prototype.item = function(index) { |
| 8339 return LevelDom.wrapTouch(this._ptr.item$1(index)); |
| 8340 } |
| 8341 TouchListWrappingImplementation.prototype.add$1 = TouchListWrappingImplementatio
n.prototype.add; |
| 8342 TouchListWrappingImplementation.prototype.addAll$1 = TouchListWrappingImplementa
tion.prototype.addAll; |
| 8343 TouchListWrappingImplementation.prototype.clear$0 = TouchListWrappingImplementat
ion.prototype.clear; |
| 8344 TouchListWrappingImplementation.prototype.filter$1 = function($0) { |
| 8345 return this.filter(to$call$1($0)); |
| 8346 }; |
| 8347 TouchListWrappingImplementation.prototype.forEach$1 = function($0) { |
| 8348 return this.forEach(to$call$1($0)); |
| 8349 }; |
| 8350 TouchListWrappingImplementation.prototype.getRange$2 = TouchListWrappingImplemen
tation.prototype.getRange; |
| 8351 TouchListWrappingImplementation.prototype.item$1 = TouchListWrappingImplementati
on.prototype.item; |
| 8352 TouchListWrappingImplementation.prototype.iterator$0 = TouchListWrappingImplemen
tation.prototype.iterator; |
| 8353 TouchListWrappingImplementation.prototype.last$0 = TouchListWrappingImplementati
on.prototype.last; |
| 8354 TouchListWrappingImplementation.prototype.removeLast$0 = TouchListWrappingImplem
entation.prototype.removeLast; |
| 8355 // ********** Code for TouchWrappingImplementation ************** |
| 8356 $inherits(TouchWrappingImplementation, DOMWrapperBase); |
| 8357 function TouchWrappingImplementation() {} |
| 8358 TouchWrappingImplementation._wrap$ctor = function(ptr) { |
| 8359 DOMWrapperBase._wrap$ctor.call(this, ptr); |
| 8360 } |
| 8361 TouchWrappingImplementation._wrap$ctor.prototype = TouchWrappingImplementation.p
rototype; |
| 8362 TouchWrappingImplementation.prototype.get$clientX = function() { |
| 8363 return this._ptr.get$clientX(); |
| 8364 } |
| 8365 TouchWrappingImplementation.prototype.get$clientY = function() { |
| 8366 return this._ptr.get$clientY(); |
| 8367 } |
| 8368 TouchWrappingImplementation.prototype.get$pageX = function() { |
| 8369 return this._ptr.get$pageX(); |
| 8370 } |
| 8371 TouchWrappingImplementation.prototype.get$pageY = function() { |
| 8372 return this._ptr.get$pageY(); |
| 8373 } |
| 8374 TouchWrappingImplementation.prototype.get$target = function() { |
| 8375 return LevelDom.wrapEventTarget(this._ptr.get$target()); |
| 8376 } |
| 8377 // ********** Code for TrackElementWrappingImplementation ************** |
| 8378 $inherits(TrackElementWrappingImplementation, ElementWrappingImplementation); |
| 8379 function TrackElementWrappingImplementation() {} |
| 8380 TrackElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 8381 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 8382 } |
| 8383 TrackElementWrappingImplementation._wrap$ctor.prototype = TrackElementWrappingIm
plementation.prototype; |
| 8384 TrackElementWrappingImplementation.prototype.is$html_html_Element = function(){r
eturn true}; |
| 8385 // ********** Code for UListElementWrappingImplementation ************** |
| 8386 $inherits(UListElementWrappingImplementation, ElementWrappingImplementation); |
| 8387 function UListElementWrappingImplementation() {} |
| 8388 UListElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 8389 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 8390 } |
| 8391 UListElementWrappingImplementation._wrap$ctor.prototype = UListElementWrappingIm
plementation.prototype; |
| 8392 UListElementWrappingImplementation.prototype.is$html_html_Element = function(){r
eturn true}; |
| 8393 UListElementWrappingImplementation.prototype.get$type = function() { |
| 8394 return this._ptr.get$type(); |
| 8395 } |
| 8396 // ********** Code for UnknownElementWrappingImplementation ************** |
| 8397 $inherits(UnknownElementWrappingImplementation, ElementWrappingImplementation); |
| 8398 function UnknownElementWrappingImplementation() {} |
| 8399 UnknownElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 8400 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 8401 } |
| 8402 UnknownElementWrappingImplementation._wrap$ctor.prototype = UnknownElementWrappi
ngImplementation.prototype; |
| 8403 UnknownElementWrappingImplementation.prototype.is$html_html_Element = function()
{return true}; |
| 8404 // ********** Code for VideoElementWrappingImplementation ************** |
| 8405 $inherits(VideoElementWrappingImplementation, MediaElementWrappingImplementation
); |
| 8406 function VideoElementWrappingImplementation() {} |
| 8407 VideoElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 8408 MediaElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 8409 } |
| 8410 VideoElementWrappingImplementation._wrap$ctor.prototype = VideoElementWrappingIm
plementation.prototype; |
| 8411 VideoElementWrappingImplementation.prototype.is$html_html_Element = function(){r
eturn true}; |
| 8412 VideoElementWrappingImplementation.prototype.get$height = function() { |
| 8413 return this._ptr.get$height(); |
| 8414 } |
| 8415 VideoElementWrappingImplementation.prototype.set$height = function(value) { |
| 8416 this._ptr.set$height(value); |
| 8417 } |
| 8418 VideoElementWrappingImplementation.prototype.get$width = function() { |
| 8419 return this._ptr.get$width(); |
| 8420 } |
| 8421 VideoElementWrappingImplementation.prototype.set$width = function(value) { |
| 8422 this._ptr.set$width(value); |
| 8423 } |
| 8424 // ********** Code for WebGLContextEventWrappingImplementation ************** |
| 8425 $inherits(WebGLContextEventWrappingImplementation, EventWrappingImplementation); |
| 8426 function WebGLContextEventWrappingImplementation() {} |
| 8427 WebGLContextEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 8428 EventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 8429 } |
| 8430 WebGLContextEventWrappingImplementation._wrap$ctor.prototype = WebGLContextEvent
WrappingImplementation.prototype; |
| 8431 // ********** Code for WebGLRenderingContextWrappingImplementation *************
* |
| 8432 $inherits(WebGLRenderingContextWrappingImplementation, CanvasRenderingContextWra
ppingImplementation); |
| 8433 function WebGLRenderingContextWrappingImplementation() {} |
| 8434 WebGLRenderingContextWrappingImplementation._wrap$ctor = function(ptr) { |
| 8435 CanvasRenderingContextWrappingImplementation._wrap$ctor.call(this, ptr); |
| 8436 } |
| 8437 WebGLRenderingContextWrappingImplementation._wrap$ctor.prototype = WebGLRenderin
gContextWrappingImplementation.prototype; |
| 8438 WebGLRenderingContextWrappingImplementation.prototype.clear = function(mask) { |
| 8439 this._ptr.clear$1(mask); |
| 8440 return; |
| 8441 } |
| 8442 WebGLRenderingContextWrappingImplementation.prototype.get$clear = function() { |
| 8443 return this.clear.bind(this); |
| 8444 } |
| 8445 WebGLRenderingContextWrappingImplementation.prototype.clear$1 = WebGLRenderingCo
ntextWrappingImplementation.prototype.clear; |
| 8446 // ********** Code for LevelDom ************** |
| 8447 function LevelDom() {} |
| 8448 LevelDom.wrapCSSStyleDeclaration = function(raw) { |
| 8449 return raw == null ? null : raw.get$dartObjectLocalStorage() != null ? raw.get
$dartObjectLocalStorage() : new CSSStyleDeclarationWrappingImplementation._wrap$
ctor(raw); |
| 8450 } |
| 8451 LevelDom.wrapCanvasRenderingContext = function(raw) { |
| 8452 if (raw == null) { |
| 8453 return null; |
| 8454 } |
| 8455 if (raw.get$dartObjectLocalStorage() != null) { |
| 8456 return raw.get$dartObjectLocalStorage(); |
| 8457 } |
| 8458 switch (raw.get$typeName()) { |
| 8459 case "CanvasRenderingContext": |
| 8460 |
| 8461 return new CanvasRenderingContextWrappingImplementation._wrap$ctor(raw); |
| 8462 |
| 8463 case "CanvasRenderingContext2D": |
| 8464 |
| 8465 return new CanvasRenderingContext2DWrappingImplementation._wrap$ctor(raw); |
| 8466 |
| 8467 case "WebGLRenderingContext": |
| 8468 |
| 8469 return new WebGLRenderingContextWrappingImplementation._wrap$ctor(raw); |
| 8470 |
| 8471 default: |
| 8472 |
| 8473 $throw(new UnsupportedOperationException("Unknown type:" + raw.toString$0(
))); |
| 8474 |
| 8475 } |
| 8476 } |
| 8477 LevelDom.wrapConsole = function(raw) { |
| 8478 return raw == null ? null : raw.get$dartObjectLocalStorage() != null ? raw.get
$dartObjectLocalStorage() : new ConsoleWrappingImplementation._wrap$ctor(raw); |
| 8479 } |
| 8480 LevelDom.wrapDOMApplicationCache = function(raw) { |
| 8481 return raw == null ? null : raw.get$dartObjectLocalStorage() != null ? raw.get
$dartObjectLocalStorage() : new DOMApplicationCacheWrappingImplementation._wrap$
ctor(raw); |
| 8482 } |
| 8483 LevelDom.wrapDocument = function(raw) { |
| 8484 if (raw == null) { |
| 8485 return null; |
| 8486 } |
| 8487 if (raw.get$dartObjectLocalStorage() != null) { |
| 8488 return raw.get$dartObjectLocalStorage(); |
| 8489 } |
| 8490 switch (raw.get$typeName()) { |
| 8491 case "HTMLDocument": |
| 8492 |
| 8493 return new DocumentWrappingImplementation._wrap$ctor(raw, raw.get$document
Element()); |
| 8494 |
| 8495 case "SVGDocument": |
| 8496 |
| 8497 return new SVGDocumentWrappingImplementation._wrap$ctor(raw); |
| 8498 |
| 8499 default: |
| 8500 |
| 8501 $throw(new UnsupportedOperationException("Unknown type:" + raw.toString$0(
))); |
| 8502 |
| 8503 } |
| 8504 } |
| 8505 LevelDom.wrapElement = function(raw) { |
| 8506 if (raw == null) { |
| 8507 return null; |
| 8508 } |
| 8509 if (raw.get$dartObjectLocalStorage() != null) { |
| 8510 return raw.get$dartObjectLocalStorage(); |
| 8511 } |
| 8512 switch (raw.get$typeName()) { |
| 8513 case "HTMLAnchorElement": |
| 8514 |
| 8515 return new AnchorElementWrappingImplementation._wrap$ctor(raw); |
| 8516 |
| 8517 case "HTMLAreaElement": |
| 8518 |
| 8519 return new AreaElementWrappingImplementation._wrap$ctor(raw); |
| 8520 |
| 8521 case "HTMLAudioElement": |
| 8522 |
| 8523 return new AudioElementWrappingImplementation._wrap$ctor(raw); |
| 8524 |
| 8525 case "HTMLBRElement": |
| 8526 |
| 8527 return new BRElementWrappingImplementation._wrap$ctor(raw); |
| 8528 |
| 8529 case "HTMLBaseElement": |
| 8530 |
| 8531 return new BaseElementWrappingImplementation._wrap$ctor(raw); |
| 8532 |
| 8533 case "HTMLBodyElement": |
| 8534 |
| 8535 return new BodyElementWrappingImplementation._wrap$ctor(raw); |
| 8536 |
| 8537 case "HTMLButtonElement": |
| 8538 |
| 8539 return new ButtonElementWrappingImplementation._wrap$ctor(raw); |
| 8540 |
| 8541 case "HTMLCanvasElement": |
| 8542 |
| 8543 return new CanvasElementWrappingImplementation._wrap$ctor(raw); |
| 8544 |
| 8545 case "HTMLDListElement": |
| 8546 |
| 8547 return new DListElementWrappingImplementation._wrap$ctor(raw); |
| 8548 |
| 8549 case "HTMLDataListElement": |
| 8550 |
| 8551 return new DataListElementWrappingImplementation._wrap$ctor(raw); |
| 8552 |
| 8553 case "HTMLDetailsElement": |
| 8554 |
| 8555 return new DetailsElementWrappingImplementation._wrap$ctor(raw); |
| 8556 |
| 8557 case "HTMLDivElement": |
| 8558 |
| 8559 return new DivElementWrappingImplementation._wrap$ctor(raw); |
| 8560 |
| 8561 case "HTMLElement": |
| 8562 |
| 8563 return new ElementWrappingImplementation._wrap$ctor(raw); |
| 8564 |
| 8565 case "HTMLEmbedElement": |
| 8566 |
| 8567 return new EmbedElementWrappingImplementation._wrap$ctor(raw); |
| 8568 |
| 8569 case "HTMLFieldSetElement": |
| 8570 |
| 8571 return new FieldSetElementWrappingImplementation._wrap$ctor(raw); |
| 8572 |
| 8573 case "HTMLFontElement": |
| 8574 |
| 8575 return new FontElementWrappingImplementation._wrap$ctor(raw); |
| 8576 |
| 8577 case "HTMLFormElement": |
| 8578 |
| 8579 return new FormElementWrappingImplementation._wrap$ctor(raw); |
| 8580 |
| 8581 case "HTMLHRElement": |
| 8582 |
| 8583 return new HRElementWrappingImplementation._wrap$ctor(raw); |
| 8584 |
| 8585 case "HTMLHeadElement": |
| 8586 |
| 8587 return new HeadElementWrappingImplementation._wrap$ctor(raw); |
| 8588 |
| 8589 case "HTMLHeadingElement": |
| 8590 |
| 8591 return new HeadingElementWrappingImplementation._wrap$ctor(raw); |
| 8592 |
| 8593 case "HTMLHtmlElement": |
| 8594 |
| 8595 return new DocumentWrappingImplementation._wrap$ctor(raw.get$parentNode(),
raw); |
| 8596 |
| 8597 case "HTMLIFrameElement": |
| 8598 |
| 8599 return new IFrameElementWrappingImplementation._wrap$ctor(raw); |
| 8600 |
| 8601 case "HTMLImageElement": |
| 8602 |
| 8603 return new ImageElementWrappingImplementation._wrap$ctor(raw); |
| 8604 |
| 8605 case "HTMLInputElement": |
| 8606 |
| 8607 return new InputElementWrappingImplementation._wrap$ctor(raw); |
| 8608 |
| 8609 case "HTMLKeygenElement": |
| 8610 |
| 8611 return new KeygenElementWrappingImplementation._wrap$ctor(raw); |
| 8612 |
| 8613 case "HTMLLIElement": |
| 8614 |
| 8615 return new LIElementWrappingImplementation._wrap$ctor(raw); |
| 8616 |
| 8617 case "HTMLLabelElement": |
| 8618 |
| 8619 return new LabelElementWrappingImplementation._wrap$ctor(raw); |
| 8620 |
| 8621 case "HTMLLegendElement": |
| 8622 |
| 8623 return new LegendElementWrappingImplementation._wrap$ctor(raw); |
| 8624 |
| 8625 case "HTMLLinkElement": |
| 8626 |
| 8627 return new LinkElementWrappingImplementation._wrap$ctor(raw); |
| 8628 |
| 8629 case "HTMLMapElement": |
| 8630 |
| 8631 return new MapElementWrappingImplementation._wrap$ctor(raw); |
| 8632 |
| 8633 case "HTMLMarqueeElement": |
| 8634 |
| 8635 return new MarqueeElementWrappingImplementation._wrap$ctor(raw); |
| 8636 |
| 8637 case "HTMLMediaElement": |
| 8638 |
| 8639 return new MediaElementWrappingImplementation._wrap$ctor(raw); |
| 8640 |
| 8641 case "HTMLMenuElement": |
| 8642 |
| 8643 return new MenuElementWrappingImplementation._wrap$ctor(raw); |
| 8644 |
| 8645 case "HTMLMetaElement": |
| 8646 |
| 8647 return new MetaElementWrappingImplementation._wrap$ctor(raw); |
| 8648 |
| 8649 case "HTMLMeterElement": |
| 8650 |
| 8651 return new MeterElementWrappingImplementation._wrap$ctor(raw); |
| 8652 |
| 8653 case "HTMLModElement": |
| 8654 |
| 8655 return new ModElementWrappingImplementation._wrap$ctor(raw); |
| 8656 |
| 8657 case "HTMLOListElement": |
| 8658 |
| 8659 return new OListElementWrappingImplementation._wrap$ctor(raw); |
| 8660 |
| 8661 case "HTMLObjectElement": |
| 8662 |
| 8663 return new ObjectElementWrappingImplementation._wrap$ctor(raw); |
| 8664 |
| 8665 case "HTMLOptGroupElement": |
| 8666 |
| 8667 return new OptGroupElementWrappingImplementation._wrap$ctor(raw); |
| 8668 |
| 8669 case "HTMLOptionElement": |
| 8670 |
| 8671 return new OptionElementWrappingImplementation._wrap$ctor(raw); |
| 8672 |
| 8673 case "HTMLOutputElement": |
| 8674 |
| 8675 return new OutputElementWrappingImplementation._wrap$ctor(raw); |
| 8676 |
| 8677 case "HTMLParagraphElement": |
| 8678 |
| 8679 return new ParagraphElementWrappingImplementation._wrap$ctor(raw); |
| 8680 |
| 8681 case "HTMLParamElement": |
| 8682 |
| 8683 return new ParamElementWrappingImplementation._wrap$ctor(raw); |
| 8684 |
| 8685 case "HTMLPreElement": |
| 8686 |
| 8687 return new PreElementWrappingImplementation._wrap$ctor(raw); |
| 8688 |
| 8689 case "HTMLProgressElement": |
| 8690 |
| 8691 return new ProgressElementWrappingImplementation._wrap$ctor(raw); |
| 8692 |
| 8693 case "HTMLQuoteElement": |
| 8694 |
| 8695 return new QuoteElementWrappingImplementation._wrap$ctor(raw); |
| 8696 |
| 8697 case "SVGAElement": |
| 8698 |
| 8699 return new SVGAElementWrappingImplementation._wrap$ctor(raw); |
| 8700 |
| 8701 case "SVGAltGlyphDefElement": |
| 8702 |
| 8703 return new SVGAltGlyphDefElementWrappingImplementation._wrap$ctor(raw); |
| 8704 |
| 8705 case "SVGAltGlyphElement": |
| 8706 |
| 8707 return new SVGAltGlyphElementWrappingImplementation._wrap$ctor(raw); |
| 8708 |
| 8709 case "SVGAltGlyphItemElement": |
| 8710 |
| 8711 return new SVGAltGlyphItemElementWrappingImplementation._wrap$ctor(raw); |
| 8712 |
| 8713 case "SVGAnimateColorElement": |
| 8714 |
| 8715 return new SVGAnimateColorElementWrappingImplementation._wrap$ctor(raw); |
| 8716 |
| 8717 case "SVGAnimateElement": |
| 8718 |
| 8719 return new SVGAnimateElementWrappingImplementation._wrap$ctor(raw); |
| 8720 |
| 8721 case "SVGAnimateMotionElement": |
| 8722 |
| 8723 return new SVGAnimateMotionElementWrappingImplementation._wrap$ctor(raw); |
| 8724 |
| 8725 case "SVGAnimateTransformElement": |
| 8726 |
| 8727 return new SVGAnimateTransformElementWrappingImplementation._wrap$ctor(raw
); |
| 8728 |
| 8729 case "SVGAnimationElement": |
| 8730 |
| 8731 return new SVGAnimationElementWrappingImplementation._wrap$ctor(raw); |
| 8732 |
| 8733 case "SVGCircleElement": |
| 8734 |
| 8735 return new SVGCircleElementWrappingImplementation._wrap$ctor(raw); |
| 8736 |
| 8737 case "SVGClipPathElement": |
| 8738 |
| 8739 return new SVGClipPathElementWrappingImplementation._wrap$ctor(raw); |
| 8740 |
| 8741 case "SVGComponentTransferFunctionElement": |
| 8742 |
| 8743 return new SVGComponentTransferFunctionElementWrappingImplementation._wrap
$ctor(raw); |
| 8744 |
| 8745 case "SVGCursorElement": |
| 8746 |
| 8747 return new SVGCursorElementWrappingImplementation._wrap$ctor(raw); |
| 8748 |
| 8749 case "SVGDefsElement": |
| 8750 |
| 8751 return new SVGDefsElementWrappingImplementation._wrap$ctor(raw); |
| 8752 |
| 8753 case "SVGDescElement": |
| 8754 |
| 8755 return new SVGDescElementWrappingImplementation._wrap$ctor(raw); |
| 8756 |
| 8757 case "SVGElement": |
| 8758 |
| 8759 return new SVGElementWrappingImplementation._wrap$ctor(raw); |
| 8760 |
| 8761 case "SVGEllipseElement": |
| 8762 |
| 8763 return new SVGEllipseElementWrappingImplementation._wrap$ctor(raw); |
| 8764 |
| 8765 case "SVGFEBlendElement": |
| 8766 |
| 8767 return new SVGFEBlendElementWrappingImplementation._wrap$ctor(raw); |
| 8768 |
| 8769 case "SVGFEColorMatrixElement": |
| 8770 |
| 8771 return new SVGFEColorMatrixElementWrappingImplementation._wrap$ctor(raw); |
| 8772 |
| 8773 case "SVGFEComponentTransferElement": |
| 8774 |
| 8775 return new SVGFEComponentTransferElementWrappingImplementation._wrap$ctor(
raw); |
| 8776 |
| 8777 case "SVGFEConvolveMatrixElement": |
| 8778 |
| 8779 return new SVGFEConvolveMatrixElementWrappingImplementation._wrap$ctor(raw
); |
| 8780 |
| 8781 case "SVGFEDiffuseLightingElement": |
| 8782 |
| 8783 return new SVGFEDiffuseLightingElementWrappingImplementation._wrap$ctor(ra
w); |
| 8784 |
| 8785 case "SVGFEDisplacementMapElement": |
| 8786 |
| 8787 return new SVGFEDisplacementMapElementWrappingImplementation._wrap$ctor(ra
w); |
| 8788 |
| 8789 case "SVGFEDistantLightElement": |
| 8790 |
| 8791 return new SVGFEDistantLightElementWrappingImplementation._wrap$ctor(raw); |
| 8792 |
| 8793 case "SVGFEDropShadowElement": |
| 8794 |
| 8795 return new SVGFEDropShadowElementWrappingImplementation._wrap$ctor(raw); |
| 8796 |
| 8797 case "SVGFEFloodElement": |
| 8798 |
| 8799 return new SVGFEFloodElementWrappingImplementation._wrap$ctor(raw); |
| 8800 |
| 8801 case "SVGFEFuncAElement": |
| 8802 |
| 8803 return new SVGFEFuncAElementWrappingImplementation._wrap$ctor(raw); |
| 8804 |
| 8805 case "SVGFEFuncBElement": |
| 8806 |
| 8807 return new SVGFEFuncBElementWrappingImplementation._wrap$ctor(raw); |
| 8808 |
| 8809 case "SVGFEFuncGElement": |
| 8810 |
| 8811 return new SVGFEFuncGElementWrappingImplementation._wrap$ctor(raw); |
| 8812 |
| 8813 case "SVGFEFuncRElement": |
| 8814 |
| 8815 return new SVGFEFuncRElementWrappingImplementation._wrap$ctor(raw); |
| 8816 |
| 8817 case "SVGFEGaussianBlurElement": |
| 8818 |
| 8819 return new SVGFEGaussianBlurElementWrappingImplementation._wrap$ctor(raw); |
| 8820 |
| 8821 case "SVGFEImageElement": |
| 8822 |
| 8823 return new SVGFEImageElementWrappingImplementation._wrap$ctor(raw); |
| 8824 |
| 8825 case "SVGFEMergeElement": |
| 8826 |
| 8827 return new SVGFEMergeElementWrappingImplementation._wrap$ctor(raw); |
| 8828 |
| 8829 case "SVGFEMergeNodeElement": |
| 8830 |
| 8831 return new SVGFEMergeNodeElementWrappingImplementation._wrap$ctor(raw); |
| 8832 |
| 8833 case "SVGFEOffsetElement": |
| 8834 |
| 8835 return new SVGFEOffsetElementWrappingImplementation._wrap$ctor(raw); |
| 8836 |
| 8837 case "SVGFEPointLightElement": |
| 8838 |
| 8839 return new SVGFEPointLightElementWrappingImplementation._wrap$ctor(raw); |
| 8840 |
| 8841 case "SVGFESpecularLightingElement": |
| 8842 |
| 8843 return new SVGFESpecularLightingElementWrappingImplementation._wrap$ctor(r
aw); |
| 8844 |
| 8845 case "SVGFESpotLightElement": |
| 8846 |
| 8847 return new SVGFESpotLightElementWrappingImplementation._wrap$ctor(raw); |
| 8848 |
| 8849 case "SVGFETileElement": |
| 8850 |
| 8851 return new SVGFETileElementWrappingImplementation._wrap$ctor(raw); |
| 8852 |
| 8853 case "SVGFETurbulenceElement": |
| 8854 |
| 8855 return new SVGFETurbulenceElementWrappingImplementation._wrap$ctor(raw); |
| 8856 |
| 8857 case "SVGFilterElement": |
| 8858 |
| 8859 return new SVGFilterElementWrappingImplementation._wrap$ctor(raw); |
| 8860 |
| 8861 case "SVGFontElement": |
| 8862 |
| 8863 return new SVGFontElementWrappingImplementation._wrap$ctor(raw); |
| 8864 |
| 8865 case "SVGFontFaceElement": |
| 8866 |
| 8867 return new SVGFontFaceElementWrappingImplementation._wrap$ctor(raw); |
| 8868 |
| 8869 case "SVGFontFaceFormatElement": |
| 8870 |
| 8871 return new SVGFontFaceFormatElementWrappingImplementation._wrap$ctor(raw); |
| 8872 |
| 8873 case "SVGFontFaceNameElement": |
| 8874 |
| 8875 return new SVGFontFaceNameElementWrappingImplementation._wrap$ctor(raw); |
| 8876 |
| 8877 case "SVGFontFaceSrcElement": |
| 8878 |
| 8879 return new SVGFontFaceSrcElementWrappingImplementation._wrap$ctor(raw); |
| 8880 |
| 8881 case "SVGFontFaceUriElement": |
| 8882 |
| 8883 return new SVGFontFaceUriElementWrappingImplementation._wrap$ctor(raw); |
| 8884 |
| 8885 case "SVGForeignObjectElement": |
| 8886 |
| 8887 return new SVGForeignObjectElementWrappingImplementation._wrap$ctor(raw); |
| 8888 |
| 8889 case "SVGGElement": |
| 8890 |
| 8891 return new SVGGElementWrappingImplementation._wrap$ctor(raw); |
| 8892 |
| 8893 case "SVGGlyphElement": |
| 8894 |
| 8895 return new SVGGlyphElementWrappingImplementation._wrap$ctor(raw); |
| 8896 |
| 8897 case "SVGGlyphRefElement": |
| 8898 |
| 8899 return new SVGGlyphRefElementWrappingImplementation._wrap$ctor(raw); |
| 8900 |
| 8901 case "SVGGradientElement": |
| 8902 |
| 8903 return new SVGGradientElementWrappingImplementation._wrap$ctor(raw); |
| 8904 |
| 8905 case "SVGHKernElement": |
| 8906 |
| 8907 return new SVGHKernElementWrappingImplementation._wrap$ctor(raw); |
| 8908 |
| 8909 case "SVGImageElement": |
| 8910 |
| 8911 return new SVGImageElementWrappingImplementation._wrap$ctor(raw); |
| 8912 |
| 8913 case "SVGLineElement": |
| 8914 |
| 8915 return new SVGLineElementWrappingImplementation._wrap$ctor(raw); |
| 8916 |
| 8917 case "SVGLinearGradientElement": |
| 8918 |
| 8919 return new SVGLinearGradientElementWrappingImplementation._wrap$ctor(raw); |
| 8920 |
| 8921 case "SVGMPathElement": |
| 8922 |
| 8923 return new SVGMPathElementWrappingImplementation._wrap$ctor(raw); |
| 8924 |
| 8925 case "SVGMarkerElement": |
| 8926 |
| 8927 return new SVGMarkerElementWrappingImplementation._wrap$ctor(raw); |
| 8928 |
| 8929 case "SVGMaskElement": |
| 8930 |
| 8931 return new SVGMaskElementWrappingImplementation._wrap$ctor(raw); |
| 8932 |
| 8933 case "SVGMetadataElement": |
| 8934 |
| 8935 return new SVGMetadataElementWrappingImplementation._wrap$ctor(raw); |
| 8936 |
| 8937 case "SVGMissingGlyphElement": |
| 8938 |
| 8939 return new SVGMissingGlyphElementWrappingImplementation._wrap$ctor(raw); |
| 8940 |
| 8941 case "SVGPathElement": |
| 8942 |
| 8943 return new SVGPathElementWrappingImplementation._wrap$ctor(raw); |
| 8944 |
| 8945 case "SVGPatternElement": |
| 8946 |
| 8947 return new SVGPatternElementWrappingImplementation._wrap$ctor(raw); |
| 8948 |
| 8949 case "SVGPolygonElement": |
| 8950 |
| 8951 return new SVGPolygonElementWrappingImplementation._wrap$ctor(raw); |
| 8952 |
| 8953 case "SVGPolylineElement": |
| 8954 |
| 8955 return new SVGPolylineElementWrappingImplementation._wrap$ctor(raw); |
| 8956 |
| 8957 case "SVGRadialGradientElement": |
| 8958 |
| 8959 return new SVGRadialGradientElementWrappingImplementation._wrap$ctor(raw); |
| 8960 |
| 8961 case "SVGRectElement": |
| 8962 |
| 8963 return new SVGRectElementWrappingImplementation._wrap$ctor(raw); |
| 8964 |
| 8965 case "SVGSVGElement": |
| 8966 |
| 8967 return new SVGSVGElementWrappingImplementation._wrap$ctor(raw); |
| 8968 |
| 8969 case "SVGScriptElement": |
| 8970 |
| 8971 return new SVGScriptElementWrappingImplementation._wrap$ctor(raw); |
| 8972 |
| 8973 case "SVGSetElement": |
| 8974 |
| 8975 return new SVGSetElementWrappingImplementation._wrap$ctor(raw); |
| 8976 |
| 8977 case "SVGStopElement": |
| 8978 |
| 8979 return new SVGStopElementWrappingImplementation._wrap$ctor(raw); |
| 8980 |
| 8981 case "SVGStyleElement": |
| 8982 |
| 8983 return new SVGStyleElementWrappingImplementation._wrap$ctor(raw); |
| 8984 |
| 8985 case "SVGSwitchElement": |
| 8986 |
| 8987 return new SVGSwitchElementWrappingImplementation._wrap$ctor(raw); |
| 8988 |
| 8989 case "SVGSymbolElement": |
| 8990 |
| 8991 return new SVGSymbolElementWrappingImplementation._wrap$ctor(raw); |
| 8992 |
| 8993 case "SVGTRefElement": |
| 8994 |
| 8995 return new SVGTRefElementWrappingImplementation._wrap$ctor(raw); |
| 8996 |
| 8997 case "SVGTSpanElement": |
| 8998 |
| 8999 return new SVGTSpanElementWrappingImplementation._wrap$ctor(raw); |
| 9000 |
| 9001 case "SVGTextContentElement": |
| 9002 |
| 9003 return new SVGTextContentElementWrappingImplementation._wrap$ctor(raw); |
| 9004 |
| 9005 case "SVGTextElement": |
| 9006 |
| 9007 return new SVGTextElementWrappingImplementation._wrap$ctor(raw); |
| 9008 |
| 9009 case "SVGTextPathElement": |
| 9010 |
| 9011 return new SVGTextPathElementWrappingImplementation._wrap$ctor(raw); |
| 9012 |
| 9013 case "SVGTextPositioningElement": |
| 9014 |
| 9015 return new SVGTextPositioningElementWrappingImplementation._wrap$ctor(raw)
; |
| 9016 |
| 9017 case "SVGTitleElement": |
| 9018 |
| 9019 return new SVGTitleElementWrappingImplementation._wrap$ctor(raw); |
| 9020 |
| 9021 case "SVGUseElement": |
| 9022 |
| 9023 return new SVGUseElementWrappingImplementation._wrap$ctor(raw); |
| 9024 |
| 9025 case "SVGVKernElement": |
| 9026 |
| 9027 return new SVGVKernElementWrappingImplementation._wrap$ctor(raw); |
| 9028 |
| 9029 case "SVGViewElement": |
| 9030 |
| 9031 return new SVGViewElementWrappingImplementation._wrap$ctor(raw); |
| 9032 |
| 9033 case "HTMLScriptElement": |
| 9034 |
| 9035 return new ScriptElementWrappingImplementation._wrap$ctor(raw); |
| 9036 |
| 9037 case "HTMLSelectElement": |
| 9038 |
| 9039 return new SelectElementWrappingImplementation._wrap$ctor(raw); |
| 9040 |
| 9041 case "HTMLSourceElement": |
| 9042 |
| 9043 return new SourceElementWrappingImplementation._wrap$ctor(raw); |
| 9044 |
| 9045 case "HTMLSpanElement": |
| 9046 |
| 9047 return new SpanElementWrappingImplementation._wrap$ctor(raw); |
| 9048 |
| 9049 case "HTMLStyleElement": |
| 9050 |
| 9051 return new StyleElementWrappingImplementation._wrap$ctor(raw); |
| 9052 |
| 9053 case "HTMLTableCaptionElement": |
| 9054 |
| 9055 return new TableCaptionElementWrappingImplementation._wrap$ctor(raw); |
| 9056 |
| 9057 case "HTMLTableCellElement": |
| 9058 |
| 9059 return new TableCellElementWrappingImplementation._wrap$ctor(raw); |
| 9060 |
| 9061 case "HTMLTableColElement": |
| 9062 |
| 9063 return new TableColElementWrappingImplementation._wrap$ctor(raw); |
| 9064 |
| 9065 case "HTMLTableElement": |
| 9066 |
| 9067 return new TableElementWrappingImplementation._wrap$ctor(raw); |
| 9068 |
| 9069 case "HTMLTableRowElement": |
| 9070 |
| 9071 return new TableRowElementWrappingImplementation._wrap$ctor(raw); |
| 9072 |
| 9073 case "HTMLTableSectionElement": |
| 9074 |
| 9075 return new TableSectionElementWrappingImplementation._wrap$ctor(raw); |
| 9076 |
| 9077 case "HTMLTextAreaElement": |
| 9078 |
| 9079 return new TextAreaElementWrappingImplementation._wrap$ctor(raw); |
| 9080 |
| 9081 case "HTMLTitleElement": |
| 9082 |
| 9083 return new TitleElementWrappingImplementation._wrap$ctor(raw); |
| 9084 |
| 9085 case "HTMLTrackElement": |
| 9086 |
| 9087 return new TrackElementWrappingImplementation._wrap$ctor(raw); |
| 9088 |
| 9089 case "HTMLUListElement": |
| 9090 |
| 9091 return new UListElementWrappingImplementation._wrap$ctor(raw); |
| 9092 |
| 9093 case "HTMLUnknownElement": |
| 9094 |
| 9095 return new UnknownElementWrappingImplementation._wrap$ctor(raw); |
| 9096 |
| 9097 case "HTMLVideoElement": |
| 9098 |
| 9099 return new VideoElementWrappingImplementation._wrap$ctor(raw); |
| 9100 |
| 9101 default: |
| 9102 |
| 9103 $throw(new UnsupportedOperationException("Unknown type:" + raw.toString$0(
))); |
| 9104 |
| 9105 } |
| 9106 } |
| 9107 LevelDom.wrapElementList = function(raw) { |
| 9108 return raw == null ? null : new FrozenElementList._wrap$ctor(raw); |
| 9109 } |
| 9110 LevelDom.wrapEvent = function(raw) { |
| 9111 if (raw == null) { |
| 9112 return null; |
| 9113 } |
| 9114 if (raw.get$dartObjectLocalStorage() != null) { |
| 9115 return raw.get$dartObjectLocalStorage(); |
| 9116 } |
| 9117 switch (raw.get$typeName()) { |
| 9118 case "WebKitAnimationEvent": |
| 9119 |
| 9120 return new AnimationEventWrappingImplementation._wrap$ctor(raw); |
| 9121 |
| 9122 case "AudioProcessingEvent": |
| 9123 |
| 9124 return new AudioProcessingEventWrappingImplementation._wrap$ctor(raw); |
| 9125 |
| 9126 case "BeforeLoadEvent": |
| 9127 |
| 9128 return new BeforeLoadEventWrappingImplementation._wrap$ctor(raw); |
| 9129 |
| 9130 case "CloseEvent": |
| 9131 |
| 9132 return new CloseEventWrappingImplementation._wrap$ctor(raw); |
| 9133 |
| 9134 case "CompositionEvent": |
| 9135 |
| 9136 return new CompositionEventWrappingImplementation._wrap$ctor(raw); |
| 9137 |
| 9138 case "CustomEvent": |
| 9139 |
| 9140 return new CustomEventWrappingImplementation._wrap$ctor(raw); |
| 9141 |
| 9142 case "DeviceMotionEvent": |
| 9143 |
| 9144 return new DeviceMotionEventWrappingImplementation._wrap$ctor(raw); |
| 9145 |
| 9146 case "DeviceOrientationEvent": |
| 9147 |
| 9148 return new DeviceOrientationEventWrappingImplementation._wrap$ctor(raw); |
| 9149 |
| 9150 case "ErrorEvent": |
| 9151 |
| 9152 return new ErrorEventWrappingImplementation._wrap$ctor(raw); |
| 9153 |
| 9154 case "Event": |
| 9155 |
| 9156 return new EventWrappingImplementation._wrap$ctor(raw); |
| 9157 |
| 9158 case "HashChangeEvent": |
| 9159 |
| 9160 return new HashChangeEventWrappingImplementation._wrap$ctor(raw); |
| 9161 |
| 9162 case "IDBVersionChangeEvent": |
| 9163 |
| 9164 return new IDBVersionChangeEventWrappingImplementation._wrap$ctor(raw); |
| 9165 |
| 9166 case "KeyboardEvent": |
| 9167 |
| 9168 return new KeyboardEventWrappingImplementation._wrap$ctor(raw); |
| 9169 |
| 9170 case "MessageEvent": |
| 9171 |
| 9172 return new MessageEventWrappingImplementation._wrap$ctor(raw); |
| 9173 |
| 9174 case "MouseEvent": |
| 9175 |
| 9176 return new MouseEventWrappingImplementation._wrap$ctor(raw); |
| 9177 |
| 9178 case "MutationEvent": |
| 9179 |
| 9180 return new MutationEventWrappingImplementation._wrap$ctor(raw); |
| 9181 |
| 9182 case "OfflineAudioCompletionEvent": |
| 9183 |
| 9184 return new OfflineAudioCompletionEventWrappingImplementation._wrap$ctor(ra
w); |
| 9185 |
| 9186 case "OverflowEvent": |
| 9187 |
| 9188 return new OverflowEventWrappingImplementation._wrap$ctor(raw); |
| 9189 |
| 9190 case "PageTransitionEvent": |
| 9191 |
| 9192 return new PageTransitionEventWrappingImplementation._wrap$ctor(raw); |
| 9193 |
| 9194 case "PopStateEvent": |
| 9195 |
| 9196 return new PopStateEventWrappingImplementation._wrap$ctor(raw); |
| 9197 |
| 9198 case "ProgressEvent": |
| 9199 |
| 9200 return new ProgressEventWrappingImplementation._wrap$ctor(raw); |
| 9201 |
| 9202 case "SVGZoomEvent": |
| 9203 |
| 9204 return new SVGZoomEventWrappingImplementation._wrap$ctor(raw); |
| 9205 |
| 9206 case "SpeechInputEvent": |
| 9207 |
| 9208 return new SpeechInputEventWrappingImplementation._wrap$ctor(raw); |
| 9209 |
| 9210 case "StorageEvent": |
| 9211 |
| 9212 return new StorageEventWrappingImplementation._wrap$ctor(raw); |
| 9213 |
| 9214 case "TextEvent": |
| 9215 |
| 9216 return new TextEventWrappingImplementation._wrap$ctor(raw); |
| 9217 |
| 9218 case "TouchEvent": |
| 9219 |
| 9220 return new TouchEventWrappingImplementation._wrap$ctor(raw); |
| 9221 |
| 9222 case "WebKitTransitionEvent": |
| 9223 |
| 9224 return new TransitionEventWrappingImplementation._wrap$ctor(raw); |
| 9225 |
| 9226 case "UIEvent": |
| 9227 |
| 9228 return new UIEventWrappingImplementation._wrap$ctor(raw); |
| 9229 |
| 9230 case "WebGLContextEvent": |
| 9231 |
| 9232 return new WebGLContextEventWrappingImplementation._wrap$ctor(raw); |
| 9233 |
| 9234 case "WheelEvent": |
| 9235 |
| 9236 return new WheelEventWrappingImplementation._wrap$ctor(raw); |
| 9237 |
| 9238 case "XMLHttpRequestProgressEvent": |
| 9239 |
| 9240 return new XMLHttpRequestProgressEventWrappingImplementation._wrap$ctor(ra
w); |
| 9241 |
| 9242 default: |
| 9243 |
| 9244 $throw(new UnsupportedOperationException("Unknown type:" + raw.toString$0(
))); |
| 9245 |
| 9246 } |
| 9247 } |
| 9248 LevelDom.wrapEventTarget = function(raw) { |
| 9249 if (raw == null) { |
| 9250 return null; |
| 9251 } |
| 9252 if (raw.get$dartObjectLocalStorage() != null) { |
| 9253 return raw.get$dartObjectLocalStorage(); |
| 9254 } |
| 9255 switch (raw.get$typeName()) { |
| 9256 case "HTMLAnchorElement": |
| 9257 |
| 9258 return new AnchorElementWrappingImplementation._wrap$ctor(raw); |
| 9259 |
| 9260 case "HTMLAreaElement": |
| 9261 |
| 9262 return new AreaElementWrappingImplementation._wrap$ctor(raw); |
| 9263 |
| 9264 case "HTMLAudioElement": |
| 9265 |
| 9266 return new AudioElementWrappingImplementation._wrap$ctor(raw); |
| 9267 |
| 9268 case "HTMLBRElement": |
| 9269 |
| 9270 return new BRElementWrappingImplementation._wrap$ctor(raw); |
| 9271 |
| 9272 case "HTMLBaseElement": |
| 9273 |
| 9274 return new BaseElementWrappingImplementation._wrap$ctor(raw); |
| 9275 |
| 9276 case "HTMLBodyElement": |
| 9277 |
| 9278 return new BodyElementWrappingImplementation._wrap$ctor(raw); |
| 9279 |
| 9280 case "HTMLButtonElement": |
| 9281 |
| 9282 return new ButtonElementWrappingImplementation._wrap$ctor(raw); |
| 9283 |
| 9284 case "CDATASection": |
| 9285 |
| 9286 return new CDATASectionWrappingImplementation._wrap$ctor(raw); |
| 9287 |
| 9288 case "HTMLCanvasElement": |
| 9289 |
| 9290 return new CanvasElementWrappingImplementation._wrap$ctor(raw); |
| 9291 |
| 9292 case "CharacterData": |
| 9293 |
| 9294 return new CharacterDataWrappingImplementation._wrap$ctor(raw); |
| 9295 |
| 9296 case "Comment": |
| 9297 |
| 9298 return new CommentWrappingImplementation._wrap$ctor(raw); |
| 9299 |
| 9300 case "HTMLDListElement": |
| 9301 |
| 9302 return new DListElementWrappingImplementation._wrap$ctor(raw); |
| 9303 |
| 9304 case "DOMApplicationCache": |
| 9305 |
| 9306 return new DOMApplicationCacheWrappingImplementation._wrap$ctor(raw); |
| 9307 |
| 9308 case "HTMLDataListElement": |
| 9309 |
| 9310 return new DataListElementWrappingImplementation._wrap$ctor(raw); |
| 9311 |
| 9312 case "HTMLDetailsElement": |
| 9313 |
| 9314 return new DetailsElementWrappingImplementation._wrap$ctor(raw); |
| 9315 |
| 9316 case "HTMLDivElement": |
| 9317 |
| 9318 return new DivElementWrappingImplementation._wrap$ctor(raw); |
| 9319 |
| 9320 case "HTMLDocument": |
| 9321 |
| 9322 return new DocumentWrappingImplementation._wrap$ctor(raw, raw.get$document
Element()); |
| 9323 |
| 9324 case "DocumentFragment": |
| 9325 |
| 9326 return new DocumentFragmentWrappingImplementation._wrap$ctor(raw); |
| 9327 |
| 9328 case "HTMLElement": |
| 9329 |
| 9330 return new ElementWrappingImplementation._wrap$ctor(raw); |
| 9331 |
| 9332 case "HTMLEmbedElement": |
| 9333 |
| 9334 return new EmbedElementWrappingImplementation._wrap$ctor(raw); |
| 9335 |
| 9336 case "Entity": |
| 9337 |
| 9338 return new EntityWrappingImplementation._wrap$ctor(raw); |
| 9339 |
| 9340 case "EntityReference": |
| 9341 |
| 9342 return new EntityReferenceWrappingImplementation._wrap$ctor(raw); |
| 9343 |
| 9344 case "EventSource": |
| 9345 |
| 9346 return new EventSourceWrappingImplementation._wrap$ctor(raw); |
| 9347 |
| 9348 case "EventTarget": |
| 9349 |
| 9350 return new EventTargetWrappingImplementation._wrap$ctor(raw); |
| 9351 |
| 9352 case "HTMLFieldSetElement": |
| 9353 |
| 9354 return new FieldSetElementWrappingImplementation._wrap$ctor(raw); |
| 9355 |
| 9356 case "HTMLFontElement": |
| 9357 |
| 9358 return new FontElementWrappingImplementation._wrap$ctor(raw); |
| 9359 |
| 9360 case "HTMLFormElement": |
| 9361 |
| 9362 return new FormElementWrappingImplementation._wrap$ctor(raw); |
| 9363 |
| 9364 case "HTMLHRElement": |
| 9365 |
| 9366 return new HRElementWrappingImplementation._wrap$ctor(raw); |
| 9367 |
| 9368 case "HTMLHeadElement": |
| 9369 |
| 9370 return new HeadElementWrappingImplementation._wrap$ctor(raw); |
| 9371 |
| 9372 case "HTMLHeadingElement": |
| 9373 |
| 9374 return new HeadingElementWrappingImplementation._wrap$ctor(raw); |
| 9375 |
| 9376 case "HTMLHtmlElement": |
| 9377 |
| 9378 return new DocumentWrappingImplementation._wrap$ctor(raw.get$parentNode(),
raw); |
| 9379 |
| 9380 case "HTMLIFrameElement": |
| 9381 |
| 9382 return new IFrameElementWrappingImplementation._wrap$ctor(raw); |
| 9383 |
| 9384 case "HTMLImageElement": |
| 9385 |
| 9386 return new ImageElementWrappingImplementation._wrap$ctor(raw); |
| 9387 |
| 9388 case "HTMLInputElement": |
| 9389 |
| 9390 return new InputElementWrappingImplementation._wrap$ctor(raw); |
| 9391 |
| 9392 case "HTMLKeygenElement": |
| 9393 |
| 9394 return new KeygenElementWrappingImplementation._wrap$ctor(raw); |
| 9395 |
| 9396 case "HTMLLIElement": |
| 9397 |
| 9398 return new LIElementWrappingImplementation._wrap$ctor(raw); |
| 9399 |
| 9400 case "HTMLLabelElement": |
| 9401 |
| 9402 return new LabelElementWrappingImplementation._wrap$ctor(raw); |
| 9403 |
| 9404 case "HTMLLegendElement": |
| 9405 |
| 9406 return new LegendElementWrappingImplementation._wrap$ctor(raw); |
| 9407 |
| 9408 case "HTMLLinkElement": |
| 9409 |
| 9410 return new LinkElementWrappingImplementation._wrap$ctor(raw); |
| 9411 |
| 9412 case "HTMLMapElement": |
| 9413 |
| 9414 return new MapElementWrappingImplementation._wrap$ctor(raw); |
| 9415 |
| 9416 case "HTMLMarqueeElement": |
| 9417 |
| 9418 return new MarqueeElementWrappingImplementation._wrap$ctor(raw); |
| 9419 |
| 9420 case "HTMLMediaElement": |
| 9421 |
| 9422 return new MediaElementWrappingImplementation._wrap$ctor(raw); |
| 9423 |
| 9424 case "HTMLMenuElement": |
| 9425 |
| 9426 return new MenuElementWrappingImplementation._wrap$ctor(raw); |
| 9427 |
| 9428 case "MessagePort": |
| 9429 |
| 9430 return new MessagePortWrappingImplementation._wrap$ctor(raw); |
| 9431 |
| 9432 case "HTMLMetaElement": |
| 9433 |
| 9434 return new MetaElementWrappingImplementation._wrap$ctor(raw); |
| 9435 |
| 9436 case "HTMLMeterElement": |
| 9437 |
| 9438 return new MeterElementWrappingImplementation._wrap$ctor(raw); |
| 9439 |
| 9440 case "HTMLModElement": |
| 9441 |
| 9442 return new ModElementWrappingImplementation._wrap$ctor(raw); |
| 9443 |
| 9444 case "Node": |
| 9445 |
| 9446 return new NodeWrappingImplementation._wrap$ctor(raw); |
| 9447 |
| 9448 case "Notation": |
| 9449 |
| 9450 return new NotationWrappingImplementation._wrap$ctor(raw); |
| 9451 |
| 9452 case "Notification": |
| 9453 |
| 9454 return new NotificationWrappingImplementation._wrap$ctor(raw); |
| 9455 |
| 9456 case "HTMLOListElement": |
| 9457 |
| 9458 return new OListElementWrappingImplementation._wrap$ctor(raw); |
| 9459 |
| 9460 case "HTMLObjectElement": |
| 9461 |
| 9462 return new ObjectElementWrappingImplementation._wrap$ctor(raw); |
| 9463 |
| 9464 case "HTMLOptGroupElement": |
| 9465 |
| 9466 return new OptGroupElementWrappingImplementation._wrap$ctor(raw); |
| 9467 |
| 9468 case "HTMLOptionElement": |
| 9469 |
| 9470 return new OptionElementWrappingImplementation._wrap$ctor(raw); |
| 9471 |
| 9472 case "HTMLOutputElement": |
| 9473 |
| 9474 return new OutputElementWrappingImplementation._wrap$ctor(raw); |
| 9475 |
| 9476 case "HTMLParagraphElement": |
| 9477 |
| 9478 return new ParagraphElementWrappingImplementation._wrap$ctor(raw); |
| 9479 |
| 9480 case "HTMLParamElement": |
| 9481 |
| 9482 return new ParamElementWrappingImplementation._wrap$ctor(raw); |
| 9483 |
| 9484 case "HTMLPreElement": |
| 9485 |
| 9486 return new PreElementWrappingImplementation._wrap$ctor(raw); |
| 9487 |
| 9488 case "ProcessingInstruction": |
| 9489 |
| 9490 return new ProcessingInstructionWrappingImplementation._wrap$ctor(raw); |
| 9491 |
| 9492 case "HTMLProgressElement": |
| 9493 |
| 9494 return new ProgressElementWrappingImplementation._wrap$ctor(raw); |
| 9495 |
| 9496 case "HTMLQuoteElement": |
| 9497 |
| 9498 return new QuoteElementWrappingImplementation._wrap$ctor(raw); |
| 9499 |
| 9500 case "SVGAElement": |
| 9501 |
| 9502 return new SVGAElementWrappingImplementation._wrap$ctor(raw); |
| 9503 |
| 9504 case "SVGAltGlyphDefElement": |
| 9505 |
| 9506 return new SVGAltGlyphDefElementWrappingImplementation._wrap$ctor(raw); |
| 9507 |
| 9508 case "SVGAltGlyphElement": |
| 9509 |
| 9510 return new SVGAltGlyphElementWrappingImplementation._wrap$ctor(raw); |
| 9511 |
| 9512 case "SVGAltGlyphItemElement": |
| 9513 |
| 9514 return new SVGAltGlyphItemElementWrappingImplementation._wrap$ctor(raw); |
| 9515 |
| 9516 case "SVGAnimateColorElement": |
| 9517 |
| 9518 return new SVGAnimateColorElementWrappingImplementation._wrap$ctor(raw); |
| 9519 |
| 9520 case "SVGAnimateElement": |
| 9521 |
| 9522 return new SVGAnimateElementWrappingImplementation._wrap$ctor(raw); |
| 9523 |
| 9524 case "SVGAnimateMotionElement": |
| 9525 |
| 9526 return new SVGAnimateMotionElementWrappingImplementation._wrap$ctor(raw); |
| 9527 |
| 9528 case "SVGAnimateTransformElement": |
| 9529 |
| 9530 return new SVGAnimateTransformElementWrappingImplementation._wrap$ctor(raw
); |
| 9531 |
| 9532 case "SVGAnimationElement": |
| 9533 |
| 9534 return new SVGAnimationElementWrappingImplementation._wrap$ctor(raw); |
| 9535 |
| 9536 case "SVGCircleElement": |
| 9537 |
| 9538 return new SVGCircleElementWrappingImplementation._wrap$ctor(raw); |
| 9539 |
| 9540 case "SVGClipPathElement": |
| 9541 |
| 9542 return new SVGClipPathElementWrappingImplementation._wrap$ctor(raw); |
| 9543 |
| 9544 case "SVGComponentTransferFunctionElement": |
| 9545 |
| 9546 return new SVGComponentTransferFunctionElementWrappingImplementation._wrap
$ctor(raw); |
| 9547 |
| 9548 case "SVGCursorElement": |
| 9549 |
| 9550 return new SVGCursorElementWrappingImplementation._wrap$ctor(raw); |
| 9551 |
| 9552 case "SVGDefsElement": |
| 9553 |
| 9554 return new SVGDefsElementWrappingImplementation._wrap$ctor(raw); |
| 9555 |
| 9556 case "SVGDescElement": |
| 9557 |
| 9558 return new SVGDescElementWrappingImplementation._wrap$ctor(raw); |
| 9559 |
| 9560 case "SVGDocument": |
| 9561 |
| 9562 return new SVGDocumentWrappingImplementation._wrap$ctor(raw); |
| 9563 |
| 9564 case "SVGElement": |
| 9565 |
| 9566 return new SVGElementWrappingImplementation._wrap$ctor(raw); |
| 9567 |
| 9568 case "SVGElementInstance": |
| 9569 |
| 9570 return new SVGElementInstanceWrappingImplementation._wrap$ctor(raw); |
| 9571 |
| 9572 case "SVGEllipseElement": |
| 9573 |
| 9574 return new SVGEllipseElementWrappingImplementation._wrap$ctor(raw); |
| 9575 |
| 9576 case "SVGFEBlendElement": |
| 9577 |
| 9578 return new SVGFEBlendElementWrappingImplementation._wrap$ctor(raw); |
| 9579 |
| 9580 case "SVGFEColorMatrixElement": |
| 9581 |
| 9582 return new SVGFEColorMatrixElementWrappingImplementation._wrap$ctor(raw); |
| 9583 |
| 9584 case "SVGFEComponentTransferElement": |
| 9585 |
| 9586 return new SVGFEComponentTransferElementWrappingImplementation._wrap$ctor(
raw); |
| 9587 |
| 9588 case "SVGFEConvolveMatrixElement": |
| 9589 |
| 9590 return new SVGFEConvolveMatrixElementWrappingImplementation._wrap$ctor(raw
); |
| 9591 |
| 9592 case "SVGFEDiffuseLightingElement": |
| 9593 |
| 9594 return new SVGFEDiffuseLightingElementWrappingImplementation._wrap$ctor(ra
w); |
| 9595 |
| 9596 case "SVGFEDisplacementMapElement": |
| 9597 |
| 9598 return new SVGFEDisplacementMapElementWrappingImplementation._wrap$ctor(ra
w); |
| 9599 |
| 9600 case "SVGFEDistantLightElement": |
| 9601 |
| 9602 return new SVGFEDistantLightElementWrappingImplementation._wrap$ctor(raw); |
| 9603 |
| 9604 case "SVGFEDropShadowElement": |
| 9605 |
| 9606 return new SVGFEDropShadowElementWrappingImplementation._wrap$ctor(raw); |
| 9607 |
| 9608 case "SVGFEFloodElement": |
| 9609 |
| 9610 return new SVGFEFloodElementWrappingImplementation._wrap$ctor(raw); |
| 9611 |
| 9612 case "SVGFEFuncAElement": |
| 9613 |
| 9614 return new SVGFEFuncAElementWrappingImplementation._wrap$ctor(raw); |
| 9615 |
| 9616 case "SVGFEFuncBElement": |
| 9617 |
| 9618 return new SVGFEFuncBElementWrappingImplementation._wrap$ctor(raw); |
| 9619 |
| 9620 case "SVGFEFuncGElement": |
| 9621 |
| 9622 return new SVGFEFuncGElementWrappingImplementation._wrap$ctor(raw); |
| 9623 |
| 9624 case "SVGFEFuncRElement": |
| 9625 |
| 9626 return new SVGFEFuncRElementWrappingImplementation._wrap$ctor(raw); |
| 9627 |
| 9628 case "SVGFEGaussianBlurElement": |
| 9629 |
| 9630 return new SVGFEGaussianBlurElementWrappingImplementation._wrap$ctor(raw); |
| 9631 |
| 9632 case "SVGFEImageElement": |
| 9633 |
| 9634 return new SVGFEImageElementWrappingImplementation._wrap$ctor(raw); |
| 9635 |
| 9636 case "SVGFEMergeElement": |
| 9637 |
| 9638 return new SVGFEMergeElementWrappingImplementation._wrap$ctor(raw); |
| 9639 |
| 9640 case "SVGFEMergeNodeElement": |
| 9641 |
| 9642 return new SVGFEMergeNodeElementWrappingImplementation._wrap$ctor(raw); |
| 9643 |
| 9644 case "SVGFEOffsetElement": |
| 9645 |
| 9646 return new SVGFEOffsetElementWrappingImplementation._wrap$ctor(raw); |
| 9647 |
| 9648 case "SVGFEPointLightElement": |
| 9649 |
| 9650 return new SVGFEPointLightElementWrappingImplementation._wrap$ctor(raw); |
| 9651 |
| 9652 case "SVGFESpecularLightingElement": |
| 9653 |
| 9654 return new SVGFESpecularLightingElementWrappingImplementation._wrap$ctor(r
aw); |
| 9655 |
| 9656 case "SVGFESpotLightElement": |
| 9657 |
| 9658 return new SVGFESpotLightElementWrappingImplementation._wrap$ctor(raw); |
| 9659 |
| 9660 case "SVGFETileElement": |
| 9661 |
| 9662 return new SVGFETileElementWrappingImplementation._wrap$ctor(raw); |
| 9663 |
| 9664 case "SVGFETurbulenceElement": |
| 9665 |
| 9666 return new SVGFETurbulenceElementWrappingImplementation._wrap$ctor(raw); |
| 9667 |
| 9668 case "SVGFilterElement": |
| 9669 |
| 9670 return new SVGFilterElementWrappingImplementation._wrap$ctor(raw); |
| 9671 |
| 9672 case "SVGFontElement": |
| 9673 |
| 9674 return new SVGFontElementWrappingImplementation._wrap$ctor(raw); |
| 9675 |
| 9676 case "SVGFontFaceElement": |
| 9677 |
| 9678 return new SVGFontFaceElementWrappingImplementation._wrap$ctor(raw); |
| 9679 |
| 9680 case "SVGFontFaceFormatElement": |
| 9681 |
| 9682 return new SVGFontFaceFormatElementWrappingImplementation._wrap$ctor(raw); |
| 9683 |
| 9684 case "SVGFontFaceNameElement": |
| 9685 |
| 9686 return new SVGFontFaceNameElementWrappingImplementation._wrap$ctor(raw); |
| 9687 |
| 9688 case "SVGFontFaceSrcElement": |
| 9689 |
| 9690 return new SVGFontFaceSrcElementWrappingImplementation._wrap$ctor(raw); |
| 9691 |
| 9692 case "SVGFontFaceUriElement": |
| 9693 |
| 9694 return new SVGFontFaceUriElementWrappingImplementation._wrap$ctor(raw); |
| 9695 |
| 9696 case "SVGForeignObjectElement": |
| 9697 |
| 9698 return new SVGForeignObjectElementWrappingImplementation._wrap$ctor(raw); |
| 9699 |
| 9700 case "SVGGElement": |
| 9701 |
| 9702 return new SVGGElementWrappingImplementation._wrap$ctor(raw); |
| 9703 |
| 9704 case "SVGGlyphElement": |
| 9705 |
| 9706 return new SVGGlyphElementWrappingImplementation._wrap$ctor(raw); |
| 9707 |
| 9708 case "SVGGlyphRefElement": |
| 9709 |
| 9710 return new SVGGlyphRefElementWrappingImplementation._wrap$ctor(raw); |
| 9711 |
| 9712 case "SVGGradientElement": |
| 9713 |
| 9714 return new SVGGradientElementWrappingImplementation._wrap$ctor(raw); |
| 9715 |
| 9716 case "SVGHKernElement": |
| 9717 |
| 9718 return new SVGHKernElementWrappingImplementation._wrap$ctor(raw); |
| 9719 |
| 9720 case "SVGImageElement": |
| 9721 |
| 9722 return new SVGImageElementWrappingImplementation._wrap$ctor(raw); |
| 9723 |
| 9724 case "SVGLineElement": |
| 9725 |
| 9726 return new SVGLineElementWrappingImplementation._wrap$ctor(raw); |
| 9727 |
| 9728 case "SVGLinearGradientElement": |
| 9729 |
| 9730 return new SVGLinearGradientElementWrappingImplementation._wrap$ctor(raw); |
| 9731 |
| 9732 case "SVGMPathElement": |
| 9733 |
| 9734 return new SVGMPathElementWrappingImplementation._wrap$ctor(raw); |
| 9735 |
| 9736 case "SVGMarkerElement": |
| 9737 |
| 9738 return new SVGMarkerElementWrappingImplementation._wrap$ctor(raw); |
| 9739 |
| 9740 case "SVGMaskElement": |
| 9741 |
| 9742 return new SVGMaskElementWrappingImplementation._wrap$ctor(raw); |
| 9743 |
| 9744 case "SVGMetadataElement": |
| 9745 |
| 9746 return new SVGMetadataElementWrappingImplementation._wrap$ctor(raw); |
| 9747 |
| 9748 case "SVGMissingGlyphElement": |
| 9749 |
| 9750 return new SVGMissingGlyphElementWrappingImplementation._wrap$ctor(raw); |
| 9751 |
| 9752 case "SVGPathElement": |
| 9753 |
| 9754 return new SVGPathElementWrappingImplementation._wrap$ctor(raw); |
| 9755 |
| 9756 case "SVGPatternElement": |
| 9757 |
| 9758 return new SVGPatternElementWrappingImplementation._wrap$ctor(raw); |
| 9759 |
| 9760 case "SVGPolygonElement": |
| 9761 |
| 9762 return new SVGPolygonElementWrappingImplementation._wrap$ctor(raw); |
| 9763 |
| 9764 case "SVGPolylineElement": |
| 9765 |
| 9766 return new SVGPolylineElementWrappingImplementation._wrap$ctor(raw); |
| 9767 |
| 9768 case "SVGRadialGradientElement": |
| 9769 |
| 9770 return new SVGRadialGradientElementWrappingImplementation._wrap$ctor(raw); |
| 9771 |
| 9772 case "SVGRectElement": |
| 9773 |
| 9774 return new SVGRectElementWrappingImplementation._wrap$ctor(raw); |
| 9775 |
| 9776 case "SVGSVGElement": |
| 9777 |
| 9778 return new SVGSVGElementWrappingImplementation._wrap$ctor(raw); |
| 9779 |
| 9780 case "SVGScriptElement": |
| 9781 |
| 9782 return new SVGScriptElementWrappingImplementation._wrap$ctor(raw); |
| 9783 |
| 9784 case "SVGSetElement": |
| 9785 |
| 9786 return new SVGSetElementWrappingImplementation._wrap$ctor(raw); |
| 9787 |
| 9788 case "SVGStopElement": |
| 9789 |
| 9790 return new SVGStopElementWrappingImplementation._wrap$ctor(raw); |
| 9791 |
| 9792 case "SVGStyleElement": |
| 9793 |
| 9794 return new SVGStyleElementWrappingImplementation._wrap$ctor(raw); |
| 9795 |
| 9796 case "SVGSwitchElement": |
| 9797 |
| 9798 return new SVGSwitchElementWrappingImplementation._wrap$ctor(raw); |
| 9799 |
| 9800 case "SVGSymbolElement": |
| 9801 |
| 9802 return new SVGSymbolElementWrappingImplementation._wrap$ctor(raw); |
| 9803 |
| 9804 case "SVGTRefElement": |
| 9805 |
| 9806 return new SVGTRefElementWrappingImplementation._wrap$ctor(raw); |
| 9807 |
| 9808 case "SVGTSpanElement": |
| 9809 |
| 9810 return new SVGTSpanElementWrappingImplementation._wrap$ctor(raw); |
| 9811 |
| 9812 case "SVGTextContentElement": |
| 9813 |
| 9814 return new SVGTextContentElementWrappingImplementation._wrap$ctor(raw); |
| 9815 |
| 9816 case "SVGTextElement": |
| 9817 |
| 9818 return new SVGTextElementWrappingImplementation._wrap$ctor(raw); |
| 9819 |
| 9820 case "SVGTextPathElement": |
| 9821 |
| 9822 return new SVGTextPathElementWrappingImplementation._wrap$ctor(raw); |
| 9823 |
| 9824 case "SVGTextPositioningElement": |
| 9825 |
| 9826 return new SVGTextPositioningElementWrappingImplementation._wrap$ctor(raw)
; |
| 9827 |
| 9828 case "SVGTitleElement": |
| 9829 |
| 9830 return new SVGTitleElementWrappingImplementation._wrap$ctor(raw); |
| 9831 |
| 9832 case "SVGUseElement": |
| 9833 |
| 9834 return new SVGUseElementWrappingImplementation._wrap$ctor(raw); |
| 9835 |
| 9836 case "SVGVKernElement": |
| 9837 |
| 9838 return new SVGVKernElementWrappingImplementation._wrap$ctor(raw); |
| 9839 |
| 9840 case "SVGViewElement": |
| 9841 |
| 9842 return new SVGViewElementWrappingImplementation._wrap$ctor(raw); |
| 9843 |
| 9844 case "HTMLScriptElement": |
| 9845 |
| 9846 return new ScriptElementWrappingImplementation._wrap$ctor(raw); |
| 9847 |
| 9848 case "HTMLSelectElement": |
| 9849 |
| 9850 return new SelectElementWrappingImplementation._wrap$ctor(raw); |
| 9851 |
| 9852 case "SharedWorker": |
| 9853 |
| 9854 return new SharedWorkerWrappingImplementation._wrap$ctor(raw); |
| 9855 |
| 9856 case "HTMLSourceElement": |
| 9857 |
| 9858 return new SourceElementWrappingImplementation._wrap$ctor(raw); |
| 9859 |
| 9860 case "HTMLSpanElement": |
| 9861 |
| 9862 return new SpanElementWrappingImplementation._wrap$ctor(raw); |
| 9863 |
| 9864 case "HTMLStyleElement": |
| 9865 |
| 9866 return new StyleElementWrappingImplementation._wrap$ctor(raw); |
| 9867 |
| 9868 case "HTMLTableCaptionElement": |
| 9869 |
| 9870 return new TableCaptionElementWrappingImplementation._wrap$ctor(raw); |
| 9871 |
| 9872 case "HTMLTableCellElement": |
| 9873 |
| 9874 return new TableCellElementWrappingImplementation._wrap$ctor(raw); |
| 9875 |
| 9876 case "HTMLTableColElement": |
| 9877 |
| 9878 return new TableColElementWrappingImplementation._wrap$ctor(raw); |
| 9879 |
| 9880 case "HTMLTableElement": |
| 9881 |
| 9882 return new TableElementWrappingImplementation._wrap$ctor(raw); |
| 9883 |
| 9884 case "HTMLTableRowElement": |
| 9885 |
| 9886 return new TableRowElementWrappingImplementation._wrap$ctor(raw); |
| 9887 |
| 9888 case "HTMLTableSectionElement": |
| 9889 |
| 9890 return new TableSectionElementWrappingImplementation._wrap$ctor(raw); |
| 9891 |
| 9892 case "Text": |
| 9893 |
| 9894 return new TextWrappingImplementation._wrap$ctor(raw); |
| 9895 |
| 9896 case "HTMLTextAreaElement": |
| 9897 |
| 9898 return new TextAreaElementWrappingImplementation._wrap$ctor(raw); |
| 9899 |
| 9900 case "HTMLTitleElement": |
| 9901 |
| 9902 return new TitleElementWrappingImplementation._wrap$ctor(raw); |
| 9903 |
| 9904 case "HTMLTrackElement": |
| 9905 |
| 9906 return new TrackElementWrappingImplementation._wrap$ctor(raw); |
| 9907 |
| 9908 case "HTMLUListElement": |
| 9909 |
| 9910 return new UListElementWrappingImplementation._wrap$ctor(raw); |
| 9911 |
| 9912 case "HTMLUnknownElement": |
| 9913 |
| 9914 return new UnknownElementWrappingImplementation._wrap$ctor(raw); |
| 9915 |
| 9916 case "HTMLVideoElement": |
| 9917 |
| 9918 return new VideoElementWrappingImplementation._wrap$ctor(raw); |
| 9919 |
| 9920 case "WebSocket": |
| 9921 |
| 9922 return new WebSocketWrappingImplementation._wrap$ctor(raw); |
| 9923 |
| 9924 case "Window": |
| 9925 |
| 9926 return new WindowWrappingImplementation._wrap$ctor(raw); |
| 9927 |
| 9928 case "Worker": |
| 9929 |
| 9930 return new WorkerWrappingImplementation._wrap$ctor(raw); |
| 9931 |
| 9932 case "XMLHttpRequest": |
| 9933 |
| 9934 return new XMLHttpRequestWrappingImplementation._wrap$ctor(raw); |
| 9935 |
| 9936 case "XMLHttpRequestUpload": |
| 9937 |
| 9938 return new XMLHttpRequestUploadWrappingImplementation._wrap$ctor(raw); |
| 9939 |
| 9940 default: |
| 9941 |
| 9942 $throw(new UnsupportedOperationException("Unknown type:" + raw.toString$0(
))); |
| 9943 |
| 9944 } |
| 9945 } |
| 9946 LevelDom.wrapHistory = function(raw) { |
| 9947 return raw == null ? null : raw.get$dartObjectLocalStorage() != null ? raw.get
$dartObjectLocalStorage() : new HistoryWrappingImplementation._wrap$ctor(raw); |
| 9948 } |
| 9949 LevelDom.wrapLocation = function(raw) { |
| 9950 return raw == null ? null : raw.get$dartObjectLocalStorage() != null ? raw.get
$dartObjectLocalStorage() : new LocationWrappingImplementation._wrap$ctor(raw); |
| 9951 } |
| 9952 LevelDom.wrapNavigator = function(raw) { |
| 9953 return raw == null ? null : raw.get$dartObjectLocalStorage() != null ? raw.get
$dartObjectLocalStorage() : new NavigatorWrappingImplementation._wrap$ctor(raw); |
| 9954 } |
| 9955 LevelDom.wrapNode = function(raw) { |
| 9956 if (raw == null) { |
| 9957 return null; |
| 9958 } |
| 9959 if (raw.get$dartObjectLocalStorage() != null) { |
| 9960 return raw.get$dartObjectLocalStorage(); |
| 9961 } |
| 9962 switch (raw.get$typeName()) { |
| 9963 case "HTMLAnchorElement": |
| 9964 |
| 9965 return new AnchorElementWrappingImplementation._wrap$ctor(raw); |
| 9966 |
| 9967 case "HTMLAreaElement": |
| 9968 |
| 9969 return new AreaElementWrappingImplementation._wrap$ctor(raw); |
| 9970 |
| 9971 case "HTMLAudioElement": |
| 9972 |
| 9973 return new AudioElementWrappingImplementation._wrap$ctor(raw); |
| 9974 |
| 9975 case "HTMLBRElement": |
| 9976 |
| 9977 return new BRElementWrappingImplementation._wrap$ctor(raw); |
| 9978 |
| 9979 case "HTMLBaseElement": |
| 9980 |
| 9981 return new BaseElementWrappingImplementation._wrap$ctor(raw); |
| 9982 |
| 9983 case "HTMLBodyElement": |
| 9984 |
| 9985 return new BodyElementWrappingImplementation._wrap$ctor(raw); |
| 9986 |
| 9987 case "HTMLButtonElement": |
| 9988 |
| 9989 return new ButtonElementWrappingImplementation._wrap$ctor(raw); |
| 9990 |
| 9991 case "CDATASection": |
| 9992 |
| 9993 return new CDATASectionWrappingImplementation._wrap$ctor(raw); |
| 9994 |
| 9995 case "HTMLCanvasElement": |
| 9996 |
| 9997 return new CanvasElementWrappingImplementation._wrap$ctor(raw); |
| 9998 |
| 9999 case "CharacterData": |
| 10000 |
| 10001 return new CharacterDataWrappingImplementation._wrap$ctor(raw); |
| 10002 |
| 10003 case "Comment": |
| 10004 |
| 10005 return new CommentWrappingImplementation._wrap$ctor(raw); |
| 10006 |
| 10007 case "HTMLDListElement": |
| 10008 |
| 10009 return new DListElementWrappingImplementation._wrap$ctor(raw); |
| 10010 |
| 10011 case "HTMLDataListElement": |
| 10012 |
| 10013 return new DataListElementWrappingImplementation._wrap$ctor(raw); |
| 10014 |
| 10015 case "HTMLDetailsElement": |
| 10016 |
| 10017 return new DetailsElementWrappingImplementation._wrap$ctor(raw); |
| 10018 |
| 10019 case "HTMLDivElement": |
| 10020 |
| 10021 return new DivElementWrappingImplementation._wrap$ctor(raw); |
| 10022 |
| 10023 case "HTMLDocument": |
| 10024 |
| 10025 return new DocumentWrappingImplementation._wrap$ctor(raw, raw.get$document
Element()); |
| 10026 |
| 10027 case "DocumentFragment": |
| 10028 |
| 10029 return new DocumentFragmentWrappingImplementation._wrap$ctor(raw); |
| 10030 |
| 10031 case "HTMLElement": |
| 10032 |
| 10033 return new ElementWrappingImplementation._wrap$ctor(raw); |
| 10034 |
| 10035 case "HTMLEmbedElement": |
| 10036 |
| 10037 return new EmbedElementWrappingImplementation._wrap$ctor(raw); |
| 10038 |
| 10039 case "Entity": |
| 10040 |
| 10041 return new EntityWrappingImplementation._wrap$ctor(raw); |
| 10042 |
| 10043 case "EntityReference": |
| 10044 |
| 10045 return new EntityReferenceWrappingImplementation._wrap$ctor(raw); |
| 10046 |
| 10047 case "HTMLFieldSetElement": |
| 10048 |
| 10049 return new FieldSetElementWrappingImplementation._wrap$ctor(raw); |
| 10050 |
| 10051 case "HTMLFontElement": |
| 10052 |
| 10053 return new FontElementWrappingImplementation._wrap$ctor(raw); |
| 10054 |
| 10055 case "HTMLFormElement": |
| 10056 |
| 10057 return new FormElementWrappingImplementation._wrap$ctor(raw); |
| 10058 |
| 10059 case "HTMLHRElement": |
| 10060 |
| 10061 return new HRElementWrappingImplementation._wrap$ctor(raw); |
| 10062 |
| 10063 case "HTMLHeadElement": |
| 10064 |
| 10065 return new HeadElementWrappingImplementation._wrap$ctor(raw); |
| 10066 |
| 10067 case "HTMLHeadingElement": |
| 10068 |
| 10069 return new HeadingElementWrappingImplementation._wrap$ctor(raw); |
| 10070 |
| 10071 case "HTMLHtmlElement": |
| 10072 |
| 10073 return new DocumentWrappingImplementation._wrap$ctor(raw.get$parentNode(),
raw); |
| 10074 |
| 10075 case "HTMLIFrameElement": |
| 10076 |
| 10077 return new IFrameElementWrappingImplementation._wrap$ctor(raw); |
| 10078 |
| 10079 case "HTMLImageElement": |
| 10080 |
| 10081 return new ImageElementWrappingImplementation._wrap$ctor(raw); |
| 10082 |
| 10083 case "HTMLInputElement": |
| 10084 |
| 10085 return new InputElementWrappingImplementation._wrap$ctor(raw); |
| 10086 |
| 10087 case "HTMLKeygenElement": |
| 10088 |
| 10089 return new KeygenElementWrappingImplementation._wrap$ctor(raw); |
| 10090 |
| 10091 case "HTMLLIElement": |
| 10092 |
| 10093 return new LIElementWrappingImplementation._wrap$ctor(raw); |
| 10094 |
| 10095 case "HTMLLabelElement": |
| 10096 |
| 10097 return new LabelElementWrappingImplementation._wrap$ctor(raw); |
| 10098 |
| 10099 case "HTMLLegendElement": |
| 10100 |
| 10101 return new LegendElementWrappingImplementation._wrap$ctor(raw); |
| 10102 |
| 10103 case "HTMLLinkElement": |
| 10104 |
| 10105 return new LinkElementWrappingImplementation._wrap$ctor(raw); |
| 10106 |
| 10107 case "HTMLMapElement": |
| 10108 |
| 10109 return new MapElementWrappingImplementation._wrap$ctor(raw); |
| 10110 |
| 10111 case "HTMLMarqueeElement": |
| 10112 |
| 10113 return new MarqueeElementWrappingImplementation._wrap$ctor(raw); |
| 10114 |
| 10115 case "HTMLMediaElement": |
| 10116 |
| 10117 return new MediaElementWrappingImplementation._wrap$ctor(raw); |
| 10118 |
| 10119 case "HTMLMenuElement": |
| 10120 |
| 10121 return new MenuElementWrappingImplementation._wrap$ctor(raw); |
| 10122 |
| 10123 case "HTMLMetaElement": |
| 10124 |
| 10125 return new MetaElementWrappingImplementation._wrap$ctor(raw); |
| 10126 |
| 10127 case "HTMLMeterElement": |
| 10128 |
| 10129 return new MeterElementWrappingImplementation._wrap$ctor(raw); |
| 10130 |
| 10131 case "HTMLModElement": |
| 10132 |
| 10133 return new ModElementWrappingImplementation._wrap$ctor(raw); |
| 10134 |
| 10135 case "Node": |
| 10136 |
| 10137 return new NodeWrappingImplementation._wrap$ctor(raw); |
| 10138 |
| 10139 case "Notation": |
| 10140 |
| 10141 return new NotationWrappingImplementation._wrap$ctor(raw); |
| 10142 |
| 10143 case "HTMLOListElement": |
| 10144 |
| 10145 return new OListElementWrappingImplementation._wrap$ctor(raw); |
| 10146 |
| 10147 case "HTMLObjectElement": |
| 10148 |
| 10149 return new ObjectElementWrappingImplementation._wrap$ctor(raw); |
| 10150 |
| 10151 case "HTMLOptGroupElement": |
| 10152 |
| 10153 return new OptGroupElementWrappingImplementation._wrap$ctor(raw); |
| 10154 |
| 10155 case "HTMLOptionElement": |
| 10156 |
| 10157 return new OptionElementWrappingImplementation._wrap$ctor(raw); |
| 10158 |
| 10159 case "HTMLOutputElement": |
| 10160 |
| 10161 return new OutputElementWrappingImplementation._wrap$ctor(raw); |
| 10162 |
| 10163 case "HTMLParagraphElement": |
| 10164 |
| 10165 return new ParagraphElementWrappingImplementation._wrap$ctor(raw); |
| 10166 |
| 10167 case "HTMLParamElement": |
| 10168 |
| 10169 return new ParamElementWrappingImplementation._wrap$ctor(raw); |
| 10170 |
| 10171 case "HTMLPreElement": |
| 10172 |
| 10173 return new PreElementWrappingImplementation._wrap$ctor(raw); |
| 10174 |
| 10175 case "ProcessingInstruction": |
| 10176 |
| 10177 return new ProcessingInstructionWrappingImplementation._wrap$ctor(raw); |
| 10178 |
| 10179 case "HTMLProgressElement": |
| 10180 |
| 10181 return new ProgressElementWrappingImplementation._wrap$ctor(raw); |
| 10182 |
| 10183 case "HTMLQuoteElement": |
| 10184 |
| 10185 return new QuoteElementWrappingImplementation._wrap$ctor(raw); |
| 10186 |
| 10187 case "SVGAElement": |
| 10188 |
| 10189 return new SVGAElementWrappingImplementation._wrap$ctor(raw); |
| 10190 |
| 10191 case "SVGAltGlyphDefElement": |
| 10192 |
| 10193 return new SVGAltGlyphDefElementWrappingImplementation._wrap$ctor(raw); |
| 10194 |
| 10195 case "SVGAltGlyphElement": |
| 10196 |
| 10197 return new SVGAltGlyphElementWrappingImplementation._wrap$ctor(raw); |
| 10198 |
| 10199 case "SVGAltGlyphItemElement": |
| 10200 |
| 10201 return new SVGAltGlyphItemElementWrappingImplementation._wrap$ctor(raw); |
| 10202 |
| 10203 case "SVGAnimateColorElement": |
| 10204 |
| 10205 return new SVGAnimateColorElementWrappingImplementation._wrap$ctor(raw); |
| 10206 |
| 10207 case "SVGAnimateElement": |
| 10208 |
| 10209 return new SVGAnimateElementWrappingImplementation._wrap$ctor(raw); |
| 10210 |
| 10211 case "SVGAnimateMotionElement": |
| 10212 |
| 10213 return new SVGAnimateMotionElementWrappingImplementation._wrap$ctor(raw); |
| 10214 |
| 10215 case "SVGAnimateTransformElement": |
| 10216 |
| 10217 return new SVGAnimateTransformElementWrappingImplementation._wrap$ctor(raw
); |
| 10218 |
| 10219 case "SVGAnimationElement": |
| 10220 |
| 10221 return new SVGAnimationElementWrappingImplementation._wrap$ctor(raw); |
| 10222 |
| 10223 case "SVGCircleElement": |
| 10224 |
| 10225 return new SVGCircleElementWrappingImplementation._wrap$ctor(raw); |
| 10226 |
| 10227 case "SVGClipPathElement": |
| 10228 |
| 10229 return new SVGClipPathElementWrappingImplementation._wrap$ctor(raw); |
| 10230 |
| 10231 case "SVGComponentTransferFunctionElement": |
| 10232 |
| 10233 return new SVGComponentTransferFunctionElementWrappingImplementation._wrap
$ctor(raw); |
| 10234 |
| 10235 case "SVGCursorElement": |
| 10236 |
| 10237 return new SVGCursorElementWrappingImplementation._wrap$ctor(raw); |
| 10238 |
| 10239 case "SVGDefsElement": |
| 10240 |
| 10241 return new SVGDefsElementWrappingImplementation._wrap$ctor(raw); |
| 10242 |
| 10243 case "SVGDescElement": |
| 10244 |
| 10245 return new SVGDescElementWrappingImplementation._wrap$ctor(raw); |
| 10246 |
| 10247 case "SVGDocument": |
| 10248 |
| 10249 return new SVGDocumentWrappingImplementation._wrap$ctor(raw); |
| 10250 |
| 10251 case "SVGElement": |
| 10252 |
| 10253 return new SVGElementWrappingImplementation._wrap$ctor(raw); |
| 10254 |
| 10255 case "SVGEllipseElement": |
| 10256 |
| 10257 return new SVGEllipseElementWrappingImplementation._wrap$ctor(raw); |
| 10258 |
| 10259 case "SVGFEBlendElement": |
| 10260 |
| 10261 return new SVGFEBlendElementWrappingImplementation._wrap$ctor(raw); |
| 10262 |
| 10263 case "SVGFEColorMatrixElement": |
| 10264 |
| 10265 return new SVGFEColorMatrixElementWrappingImplementation._wrap$ctor(raw); |
| 10266 |
| 10267 case "SVGFEComponentTransferElement": |
| 10268 |
| 10269 return new SVGFEComponentTransferElementWrappingImplementation._wrap$ctor(
raw); |
| 10270 |
| 10271 case "SVGFEConvolveMatrixElement": |
| 10272 |
| 10273 return new SVGFEConvolveMatrixElementWrappingImplementation._wrap$ctor(raw
); |
| 10274 |
| 10275 case "SVGFEDiffuseLightingElement": |
| 10276 |
| 10277 return new SVGFEDiffuseLightingElementWrappingImplementation._wrap$ctor(ra
w); |
| 10278 |
| 10279 case "SVGFEDisplacementMapElement": |
| 10280 |
| 10281 return new SVGFEDisplacementMapElementWrappingImplementation._wrap$ctor(ra
w); |
| 10282 |
| 10283 case "SVGFEDistantLightElement": |
| 10284 |
| 10285 return new SVGFEDistantLightElementWrappingImplementation._wrap$ctor(raw); |
| 10286 |
| 10287 case "SVGFEDropShadowElement": |
| 10288 |
| 10289 return new SVGFEDropShadowElementWrappingImplementation._wrap$ctor(raw); |
| 10290 |
| 10291 case "SVGFEFloodElement": |
| 10292 |
| 10293 return new SVGFEFloodElementWrappingImplementation._wrap$ctor(raw); |
| 10294 |
| 10295 case "SVGFEFuncAElement": |
| 10296 |
| 10297 return new SVGFEFuncAElementWrappingImplementation._wrap$ctor(raw); |
| 10298 |
| 10299 case "SVGFEFuncBElement": |
| 10300 |
| 10301 return new SVGFEFuncBElementWrappingImplementation._wrap$ctor(raw); |
| 10302 |
| 10303 case "SVGFEFuncGElement": |
| 10304 |
| 10305 return new SVGFEFuncGElementWrappingImplementation._wrap$ctor(raw); |
| 10306 |
| 10307 case "SVGFEFuncRElement": |
| 10308 |
| 10309 return new SVGFEFuncRElementWrappingImplementation._wrap$ctor(raw); |
| 10310 |
| 10311 case "SVGFEGaussianBlurElement": |
| 10312 |
| 10313 return new SVGFEGaussianBlurElementWrappingImplementation._wrap$ctor(raw); |
| 10314 |
| 10315 case "SVGFEImageElement": |
| 10316 |
| 10317 return new SVGFEImageElementWrappingImplementation._wrap$ctor(raw); |
| 10318 |
| 10319 case "SVGFEMergeElement": |
| 10320 |
| 10321 return new SVGFEMergeElementWrappingImplementation._wrap$ctor(raw); |
| 10322 |
| 10323 case "SVGFEMergeNodeElement": |
| 10324 |
| 10325 return new SVGFEMergeNodeElementWrappingImplementation._wrap$ctor(raw); |
| 10326 |
| 10327 case "SVGFEOffsetElement": |
| 10328 |
| 10329 return new SVGFEOffsetElementWrappingImplementation._wrap$ctor(raw); |
| 10330 |
| 10331 case "SVGFEPointLightElement": |
| 10332 |
| 10333 return new SVGFEPointLightElementWrappingImplementation._wrap$ctor(raw); |
| 10334 |
| 10335 case "SVGFESpecularLightingElement": |
| 10336 |
| 10337 return new SVGFESpecularLightingElementWrappingImplementation._wrap$ctor(r
aw); |
| 10338 |
| 10339 case "SVGFESpotLightElement": |
| 10340 |
| 10341 return new SVGFESpotLightElementWrappingImplementation._wrap$ctor(raw); |
| 10342 |
| 10343 case "SVGFETileElement": |
| 10344 |
| 10345 return new SVGFETileElementWrappingImplementation._wrap$ctor(raw); |
| 10346 |
| 10347 case "SVGFETurbulenceElement": |
| 10348 |
| 10349 return new SVGFETurbulenceElementWrappingImplementation._wrap$ctor(raw); |
| 10350 |
| 10351 case "SVGFilterElement": |
| 10352 |
| 10353 return new SVGFilterElementWrappingImplementation._wrap$ctor(raw); |
| 10354 |
| 10355 case "SVGFontElement": |
| 10356 |
| 10357 return new SVGFontElementWrappingImplementation._wrap$ctor(raw); |
| 10358 |
| 10359 case "SVGFontFaceElement": |
| 10360 |
| 10361 return new SVGFontFaceElementWrappingImplementation._wrap$ctor(raw); |
| 10362 |
| 10363 case "SVGFontFaceFormatElement": |
| 10364 |
| 10365 return new SVGFontFaceFormatElementWrappingImplementation._wrap$ctor(raw); |
| 10366 |
| 10367 case "SVGFontFaceNameElement": |
| 10368 |
| 10369 return new SVGFontFaceNameElementWrappingImplementation._wrap$ctor(raw); |
| 10370 |
| 10371 case "SVGFontFaceSrcElement": |
| 10372 |
| 10373 return new SVGFontFaceSrcElementWrappingImplementation._wrap$ctor(raw); |
| 10374 |
| 10375 case "SVGFontFaceUriElement": |
| 10376 |
| 10377 return new SVGFontFaceUriElementWrappingImplementation._wrap$ctor(raw); |
| 10378 |
| 10379 case "SVGForeignObjectElement": |
| 10380 |
| 10381 return new SVGForeignObjectElementWrappingImplementation._wrap$ctor(raw); |
| 10382 |
| 10383 case "SVGGElement": |
| 10384 |
| 10385 return new SVGGElementWrappingImplementation._wrap$ctor(raw); |
| 10386 |
| 10387 case "SVGGlyphElement": |
| 10388 |
| 10389 return new SVGGlyphElementWrappingImplementation._wrap$ctor(raw); |
| 10390 |
| 10391 case "SVGGlyphRefElement": |
| 10392 |
| 10393 return new SVGGlyphRefElementWrappingImplementation._wrap$ctor(raw); |
| 10394 |
| 10395 case "SVGGradientElement": |
| 10396 |
| 10397 return new SVGGradientElementWrappingImplementation._wrap$ctor(raw); |
| 10398 |
| 10399 case "SVGHKernElement": |
| 10400 |
| 10401 return new SVGHKernElementWrappingImplementation._wrap$ctor(raw); |
| 10402 |
| 10403 case "SVGImageElement": |
| 10404 |
| 10405 return new SVGImageElementWrappingImplementation._wrap$ctor(raw); |
| 10406 |
| 10407 case "SVGLineElement": |
| 10408 |
| 10409 return new SVGLineElementWrappingImplementation._wrap$ctor(raw); |
| 10410 |
| 10411 case "SVGLinearGradientElement": |
| 10412 |
| 10413 return new SVGLinearGradientElementWrappingImplementation._wrap$ctor(raw); |
| 10414 |
| 10415 case "SVGMPathElement": |
| 10416 |
| 10417 return new SVGMPathElementWrappingImplementation._wrap$ctor(raw); |
| 10418 |
| 10419 case "SVGMarkerElement": |
| 10420 |
| 10421 return new SVGMarkerElementWrappingImplementation._wrap$ctor(raw); |
| 10422 |
| 10423 case "SVGMaskElement": |
| 10424 |
| 10425 return new SVGMaskElementWrappingImplementation._wrap$ctor(raw); |
| 10426 |
| 10427 case "SVGMetadataElement": |
| 10428 |
| 10429 return new SVGMetadataElementWrappingImplementation._wrap$ctor(raw); |
| 10430 |
| 10431 case "SVGMissingGlyphElement": |
| 10432 |
| 10433 return new SVGMissingGlyphElementWrappingImplementation._wrap$ctor(raw); |
| 10434 |
| 10435 case "SVGPathElement": |
| 10436 |
| 10437 return new SVGPathElementWrappingImplementation._wrap$ctor(raw); |
| 10438 |
| 10439 case "SVGPatternElement": |
| 10440 |
| 10441 return new SVGPatternElementWrappingImplementation._wrap$ctor(raw); |
| 10442 |
| 10443 case "SVGPolygonElement": |
| 10444 |
| 10445 return new SVGPolygonElementWrappingImplementation._wrap$ctor(raw); |
| 10446 |
| 10447 case "SVGPolylineElement": |
| 10448 |
| 10449 return new SVGPolylineElementWrappingImplementation._wrap$ctor(raw); |
| 10450 |
| 10451 case "SVGRadialGradientElement": |
| 10452 |
| 10453 return new SVGRadialGradientElementWrappingImplementation._wrap$ctor(raw); |
| 10454 |
| 10455 case "SVGRectElement": |
| 10456 |
| 10457 return new SVGRectElementWrappingImplementation._wrap$ctor(raw); |
| 10458 |
| 10459 case "SVGSVGElement": |
| 10460 |
| 10461 return new SVGSVGElementWrappingImplementation._wrap$ctor(raw); |
| 10462 |
| 10463 case "SVGScriptElement": |
| 10464 |
| 10465 return new SVGScriptElementWrappingImplementation._wrap$ctor(raw); |
| 10466 |
| 10467 case "SVGSetElement": |
| 10468 |
| 10469 return new SVGSetElementWrappingImplementation._wrap$ctor(raw); |
| 10470 |
| 10471 case "SVGStopElement": |
| 10472 |
| 10473 return new SVGStopElementWrappingImplementation._wrap$ctor(raw); |
| 10474 |
| 10475 case "SVGStyleElement": |
| 10476 |
| 10477 return new SVGStyleElementWrappingImplementation._wrap$ctor(raw); |
| 10478 |
| 10479 case "SVGSwitchElement": |
| 10480 |
| 10481 return new SVGSwitchElementWrappingImplementation._wrap$ctor(raw); |
| 10482 |
| 10483 case "SVGSymbolElement": |
| 10484 |
| 10485 return new SVGSymbolElementWrappingImplementation._wrap$ctor(raw); |
| 10486 |
| 10487 case "SVGTRefElement": |
| 10488 |
| 10489 return new SVGTRefElementWrappingImplementation._wrap$ctor(raw); |
| 10490 |
| 10491 case "SVGTSpanElement": |
| 10492 |
| 10493 return new SVGTSpanElementWrappingImplementation._wrap$ctor(raw); |
| 10494 |
| 10495 case "SVGTextContentElement": |
| 10496 |
| 10497 return new SVGTextContentElementWrappingImplementation._wrap$ctor(raw); |
| 10498 |
| 10499 case "SVGTextElement": |
| 10500 |
| 10501 return new SVGTextElementWrappingImplementation._wrap$ctor(raw); |
| 10502 |
| 10503 case "SVGTextPathElement": |
| 10504 |
| 10505 return new SVGTextPathElementWrappingImplementation._wrap$ctor(raw); |
| 10506 |
| 10507 case "SVGTextPositioningElement": |
| 10508 |
| 10509 return new SVGTextPositioningElementWrappingImplementation._wrap$ctor(raw)
; |
| 10510 |
| 10511 case "SVGTitleElement": |
| 10512 |
| 10513 return new SVGTitleElementWrappingImplementation._wrap$ctor(raw); |
| 10514 |
| 10515 case "SVGUseElement": |
| 10516 |
| 10517 return new SVGUseElementWrappingImplementation._wrap$ctor(raw); |
| 10518 |
| 10519 case "SVGVKernElement": |
| 10520 |
| 10521 return new SVGVKernElementWrappingImplementation._wrap$ctor(raw); |
| 10522 |
| 10523 case "SVGViewElement": |
| 10524 |
| 10525 return new SVGViewElementWrappingImplementation._wrap$ctor(raw); |
| 10526 |
| 10527 case "HTMLScriptElement": |
| 10528 |
| 10529 return new ScriptElementWrappingImplementation._wrap$ctor(raw); |
| 10530 |
| 10531 case "HTMLSelectElement": |
| 10532 |
| 10533 return new SelectElementWrappingImplementation._wrap$ctor(raw); |
| 10534 |
| 10535 case "HTMLSourceElement": |
| 10536 |
| 10537 return new SourceElementWrappingImplementation._wrap$ctor(raw); |
| 10538 |
| 10539 case "HTMLSpanElement": |
| 10540 |
| 10541 return new SpanElementWrappingImplementation._wrap$ctor(raw); |
| 10542 |
| 10543 case "HTMLStyleElement": |
| 10544 |
| 10545 return new StyleElementWrappingImplementation._wrap$ctor(raw); |
| 10546 |
| 10547 case "HTMLTableCaptionElement": |
| 10548 |
| 10549 return new TableCaptionElementWrappingImplementation._wrap$ctor(raw); |
| 10550 |
| 10551 case "HTMLTableCellElement": |
| 10552 |
| 10553 return new TableCellElementWrappingImplementation._wrap$ctor(raw); |
| 10554 |
| 10555 case "HTMLTableColElement": |
| 10556 |
| 10557 return new TableColElementWrappingImplementation._wrap$ctor(raw); |
| 10558 |
| 10559 case "HTMLTableElement": |
| 10560 |
| 10561 return new TableElementWrappingImplementation._wrap$ctor(raw); |
| 10562 |
| 10563 case "HTMLTableRowElement": |
| 10564 |
| 10565 return new TableRowElementWrappingImplementation._wrap$ctor(raw); |
| 10566 |
| 10567 case "HTMLTableSectionElement": |
| 10568 |
| 10569 return new TableSectionElementWrappingImplementation._wrap$ctor(raw); |
| 10570 |
| 10571 case "Text": |
| 10572 |
| 10573 return new TextWrappingImplementation._wrap$ctor(raw); |
| 10574 |
| 10575 case "HTMLTextAreaElement": |
| 10576 |
| 10577 return new TextAreaElementWrappingImplementation._wrap$ctor(raw); |
| 10578 |
| 10579 case "HTMLTitleElement": |
| 10580 |
| 10581 return new TitleElementWrappingImplementation._wrap$ctor(raw); |
| 10582 |
| 10583 case "HTMLTrackElement": |
| 10584 |
| 10585 return new TrackElementWrappingImplementation._wrap$ctor(raw); |
| 10586 |
| 10587 case "HTMLUListElement": |
| 10588 |
| 10589 return new UListElementWrappingImplementation._wrap$ctor(raw); |
| 10590 |
| 10591 case "HTMLUnknownElement": |
| 10592 |
| 10593 return new UnknownElementWrappingImplementation._wrap$ctor(raw); |
| 10594 |
| 10595 case "HTMLVideoElement": |
| 10596 |
| 10597 return new VideoElementWrappingImplementation._wrap$ctor(raw); |
| 10598 |
| 10599 default: |
| 10600 |
| 10601 $throw(new UnsupportedOperationException("Unknown type:" + raw.toString$0(
))); |
| 10602 |
| 10603 } |
| 10604 } |
| 10605 LevelDom.wrapPoint = function(raw) { |
| 10606 return raw == null ? null : raw.get$dartObjectLocalStorage() != null ? raw.get
$dartObjectLocalStorage() : new PointWrappingImplementation._wrap$ctor(raw); |
| 10607 } |
| 10608 LevelDom.wrapSVGAnimatedEnumeration = function(raw) { |
| 10609 return raw == null ? null : raw.get$dartObjectLocalStorage() != null ? raw.get
$dartObjectLocalStorage() : new SVGAnimatedEnumerationWrappingImplementation._wr
ap$ctor(raw); |
| 10610 } |
| 10611 LevelDom.wrapSVGAnimatedLength = function(raw) { |
| 10612 return raw == null ? null : raw.get$dartObjectLocalStorage() != null ? raw.get
$dartObjectLocalStorage() : new SVGAnimatedLengthWrappingImplementation._wrap$ct
or(raw); |
| 10613 } |
| 10614 LevelDom.wrapSVGAnimatedLengthList = function(raw) { |
| 10615 return raw == null ? null : raw.get$dartObjectLocalStorage() != null ? raw.get
$dartObjectLocalStorage() : new SVGAnimatedLengthListWrappingImplementation._wra
p$ctor(raw); |
| 10616 } |
| 10617 LevelDom.wrapSVGAnimatedNumber = function(raw) { |
| 10618 return raw == null ? null : raw.get$dartObjectLocalStorage() != null ? raw.get
$dartObjectLocalStorage() : new SVGAnimatedNumberWrappingImplementation._wrap$ct
or(raw); |
| 10619 } |
| 10620 LevelDom.wrapSVGAnimatedString = function(raw) { |
| 10621 return raw == null ? null : raw.get$dartObjectLocalStorage() != null ? raw.get
$dartObjectLocalStorage() : new SVGAnimatedStringWrappingImplementation._wrap$ct
or(raw); |
| 10622 } |
| 10623 LevelDom.wrapSVGElementInstance = function(raw) { |
| 10624 return raw == null ? null : raw.get$dartObjectLocalStorage() != null ? raw.get
$dartObjectLocalStorage() : new SVGElementInstanceWrappingImplementation._wrap$c
tor(raw); |
| 10625 } |
| 10626 LevelDom.wrapSVGElementInstanceList = function(raw) { |
| 10627 return raw == null ? null : raw.get$dartObjectLocalStorage() != null ? raw.get
$dartObjectLocalStorage() : new SVGElementInstanceListWrappingImplementation._wr
ap$ctor(raw); |
| 10628 } |
| 10629 LevelDom.wrapSVGLength = function(raw) { |
| 10630 return raw == null ? null : raw.get$dartObjectLocalStorage() != null ? raw.get
$dartObjectLocalStorage() : new SVGLengthWrappingImplementation._wrap$ctor(raw); |
| 10631 } |
| 10632 LevelDom.wrapSVGLengthList = function(raw) { |
| 10633 return raw == null ? null : raw.get$dartObjectLocalStorage() != null ? raw.get
$dartObjectLocalStorage() : new SVGLengthListWrappingImplementation._wrap$ctor(r
aw); |
| 10634 } |
| 10635 LevelDom.wrapScreen = function(raw) { |
| 10636 return raw == null ? null : raw.get$dartObjectLocalStorage() != null ? raw.get
$dartObjectLocalStorage() : new ScreenWrappingImplementation._wrap$ctor(raw); |
| 10637 } |
| 10638 LevelDom.wrapTextMetrics = function(raw) { |
| 10639 return raw == null ? null : raw.get$dartObjectLocalStorage() != null ? raw.get
$dartObjectLocalStorage() : new TextMetricsWrappingImplementation._wrap$ctor(raw
); |
| 10640 } |
| 10641 LevelDom.wrapTouch = function(raw) { |
| 10642 return raw == null ? null : raw.get$dartObjectLocalStorage() != null ? raw.get
$dartObjectLocalStorage() : new TouchWrappingImplementation._wrap$ctor(raw); |
| 10643 } |
| 10644 LevelDom.wrapTouchList = function(raw) { |
| 10645 return raw == null ? null : raw.get$dartObjectLocalStorage() != null ? raw.get
$dartObjectLocalStorage() : new TouchListWrappingImplementation._wrap$ctor(raw); |
| 10646 } |
| 10647 LevelDom.wrapWindow = function(raw) { |
| 10648 return raw == null ? null : raw.get$dartObjectLocalStorage() != null ? raw.get
$dartObjectLocalStorage() : new WindowWrappingImplementation._wrap$ctor(raw); |
| 10649 } |
| 10650 LevelDom.unwrapMaybePrimitive = function(raw) { |
| 10651 return (raw == null || (typeof(raw) == 'string') || (typeof(raw) == 'number')
|| (typeof(raw) == 'boolean')) ? raw : raw.get$_ptr(); |
| 10652 } |
| 10653 LevelDom.unwrap = function(raw) { |
| 10654 return raw == null ? null : raw.get$_ptr(); |
| 10655 } |
| 10656 LevelDom.initialize = function() { |
| 10657 $globals.secretWindow = LevelDom.wrapWindow(get$window()); |
| 10658 $globals.secretDocument = LevelDom.wrapDocument(get$document()); |
| 10659 } |
| 10660 // ********** Code for _Collections ************** |
| 10661 function _Collections() {} |
| 10662 _Collections.forEach = function(iterable, f) { |
| 10663 for (var $$i = iterable.iterator$0(); $$i.hasNext$0(); ) { |
| 10664 var e = $$i.next$0(); |
| 10665 f.call$1(e); |
| 10666 } |
| 10667 } |
| 10668 _Collections.some = function(iterable, f) { |
| 10669 for (var $$i = iterable.iterator$0(); $$i.hasNext$0(); ) { |
| 10670 var e = $$i.next$0(); |
| 10671 if (f.call$1(e)) return true; |
| 10672 } |
| 10673 return false; |
| 10674 } |
| 10675 _Collections.filter = function(source, destination, f) { |
| 10676 for (var $$i = source.iterator$0(); $$i.hasNext$0(); ) { |
| 10677 var e = $$i.next$0(); |
| 10678 if (f.call$1(e)) destination.add$1(e); |
| 10679 } |
| 10680 return destination; |
| 10681 } |
| 10682 // ********** Code for PointFactoryProvider ************** |
| 10683 function PointFactoryProvider() {} |
| 10684 PointFactoryProvider.Point$factory = function(x, y) { |
| 10685 return new PointWrappingImplementation._wrap$ctor(new WebKitPoint(x, y)); |
| 10686 } |
| 10687 // ********** Code for _VariableSizeListIterator_T ************** |
| 10688 $inherits(_VariableSizeListIterator_T, _VariableSizeListIterator); |
| 10689 function _VariableSizeListIterator_T(list) { |
| 10690 this._htmlimpl_list = list; |
| 10691 this._htmlimpl_pos = (0); |
| 10692 } |
| 10693 _VariableSizeListIterator_T.prototype.hasNext = function() { |
| 10694 return this._htmlimpl_list.get$length() > this._htmlimpl_pos; |
| 10695 } |
| 10696 _VariableSizeListIterator_T.prototype.next = function() { |
| 10697 if (!this.hasNext()) { |
| 10698 $throw(const$0001); |
| 10699 } |
| 10700 return this._htmlimpl_list.$index(this._htmlimpl_pos++); |
| 10701 } |
| 10702 // ********** Code for _FixedSizeListIterator ************** |
| 10703 $inherits(_FixedSizeListIterator, _VariableSizeListIterator_T); |
| 10704 function _FixedSizeListIterator(list) { |
| 10705 this._htmlimpl_length = list.get$length(); |
| 10706 _VariableSizeListIterator_T.call(this, list); |
| 10707 } |
| 10708 _FixedSizeListIterator.prototype.hasNext = function() { |
| 10709 return this._htmlimpl_length > this._htmlimpl_pos; |
| 10710 } |
| 10711 _FixedSizeListIterator.prototype.hasNext$0 = _FixedSizeListIterator.prototype.ha
sNext; |
| 10712 // ********** Code for _VariableSizeListIterator_html_html_Touch ************** |
| 10713 $inherits(_VariableSizeListIterator_html_html_Touch, _VariableSizeListIterator); |
| 10714 function _VariableSizeListIterator_html_html_Touch(list) { |
| 10715 this._htmlimpl_list = list; |
| 10716 this._htmlimpl_pos = (0); |
| 10717 } |
| 10718 // ********** Code for _FixedSizeListIterator_html_html_Touch ************** |
| 10719 $inherits(_FixedSizeListIterator_html_html_Touch, _FixedSizeListIterator); |
| 10720 function _FixedSizeListIterator_html_html_Touch(list) { |
| 10721 this._htmlimpl_length = list.get$length(); |
| 10722 _VariableSizeListIterator_html_html_Touch.call(this, list); |
| 10723 } |
| 10724 // ********** Code for _VariableSizeListIterator ************** |
| 10725 function _VariableSizeListIterator(list) { |
| 10726 this._htmlimpl_list = list; |
| 10727 this._htmlimpl_pos = (0); |
| 10728 } |
| 10729 _VariableSizeListIterator.prototype.hasNext = function() { |
| 10730 return this._htmlimpl_list.get$length() > this._htmlimpl_pos; |
| 10731 } |
| 10732 _VariableSizeListIterator.prototype.next = function() { |
| 10733 if (!this.hasNext()) { |
| 10734 $throw(const$0001); |
| 10735 } |
| 10736 return this._htmlimpl_list.$index(this._htmlimpl_pos++); |
| 10737 } |
| 10738 _VariableSizeListIterator.prototype.hasNext$0 = _VariableSizeListIterator.protot
ype.hasNext; |
| 10739 _VariableSizeListIterator.prototype.next$0 = _VariableSizeListIterator.prototype
.next; |
| 10740 // ********** Code for Lists ************** |
| 10741 function Lists() {} |
| 10742 Lists.indexOf = function(a, element, startIndex, endIndex) { |
| 10743 if (startIndex >= a.get$length()) { |
| 10744 return (-1); |
| 10745 } |
| 10746 if (startIndex < (0)) { |
| 10747 startIndex = (0); |
| 10748 } |
| 10749 for (var i = startIndex; |
| 10750 i < endIndex; i++) { |
| 10751 if ($eq(a.$index(i), element)) { |
| 10752 return i; |
| 10753 } |
| 10754 } |
| 10755 return (-1); |
| 10756 } |
| 10757 Lists.getRange = function(a, start, length) { |
| 10758 if (start < (0)) { |
| 10759 $throw(new IndexOutOfRangeException(start)); |
| 10760 } |
| 10761 else if (length < (0)) { |
| 10762 $throw(new IllegalArgumentException(("negative length " + length))); |
| 10763 } |
| 10764 else if (start + length > a.get$length()) { |
| 10765 $throw(new IndexOutOfRangeException(Math.min(a.get$length(), start))); |
| 10766 } |
| 10767 var result = []; |
| 10768 for (var i = (0); |
| 10769 i < length; i = $add(i, (1))) { |
| 10770 result.add$1(a.$index(start + i)); |
| 10771 } |
| 10772 return result; |
| 10773 } |
| 10774 // ********** Code for EventsImplementation ************** |
| 10775 function EventsImplementation() {} |
| 10776 EventsImplementation._wrap$ctor = function(_ptr) { |
| 10777 this._ptr = _ptr; |
| 10778 this._listenerMap = new HashMapImplementation(); |
| 10779 } |
| 10780 EventsImplementation._wrap$ctor.prototype = EventsImplementation.prototype; |
| 10781 EventsImplementation.prototype.get$_ptr = function() { return this._ptr; }; |
| 10782 EventsImplementation.prototype.set$_ptr = function(value) { return this._ptr = v
alue; }; |
| 10783 EventsImplementation.prototype.$index = function(type) { |
| 10784 return this._get(type.toLowerCase()); |
| 10785 } |
| 10786 EventsImplementation.prototype._get = function(type) { |
| 10787 var $this = this; // closure support |
| 10788 return this._listenerMap.putIfAbsent$2(type, (function () { |
| 10789 return new EventListenerListImplementation($this._ptr, type); |
| 10790 }) |
| 10791 ); |
| 10792 } |
| 10793 // ********** Code for AbstractWorkerEventsImplementation ************** |
| 10794 $inherits(AbstractWorkerEventsImplementation, EventsImplementation); |
| 10795 function AbstractWorkerEventsImplementation() {} |
| 10796 AbstractWorkerEventsImplementation._wrap$ctor = function(_ptr) { |
| 10797 EventsImplementation._wrap$ctor.call(this, _ptr); |
| 10798 } |
| 10799 AbstractWorkerEventsImplementation._wrap$ctor.prototype = AbstractWorkerEventsIm
plementation.prototype; |
| 10800 // ********** Code for AbstractWorkerWrappingImplementation ************** |
| 10801 $inherits(AbstractWorkerWrappingImplementation, EventTargetWrappingImplementatio
n); |
| 10802 function AbstractWorkerWrappingImplementation() {} |
| 10803 AbstractWorkerWrappingImplementation._wrap$ctor = function(ptr) { |
| 10804 EventTargetWrappingImplementation._wrap$ctor.call(this, ptr); |
| 10805 } |
| 10806 AbstractWorkerWrappingImplementation._wrap$ctor.prototype = AbstractWorkerWrappi
ngImplementation.prototype; |
| 10807 AbstractWorkerWrappingImplementation.prototype.get$on = function() { |
| 10808 if (this._on == null) { |
| 10809 this._on = new AbstractWorkerEventsImplementation._wrap$ctor(this._ptr); |
| 10810 } |
| 10811 return this._on; |
| 10812 } |
| 10813 // ********** Code for AnimationEventWrappingImplementation ************** |
| 10814 $inherits(AnimationEventWrappingImplementation, EventWrappingImplementation); |
| 10815 function AnimationEventWrappingImplementation() {} |
| 10816 AnimationEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 10817 EventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 10818 } |
| 10819 AnimationEventWrappingImplementation._wrap$ctor.prototype = AnimationEventWrappi
ngImplementation.prototype; |
| 10820 // ********** Code for BeforeLoadEventWrappingImplementation ************** |
| 10821 $inherits(BeforeLoadEventWrappingImplementation, EventWrappingImplementation); |
| 10822 function BeforeLoadEventWrappingImplementation() {} |
| 10823 BeforeLoadEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 10824 EventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 10825 } |
| 10826 BeforeLoadEventWrappingImplementation._wrap$ctor.prototype = BeforeLoadEventWrap
pingImplementation.prototype; |
| 10827 // ********** Code for ElementEventsImplementation ************** |
| 10828 $inherits(ElementEventsImplementation, EventsImplementation); |
| 10829 function ElementEventsImplementation() {} |
| 10830 ElementEventsImplementation._wrap$ctor = function(_ptr) { |
| 10831 EventsImplementation._wrap$ctor.call(this, _ptr); |
| 10832 } |
| 10833 ElementEventsImplementation._wrap$ctor.prototype = ElementEventsImplementation.p
rototype; |
| 10834 ElementEventsImplementation.prototype.get$blur = function() { |
| 10835 return this._get("blur"); |
| 10836 } |
| 10837 ElementEventsImplementation.prototype.get$click = function() { |
| 10838 return this._get("click"); |
| 10839 } |
| 10840 ElementEventsImplementation.prototype.get$focus = function() { |
| 10841 return this._get("focus"); |
| 10842 } |
| 10843 ElementEventsImplementation.prototype.get$keyDown = function() { |
| 10844 return this._get("keydown"); |
| 10845 } |
| 10846 ElementEventsImplementation.prototype.get$keyUp = function() { |
| 10847 return this._get("keyup"); |
| 10848 } |
| 10849 ElementEventsImplementation.prototype.get$load = function() { |
| 10850 return this._get("load"); |
| 10851 } |
| 10852 ElementEventsImplementation.prototype.get$mouseDown = function() { |
| 10853 return this._get("mousedown"); |
| 10854 } |
| 10855 ElementEventsImplementation.prototype.get$mouseMove = function() { |
| 10856 return this._get("mousemove"); |
| 10857 } |
| 10858 ElementEventsImplementation.prototype.get$mouseOut = function() { |
| 10859 return this._get("mouseout"); |
| 10860 } |
| 10861 ElementEventsImplementation.prototype.get$mouseOver = function() { |
| 10862 return this._get("mouseover"); |
| 10863 } |
| 10864 ElementEventsImplementation.prototype.get$mouseUp = function() { |
| 10865 return this._get("mouseup"); |
| 10866 } |
| 10867 ElementEventsImplementation.prototype.get$mouseWheel = function() { |
| 10868 return this._get("mousewheel"); |
| 10869 } |
| 10870 ElementEventsImplementation.prototype.get$touchCancel = function() { |
| 10871 return this._get("touchcancel"); |
| 10872 } |
| 10873 ElementEventsImplementation.prototype.get$touchEnd = function() { |
| 10874 return this._get("touchend"); |
| 10875 } |
| 10876 ElementEventsImplementation.prototype.get$touchLeave = function() { |
| 10877 return this._get("touchleave"); |
| 10878 } |
| 10879 ElementEventsImplementation.prototype.get$touchMove = function() { |
| 10880 return this._get("touchmove"); |
| 10881 } |
| 10882 ElementEventsImplementation.prototype.get$touchStart = function() { |
| 10883 return this._get("touchstart"); |
| 10884 } |
| 10885 ElementEventsImplementation.prototype.get$transitionEnd = function() { |
| 10886 return this._get("webkitTransitionEnd"); |
| 10887 } |
| 10888 ElementEventsImplementation.prototype.blur$0 = function() { |
| 10889 return this.get$blur().call$0(); |
| 10890 }; |
| 10891 ElementEventsImplementation.prototype.click$0 = function() { |
| 10892 return this.get$click().call$0(); |
| 10893 }; |
| 10894 ElementEventsImplementation.prototype.focus$0 = function() { |
| 10895 return this.get$focus().call$0(); |
| 10896 }; |
| 10897 ElementEventsImplementation.prototype.load$0 = function() { |
| 10898 return this.get$load().call$0(); |
| 10899 }; |
| 10900 // ********** Code for BodyElementEventsImplementation ************** |
| 10901 $inherits(BodyElementEventsImplementation, ElementEventsImplementation); |
| 10902 function BodyElementEventsImplementation() {} |
| 10903 BodyElementEventsImplementation._wrap$ctor = function(_ptr) { |
| 10904 ElementEventsImplementation._wrap$ctor.call(this, _ptr); |
| 10905 } |
| 10906 BodyElementEventsImplementation._wrap$ctor.prototype = BodyElementEventsImplemen
tation.prototype; |
| 10907 // ********** Code for BodyElementWrappingImplementation ************** |
| 10908 $inherits(BodyElementWrappingImplementation, ElementWrappingImplementation); |
| 10909 function BodyElementWrappingImplementation() {} |
| 10910 BodyElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 10911 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 10912 } |
| 10913 BodyElementWrappingImplementation._wrap$ctor.prototype = BodyElementWrappingImpl
ementation.prototype; |
| 10914 BodyElementWrappingImplementation.prototype.is$BodyElement = function(){return t
rue}; |
| 10915 BodyElementWrappingImplementation.prototype.is$html_html_Element = function(){re
turn true}; |
| 10916 BodyElementWrappingImplementation.prototype.get$on = function() { |
| 10917 if (this._on == null) { |
| 10918 this._on = new BodyElementEventsImplementation._wrap$ctor(this._ptr); |
| 10919 } |
| 10920 return this._on; |
| 10921 } |
| 10922 // ********** Code for CloseEventWrappingImplementation ************** |
| 10923 $inherits(CloseEventWrappingImplementation, EventWrappingImplementation); |
| 10924 function CloseEventWrappingImplementation() {} |
| 10925 CloseEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 10926 EventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 10927 } |
| 10928 CloseEventWrappingImplementation._wrap$ctor.prototype = CloseEventWrappingImplem
entation.prototype; |
| 10929 // ********** Code for CompositionEventWrappingImplementation ************** |
| 10930 $inherits(CompositionEventWrappingImplementation, UIEventWrappingImplementation)
; |
| 10931 function CompositionEventWrappingImplementation() {} |
| 10932 CompositionEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 10933 UIEventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 10934 } |
| 10935 CompositionEventWrappingImplementation._wrap$ctor.prototype = CompositionEventWr
appingImplementation.prototype; |
| 10936 // ********** Code for _CssClassSet ************** |
| 10937 function _CssClassSet(_element) { |
| 10938 this._htmlimpl_element = _element; |
| 10939 } |
| 10940 _CssClassSet.prototype.toString = function() { |
| 10941 return this._formatSet(this._read()); |
| 10942 } |
| 10943 _CssClassSet.prototype.iterator = function() { |
| 10944 return this._read().iterator$0(); |
| 10945 } |
| 10946 _CssClassSet.prototype.forEach = function(f) { |
| 10947 this._read().forEach(f); |
| 10948 } |
| 10949 _CssClassSet.prototype.filter = function(f) { |
| 10950 return this._read().filter$1(f); |
| 10951 } |
| 10952 _CssClassSet.prototype.some = function(f) { |
| 10953 return this._read().some(f); |
| 10954 } |
| 10955 _CssClassSet.prototype.isEmpty = function() { |
| 10956 return this._read().isEmpty(); |
| 10957 } |
| 10958 _CssClassSet.prototype.get$length = function() { |
| 10959 return this._read().get$length(); |
| 10960 } |
| 10961 _CssClassSet.prototype.contains = function(value) { |
| 10962 return this._read().contains(value); |
| 10963 } |
| 10964 _CssClassSet.prototype.add = function(value) { |
| 10965 this._modify((function (s) { |
| 10966 return s.add$1(value); |
| 10967 }) |
| 10968 ); |
| 10969 } |
| 10970 _CssClassSet.prototype.remove = function(value) { |
| 10971 var s = this._read(); |
| 10972 var result = s.remove(value); |
| 10973 this._write(s); |
| 10974 return result; |
| 10975 } |
| 10976 _CssClassSet.prototype.addAll = function(collection) { |
| 10977 this._modify((function (s) { |
| 10978 return s.addAll$1(collection); |
| 10979 }) |
| 10980 ); |
| 10981 } |
| 10982 _CssClassSet.prototype.clear = function() { |
| 10983 this._modify((function (s) { |
| 10984 return s.clear$0(); |
| 10985 }) |
| 10986 ); |
| 10987 } |
| 10988 _CssClassSet.prototype.get$clear = function() { |
| 10989 return this.clear.bind(this); |
| 10990 } |
| 10991 _CssClassSet.prototype._modify = function(f) { |
| 10992 var s = this._read(); |
| 10993 f.call$1(s); |
| 10994 this._write(s); |
| 10995 } |
| 10996 _CssClassSet.prototype._read = function() { |
| 10997 var s = new HashSetImplementation(); |
| 10998 var $$list = this._className().split(" "); |
| 10999 for (var $$i = 0;$$i < $$list.get$length(); $$i++) { |
| 11000 var name = $$list.$index($$i); |
| 11001 var trimmed = name.trim(); |
| 11002 if (!trimmed.isEmpty()) { |
| 11003 s.add(trimmed); |
| 11004 } |
| 11005 } |
| 11006 return s; |
| 11007 } |
| 11008 _CssClassSet.prototype._className = function() { |
| 11009 return this._htmlimpl_element.get$className(); |
| 11010 } |
| 11011 _CssClassSet.prototype._write = function(s) { |
| 11012 this._htmlimpl_element.set$className(this._formatSet(s)); |
| 11013 } |
| 11014 _CssClassSet.prototype._formatSet = function(s) { |
| 11015 var list = ListFactory.ListFactory$from$factory(s); |
| 11016 return Strings.join(list, " "); |
| 11017 } |
| 11018 _CssClassSet.prototype.add$1 = _CssClassSet.prototype.add; |
| 11019 _CssClassSet.prototype.addAll$1 = _CssClassSet.prototype.addAll; |
| 11020 _CssClassSet.prototype.clear$0 = _CssClassSet.prototype.clear; |
| 11021 _CssClassSet.prototype.contains$1 = _CssClassSet.prototype.contains; |
| 11022 _CssClassSet.prototype.filter$1 = function($0) { |
| 11023 return this.filter(to$call$1($0)); |
| 11024 }; |
| 11025 _CssClassSet.prototype.forEach$1 = function($0) { |
| 11026 return this.forEach(to$call$1($0)); |
| 11027 }; |
| 11028 _CssClassSet.prototype.iterator$0 = _CssClassSet.prototype.iterator; |
| 11029 _CssClassSet.prototype.remove$1 = _CssClassSet.prototype.remove; |
| 11030 _CssClassSet.prototype.toString$0 = _CssClassSet.prototype.toString; |
| 11031 // ********** Code for CSSStyleDeclarationWrappingImplementation ************** |
| 11032 $inherits(CSSStyleDeclarationWrappingImplementation, DOMWrapperBase); |
| 11033 function CSSStyleDeclarationWrappingImplementation() {} |
| 11034 CSSStyleDeclarationWrappingImplementation._wrap$ctor = function(ptr) { |
| 11035 DOMWrapperBase._wrap$ctor.call(this, ptr); |
| 11036 } |
| 11037 CSSStyleDeclarationWrappingImplementation._wrap$ctor.prototype = CSSStyleDeclara
tionWrappingImplementation.prototype; |
| 11038 CSSStyleDeclarationWrappingImplementation.get$_browserPrefix = function() { |
| 11039 if ($globals.CSSStyleDeclarationWrappingImplementation__cachedBrowserPrefix ==
null) { |
| 11040 if (_Device.get$isFirefox()) { |
| 11041 $globals.CSSStyleDeclarationWrappingImplementation__cachedBrowserPrefix =
"-moz-"; |
| 11042 } |
| 11043 else { |
| 11044 $globals.CSSStyleDeclarationWrappingImplementation__cachedBrowserPrefix =
"-webkit-"; |
| 11045 } |
| 11046 } |
| 11047 return $globals.CSSStyleDeclarationWrappingImplementation__cachedBrowserPrefix
; |
| 11048 } |
| 11049 CSSStyleDeclarationWrappingImplementation.prototype.get$length = function() { |
| 11050 return this._ptr.get$length(); |
| 11051 } |
| 11052 CSSStyleDeclarationWrappingImplementation.prototype.getPropertyValue = function(
propertyName) { |
| 11053 return this._ptr.getPropertyValue$1(propertyName); |
| 11054 } |
| 11055 CSSStyleDeclarationWrappingImplementation.prototype.item = function(index) { |
| 11056 return this._ptr.item$1(index); |
| 11057 } |
| 11058 CSSStyleDeclarationWrappingImplementation.prototype.removeProperty = function(pr
opertyName) { |
| 11059 return this._ptr.removeProperty$1(propertyName); |
| 11060 } |
| 11061 CSSStyleDeclarationWrappingImplementation.prototype.setProperty = function(prope
rtyName, value, priority) { |
| 11062 this._ptr.setProperty$3(propertyName, ("" + value), priority); |
| 11063 } |
| 11064 CSSStyleDeclarationWrappingImplementation.prototype.get$typeName = function() { |
| 11065 return "CSSStyleDeclaration"; |
| 11066 } |
| 11067 CSSStyleDeclarationWrappingImplementation.prototype.get$borderBottomWidth = func
tion() { |
| 11068 return this.getPropertyValue("border-bottom-width"); |
| 11069 } |
| 11070 CSSStyleDeclarationWrappingImplementation.prototype.get$borderLeftWidth = functi
on() { |
| 11071 return this.getPropertyValue("border-left-width"); |
| 11072 } |
| 11073 CSSStyleDeclarationWrappingImplementation.prototype.get$borderRightWidth = funct
ion() { |
| 11074 return this.getPropertyValue("border-right-width"); |
| 11075 } |
| 11076 CSSStyleDeclarationWrappingImplementation.prototype.get$borderTopWidth = functio
n() { |
| 11077 return this.getPropertyValue("border-top-width"); |
| 11078 } |
| 11079 CSSStyleDeclarationWrappingImplementation.prototype.get$clear = function() { |
| 11080 return this.getPropertyValue("clear"); |
| 11081 } |
| 11082 CSSStyleDeclarationWrappingImplementation.prototype.get$columnGap = function() { |
| 11083 return this.getPropertyValue(("" + CSSStyleDeclarationWrappingImplementation.g
et$_browserPrefix() + "column-gap")); |
| 11084 } |
| 11085 CSSStyleDeclarationWrappingImplementation.prototype.get$columnSpan = function()
{ |
| 11086 return this.getPropertyValue(("" + CSSStyleDeclarationWrappingImplementation.g
et$_browserPrefix() + "column-span")); |
| 11087 } |
| 11088 CSSStyleDeclarationWrappingImplementation.prototype.get$columnWidth = function()
{ |
| 11089 return this.getPropertyValue(("" + CSSStyleDeclarationWrappingImplementation.g
et$_browserPrefix() + "column-width")); |
| 11090 } |
| 11091 CSSStyleDeclarationWrappingImplementation.prototype.set$display = function(value
) { |
| 11092 this.setProperty("display", value, ""); |
| 11093 } |
| 11094 CSSStyleDeclarationWrappingImplementation.prototype.get$filter = function() { |
| 11095 return this.getPropertyValue(("" + CSSStyleDeclarationWrappingImplementation.g
et$_browserPrefix() + "filter")); |
| 11096 } |
| 11097 CSSStyleDeclarationWrappingImplementation.prototype.set$font = function(value) { |
| 11098 this.setProperty("font", value, ""); |
| 11099 } |
| 11100 CSSStyleDeclarationWrappingImplementation.prototype.get$fontSize = function() { |
| 11101 return this.getPropertyValue("font-size"); |
| 11102 } |
| 11103 CSSStyleDeclarationWrappingImplementation.prototype.get$height = function() { |
| 11104 return this.getPropertyValue("height"); |
| 11105 } |
| 11106 CSSStyleDeclarationWrappingImplementation.prototype.set$height = function(value)
{ |
| 11107 this.setProperty("height", value, ""); |
| 11108 } |
| 11109 CSSStyleDeclarationWrappingImplementation.prototype.set$left = function(value) { |
| 11110 this.setProperty("left", value, ""); |
| 11111 } |
| 11112 CSSStyleDeclarationWrappingImplementation.prototype.get$maxHeight = function() { |
| 11113 return this.getPropertyValue("max-height"); |
| 11114 } |
| 11115 CSSStyleDeclarationWrappingImplementation.prototype.get$maxWidth = function() { |
| 11116 return this.getPropertyValue("max-width"); |
| 11117 } |
| 11118 CSSStyleDeclarationWrappingImplementation.prototype.get$minHeight = function() { |
| 11119 return this.getPropertyValue("min-height"); |
| 11120 } |
| 11121 CSSStyleDeclarationWrappingImplementation.prototype.get$minWidth = function() { |
| 11122 return this.getPropertyValue("min-width"); |
| 11123 } |
| 11124 CSSStyleDeclarationWrappingImplementation.prototype.set$opacity = function(value
) { |
| 11125 this.setProperty("opacity", value, ""); |
| 11126 } |
| 11127 CSSStyleDeclarationWrappingImplementation.prototype.set$overflow = function(valu
e) { |
| 11128 this.setProperty("overflow", value, ""); |
| 11129 } |
| 11130 CSSStyleDeclarationWrappingImplementation.prototype.get$position = function() { |
| 11131 return this.getPropertyValue("position"); |
| 11132 } |
| 11133 CSSStyleDeclarationWrappingImplementation.prototype.set$position = function(valu
e) { |
| 11134 this.setProperty("position", value, ""); |
| 11135 } |
| 11136 CSSStyleDeclarationWrappingImplementation.prototype.set$top = function(value) { |
| 11137 this.setProperty("top", value, ""); |
| 11138 } |
| 11139 CSSStyleDeclarationWrappingImplementation.prototype.set$transform = function(val
ue) { |
| 11140 this.setProperty(("" + CSSStyleDeclarationWrappingImplementation.get$_browserP
refix() + "transform"), value, ""); |
| 11141 } |
| 11142 CSSStyleDeclarationWrappingImplementation.prototype.set$transformOrigin = functi
on(value) { |
| 11143 this.setProperty(("" + CSSStyleDeclarationWrappingImplementation.get$_browserP
refix() + "transform-origin"), value, ""); |
| 11144 } |
| 11145 CSSStyleDeclarationWrappingImplementation.prototype.set$transitionDuration = fun
ction(value) { |
| 11146 this.setProperty(("" + CSSStyleDeclarationWrappingImplementation.get$_browserP
refix() + "transition-duration"), value, ""); |
| 11147 } |
| 11148 CSSStyleDeclarationWrappingImplementation.prototype.get$width = function() { |
| 11149 return this.getPropertyValue("width"); |
| 11150 } |
| 11151 CSSStyleDeclarationWrappingImplementation.prototype.set$width = function(value)
{ |
| 11152 this.setProperty("width", value, ""); |
| 11153 } |
| 11154 CSSStyleDeclarationWrappingImplementation.prototype.set$zIndex = function(value)
{ |
| 11155 this.setProperty("z-index", value, ""); |
| 11156 } |
| 11157 CSSStyleDeclarationWrappingImplementation.prototype.clear$0 = function() { |
| 11158 return this.get$clear().call$0(); |
| 11159 }; |
| 11160 CSSStyleDeclarationWrappingImplementation.prototype.clear$1 = function($0) { |
| 11161 return this.get$clear().call$1($0); |
| 11162 }; |
| 11163 CSSStyleDeclarationWrappingImplementation.prototype.filter$1 = function($0) { |
| 11164 return this.get$filter().call$1($0); |
| 11165 }; |
| 11166 CSSStyleDeclarationWrappingImplementation.prototype.getPropertyValue$1 = CSSStyl
eDeclarationWrappingImplementation.prototype.getPropertyValue; |
| 11167 CSSStyleDeclarationWrappingImplementation.prototype.item$1 = CSSStyleDeclaration
WrappingImplementation.prototype.item; |
| 11168 CSSStyleDeclarationWrappingImplementation.prototype.removeProperty$1 = CSSStyleD
eclarationWrappingImplementation.prototype.removeProperty; |
| 11169 CSSStyleDeclarationWrappingImplementation.prototype.setProperty$3 = CSSStyleDecl
arationWrappingImplementation.prototype.setProperty; |
| 11170 // ********** Code for CustomEventWrappingImplementation ************** |
| 11171 $inherits(CustomEventWrappingImplementation, EventWrappingImplementation); |
| 11172 function CustomEventWrappingImplementation() {} |
| 11173 CustomEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 11174 EventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 11175 } |
| 11176 CustomEventWrappingImplementation._wrap$ctor.prototype = CustomEventWrappingImpl
ementation.prototype; |
| 11177 // ********** Code for _Device ************** |
| 11178 function _Device() {} |
| 11179 _Device.get$userAgent = function() { |
| 11180 return get$window().navigator.userAgent; |
| 11181 } |
| 11182 _Device.get$isFirefox = function() { |
| 11183 return _Device.get$userAgent().contains("Firefox", (0)); |
| 11184 } |
| 11185 // ********** Code for DeviceMotionEventWrappingImplementation ************** |
| 11186 $inherits(DeviceMotionEventWrappingImplementation, EventWrappingImplementation); |
| 11187 function DeviceMotionEventWrappingImplementation() {} |
| 11188 DeviceMotionEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 11189 EventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 11190 } |
| 11191 DeviceMotionEventWrappingImplementation._wrap$ctor.prototype = DeviceMotionEvent
WrappingImplementation.prototype; |
| 11192 // ********** Code for DeviceOrientationEventWrappingImplementation ************
** |
| 11193 $inherits(DeviceOrientationEventWrappingImplementation, EventWrappingImplementat
ion); |
| 11194 function DeviceOrientationEventWrappingImplementation() {} |
| 11195 DeviceOrientationEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 11196 EventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 11197 } |
| 11198 DeviceOrientationEventWrappingImplementation._wrap$ctor.prototype = DeviceOrient
ationEventWrappingImplementation.prototype; |
| 11199 // ********** Code for FilteredElementList ************** |
| 11200 function FilteredElementList(node) { |
| 11201 this._htmlimpl_node = node; |
| 11202 this._childNodes = node.get$nodes(); |
| 11203 } |
| 11204 FilteredElementList.prototype.is$List = function(){return true}; |
| 11205 FilteredElementList.prototype.get$_filtered = function() { |
| 11206 return ListFactory.ListFactory$from$factory(this._childNodes.filter$1((functio
n (n) { |
| 11207 return !!(n && n.is$html_html_Element()); |
| 11208 }) |
| 11209 )); |
| 11210 } |
| 11211 FilteredElementList.prototype.get$first = function() { |
| 11212 var $$list = this._childNodes; |
| 11213 for (var $$i = $$list.iterator$0(); $$i.hasNext$0(); ) { |
| 11214 var node = $$i.next$0(); |
| 11215 if (!!(node && node.is$html_html_Element())) { |
| 11216 return node; |
| 11217 } |
| 11218 } |
| 11219 return null; |
| 11220 } |
| 11221 FilteredElementList.prototype.forEach = function(f) { |
| 11222 this.get$_filtered().forEach(f); |
| 11223 } |
| 11224 FilteredElementList.prototype.$setindex = function(index, value) { |
| 11225 this.$index(index).replaceWith(value); |
| 11226 } |
| 11227 FilteredElementList.prototype.add = function(value) { |
| 11228 this._childNodes.add$1(value); |
| 11229 } |
| 11230 FilteredElementList.prototype.get$add = function() { |
| 11231 return this.add.bind(this); |
| 11232 } |
| 11233 FilteredElementList.prototype.addAll = function(collection) { |
| 11234 collection.forEach(this.get$add()); |
| 11235 } |
| 11236 FilteredElementList.prototype.sort = function(compare) { |
| 11237 $throw(const$0022); |
| 11238 } |
| 11239 FilteredElementList.prototype.removeRange = function(start, length) { |
| 11240 this.get$_filtered().getRange$2(start, length).forEach$1((function (el) { |
| 11241 return el.remove$0(); |
| 11242 }) |
| 11243 ); |
| 11244 } |
| 11245 FilteredElementList.prototype.clear = function() { |
| 11246 this._childNodes.clear$0(); |
| 11247 } |
| 11248 FilteredElementList.prototype.get$clear = function() { |
| 11249 return this.clear.bind(this); |
| 11250 } |
| 11251 FilteredElementList.prototype.removeLast = function() { |
| 11252 var last = this.last(); |
| 11253 if (last != null) { |
| 11254 last.remove$0(); |
| 11255 } |
| 11256 return last; |
| 11257 } |
| 11258 FilteredElementList.prototype.filter = function(f) { |
| 11259 return this.get$_filtered().filter$1(f); |
| 11260 } |
| 11261 FilteredElementList.prototype.some = function(f) { |
| 11262 return this.get$_filtered().some(f); |
| 11263 } |
| 11264 FilteredElementList.prototype.isEmpty = function() { |
| 11265 return this.get$_filtered().isEmpty(); |
| 11266 } |
| 11267 FilteredElementList.prototype.get$length = function() { |
| 11268 return this.get$_filtered().get$length(); |
| 11269 } |
| 11270 FilteredElementList.prototype.set$length = function(newLength) { |
| 11271 var len = this.get$length(); |
| 11272 if (newLength >= len) { |
| 11273 return; |
| 11274 } |
| 11275 else if (newLength < (0)) { |
| 11276 $throw(const$0020); |
| 11277 } |
| 11278 this.removeRange(newLength - (1), len - newLength); |
| 11279 } |
| 11280 FilteredElementList.prototype.$index = function(index) { |
| 11281 return this.get$_filtered().$index(index); |
| 11282 } |
| 11283 FilteredElementList.prototype.iterator = function() { |
| 11284 return this.get$_filtered().iterator$0(); |
| 11285 } |
| 11286 FilteredElementList.prototype.getRange = function(start, length) { |
| 11287 return this.get$_filtered().getRange$2(start, length); |
| 11288 } |
| 11289 FilteredElementList.prototype.indexOf = function(element, start) { |
| 11290 return this.get$_filtered().indexOf(element, start); |
| 11291 } |
| 11292 FilteredElementList.prototype.last = function() { |
| 11293 return this.get$_filtered().last$0(); |
| 11294 } |
| 11295 FilteredElementList.prototype.add$1 = FilteredElementList.prototype.add; |
| 11296 FilteredElementList.prototype.addAll$1 = FilteredElementList.prototype.addAll; |
| 11297 FilteredElementList.prototype.clear$0 = FilteredElementList.prototype.clear; |
| 11298 FilteredElementList.prototype.filter$1 = function($0) { |
| 11299 return this.filter(to$call$1($0)); |
| 11300 }; |
| 11301 FilteredElementList.prototype.forEach$1 = function($0) { |
| 11302 return this.forEach(to$call$1($0)); |
| 11303 }; |
| 11304 FilteredElementList.prototype.getRange$2 = FilteredElementList.prototype.getRang
e; |
| 11305 FilteredElementList.prototype.iterator$0 = FilteredElementList.prototype.iterato
r; |
| 11306 FilteredElementList.prototype.last$0 = FilteredElementList.prototype.last; |
| 11307 FilteredElementList.prototype.removeLast$0 = FilteredElementList.prototype.remov
eLast; |
| 11308 // ********** Code for EmptyStyleDeclaration ************** |
| 11309 $inherits(EmptyStyleDeclaration, CSSStyleDeclarationWrappingImplementation); |
| 11310 function EmptyStyleDeclaration() { |
| 11311 CSSStyleDeclarationWrappingImplementation._wrap$ctor.call(this, get$document()
.createElement("div").style); |
| 11312 } |
| 11313 EmptyStyleDeclaration.prototype.removeProperty = function(propertyName) { |
| 11314 $throw(new UnsupportedOperationException("Can't modify a frozen style declarat
ion.")); |
| 11315 } |
| 11316 EmptyStyleDeclaration.prototype.setProperty = function(propertyName, value, prio
rity) { |
| 11317 $throw(new UnsupportedOperationException("Can't modify a frozen style declarat
ion.")); |
| 11318 } |
| 11319 EmptyStyleDeclaration.prototype.removeProperty$1 = EmptyStyleDeclaration.prototy
pe.removeProperty; |
| 11320 EmptyStyleDeclaration.prototype.setProperty$3 = EmptyStyleDeclaration.prototype.
setProperty; |
| 11321 // ********** Code for EmptyElementRect ************** |
| 11322 function EmptyElementRect() { |
| 11323 this.client = const$0010; |
| 11324 this.scroll = const$0010; |
| 11325 this.bounding = const$0010; |
| 11326 this.clientRects = const$0011; |
| 11327 this.offset = const$0010; |
| 11328 } |
| 11329 EmptyElementRect.prototype.get$offset = function() { return this.offset; }; |
| 11330 // ********** Code for DocumentFragmentWrappingImplementation ************** |
| 11331 $inherits(DocumentFragmentWrappingImplementation, NodeWrappingImplementation); |
| 11332 function DocumentFragmentWrappingImplementation() {} |
| 11333 DocumentFragmentWrappingImplementation._wrap$ctor = function(ptr) { |
| 11334 NodeWrappingImplementation._wrap$ctor.call(this, ptr); |
| 11335 } |
| 11336 DocumentFragmentWrappingImplementation._wrap$ctor.prototype = DocumentFragmentWr
appingImplementation.prototype; |
| 11337 DocumentFragmentWrappingImplementation.prototype.is$html_html_Element = function
(){return true}; |
| 11338 DocumentFragmentWrappingImplementation.prototype.get$elements = function() { |
| 11339 if (this._elements == null) { |
| 11340 this._elements = new FilteredElementList(this); |
| 11341 } |
| 11342 return this._elements; |
| 11343 } |
| 11344 DocumentFragmentWrappingImplementation.prototype.set$innerHTML = function(value)
{ |
| 11345 this.get$nodes().clear$0(); |
| 11346 var e = ElementWrappingImplementation.ElementWrappingImplementation$tag$factor
y("div"); |
| 11347 e.set$innerHTML(value); |
| 11348 var nodes = ListFactory.ListFactory$from$factory(e.get$nodes()); |
| 11349 this.get$nodes().addAll(nodes); |
| 11350 } |
| 11351 DocumentFragmentWrappingImplementation.prototype.get$on = function() { |
| 11352 if (this._on == null) { |
| 11353 this._on = new ElementEventsImplementation._wrap$ctor(this._ptr); |
| 11354 } |
| 11355 return this._on; |
| 11356 } |
| 11357 DocumentFragmentWrappingImplementation.prototype.get$rect = function() { |
| 11358 return _createMeasurementFuture((function () { |
| 11359 return const$0012; |
| 11360 }) |
| 11361 , new CompleterImpl()); |
| 11362 } |
| 11363 DocumentFragmentWrappingImplementation.prototype.query = function(selectors) { |
| 11364 return LevelDom.wrapElement(this._ptr.querySelector$1(selectors)); |
| 11365 } |
| 11366 DocumentFragmentWrappingImplementation.prototype.queryAll = function(selectors)
{ |
| 11367 return LevelDom.wrapElementList(this._ptr.querySelectorAll$1(selectors)); |
| 11368 } |
| 11369 DocumentFragmentWrappingImplementation.prototype.set$tabIndex = function(value)
{ |
| 11370 $throw(new UnsupportedOperationException("Tab index can't be set for document
fragments.")); |
| 11371 } |
| 11372 DocumentFragmentWrappingImplementation.prototype.get$id = function() { |
| 11373 return ""; |
| 11374 } |
| 11375 DocumentFragmentWrappingImplementation.prototype.get$title = function() { |
| 11376 return ""; |
| 11377 } |
| 11378 DocumentFragmentWrappingImplementation.prototype.get$firstElementChild = functio
n() { |
| 11379 return this.get$elements().get$first().call$0(); |
| 11380 } |
| 11381 DocumentFragmentWrappingImplementation.prototype.get$lastElementChild = function
() { |
| 11382 return this.get$elements().last$0(); |
| 11383 } |
| 11384 DocumentFragmentWrappingImplementation.prototype.get$nextElementSibling = functi
on() { |
| 11385 return null; |
| 11386 } |
| 11387 DocumentFragmentWrappingImplementation.prototype.get$previousElementSibling = fu
nction() { |
| 11388 return null; |
| 11389 } |
| 11390 DocumentFragmentWrappingImplementation.prototype.get$parent = function() { |
| 11391 return null; |
| 11392 } |
| 11393 DocumentFragmentWrappingImplementation.prototype.get$attributes = function() { |
| 11394 return const$0028; |
| 11395 } |
| 11396 DocumentFragmentWrappingImplementation.prototype.get$classes = function() { |
| 11397 return new HashSetImplementation(); |
| 11398 } |
| 11399 DocumentFragmentWrappingImplementation.prototype.get$style = function() { |
| 11400 return new EmptyStyleDeclaration(); |
| 11401 } |
| 11402 DocumentFragmentWrappingImplementation.prototype.get$computedStyle = function()
{ |
| 11403 return _emptyStyleFuture(); |
| 11404 } |
| 11405 DocumentFragmentWrappingImplementation.prototype.blur = function() { |
| 11406 |
| 11407 } |
| 11408 DocumentFragmentWrappingImplementation.prototype.get$blur = function() { |
| 11409 return this.blur.bind(this); |
| 11410 } |
| 11411 DocumentFragmentWrappingImplementation.prototype.focus = function() { |
| 11412 |
| 11413 } |
| 11414 DocumentFragmentWrappingImplementation.prototype.get$focus = function() { |
| 11415 return this.focus.bind(this); |
| 11416 } |
| 11417 DocumentFragmentWrappingImplementation.prototype.blur$0 = DocumentFragmentWrappi
ngImplementation.prototype.blur; |
| 11418 DocumentFragmentWrappingImplementation.prototype.focus$0 = DocumentFragmentWrapp
ingImplementation.prototype.focus; |
| 11419 DocumentFragmentWrappingImplementation.prototype.query$1 = DocumentFragmentWrapp
ingImplementation.prototype.query; |
| 11420 DocumentFragmentWrappingImplementation.prototype.queryAll$1 = DocumentFragmentWr
appingImplementation.prototype.queryAll; |
| 11421 // ********** Code for DocumentEventsImplementation ************** |
| 11422 $inherits(DocumentEventsImplementation, ElementEventsImplementation); |
| 11423 function DocumentEventsImplementation() {} |
| 11424 DocumentEventsImplementation._wrap$ctor = function(_ptr) { |
| 11425 ElementEventsImplementation._wrap$ctor.call(this, _ptr); |
| 11426 } |
| 11427 DocumentEventsImplementation._wrap$ctor.prototype = DocumentEventsImplementation
.prototype; |
| 11428 DocumentEventsImplementation.prototype.get$readyStateChange = function() { |
| 11429 return this._get("readystatechange"); |
| 11430 } |
| 11431 // ********** Code for DocumentWrappingImplementation ************** |
| 11432 $inherits(DocumentWrappingImplementation, ElementWrappingImplementation); |
| 11433 function DocumentWrappingImplementation() {} |
| 11434 DocumentWrappingImplementation._wrap$ctor = function(_documentPtr, ptr) { |
| 11435 this._documentPtr = _documentPtr; |
| 11436 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 11437 this._documentPtr.get$dynamic().set$dartObjectLocalStorage(this); |
| 11438 } |
| 11439 DocumentWrappingImplementation._wrap$ctor.prototype = DocumentWrappingImplementa
tion.prototype; |
| 11440 DocumentWrappingImplementation.prototype.is$html_html_Document = function(){retu
rn true}; |
| 11441 DocumentWrappingImplementation.prototype.is$html_html_Element = function(){retur
n true}; |
| 11442 DocumentWrappingImplementation.prototype.get$activeElement = function() { |
| 11443 return LevelDom.wrapElement(this._documentPtr.get$dynamic().get$activeElement(
)); |
| 11444 } |
| 11445 DocumentWrappingImplementation.prototype.get$parent = function() { |
| 11446 return null; |
| 11447 } |
| 11448 DocumentWrappingImplementation.prototype.get$body = function() { |
| 11449 return LevelDom.wrapElement(this._documentPtr.get$body()); |
| 11450 } |
| 11451 DocumentWrappingImplementation.prototype.get$readyState = function() { |
| 11452 return this._documentPtr.get$readyState(); |
| 11453 } |
| 11454 DocumentWrappingImplementation.prototype.get$title = function() { |
| 11455 return this._documentPtr.get$title(); |
| 11456 } |
| 11457 DocumentWrappingImplementation.prototype.get$on = function() { |
| 11458 if (this._on == null) { |
| 11459 this._on = new DocumentEventsImplementation._wrap$ctor(this._documentPtr); |
| 11460 } |
| 11461 return this._on; |
| 11462 } |
| 11463 // ********** Code for DOMApplicationCacheEventsImplementation ************** |
| 11464 $inherits(DOMApplicationCacheEventsImplementation, EventsImplementation); |
| 11465 function DOMApplicationCacheEventsImplementation() {} |
| 11466 DOMApplicationCacheEventsImplementation._wrap$ctor = function(ptr) { |
| 11467 EventsImplementation._wrap$ctor.call(this, ptr); |
| 11468 } |
| 11469 DOMApplicationCacheEventsImplementation._wrap$ctor.prototype = DOMApplicationCac
heEventsImplementation.prototype; |
| 11470 DOMApplicationCacheEventsImplementation.prototype.get$updateReady = function() { |
| 11471 return this._get("updateready"); |
| 11472 } |
| 11473 // ********** Code for DOMApplicationCacheWrappingImplementation ************** |
| 11474 $inherits(DOMApplicationCacheWrappingImplementation, EventTargetWrappingImplemen
tation); |
| 11475 function DOMApplicationCacheWrappingImplementation() {} |
| 11476 DOMApplicationCacheWrappingImplementation._wrap$ctor = function(ptr) { |
| 11477 EventTargetWrappingImplementation._wrap$ctor.call(this, ptr); |
| 11478 } |
| 11479 DOMApplicationCacheWrappingImplementation._wrap$ctor.prototype = DOMApplicationC
acheWrappingImplementation.prototype; |
| 11480 DOMApplicationCacheWrappingImplementation.prototype.get$status = function() { |
| 11481 return this._ptr.get$status(); |
| 11482 } |
| 11483 DOMApplicationCacheWrappingImplementation.prototype.swapCache = function() { |
| 11484 this._ptr.swapCache$0(); |
| 11485 } |
| 11486 DOMApplicationCacheWrappingImplementation.prototype.get$on = function() { |
| 11487 if (this._on == null) { |
| 11488 this._on = new DOMApplicationCacheEventsImplementation._wrap$ctor(this._ptr)
; |
| 11489 } |
| 11490 return this._on; |
| 11491 } |
| 11492 DOMApplicationCacheWrappingImplementation.prototype.swapCache$0 = DOMApplication
CacheWrappingImplementation.prototype.swapCache; |
| 11493 // ********** Code for _ChildrenElementList ************** |
| 11494 function _ChildrenElementList() {} |
| 11495 _ChildrenElementList._wrap$ctor = function(element) { |
| 11496 this._childElements = element.get$children(); |
| 11497 this._element = element; |
| 11498 } |
| 11499 _ChildrenElementList._wrap$ctor.prototype = _ChildrenElementList.prototype; |
| 11500 _ChildrenElementList.prototype.is$List = function(){return true}; |
| 11501 _ChildrenElementList.prototype._toList = function() { |
| 11502 var output = new Array(this._childElements.get$length()); |
| 11503 for (var i = (0), len = this._childElements.get$length(); |
| 11504 i < len; i++) { |
| 11505 output.$setindex(i, LevelDom.wrapElement(this._childElements.$index(i))); |
| 11506 } |
| 11507 return output; |
| 11508 } |
| 11509 _ChildrenElementList.prototype.get$first = function() { |
| 11510 return LevelDom.wrapElement(this._element.get$firstElementChild()); |
| 11511 } |
| 11512 _ChildrenElementList.prototype.forEach = function(f) { |
| 11513 return this._toList().forEach(f); |
| 11514 } |
| 11515 _ChildrenElementList.prototype.filter = function(f) { |
| 11516 return this._toList().filter$1(f); |
| 11517 } |
| 11518 _ChildrenElementList.prototype.some = function(f) { |
| 11519 for (var $$i = this.iterator(); $$i.hasNext(); ) { |
| 11520 var element = $$i.next$0(); |
| 11521 if (f.call$1(element)) { |
| 11522 return true; |
| 11523 } |
| 11524 } |
| 11525 ; |
| 11526 return false; |
| 11527 } |
| 11528 _ChildrenElementList.prototype.isEmpty = function() { |
| 11529 return this._element.get$firstElementChild() == null; |
| 11530 } |
| 11531 _ChildrenElementList.prototype.get$length = function() { |
| 11532 return this._childElements.get$length(); |
| 11533 } |
| 11534 _ChildrenElementList.prototype.set$length = function(newLength) { |
| 11535 $throw(const$0013); |
| 11536 } |
| 11537 _ChildrenElementList.prototype.$index = function(index) { |
| 11538 return LevelDom.wrapElement(this._childElements.$index(index)); |
| 11539 } |
| 11540 _ChildrenElementList.prototype.$setindex = function(index, value) { |
| 11541 this._element.replaceChild$2(LevelDom.unwrap(value), this._childElements.item$
1(index)); |
| 11542 } |
| 11543 _ChildrenElementList.prototype.add = function(value) { |
| 11544 this._element.appendChild$1(LevelDom.unwrap(value)); |
| 11545 return value; |
| 11546 } |
| 11547 _ChildrenElementList.prototype.iterator = function() { |
| 11548 return this._toList().iterator$0(); |
| 11549 } |
| 11550 _ChildrenElementList.prototype.addAll = function(collection) { |
| 11551 for (var $$i = collection.iterator$0(); $$i.hasNext$0(); ) { |
| 11552 var element = $$i.next$0(); |
| 11553 this._element.appendChild$1(LevelDom.unwrap(element)); |
| 11554 } |
| 11555 } |
| 11556 _ChildrenElementList.prototype.sort = function(compare) { |
| 11557 $throw(const$0022); |
| 11558 } |
| 11559 _ChildrenElementList.prototype.getRange = function(start, length) { |
| 11560 return Lists.getRange(this, start, length); |
| 11561 } |
| 11562 _ChildrenElementList.prototype.indexOf = function(element, start) { |
| 11563 return Lists.indexOf(this, element, start, this.get$length()); |
| 11564 } |
| 11565 _ChildrenElementList.prototype.clear = function() { |
| 11566 this._element.set$textContent(""); |
| 11567 } |
| 11568 _ChildrenElementList.prototype.get$clear = function() { |
| 11569 return this.clear.bind(this); |
| 11570 } |
| 11571 _ChildrenElementList.prototype.removeLast = function() { |
| 11572 var last = this.last(); |
| 11573 if (last != null) { |
| 11574 this._element.removeChild$1(LevelDom.unwrap(last)); |
| 11575 } |
| 11576 return last; |
| 11577 } |
| 11578 _ChildrenElementList.prototype.last = function() { |
| 11579 return LevelDom.wrapElement(this._element.get$lastElementChild()); |
| 11580 } |
| 11581 _ChildrenElementList.prototype.add$1 = _ChildrenElementList.prototype.add; |
| 11582 _ChildrenElementList.prototype.addAll$1 = _ChildrenElementList.prototype.addAll; |
| 11583 _ChildrenElementList.prototype.clear$0 = _ChildrenElementList.prototype.clear; |
| 11584 _ChildrenElementList.prototype.filter$1 = function($0) { |
| 11585 return this.filter(to$call$1($0)); |
| 11586 }; |
| 11587 _ChildrenElementList.prototype.forEach$1 = function($0) { |
| 11588 return this.forEach(to$call$1($0)); |
| 11589 }; |
| 11590 _ChildrenElementList.prototype.getRange$2 = _ChildrenElementList.prototype.getRa
nge; |
| 11591 _ChildrenElementList.prototype.iterator$0 = _ChildrenElementList.prototype.itera
tor; |
| 11592 _ChildrenElementList.prototype.last$0 = _ChildrenElementList.prototype.last; |
| 11593 _ChildrenElementList.prototype.removeLast$0 = _ChildrenElementList.prototype.rem
oveLast; |
| 11594 // ********** Code for FrozenElementList ************** |
| 11595 function FrozenElementList() {} |
| 11596 FrozenElementList._wrap$ctor = function(_ptr) { |
| 11597 this._ptr = _ptr; |
| 11598 } |
| 11599 FrozenElementList._wrap$ctor.prototype = FrozenElementList.prototype; |
| 11600 FrozenElementList.prototype.is$List = function(){return true}; |
| 11601 FrozenElementList.prototype.get$_ptr = function() { return this._ptr; }; |
| 11602 FrozenElementList.prototype.get$first = function() { |
| 11603 return this.$index((0)); |
| 11604 } |
| 11605 FrozenElementList.prototype.forEach = function(f) { |
| 11606 var length = this._ptr.get$length(); |
| 11607 for (var i = (0); |
| 11608 i < length; i = $add(i, (1))) { |
| 11609 f.call$1(LevelDom.wrapElement(this._ptr.$index(i))); |
| 11610 } |
| 11611 } |
| 11612 FrozenElementList.prototype.filter = function(f) { |
| 11613 $throw("Not implemented yet."); |
| 11614 } |
| 11615 FrozenElementList.prototype.some = function(f) { |
| 11616 $throw("Not impl yet. todo(jacobr)"); |
| 11617 } |
| 11618 FrozenElementList.prototype.isEmpty = function() { |
| 11619 return $eq(this._ptr.get$length(), (0)); |
| 11620 } |
| 11621 FrozenElementList.prototype.get$length = function() { |
| 11622 return this._ptr.get$length(); |
| 11623 } |
| 11624 FrozenElementList.prototype.set$length = function(newLength) { |
| 11625 $throw(const$0013); |
| 11626 } |
| 11627 FrozenElementList.prototype.$index = function(index) { |
| 11628 return LevelDom.wrapElement(this._ptr.$index(index)); |
| 11629 } |
| 11630 FrozenElementList.prototype.$setindex = function(index, value) { |
| 11631 $throw(const$0013); |
| 11632 } |
| 11633 FrozenElementList.prototype.add = function(value) { |
| 11634 $throw(const$0013); |
| 11635 } |
| 11636 FrozenElementList.prototype.iterator = function() { |
| 11637 return new FrozenElementListIterator(this); |
| 11638 } |
| 11639 FrozenElementList.prototype.addAll = function(collection) { |
| 11640 $throw(const$0013); |
| 11641 } |
| 11642 FrozenElementList.prototype.sort = function(compare) { |
| 11643 $throw(const$0013); |
| 11644 } |
| 11645 FrozenElementList.prototype.getRange = function(start, length) { |
| 11646 $throw(const$0014); |
| 11647 } |
| 11648 FrozenElementList.prototype.indexOf = function(element, start) { |
| 11649 $throw("Not impl yet. todo(jacobr)"); |
| 11650 } |
| 11651 FrozenElementList.prototype.clear = function() { |
| 11652 $throw("Not impl yet. todo(jacobr)"); |
| 11653 } |
| 11654 FrozenElementList.prototype.get$clear = function() { |
| 11655 return this.clear.bind(this); |
| 11656 } |
| 11657 FrozenElementList.prototype.removeLast = function() { |
| 11658 $throw("Not impl yet. todo(jacobr)"); |
| 11659 } |
| 11660 FrozenElementList.prototype.last = function() { |
| 11661 return this.$index(this.get$length() - (1)); |
| 11662 } |
| 11663 FrozenElementList.prototype.add$1 = FrozenElementList.prototype.add; |
| 11664 FrozenElementList.prototype.addAll$1 = FrozenElementList.prototype.addAll; |
| 11665 FrozenElementList.prototype.clear$0 = FrozenElementList.prototype.clear; |
| 11666 FrozenElementList.prototype.filter$1 = function($0) { |
| 11667 return this.filter(to$call$1($0)); |
| 11668 }; |
| 11669 FrozenElementList.prototype.forEach$1 = function($0) { |
| 11670 return this.forEach(to$call$1($0)); |
| 11671 }; |
| 11672 FrozenElementList.prototype.getRange$2 = FrozenElementList.prototype.getRange; |
| 11673 FrozenElementList.prototype.iterator$0 = FrozenElementList.prototype.iterator; |
| 11674 FrozenElementList.prototype.last$0 = FrozenElementList.prototype.last; |
| 11675 FrozenElementList.prototype.removeLast$0 = FrozenElementList.prototype.removeLas
t; |
| 11676 // ********** Code for FrozenElementListIterator ************** |
| 11677 function FrozenElementListIterator(_list) { |
| 11678 this._htmlimpl_index = (0); |
| 11679 this._list = _list; |
| 11680 } |
| 11681 FrozenElementListIterator.prototype.next = function() { |
| 11682 if (!this.hasNext()) { |
| 11683 $throw(const$0001); |
| 11684 } |
| 11685 return this._list.$index(this._htmlimpl_index++); |
| 11686 } |
| 11687 FrozenElementListIterator.prototype.hasNext = function() { |
| 11688 return this._htmlimpl_index < this._list.get$length(); |
| 11689 } |
| 11690 FrozenElementListIterator.prototype.hasNext$0 = FrozenElementListIterator.protot
ype.hasNext; |
| 11691 FrozenElementListIterator.prototype.next$0 = FrozenElementListIterator.prototype
.next; |
| 11692 // ********** Code for ElementAttributeMap ************** |
| 11693 function ElementAttributeMap() {} |
| 11694 ElementAttributeMap._wrap$ctor = function(_element) { |
| 11695 this._element = _element; |
| 11696 } |
| 11697 ElementAttributeMap._wrap$ctor.prototype = ElementAttributeMap.prototype; |
| 11698 ElementAttributeMap.prototype.is$Map_dart_core_String$Dynamic = function(){retur
n true}; |
| 11699 ElementAttributeMap.prototype.containsKey = function(key) { |
| 11700 return this._element.hasAttribute$1(key); |
| 11701 } |
| 11702 ElementAttributeMap.prototype.$index = function(key) { |
| 11703 return this._element.getAttribute$1(key); |
| 11704 } |
| 11705 ElementAttributeMap.prototype.$setindex = function(key, value) { |
| 11706 this._element.setAttribute$2(key, value); |
| 11707 } |
| 11708 ElementAttributeMap.prototype.putIfAbsent = function(key, ifAbsent) { |
| 11709 if (!this.containsKey(key)) { |
| 11710 this.$setindex(key, ifAbsent.call$0()); |
| 11711 } |
| 11712 } |
| 11713 ElementAttributeMap.prototype.remove = function(key) { |
| 11714 this._element.removeAttribute$1(key); |
| 11715 } |
| 11716 ElementAttributeMap.prototype.clear = function() { |
| 11717 var attributes = this._element.get$attributes(); |
| 11718 for (var i = attributes.get$length() - (1); |
| 11719 i >= (0); i--) { |
| 11720 this._element.removeAttribute$1(attributes.item$1(i).get$name()); |
| 11721 } |
| 11722 } |
| 11723 ElementAttributeMap.prototype.get$clear = function() { |
| 11724 return this.clear.bind(this); |
| 11725 } |
| 11726 ElementAttributeMap.prototype.forEach = function(f) { |
| 11727 var attributes = this._element.get$attributes(); |
| 11728 for (var i = (0), len = attributes.get$length(); |
| 11729 i < len; i++) { |
| 11730 var item = attributes.item$1(i); |
| 11731 f.call$2(item.get$name(), item.get$value()); |
| 11732 } |
| 11733 } |
| 11734 ElementAttributeMap.prototype.getValues = function() { |
| 11735 var attributes = this._element.get$attributes(); |
| 11736 var values = new Array(attributes.get$length()); |
| 11737 for (var i = (0), len = attributes.get$length(); |
| 11738 i < len; i++) { |
| 11739 values.$setindex(i, attributes.item$1(i).get$value()); |
| 11740 } |
| 11741 return values; |
| 11742 } |
| 11743 ElementAttributeMap.prototype.get$length = function() { |
| 11744 return this._element.get$attributes().get$length(); |
| 11745 } |
| 11746 ElementAttributeMap.prototype.clear$0 = ElementAttributeMap.prototype.clear; |
| 11747 ElementAttributeMap.prototype.forEach$1 = function($0) { |
| 11748 return this.forEach(to$call$2($0)); |
| 11749 }; |
| 11750 ElementAttributeMap.prototype.getValues$0 = ElementAttributeMap.prototype.getVal
ues; |
| 11751 ElementAttributeMap.prototype.putIfAbsent$2 = function($0, $1) { |
| 11752 return this.putIfAbsent($0, to$call$0($1)); |
| 11753 }; |
| 11754 ElementAttributeMap.prototype.remove$1 = ElementAttributeMap.prototype.remove; |
| 11755 // ********** Code for SimpleClientRect ************** |
| 11756 function SimpleClientRect(left, top, width, height) { |
| 11757 this.left = left; |
| 11758 this.top = top; |
| 11759 this.width = width; |
| 11760 this.height = height; |
| 11761 } |
| 11762 SimpleClientRect.prototype.get$left = function() { return this.left; }; |
| 11763 SimpleClientRect.prototype.get$top = function() { return this.top; }; |
| 11764 SimpleClientRect.prototype.get$width = function() { return this.width; }; |
| 11765 SimpleClientRect.prototype.get$height = function() { return this.height; }; |
| 11766 SimpleClientRect.prototype.$eq = function(other) { |
| 11767 return other != null && this.left == other.get$left() && this.top == other.get
$top() && this.width == other.get$width() && this.height == other.get$height(); |
| 11768 } |
| 11769 SimpleClientRect.prototype.toString = function() { |
| 11770 return ("(" + this.left + ", " + this.top + ", " + this.width + ", " + this.he
ight + ")"); |
| 11771 } |
| 11772 SimpleClientRect.prototype.toString$0 = SimpleClientRect.prototype.toString; |
| 11773 // ********** Code for ElementRectWrappingImplementation ************** |
| 11774 function ElementRectWrappingImplementation(element) { |
| 11775 this.client = new SimpleClientRect(element.clientLeft, element.clientTop, elem
ent.clientWidth, element.clientHeight); |
| 11776 this.scroll = new SimpleClientRect(element.scrollLeft, element.scrollTop, elem
ent.scrollWidth, element.scrollHeight); |
| 11777 this._clientRects = element.getClientRects(); |
| 11778 this.offset = new SimpleClientRect(element.offsetLeft, element.offsetTop, elem
ent.offsetWidth, element.offsetHeight); |
| 11779 this._boundingClientRect = element.getBoundingClientRect(); |
| 11780 } |
| 11781 ElementRectWrappingImplementation.prototype.get$offset = function() { return thi
s.offset; }; |
| 11782 // ********** Code for ErrorEventWrappingImplementation ************** |
| 11783 $inherits(ErrorEventWrappingImplementation, EventWrappingImplementation); |
| 11784 function ErrorEventWrappingImplementation() {} |
| 11785 ErrorEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 11786 EventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 11787 } |
| 11788 ErrorEventWrappingImplementation._wrap$ctor.prototype = ErrorEventWrappingImplem
entation.prototype; |
| 11789 // ********** Code for EventSourceEventsImplementation ************** |
| 11790 $inherits(EventSourceEventsImplementation, EventsImplementation); |
| 11791 function EventSourceEventsImplementation() {} |
| 11792 EventSourceEventsImplementation._wrap$ctor = function(_ptr) { |
| 11793 EventsImplementation._wrap$ctor.call(this, _ptr); |
| 11794 } |
| 11795 EventSourceEventsImplementation._wrap$ctor.prototype = EventSourceEventsImplemen
tation.prototype; |
| 11796 EventSourceEventsImplementation.prototype.get$open = function() { |
| 11797 return this._get("open"); |
| 11798 } |
| 11799 EventSourceEventsImplementation.prototype.open$2 = function($0, $1) { |
| 11800 return this.get$open().call$2($0, $1); |
| 11801 }; |
| 11802 EventSourceEventsImplementation.prototype.open$3 = function($0, $1, $2) { |
| 11803 return this.get$open()($0, $1, $2); |
| 11804 }; |
| 11805 EventSourceEventsImplementation.prototype.open$4 = function($0, $1, $2, $3) { |
| 11806 return this.get$open()($0, $1, $2, $3); |
| 11807 }; |
| 11808 EventSourceEventsImplementation.prototype.open$5 = function($0, $1, $2, $3, $4)
{ |
| 11809 return this.get$open()($0, $1, $2, $3, $4); |
| 11810 }; |
| 11811 // ********** Code for EventSourceWrappingImplementation ************** |
| 11812 $inherits(EventSourceWrappingImplementation, EventTargetWrappingImplementation); |
| 11813 function EventSourceWrappingImplementation() {} |
| 11814 EventSourceWrappingImplementation._wrap$ctor = function(ptr) { |
| 11815 EventTargetWrappingImplementation._wrap$ctor.call(this, ptr); |
| 11816 } |
| 11817 EventSourceWrappingImplementation._wrap$ctor.prototype = EventSourceWrappingImpl
ementation.prototype; |
| 11818 EventSourceWrappingImplementation.prototype.get$readyState = function() { |
| 11819 return this._ptr.get$readyState(); |
| 11820 } |
| 11821 EventSourceWrappingImplementation.prototype.get$on = function() { |
| 11822 if (this._on == null) { |
| 11823 this._on = new EventSourceEventsImplementation._wrap$ctor(this._ptr); |
| 11824 } |
| 11825 return this._on; |
| 11826 } |
| 11827 // ********** Code for _EventListenerWrapper ************** |
| 11828 function _EventListenerWrapper(raw, wrapped, useCapture) { |
| 11829 this.wrapped = wrapped; |
| 11830 this.useCapture = useCapture; |
| 11831 this.raw = raw; |
| 11832 } |
| 11833 // ********** Code for EventListenerListImplementation ************** |
| 11834 function EventListenerListImplementation(_ptr, _type) { |
| 11835 this._ptr = _ptr; |
| 11836 this._type = _type; |
| 11837 this._wrappers = new Array(); |
| 11838 } |
| 11839 EventListenerListImplementation.prototype.get$_ptr = function() { return this._p
tr; }; |
| 11840 EventListenerListImplementation.prototype.add = function(listener, useCapture) { |
| 11841 this._htmlimpl_add(listener, useCapture); |
| 11842 return this; |
| 11843 } |
| 11844 EventListenerListImplementation.prototype.remove = function(listener, useCapture
) { |
| 11845 this._htmlimpl_remove(listener, useCapture); |
| 11846 return this; |
| 11847 } |
| 11848 EventListenerListImplementation.prototype.dispatch = function(evt) { |
| 11849 return this._ptr.dispatchEvent$1(LevelDom.unwrap(evt)); |
| 11850 } |
| 11851 EventListenerListImplementation.prototype._htmlimpl_add = function(listener, use
Capture) { |
| 11852 this._ptr.addEventListener$3(this._type, this._findOrAddWrapper(listener, useC
apture), useCapture); |
| 11853 } |
| 11854 EventListenerListImplementation.prototype._htmlimpl_remove = function(listener,
useCapture) { |
| 11855 var wrapper = this._removeWrapper(listener, useCapture); |
| 11856 if (wrapper != null) { |
| 11857 this._ptr.removeEventListener$3(this._type, wrapper, useCapture); |
| 11858 } |
| 11859 } |
| 11860 EventListenerListImplementation.prototype._removeWrapper = function(listener, us
eCapture) { |
| 11861 if (this._wrappers == null) { |
| 11862 return null; |
| 11863 } |
| 11864 for (var i = (0); |
| 11865 i < this._wrappers.get$length(); i++) { |
| 11866 var wrapper = this._wrappers.$index(i); |
| 11867 if (wrapper.raw == listener && $eq(wrapper.useCapture, useCapture)) { |
| 11868 if (i + (1) != this._wrappers.get$length()) { |
| 11869 this._wrappers.$setindex(i, this._wrappers.removeLast$0()); |
| 11870 } |
| 11871 else { |
| 11872 this._wrappers.removeLast$0(); |
| 11873 } |
| 11874 return wrapper.wrapped; |
| 11875 } |
| 11876 } |
| 11877 return null; |
| 11878 } |
| 11879 EventListenerListImplementation.prototype._findOrAddWrapper = function(listener,
useCapture) { |
| 11880 if (this._wrappers == null) { |
| 11881 this._wrappers = []; |
| 11882 } |
| 11883 else { |
| 11884 var $$list = this._wrappers; |
| 11885 for (var $$i = 0;$$i < $$list.get$length(); $$i++) { |
| 11886 var wrapper = $$list.$index($$i); |
| 11887 if (wrapper.raw == listener && $eq(wrapper.useCapture, useCapture)) { |
| 11888 return wrapper.wrapped; |
| 11889 } |
| 11890 } |
| 11891 } |
| 11892 var wrapped = (function (e) { |
| 11893 listener.call$1(LevelDom.wrapEvent(e)); |
| 11894 }) |
| 11895 ; |
| 11896 this._wrappers.add$1(new _EventListenerWrapper(listener, wrapped, useCapture))
; |
| 11897 return wrapped; |
| 11898 } |
| 11899 EventListenerListImplementation.prototype.add$1 = function($0) { |
| 11900 return this.add(to$call$1($0), false); |
| 11901 }; |
| 11902 EventListenerListImplementation.prototype.add$2 = function($0, $1) { |
| 11903 return this.add(to$call$1($0), $1); |
| 11904 }; |
| 11905 EventListenerListImplementation.prototype.remove$1 = function($0) { |
| 11906 return this.remove(to$call$1($0), false); |
| 11907 }; |
| 11908 EventListenerListImplementation.prototype.remove$2 = function($0, $1) { |
| 11909 return this.remove(to$call$1($0), $1); |
| 11910 }; |
| 11911 // ********** Code for HashChangeEventWrappingImplementation ************** |
| 11912 $inherits(HashChangeEventWrappingImplementation, EventWrappingImplementation); |
| 11913 function HashChangeEventWrappingImplementation() {} |
| 11914 HashChangeEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 11915 EventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 11916 } |
| 11917 HashChangeEventWrappingImplementation._wrap$ctor.prototype = HashChangeEventWrap
pingImplementation.prototype; |
| 11918 // ********** Code for KeyboardEventWrappingImplementation ************** |
| 11919 $inherits(KeyboardEventWrappingImplementation, UIEventWrappingImplementation); |
| 11920 function KeyboardEventWrappingImplementation() {} |
| 11921 KeyboardEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 11922 UIEventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 11923 } |
| 11924 KeyboardEventWrappingImplementation._wrap$ctor.prototype = KeyboardEventWrapping
Implementation.prototype; |
| 11925 // ********** Code for _MeasurementRequest ************** |
| 11926 function _MeasurementRequest(computeValue, completer) { |
| 11927 this.computeValue = computeValue; |
| 11928 this.exception = false; |
| 11929 this.completer = completer; |
| 11930 } |
| 11931 _MeasurementRequest.prototype.get$value = function() { return this.value; }; |
| 11932 _MeasurementRequest.prototype.set$value = function(value) { return this.value =
value; }; |
| 11933 // ********** Code for MessageEventWrappingImplementation ************** |
| 11934 $inherits(MessageEventWrappingImplementation, EventWrappingImplementation); |
| 11935 function MessageEventWrappingImplementation() {} |
| 11936 MessageEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 11937 EventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 11938 } |
| 11939 MessageEventWrappingImplementation._wrap$ctor.prototype = MessageEventWrappingIm
plementation.prototype; |
| 11940 MessageEventWrappingImplementation.prototype.get$source = function() { |
| 11941 return LevelDom.wrapWindow(this._ptr.get$source()); |
| 11942 } |
| 11943 // ********** Code for MessagePortWrappingImplementation ************** |
| 11944 $inherits(MessagePortWrappingImplementation, EventTargetWrappingImplementation); |
| 11945 function MessagePortWrappingImplementation() {} |
| 11946 MessagePortWrappingImplementation._wrap$ctor = function(ptr) { |
| 11947 EventTargetWrappingImplementation._wrap$ctor.call(this, ptr); |
| 11948 } |
| 11949 MessagePortWrappingImplementation._wrap$ctor.prototype = MessagePortWrappingImpl
ementation.prototype; |
| 11950 // ********** Code for MouseEventWrappingImplementation ************** |
| 11951 $inherits(MouseEventWrappingImplementation, UIEventWrappingImplementation); |
| 11952 function MouseEventWrappingImplementation() {} |
| 11953 MouseEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 11954 UIEventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 11955 } |
| 11956 MouseEventWrappingImplementation._wrap$ctor.prototype = MouseEventWrappingImplem
entation.prototype; |
| 11957 MouseEventWrappingImplementation.prototype.get$clientX = function() { |
| 11958 return this._ptr.get$clientX(); |
| 11959 } |
| 11960 MouseEventWrappingImplementation.prototype.get$clientY = function() { |
| 11961 return this._ptr.get$clientY(); |
| 11962 } |
| 11963 MouseEventWrappingImplementation.prototype.get$x = function() { |
| 11964 return this._ptr.get$x(); |
| 11965 } |
| 11966 MouseEventWrappingImplementation.prototype.get$y = function() { |
| 11967 return this._ptr.get$y(); |
| 11968 } |
| 11969 // ********** Code for MutationEventWrappingImplementation ************** |
| 11970 $inherits(MutationEventWrappingImplementation, EventWrappingImplementation); |
| 11971 function MutationEventWrappingImplementation() {} |
| 11972 MutationEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 11973 EventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 11974 } |
| 11975 MutationEventWrappingImplementation._wrap$ctor.prototype = MutationEventWrapping
Implementation.prototype; |
| 11976 // ********** Code for _ChildrenNodeList ************** |
| 11977 function _ChildrenNodeList() {} |
| 11978 _ChildrenNodeList._wrap$ctor = function(node) { |
| 11979 this._node = node; |
| 11980 this._childNodes = node.get$childNodes(); |
| 11981 } |
| 11982 _ChildrenNodeList._wrap$ctor.prototype = _ChildrenNodeList.prototype; |
| 11983 _ChildrenNodeList.prototype.is$List = function(){return true}; |
| 11984 _ChildrenNodeList.prototype._toList = function() { |
| 11985 var output = new Array(this._childNodes.get$length()); |
| 11986 for (var i = (0), len = this._childNodes.get$length(); |
| 11987 i < len; i++) { |
| 11988 output.$setindex(i, LevelDom.wrapNode(this._childNodes.$index(i))); |
| 11989 } |
| 11990 return output; |
| 11991 } |
| 11992 _ChildrenNodeList.prototype.get$first = function() { |
| 11993 return LevelDom.wrapNode(this._node.get$firstChild()); |
| 11994 } |
| 11995 _ChildrenNodeList.prototype.forEach = function(f) { |
| 11996 return this._toList().forEach(f); |
| 11997 } |
| 11998 _ChildrenNodeList.prototype.filter = function(f) { |
| 11999 return this._toList().filter$1(f); |
| 12000 } |
| 12001 _ChildrenNodeList.prototype.some = function(f) { |
| 12002 for (var $$i = this.iterator(); $$i.hasNext(); ) { |
| 12003 var element = $$i.next$0(); |
| 12004 if (f.call$1(element)) { |
| 12005 return true; |
| 12006 } |
| 12007 } |
| 12008 ; |
| 12009 return false; |
| 12010 } |
| 12011 _ChildrenNodeList.prototype.isEmpty = function() { |
| 12012 return !this._node.hasChildNodes$0(); |
| 12013 } |
| 12014 _ChildrenNodeList.prototype.get$length = function() { |
| 12015 return this._childNodes.get$length(); |
| 12016 } |
| 12017 _ChildrenNodeList.prototype.set$length = function(newLength) { |
| 12018 $throw(new UnsupportedOperationException("")); |
| 12019 } |
| 12020 _ChildrenNodeList.prototype.$index = function(index) { |
| 12021 return LevelDom.wrapNode(this._childNodes.$index(index)); |
| 12022 } |
| 12023 _ChildrenNodeList.prototype.$setindex = function(index, value) { |
| 12024 this._node.replaceChild$2(LevelDom.unwrap(value), this._childNodes.$index(inde
x)); |
| 12025 } |
| 12026 _ChildrenNodeList.prototype.add = function(value) { |
| 12027 this._node.appendChild$1(LevelDom.unwrap(value)); |
| 12028 return value; |
| 12029 } |
| 12030 _ChildrenNodeList.prototype.iterator = function() { |
| 12031 return this._toList().iterator$0(); |
| 12032 } |
| 12033 _ChildrenNodeList.prototype.addAll = function(collection) { |
| 12034 for (var $$i = collection.iterator$0(); $$i.hasNext$0(); ) { |
| 12035 var node = $$i.next$0(); |
| 12036 this._node.appendChild$1(LevelDom.unwrap(node)); |
| 12037 } |
| 12038 } |
| 12039 _ChildrenNodeList.prototype.sort = function(compare) { |
| 12040 $throw(const$0022); |
| 12041 } |
| 12042 _ChildrenNodeList.prototype.getRange = function(start, length) { |
| 12043 return Lists.getRange(this, start, length); |
| 12044 } |
| 12045 _ChildrenNodeList.prototype.indexOf = function(element, start) { |
| 12046 return Lists.indexOf(this, element, start, this.get$length()); |
| 12047 } |
| 12048 _ChildrenNodeList.prototype.clear = function() { |
| 12049 this._node.set$textContent(""); |
| 12050 } |
| 12051 _ChildrenNodeList.prototype.get$clear = function() { |
| 12052 return this.clear.bind(this); |
| 12053 } |
| 12054 _ChildrenNodeList.prototype.removeLast = function() { |
| 12055 var last = this.last(); |
| 12056 if (last != null) { |
| 12057 this._node.removeChild$1(LevelDom.unwrap(last)); |
| 12058 } |
| 12059 return last; |
| 12060 } |
| 12061 _ChildrenNodeList.prototype.last = function() { |
| 12062 return LevelDom.wrapNode(this._node.get$lastChild()); |
| 12063 } |
| 12064 _ChildrenNodeList.prototype.add$1 = _ChildrenNodeList.prototype.add; |
| 12065 _ChildrenNodeList.prototype.addAll$1 = _ChildrenNodeList.prototype.addAll; |
| 12066 _ChildrenNodeList.prototype.clear$0 = _ChildrenNodeList.prototype.clear; |
| 12067 _ChildrenNodeList.prototype.filter$1 = function($0) { |
| 12068 return this.filter(to$call$1($0)); |
| 12069 }; |
| 12070 _ChildrenNodeList.prototype.forEach$1 = function($0) { |
| 12071 return this.forEach(to$call$1($0)); |
| 12072 }; |
| 12073 _ChildrenNodeList.prototype.getRange$2 = _ChildrenNodeList.prototype.getRange; |
| 12074 _ChildrenNodeList.prototype.iterator$0 = _ChildrenNodeList.prototype.iterator; |
| 12075 _ChildrenNodeList.prototype.last$0 = _ChildrenNodeList.prototype.last; |
| 12076 _ChildrenNodeList.prototype.removeLast$0 = _ChildrenNodeList.prototype.removeLas
t; |
| 12077 // ********** Code for NotificationWrappingImplementation ************** |
| 12078 $inherits(NotificationWrappingImplementation, EventTargetWrappingImplementation)
; |
| 12079 function NotificationWrappingImplementation() {} |
| 12080 NotificationWrappingImplementation._wrap$ctor = function(ptr) { |
| 12081 EventTargetWrappingImplementation._wrap$ctor.call(this, ptr); |
| 12082 } |
| 12083 NotificationWrappingImplementation._wrap$ctor.prototype = NotificationWrappingIm
plementation.prototype; |
| 12084 NotificationWrappingImplementation.prototype.get$typeName = function() { |
| 12085 return "Notification"; |
| 12086 } |
| 12087 // ********** Code for ObjectElementWrappingImplementation ************** |
| 12088 $inherits(ObjectElementWrappingImplementation, ElementWrappingImplementation); |
| 12089 function ObjectElementWrappingImplementation() {} |
| 12090 ObjectElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 12091 ElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 12092 } |
| 12093 ObjectElementWrappingImplementation._wrap$ctor.prototype = ObjectElementWrapping
Implementation.prototype; |
| 12094 ObjectElementWrappingImplementation.prototype.is$html_html_Element = function(){
return true}; |
| 12095 ObjectElementWrappingImplementation.prototype.get$height = function() { |
| 12096 return this._ptr.get$height(); |
| 12097 } |
| 12098 ObjectElementWrappingImplementation.prototype.set$height = function(value) { |
| 12099 this._ptr.set$height(value); |
| 12100 } |
| 12101 ObjectElementWrappingImplementation.prototype.get$name = function() { |
| 12102 return this._ptr.get$name(); |
| 12103 } |
| 12104 ObjectElementWrappingImplementation.prototype.get$type = function() { |
| 12105 return this._ptr.get$type(); |
| 12106 } |
| 12107 ObjectElementWrappingImplementation.prototype.get$width = function() { |
| 12108 return this._ptr.get$width(); |
| 12109 } |
| 12110 ObjectElementWrappingImplementation.prototype.set$width = function(value) { |
| 12111 this._ptr.set$width(value); |
| 12112 } |
| 12113 // ********** Code for OverflowEventWrappingImplementation ************** |
| 12114 $inherits(OverflowEventWrappingImplementation, EventWrappingImplementation); |
| 12115 function OverflowEventWrappingImplementation() {} |
| 12116 OverflowEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 12117 EventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 12118 } |
| 12119 OverflowEventWrappingImplementation._wrap$ctor.prototype = OverflowEventWrapping
Implementation.prototype; |
| 12120 // ********** Code for PageTransitionEventWrappingImplementation ************** |
| 12121 $inherits(PageTransitionEventWrappingImplementation, EventWrappingImplementation
); |
| 12122 function PageTransitionEventWrappingImplementation() {} |
| 12123 PageTransitionEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 12124 EventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 12125 } |
| 12126 PageTransitionEventWrappingImplementation._wrap$ctor.prototype = PageTransitionE
ventWrappingImplementation.prototype; |
| 12127 // ********** Code for PopStateEventWrappingImplementation ************** |
| 12128 $inherits(PopStateEventWrappingImplementation, EventWrappingImplementation); |
| 12129 function PopStateEventWrappingImplementation() {} |
| 12130 PopStateEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 12131 EventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 12132 } |
| 12133 PopStateEventWrappingImplementation._wrap$ctor.prototype = PopStateEventWrapping
Implementation.prototype; |
| 12134 // ********** Code for ProgressEventWrappingImplementation ************** |
| 12135 $inherits(ProgressEventWrappingImplementation, EventWrappingImplementation); |
| 12136 function ProgressEventWrappingImplementation() {} |
| 12137 ProgressEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 12138 EventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 12139 } |
| 12140 ProgressEventWrappingImplementation._wrap$ctor.prototype = ProgressEventWrapping
Implementation.prototype; |
| 12141 // ********** Code for SharedWorkerWrappingImplementation ************** |
| 12142 $inherits(SharedWorkerWrappingImplementation, AbstractWorkerWrappingImplementati
on); |
| 12143 function SharedWorkerWrappingImplementation() {} |
| 12144 SharedWorkerWrappingImplementation._wrap$ctor = function(ptr) { |
| 12145 AbstractWorkerWrappingImplementation._wrap$ctor.call(this, ptr); |
| 12146 } |
| 12147 SharedWorkerWrappingImplementation._wrap$ctor.prototype = SharedWorkerWrappingIm
plementation.prototype; |
| 12148 // ********** Code for StorageEventWrappingImplementation ************** |
| 12149 $inherits(StorageEventWrappingImplementation, EventWrappingImplementation); |
| 12150 function StorageEventWrappingImplementation() {} |
| 12151 StorageEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 12152 EventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 12153 } |
| 12154 StorageEventWrappingImplementation._wrap$ctor.prototype = StorageEventWrappingIm
plementation.prototype; |
| 12155 // ********** Code for SVGDocumentWrappingImplementation ************** |
| 12156 $inherits(SVGDocumentWrappingImplementation, DocumentWrappingImplementation); |
| 12157 function SVGDocumentWrappingImplementation() {} |
| 12158 SVGDocumentWrappingImplementation._wrap$ctor = function(ptr) { |
| 12159 DocumentWrappingImplementation._wrap$ctor.call(this, ptr, ptr.rootElement); |
| 12160 } |
| 12161 SVGDocumentWrappingImplementation._wrap$ctor.prototype = SVGDocumentWrappingImpl
ementation.prototype; |
| 12162 SVGDocumentWrappingImplementation.prototype.is$html_html_Document = function(){r
eturn true}; |
| 12163 SVGDocumentWrappingImplementation.prototype.is$html_html_Element = function(){re
turn true}; |
| 12164 // ********** Code for _SVGClassSet ************** |
| 12165 $inherits(_SVGClassSet, _CssClassSet); |
| 12166 function _SVGClassSet(element) { |
| 12167 _CssClassSet.call(this, element); |
| 12168 } |
| 12169 _SVGClassSet.prototype._className = function() { |
| 12170 return this._htmlimpl_element.get$className().get$baseVal(); |
| 12171 } |
| 12172 _SVGClassSet.prototype._write = function(s) { |
| 12173 this._htmlimpl_element.get$className().set$baseVal(this._formatSet(s)); |
| 12174 } |
| 12175 // ********** Code for SVGElementInstanceWrappingImplementation ************** |
| 12176 $inherits(SVGElementInstanceWrappingImplementation, EventTargetWrappingImplement
ation); |
| 12177 function SVGElementInstanceWrappingImplementation() {} |
| 12178 SVGElementInstanceWrappingImplementation._wrap$ctor = function(ptr) { |
| 12179 EventTargetWrappingImplementation._wrap$ctor.call(this, ptr); |
| 12180 } |
| 12181 SVGElementInstanceWrappingImplementation._wrap$ctor.prototype = SVGElementInstan
ceWrappingImplementation.prototype; |
| 12182 SVGElementInstanceWrappingImplementation.prototype.get$childNodes = function() { |
| 12183 return LevelDom.wrapSVGElementInstanceList(this._ptr.get$childNodes()); |
| 12184 } |
| 12185 SVGElementInstanceWrappingImplementation.prototype.get$firstChild = function() { |
| 12186 return LevelDom.wrapSVGElementInstance(this._ptr.get$firstChild()); |
| 12187 } |
| 12188 SVGElementInstanceWrappingImplementation.prototype.get$lastChild = function() { |
| 12189 return LevelDom.wrapSVGElementInstance(this._ptr.get$lastChild()); |
| 12190 } |
| 12191 SVGElementInstanceWrappingImplementation.prototype.get$parentNode = function() { |
| 12192 return LevelDom.wrapSVGElementInstance(this._ptr.get$parentNode()); |
| 12193 } |
| 12194 // ********** Code for SVGSVGElementWrappingImplementation ************** |
| 12195 $inherits(SVGSVGElementWrappingImplementation, SVGElementWrappingImplementation)
; |
| 12196 function SVGSVGElementWrappingImplementation() {} |
| 12197 SVGSVGElementWrappingImplementation._wrap$ctor = function(ptr) { |
| 12198 SVGElementWrappingImplementation._wrap$ctor.call(this, ptr); |
| 12199 } |
| 12200 SVGSVGElementWrappingImplementation._wrap$ctor.prototype = SVGSVGElementWrapping
Implementation.prototype; |
| 12201 SVGSVGElementWrappingImplementation.prototype.is$html_html_Element = function(){
return true}; |
| 12202 SVGSVGElementWrappingImplementation.prototype.get$height = function() { |
| 12203 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$height()); |
| 12204 } |
| 12205 SVGSVGElementWrappingImplementation.prototype.get$width = function() { |
| 12206 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$width()); |
| 12207 } |
| 12208 SVGSVGElementWrappingImplementation.prototype.get$x = function() { |
| 12209 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$x()); |
| 12210 } |
| 12211 SVGSVGElementWrappingImplementation.prototype.get$y = function() { |
| 12212 return LevelDom.wrapSVGAnimatedLength(this._ptr.get$y()); |
| 12213 } |
| 12214 SVGSVGElementWrappingImplementation.prototype.get$className = function() { |
| 12215 return LevelDom.wrapSVGAnimatedString(this._ptr.get$className()); |
| 12216 } |
| 12217 SVGSVGElementWrappingImplementation.prototype.get$style = function() { |
| 12218 return LevelDom.wrapCSSStyleDeclaration(this._ptr.get$style()); |
| 12219 } |
| 12220 // ********** Code for TextEventWrappingImplementation ************** |
| 12221 $inherits(TextEventWrappingImplementation, UIEventWrappingImplementation); |
| 12222 function TextEventWrappingImplementation() {} |
| 12223 TextEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 12224 UIEventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 12225 } |
| 12226 TextEventWrappingImplementation._wrap$ctor.prototype = TextEventWrappingImplemen
tation.prototype; |
| 12227 // ********** Code for TouchEventWrappingImplementation ************** |
| 12228 $inherits(TouchEventWrappingImplementation, UIEventWrappingImplementation); |
| 12229 function TouchEventWrappingImplementation() {} |
| 12230 TouchEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 12231 UIEventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 12232 } |
| 12233 TouchEventWrappingImplementation._wrap$ctor.prototype = TouchEventWrappingImplem
entation.prototype; |
| 12234 TouchEventWrappingImplementation.prototype.get$changedTouches = function() { |
| 12235 return LevelDom.wrapTouchList(this._ptr.get$changedTouches()); |
| 12236 } |
| 12237 TouchEventWrappingImplementation.prototype.get$touches = function() { |
| 12238 return LevelDom.wrapTouchList(this._ptr.get$touches()); |
| 12239 } |
| 12240 // ********** Code for TransitionEventWrappingImplementation ************** |
| 12241 $inherits(TransitionEventWrappingImplementation, EventWrappingImplementation); |
| 12242 function TransitionEventWrappingImplementation() {} |
| 12243 TransitionEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 12244 EventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 12245 } |
| 12246 TransitionEventWrappingImplementation._wrap$ctor.prototype = TransitionEventWrap
pingImplementation.prototype; |
| 12247 // ********** Code for WebSocketWrappingImplementation ************** |
| 12248 $inherits(WebSocketWrappingImplementation, EventTargetWrappingImplementation); |
| 12249 function WebSocketWrappingImplementation() {} |
| 12250 WebSocketWrappingImplementation._wrap$ctor = function(ptr) { |
| 12251 EventTargetWrappingImplementation._wrap$ctor.call(this, ptr); |
| 12252 } |
| 12253 WebSocketWrappingImplementation._wrap$ctor.prototype = WebSocketWrappingImplemen
tation.prototype; |
| 12254 WebSocketWrappingImplementation.prototype.get$protocol = function() { |
| 12255 return this._ptr.get$protocol(); |
| 12256 } |
| 12257 WebSocketWrappingImplementation.prototype.get$readyState = function() { |
| 12258 return this._ptr.get$readyState(); |
| 12259 } |
| 12260 WebSocketWrappingImplementation.prototype.send = function(data) { |
| 12261 return this._ptr.send$1(data); |
| 12262 } |
| 12263 WebSocketWrappingImplementation.prototype.get$typeName = function() { |
| 12264 return "WebSocket"; |
| 12265 } |
| 12266 WebSocketWrappingImplementation.prototype.send$1 = WebSocketWrappingImplementati
on.prototype.send; |
| 12267 // ********** Code for WheelEventWrappingImplementation ************** |
| 12268 $inherits(WheelEventWrappingImplementation, UIEventWrappingImplementation); |
| 12269 function WheelEventWrappingImplementation() {} |
| 12270 WheelEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 12271 UIEventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 12272 } |
| 12273 WheelEventWrappingImplementation._wrap$ctor.prototype = WheelEventWrappingImplem
entation.prototype; |
| 12274 WheelEventWrappingImplementation.prototype.get$clientX = function() { |
| 12275 return this._ptr.get$clientX(); |
| 12276 } |
| 12277 WheelEventWrappingImplementation.prototype.get$clientY = function() { |
| 12278 return this._ptr.get$clientY(); |
| 12279 } |
| 12280 WheelEventWrappingImplementation.prototype.get$wheelDeltaX = function() { |
| 12281 return this._ptr.get$wheelDeltaX(); |
| 12282 } |
| 12283 WheelEventWrappingImplementation.prototype.get$wheelDeltaY = function() { |
| 12284 return this._ptr.get$wheelDeltaY(); |
| 12285 } |
| 12286 WheelEventWrappingImplementation.prototype.get$x = function() { |
| 12287 return this._ptr.get$x(); |
| 12288 } |
| 12289 WheelEventWrappingImplementation.prototype.get$y = function() { |
| 12290 return this._ptr.get$y(); |
| 12291 } |
| 12292 // ********** Code for WindowEventsImplementation ************** |
| 12293 $inherits(WindowEventsImplementation, EventsImplementation); |
| 12294 function WindowEventsImplementation() {} |
| 12295 WindowEventsImplementation._wrap$ctor = function(_ptr) { |
| 12296 EventsImplementation._wrap$ctor.call(this, _ptr); |
| 12297 } |
| 12298 WindowEventsImplementation._wrap$ctor.prototype = WindowEventsImplementation.pro
totype; |
| 12299 WindowEventsImplementation.prototype.get$blur = function() { |
| 12300 return this._get("blur"); |
| 12301 } |
| 12302 WindowEventsImplementation.prototype.get$click = function() { |
| 12303 return this._get("click"); |
| 12304 } |
| 12305 WindowEventsImplementation.prototype.get$focus = function() { |
| 12306 return this._get("focus"); |
| 12307 } |
| 12308 WindowEventsImplementation.prototype.get$keyDown = function() { |
| 12309 return this._get("keydown"); |
| 12310 } |
| 12311 WindowEventsImplementation.prototype.get$load = function() { |
| 12312 return this._get("load"); |
| 12313 } |
| 12314 WindowEventsImplementation.prototype.get$message = function() { |
| 12315 return this._get("message"); |
| 12316 } |
| 12317 WindowEventsImplementation.prototype.get$mouseDown = function() { |
| 12318 return this._get("mousedown"); |
| 12319 } |
| 12320 WindowEventsImplementation.prototype.get$mouseOut = function() { |
| 12321 return this._get("mouseout"); |
| 12322 } |
| 12323 WindowEventsImplementation.prototype.get$mouseOver = function() { |
| 12324 return this._get("mouseover"); |
| 12325 } |
| 12326 WindowEventsImplementation.prototype.get$mouseWheel = function() { |
| 12327 return this._get("mousewheel"); |
| 12328 } |
| 12329 WindowEventsImplementation.prototype.get$popState = function() { |
| 12330 return this._get("popstate"); |
| 12331 } |
| 12332 WindowEventsImplementation.prototype.get$resize = function() { |
| 12333 return this._get("resize"); |
| 12334 } |
| 12335 WindowEventsImplementation.prototype.get$touchEnd = function() { |
| 12336 return this._get("touchend"); |
| 12337 } |
| 12338 WindowEventsImplementation.prototype.get$touchStart = function() { |
| 12339 return this._get("touchstart"); |
| 12340 } |
| 12341 WindowEventsImplementation.prototype.get$transitionEnd = function() { |
| 12342 return this._get("webkitTransitionEnd"); |
| 12343 } |
| 12344 WindowEventsImplementation.prototype.get$contentLoaded = function() { |
| 12345 return this._get("DOMContentLoaded"); |
| 12346 } |
| 12347 WindowEventsImplementation.prototype.blur$0 = function() { |
| 12348 return this.get$blur().call$0(); |
| 12349 }; |
| 12350 WindowEventsImplementation.prototype.click$0 = function() { |
| 12351 return this.get$click().call$0(); |
| 12352 }; |
| 12353 WindowEventsImplementation.prototype.focus$0 = function() { |
| 12354 return this.get$focus().call$0(); |
| 12355 }; |
| 12356 WindowEventsImplementation.prototype.load$0 = function() { |
| 12357 return this.get$load().call$0(); |
| 12358 }; |
| 12359 // ********** Code for WindowWrappingImplementation ************** |
| 12360 $inherits(WindowWrappingImplementation, EventTargetWrappingImplementation); |
| 12361 function WindowWrappingImplementation() {} |
| 12362 WindowWrappingImplementation._wrap$ctor = function(ptr) { |
| 12363 EventTargetWrappingImplementation._wrap$ctor.call(this, ptr); |
| 12364 } |
| 12365 WindowWrappingImplementation._wrap$ctor.prototype = WindowWrappingImplementation
.prototype; |
| 12366 WindowWrappingImplementation.prototype.get$applicationCache = function() { |
| 12367 return LevelDom.wrapDOMApplicationCache(this._ptr.get$applicationCache()); |
| 12368 } |
| 12369 WindowWrappingImplementation.prototype.get$console = function() { |
| 12370 return LevelDom.wrapConsole(this._ptr.get$console()); |
| 12371 } |
| 12372 WindowWrappingImplementation.prototype.get$history = function() { |
| 12373 return LevelDom.wrapHistory(this._ptr.get$history()); |
| 12374 } |
| 12375 WindowWrappingImplementation.prototype.get$length = function() { |
| 12376 return this._ptr.get$length(); |
| 12377 } |
| 12378 WindowWrappingImplementation.prototype.get$location = function() { |
| 12379 return LevelDom.wrapLocation(this._ptr.get$location()); |
| 12380 } |
| 12381 WindowWrappingImplementation.prototype.get$name = function() { |
| 12382 return this._ptr.get$name(); |
| 12383 } |
| 12384 WindowWrappingImplementation.prototype.get$navigator = function() { |
| 12385 return LevelDom.wrapNavigator(this._ptr.get$navigator()); |
| 12386 } |
| 12387 WindowWrappingImplementation.prototype.get$screen = function() { |
| 12388 return LevelDom.wrapScreen(this._ptr.get$screen()); |
| 12389 } |
| 12390 WindowWrappingImplementation.prototype.get$status = function() { |
| 12391 return this._ptr.get$status(); |
| 12392 } |
| 12393 WindowWrappingImplementation.prototype.set$top = function(value) { |
| 12394 this._ptr.set$top(LevelDom.unwrap(value)); |
| 12395 } |
| 12396 WindowWrappingImplementation.prototype.blur = function() { |
| 12397 this._ptr.blur$0(); |
| 12398 } |
| 12399 WindowWrappingImplementation.prototype.get$blur = function() { |
| 12400 return this.blur.bind(this); |
| 12401 } |
| 12402 WindowWrappingImplementation.prototype.clearInterval = function(handle) { |
| 12403 if (handle == null) { |
| 12404 this._ptr.clearInterval$0(); |
| 12405 } |
| 12406 else { |
| 12407 this._ptr.clearInterval$1(handle); |
| 12408 } |
| 12409 } |
| 12410 WindowWrappingImplementation.prototype.clearTimeout = function(handle) { |
| 12411 if (handle == null) { |
| 12412 this._ptr.clearTimeout$0(); |
| 12413 } |
| 12414 else { |
| 12415 this._ptr.clearTimeout$1(handle); |
| 12416 } |
| 12417 } |
| 12418 WindowWrappingImplementation.prototype.focus = function() { |
| 12419 this._ptr.focus$0(); |
| 12420 } |
| 12421 WindowWrappingImplementation.prototype.get$focus = function() { |
| 12422 return this.focus.bind(this); |
| 12423 } |
| 12424 WindowWrappingImplementation.prototype.open = function(url, target, features) { |
| 12425 if (features == null) { |
| 12426 return LevelDom.wrapWindow(this._ptr.open$2(url, target)); |
| 12427 } |
| 12428 else { |
| 12429 return LevelDom.wrapWindow(this._ptr.open$3(url, target, features)); |
| 12430 } |
| 12431 } |
| 12432 WindowWrappingImplementation.prototype.open.$optional = ['features', 'null'] |
| 12433 WindowWrappingImplementation.prototype.get$open = function() { |
| 12434 return this.open.bind(this); |
| 12435 } |
| 12436 WindowWrappingImplementation.prototype.postMessage = function(message, messagePo
rt, targetOrigin) { |
| 12437 if (targetOrigin == null) { |
| 12438 if (messagePort == null) { |
| 12439 this._ptr.postMessage$1(message); |
| 12440 return; |
| 12441 } |
| 12442 else { |
| 12443 this._ptr.postMessage$2(message, messagePort); |
| 12444 return; |
| 12445 } |
| 12446 } |
| 12447 else { |
| 12448 this._ptr.postMessage$3(message, LevelDom.unwrap(messagePort), targetOrigin)
; |
| 12449 return; |
| 12450 } |
| 12451 $throw("Incorrect number or type of arguments"); |
| 12452 } |
| 12453 WindowWrappingImplementation.prototype.setInterval = function(handler, timeout)
{ |
| 12454 return this._ptr.setInterval$2(handler, timeout); |
| 12455 } |
| 12456 WindowWrappingImplementation.prototype.setTimeout = function(handler, timeout) { |
| 12457 return this._ptr.setTimeout$2(handler, timeout); |
| 12458 } |
| 12459 WindowWrappingImplementation.prototype.webkitConvertPointFromNodeToPage = functi
on(node, p) { |
| 12460 if (node == null) { |
| 12461 if (p == null) { |
| 12462 return LevelDom.wrapPoint(this._ptr.webkitConvertPointFromNodeToPage$0()); |
| 12463 } |
| 12464 } |
| 12465 else { |
| 12466 if (p == null) { |
| 12467 return LevelDom.wrapPoint(this._ptr.webkitConvertPointFromNodeToPage$1(Lev
elDom.unwrap(node))); |
| 12468 } |
| 12469 else { |
| 12470 return LevelDom.wrapPoint(this._ptr.webkitConvertPointFromNodeToPage$2(Lev
elDom.unwrap(node), LevelDom.unwrap(p))); |
| 12471 } |
| 12472 } |
| 12473 $throw("Incorrect number or type of arguments"); |
| 12474 } |
| 12475 WindowWrappingImplementation.prototype.webkitConvertPointFromPageToNode = functi
on(node, p) { |
| 12476 if (node == null) { |
| 12477 if (p == null) { |
| 12478 return LevelDom.wrapPoint(this._ptr.webkitConvertPointFromPageToNode$0()); |
| 12479 } |
| 12480 } |
| 12481 else { |
| 12482 if (p == null) { |
| 12483 return LevelDom.wrapPoint(this._ptr.webkitConvertPointFromPageToNode$1(Lev
elDom.unwrap(node))); |
| 12484 } |
| 12485 else { |
| 12486 return LevelDom.wrapPoint(this._ptr.webkitConvertPointFromPageToNode$2(Lev
elDom.unwrap(node), LevelDom.unwrap(p))); |
| 12487 } |
| 12488 } |
| 12489 $throw("Incorrect number or type of arguments"); |
| 12490 } |
| 12491 WindowWrappingImplementation.prototype.webkitRequestAnimationFrame = function(ca
llback, element) { |
| 12492 return this._ptr.webkitRequestAnimationFrame$2(callback, LevelDom.unwrap(eleme
nt)); |
| 12493 } |
| 12494 WindowWrappingImplementation.prototype.requestLayoutFrame = function(callback) { |
| 12495 _addMeasurementFrameCallback(callback); |
| 12496 } |
| 12497 WindowWrappingImplementation.prototype.get$on = function() { |
| 12498 if (this._on == null) { |
| 12499 this._on = new WindowEventsImplementation._wrap$ctor(this._ptr); |
| 12500 } |
| 12501 return this._on; |
| 12502 } |
| 12503 WindowWrappingImplementation.prototype.blur$0 = WindowWrappingImplementation.pro
totype.blur; |
| 12504 WindowWrappingImplementation.prototype.clearInterval$0 = WindowWrappingImplement
ation.prototype.clearInterval; |
| 12505 WindowWrappingImplementation.prototype.clearInterval$1 = WindowWrappingImplement
ation.prototype.clearInterval; |
| 12506 WindowWrappingImplementation.prototype.clearTimeout$0 = WindowWrappingImplementa
tion.prototype.clearTimeout; |
| 12507 WindowWrappingImplementation.prototype.clearTimeout$1 = WindowWrappingImplementa
tion.prototype.clearTimeout; |
| 12508 WindowWrappingImplementation.prototype.focus$0 = WindowWrappingImplementation.pr
ototype.focus; |
| 12509 WindowWrappingImplementation.prototype.open$2 = WindowWrappingImplementation.pro
totype.open; |
| 12510 WindowWrappingImplementation.prototype.open$3 = WindowWrappingImplementation.pro
totype.open; |
| 12511 WindowWrappingImplementation.prototype.postMessage$1 = WindowWrappingImplementat
ion.prototype.postMessage; |
| 12512 WindowWrappingImplementation.prototype.postMessage$2 = WindowWrappingImplementat
ion.prototype.postMessage; |
| 12513 WindowWrappingImplementation.prototype.postMessage$3 = WindowWrappingImplementat
ion.prototype.postMessage; |
| 12514 WindowWrappingImplementation.prototype.setInterval$2 = function($0, $1) { |
| 12515 return this.setInterval(to$call$0($0), $1); |
| 12516 }; |
| 12517 WindowWrappingImplementation.prototype.setTimeout$2 = function($0, $1) { |
| 12518 return this.setTimeout(to$call$0($0), $1); |
| 12519 }; |
| 12520 WindowWrappingImplementation.prototype.webkitConvertPointFromNodeToPage$0 = Wind
owWrappingImplementation.prototype.webkitConvertPointFromNodeToPage; |
| 12521 WindowWrappingImplementation.prototype.webkitConvertPointFromNodeToPage$1 = Wind
owWrappingImplementation.prototype.webkitConvertPointFromNodeToPage; |
| 12522 WindowWrappingImplementation.prototype.webkitConvertPointFromNodeToPage$2 = Wind
owWrappingImplementation.prototype.webkitConvertPointFromNodeToPage; |
| 12523 WindowWrappingImplementation.prototype.webkitConvertPointFromPageToNode$0 = Wind
owWrappingImplementation.prototype.webkitConvertPointFromPageToNode; |
| 12524 WindowWrappingImplementation.prototype.webkitConvertPointFromPageToNode$1 = Wind
owWrappingImplementation.prototype.webkitConvertPointFromPageToNode; |
| 12525 WindowWrappingImplementation.prototype.webkitConvertPointFromPageToNode$2 = Wind
owWrappingImplementation.prototype.webkitConvertPointFromPageToNode; |
| 12526 WindowWrappingImplementation.prototype.webkitRequestAnimationFrame$2 = function(
$0, $1) { |
| 12527 return this.webkitRequestAnimationFrame(to$call$1($0), $1); |
| 12528 }; |
| 12529 // ********** Code for WorkerEventsImplementation ************** |
| 12530 $inherits(WorkerEventsImplementation, AbstractWorkerEventsImplementation); |
| 12531 function WorkerEventsImplementation() {} |
| 12532 WorkerEventsImplementation._wrap$ctor = function(_ptr) { |
| 12533 AbstractWorkerEventsImplementation._wrap$ctor.call(this, _ptr); |
| 12534 } |
| 12535 WorkerEventsImplementation._wrap$ctor.prototype = WorkerEventsImplementation.pro
totype; |
| 12536 // ********** Code for WorkerWrappingImplementation ************** |
| 12537 $inherits(WorkerWrappingImplementation, EventTargetWrappingImplementation); |
| 12538 function WorkerWrappingImplementation() {} |
| 12539 WorkerWrappingImplementation._wrap$ctor = function(ptr) { |
| 12540 EventTargetWrappingImplementation._wrap$ctor.call(this, ptr); |
| 12541 } |
| 12542 WorkerWrappingImplementation._wrap$ctor.prototype = WorkerWrappingImplementation
.prototype; |
| 12543 WorkerWrappingImplementation.prototype.postMessage = function(message, messagePo
rt) { |
| 12544 if (messagePort == null) { |
| 12545 this._ptr.postMessage$1(message); |
| 12546 return; |
| 12547 } |
| 12548 else { |
| 12549 this._ptr.postMessage$2(message, LevelDom.unwrap(messagePort)); |
| 12550 return; |
| 12551 } |
| 12552 } |
| 12553 WorkerWrappingImplementation.prototype.get$on = function() { |
| 12554 if (this._on == null) { |
| 12555 this._on = new WorkerEventsImplementation._wrap$ctor(this._ptr); |
| 12556 } |
| 12557 return this._on; |
| 12558 } |
| 12559 WorkerWrappingImplementation.prototype.postMessage$1 = WorkerWrappingImplementat
ion.prototype.postMessage; |
| 12560 WorkerWrappingImplementation.prototype.postMessage$2 = WorkerWrappingImplementat
ion.prototype.postMessage; |
| 12561 // ********** Code for XMLHttpRequestProgressEventWrappingImplementation *******
******* |
| 12562 $inherits(XMLHttpRequestProgressEventWrappingImplementation, ProgressEventWrappi
ngImplementation); |
| 12563 function XMLHttpRequestProgressEventWrappingImplementation() {} |
| 12564 XMLHttpRequestProgressEventWrappingImplementation._wrap$ctor = function(ptr) { |
| 12565 ProgressEventWrappingImplementation._wrap$ctor.call(this, ptr); |
| 12566 } |
| 12567 XMLHttpRequestProgressEventWrappingImplementation._wrap$ctor.prototype = XMLHttp
RequestProgressEventWrappingImplementation.prototype; |
| 12568 // ********** Code for XMLHttpRequestUploadEventsImplementation ************** |
| 12569 $inherits(XMLHttpRequestUploadEventsImplementation, EventsImplementation); |
| 12570 function XMLHttpRequestUploadEventsImplementation() {} |
| 12571 XMLHttpRequestUploadEventsImplementation._wrap$ctor = function(_ptr) { |
| 12572 EventsImplementation._wrap$ctor.call(this, _ptr); |
| 12573 } |
| 12574 XMLHttpRequestUploadEventsImplementation._wrap$ctor.prototype = XMLHttpRequestUp
loadEventsImplementation.prototype; |
| 12575 XMLHttpRequestUploadEventsImplementation.prototype.get$load = function() { |
| 12576 return this._get("load"); |
| 12577 } |
| 12578 XMLHttpRequestUploadEventsImplementation.prototype.load$0 = function() { |
| 12579 return this.get$load().call$0(); |
| 12580 }; |
| 12581 // ********** Code for XMLHttpRequestUploadWrappingImplementation ************** |
| 12582 $inherits(XMLHttpRequestUploadWrappingImplementation, EventTargetWrappingImpleme
ntation); |
| 12583 function XMLHttpRequestUploadWrappingImplementation() {} |
| 12584 XMLHttpRequestUploadWrappingImplementation._wrap$ctor = function(ptr) { |
| 12585 EventTargetWrappingImplementation._wrap$ctor.call(this, ptr); |
| 12586 } |
| 12587 XMLHttpRequestUploadWrappingImplementation._wrap$ctor.prototype = XMLHttpRequest
UploadWrappingImplementation.prototype; |
| 12588 XMLHttpRequestUploadWrappingImplementation.prototype.get$on = function() { |
| 12589 if (this._on == null) { |
| 12590 this._on = new XMLHttpRequestUploadEventsImplementation._wrap$ctor(this._ptr
); |
| 12591 } |
| 12592 return this._on; |
| 12593 } |
| 12594 // ********** Code for XMLHttpRequestEventsImplementation ************** |
| 12595 $inherits(XMLHttpRequestEventsImplementation, EventsImplementation); |
| 12596 function XMLHttpRequestEventsImplementation() {} |
| 12597 XMLHttpRequestEventsImplementation._wrap$ctor = function(_ptr) { |
| 12598 EventsImplementation._wrap$ctor.call(this, _ptr); |
| 12599 } |
| 12600 XMLHttpRequestEventsImplementation._wrap$ctor.prototype = XMLHttpRequestEventsIm
plementation.prototype; |
| 12601 XMLHttpRequestEventsImplementation.prototype.get$load = function() { |
| 12602 return this._get("load"); |
| 12603 } |
| 12604 XMLHttpRequestEventsImplementation.prototype.get$readyStateChange = function() { |
| 12605 return this._get("readystatechange"); |
| 12606 } |
| 12607 XMLHttpRequestEventsImplementation.prototype.load$0 = function() { |
| 12608 return this.get$load().call$0(); |
| 12609 }; |
| 12610 // ********** Code for XMLHttpRequestWrappingImplementation ************** |
| 12611 $inherits(XMLHttpRequestWrappingImplementation, EventTargetWrappingImplementatio
n); |
| 12612 function XMLHttpRequestWrappingImplementation() {} |
| 12613 XMLHttpRequestWrappingImplementation._wrap$ctor = function(ptr) { |
| 12614 EventTargetWrappingImplementation._wrap$ctor.call(this, ptr); |
| 12615 } |
| 12616 XMLHttpRequestWrappingImplementation._wrap$ctor.prototype = XMLHttpRequestWrappi
ngImplementation.prototype; |
| 12617 XMLHttpRequestWrappingImplementation.XMLHttpRequestWrappingImplementation$factor
y = function() { |
| 12618 return new XMLHttpRequestWrappingImplementation._wrap$ctor(new XMLHttpRequest(
)); |
| 12619 } |
| 12620 XMLHttpRequestWrappingImplementation.XMLHttpRequestWrappingImplementation$getTEM
PNAME$factory = function(url, onSuccess) { |
| 12621 var request = XMLHttpRequestWrappingImplementation.XMLHttpRequestWrappingImple
mentation$factory(); |
| 12622 request.open$3("GET", url, true); |
| 12623 request.set$withCredentials(true); |
| 12624 request.get$on().get$readyStateChange().add$1((function (e) { |
| 12625 if ($eq(request.get$readyState(), (4)) && ($eq(request.get$status(), (200))
|| $eq(request.get$status(), (0)))) { |
| 12626 onSuccess.call$1(request); |
| 12627 } |
| 12628 }) |
| 12629 ); |
| 12630 request.send$0(); |
| 12631 return request; |
| 12632 } |
| 12633 XMLHttpRequestWrappingImplementation.prototype.get$readyState = function() { |
| 12634 return this._ptr.get$readyState(); |
| 12635 } |
| 12636 XMLHttpRequestWrappingImplementation.prototype.get$responseText = function() { |
| 12637 return this._ptr.get$responseText(); |
| 12638 } |
| 12639 XMLHttpRequestWrappingImplementation.prototype.get$status = function() { |
| 12640 return this._ptr.get$status(); |
| 12641 } |
| 12642 XMLHttpRequestWrappingImplementation.prototype.set$withCredentials = function(va
lue) { |
| 12643 this._ptr.set$withCredentials(value); |
| 12644 } |
| 12645 XMLHttpRequestWrappingImplementation.prototype.open = function(method, url, asyn
c, user, password) { |
| 12646 if (user == null) { |
| 12647 if (password == null) { |
| 12648 this._ptr.open$3(method, url, async); |
| 12649 return; |
| 12650 } |
| 12651 } |
| 12652 else { |
| 12653 if (password == null) { |
| 12654 this._ptr.open$4(method, url, async, user); |
| 12655 return; |
| 12656 } |
| 12657 else { |
| 12658 this._ptr.open$5(method, url, async, user, password); |
| 12659 return; |
| 12660 } |
| 12661 } |
| 12662 $throw("Incorrect number or type of arguments"); |
| 12663 } |
| 12664 XMLHttpRequestWrappingImplementation.prototype.open.$optional = ['user', 'passwo
rd', 'null', 'null'] |
| 12665 XMLHttpRequestWrappingImplementation.prototype.get$open = function() { |
| 12666 return this.open.bind(this); |
| 12667 } |
| 12668 XMLHttpRequestWrappingImplementation.prototype.send = function(data) { |
| 12669 if (data == null) { |
| 12670 this._ptr.send$0(); |
| 12671 return; |
| 12672 } |
| 12673 else { |
| 12674 if (!!(data && data.is$html_html_Document())) { |
| 12675 this._ptr.send$1(LevelDom.unwrapMaybePrimitive(data)); |
| 12676 return; |
| 12677 } |
| 12678 else { |
| 12679 if ((typeof(data) == 'string')) { |
| 12680 this._ptr.send$1(LevelDom.unwrapMaybePrimitive(data)); |
| 12681 return; |
| 12682 } |
| 12683 } |
| 12684 } |
| 12685 $throw("Incorrect number or type of arguments"); |
| 12686 } |
| 12687 XMLHttpRequestWrappingImplementation.prototype.get$on = function() { |
| 12688 if (this._on == null) { |
| 12689 this._on = new XMLHttpRequestEventsImplementation._wrap$ctor(this._ptr); |
| 12690 } |
| 12691 return this._on; |
| 12692 } |
| 12693 XMLHttpRequestWrappingImplementation.prototype.open$3 = XMLHttpRequestWrappingIm
plementation.prototype.open; |
| 12694 XMLHttpRequestWrappingImplementation.prototype.open$4 = XMLHttpRequestWrappingIm
plementation.prototype.open; |
| 12695 XMLHttpRequestWrappingImplementation.prototype.open$5 = XMLHttpRequestWrappingIm
plementation.prototype.open; |
| 12696 XMLHttpRequestWrappingImplementation.prototype.send$0 = XMLHttpRequestWrappingIm
plementation.prototype.send; |
| 12697 XMLHttpRequestWrappingImplementation.prototype.send$1 = XMLHttpRequestWrappingIm
plementation.prototype.send; |
| 12698 // ********** Code for top level ************** |
| 12699 function _emptyStyleFuture() { |
| 12700 return _createMeasurementFuture((function () { |
| 12701 return new EmptyStyleDeclaration(); |
| 12702 }) |
| 12703 , new CompleterImpl()); |
| 12704 } |
| 12705 var _pendingRequests; |
| 12706 var _pendingMeasurementFrameCallbacks; |
| 12707 function _maybeScheduleMeasurementFrame() { |
| 12708 if ($globals._nextMeasurementFrameScheduled) return; |
| 12709 $globals._nextMeasurementFrameScheduled = true; |
| 12710 if ($globals._firstMeasurementRequest) { |
| 12711 html_get$window().get$on().get$message().add((function (e) { |
| 12712 return _completeMeasurementFutures(); |
| 12713 }) |
| 12714 , false); |
| 12715 $globals._firstMeasurementRequest = false; |
| 12716 } |
| 12717 html_get$window().postMessage("DART-MEASURE", "*"); |
| 12718 } |
| 12719 function _addMeasurementFrameCallback(callback) { |
| 12720 if ($globals._pendingMeasurementFrameCallbacks == null) { |
| 12721 $globals._pendingMeasurementFrameCallbacks = []; |
| 12722 _maybeScheduleMeasurementFrame(); |
| 12723 } |
| 12724 $globals._pendingMeasurementFrameCallbacks.add$1(callback); |
| 12725 } |
| 12726 function _createMeasurementFuture(computeValue, completer) { |
| 12727 if ($globals._pendingRequests == null) { |
| 12728 $globals._pendingRequests = []; |
| 12729 _maybeScheduleMeasurementFrame(); |
| 12730 } |
| 12731 $globals._pendingRequests.add$1(new _MeasurementRequest(computeValue, complete
r)); |
| 12732 return completer.get$future(); |
| 12733 } |
| 12734 function _completeMeasurementFutures() { |
| 12735 if ($eq($globals._nextMeasurementFrameScheduled, false)) { |
| 12736 return; |
| 12737 } |
| 12738 $globals._nextMeasurementFrameScheduled = false; |
| 12739 if ($globals._pendingRequests != null) { |
| 12740 var $$list = $globals._pendingRequests; |
| 12741 for (var $$i = 0;$$i < $$list.get$length(); $$i++) { |
| 12742 var request = $$list.$index($$i); |
| 12743 try { |
| 12744 request.value = request.computeValue.call$0(); |
| 12745 } catch (e) { |
| 12746 e = _toDartException(e); |
| 12747 request.value = e; |
| 12748 request.exception = true; |
| 12749 } |
| 12750 } |
| 12751 } |
| 12752 var completedRequests = $globals._pendingRequests; |
| 12753 var readyMeasurementFrameCallbacks = $globals._pendingMeasurementFrameCallback
s; |
| 12754 $globals._pendingRequests = null; |
| 12755 $globals._pendingMeasurementFrameCallbacks = null; |
| 12756 if (completedRequests != null) { |
| 12757 for (var $$i = completedRequests.iterator$0(); $$i.hasNext$0(); ) { |
| 12758 var request = $$i.next$0(); |
| 12759 if (request.exception) { |
| 12760 request.completer.completeException(request.value); |
| 12761 } |
| 12762 else { |
| 12763 request.completer.complete(request.value); |
| 12764 } |
| 12765 } |
| 12766 } |
| 12767 if (readyMeasurementFrameCallbacks != null) { |
| 12768 for (var $$i = readyMeasurementFrameCallbacks.iterator$0(); $$i.hasNext$0();
) { |
| 12769 var handler = $$i.next$0(); |
| 12770 handler.call$0(); |
| 12771 } |
| 12772 } |
| 12773 } |
| 12774 // ********** Library html ************** |
| 12775 // ********** Code for top level ************** |
| 12776 var secretWindow; |
| 12777 var secretDocument; |
| 12778 function html_get$window() { |
| 12779 if ($globals.secretWindow == null) { |
| 12780 LevelDom.initialize(); |
| 12781 } |
| 12782 return $globals.secretWindow; |
| 12783 } |
| 12784 function html_get$document() { |
| 12785 if ($globals.secretWindow == null) { |
| 12786 LevelDom.initialize(); |
| 12787 } |
| 12788 return $globals.secretDocument; |
| 12789 } |
| 12790 // ********** Library observable ************** |
| 12791 // ********** Code for AbstractObservable ************** |
| 12792 function AbstractObservable(parent) { |
| 12793 this.uid = EventBatch.genUid(); |
| 12794 this.listeners = new Array(); |
| 12795 this.parent = parent; |
| 12796 } |
| 12797 AbstractObservable.prototype.get$isObserved = function() { |
| 12798 for (var obj = this; |
| 12799 obj != null; obj = obj.parent) { |
| 12800 if (this.listeners.get$length() > (0)) { |
| 12801 return true; |
| 12802 } |
| 12803 } |
| 12804 return false; |
| 12805 } |
| 12806 AbstractObservable.prototype.addChangeListener = function(listener) { |
| 12807 if (this.listeners.indexOf(listener, (0)) == (-1)) { |
| 12808 this.listeners.add$1(listener); |
| 12809 return true; |
| 12810 } |
| 12811 return false; |
| 12812 } |
| 12813 AbstractObservable.prototype.recordPropertyUpdate = function(propertyName, newVa
lue, oldValue) { |
| 12814 this.recordEvent(new ChangeEvent.property$ctor(this, propertyName, newValue, o
ldValue)); |
| 12815 } |
| 12816 AbstractObservable.prototype.recordListUpdate = function(index, newValue, oldVal
ue) { |
| 12817 this.recordEvent(new ChangeEvent.list$ctor(this, (0), index, newValue, oldValu
e)); |
| 12818 } |
| 12819 AbstractObservable.prototype.recordListInsert = function(index, newValue) { |
| 12820 this.recordEvent(new ChangeEvent.list$ctor(this, (1), index, newValue, null)); |
| 12821 } |
| 12822 AbstractObservable.prototype.recordListRemove = function(index, oldValue) { |
| 12823 this.recordEvent(new ChangeEvent.list$ctor(this, (2), index, null, oldValue)); |
| 12824 } |
| 12825 AbstractObservable.prototype.recordGlobalChange = function() { |
| 12826 this.recordEvent(new ChangeEvent.global$ctor(this)); |
| 12827 } |
| 12828 AbstractObservable.prototype.recordEvent = function(event) { |
| 12829 var $this = this; // closure support |
| 12830 if (!this.get$isObserved()) { |
| 12831 return; |
| 12832 } |
| 12833 if ($globals.EventBatch_current != null) { |
| 12834 var summary = $globals.EventBatch_current.getEvents(this); |
| 12835 summary.addEvent$1(event); |
| 12836 } |
| 12837 else { |
| 12838 EventBatch.wrap((function (ignore) { |
| 12839 $this.recordEvent(event); |
| 12840 }) |
| 12841 ).call$1(); |
| 12842 } |
| 12843 } |
| 12844 // ********** Code for ObservableList ************** |
| 12845 $inherits(ObservableList, AbstractObservable); |
| 12846 function ObservableList(parent) { |
| 12847 this._internal = new Array(); |
| 12848 AbstractObservable.call(this, parent); |
| 12849 } |
| 12850 ObservableList.prototype.is$ObservableList_D = function(){return true}; |
| 12851 ObservableList.prototype.is$List = function(){return true}; |
| 12852 ObservableList.prototype.$index = function(index) { |
| 12853 return this._internal.$index(index); |
| 12854 } |
| 12855 ObservableList.prototype.$setindex = function(index, value) { |
| 12856 this.recordListUpdate(index, value, this._internal.$index(index)); |
| 12857 this._internal.$setindex(index, value); |
| 12858 } |
| 12859 ObservableList.prototype.get$length = function() { |
| 12860 return this._internal.get$length(); |
| 12861 } |
| 12862 ObservableList.prototype.set$length = function(value) { |
| 12863 this._internal.set$length(value); |
| 12864 this.recordGlobalChange(); |
| 12865 } |
| 12866 ObservableList.prototype.clear = function() { |
| 12867 this._internal.clear$0(); |
| 12868 this.recordGlobalChange(); |
| 12869 } |
| 12870 ObservableList.prototype.get$clear = function() { |
| 12871 return this.clear.bind(this); |
| 12872 } |
| 12873 ObservableList.prototype.sort = function(compare) { |
| 12874 this._internal.sort(compare); |
| 12875 this.recordGlobalChange(); |
| 12876 } |
| 12877 ObservableList.prototype.add = function(element) { |
| 12878 this.recordListInsert(this.get$length(), element); |
| 12879 this._internal.add$1(element); |
| 12880 } |
| 12881 ObservableList.prototype.addAll = function(elements) { |
| 12882 for (var $$i = elements.iterator$0(); $$i.hasNext$0(); ) { |
| 12883 var element = $$i.next$0(); |
| 12884 this.add(element); |
| 12885 } |
| 12886 } |
| 12887 ObservableList.prototype.last = function() { |
| 12888 return this._internal.last$0(); |
| 12889 } |
| 12890 ObservableList.prototype.removeLast = function() { |
| 12891 var result = this._internal.removeLast$0(); |
| 12892 this.recordListRemove(this.get$length(), result); |
| 12893 return result; |
| 12894 } |
| 12895 ObservableList.prototype.indexOf = function(element, start) { |
| 12896 return this._internal.indexOf(element, start); |
| 12897 } |
| 12898 ObservableList.prototype.getRange = function(start, length) { |
| 12899 $throw(const$0014); |
| 12900 } |
| 12901 ObservableList.prototype.iterator = function() { |
| 12902 return this._internal.iterator$0(); |
| 12903 } |
| 12904 ObservableList.prototype.filter = function(f) { |
| 12905 return this._internal.filter$1(f); |
| 12906 } |
| 12907 ObservableList.prototype.some = function(f) { |
| 12908 return this._internal.some(f); |
| 12909 } |
| 12910 ObservableList.prototype.forEach = function(f) { |
| 12911 this._internal.forEach(f); |
| 12912 } |
| 12913 ObservableList.prototype.isEmpty = function() { |
| 12914 return this.get$length() == (0); |
| 12915 } |
| 12916 ObservableList.prototype.add$1 = ObservableList.prototype.add; |
| 12917 ObservableList.prototype.addAll$1 = ObservableList.prototype.addAll; |
| 12918 ObservableList.prototype.clear$0 = ObservableList.prototype.clear; |
| 12919 ObservableList.prototype.filter$1 = function($0) { |
| 12920 return this.filter(to$call$1($0)); |
| 12921 }; |
| 12922 ObservableList.prototype.forEach$1 = function($0) { |
| 12923 return this.forEach(to$call$1($0)); |
| 12924 }; |
| 12925 ObservableList.prototype.getRange$2 = ObservableList.prototype.getRange; |
| 12926 ObservableList.prototype.iterator$0 = ObservableList.prototype.iterator; |
| 12927 ObservableList.prototype.last$0 = ObservableList.prototype.last; |
| 12928 ObservableList.prototype.removeLast$0 = ObservableList.prototype.removeLast; |
| 12929 // ********** Code for ObservableList_Article ************** |
| 12930 $inherits(ObservableList_Article, ObservableList); |
| 12931 function ObservableList_Article(parent) { |
| 12932 this._internal = new Array(); |
| 12933 AbstractObservable.call(this, parent); |
| 12934 } |
| 12935 ObservableList_Article.prototype.is$ObservableList_D = function(){return true}; |
| 12936 ObservableList_Article.prototype.is$List = function(){return true}; |
| 12937 // ********** Code for ObservableList_D ************** |
| 12938 $inherits(ObservableList_D, ObservableList); |
| 12939 function ObservableList_D() {} |
| 12940 ObservableList_D.prototype.is$ObservableList_D = function(){return true}; |
| 12941 ObservableList_D.prototype.is$List = function(){return true}; |
| 12942 // ********** Code for ObservableList_Feed ************** |
| 12943 $inherits(ObservableList_Feed, ObservableList); |
| 12944 function ObservableList_Feed(parent) { |
| 12945 this._internal = new Array(); |
| 12946 AbstractObservable.call(this, parent); |
| 12947 } |
| 12948 ObservableList_Feed.prototype.is$ObservableList_D = function(){return true}; |
| 12949 ObservableList_Feed.prototype.is$List = function(){return true}; |
| 12950 // ********** Code for ObservableValue ************** |
| 12951 $inherits(ObservableValue, AbstractObservable); |
| 12952 function ObservableValue(value, parent) { |
| 12953 this._value = value; |
| 12954 AbstractObservable.call(this, parent); |
| 12955 } |
| 12956 ObservableValue.prototype.get$value = function() { |
| 12957 return this._value; |
| 12958 } |
| 12959 ObservableValue.prototype.set$value = function(newValue) { |
| 12960 if (newValue != this._value) { |
| 12961 var oldValue = this._value; |
| 12962 this._value = newValue; |
| 12963 this.recordPropertyUpdate("value", newValue, oldValue); |
| 12964 } |
| 12965 } |
| 12966 // ********** Code for ObservableValue_Article ************** |
| 12967 $inherits(ObservableValue_Article, ObservableValue); |
| 12968 function ObservableValue_Article(value, parent) { |
| 12969 this._value = value; |
| 12970 AbstractObservable.call(this, parent); |
| 12971 } |
| 12972 // ********** Code for ObservableValue_D ************** |
| 12973 $inherits(ObservableValue_D, ObservableValue); |
| 12974 function ObservableValue_D() {} |
| 12975 // ********** Code for ObservableValue_Feed ************** |
| 12976 $inherits(ObservableValue_Feed, ObservableValue); |
| 12977 function ObservableValue_Feed() {} |
| 12978 // ********** Code for ObservableValue_bool ************** |
| 12979 $inherits(ObservableValue_bool, ObservableValue); |
| 12980 function ObservableValue_bool(value, parent) { |
| 12981 this._value = value; |
| 12982 AbstractObservable.call(this, parent); |
| 12983 } |
| 12984 // ********** Code for ObservableValue_int ************** |
| 12985 $inherits(ObservableValue_int, ObservableValue); |
| 12986 function ObservableValue_int(value, parent) { |
| 12987 this._value = value; |
| 12988 AbstractObservable.call(this, parent); |
| 12989 } |
| 12990 // ********** Code for ChangeEvent ************** |
| 12991 function ChangeEvent() {} |
| 12992 ChangeEvent.property$ctor = function(target, propertyName, newValue, oldValue) { |
| 12993 this.target = target; |
| 12994 this.oldValue = oldValue; |
| 12995 this.index = null; |
| 12996 this.propertyName = propertyName; |
| 12997 this.type = (0); |
| 12998 this.newValue = newValue; |
| 12999 } |
| 13000 ChangeEvent.property$ctor.prototype = ChangeEvent.prototype; |
| 13001 ChangeEvent.global$ctor = function(target) { |
| 13002 this.target = target; |
| 13003 this.oldValue = null; |
| 13004 this.index = null; |
| 13005 this.propertyName = null; |
| 13006 this.type = (3); |
| 13007 this.newValue = null; |
| 13008 } |
| 13009 ChangeEvent.global$ctor.prototype = ChangeEvent.prototype; |
| 13010 ChangeEvent.list$ctor = function(target, type, index, newValue, oldValue) { |
| 13011 this.target = target; |
| 13012 this.oldValue = oldValue; |
| 13013 this.index = index; |
| 13014 this.propertyName = null; |
| 13015 this.type = type; |
| 13016 this.newValue = newValue; |
| 13017 } |
| 13018 ChangeEvent.list$ctor.prototype = ChangeEvent.prototype; |
| 13019 ChangeEvent.prototype.get$target = function() { return this.target; }; |
| 13020 ChangeEvent.prototype.get$type = function() { return this.type; }; |
| 13021 // ********** Code for EventSummary ************** |
| 13022 function EventSummary(target) { |
| 13023 this.target = target; |
| 13024 this.events = new Array(); |
| 13025 } |
| 13026 EventSummary.prototype.get$target = function() { return this.target; }; |
| 13027 EventSummary.prototype.addEvent = function(e) { |
| 13028 this.events.add$1(e); |
| 13029 } |
| 13030 EventSummary.prototype.notify = function() { |
| 13031 if (!this.events.isEmpty()) { |
| 13032 for (var obj = this.target; |
| 13033 obj != null; obj = obj.parent) { |
| 13034 var $$list = obj.listeners; |
| 13035 for (var $$i = 0;$$i < $$list.get$length(); $$i++) { |
| 13036 var listener = $$list.$index($$i); |
| 13037 listener.call$1(this); |
| 13038 } |
| 13039 } |
| 13040 } |
| 13041 } |
| 13042 EventSummary.prototype.addEvent$1 = EventSummary.prototype.addEvent; |
| 13043 EventSummary.prototype.notify$0 = EventSummary.prototype.notify; |
| 13044 // ********** Code for EventBatch ************** |
| 13045 function EventBatch() {} |
| 13046 EventBatch._internal$ctor = function() { |
| 13047 this.sealed = false; |
| 13048 this.summaries = new HashMapImplementation(); |
| 13049 } |
| 13050 EventBatch._internal$ctor.prototype = EventBatch.prototype; |
| 13051 EventBatch.wrap = function(userFunction) { |
| 13052 return (function (e) { |
| 13053 if ($globals.EventBatch_current == null) { |
| 13054 var batch = new EventBatch._internal$ctor(); |
| 13055 $globals.EventBatch_current = batch; |
| 13056 var result = null; |
| 13057 try { |
| 13058 result = userFunction.call$1(e); |
| 13059 } finally { |
| 13060 $globals.EventBatch_current = null; |
| 13061 batch._notify$0(); |
| 13062 } |
| 13063 return result; |
| 13064 } |
| 13065 else { |
| 13066 return userFunction.call$1(e); |
| 13067 } |
| 13068 }) |
| 13069 ; |
| 13070 } |
| 13071 EventBatch.genUid = function() { |
| 13072 if ($globals.EventBatch_nextUid == null) { |
| 13073 $globals.EventBatch_nextUid = (1); |
| 13074 } |
| 13075 return $globals.EventBatch_nextUid++; |
| 13076 } |
| 13077 EventBatch.prototype.getEvents = function(obj) { |
| 13078 var uid = obj.uid; |
| 13079 var summary = this.summaries.$index(uid); |
| 13080 if (summary == null) { |
| 13081 summary = new EventSummary(obj); |
| 13082 this.summaries.$setindex(uid, summary); |
| 13083 } |
| 13084 return summary; |
| 13085 } |
| 13086 EventBatch.prototype._notify = function() { |
| 13087 this.sealed = true; |
| 13088 var $$list = this.summaries.getValues$0(); |
| 13089 for (var $$i = $$list.iterator$0(); $$i.hasNext$0(); ) { |
| 13090 var summary = $$i.next$0(); |
| 13091 summary.notify$0(); |
| 13092 } |
| 13093 } |
| 13094 EventBatch.prototype._notify$0 = EventBatch.prototype._notify; |
| 13095 // ********** Code for top level ************** |
| 13096 // ********** Library utilslib ************** |
| 13097 // ********** Code for CollectionUtils ************** |
| 13098 function CollectionUtils() {} |
| 13099 CollectionUtils.map = function(source, mapper) { |
| 13100 var result = new Array(!!(source && source.is$List()) ? source.get$dynamic().g
et$length() : null); |
| 13101 var i = (0); |
| 13102 for (var $$i = source.iterator$0(); $$i.hasNext$0(); ) { |
| 13103 var item = $$i.next$0(); |
| 13104 result.$setindex(i++, mapper.call$1(item)); |
| 13105 } |
| 13106 return result; |
| 13107 } |
| 13108 CollectionUtils.find = function(source, test) { |
| 13109 for (var $$i = source.iterator$0(); $$i.hasNext$0(); ) { |
| 13110 var item = $$i.next$0(); |
| 13111 if (test.call$1(item)) return item; |
| 13112 } |
| 13113 return null; |
| 13114 } |
| 13115 CollectionUtils.orderBy = function(source, selector) { |
| 13116 var result = ListFactory.ListFactory$from$factory(source); |
| 13117 CollectionUtils.sortBy(result, selector); |
| 13118 return result; |
| 13119 } |
| 13120 CollectionUtils.sortBy = function(list, selector) { |
| 13121 if (selector != null) { |
| 13122 list.sort((function (x, y) { |
| 13123 return selector.call$1(x) - selector.call$1(y); |
| 13124 }) |
| 13125 ); |
| 13126 } |
| 13127 else { |
| 13128 list.sort((function (x, y) { |
| 13129 return x - y; |
| 13130 }) |
| 13131 ); |
| 13132 } |
| 13133 } |
| 13134 CollectionUtils.sum = function(source, selector) { |
| 13135 var iter = source.iterator$0(); |
| 13136 var total = (0); |
| 13137 if (selector != null) { |
| 13138 do { |
| 13139 total = total + selector.call$1(iter.next$0()); |
| 13140 } |
| 13141 while (iter.hasNext$0()) |
| 13142 } |
| 13143 else { |
| 13144 do { |
| 13145 total = total + iter.next$0(); |
| 13146 } |
| 13147 while (iter.hasNext$0()) |
| 13148 } |
| 13149 return total; |
| 13150 } |
| 13151 // ********** Code for DateUtils ************** |
| 13152 function DateUtils() {} |
| 13153 DateUtils.toRecentTimeString = function(then) { |
| 13154 function datesAreEqual(d1, d2) { |
| 13155 return (d1.get$year() == d2.get$year()) && (d1.get$month() == d2.get$month()
) && (d1.get$day() == d2.get$day()); |
| 13156 } |
| 13157 var now = new DateImplementation.now$ctor(); |
| 13158 if (datesAreEqual.call$2(then, now)) { |
| 13159 return DateUtils.toHourMinutesString(new DurationImplementation((0), then.ge
t$hours(), then.get$minutes(), then.get$seconds(), then.get$milliseconds())); |
| 13160 } |
| 13161 var today = DateImplementation.DateImplementation$factory(now.get$year(), now.
get$month(), now.get$day(), (0), (0), (0), (0)); |
| 13162 var delta = today.difference$1(then); |
| 13163 if (delta.inMilliseconds < (86400000)) { |
| 13164 return "Yesterday"; |
| 13165 } |
| 13166 else if (delta.inMilliseconds < (604800000)) { |
| 13167 return const$0015.$index(DateUtils.getWeekday(then)); |
| 13168 } |
| 13169 else { |
| 13170 function twoDigits(n) { |
| 13171 if (n >= (10)) return ("" + n); |
| 13172 return ("0" + n); |
| 13173 } |
| 13174 var twoDigitMonth = twoDigits.call$1(then.get$month()); |
| 13175 var twoDigitDay = twoDigits.call$1(then.get$day()); |
| 13176 return ("" + then.get$year() + "-" + twoDigitMonth + "-" + twoDigitDay); |
| 13177 } |
| 13178 } |
| 13179 DateUtils.getWeekday = function(dateTime) { |
| 13180 var unixTimeStart = DateImplementation.DateImplementation$factory((1970), (1),
(1), (0), (0), (0), (0)); |
| 13181 var msSince1970 = dateTime.difference(unixTimeStart).inMilliseconds; |
| 13182 var daysSince1970 = $truncdiv(msSince1970, (86400000)); |
| 13183 return ($mod((daysSince1970 + (3)), (7))); |
| 13184 } |
| 13185 DateUtils.toHourMinutesString = function(duration) { |
| 13186 var hours = duration.get$inHours(); |
| 13187 var a; |
| 13188 if (hours >= (12)) { |
| 13189 a = "pm"; |
| 13190 if (hours != (12)) { |
| 13191 hours -= (12); |
| 13192 } |
| 13193 } |
| 13194 else { |
| 13195 a = "am"; |
| 13196 if (hours == (0)) { |
| 13197 hours += (12); |
| 13198 } |
| 13199 } |
| 13200 function twoDigits(n) { |
| 13201 if (n >= (10)) return ("" + n); |
| 13202 return ("0" + n); |
| 13203 } |
| 13204 var mm = twoDigits.call$1(duration.get$inMinutes().remainder((60))); |
| 13205 return ("" + hours + ":" + mm + " " + a); |
| 13206 } |
| 13207 // ********** Code for StringUtils ************** |
| 13208 function StringUtils() {} |
| 13209 StringUtils.parseInt = function(str, ifNull) { |
| 13210 return (str == null) ? ifNull : Math.parseInt(str); |
| 13211 } |
| 13212 // ********** Code for Uri ************** |
| 13213 function Uri() {} |
| 13214 Uri.encodeComponent = function(component) { |
| 13215 if (component == null) return component; |
| 13216 return component.replaceAll(":", "%3A").replaceAll("/", "%2F").replaceAll("?",
"%3F").replaceAll("=", "%3D").replaceAll("&", "%26").replaceAll(" ", "%20"); |
| 13217 } |
| 13218 Uri.prototype.query$1 = function($0) { |
| 13219 return this.query.call$1($0); |
| 13220 }; |
| 13221 // ********** Code for top level ************** |
| 13222 // ********** Library base ************** |
| 13223 // ********** Code for CallbackData ************** |
| 13224 function CallbackData(callback, minTime) { |
| 13225 this.callback = callback; |
| 13226 this.minTime = minTime; |
| 13227 if ($globals.CallbackData__nextId == null) { |
| 13228 $globals.CallbackData__nextId = (1); |
| 13229 } |
| 13230 this.id = $globals.CallbackData__nextId++; |
| 13231 } |
| 13232 CallbackData.prototype.get$callback = function() { return this.callback; }; |
| 13233 CallbackData.prototype.get$id = function() { return this.id; }; |
| 13234 CallbackData.prototype.set$id = function(value) { return this.id = value; }; |
| 13235 CallbackData.prototype.ready = function(time) { |
| 13236 return this.minTime == null || this.minTime <= time; |
| 13237 } |
| 13238 CallbackData.prototype.ready$1 = CallbackData.prototype.ready; |
| 13239 // ********** Code for AnimationScheduler ************** |
| 13240 function AnimationScheduler() { |
| 13241 this._frameCount = (0); |
| 13242 this._webkitAnimationFrameMaybeAvailable = true; |
| 13243 this._isMobileSafari = false; |
| 13244 this._callbacks = new Array(); |
| 13245 if (this._isMobileSafari) { |
| 13246 var element = ElementWrappingImplementation.ElementWrappingImplementation$ta
g$factory("div"); |
| 13247 html_get$document().get$body().get$nodes().add$1(element); |
| 13248 this._safariHackStyle = element.get$style(); |
| 13249 this._safariHackStyle.set$position("absolute"); |
| 13250 } |
| 13251 } |
| 13252 AnimationScheduler.prototype.cancelRequestAnimationFrame = function(id) { |
| 13253 this._callbacks = this._callbacks.filter$1((function (e) { |
| 13254 return e.id != id; |
| 13255 }) |
| 13256 ); |
| 13257 } |
| 13258 AnimationScheduler.prototype.requestAnimationFrame = function(callback, element,
minTime) { |
| 13259 var callbackData = new CallbackData(callback, minTime); |
| 13260 this._requestAnimationFrameHelper(callbackData); |
| 13261 return callbackData.get$id(); |
| 13262 } |
| 13263 AnimationScheduler.prototype._requestAnimationFrameHelper = function(callbackDat
a) { |
| 13264 this._callbacks.add$1(callbackData); |
| 13265 if (this._intervalId == null) { |
| 13266 this._setupInterval(); |
| 13267 } |
| 13268 } |
| 13269 AnimationScheduler.prototype._setupInterval = function() { |
| 13270 var $this = this; // closure support |
| 13271 if (false) { |
| 13272 this._intervalId = html_get$window().setInterval(this.get$_base_step(), (16)
); |
| 13273 } |
| 13274 else { |
| 13275 if (this._webkitAnimationFrameMaybeAvailable) { |
| 13276 try { |
| 13277 this._intervalId = html_get$window().webkitRequestAnimationFrame((functi
on (ignored) { |
| 13278 $this._base_step(); |
| 13279 }) |
| 13280 , html_get$document()); |
| 13281 } catch (e) { |
| 13282 e = _toDartException(e); |
| 13283 this._webkitAnimationFrameMaybeAvailable = false; |
| 13284 } |
| 13285 } |
| 13286 if (!this._webkitAnimationFrameMaybeAvailable) { |
| 13287 this._intervalId = html_get$window().setTimeout((function () { |
| 13288 $this._base_step(); |
| 13289 }) |
| 13290 , (16)); |
| 13291 } |
| 13292 } |
| 13293 } |
| 13294 AnimationScheduler.prototype._base_step = function() { |
| 13295 if (this._callbacks.isEmpty()) { |
| 13296 if (false) { |
| 13297 html_get$window().clearInterval(this._intervalId); |
| 13298 } |
| 13299 this._intervalId = null; |
| 13300 } |
| 13301 else if (true) { |
| 13302 this._intervalId = null; |
| 13303 this._setupInterval(); |
| 13304 } |
| 13305 var numRemaining = (0); |
| 13306 var minTime = new DateImplementation.now$ctor().value + (16); |
| 13307 var len = this._callbacks.get$length(); |
| 13308 var $$list = this._callbacks; |
| 13309 for (var $$i = 0;$$i < $$list.get$length(); $$i++) { |
| 13310 var callback = $$list.$index($$i); |
| 13311 if (!callback.ready$1(minTime)) { |
| 13312 numRemaining++; |
| 13313 } |
| 13314 } |
| 13315 if (numRemaining == len) { |
| 13316 return; |
| 13317 } |
| 13318 var currentCallbacks = this._callbacks; |
| 13319 this._callbacks = new Array(); |
| 13320 for (var $$i = currentCallbacks.iterator$0(); $$i.hasNext$0(); ) { |
| 13321 var callbackData = $$i.next$0(); |
| 13322 if (callbackData.ready$1(minTime)) { |
| 13323 try { |
| 13324 (callbackData.get$callback()).call$1(minTime); |
| 13325 } catch (e) { |
| 13326 e = _toDartException(e); |
| 13327 var msg = e.toString$0(); |
| 13328 dart_core_print(("Suppressed exception " + msg + " triggered by callback
")); |
| 13329 } |
| 13330 } |
| 13331 else { |
| 13332 this._callbacks.add$1(callbackData); |
| 13333 } |
| 13334 } |
| 13335 this._frameCount++; |
| 13336 if (this._isMobileSafari) { |
| 13337 var offset = $mod(this._frameCount, (2)); |
| 13338 this._safariHackStyle.set$left(("" + offset + "px")); |
| 13339 } |
| 13340 } |
| 13341 AnimationScheduler.prototype.get$_base_step = function() { |
| 13342 return this._base_step.bind(this); |
| 13343 } |
| 13344 // ********** Code for Device ************** |
| 13345 function Device() {} |
| 13346 Device.get$userAgent = function() { |
| 13347 return html_get$window().get$navigator().get$userAgent(); |
| 13348 } |
| 13349 Device.get$isMobileSafari = function() { |
| 13350 return const$0007.hasMatch(Device.get$userAgent()); |
| 13351 } |
| 13352 Device.get$isAndroid = function() { |
| 13353 return Device.get$userAgent().contains("Android", (0)); |
| 13354 } |
| 13355 Device.get$supportsTouch = function() { |
| 13356 if ($globals.Device__supportsTouch == null) { |
| 13357 $globals.Device__supportsTouch = Device.get$isMobileSafari() || Device.get$i
sAndroid(); |
| 13358 } |
| 13359 return $globals.Device__supportsTouch; |
| 13360 } |
| 13361 // ********** Code for Env ************** |
| 13362 function Env() {} |
| 13363 Env.requestAnimationFrame = function(callback, element, minTime) { |
| 13364 if ($globals.Env__animationScheduler == null) { |
| 13365 $globals.Env__animationScheduler = new AnimationScheduler(); |
| 13366 } |
| 13367 return $globals.Env__animationScheduler.requestAnimationFrame(callback, elemen
t, minTime); |
| 13368 } |
| 13369 Env.cancelRequestAnimationFrame = function(id) { |
| 13370 html_get$window().clearTimeout(id); |
| 13371 $globals.Env__animationScheduler.cancelRequestAnimationFrame(id); |
| 13372 } |
| 13373 // ********** Code for Size ************** |
| 13374 function Size(width, height) { |
| 13375 this.width = width; |
| 13376 this.height = height; |
| 13377 } |
| 13378 Size.prototype.get$width = function() { return this.width; }; |
| 13379 Size.prototype.set$width = function(value) { return this.width = value; }; |
| 13380 Size.prototype.get$height = function() { return this.height; }; |
| 13381 Size.prototype.set$height = function(value) { return this.height = value; }; |
| 13382 Size.prototype.$eq = function(other) { |
| 13383 return other != null && this.width == other.width && this.height == other.heig
ht; |
| 13384 } |
| 13385 Size.prototype.clone = function() { |
| 13386 return new Size(this.width, this.height); |
| 13387 } |
| 13388 Size.prototype.round = function() { |
| 13389 this.width = this.width.round(); |
| 13390 this.height = this.height.round(); |
| 13391 return this; |
| 13392 } |
| 13393 Size.prototype.toString = function() { |
| 13394 return ("(" + this.width + " x " + this.height + ")"); |
| 13395 } |
| 13396 Size.prototype.clone$0 = Size.prototype.clone; |
| 13397 Size.prototype.round$0 = Size.prototype.round; |
| 13398 Size.prototype.toString$0 = Size.prototype.toString; |
| 13399 // ********** Code for top level ************** |
| 13400 // ********** Library touch ************** |
| 13401 // ********** Code for FxUtil ************** |
| 13402 function FxUtil() {} |
| 13403 FxUtil.setPosition = function(el, point) { |
| 13404 var x = point.x; |
| 13405 var y = point.y; |
| 13406 el.get$style().set$transform(("" + "translate3d" + "(" + x + "px," + y + "px,0
px)")); |
| 13407 } |
| 13408 FxUtil.setTranslate = function(el, x, y, z) { |
| 13409 el.get$style().set$transform(("" + "translate3d" + "(" + x + "px," + y + "px,"
+ z + "px)")); |
| 13410 } |
| 13411 FxUtil.setWebkitTransform = function(el, x, y, z, rotation, scale, originX, orig
inY) { |
| 13412 var style = el.get$style(); |
| 13413 var transform = ("" + "translate3d" + "(" + x + "px," + y + "px," + z + "px)")
; |
| 13414 if (rotation != null) { |
| 13415 transform = transform.concat((" " + "rotate" + "(" + rotation + "deg)")); |
| 13416 } |
| 13417 if (scale != null) { |
| 13418 transform = transform.concat((" " + "scale" + "(" + scale + ")")); |
| 13419 } |
| 13420 style.set$transform(transform); |
| 13421 if (originX != null || originY != null) { |
| 13422 style.set$transformOrigin(("" + originX + "px " + originY + "px")); |
| 13423 } |
| 13424 } |
| 13425 FxUtil.computeRelativePosition = function(element, target) { |
| 13426 var testPoint = PointFactoryProvider.Point$factory((0), (0)); |
| 13427 var pagePoint = html_get$window().webkitConvertPointFromNodeToPage(element, te
stPoint); |
| 13428 var pointRelativeToTarget = html_get$window().webkitConvertPointFromPageToNode
(target, pagePoint); |
| 13429 return new Coordinate(pointRelativeToTarget.get$x(), pointRelativeToTarget.get
$y()); |
| 13430 } |
| 13431 FxUtil.setLeftAndTop = function(el, x, y) { |
| 13432 var style = el.get$style(); |
| 13433 style.set$left(("" + x + "px")); |
| 13434 style.set$top(("" + y + "px")); |
| 13435 } |
| 13436 // ********** Code for BouncingState ************** |
| 13437 function BouncingState() {} |
| 13438 // ********** Code for _Move ************** |
| 13439 function _Move(x, y, vx, vy, time) { |
| 13440 this.time = time; |
| 13441 this.x = x; |
| 13442 this.vx = vx; |
| 13443 this.y = y; |
| 13444 this.vy = vy; |
| 13445 } |
| 13446 _Move.prototype.get$x = function() { return this.x; }; |
| 13447 _Move.prototype.get$y = function() { return this.y; }; |
| 13448 _Move.prototype.get$vx = function() { return this.vx; }; |
| 13449 _Move.prototype.get$vy = function() { return this.vy; }; |
| 13450 _Move.prototype.get$time = function() { return this.time; }; |
| 13451 _Move.prototype.time$1 = function($0) { |
| 13452 return this.time.call$1($0); |
| 13453 }; |
| 13454 // ********** Code for Solver ************** |
| 13455 function Solver() {} |
| 13456 Solver.solve = function(fn, targetY, startX, maxIterations) { |
| 13457 var lastX = (0); |
| 13458 var lastY = fn.call$1(lastX); |
| 13459 var deltaX; |
| 13460 var deltaY; |
| 13461 var minX = null; |
| 13462 var maxX = null; |
| 13463 var x = startX; |
| 13464 var delta = startX; |
| 13465 for (var i = (0); |
| 13466 i < maxIterations; i++) { |
| 13467 var y = fn.call$1(x); |
| 13468 if (y.round() == targetY.round()) { |
| 13469 return x; |
| 13470 } |
| 13471 if (y > targetY) { |
| 13472 maxX = x; |
| 13473 } |
| 13474 else { |
| 13475 minX = x; |
| 13476 } |
| 13477 var errorY = targetY - y; |
| 13478 deltaX = x - lastX; |
| 13479 deltaY = y - lastY; |
| 13480 lastX = x; |
| 13481 lastY = y; |
| 13482 if (deltaY != (0)) { |
| 13483 delta = errorY * deltaX / deltaY; |
| 13484 } |
| 13485 x += delta; |
| 13486 if (minX != null && maxX != null && (x > minX || x < maxX)) { |
| 13487 x = (minX + maxX) / (2); |
| 13488 } |
| 13489 } |
| 13490 html_get$window().get$console().warn(("Could not find an exact solution. LastY
=" + lastY + ",\n targetY=" + targetY + " lastX=" + lastX + " delta=" + d
elta + " deltaX=" + deltaX + "\n deltaY=" + deltaY)); |
| 13491 return x; |
| 13492 } |
| 13493 // ********** Code for SingleDimensionPhysics ************** |
| 13494 function SingleDimensionPhysics() { |
| 13495 this._bouncingState = (0); |
| 13496 this.customDecelerationFactor = (1); |
| 13497 } |
| 13498 SingleDimensionPhysics.prototype.configure = function(minCoord, maxCoord, initia
lOffset, customDecelerationFactor_, velocity_) { |
| 13499 this._bouncingState = (0); |
| 13500 this._minCoord = minCoord; |
| 13501 this._maxCoord = maxCoord; |
| 13502 this._currentOffset = initialOffset; |
| 13503 this.customDecelerationFactor = customDecelerationFactor_; |
| 13504 this._adjustInitialVelocityAndBouncingState(velocity_); |
| 13505 } |
| 13506 SingleDimensionPhysics.prototype.solve = function(initialOffset, targetOffset, c
ustomDecelerationFactor_) { |
| 13507 var $this = this; // closure support |
| 13508 initialOffset = initialOffset.round(); |
| 13509 targetOffset = targetOffset.round(); |
| 13510 if (initialOffset == targetOffset) { |
| 13511 return (0); |
| 13512 } |
| 13513 return Solver.solve((function (velocity_) { |
| 13514 $this.configure(null, null, initialOffset.round(), customDecelerationFactor_
, velocity_); |
| 13515 $this.stepAll(); |
| 13516 return $this._currentOffset; |
| 13517 }) |
| 13518 , targetOffset, targetOffset > initialOffset ? (20) : (-20), (50)); |
| 13519 } |
| 13520 SingleDimensionPhysics.prototype._adjustInitialVelocityAndBouncingState = functi
on(v) { |
| 13521 this.velocity = v * (16.666666666666668) * (1.25); |
| 13522 if (this.velocity.abs() < (4.166666666666667)) { |
| 13523 if (this._minCoord != null && this._currentOffset < this._minCoord) { |
| 13524 this.velocity = (this._minCoord - this._currentOffset) * (0.11666666666666
667); |
| 13525 this.velocity = Math.max(this.velocity, (0.16666666666666669)); |
| 13526 this._bouncingState = (2); |
| 13527 } |
| 13528 else if (this._maxCoord != null && this._currentOffset > this._maxCoord) { |
| 13529 this.velocity = (this._currentOffset - this._maxCoord) * (0.11666666666666
667); |
| 13530 this.velocity = -Math.max(this.velocity, (0.16666666666666669)); |
| 13531 this._bouncingState = (2); |
| 13532 } |
| 13533 } |
| 13534 } |
| 13535 SingleDimensionPhysics.prototype._adjustVelocity = function() { |
| 13536 var speed = this.velocity.abs(); |
| 13537 this.velocity = this.velocity * (0.97); |
| 13538 if (this.customDecelerationFactor != null) { |
| 13539 this.velocity = this.velocity * this.customDecelerationFactor; |
| 13540 } |
| 13541 if (speed < (1.3333333333333335)) { |
| 13542 this.velocity = this.velocity * (0.92); |
| 13543 } |
| 13544 var stretchDistance; |
| 13545 if (this._minCoord != null && this._currentOffset < this._minCoord) { |
| 13546 stretchDistance = this._minCoord - this._currentOffset; |
| 13547 } |
| 13548 else { |
| 13549 if (this._maxCoord != null && this._currentOffset > this._maxCoord) { |
| 13550 stretchDistance = this._maxCoord - this._currentOffset; |
| 13551 } |
| 13552 } |
| 13553 if (stretchDistance != null) { |
| 13554 if (stretchDistance * this.velocity < (0)) { |
| 13555 this._bouncingState = this._bouncingState == (2) ? (0) : (1); |
| 13556 this.velocity = this.velocity + (stretchDistance * (0.11666666666666667)); |
| 13557 } |
| 13558 else { |
| 13559 this._bouncingState = (2); |
| 13560 this.velocity = stretchDistance > (0) ? Math.max(stretchDistance * (0.1166
6666666666667), (0.16666666666666669)) : Math.min(stretchDistance * (0.116666666
66666667), (-0.16666666666666669)); |
| 13561 } |
| 13562 } |
| 13563 else { |
| 13564 this._bouncingState = (0); |
| 13565 } |
| 13566 } |
| 13567 SingleDimensionPhysics.prototype.step = function() { |
| 13568 if (this.velocity != null) { |
| 13569 this._currentOffset = this._currentOffset + this.velocity; |
| 13570 this._adjustVelocity(); |
| 13571 } |
| 13572 } |
| 13573 SingleDimensionPhysics.prototype.stepAll = function() { |
| 13574 while (!this.isDone()) { |
| 13575 this.step(); |
| 13576 } |
| 13577 } |
| 13578 SingleDimensionPhysics.prototype.isVelocityAboveThreshold = function(threshold)
{ |
| 13579 return this.velocity.abs() >= threshold; |
| 13580 } |
| 13581 SingleDimensionPhysics.prototype.isDone = function() { |
| 13582 return this._bouncingState == (0) && !this.isVelocityAboveThreshold((0.1666666
6666666669)); |
| 13583 } |
| 13584 // ********** Code for TimeoutMomentum ************** |
| 13585 function TimeoutMomentum(_delegate, defaultDecelerationFactor) { |
| 13586 this.physicsX = new SingleDimensionPhysics(); |
| 13587 this._defaultDecelerationFactor = defaultDecelerationFactor; |
| 13588 this._decelerating = false; |
| 13589 this._moves = new DoubleLinkedQueue(); |
| 13590 this._delegate = _delegate; |
| 13591 this.physicsY = new SingleDimensionPhysics(); |
| 13592 } |
| 13593 TimeoutMomentum.prototype._calculateMoves = function() { |
| 13594 this._moves.clear(); |
| 13595 var time = TimeUtil.now(); |
| 13596 while (!this.physicsX.isDone() || !this.physicsY.isDone()) { |
| 13597 this._stepWithoutAnimation(); |
| 13598 time += (16.666666666666668); |
| 13599 if (this._isStepNecessary()) { |
| 13600 this._moves.add(new _Move(this._nextX, this._nextY, this.physicsX.velocity
, this.physicsY.velocity, time)); |
| 13601 this._previousOffset.y = this._nextY; |
| 13602 this._previousOffset.x = this._nextX; |
| 13603 } |
| 13604 } |
| 13605 } |
| 13606 TimeoutMomentum.prototype.get$decelerating = function() { |
| 13607 return this._decelerating; |
| 13608 } |
| 13609 TimeoutMomentum.prototype.get$decelerationFactor = function() { |
| 13610 return this._customDecelerationFactor; |
| 13611 } |
| 13612 TimeoutMomentum.prototype._isStepNecessary = function() { |
| 13613 return this._nextY != this._previousOffset.y || this._nextX != this._previousO
ffset.x; |
| 13614 } |
| 13615 TimeoutMomentum.prototype.calculateVelocity = function(start_, target, decelerat
ionFactor) { |
| 13616 return new Coordinate(this.physicsX.solve(start_.x, target.x, decelerationFact
or), this.physicsY.solve(start_.y, target.y, decelerationFactor)); |
| 13617 } |
| 13618 TimeoutMomentum.prototype.start = function(velocity, minCoord, maxCoord, initial
Offset, decelerationFactor) { |
| 13619 this._customDecelerationFactor = this._defaultDecelerationFactor; |
| 13620 if (decelerationFactor != null) { |
| 13621 this._customDecelerationFactor = decelerationFactor; |
| 13622 } |
| 13623 if (this._stepTimeout != null) { |
| 13624 Env.cancelRequestAnimationFrame(this._stepTimeout); |
| 13625 this._stepTimeout = null; |
| 13626 } |
| 13627 this._previousOffset = initialOffset.clone(); |
| 13628 this.physicsX.configure(minCoord.x, maxCoord.x, initialOffset.x, this._customD
ecelerationFactor, velocity.x); |
| 13629 this.physicsY.configure(minCoord.y, maxCoord.y, initialOffset.y, this._customD
ecelerationFactor, velocity.y); |
| 13630 if (!this.physicsX.isDone() || !this.physicsY.isDone()) { |
| 13631 this._calculateMoves(); |
| 13632 if (!this._moves.isEmpty()) { |
| 13633 var firstTime = this._moves.first().get$time(); |
| 13634 this._stepTimeout = Env.requestAnimationFrame(this.get$_step(), null, firs
tTime); |
| 13635 this._decelerating = true; |
| 13636 return true; |
| 13637 } |
| 13638 } |
| 13639 this._decelerating = false; |
| 13640 return false; |
| 13641 } |
| 13642 TimeoutMomentum.prototype.start.$optional = ['decelerationFactor', 'null'] |
| 13643 TimeoutMomentum.prototype.get$start = function() { |
| 13644 return this.start.bind(this); |
| 13645 } |
| 13646 TimeoutMomentum.prototype._stepWithoutAnimation = function() { |
| 13647 this.physicsX.step(); |
| 13648 this.physicsY.step(); |
| 13649 this._nextX = this.physicsX._currentOffset.round().toInt(); |
| 13650 this._nextY = this.physicsY._currentOffset.round().toInt(); |
| 13651 } |
| 13652 TimeoutMomentum.prototype._step = function(timestamp) { |
| 13653 this._stepTimeout = null; |
| 13654 var lastEpoch = timestamp - (16.666666666666668); |
| 13655 while (!this._moves.isEmpty() && this._moves.first() != this._moves.last() &&
this._moves.first().get$time() < lastEpoch) { |
| 13656 this._moves.removeFirst(); |
| 13657 } |
| 13658 if (!this._moves.isEmpty()) { |
| 13659 var move = this._moves.removeFirst(); |
| 13660 this._delegate.onDecelerate(move.get$x(), move.get$y()); |
| 13661 if (!this._moves.isEmpty()) { |
| 13662 var nextTime = this._moves.first().get$time(); |
| 13663 this._stepTimeout = Env.requestAnimationFrame(this.get$_step(), null, next
Time); |
| 13664 } |
| 13665 else { |
| 13666 this.stop(); |
| 13667 } |
| 13668 } |
| 13669 } |
| 13670 TimeoutMomentum.prototype.get$_step = function() { |
| 13671 return this._step.bind(this); |
| 13672 } |
| 13673 TimeoutMomentum.prototype.abort = function() { |
| 13674 this._decelerating = false; |
| 13675 this._moves.clear(); |
| 13676 if (this._stepTimeout != null) { |
| 13677 Env.cancelRequestAnimationFrame(this._stepTimeout); |
| 13678 this._stepTimeout = null; |
| 13679 } |
| 13680 } |
| 13681 TimeoutMomentum.prototype.stop = function() { |
| 13682 var wasDecelerating = this._decelerating; |
| 13683 this._decelerating = false; |
| 13684 var velocity; |
| 13685 if (!this._moves.isEmpty()) { |
| 13686 var move = this._moves.first(); |
| 13687 var velocityScale = (20.833333333333336); |
| 13688 velocity = new Coordinate(move.get$vx() / velocityScale, move.get$vy() / vel
ocityScale); |
| 13689 } |
| 13690 else { |
| 13691 velocity = new Coordinate((0), (0)); |
| 13692 } |
| 13693 this._moves.clear(); |
| 13694 if (this._stepTimeout != null) { |
| 13695 Env.cancelRequestAnimationFrame(this._stepTimeout); |
| 13696 this._stepTimeout = null; |
| 13697 } |
| 13698 if (wasDecelerating) { |
| 13699 this._delegate.onDecelerationEnd(); |
| 13700 } |
| 13701 return velocity; |
| 13702 } |
| 13703 TimeoutMomentum.prototype.get$destination = function() { |
| 13704 if (!this._moves.isEmpty()) { |
| 13705 var lastMove = this._moves.last(); |
| 13706 return new Coordinate(lastMove.get$x(), lastMove.get$y()); |
| 13707 } |
| 13708 else { |
| 13709 return null; |
| 13710 } |
| 13711 } |
| 13712 // ********** Code for Scroller ************** |
| 13713 function Scroller(scrollableElem, verticalEnabled, horizontalEnabled, momentumEn
abled, lookupContentSizeDelegate, defaultDecelerationFactor, scrollTechnique, ca
pture) { |
| 13714 var $this = this; // closure support |
| 13715 this._scrollTechnique = scrollTechnique != null ? scrollTechnique : (1); |
| 13716 this.horizontalEnabled = horizontalEnabled; |
| 13717 this._minPoint = new Coordinate((0), (0)); |
| 13718 this._minOffset = new Coordinate((0), (0)); |
| 13719 this._maxPoint = new Coordinate((0), (0)); |
| 13720 this._maxOffset = new Coordinate((0), (0)); |
| 13721 this._lookupContentSizeDelegate = lookupContentSizeDelegate; |
| 13722 this._frame = scrollableElem.get$parent(); |
| 13723 this._element = scrollableElem; |
| 13724 this._contentOffset = new Coordinate((0), (0)); |
| 13725 this._activeGesture = false; |
| 13726 this._isStopping = false; |
| 13727 this.verticalEnabled = verticalEnabled; |
| 13728 this._started = false; |
| 13729 this._momentumEnabled = momentumEnabled; |
| 13730 this._touchHandler = new TouchHandler(this, scrollableElem.get$parent()); |
| 13731 this._momentum = new TimeoutMomentum(this, defaultDecelerationFactor); |
| 13732 var parentElem = scrollableElem.get$parent(); |
| 13733 this._setOffsetFunction = Scroller._getOffsetFunction(this._scrollTechnique); |
| 13734 this._touchHandler.setDraggable(this); |
| 13735 this._touchHandler.enable(capture); |
| 13736 this._frame.get$on().get$mouseWheel().add$1((function (e) { |
| 13737 if ($ne(e.get$wheelDeltaY(), (0)) && $this.verticalEnabled || $ne(e.get$whee
lDeltaX(), (0)) && $this.horizontalEnabled) { |
| 13738 var x = $this.horizontalEnabled ? e.get$wheelDeltaX() : (0); |
| 13739 var y = $this.verticalEnabled ? e.get$wheelDeltaY() : (0); |
| 13740 $this.throwDelta(x, y, (0.84)); |
| 13741 e.preventDefault$0(); |
| 13742 } |
| 13743 }) |
| 13744 ); |
| 13745 this._frame.get$on().get$keyDown().add$1((function (e) { |
| 13746 var handled = false; |
| 13747 switch (e.get$keyCode()) { |
| 13748 case (33): |
| 13749 |
| 13750 $this.throwDelta((0), $this._scrollSize.height * (0.85)); |
| 13751 handled = true; |
| 13752 break; |
| 13753 |
| 13754 case (34): |
| 13755 |
| 13756 $this.throwDelta((0), -$this._scrollSize.height * (0.85)); |
| 13757 handled = true; |
| 13758 break; |
| 13759 |
| 13760 case (35): |
| 13761 |
| 13762 $this.throwTo($this._maxPoint.x, $this._minPoint.y, (0.84)); |
| 13763 handled = true; |
| 13764 break; |
| 13765 |
| 13766 case (36): |
| 13767 |
| 13768 $this.throwTo($this._maxPoint.x, $this._maxPoint.y, (0.84)); |
| 13769 handled = true; |
| 13770 break; |
| 13771 |
| 13772 } |
| 13773 if (handled) { |
| 13774 e.preventDefault(); |
| 13775 } |
| 13776 }) |
| 13777 ); |
| 13778 if (this._scrollTechnique == (2)) { |
| 13779 this._element.get$computedStyle().then((function (style) { |
| 13780 |
| 13781 }) |
| 13782 ); |
| 13783 } |
| 13784 this._initLayer(); |
| 13785 } |
| 13786 Scroller.prototype.get$onScrollerStart = function() { |
| 13787 if (this._onScrollerStart == null) { |
| 13788 this._onScrollerStart = new SimpleEventListenerList(); |
| 13789 } |
| 13790 return this._onScrollerStart; |
| 13791 } |
| 13792 Scroller.prototype.get$onScrollerEnd = function() { |
| 13793 if (this._onScrollerEnd == null) { |
| 13794 this._onScrollerEnd = new SimpleEventListenerList(); |
| 13795 } |
| 13796 return this._onScrollerEnd; |
| 13797 } |
| 13798 Scroller.prototype.get$onScrollerDragEnd = function() { |
| 13799 if (this._onScrollerDragEnd == null) { |
| 13800 this._onScrollerDragEnd = new SimpleEventListenerList(); |
| 13801 } |
| 13802 return this._onScrollerDragEnd; |
| 13803 } |
| 13804 Scroller.prototype.get$onContentMoved = function() { |
| 13805 if (this._touch_onContentMoved == null) { |
| 13806 this._touch_onContentMoved = new SimpleEventListenerList(); |
| 13807 } |
| 13808 return this._touch_onContentMoved; |
| 13809 } |
| 13810 Scroller.prototype.get$onDecelStart = function() { |
| 13811 if (this._onDecelStart == null) { |
| 13812 this._onDecelStart = new SimpleEventListenerList(); |
| 13813 } |
| 13814 return this._onDecelStart; |
| 13815 } |
| 13816 Scroller.prototype.addScrollListener = function(listener) { |
| 13817 if (this._scrollWatcher == null) { |
| 13818 this._scrollWatcher = new ScrollWatcher(this); |
| 13819 this._scrollWatcher.initialize(); |
| 13820 } |
| 13821 this._scrollWatcher.addListener(listener); |
| 13822 } |
| 13823 Scroller.prototype._adjustValue = function(newPosition, minPosition, maxPosition
) { |
| 13824 if (newPosition < minPosition) { |
| 13825 newPosition -= ((newPosition - minPosition) / (2)); |
| 13826 } |
| 13827 else { |
| 13828 if (newPosition > maxPosition) { |
| 13829 newPosition -= ((newPosition - maxPosition) / (2)); |
| 13830 } |
| 13831 } |
| 13832 return newPosition; |
| 13833 } |
| 13834 Scroller.prototype.get$currentTarget = function() { |
| 13835 var end = this._momentum.get$destination(); |
| 13836 if (end == null) { |
| 13837 end = this._contentOffset; |
| 13838 } |
| 13839 return end; |
| 13840 } |
| 13841 Scroller.prototype.get$contentOffset = function() { |
| 13842 return this._contentOffset; |
| 13843 } |
| 13844 Scroller.prototype.throwTo = function(x, y, decelerationFactor) { |
| 13845 var $this = this; // closure support |
| 13846 this.reconfigure((function () { |
| 13847 var snappedTarget = $this._snapToBounds(x, y); |
| 13848 if (decelerationFactor == null) { |
| 13849 decelerationFactor = $this._momentum.get$decelerationFactor(); |
| 13850 } |
| 13851 if ($ne(snappedTarget, $this.get$currentTarget())) { |
| 13852 $this._momentum.abort(); |
| 13853 $this._startDeceleration($this._momentum.calculateVelocity($this._contentO
ffset, snappedTarget, decelerationFactor), decelerationFactor); |
| 13854 $this.get$onDecelStart().dispatch(EventWrappingImplementation.EventWrappin
gImplementation$factory("scroller:decel_start", true, true)); |
| 13855 } |
| 13856 }) |
| 13857 ); |
| 13858 } |
| 13859 Scroller.prototype.throwDelta = function(deltaX, deltaY, decelerationFactor) { |
| 13860 var start = this._contentOffset; |
| 13861 var end = this.get$currentTarget(); |
| 13862 var x = end.x.toInt(); |
| 13863 var y = end.y.toInt(); |
| 13864 if (deltaX != (0) && $ne(deltaX.isNegative(), (end.x - start.x).isNegative()))
{ |
| 13865 x = start.x; |
| 13866 } |
| 13867 if (deltaY != (0) && $ne(deltaY.isNegative(), (end.y - start.y).isNegative()))
{ |
| 13868 y = start.y; |
| 13869 } |
| 13870 x += deltaX.toInt(); |
| 13871 y += deltaY.toInt(); |
| 13872 this.throwTo(x, y, decelerationFactor); |
| 13873 } |
| 13874 Scroller.prototype.setPosition = function(x, y) { |
| 13875 this._momentum.abort(); |
| 13876 this._contentOffset.x = x; |
| 13877 this._contentOffset.y = y; |
| 13878 this._snapContentOffsetToBounds(); |
| 13879 this._setContentOffset(this._contentOffset.x, this._contentOffset.y); |
| 13880 } |
| 13881 Scroller.prototype._getAdjustedContentSize = function() { |
| 13882 return new Size(Math.max(this._scrollSize.width, this._contentSize.width), Mat
h.max(this._scrollSize.height, this._contentSize.height)); |
| 13883 } |
| 13884 Scroller.prototype.getElement = function() { |
| 13885 return this._element; |
| 13886 } |
| 13887 Scroller.prototype.getFrame = function() { |
| 13888 return this._frame; |
| 13889 } |
| 13890 Scroller.prototype.getHorizontalOffset = function() { |
| 13891 return this._contentOffset.x; |
| 13892 } |
| 13893 Scroller.prototype.getHorizontalScrollPercent = function(x) { |
| 13894 x = x != null ? x : this._contentOffset.x; |
| 13895 return (x - this._minPoint.x) / (this._maxPoint.x - this._minPoint.x); |
| 13896 } |
| 13897 Scroller.prototype.getVerticalOffset = function() { |
| 13898 return this._contentOffset.y; |
| 13899 } |
| 13900 Scroller.prototype.getVerticalScrollPercent = function(y) { |
| 13901 y = y != null ? y : this._contentOffset.y; |
| 13902 return (y - this._minPoint.y) / Math.max((1), this._maxPoint.y - this._minPoin
t.y); |
| 13903 } |
| 13904 Scroller.prototype._initLayer = function() { |
| 13905 this._setContentOffset(this._maxPoint.x, this._maxPoint.y); |
| 13906 } |
| 13907 Scroller.prototype.onDecelerate = function(x, y) { |
| 13908 this._setContentOffset(x, y); |
| 13909 } |
| 13910 Scroller.prototype.onDecelerationEnd = function() { |
| 13911 this.get$onScrollerEnd().dispatch(EventWrappingImplementation.EventWrappingImp
lementation$factory("scroller:scroll_end", true, true)); |
| 13912 this._started = false; |
| 13913 } |
| 13914 Scroller.prototype.onDragEnd = function() { |
| 13915 $globals.Scroller__dragInProgress = false; |
| 13916 var decelerating = false; |
| 13917 if (this._activeGesture) { |
| 13918 if (this._momentumEnabled) { |
| 13919 decelerating = this._startDeceleration(this._touchHandler.getEndVelocity()
); |
| 13920 } |
| 13921 } |
| 13922 this.get$onScrollerDragEnd().dispatch(EventWrappingImplementation.EventWrappin
gImplementation$factory("scroller:drag_end", true, true)); |
| 13923 if (!decelerating) { |
| 13924 this._snapContentOffsetToBounds(); |
| 13925 this.get$onScrollerEnd().dispatch(EventWrappingImplementation.EventWrappingI
mplementation$factory("scroller:scroll_end", true, true)); |
| 13926 this._started = false; |
| 13927 } |
| 13928 else { |
| 13929 this.get$onDecelStart().dispatch(EventWrappingImplementation.EventWrappingIm
plementation$factory("scroller:decel_start", true, true)); |
| 13930 } |
| 13931 this._activeGesture = false; |
| 13932 } |
| 13933 Scroller.prototype.onDragMove = function() { |
| 13934 if (this._isStopping || (!this._activeGesture && $globals.Scroller__dragInProg
ress)) { |
| 13935 return; |
| 13936 } |
| 13937 var contentStart = this._contentStartOffset; |
| 13938 var newX = contentStart.x + this._touchHandler.getDragDeltaX(); |
| 13939 var newY = contentStart.y + this._touchHandler.getDragDeltaY(); |
| 13940 newY = this._shouldScrollVertically() ? this._adjustValue(newY, this._minPoint
.y, this._maxPoint.y) : (0); |
| 13941 newX = this._shouldScrollHorizontally() ? this._adjustValue(newX, this._minPoi
nt.x, this._maxPoint.x) : (0); |
| 13942 if (!this._activeGesture) { |
| 13943 this._activeGesture = true; |
| 13944 $globals.Scroller__dragInProgress = true; |
| 13945 } |
| 13946 if (!this._started) { |
| 13947 this._started = true; |
| 13948 this.get$onScrollerStart().dispatch(EventWrappingImplementation.EventWrappin
gImplementation$factory("scroller:scroll_start", true, true)); |
| 13949 } |
| 13950 this._setContentOffset(newX, newY); |
| 13951 } |
| 13952 Scroller.prototype.onDragStart = function(e) { |
| 13953 if (e.get$touches().get$length() > (1)) { |
| 13954 return false; |
| 13955 } |
| 13956 var shouldHorizontal = this._shouldScrollHorizontally(); |
| 13957 var shouldVertical = this._shouldScrollVertically(); |
| 13958 var verticalish = this._touchHandler.getDragDeltaY().abs() > this._touchHandle
r.getDragDeltaX().abs(); |
| 13959 return !!(shouldVertical || shouldHorizontal && !verticalish); |
| 13960 } |
| 13961 Scroller.prototype.onTouchEnd = function() { |
| 13962 |
| 13963 } |
| 13964 Scroller.prototype.onTouchStart = function(e) { |
| 13965 var $this = this; // closure support |
| 13966 this.reconfigure((function () { |
| 13967 var touch = e.get$touches().$index((0)); |
| 13968 if ($this._momentum.get$decelerating()) { |
| 13969 e.preventDefault(); |
| 13970 e.stopPropagation(); |
| 13971 $this.stop(); |
| 13972 } |
| 13973 $this._contentStartOffset = $this._contentOffset.clone(); |
| 13974 $this._snapContentOffsetToBounds(); |
| 13975 }) |
| 13976 ); |
| 13977 return true; |
| 13978 } |
| 13979 Scroller.prototype.reconfigure = function(callback) { |
| 13980 var $this = this; // closure support |
| 13981 this._resize((function () { |
| 13982 $this._snapContentOffsetToBounds(); |
| 13983 callback.call$0(); |
| 13984 }) |
| 13985 ); |
| 13986 } |
| 13987 Scroller.prototype._resize = function(callback) { |
| 13988 var $this = this; // closure support |
| 13989 var frameRect = this._frame.get$rect(); |
| 13990 var contentSizeFuture; |
| 13991 if (this._lookupContentSizeDelegate != null) { |
| 13992 contentSizeFuture = this._lookupContentSizeDelegate.call$0(); |
| 13993 contentSizeFuture.then((function (size) { |
| 13994 $this._contentSize = size; |
| 13995 }) |
| 13996 ); |
| 13997 } |
| 13998 else { |
| 13999 contentSizeFuture = this._element.get$rect(); |
| 14000 contentSizeFuture.then((function (rect) { |
| 14001 $this._contentSize = new Size(rect.scroll.get$width(), rect.scroll.get$hei
ght()); |
| 14002 }) |
| 14003 ); |
| 14004 } |
| 14005 joinFutures([frameRect, contentSizeFuture], (function () { |
| 14006 $this._scrollSize = new Size(frameRect.get$value().get$offset().get$width(),
frameRect.get$value().get$offset().get$height()); |
| 14007 var adjusted = $this._getAdjustedContentSize(); |
| 14008 $this._maxPoint = new Coordinate(-$this._maxOffset.x, -$this._maxOffset.y); |
| 14009 $this._minPoint = new Coordinate(Math.min($this._scrollSize.width - adjusted
.width + $this._minOffset.x, $this._maxPoint.x), Math.min($this._scrollSize.heig
ht - adjusted.height + $this._minOffset.y, $this._maxPoint.y)); |
| 14010 callback.call$0(); |
| 14011 }) |
| 14012 ); |
| 14013 } |
| 14014 Scroller.prototype._snapToBounds = function(x, y) { |
| 14015 var clampX = GoogleMath.clamp(this._minPoint.x, x, this._maxPoint.x); |
| 14016 var clampY = GoogleMath.clamp(this._minPoint.y, y, this._maxPoint.y); |
| 14017 return new Coordinate(clampX, clampY); |
| 14018 } |
| 14019 Scroller.prototype._setContentOffset = function(x, y) { |
| 14020 this._contentOffset.x = x; |
| 14021 this._contentOffset.y = y; |
| 14022 this._setOffsetFunction.call$3(this._element, x, y); |
| 14023 this.get$onContentMoved().dispatch(EventWrappingImplementation.EventWrappingIm
plementation$factory("scroller:content_moved", true, true)); |
| 14024 } |
| 14025 Scroller.prototype._shouldScrollHorizontally = function() { |
| 14026 return this.horizontalEnabled && this._scrollSize.width < this._contentSize.wi
dth; |
| 14027 } |
| 14028 Scroller.prototype._shouldScrollVertically = function() { |
| 14029 return this.verticalEnabled; |
| 14030 } |
| 14031 Scroller.prototype._snapContentOffsetToBounds = function() { |
| 14032 var clampX = GoogleMath.clamp(this._minPoint.x, this._contentOffset.x, this._m
axPoint.x); |
| 14033 var clampY = GoogleMath.clamp(this._minPoint.y, this._contentOffset.y, this._m
axPoint.y); |
| 14034 if (this._contentOffset.x != clampX || this._contentOffset.y != clampY) { |
| 14035 this._setContentOffset(clampX, clampY); |
| 14036 } |
| 14037 } |
| 14038 Scroller.prototype._startDeceleration = function(velocity, decelerationFactor) { |
| 14039 if (!this._shouldScrollHorizontally()) { |
| 14040 velocity.x = (0); |
| 14041 } |
| 14042 if (!this._shouldScrollVertically()) { |
| 14043 velocity.y = (0); |
| 14044 } |
| 14045 return this._momentum.start(velocity, this._minPoint, this._maxPoint, this._co
ntentOffset, decelerationFactor); |
| 14046 } |
| 14047 Scroller.prototype.stop = function() { |
| 14048 return this._momentum.stop(); |
| 14049 } |
| 14050 Scroller._getOffsetFunction = function(scrollTechnique) { |
| 14051 return scrollTechnique == (1) ? (function (el, x, y) { |
| 14052 FxUtil.setTranslate(el, x, y, (0)); |
| 14053 }) |
| 14054 : (function (el, x, y) { |
| 14055 FxUtil.setLeftAndTop(el, x, y); |
| 14056 }) |
| 14057 ; |
| 14058 } |
| 14059 // ********** Code for ScrollerEventType ************** |
| 14060 function ScrollerEventType() {} |
| 14061 // ********** Code for SimpleEventListenerList ************** |
| 14062 function SimpleEventListenerList() { |
| 14063 this._listeners = new Array(); |
| 14064 } |
| 14065 SimpleEventListenerList.prototype.add = function(handler, useCapture) { |
| 14066 this._add(handler, useCapture); |
| 14067 return this; |
| 14068 } |
| 14069 SimpleEventListenerList.prototype.remove = function(handler, useCapture) { |
| 14070 this._remove(handler, useCapture); |
| 14071 return this; |
| 14072 } |
| 14073 SimpleEventListenerList.prototype._add = function(handler, useCapture) { |
| 14074 this._listeners.add$1(handler); |
| 14075 } |
| 14076 SimpleEventListenerList.prototype._remove = function(handler, useCapture) { |
| 14077 $throw("Not implemented yet."); |
| 14078 } |
| 14079 SimpleEventListenerList.prototype.dispatch = function(evt) { |
| 14080 var $$list = this._listeners; |
| 14081 for (var $$i = 0;$$i < $$list.get$length(); $$i++) { |
| 14082 var listener = $$list.$index($$i); |
| 14083 listener.call$1(evt); |
| 14084 } |
| 14085 } |
| 14086 SimpleEventListenerList.prototype.add$1 = function($0) { |
| 14087 return this.add(to$call$1($0), false); |
| 14088 }; |
| 14089 SimpleEventListenerList.prototype.add$2 = function($0, $1) { |
| 14090 return this.add(to$call$1($0), $1); |
| 14091 }; |
| 14092 SimpleEventListenerList.prototype.remove$1 = function($0) { |
| 14093 return this.remove(to$call$1($0), false); |
| 14094 }; |
| 14095 SimpleEventListenerList.prototype.remove$2 = function($0, $1) { |
| 14096 return this.remove(to$call$1($0), $1); |
| 14097 }; |
| 14098 // ********** Code for ScrollerScrollTechnique ************** |
| 14099 function ScrollerScrollTechnique() {} |
| 14100 // ********** Code for TouchHandler ************** |
| 14101 function TouchHandler(touchable, element) { |
| 14102 this._recentTouchesX = new Array(); |
| 14103 this._touchable = touchable; |
| 14104 this._tracking = false; |
| 14105 this._dragging = false; |
| 14106 this._totalMoveY = (0); |
| 14107 this._totalMoveX = (0); |
| 14108 this._recentTouchesY = new Array(); |
| 14109 this._touching = false; |
| 14110 this._element = element != null ? element : touchable.getElement(); |
| 14111 } |
| 14112 TouchHandler.prototype._beginTracking = function() { |
| 14113 this._tracking = true; |
| 14114 } |
| 14115 TouchHandler.prototype._endTracking = function() { |
| 14116 this._tracking = false; |
| 14117 this._dragging = false; |
| 14118 this._totalMoveY = (0); |
| 14119 this._totalMoveX = (0); |
| 14120 } |
| 14121 TouchHandler.prototype._correctVelocity = function(velocity) { |
| 14122 var absVelocity = velocity.abs(); |
| 14123 if (absVelocity > (5)) { |
| 14124 absVelocity = this._recentTouchesY.get$length() < (6) ? (1) : (5); |
| 14125 } |
| 14126 return absVelocity * (velocity < (0) ? (-1) : (1)); |
| 14127 } |
| 14128 TouchHandler.prototype.enable = function(capture) { |
| 14129 var $this = this; // closure support |
| 14130 var onEnd = (function (e) { |
| 14131 $this._onEnd(e.get$timeStamp(), e); |
| 14132 }) |
| 14133 ; |
| 14134 _addEventListeners(this._element, (function (e) { |
| 14135 $this._onStart(e); |
| 14136 }) |
| 14137 , (function (e) { |
| 14138 $this._onMove(e); |
| 14139 }) |
| 14140 , to$call$1(onEnd), to$call$1(onEnd), capture); |
| 14141 } |
| 14142 TouchHandler.prototype.getDragDeltaX = function() { |
| 14143 return this._lastTouchX - this._startTouchX; |
| 14144 } |
| 14145 TouchHandler.prototype.getDragDeltaY = function() { |
| 14146 return this._lastTouchY - this._startTouchY; |
| 14147 } |
| 14148 TouchHandler.prototype.getEndVelocity = function() { |
| 14149 var velocityX = (0); |
| 14150 var velocityY = (0); |
| 14151 if (this._recentTouchesX.get$length() > (0)) { |
| 14152 var timeDeltaX = Math.max((1), this._endTime - this._recentTouchesX.$index((
1))); |
| 14153 velocityX = (this._endTouchX - this._recentTouchesX.$index((0))) / timeDelta
X; |
| 14154 } |
| 14155 if (this._recentTouchesY.get$length() > (0)) { |
| 14156 var timeDeltaY = Math.max((1), this._endTime - this._recentTouchesY.$index((
1))); |
| 14157 velocityY = (this._endTouchY - this._recentTouchesY.$index((0))) / timeDelta
Y; |
| 14158 } |
| 14159 velocityX = this._correctVelocity(velocityX); |
| 14160 velocityY = this._correctVelocity(velocityY); |
| 14161 return new Coordinate(velocityX, velocityY); |
| 14162 } |
| 14163 TouchHandler.prototype._getLastTouch = function() { |
| 14164 return this._lastEvent.get$touches().$index((0)); |
| 14165 } |
| 14166 TouchHandler.prototype._onEnd = function(timeStamp, e) { |
| 14167 this._touching = false; |
| 14168 this._touchable.onTouchEnd(); |
| 14169 if (!this._tracking || this._draggable == null) { |
| 14170 return; |
| 14171 } |
| 14172 var touch = this._getLastTouch(); |
| 14173 var clientX = touch.get$clientX(); |
| 14174 var clientY = touch.get$clientY(); |
| 14175 if (this._dragging) { |
| 14176 this._endTime = timeStamp; |
| 14177 this._endTouchX = clientX; |
| 14178 this._endTouchY = clientY; |
| 14179 this._recentTouchesX = this._removeOldTouches(this._recentTouchesX, timeStam
p); |
| 14180 this._recentTouchesY = this._removeOldTouches(this._recentTouchesY, timeStam
p); |
| 14181 this._draggable.onDragEnd(); |
| 14182 if (e != null) { |
| 14183 e.preventDefault(); |
| 14184 } |
| 14185 ClickBuster.preventGhostClick(this._startTouchX, this._startTouchY); |
| 14186 } |
| 14187 this._endTracking(); |
| 14188 } |
| 14189 TouchHandler.prototype._onMove = function(e) { |
| 14190 if (!this._tracking || this._draggable == null) { |
| 14191 return; |
| 14192 } |
| 14193 var touch = e.get$touches().$index((0)); |
| 14194 var clientX = touch.get$clientX(); |
| 14195 var clientY = touch.get$clientY(); |
| 14196 var moveX = this._lastTouchX - clientX; |
| 14197 var moveY = this._lastTouchY - clientY; |
| 14198 this._totalMoveX = this._totalMoveX + moveX.abs(); |
| 14199 this._totalMoveY = this._totalMoveY + moveY.abs(); |
| 14200 this._lastTouchX = clientX; |
| 14201 this._lastTouchY = clientY; |
| 14202 if (!this._dragging && ((this._totalMoveY > (2) && this._draggable.verticalEna
bled) || (this._totalMoveX > (2) && this._draggable.horizontalEnabled))) { |
| 14203 this._dragging = this._draggable.onDragStart(e); |
| 14204 if (!this._dragging) { |
| 14205 this._endTracking(); |
| 14206 } |
| 14207 else { |
| 14208 this._startTouchX = clientX; |
| 14209 this._startTouchY = clientY; |
| 14210 this._startTime = e.get$timeStamp(); |
| 14211 } |
| 14212 } |
| 14213 if (this._dragging) { |
| 14214 this._draggable.onDragMove(); |
| 14215 this._lastEvent = e; |
| 14216 e.preventDefault(); |
| 14217 this._recentTouchesX = this._removeTouchesInWrongDirection(this._recentTouch
esX, this._lastMoveX, moveX); |
| 14218 this._recentTouchesY = this._removeTouchesInWrongDirection(this._recentTouch
esY, this._lastMoveY, moveY); |
| 14219 this._recentTouchesX = this._removeOldTouches(this._recentTouchesX, e.get$ti
meStamp()); |
| 14220 this._recentTouchesY = this._removeOldTouches(this._recentTouchesY, e.get$ti
meStamp()); |
| 14221 this._recentTouchesX.add$1(clientX); |
| 14222 this._recentTouchesX.add$1(e.get$timeStamp()); |
| 14223 this._recentTouchesY.add$1(clientY); |
| 14224 this._recentTouchesY.add$1(e.get$timeStamp()); |
| 14225 } |
| 14226 this._lastMoveX = moveX; |
| 14227 this._lastMoveY = moveY; |
| 14228 } |
| 14229 TouchHandler.prototype._onStart = function(e) { |
| 14230 var $0, $1; |
| 14231 if (this._touching) { |
| 14232 return; |
| 14233 } |
| 14234 this._touching = true; |
| 14235 if (!this._touchable.onTouchStart(e) || this._draggable == null) { |
| 14236 return; |
| 14237 } |
| 14238 var touch = e.get$touches().$index((0)); |
| 14239 this._startTouchX = (this._lastTouchX = ($0 = touch.get$clientX()), $0); |
| 14240 this._startTouchY = (this._lastTouchY = ($1 = touch.get$clientY()), $1); |
| 14241 this._startTime = e.get$timeStamp(); |
| 14242 this._recentTouchesX = new Array(); |
| 14243 this._recentTouchesY = new Array(); |
| 14244 this._recentTouchesX.add$1(touch.get$clientX()); |
| 14245 this._recentTouchesX.add$1(e.get$timeStamp()); |
| 14246 this._recentTouchesY.add$1(touch.get$clientY()); |
| 14247 this._recentTouchesY.add$1(e.get$timeStamp()); |
| 14248 this._lastEvent = e; |
| 14249 this._beginTracking(); |
| 14250 } |
| 14251 TouchHandler.prototype._removeOldTouches = function(recentTouches, recentTime) { |
| 14252 var count = (0); |
| 14253 var len = recentTouches.get$length(); |
| 14254 while (count < len && recentTime - recentTouches.$index(count + (1)) > (250) |
| (len - count) > (10)) { |
| 14255 count += (2); |
| 14256 } |
| 14257 return count == (0) ? recentTouches : TouchHandler._removeFirstN(recentTouches
, count); |
| 14258 } |
| 14259 TouchHandler._removeFirstN = function(list, n) { |
| 14260 return list.getRange$2(n, list.get$length() - n); |
| 14261 } |
| 14262 TouchHandler.prototype._removeTouchesInWrongDirection = function(recentTouches,
lastMove, recentMove) { |
| 14263 if (lastMove != (0) && recentMove != (0) && recentTouches.get$length() > (2) &
& TouchHandler._xor(lastMove > (0), recentMove > (0))) { |
| 14264 return TouchHandler._removeFirstN(recentTouches, recentTouches.get$length()
- (2)); |
| 14265 } |
| 14266 return recentTouches; |
| 14267 } |
| 14268 TouchHandler._xor = function(a, b) { |
| 14269 return (a == true || b == true) && !(a == true && b == true); |
| 14270 } |
| 14271 TouchHandler.prototype.setDraggable = function(draggable) { |
| 14272 this._draggable = draggable; |
| 14273 } |
| 14274 // ********** Code for ClickBuster ************** |
| 14275 function ClickBuster() {} |
| 14276 ClickBuster._onClick = function(e) { |
| 14277 if (TimeUtil.now() - $globals.ClickBuster__lastPreventedTime > (2500)) { |
| 14278 return; |
| 14279 } |
| 14280 var coord = new Coordinate.fromClient$ctor(e); |
| 14281 var entry = $globals.ClickBuster__coordinates.firstEntry$0(); |
| 14282 while (entry != null) { |
| 14283 if (ClickBuster._hitTest(entry.get$element(), entry.nextEntry$0().get$elemen
t(), coord.get$x(), coord.get$y())) { |
| 14284 entry.nextEntry$0().remove$0(); |
| 14285 entry.remove$0(); |
| 14286 return; |
| 14287 } |
| 14288 else { |
| 14289 entry = entry.nextEntry$0().nextEntry$0(); |
| 14290 } |
| 14291 } |
| 14292 e.stopPropagation(); |
| 14293 e.preventDefault(); |
| 14294 } |
| 14295 ClickBuster._onTouchStart = function(e) { |
| 14296 var te = e; |
| 14297 var coord = new Coordinate.fromClient$ctor(te.get$touches().$index((0))); |
| 14298 $globals.ClickBuster__coordinates.add$1(coord.get$x()); |
| 14299 $globals.ClickBuster__coordinates.add$1(coord.get$y()); |
| 14300 html_get$window().setTimeout((function () { |
| 14301 ClickBuster._removeCoordinate(coord.get$x(), coord.get$y()); |
| 14302 }) |
| 14303 , (2500)); |
| 14304 ClickBuster._toggleTapHighlights(true); |
| 14305 } |
| 14306 ClickBuster._hitTest = function(x, y, eventX, eventY) { |
| 14307 return (eventX - x).abs() < (25) && (eventY - y).abs() < (25); |
| 14308 } |
| 14309 ClickBuster._removeCoordinate = function(x, y) { |
| 14310 var entry = $globals.ClickBuster__coordinates.firstEntry$0(); |
| 14311 while (entry != null) { |
| 14312 if ($eq(entry.get$element(), x) && $eq(entry.nextEntry$0().get$element(), y)
) { |
| 14313 entry.nextEntry$0().remove$0(); |
| 14314 entry.remove$0(); |
| 14315 return; |
| 14316 } |
| 14317 else { |
| 14318 entry = entry.nextEntry$0().nextEntry$0(); |
| 14319 } |
| 14320 } |
| 14321 } |
| 14322 ClickBuster._toggleTapHighlights = function(enable) { |
| 14323 html_get$document().get$body().get$style().setProperty("-webkit-tap-highlight-
color", enable ? "" : "rgba(0,0,0,0)", ""); |
| 14324 } |
| 14325 ClickBuster.preventGhostClick = function(x, y) { |
| 14326 if ($globals.ClickBuster__coordinates == null) { |
| 14327 html_get$document().get$on().get$click().add((function (e) { |
| 14328 ClickBuster._onClick(e); |
| 14329 }) |
| 14330 , true); |
| 14331 html_get$document().get$on().get$focus().add((function (e) { |
| 14332 $globals.ClickBuster__lastPreventedTime = (0); |
| 14333 }) |
| 14334 , true); |
| 14335 var startFn = (function (e) { |
| 14336 ClickBuster._onTouchStart(e); |
| 14337 }) |
| 14338 ; |
| 14339 if (!Device.get$supportsTouch()) { |
| 14340 startFn = mouseToTouchCallback(to$call$1(startFn)); |
| 14341 } |
| 14342 EventUtil.observe(html_get$document(), Device.get$supportsTouch() ? html_get
$document().get$on().get$touchStart() : html_get$document().get$on().get$mouseDo
wn(), startFn, true, true); |
| 14343 $globals.ClickBuster__coordinates = new DoubleLinkedQueue(); |
| 14344 } |
| 14345 ClickBuster._toggleTapHighlights(false); |
| 14346 $globals.ClickBuster__lastPreventedTime = TimeUtil.now(); |
| 14347 var entry = $globals.ClickBuster__coordinates.firstEntry$0(); |
| 14348 while (entry != null) { |
| 14349 if (ClickBuster._hitTest(entry.get$element(), entry.nextEntry$0().get$elemen
t(), x, y)) { |
| 14350 entry.nextEntry$0().remove$0(); |
| 14351 entry.remove$0(); |
| 14352 return; |
| 14353 } |
| 14354 else { |
| 14355 entry = entry.nextEntry$0().nextEntry$0(); |
| 14356 } |
| 14357 } |
| 14358 } |
| 14359 // ********** Code for EventUtil ************** |
| 14360 function EventUtil() {} |
| 14361 EventUtil.observe = function(element, listenerList, handler, capture, removeHand
lerOnFocus) { |
| 14362 listenerList.add(to$call$1(handler), capture); |
| 14363 if (removeHandlerOnFocus) { |
| 14364 element.get$on().get$focus().add$1((function (e) { |
| 14365 listenerList.remove(to$call$1(handler), capture); |
| 14366 }) |
| 14367 ); |
| 14368 element.get$on().get$blur().add$1((function (e) { |
| 14369 listenerList.add(to$call$1(handler), capture); |
| 14370 }) |
| 14371 ); |
| 14372 } |
| 14373 } |
| 14374 // ********** Code for Coordinate ************** |
| 14375 function Coordinate(x, y) { |
| 14376 this.y = y; |
| 14377 this.x = x; |
| 14378 } |
| 14379 Coordinate.fromClient$ctor = function(input) { |
| 14380 Coordinate.call(this, input.get$clientX(), input.get$clientY()); |
| 14381 } |
| 14382 Coordinate.fromClient$ctor.prototype = Coordinate.prototype; |
| 14383 Coordinate.prototype.get$x = function() { return this.x; }; |
| 14384 Coordinate.prototype.set$x = function(value) { return this.x = value; }; |
| 14385 Coordinate.prototype.get$y = function() { return this.y; }; |
| 14386 Coordinate.prototype.set$y = function(value) { return this.y = value; }; |
| 14387 Coordinate.prototype.$eq = function(other) { |
| 14388 return other != null && this.x == other.x && this.y == other.y; |
| 14389 } |
| 14390 Coordinate.prototype.clone = function() { |
| 14391 return new Coordinate(this.x, this.y); |
| 14392 } |
| 14393 Coordinate.prototype.toString = function() { |
| 14394 return ("(" + this.x + ", " + this.y + ")"); |
| 14395 } |
| 14396 Coordinate.prototype.clone$0 = Coordinate.prototype.clone; |
| 14397 Coordinate.prototype.toString$0 = Coordinate.prototype.toString; |
| 14398 // ********** Code for Interval ************** |
| 14399 function Interval(start, end) { |
| 14400 this.start = start; |
| 14401 this.end = end; |
| 14402 } |
| 14403 Interval.prototype.get$start = function() { return this.start; }; |
| 14404 Interval.prototype.get$end = function() { return this.end; }; |
| 14405 Interval.prototype.get$length = function() { |
| 14406 return this.end - this.start; |
| 14407 } |
| 14408 Interval.prototype.$eq = function(other) { |
| 14409 return other != null && other.start == this.start && other.end == this.end; |
| 14410 } |
| 14411 Interval.prototype.union = function(other) { |
| 14412 return new Interval(Math.min(this.start, other.start), Math.max(this.end, othe
r.end)); |
| 14413 } |
| 14414 Interval.prototype.contains = function(value) { |
| 14415 return value >= this.start && value < this.end; |
| 14416 } |
| 14417 Interval.prototype.toString = function() { |
| 14418 return ("(" + this.start + ", " + this.end + ")"); |
| 14419 } |
| 14420 Interval.prototype.contains$1 = Interval.prototype.contains; |
| 14421 Interval.prototype.end$0 = function() { |
| 14422 return this.end.call$0(); |
| 14423 }; |
| 14424 Interval.prototype.start$0 = function() { |
| 14425 return this.start.call$0(); |
| 14426 }; |
| 14427 Interval.prototype.toString$0 = Interval.prototype.toString; |
| 14428 // ********** Code for GoogleMath ************** |
| 14429 function GoogleMath() {} |
| 14430 GoogleMath.clamp = function(value, min, max) { |
| 14431 return Math.min(Math.max(value, min), max); |
| 14432 } |
| 14433 // ********** Code for Scrollbar ************** |
| 14434 function Scrollbar(scroller, displayOnHover) { |
| 14435 var $this = this; // closure support |
| 14436 this._scrollInProgress = false; |
| 14437 this._scrollBarDragInProgressValue = false; |
| 14438 this._displayOnHover = displayOnHover; |
| 14439 this._frame = scroller.getFrame(); |
| 14440 this._hovering = false; |
| 14441 this._scroller = scroller; |
| 14442 this._cachedSize = new HashMapImplementation(); |
| 14443 this._boundHideFn = (function () { |
| 14444 $this._showScrollbars(false); |
| 14445 }) |
| 14446 ; |
| 14447 } |
| 14448 Scrollbar.prototype.get$_scrollBarDragInProgress = function() { |
| 14449 return this._scrollBarDragInProgressValue; |
| 14450 } |
| 14451 Scrollbar.prototype.set$_scrollBarDragInProgress = function(value) { |
| 14452 this._scrollBarDragInProgressValue = value; |
| 14453 this._toggleClass(this._verticalElement, "drag", value && this._currentScrollV
ertical); |
| 14454 this._toggleClass(this._horizontalElement, "drag", value && !this._currentScro
llVertical); |
| 14455 } |
| 14456 Scrollbar.prototype._toggleClass = function(e, className, enabled) { |
| 14457 if (enabled) { |
| 14458 if (!e.get$classes().contains(className)) { |
| 14459 e.get$classes().add(className); |
| 14460 } |
| 14461 } |
| 14462 else { |
| 14463 e.get$classes().remove(className); |
| 14464 } |
| 14465 } |
| 14466 Scrollbar.prototype.initialize = function() { |
| 14467 var $this = this; // closure support |
| 14468 if (this._verticalElement != null) { |
| 14469 return; |
| 14470 } |
| 14471 this._verticalElement = ElementWrappingImplementation.ElementWrappingImplement
ation$html$factory("<div class=\"touch-scrollbar touch-scrollbar-vertical\"></di
v>"); |
| 14472 this._horizontalElement = ElementWrappingImplementation.ElementWrappingImpleme
ntation$html$factory("<div class=\"touch-scrollbar touch-scrollbar-horizontal\">
</div>"); |
| 14473 this._scroller.addScrollListener(this); |
| 14474 var scrollerEl = this._scroller.getElement(); |
| 14475 if (!Device.get$supportsTouch()) { |
| 14476 _addEventListeners(this._verticalElement, this.get$_onStart(), this.get$_onM
ove(), this.get$_onEnd(), this.get$_onEnd(), true); |
| 14477 _addEventListeners(this._horizontalElement, this.get$_onStart(), this.get$_o
nMove(), this.get$_onEnd(), this.get$_onEnd(), true); |
| 14478 } |
| 14479 this._scroller.addScrollListener(this); |
| 14480 this._showScrollbars(false); |
| 14481 this._scroller.get$onScrollerStart().add(this.get$_onScrollerStart(), false); |
| 14482 this._scroller.get$onScrollerEnd().add(this.get$_onScrollerEnd(), false); |
| 14483 if (this._displayOnHover) { |
| 14484 this._frame.get$on().get$click().add$2((function (e) { |
| 14485 if (!$this._frame.contains(html_get$document().get$activeElement())) { |
| 14486 scrollerEl.focus(); |
| 14487 } |
| 14488 }) |
| 14489 , false); |
| 14490 this._frame.get$on().get$mouseOver().add$2((function (e) { |
| 14491 var activeElement = html_get$document().get$activeElement(); |
| 14492 if (!!(activeElement && activeElement.is$BodyElement()) || (!$this._frame.
contains(activeElement) && !!(activeElement && activeElement.is$DivElement())))
{ |
| 14493 scrollerEl.focus(); |
| 14494 } |
| 14495 if ($eq($this._hovering, false)) { |
| 14496 $this._hovering = true; |
| 14497 $this._cancelTimeout(); |
| 14498 $this._showScrollbars(true); |
| 14499 $this.refresh(); |
| 14500 } |
| 14501 }) |
| 14502 , false); |
| 14503 this._frame.get$on().get$mouseOut().add$2((function (e) { |
| 14504 $this._hovering = false; |
| 14505 if (!$this._scrollInProgress && $this._timerId == null) { |
| 14506 $this._boundHideFn.call$0(); |
| 14507 } |
| 14508 }) |
| 14509 , false); |
| 14510 } |
| 14511 } |
| 14512 Scrollbar.prototype._onStart = function(e) { |
| 14513 var elementOver = e.get$target(); |
| 14514 if ($eq(elementOver, this._verticalElement) || $eq(elementOver, this._horizont
alElement)) { |
| 14515 this._currentScrollVertical = $eq(elementOver, this._verticalElement); |
| 14516 if (this._currentScrollVertical) { |
| 14517 this._currentScrollStartMouse = e.get$pageY(); |
| 14518 this._currentScrollStartOffset = this._scroller.getVerticalOffset(); |
| 14519 } |
| 14520 else { |
| 14521 this._currentScrollStartMouse = e.get$pageX(); |
| 14522 this._currentScrollStartOffset = this._scroller.getHorizontalOffset(); |
| 14523 } |
| 14524 this._refreshScrollRatio(); |
| 14525 this.set$_scrollBarDragInProgress(true); |
| 14526 this._scroller._momentum.abort(); |
| 14527 e.stopPropagation(); |
| 14528 } |
| 14529 } |
| 14530 Scrollbar.prototype.get$_onStart = function() { |
| 14531 return this._onStart.bind(this); |
| 14532 } |
| 14533 Scrollbar.prototype._refreshScrollRatio = function() { |
| 14534 var contentSize = this._scroller._getAdjustedContentSize(); |
| 14535 if (this._currentScrollVertical) { |
| 14536 this._refreshScrollRatioHelper(this._scroller._scrollSize.height, contentSiz
e.height); |
| 14537 } |
| 14538 else { |
| 14539 this._refreshScrollRatioHelper(this._scroller._scrollSize.width, contentSize
.width); |
| 14540 } |
| 14541 } |
| 14542 Scrollbar.prototype._refreshScrollRatioHelper = function(frameSize, contentSize)
{ |
| 14543 var frameTravelDistance = frameSize - this._defaultScrollSize(frameSize, conte
ntSize) - (20); |
| 14544 if (frameTravelDistance < (0.001)) { |
| 14545 this._currentScrollRatio = (0); |
| 14546 } |
| 14547 else { |
| 14548 this._currentScrollRatio = (contentSize - frameSize) / frameTravelDistance; |
| 14549 } |
| 14550 } |
| 14551 Scrollbar.prototype._onMove = function(e) { |
| 14552 if (!this.get$_scrollBarDragInProgress()) { |
| 14553 return; |
| 14554 } |
| 14555 this._refreshScrollRatio(); |
| 14556 var coordinate = this._currentScrollVertical ? e.get$pageY() : e.get$pageX(); |
| 14557 var delta = (coordinate - this._currentScrollStartMouse) * this._currentScroll
Ratio; |
| 14558 if (delta != (0)) { |
| 14559 var x; |
| 14560 var y; |
| 14561 this._currentScrollStartOffset = this._currentScrollStartOffset - delta; |
| 14562 if (this._currentScrollVertical) { |
| 14563 x = this._scroller.getHorizontalOffset(); |
| 14564 y = this._currentScrollStartOffset.toInt(); |
| 14565 } |
| 14566 else { |
| 14567 x = this._currentScrollStartOffset.toInt(); |
| 14568 y = this._scroller.getVerticalOffset(); |
| 14569 } |
| 14570 this._scroller.setPosition(x, y); |
| 14571 } |
| 14572 this._currentScrollStartMouse = coordinate; |
| 14573 } |
| 14574 Scrollbar.prototype.get$_onMove = function() { |
| 14575 return this._onMove.bind(this); |
| 14576 } |
| 14577 Scrollbar.prototype._onEnd = function(e) { |
| 14578 this.set$_scrollBarDragInProgress(false); |
| 14579 this._scroller.get$onScrollerDragEnd().dispatch(EventWrappingImplementation.Ev
entWrappingImplementation$factory("scroller:drag_end", true, true)); |
| 14580 } |
| 14581 Scrollbar.prototype.get$_onEnd = function() { |
| 14582 return this._onEnd.bind(this); |
| 14583 } |
| 14584 Scrollbar.prototype._onScrollerEnd = function(e) { |
| 14585 this._cancelTimeout(); |
| 14586 this._timerId = html_get$window().setTimeout(to$call$0(this._boundHideFn), (30
0)); |
| 14587 this._scrollInProgress = false; |
| 14588 } |
| 14589 Scrollbar.prototype.get$_onScrollerEnd = function() { |
| 14590 return this._onScrollerEnd.bind(this); |
| 14591 } |
| 14592 Scrollbar.prototype.onScrollerMoved = function(scrollX, scrollY, decelerating) { |
| 14593 if ($eq(this._scrollInProgress, false)) { |
| 14594 this._onScrollerStart(null); |
| 14595 this._onScrollerEnd(null); |
| 14596 } |
| 14597 this.updateScrollbars(scrollX, scrollY); |
| 14598 } |
| 14599 Scrollbar.prototype.refresh = function() { |
| 14600 var $this = this; // closure support |
| 14601 if ($eq(this._scrollInProgress, false) && $eq(this._hovering, false)) { |
| 14602 return; |
| 14603 } |
| 14604 this._scroller._resize((function () { |
| 14605 $this.updateScrollbars($this._scroller.getHorizontalOffset(), $this._scrolle
r.getVerticalOffset()); |
| 14606 }) |
| 14607 ); |
| 14608 } |
| 14609 Scrollbar.prototype.updateScrollbars = function(scrollX, scrollY) { |
| 14610 var contentSize = this._scroller._getAdjustedContentSize(); |
| 14611 if (this._scroller._shouldScrollHorizontally()) { |
| 14612 var scrollPercentX = this._scroller.getHorizontalScrollPercent(scrollX); |
| 14613 this._updateScrollbar(this._horizontalElement, scrollX, scrollPercentX, this
._scroller._scrollSize.width, contentSize.width, "right", "width"); |
| 14614 } |
| 14615 if (this._scroller._shouldScrollVertically()) { |
| 14616 var scrollPercentY = this._scroller.getVerticalScrollPercent(scrollY); |
| 14617 this._updateScrollbar(this._verticalElement, scrollY, scrollPercentY, this._
scroller._scrollSize.height, contentSize.height, "bottom", "height"); |
| 14618 } |
| 14619 } |
| 14620 Scrollbar.prototype._onScrollerStart = function(e) { |
| 14621 this._scrollInProgress = true; |
| 14622 this._cancelTimeout(); |
| 14623 this._showScrollbars(true); |
| 14624 } |
| 14625 Scrollbar.prototype.get$_onScrollerStart = function() { |
| 14626 return this._onScrollerStart.bind(this); |
| 14627 } |
| 14628 Scrollbar.prototype._cancelTimeout = function() { |
| 14629 if (this._timerId != null) { |
| 14630 html_get$window().clearTimeout(this._timerId); |
| 14631 this._timerId = null; |
| 14632 } |
| 14633 } |
| 14634 Scrollbar.prototype._showScrollbars = function(show) { |
| 14635 if ($eq(this._hovering, true) && this._displayOnHover) { |
| 14636 show = true; |
| 14637 } |
| 14638 this._toggleOpacity(this._verticalElement, show); |
| 14639 this._toggleOpacity(this._horizontalElement, show); |
| 14640 } |
| 14641 Scrollbar.prototype._toggleOpacity = function(element, show) { |
| 14642 if (show) { |
| 14643 element.get$style().removeProperty("opacity"); |
| 14644 } |
| 14645 else { |
| 14646 element.get$style().set$opacity("0"); |
| 14647 } |
| 14648 } |
| 14649 Scrollbar.prototype._defaultScrollSize = function(frameSize, contentSize) { |
| 14650 return GoogleMath.clamp((frameSize - (20)) * frameSize / contentSize, (30), fr
ameSize - (20)); |
| 14651 } |
| 14652 Scrollbar.prototype._updateScrollbar = function(element, offset, scrollPercent,
frameSize, contentSize, cssPos, cssSize) { |
| 14653 if (!this._cachedSize.containsKey(cssSize)) { |
| 14654 if (offset == null || contentSize < frameSize) { |
| 14655 return; |
| 14656 } |
| 14657 this._frame.get$nodes().add$1(element); |
| 14658 } |
| 14659 var stretchPercent; |
| 14660 if (scrollPercent > (1)) { |
| 14661 stretchPercent = scrollPercent - (1); |
| 14662 } |
| 14663 else { |
| 14664 stretchPercent = scrollPercent < (0) ? -scrollPercent : (0); |
| 14665 } |
| 14666 var scrollPx = stretchPercent * (contentSize - frameSize); |
| 14667 var maxSize = this._defaultScrollSize(frameSize, contentSize); |
| 14668 var size = Math.max((8), maxSize - scrollPx); |
| 14669 var maxOffset = frameSize - size - (20); |
| 14670 var pos = GoogleMath.clamp(scrollPercent * maxOffset, (0), maxOffset) + (10); |
| 14671 pos = pos.round(); |
| 14672 size = size.round(); |
| 14673 var style = element.get$style(); |
| 14674 style.setProperty$3(cssPos, ("" + pos + "px"), ""); |
| 14675 if ($ne(this._cachedSize.$index(cssSize), size)) { |
| 14676 this._cachedSize.$setindex(cssSize, size); |
| 14677 style.setProperty$3(cssSize, ("" + size + "px"), ""); |
| 14678 } |
| 14679 if (element.get$parent() == null) { |
| 14680 this._frame.get$nodes().add$1(element); |
| 14681 } |
| 14682 } |
| 14683 Scrollbar.prototype.onScrollerMoved$3 = Scrollbar.prototype.onScrollerMoved; |
| 14684 // ********** Code for ScrollWatcher ************** |
| 14685 function ScrollWatcher(scroller) { |
| 14686 this._scroller = scroller; |
| 14687 this._listeners = new Array(); |
| 14688 } |
| 14689 ScrollWatcher.prototype.addListener = function(listener) { |
| 14690 this._listeners.add$1(listener); |
| 14691 } |
| 14692 ScrollWatcher.prototype._dispatchScroll = function(scrollX, scrollY, deceleratin
g) { |
| 14693 var $$list = this._listeners; |
| 14694 for (var $$i = 0;$$i < $$list.get$length(); $$i++) { |
| 14695 var listener = $$list.$index($$i); |
| 14696 listener.onScrollerMoved$3(scrollX, scrollY, decelerating); |
| 14697 } |
| 14698 } |
| 14699 ScrollWatcher.prototype.initialize = function() { |
| 14700 var $this = this; // closure support |
| 14701 this._scrollerEl = this._scroller.getElement(); |
| 14702 this._scroller.get$onContentMoved().add((function (e) { |
| 14703 $this._onContentMoved(e); |
| 14704 }) |
| 14705 , false); |
| 14706 } |
| 14707 ScrollWatcher.prototype._onContentMoved = function(e) { |
| 14708 var scrollX = this._scroller.getHorizontalOffset(); |
| 14709 var scrollY = this._scroller.getVerticalOffset(); |
| 14710 this._dispatchScroll(scrollX, scrollY, false); |
| 14711 } |
| 14712 // ********** Code for TimeUtil ************** |
| 14713 function TimeUtil() {} |
| 14714 TimeUtil.now = function() { |
| 14715 return new DateImplementation.now$ctor().value; |
| 14716 } |
| 14717 // ********** Code for MockTouch ************** |
| 14718 function MockTouch(wrapped) { |
| 14719 this.wrapped = wrapped; |
| 14720 } |
| 14721 MockTouch.prototype.get$clientX = function() { |
| 14722 return this.wrapped.get$clientX(); |
| 14723 } |
| 14724 MockTouch.prototype.get$clientY = function() { |
| 14725 return this.wrapped.get$clientY(); |
| 14726 } |
| 14727 MockTouch.prototype.get$pageX = function() { |
| 14728 return this.wrapped.get$pageX(); |
| 14729 } |
| 14730 MockTouch.prototype.get$pageY = function() { |
| 14731 return this.wrapped.get$pageY(); |
| 14732 } |
| 14733 MockTouch.prototype.get$target = function() { |
| 14734 return this.wrapped.get$target(); |
| 14735 } |
| 14736 // ********** Code for MockTouchEvent ************** |
| 14737 function MockTouchEvent(wrapped, touches, targetTouches, changedTouches) { |
| 14738 this.targetTouches = targetTouches; |
| 14739 this.touches = touches; |
| 14740 this.changedTouches = changedTouches; |
| 14741 this.wrapped = wrapped; |
| 14742 } |
| 14743 MockTouchEvent.prototype.get$touches = function() { return this.touches; }; |
| 14744 MockTouchEvent.prototype.get$changedTouches = function() { return this.changedTo
uches; }; |
| 14745 MockTouchEvent.prototype.get$target = function() { |
| 14746 return this.wrapped.get$target(); |
| 14747 } |
| 14748 MockTouchEvent.prototype.get$timeStamp = function() { |
| 14749 return this.wrapped.get$timeStamp(); |
| 14750 } |
| 14751 MockTouchEvent.prototype.get$type = function() { |
| 14752 return this.wrapped.get$type(); |
| 14753 } |
| 14754 MockTouchEvent.prototype.preventDefault = function() { |
| 14755 this.wrapped.preventDefault(); |
| 14756 } |
| 14757 MockTouchEvent.prototype.stopPropagation = function() { |
| 14758 this.wrapped.stopPropagation(); |
| 14759 } |
| 14760 MockTouchEvent.prototype.get$keyCode = function() { |
| 14761 return this.wrapped.get$keyCode(); |
| 14762 } |
| 14763 MockTouchEvent.prototype.get$pageX = function() { |
| 14764 return this.wrapped.get$pageX(); |
| 14765 } |
| 14766 MockTouchEvent.prototype.get$pageY = function() { |
| 14767 return this.wrapped.get$pageY(); |
| 14768 } |
| 14769 MockTouchEvent.prototype.get$view = function() { |
| 14770 return this.wrapped.get$view(); |
| 14771 } |
| 14772 MockTouchEvent.prototype.preventDefault$0 = MockTouchEvent.prototype.preventDefa
ult; |
| 14773 MockTouchEvent.prototype.stopPropagation$0 = MockTouchEvent.prototype.stopPropag
ation; |
| 14774 MockTouchEvent.prototype.timeStamp$0 = function() { |
| 14775 return this.get$timeStamp().call$0(); |
| 14776 }; |
| 14777 // ********** Code for top level ************** |
| 14778 function joinFutures(futures, callback) { |
| 14779 var count = (0); |
| 14780 var len = futures.get$length(); |
| 14781 function helper(value) { |
| 14782 count++; |
| 14783 if (count == len) { |
| 14784 callback.call$0(); |
| 14785 } |
| 14786 } |
| 14787 for (var $$i = 0;$$i < futures.get$length(); $$i++) { |
| 14788 var p = futures.$index($$i); |
| 14789 p.then(helper); |
| 14790 } |
| 14791 } |
| 14792 function mouseToTouchCallback(callback) { |
| 14793 return (function (e) { |
| 14794 var touches = []; |
| 14795 var targetTouches = []; |
| 14796 var changedTouches = []; |
| 14797 var mockTouch = new MockTouch(e); |
| 14798 var mockTouchList = [mockTouch]; |
| 14799 if (e.get$type() == "mouseup") { |
| 14800 changedTouches = mockTouchList; |
| 14801 } |
| 14802 else { |
| 14803 touches = mockTouchList; |
| 14804 targetTouches = mockTouchList; |
| 14805 } |
| 14806 callback.call$1(new MockTouchEvent(e, touches, targetTouches, changedTouches
)); |
| 14807 e.preventDefault(); |
| 14808 }) |
| 14809 ; |
| 14810 } |
| 14811 function _addEventListeners(node, onStart, onMove, onEnd, onCancel, capture) { |
| 14812 var removeListeners; |
| 14813 function onEndWrapper(e) { |
| 14814 removeListeners.call$0(); |
| 14815 return onEnd.call$1(e); |
| 14816 } |
| 14817 function onLeaveWrapper(e) { |
| 14818 removeListeners.call$0(); |
| 14819 return onEnd.call$1(e); |
| 14820 } |
| 14821 function onCancelWrapper(e) { |
| 14822 removeListeners.call$0(); |
| 14823 return onCancel.call$1(e); |
| 14824 } |
| 14825 if (Device.get$supportsTouch()) { |
| 14826 removeListeners = (function () { |
| 14827 html_get$document().get$on().get$touchMove().remove(onMove, capture); |
| 14828 html_get$document().get$on().get$touchEnd().remove(onEndWrapper, capture); |
| 14829 html_get$document().get$on().get$touchLeave().remove(onLeaveWrapper, captu
re); |
| 14830 html_get$document().get$on().get$touchCancel().remove(onCancelWrapper, cap
ture); |
| 14831 }) |
| 14832 ; |
| 14833 node.get$on().get$touchStart().add$2((function (e) { |
| 14834 html_get$document().get$on().get$touchMove().add(onMove, capture); |
| 14835 html_get$document().get$on().get$touchEnd().add(onEndWrapper, capture); |
| 14836 html_get$document().get$on().get$touchLeave().add(onLeaveWrapper, capture)
; |
| 14837 html_get$document().get$on().get$touchCancel().add(onCancelWrapper, captur
e); |
| 14838 return onStart.call$1(e); |
| 14839 }) |
| 14840 , capture); |
| 14841 } |
| 14842 else { |
| 14843 onStart = mouseToTouchCallback(onStart); |
| 14844 onMove = mouseToTouchCallback(onMove); |
| 14845 onEnd = mouseToTouchCallback(onEnd); |
| 14846 removeListeners = (function () { |
| 14847 html_get$document().get$on().get$mouseMove().remove(onMove, capture); |
| 14848 html_get$document().get$on().get$mouseUp().remove(onEndWrapper, capture); |
| 14849 html_get$document().get$on().get$touchCancel().remove(onCancelWrapper, cap
ture); |
| 14850 }) |
| 14851 ; |
| 14852 node.get$on().get$mouseDown().add$2((function (e) { |
| 14853 html_get$document().get$on().get$mouseMove().add(onMove, capture); |
| 14854 html_get$document().get$on().get$mouseUp().add(onEndWrapper, capture); |
| 14855 html_get$document().get$on().get$touchCancel().add(onCancelWrapper, captur
e); |
| 14856 return onStart.call$1(e); |
| 14857 }) |
| 14858 , capture); |
| 14859 } |
| 14860 } |
| 14861 // ********** Library layout.dart ************** |
| 14862 // ********** Code for ViewLayout ************** |
| 14863 function ViewLayout(view) { |
| 14864 this.view = view; |
| 14865 } |
| 14866 ViewLayout.ViewLayout$fromView$factory = function(view) { |
| 14867 if (ViewLayout.hasCustomLayout(view)) { |
| 14868 return new GridLayout(view); |
| 14869 } |
| 14870 else { |
| 14871 return new ViewLayout(view); |
| 14872 } |
| 14873 } |
| 14874 ViewLayout.prototype.get$layoutParams = function() { return this.layoutParams; }
; |
| 14875 ViewLayout.prototype.set$layoutParams = function(value) { return this.layoutPara
ms = value; }; |
| 14876 ViewLayout.prototype.get$view = function() { return this.view; }; |
| 14877 ViewLayout.hasCustomLayout = function(view) { |
| 14878 return $eq(view.customStyle.$index("display"), "-dart-grid"); |
| 14879 } |
| 14880 ViewLayout.prototype.get$_style = function() { |
| 14881 return this.layoutParams.style.get$value(); |
| 14882 } |
| 14883 ViewLayout.prototype.cacheExistingBrowserLayout = function() { |
| 14884 this._cachedViewRect = this.view.get$node().get$rect(); |
| 14885 } |
| 14886 ViewLayout.prototype.get$currentWidth = function() { |
| 14887 return this._cachedViewRect.get$value().get$offset().get$width(); |
| 14888 } |
| 14889 ViewLayout.prototype.get$currentHeight = function() { |
| 14890 return this._cachedViewRect.get$value().get$offset().get$height(); |
| 14891 } |
| 14892 ViewLayout.prototype.get$borderLeftWidth = function() { |
| 14893 return ViewLayout._toPixels(this.get$_style().get$borderLeftWidth()); |
| 14894 } |
| 14895 ViewLayout.prototype.get$borderTopWidth = function() { |
| 14896 return ViewLayout._toPixels(this.get$_style().get$borderTopWidth()); |
| 14897 } |
| 14898 ViewLayout.prototype.get$borderRightWidth = function() { |
| 14899 return ViewLayout._toPixels(this.get$_style().get$borderRightWidth()); |
| 14900 } |
| 14901 ViewLayout.prototype.get$borderBottomWidth = function() { |
| 14902 return ViewLayout._toPixels(this.get$_style().get$borderBottomWidth()); |
| 14903 } |
| 14904 ViewLayout.prototype.get$borderWidth = function() { |
| 14905 return this.get$borderLeftWidth() + this.get$borderRightWidth(); |
| 14906 } |
| 14907 ViewLayout.prototype.get$borderHeight = function() { |
| 14908 return this.get$borderTopWidth() + this.get$borderBottomWidth(); |
| 14909 } |
| 14910 ViewLayout.prototype.measureLayout = function(size, changed) { |
| 14911 |
| 14912 } |
| 14913 ViewLayout.prototype.setBounds = function(left, top, width, height) { |
| 14914 this._measuredLeft = left; |
| 14915 this._measuredTop = top; |
| 14916 this._measuredWidth = width - this.get$borderWidth(); |
| 14917 this._measuredHeight = height - this.get$borderHeight(); |
| 14918 var completer = new CompleterImpl(); |
| 14919 completer.complete$1(new Size(this._measuredWidth, this._measuredHeight)); |
| 14920 this.measureLayout(completer.get$future(), null); |
| 14921 } |
| 14922 ViewLayout.prototype.applyLayout = function() { |
| 14923 if (this._measuredLeft != null) { |
| 14924 var style = this.view.get$node().get$style(); |
| 14925 style.set$position("absolute"); |
| 14926 style.set$left(("" + this._measuredLeft + "px")); |
| 14927 style.set$top(("" + this._measuredTop + "px")); |
| 14928 style.set$width(("" + this._measuredWidth + "px")); |
| 14929 style.set$height(("" + this._measuredHeight + "px")); |
| 14930 style.set$zIndex(("" + this.layoutParams.get$layer())); |
| 14931 this._measuredLeft = null; |
| 14932 this._measuredTop = null; |
| 14933 this._measuredWidth = null; |
| 14934 this._measuredHeight = null; |
| 14935 if (!ViewLayout.hasCustomLayout(this.view)) { |
| 14936 var $$list = this.view.get$childViews(); |
| 14937 for (var $$i = $$list.iterator$0(); $$i.hasNext$0(); ) { |
| 14938 var child = $$i.next$0(); |
| 14939 child.doLayout$0(); |
| 14940 } |
| 14941 } |
| 14942 } |
| 14943 } |
| 14944 ViewLayout.prototype.measureContent = function(parent, dimension, mode) { |
| 14945 switch (dimension) { |
| 14946 case const$0021: |
| 14947 |
| 14948 return this.measureWidth(parent, mode); |
| 14949 |
| 14950 case const$0023: |
| 14951 |
| 14952 return this.measureHeight(parent, mode); |
| 14953 |
| 14954 } |
| 14955 } |
| 14956 ViewLayout.prototype.measureWidth = function(parent, mode) { |
| 14957 var style = this.layoutParams.style.get$value(); |
| 14958 switch (mode) { |
| 14959 case const$0026: |
| 14960 |
| 14961 return ViewLayout._styleToPixels(style.get$minWidth(), this.get$currentWid
th(), parent.get$currentWidth()); |
| 14962 |
| 14963 case const$0027: |
| 14964 |
| 14965 return ViewLayout._styleToPixels(style.get$maxWidth(), this.get$currentWid
th(), parent.get$currentWidth()); |
| 14966 |
| 14967 } |
| 14968 } |
| 14969 ViewLayout.prototype.measureHeight = function(parent, mode) { |
| 14970 var style = this.layoutParams.style.get$value(); |
| 14971 switch (mode) { |
| 14972 case const$0026: |
| 14973 |
| 14974 return ViewLayout._styleToPixels(style.get$minHeight(), this.get$currentHe
ight(), parent.get$currentHeight()); |
| 14975 |
| 14976 case const$0027: |
| 14977 |
| 14978 return ViewLayout._styleToPixels(style.get$maxHeight(), this.get$currentHe
ight(), parent.get$currentHeight()); |
| 14979 |
| 14980 } |
| 14981 } |
| 14982 ViewLayout._toPixels = function(style) { |
| 14983 if (style.endsWith("px")) { |
| 14984 return Math.parseInt(style.substring((0), style.length - (2))); |
| 14985 } |
| 14986 else { |
| 14987 $throw(new UnsupportedOperationException(("Unknown min/max content size form
at: \"" + style + "\""))); |
| 14988 } |
| 14989 } |
| 14990 ViewLayout._styleToPixels = function(style, size, parentSize) { |
| 14991 if (style == "none") { |
| 14992 return size; |
| 14993 } |
| 14994 if (style.endsWith("%")) { |
| 14995 var percent = Math.parseDouble(style.substring((0), style.length - (1))); |
| 14996 return ((percent / (100)) * parentSize).toInt(); |
| 14997 } |
| 14998 return ViewLayout._toPixels(style); |
| 14999 } |
| 15000 ViewLayout.prototype.applyLayout$0 = ViewLayout.prototype.applyLayout; |
| 15001 ViewLayout.prototype.cacheExistingBrowserLayout$0 = ViewLayout.prototype.cacheEx
istingBrowserLayout; |
| 15002 ViewLayout.prototype.measureContent$3 = ViewLayout.prototype.measureContent; |
| 15003 ViewLayout.prototype.setBounds$4 = ViewLayout.prototype.setBounds; |
| 15004 // ********** Code for GridLayout ************** |
| 15005 $inherits(GridLayout, ViewLayout); |
| 15006 function GridLayout(view) { |
| 15007 this.rows = _GridTrackParser.parse(view.customStyle.$index("grid-rows")); |
| 15008 this.rowSizing = _GridTrackParser.parseTrackSizing(view.customStyle.$index("gr
id-row-sizing")); |
| 15009 this.template = _GridTemplateParser.parse(view.customStyle.$index("grid-templa
te")); |
| 15010 this.columnSizing = _GridTrackParser.parseTrackSizing(view.customStyle.$index(
"grid-column-sizing")); |
| 15011 this.columns = _GridTrackParser.parse(view.customStyle.$index("grid-columns"))
; |
| 15012 ViewLayout.call(this, view); |
| 15013 this._rowTracks = this.rows != null ? this.rows.tracks : new Array(); |
| 15014 this._columnTracks = this.columns != null ? this.columns.tracks : new Array(); |
| 15015 } |
| 15016 GridLayout.prototype.get$currentWidth = function() { |
| 15017 return this._gridWidth; |
| 15018 } |
| 15019 GridLayout.prototype.get$currentHeight = function() { |
| 15020 return this._gridHeight; |
| 15021 } |
| 15022 GridLayout.prototype.cacheExistingBrowserLayout = function() { |
| 15023 |
| 15024 } |
| 15025 GridLayout.prototype.measureLayout = function(size, changed) { |
| 15026 var $this = this; // closure support |
| 15027 this._ensureAllTracks(); |
| 15028 html_get$window().requestLayoutFrame((function () { |
| 15029 $this._gridWidth = size.get$value().get$width(); |
| 15030 $this._gridHeight = size.get$value().get$height(); |
| 15031 if ($this._rowTracks.get$length() > (0) && $this._columnTracks.get$length()
> (0)) { |
| 15032 $this._measureTracks(); |
| 15033 $this._setBoundsOfChildren(); |
| 15034 if (changed != null) { |
| 15035 changed.complete(true); |
| 15036 } |
| 15037 } |
| 15038 }) |
| 15039 ); |
| 15040 } |
| 15041 GridLayout.prototype._measureTracks = function() { |
| 15042 try { |
| 15043 this._dimension = const$0021; |
| 15044 this._computeUsedBreadthOfTracks(this._columnTracks); |
| 15045 this._dimension = const$0023; |
| 15046 this._computeUsedBreadthOfTracks(this._rowTracks); |
| 15047 } finally { |
| 15048 this._dimension = null; |
| 15049 } |
| 15050 } |
| 15051 GridLayout.prototype._getRemainingSpace = function(tracks) { |
| 15052 var remaining = this._getGridContentSize(); |
| 15053 remaining -= CollectionUtils.sum(tracks, (function (t) { |
| 15054 return t.get$usedBreadth(); |
| 15055 }) |
| 15056 ); |
| 15057 return Math.max((0), remaining); |
| 15058 } |
| 15059 GridLayout.prototype._computeUsedBreadthOfTracks = function(tracks) { |
| 15060 var $this = this; // closure support |
| 15061 var items = CollectionUtils.map(this.view.get$childViews(), (function (view_)
{ |
| 15062 return view_.get$layout(); |
| 15063 }) |
| 15064 ); |
| 15065 CollectionUtils.sortBy(items, (function (item) { |
| 15066 return $this._getSpanCount(item); |
| 15067 }) |
| 15068 ); |
| 15069 for (var $$i = 0;$$i < tracks.get$length(); $$i++) { |
| 15070 var t = tracks.$index($$i); |
| 15071 t.set$usedBreadth(t.get$minSizing().resolveLength$1(this._getGridContentSize
())); |
| 15072 t.set$maxBreadth(t.get$maxSizing().resolveLength$1(this._getGridContentSize(
))); |
| 15073 t.set$updatedBreadth((0)); |
| 15074 } |
| 15075 var USED_BREADTH = const$0024; |
| 15076 var MAX_BREADTH = const$0025; |
| 15077 this._distributeSpaceBySpanCount(items, const$0026, USED_BREADTH); |
| 15078 this._distributeSpaceBySpanCount(items, const$0027, USED_BREADTH); |
| 15079 for (var $$i = 0;$$i < tracks.get$length(); $$i++) { |
| 15080 var t = tracks.$index($$i); |
| 15081 if (t.get$maxBreadth() < t.get$usedBreadth()) { |
| 15082 t.set$maxBreadth(t.get$usedBreadth()); |
| 15083 } |
| 15084 } |
| 15085 this._distributeSpaceBySpanCount(items, const$0026, MAX_BREADTH); |
| 15086 this._distributeSpaceBySpanCount(items, const$0027, MAX_BREADTH); |
| 15087 this._distributeSpaceToTracks(tracks, this._getRemainingSpace(tracks), USED_BR
EADTH, false); |
| 15088 for (var $$i = 0;$$i < tracks.get$length(); $$i++) { |
| 15089 var t = tracks.$index($$i); |
| 15090 t.set$usedBreadth(t.get$updatedBreadth()); |
| 15091 } |
| 15092 var tempBreadth = this._calcNormalizedFractionBreadth(tracks); |
| 15093 for (var $$i = 0;$$i < tracks.get$length(); $$i++) { |
| 15094 var t = tracks.$index($$i); |
| 15095 t.set$usedBreadth(Math.max(t.get$usedBreadth(), tempBreadth * t.get$maxSizin
g().get$fractionValue())); |
| 15096 } |
| 15097 this._computeTrackPositions(tracks); |
| 15098 } |
| 15099 GridLayout.prototype._computeTrackPositions = function(tracks) { |
| 15100 var position = (0); |
| 15101 for (var $$i = 0;$$i < tracks.get$length(); $$i++) { |
| 15102 var t = tracks.$index($$i); |
| 15103 t.set$start(position); |
| 15104 position = position + t.get$usedBreadth(); |
| 15105 } |
| 15106 var finalPosition = position; |
| 15107 for (var i = (0); |
| 15108 i < tracks.get$length(); i++) { |
| 15109 var startEdge = tracks.$index(i).get$start(); |
| 15110 var endEdge = null; |
| 15111 if (i < tracks.get$length() - (1)) { |
| 15112 endEdge = tracks.$index(i + (1)).get$start().round$0().toInt$0(); |
| 15113 tracks.$index(i + (1)).set$start(endEdge); |
| 15114 } |
| 15115 else { |
| 15116 endEdge = finalPosition.round().toInt(); |
| 15117 } |
| 15118 var breadth = endEdge - startEdge; |
| 15119 tracks.$index(i).set$usedBreadth(breadth); |
| 15120 } |
| 15121 } |
| 15122 GridLayout.prototype._calcNormalizedFractionBreadth = function(tracks) { |
| 15123 var fractionTracks = tracks.filter$1((function (t) { |
| 15124 return t.get$maxSizing().get$isFraction(); |
| 15125 }) |
| 15126 ); |
| 15127 for (var $$i = fractionTracks.iterator$0(); $$i.hasNext$0(); ) { |
| 15128 var t = $$i.next$0(); |
| 15129 t.set$tempBreadth(t.get$usedBreadth() / t.get$maxSizing().get$fractionValue(
)); |
| 15130 } |
| 15131 CollectionUtils.sortBy(fractionTracks, (function (t) { |
| 15132 return t.get$tempBreadth(); |
| 15133 }) |
| 15134 ); |
| 15135 var spaceNeededFromFractionTracks = this._getRemainingSpace(tracks); |
| 15136 var currentBandFractionBreadth = (0); |
| 15137 var accumulatedFractions = (0); |
| 15138 for (var $$i = fractionTracks.iterator$0(); $$i.hasNext$0(); ) { |
| 15139 var t = $$i.next$0(); |
| 15140 if ($ne(t.get$tempBreadth(), currentBandFractionBreadth)) { |
| 15141 if (t.get$tempBreadth() * accumulatedFractions > spaceNeededFromFractionTr
acks) { |
| 15142 break; |
| 15143 } |
| 15144 currentBandFractionBreadth = t.get$tempBreadth(); |
| 15145 } |
| 15146 accumulatedFractions = accumulatedFractions + t.get$maxSizing().get$fraction
Value(); |
| 15147 spaceNeededFromFractionTracks = spaceNeededFromFractionTracks + t.get$usedBr
eadth(); |
| 15148 } |
| 15149 return spaceNeededFromFractionTracks / accumulatedFractions; |
| 15150 } |
| 15151 GridLayout.prototype._distributeSpaceToTracks = function(tracks, freeSpace, brea
dth, ignoreMaxBreadth) { |
| 15152 var $0; |
| 15153 tracks = CollectionUtils.orderBy(tracks, (function (t) { |
| 15154 return t.get$maxBreadth() - breadth.getSize(t); |
| 15155 }) |
| 15156 ); |
| 15157 for (var i = (0); |
| 15158 i < tracks.get$length(); i++) { |
| 15159 var share = freeSpace / (tracks.get$length() - i); |
| 15160 share = Math.min(share, tracks.$index(i).get$maxBreadth()); |
| 15161 tracks.$index(i).set$tempBreadth(share); |
| 15162 freeSpace -= share; |
| 15163 } |
| 15164 if (freeSpace > (0) && ignoreMaxBreadth) { |
| 15165 for (var i = (0); |
| 15166 i < tracks.get$length(); i++) { |
| 15167 var share = freeSpace / (tracks.get$length() - i); |
| 15168 ($0 = tracks.$index(i)).set$tempBreadth($add($0.get$tempBreadth(), share))
; |
| 15169 freeSpace = freeSpace - share; |
| 15170 } |
| 15171 } |
| 15172 for (var $$i = 0;$$i < tracks.get$length(); $$i++) { |
| 15173 var t = tracks.$index($$i); |
| 15174 t.set$updatedBreadth(Math.max(t.get$updatedBreadth(), t.get$tempBreadth())); |
| 15175 } |
| 15176 } |
| 15177 GridLayout.prototype._distributeSpaceBySpanCount = function(items, sizeMode, bre
adth) { |
| 15178 var $this = this; // closure support |
| 15179 items = items.filter$1((function (item) { |
| 15180 return GridLayout._hasContentSizedTracks($this._getTracks(item), sizeMode, b
readth); |
| 15181 }) |
| 15182 ); |
| 15183 var tracks = []; |
| 15184 for (var i = (0); |
| 15185 i < items.get$length(); i++) { |
| 15186 var item = items.$index(i); |
| 15187 var itemTargetSize = item.measureContent$3(this, this._dimension, sizeMode); |
| 15188 var spannedTracks = this._getTracks(item); |
| 15189 this._distributeSpaceToTracks(spannedTracks, itemTargetSize, breadth, true); |
| 15190 tracks.addAll$1(spannedTracks); |
| 15191 var spanCountFinished = false; |
| 15192 if (i + (1) == items.get$length()) { |
| 15193 spanCountFinished = true; |
| 15194 } |
| 15195 else if (this._getSpanCount(item) != this._getSpanCount(items.$index(i + (1)
))) { |
| 15196 spanCountFinished = true; |
| 15197 } |
| 15198 if (spanCountFinished) { |
| 15199 for (var $$i = tracks.iterator$0(); $$i.hasNext$0(); ) { |
| 15200 var t = $$i.next$0(); |
| 15201 breadth.setSize(t, Math.max(breadth.getSize(t), t.get$updatedBreadth()))
; |
| 15202 } |
| 15203 tracks = []; |
| 15204 } |
| 15205 } |
| 15206 } |
| 15207 GridLayout._hasContentSizedTracks = function(tracks, sizeMode, breadth) { |
| 15208 for (var $$i = tracks.iterator$0(); $$i.hasNext$0(); ) { |
| 15209 var t = $$i.next$0(); |
| 15210 var fn = breadth.getSizingFunction(t); |
| 15211 if ($eq(sizeMode, const$0027) && fn.get$isMaxContentSized() || $eq(sizeMode,
const$0026) && fn.get$isContentSized()) { |
| 15212 return tracks.get$length() == (1) || !tracks.some((function (t_) { |
| 15213 return t_.get$isFractional(); |
| 15214 }) |
| 15215 ); |
| 15216 } |
| 15217 } |
| 15218 return false; |
| 15219 } |
| 15220 GridLayout.prototype._ensureTrack = function(tracks, sizing, start, span) { |
| 15221 start -= (1); |
| 15222 var length = start + span; |
| 15223 var first = Math.min(start, tracks.get$length()); |
| 15224 tracks.set$length(Math.max(tracks.get$length(), length)); |
| 15225 for (var i = first; |
| 15226 i < length; i++) { |
| 15227 if (tracks.$index(i) == null) { |
| 15228 tracks.$setindex(i, new GridTrack(sizing)); |
| 15229 } |
| 15230 } |
| 15231 } |
| 15232 GridLayout.prototype._ensureAllTracks = function() { |
| 15233 var items = CollectionUtils.map(this.view.get$childViews(), (function (view_)
{ |
| 15234 return view_.get$layout(); |
| 15235 }) |
| 15236 ); |
| 15237 for (var $$i = items.iterator$0(); $$i.hasNext$0(); ) { |
| 15238 var child = $$i.next$0(); |
| 15239 if (child.get$layoutParams() == null) { |
| 15240 var p = new GridLayoutParams(child.get$view(), this); |
| 15241 this._ensureTrack(this._rowTracks, this.rowSizing, p.get$row(), p.get$rowS
pan()); |
| 15242 this._ensureTrack(this._columnTracks, this.columnSizing, p.get$column(), p
.get$columnSpan()); |
| 15243 child.set$layoutParams(p); |
| 15244 } |
| 15245 child.cacheExistingBrowserLayout$0(); |
| 15246 } |
| 15247 } |
| 15248 GridLayout.prototype._setBoundsOfChildren = function() { |
| 15249 var items = CollectionUtils.map(this.view.get$childViews(), (function (view_)
{ |
| 15250 return view_.get$layout(); |
| 15251 }) |
| 15252 ); |
| 15253 for (var $$i = items.iterator$0(); $$i.hasNext$0(); ) { |
| 15254 var item = $$i.next$0(); |
| 15255 var childLayout = item.get$layoutParams(); |
| 15256 var xPos = this._getTrackLocationX(childLayout); |
| 15257 var yPos = this._getTrackLocationY(childLayout); |
| 15258 var left = xPos.get$start(), width = xPos.get$length(); |
| 15259 var top = yPos.get$start(), height = yPos.get$length(); |
| 15260 xPos = childLayout.columnAlign.align(xPos, item.get$currentWidth()); |
| 15261 yPos = childLayout.rowAlign.align(yPos, item.get$currentHeight()); |
| 15262 item.setBounds$4(xPos.get$start(), yPos.get$start(), xPos.get$length(), yPos
.get$length()); |
| 15263 } |
| 15264 } |
| 15265 GridLayout.prototype._getGridContentSize = function() { |
| 15266 switch (this._dimension) { |
| 15267 case const$0021: |
| 15268 |
| 15269 return this._gridWidth; |
| 15270 |
| 15271 case const$0023: |
| 15272 |
| 15273 return this._gridHeight; |
| 15274 |
| 15275 } |
| 15276 } |
| 15277 GridLayout.prototype._getTrackLocationX = function(childLayout) { |
| 15278 var start = childLayout.column - (1); |
| 15279 var end = start + childLayout.columnSpan - (1); |
| 15280 start = this._columnTracks.$index(start).get$start(); |
| 15281 end = this._columnTracks.$index(end).get$end(); |
| 15282 return new _GridLocation(start, end - start); |
| 15283 } |
| 15284 GridLayout.prototype._getTrackLocationY = function(childLayout) { |
| 15285 var start = childLayout.row - (1); |
| 15286 var end = start + childLayout.rowSpan - (1); |
| 15287 start = this._rowTracks.$index(start).get$start(); |
| 15288 end = this._rowTracks.$index(end).get$end(); |
| 15289 return new _GridLocation(start, end - start); |
| 15290 } |
| 15291 GridLayout.prototype._getTracks = function(item) { |
| 15292 var childLayout = item.layoutParams; |
| 15293 var start, span; |
| 15294 var tracks; |
| 15295 switch (this._dimension) { |
| 15296 case const$0021: |
| 15297 |
| 15298 start = childLayout.column - (1); |
| 15299 span = childLayout.columnSpan; |
| 15300 tracks = this._columnTracks; |
| 15301 break; |
| 15302 |
| 15303 case const$0023: |
| 15304 |
| 15305 start = childLayout.row - (1); |
| 15306 span = childLayout.rowSpan; |
| 15307 tracks = this._rowTracks; |
| 15308 |
| 15309 } |
| 15310 var result = new Array(span); |
| 15311 for (var i = (0); |
| 15312 i < span; i++) { |
| 15313 result.$setindex(i, tracks.$index(start + i)); |
| 15314 } |
| 15315 return result; |
| 15316 } |
| 15317 GridLayout.prototype._getSpanCount = function(item) { |
| 15318 var childLayout = item.layoutParams; |
| 15319 return ($eq(this._dimension, const$0021) ? childLayout.columnSpan : childLayou
t.rowSpan); |
| 15320 } |
| 15321 GridLayout.prototype.cacheExistingBrowserLayout$0 = GridLayout.prototype.cacheEx
istingBrowserLayout; |
| 15322 // ********** Code for LayoutParams ************** |
| 15323 function LayoutParams(node) { |
| 15324 this.style = node.get$computedStyle(); |
| 15325 } |
| 15326 LayoutParams.prototype.get$style = function() { return this.style; }; |
| 15327 LayoutParams.prototype.set$style = function(value) { return this.style = value;
}; |
| 15328 LayoutParams.prototype.get$layer = function() { |
| 15329 return (0); |
| 15330 } |
| 15331 // ********** Code for GridLayoutParams ************** |
| 15332 $inherits(GridLayoutParams, LayoutParams); |
| 15333 function GridLayoutParams(view, layout) { |
| 15334 LayoutParams.call(this, view.get$node()); |
| 15335 this.rowAlign = new GridItemAlignment.fromString$ctor(view.customStyle.$index(
"grid-row-align")); |
| 15336 this.columnAlign = new GridItemAlignment.fromString$ctor(view.customStyle.$ind
ex("grid-column-align")); |
| 15337 this.layer = StringUtils.parseInt(view.customStyle.$index("grid-layer"), (0)); |
| 15338 this.rowSpan = StringUtils.parseInt(view.customStyle.$index("grid-row-span")); |
| 15339 this.columnSpan = StringUtils.parseInt(view.customStyle.$index("grid-column-sp
an")); |
| 15340 var line = _GridItemParser.parse(view.customStyle.$index("grid-row"), layout.r
ows); |
| 15341 if (line != null) { |
| 15342 this.row = line.get$start(); |
| 15343 if (line.get$length() != null) { |
| 15344 if (this.rowSpan != null) { |
| 15345 $throw(new UnsupportedOperationException("grid-row-span cannot be with g
rid-row that defines an end")); |
| 15346 } |
| 15347 this.rowSpan = line.get$length(); |
| 15348 } |
| 15349 } |
| 15350 line = _GridItemParser.parse(view.customStyle.$index("grid-column"), layout.co
lumns); |
| 15351 if (line != null) { |
| 15352 this.column = line.get$start(); |
| 15353 if (line.get$length() != null) { |
| 15354 if (this.columnSpan != null) { |
| 15355 $throw(new UnsupportedOperationException("grid-column-span cannot be wit
h grid-column that defines an end")); |
| 15356 } |
| 15357 this.columnSpan = line.get$length(); |
| 15358 } |
| 15359 } |
| 15360 var cell = _GridTemplateParser.parseCell(view.customStyle.$index("grid-cell"))
; |
| 15361 if (cell != null && cell != "none") { |
| 15362 if (this.row != null || this.column != null || this.rowSpan != null || this.
columnSpan != null) { |
| 15363 $throw(new UnsupportedOperationException("grid-cell cannot be used with gr
id-row and grid-column")); |
| 15364 } |
| 15365 if (layout.template == null) { |
| 15366 $throw(new UnsupportedOperationException("grid-cell requires that grid-tem
plate is set on the parent")); |
| 15367 } |
| 15368 var rect = layout.template.lookupCell(cell); |
| 15369 this.row = rect.get$row(); |
| 15370 this.column = rect.get$column(); |
| 15371 this.rowSpan = rect.get$rowSpan(); |
| 15372 this.columnSpan = rect.get$columnSpan(); |
| 15373 } |
| 15374 else { |
| 15375 if (this.rowSpan == null) this.rowSpan = (1); |
| 15376 if (this.columnSpan == null) this.columnSpan = (1); |
| 15377 if (this.row == null && this.column == null) { |
| 15378 $throw(new UnsupportedOperationException("grid-flow is not implemented so
at least one row or one column must be defined")); |
| 15379 } |
| 15380 if (this.row == null) this.row = (1); |
| 15381 if (this.column == null) this.column = (1); |
| 15382 } |
| 15383 } |
| 15384 GridLayoutParams.prototype.get$row = function() { return this.row; }; |
| 15385 GridLayoutParams.prototype.set$row = function(value) { return this.row = value;
}; |
| 15386 GridLayoutParams.prototype.get$column = function() { return this.column; }; |
| 15387 GridLayoutParams.prototype.set$column = function(value) { return this.column = v
alue; }; |
| 15388 GridLayoutParams.prototype.get$rowSpan = function() { return this.rowSpan; }; |
| 15389 GridLayoutParams.prototype.set$rowSpan = function(value) { return this.rowSpan =
value; }; |
| 15390 GridLayoutParams.prototype.get$columnSpan = function() { return this.columnSpan;
}; |
| 15391 GridLayoutParams.prototype.set$columnSpan = function(value) { return this.column
Span = value; }; |
| 15392 GridLayoutParams.prototype.get$layer = function() { return this.layer; }; |
| 15393 GridLayoutParams.prototype.set$layer = function(value) { return this.layer = val
ue; }; |
| 15394 // ********** Code for _Parser ************** |
| 15395 function _Parser(_src) { |
| 15396 this._src = _src; |
| 15397 this._offset = (0); |
| 15398 } |
| 15399 _Parser._isWhitespace = function(c) { |
| 15400 switch (c) { |
| 15401 case (32): |
| 15402 case (9): |
| 15403 case (10): |
| 15404 case (13): |
| 15405 |
| 15406 return true; |
| 15407 |
| 15408 } |
| 15409 return false; |
| 15410 } |
| 15411 _Parser._isDigit = function(c) { |
| 15412 return ((48) <= c) && (c <= (57)); |
| 15413 } |
| 15414 _Parser._isLetter = function(c) { |
| 15415 return ((97) <= c) && (c <= (122)) || ((65) <= c) && (c <= (90)); |
| 15416 } |
| 15417 _Parser.prototype._error = function(msg) { |
| 15418 $throw(new SyntaxErrorException(msg, this._src, this._offset)); |
| 15419 } |
| 15420 _Parser.prototype.get$length = function() { |
| 15421 return this._src.length; |
| 15422 } |
| 15423 _Parser.prototype.get$remaining = function() { |
| 15424 return this._src.length - this._offset; |
| 15425 } |
| 15426 _Parser.prototype._peekChar = function() { |
| 15427 return this._src.charCodeAt(this._offset); |
| 15428 } |
| 15429 _Parser.prototype.get$endOfInput = function() { |
| 15430 return this._offset >= this._src.length; |
| 15431 } |
| 15432 _Parser.prototype._maybeEatWhitespace = function() { |
| 15433 var start = this._offset; |
| 15434 while (this._offset < this.get$length() && _Parser._isWhitespace(this._peekCha
r())) { |
| 15435 this._offset++; |
| 15436 } |
| 15437 return this._offset != start; |
| 15438 } |
| 15439 _Parser.prototype._maybeEatMultiLineComment = function() { |
| 15440 if (this._maybeEat("/*", false)) { |
| 15441 while (!this._maybeEat("*/", false)) { |
| 15442 if (this._offset >= this.get$length()) { |
| 15443 this._error("expected */"); |
| 15444 } |
| 15445 this._offset++; |
| 15446 } |
| 15447 return true; |
| 15448 } |
| 15449 return false; |
| 15450 } |
| 15451 _Parser.prototype._maybeEatWhitespaceOrComments = function() { |
| 15452 while (this._maybeEatWhitespace() || this._maybeEatMultiLineComment()) { |
| 15453 } |
| 15454 } |
| 15455 _Parser.prototype._eatEnd = function() { |
| 15456 this._maybeEatWhitespaceOrComments(); |
| 15457 if (!this.get$endOfInput()) { |
| 15458 this._error("expected end of input"); |
| 15459 } |
| 15460 } |
| 15461 _Parser.prototype._maybeEat = function(value, eatWhitespace) { |
| 15462 if (eatWhitespace) { |
| 15463 this._maybeEatWhitespaceOrComments(); |
| 15464 } |
| 15465 if (this.get$remaining() < value.length) { |
| 15466 return false; |
| 15467 } |
| 15468 for (var i = (0); |
| 15469 i < value.length; i++) { |
| 15470 if (this._src[this._offset + i] != value[i]) { |
| 15471 return false; |
| 15472 } |
| 15473 } |
| 15474 if (_Parser._isLetter(value.charCodeAt(value.length - (1)))) { |
| 15475 var i = this._offset + value.length; |
| 15476 if (i < this._src.length && _Parser._isLetter(this._src.charCodeAt(i))) { |
| 15477 return false; |
| 15478 } |
| 15479 } |
| 15480 this._offset = this._offset + value.length; |
| 15481 return true; |
| 15482 } |
| 15483 _Parser.prototype._eat = function(value, eatWhitespace) { |
| 15484 if (!this._maybeEat(value, true)) { |
| 15485 this._error(("expected \"" + value + "\"")); |
| 15486 } |
| 15487 } |
| 15488 _Parser.prototype._maybeEatString = function() { |
| 15489 var quote = "'"; |
| 15490 if (!this._maybeEat(quote, true)) { |
| 15491 quote = "\""; |
| 15492 if (!this._maybeEat(quote, true)) { |
| 15493 return null; |
| 15494 } |
| 15495 } |
| 15496 var hasEscape = false; |
| 15497 var start = this._offset; |
| 15498 while (!this._maybeEat(quote, true)) { |
| 15499 if (this.get$endOfInput()) { |
| 15500 this._error(("expected \"" + quote + "\"")); |
| 15501 } |
| 15502 if (this._maybeEat("\\", true)) { |
| 15503 hasEscape = true; |
| 15504 } |
| 15505 this._offset++; |
| 15506 } |
| 15507 var result = this._src.substring(start, this._offset - (1)); |
| 15508 if (hasEscape) { |
| 15509 result = result.replaceFirst("\\", ""); |
| 15510 } |
| 15511 return result; |
| 15512 } |
| 15513 _Parser.prototype._eatWord = function() { |
| 15514 var start = this._offset; |
| 15515 while (this._offset < this.get$length() && _Parser._isLetter(this._peekChar())
) { |
| 15516 this._offset++; |
| 15517 } |
| 15518 return this._src.substring(start, this._offset); |
| 15519 } |
| 15520 _Parser.prototype._maybeEatInt = function() { |
| 15521 var start = this._offset; |
| 15522 var dot = false; |
| 15523 while (this._offset < this.get$length() && _Parser._isDigit(this._peekChar()))
{ |
| 15524 this._offset++; |
| 15525 } |
| 15526 if (start == this._offset) { |
| 15527 return null; |
| 15528 } |
| 15529 return Math.parseInt(this._src.substring(start, this._offset)); |
| 15530 } |
| 15531 _Parser.prototype._eatInt = function() { |
| 15532 var result = this._maybeEatInt(); |
| 15533 if (result == null) { |
| 15534 this._error("expected positive integer"); |
| 15535 } |
| 15536 return result; |
| 15537 } |
| 15538 _Parser.prototype._eatDouble = function() { |
| 15539 var start = this._offset; |
| 15540 var dot = false; |
| 15541 while (this._offset < this.get$length()) { |
| 15542 var c = this._peekChar(); |
| 15543 if (!_Parser._isDigit(c)) { |
| 15544 if (c == (46) && !dot) { |
| 15545 dot = true; |
| 15546 } |
| 15547 else { |
| 15548 break; |
| 15549 } |
| 15550 } |
| 15551 this._offset++; |
| 15552 } |
| 15553 if (start == this._offset) { |
| 15554 this._error("expected positive decimal number"); |
| 15555 } |
| 15556 return Math.parseDouble(this._src.substring(start, this._offset)); |
| 15557 } |
| 15558 _Parser.prototype._eatEnd$0 = _Parser.prototype._eatEnd; |
| 15559 _Parser.prototype._maybeEatString$0 = _Parser.prototype._maybeEatString; |
| 15560 // ********** Code for _GridTemplateParser ************** |
| 15561 $inherits(_GridTemplateParser, _Parser); |
| 15562 function _GridTemplateParser() {} |
| 15563 _GridTemplateParser._internal$ctor = function(src) { |
| 15564 _Parser.call(this, src); |
| 15565 } |
| 15566 _GridTemplateParser._internal$ctor.prototype = _GridTemplateParser.prototype; |
| 15567 _GridTemplateParser.parse = function(str) { |
| 15568 if (str == null) return null; |
| 15569 var p = new _GridTemplateParser._internal$ctor(str); |
| 15570 var result = p._parseTemplate$0(); |
| 15571 p._eatEnd$0(); |
| 15572 return result; |
| 15573 } |
| 15574 _GridTemplateParser.parseCell = function(str) { |
| 15575 if (str == null) return null; |
| 15576 var p = new _GridTemplateParser._internal$ctor(str); |
| 15577 var result = p._maybeEatString$0(); |
| 15578 p._eatEnd$0(); |
| 15579 return result; |
| 15580 } |
| 15581 _GridTemplateParser.prototype._parseTemplate = function() { |
| 15582 if (this._maybeEat("none", true)) { |
| 15583 return null; |
| 15584 } |
| 15585 var rows = new Array(); |
| 15586 var row; |
| 15587 while ((row = this._maybeEatString()) != null) { |
| 15588 rows.add$1(row); |
| 15589 } |
| 15590 if ($eq(rows.get$length(), (0))) { |
| 15591 this._error("expected at least one cell, or \"none\""); |
| 15592 } |
| 15593 return new GridTemplate(rows); |
| 15594 } |
| 15595 _GridTemplateParser.prototype._parseTemplate$0 = _GridTemplateParser.prototype._
parseTemplate; |
| 15596 // ********** Code for _GridItemParser ************** |
| 15597 $inherits(_GridItemParser, _Parser); |
| 15598 function _GridItemParser() {} |
| 15599 _GridItemParser._internal$ctor = function(src) { |
| 15600 _Parser.call(this, src); |
| 15601 } |
| 15602 _GridItemParser._internal$ctor.prototype = _GridItemParser.prototype; |
| 15603 _GridItemParser.parse = function(cell, list) { |
| 15604 if (cell == null) return null; |
| 15605 var p = new _GridItemParser._internal$ctor(cell); |
| 15606 var result = p._parseTrack$1(list); |
| 15607 p._eatEnd$0(); |
| 15608 return result; |
| 15609 } |
| 15610 _GridItemParser.prototype._parseTrack = function(list) { |
| 15611 if (this._maybeEat("auto", true)) { |
| 15612 return null; |
| 15613 } |
| 15614 var start = this._maybeParseLine(list); |
| 15615 if (start == null) { |
| 15616 this._error("expected row/column number or name"); |
| 15617 } |
| 15618 var end = this._maybeParseLine(list); |
| 15619 var span = null; |
| 15620 if (end != null) { |
| 15621 span = end - start; |
| 15622 if (span <= (0)) { |
| 15623 this._error("expected row/column span to be a positive integer"); |
| 15624 } |
| 15625 } |
| 15626 return new _GridLocation(start, span); |
| 15627 } |
| 15628 _GridItemParser.prototype._maybeParseLine = function(list) { |
| 15629 if (this._maybeEat("start", true)) { |
| 15630 return (1); |
| 15631 } |
| 15632 else if (this._maybeEat("end", true)) { |
| 15633 return list.tracks.get$length() + (1); |
| 15634 } |
| 15635 var name = this._maybeEatString(); |
| 15636 if (name == null) { |
| 15637 return this._maybeEatInt(); |
| 15638 } |
| 15639 else { |
| 15640 var edge = list.lineNames.$index(name); |
| 15641 if (edge == null) { |
| 15642 this._error(("row/column name \"" + name + "\" not found in the parent's "
) + " grid-row/grid-columns properties"); |
| 15643 } |
| 15644 return edge; |
| 15645 } |
| 15646 } |
| 15647 _GridItemParser.prototype._parseTrack$1 = _GridItemParser.prototype._parseTrack; |
| 15648 // ********** Code for _GridTrackParser ************** |
| 15649 $inherits(_GridTrackParser, _Parser); |
| 15650 function _GridTrackParser() {} |
| 15651 _GridTrackParser._internal$ctor = function(src) { |
| 15652 this._tracks = new Array(); |
| 15653 this._lineNames = new HashMapImplementation(); |
| 15654 _Parser.call(this, src); |
| 15655 } |
| 15656 _GridTrackParser._internal$ctor.prototype = _GridTrackParser.prototype; |
| 15657 _GridTrackParser.parse = function(str) { |
| 15658 if (str == null) return null; |
| 15659 var p = new _GridTrackParser._internal$ctor(str); |
| 15660 var result = p._parseTrackList$0(); |
| 15661 p._eatEnd$0(); |
| 15662 return result; |
| 15663 } |
| 15664 _GridTrackParser.parseTrackSizing = function(str) { |
| 15665 if (str == null) str = "auto"; |
| 15666 var p = new _GridTrackParser._internal$ctor(str); |
| 15667 var result = p._parseTrackMinmax$0(); |
| 15668 p._eatEnd$0(); |
| 15669 return result; |
| 15670 } |
| 15671 _GridTrackParser.prototype._parseTrackList = function() { |
| 15672 if (this._maybeEat("none", true)) { |
| 15673 return null; |
| 15674 } |
| 15675 this._parseTrackListHelper(); |
| 15676 return new GridTrackList(this._tracks, this._lineNames); |
| 15677 } |
| 15678 _GridTrackParser.prototype._parseTrackListHelper = function(resultTracks) { |
| 15679 this._maybeEatWhitespace(); |
| 15680 while (!this.get$endOfInput()) { |
| 15681 var name = null; |
| 15682 while ((name = this._maybeEatString()) != null) { |
| 15683 this._lineNames.$setindex(name, this._tracks.get$length() + (1)); |
| 15684 } |
| 15685 this._maybeEatWhitespace(); |
| 15686 if (this.get$endOfInput()) { |
| 15687 return; |
| 15688 } |
| 15689 if (resultTracks != null) { |
| 15690 if (this._peekChar() == (41)) { |
| 15691 return; |
| 15692 } |
| 15693 resultTracks.add$1(new GridTrack(this._parseTrackMinmax())); |
| 15694 } |
| 15695 else { |
| 15696 this._parseTrackGroup(); |
| 15697 } |
| 15698 this._maybeEatWhitespace(); |
| 15699 } |
| 15700 } |
| 15701 _GridTrackParser.prototype._parseTrackGroup = function() { |
| 15702 if (this._maybeEat("(", true)) { |
| 15703 var tracks = new Array(); |
| 15704 this._parseTrackListHelper(tracks); |
| 15705 this._eat(")", true); |
| 15706 if (this._maybeEat("[", true)) { |
| 15707 var expand = this._eatInt(); |
| 15708 this._eat("]", true); |
| 15709 if (expand <= (0)) { |
| 15710 this._error("expected positive number"); |
| 15711 } |
| 15712 for (var i = (0); |
| 15713 i < expand; i++) { |
| 15714 for (var $$i = tracks.iterator$0(); $$i.hasNext$0(); ) { |
| 15715 var t = $$i.next$0(); |
| 15716 this._tracks.add$1(t.clone()); |
| 15717 } |
| 15718 } |
| 15719 } |
| 15720 } |
| 15721 else { |
| 15722 this._tracks.add$1(new GridTrack(this._parseTrackMinmax())); |
| 15723 } |
| 15724 } |
| 15725 _GridTrackParser.prototype._parseTrackMinmax = function() { |
| 15726 if (this._maybeEat("auto", true) || this._maybeEat("fit-content", true)) { |
| 15727 return const$0019; |
| 15728 } |
| 15729 if (this._maybeEat("minmax(", true)) { |
| 15730 var min = this._parseTrackBreadth(); |
| 15731 this._eat(",", true); |
| 15732 var max = this._parseTrackBreadth(); |
| 15733 this._eat(")", true); |
| 15734 return new TrackSizing(min, max); |
| 15735 } |
| 15736 else { |
| 15737 var breadth = this._parseTrackBreadth(); |
| 15738 return new TrackSizing(breadth, breadth); |
| 15739 } |
| 15740 } |
| 15741 _GridTrackParser.prototype._parseTrackBreadth = function() { |
| 15742 if (this._maybeEat("min-content", true)) { |
| 15743 return const$0017; |
| 15744 } |
| 15745 else if (this._maybeEat("max-content", true)) { |
| 15746 return const$0018; |
| 15747 } |
| 15748 var value = this._eatDouble(); |
| 15749 var units; |
| 15750 if (this._maybeEat("%", true)) { |
| 15751 units = "%"; |
| 15752 } |
| 15753 else { |
| 15754 units = this._eatWord(); |
| 15755 } |
| 15756 if (units == "fr") { |
| 15757 return new FractionSizing(value); |
| 15758 } |
| 15759 else { |
| 15760 return new FixedSizing(value, units); |
| 15761 } |
| 15762 } |
| 15763 _GridTrackParser.prototype._parseTrackList$0 = _GridTrackParser.prototype._parse
TrackList; |
| 15764 _GridTrackParser.prototype._parseTrackMinmax$0 = _GridTrackParser.prototype._par
seTrackMinmax; |
| 15765 // ********** Code for SyntaxErrorException ************** |
| 15766 function SyntaxErrorException(_message, _source, _offset) { |
| 15767 this._layout_dart_message = _message; |
| 15768 this._offset = _offset; |
| 15769 this._source = _source; |
| 15770 } |
| 15771 SyntaxErrorException.prototype.toString = function() { |
| 15772 var location; |
| 15773 if (this._offset < this._source.length) { |
| 15774 location = "location: " + this._source.substring(this._offset); |
| 15775 } |
| 15776 else { |
| 15777 location = "end of input"; |
| 15778 } |
| 15779 return ("SyntaxErrorException: " + this._layout_dart_message + " at " + locati
on); |
| 15780 } |
| 15781 SyntaxErrorException.prototype.toString$0 = SyntaxErrorException.prototype.toStr
ing; |
| 15782 // ********** Code for GridTrackList ************** |
| 15783 function GridTrackList(tracks, lineNames) { |
| 15784 this.tracks = tracks; |
| 15785 this.lineNames = lineNames; |
| 15786 } |
| 15787 // ********** Code for GridTrack ************** |
| 15788 function GridTrack(sizing) { |
| 15789 this.sizing = sizing; |
| 15790 } |
| 15791 GridTrack.prototype.get$start = function() { return this.start; }; |
| 15792 GridTrack.prototype.set$start = function(value) { return this.start = value; }; |
| 15793 GridTrack.prototype.get$usedBreadth = function() { return this.usedBreadth; }; |
| 15794 GridTrack.prototype.set$usedBreadth = function(value) { return this.usedBreadth
= value; }; |
| 15795 GridTrack.prototype.get$maxBreadth = function() { return this.maxBreadth; }; |
| 15796 GridTrack.prototype.set$maxBreadth = function(value) { return this.maxBreadth =
value; }; |
| 15797 GridTrack.prototype.get$updatedBreadth = function() { return this.updatedBreadth
; }; |
| 15798 GridTrack.prototype.set$updatedBreadth = function(value) { return this.updatedBr
eadth = value; }; |
| 15799 GridTrack.prototype.get$tempBreadth = function() { return this.tempBreadth; }; |
| 15800 GridTrack.prototype.set$tempBreadth = function(value) { return this.tempBreadth
= value; }; |
| 15801 GridTrack.prototype.clone = function() { |
| 15802 return new GridTrack(this.sizing.clone()); |
| 15803 } |
| 15804 GridTrack.prototype.get$minSizing = function() { |
| 15805 return this.sizing.min; |
| 15806 } |
| 15807 GridTrack.prototype.get$maxSizing = function() { |
| 15808 return this.sizing.max; |
| 15809 } |
| 15810 GridTrack.prototype.get$end = function() { |
| 15811 return this.start + this.usedBreadth; |
| 15812 } |
| 15813 GridTrack.prototype.get$isFractional = function() { |
| 15814 return this.get$minSizing().get$isFraction() || this.get$maxSizing().get$isFra
ction(); |
| 15815 } |
| 15816 GridTrack.prototype.clone$0 = GridTrack.prototype.clone; |
| 15817 GridTrack.prototype.end$0 = function() { |
| 15818 return this.get$end().call$0(); |
| 15819 }; |
| 15820 GridTrack.prototype.start$0 = function() { |
| 15821 return this.start.call$0(); |
| 15822 }; |
| 15823 // ********** Code for GridItemAlignment ************** |
| 15824 function GridItemAlignment() {} |
| 15825 GridItemAlignment.fromString$ctor = function(value) { |
| 15826 this.value = (value == null) ? "stretch" : value; |
| 15827 switch (this.value) { |
| 15828 case "start": |
| 15829 case "end": |
| 15830 case "center": |
| 15831 case "stretch": |
| 15832 |
| 15833 break; |
| 15834 |
| 15835 default: |
| 15836 |
| 15837 $throw(new UnsupportedOperationException(("invalid row/column alignment \"
" + value + "\""))); |
| 15838 |
| 15839 } |
| 15840 } |
| 15841 GridItemAlignment.fromString$ctor.prototype = GridItemAlignment.prototype; |
| 15842 GridItemAlignment.prototype.get$value = function() { return this.value; }; |
| 15843 GridItemAlignment.prototype.align = function(span, size) { |
| 15844 switch (this.value) { |
| 15845 case "start": |
| 15846 |
| 15847 return new _GridLocation(span.start, size); |
| 15848 |
| 15849 case "end": |
| 15850 |
| 15851 return new _GridLocation(span.get$end() - size, size); |
| 15852 |
| 15853 case "center": |
| 15854 |
| 15855 size = Math.min(size, span.length); |
| 15856 var center = span.start + span.length / (2); |
| 15857 var left = center - size / (2); |
| 15858 return new _GridLocation(left.round().toInt(), size); |
| 15859 |
| 15860 case "stretch": |
| 15861 |
| 15862 return span; |
| 15863 |
| 15864 } |
| 15865 } |
| 15866 // ********** Code for GridTemplate ************** |
| 15867 function GridTemplate(rows) { |
| 15868 this._rects = new HashMapImplementation(); |
| 15869 this._numRows = rows.get$length(); |
| 15870 this._buildRects(rows); |
| 15871 } |
| 15872 GridTemplate.prototype._buildRects = function(templateRows) { |
| 15873 for (var r = (0); |
| 15874 r < templateRows.get$length(); r++) { |
| 15875 var row = templateRows.$index(r); |
| 15876 for (var c = (0); |
| 15877 c < row.length; c++) { |
| 15878 var cell = row.charCodeAt(c); |
| 15879 var rect = this._rects.$index(cell); |
| 15880 if (rect != null) { |
| 15881 rect.add$2(r + (1), c + (1)); |
| 15882 } |
| 15883 else { |
| 15884 this._rects.$setindex(cell, new _GridTemplateRect(cell, r + (1), c + (1)
)); |
| 15885 } |
| 15886 } |
| 15887 } |
| 15888 var $$list = this._rects.getValues$0(); |
| 15889 for (var $$i = $$list.iterator$0(); $$i.hasNext$0(); ) { |
| 15890 var rect = $$i.next$0(); |
| 15891 rect.checkValid$0(); |
| 15892 } |
| 15893 } |
| 15894 GridTemplate.prototype.lookupCell = function(cell) { |
| 15895 if (cell.length != (1)) { |
| 15896 $throw(new UnsupportedOperationException(("grid-cell \"" + cell + "\" must b
e a one character string"))); |
| 15897 } |
| 15898 var rect = this._rects.$index(cell.charCodeAt((0))); |
| 15899 if (rect == null) { |
| 15900 $throw(new UnsupportedOperationException(("grid-cell \"" + cell + "\" not fo
und in parent's grid-template"))); |
| 15901 } |
| 15902 return rect; |
| 15903 } |
| 15904 // ********** Code for _GridTemplateRect ************** |
| 15905 function _GridTemplateRect(_char, row, column) { |
| 15906 this._count = (1); |
| 15907 this.columnSpan = (1); |
| 15908 this.row = row; |
| 15909 this._char = _char; |
| 15910 this.column = column; |
| 15911 this.rowSpan = (1); |
| 15912 } |
| 15913 _GridTemplateRect.prototype.get$column = function() { return this.column; }; |
| 15914 _GridTemplateRect.prototype.set$column = function(value) { return this.column =
value; }; |
| 15915 _GridTemplateRect.prototype.get$columnSpan = function() { return this.columnSpan
; }; |
| 15916 _GridTemplateRect.prototype.set$columnSpan = function(value) { return this.colum
nSpan = value; }; |
| 15917 _GridTemplateRect.prototype.get$row = function() { return this.row; }; |
| 15918 _GridTemplateRect.prototype.set$row = function(value) { return this.row = value;
}; |
| 15919 _GridTemplateRect.prototype.get$rowSpan = function() { return this.rowSpan; }; |
| 15920 _GridTemplateRect.prototype.set$rowSpan = function(value) { return this.rowSpan
= value; }; |
| 15921 _GridTemplateRect.prototype.add = function(r, c) { |
| 15922 this._count++; |
| 15923 this.rowSpan = Math.max(this.rowSpan, r - this.row + (1)); |
| 15924 this.columnSpan = Math.max(this.columnSpan, c - this.column + (1)); |
| 15925 } |
| 15926 _GridTemplateRect.prototype.checkValid = function() { |
| 15927 var expected = this.rowSpan * this.columnSpan; |
| 15928 if (expected != this._count) { |
| 15929 var cell = Strings.String$fromCharCodes$factory([this._char]); |
| 15930 $throw(new UnsupportedOperationException(("grid-template \"" + cell + "\"")
+ (" is not square, expected " + expected + " cells but got " + this._count))); |
| 15931 } |
| 15932 } |
| 15933 _GridTemplateRect.prototype.add$2 = _GridTemplateRect.prototype.add; |
| 15934 _GridTemplateRect.prototype.checkValid$0 = _GridTemplateRect.prototype.checkVali
d; |
| 15935 // ********** Code for _GridLocation ************** |
| 15936 function _GridLocation(start, length) { |
| 15937 this.start = start; |
| 15938 this.length = length; |
| 15939 } |
| 15940 _GridLocation.prototype.get$length = function() { return this.length; }; |
| 15941 _GridLocation.prototype.get$start = function() { return this.start; }; |
| 15942 _GridLocation.prototype.get$end = function() { |
| 15943 return this.start + this.length; |
| 15944 } |
| 15945 _GridLocation.prototype.end$0 = function() { |
| 15946 return this.get$end().call$0(); |
| 15947 }; |
| 15948 _GridLocation.prototype.start$0 = function() { |
| 15949 return this.start.call$0(); |
| 15950 }; |
| 15951 // ********** Code for SizingFunction ************** |
| 15952 function SizingFunction() { |
| 15953 |
| 15954 } |
| 15955 SizingFunction.prototype.get$isContentSized = function() { |
| 15956 return this.get$isMinContentSized() || this.get$isMaxContentSized(); |
| 15957 } |
| 15958 SizingFunction.prototype.get$isMinContentSized = function() { |
| 15959 return false; |
| 15960 } |
| 15961 SizingFunction.prototype.get$isMaxContentSized = function() { |
| 15962 return false; |
| 15963 } |
| 15964 SizingFunction.prototype.get$isFraction = function() { |
| 15965 return false; |
| 15966 } |
| 15967 SizingFunction.prototype.resolveLength = function(gridSize) { |
| 15968 return (0); |
| 15969 } |
| 15970 SizingFunction.prototype.get$fractionValue = function() { |
| 15971 return (0); |
| 15972 } |
| 15973 SizingFunction.prototype.clone = function() { |
| 15974 return this; |
| 15975 } |
| 15976 SizingFunction.prototype.clone$0 = SizingFunction.prototype.clone; |
| 15977 SizingFunction.prototype.resolveLength$1 = SizingFunction.prototype.resolveLengt
h; |
| 15978 // ********** Code for FixedSizing ************** |
| 15979 $inherits(FixedSizing, SizingFunction); |
| 15980 function FixedSizing(length, units) { |
| 15981 this._contentSized = false; |
| 15982 this.units = units; |
| 15983 this.length = length; |
| 15984 SizingFunction.call(this); |
| 15985 if (this.units != "px" && this.units != "%") { |
| 15986 $throw(new UnsupportedOperationException("Units other than px and %")); |
| 15987 } |
| 15988 } |
| 15989 FixedSizing.prototype.get$length = function() { return this.length; }; |
| 15990 FixedSizing.prototype.clone = function() { |
| 15991 return new FixedSizing(this.length, this.units); |
| 15992 } |
| 15993 FixedSizing.prototype.get$isMinContentSized = function() { |
| 15994 return this._contentSized; |
| 15995 } |
| 15996 FixedSizing.prototype.resolveLength = function(gridSize) { |
| 15997 if (this.units == "%") { |
| 15998 if (gridSize == null) { |
| 15999 this._contentSized = true; |
| 16000 return (0); |
| 16001 } |
| 16002 this._contentSized = false; |
| 16003 return (this.length / (100)) * gridSize; |
| 16004 } |
| 16005 else { |
| 16006 return this.length; |
| 16007 } |
| 16008 } |
| 16009 FixedSizing.prototype.toString = function() { |
| 16010 return ("FixedSizing: " + this.length + this.units + " " + this._contentSized)
; |
| 16011 } |
| 16012 FixedSizing.prototype.clone$0 = FixedSizing.prototype.clone; |
| 16013 FixedSizing.prototype.resolveLength$1 = FixedSizing.prototype.resolveLength; |
| 16014 FixedSizing.prototype.toString$0 = FixedSizing.prototype.toString; |
| 16015 // ********** Code for FractionSizing ************** |
| 16016 $inherits(FractionSizing, SizingFunction); |
| 16017 function FractionSizing(fractionValue) { |
| 16018 this.fractionValue = fractionValue; |
| 16019 SizingFunction.call(this); |
| 16020 } |
| 16021 FractionSizing.prototype.get$fractionValue = function() { return this.fractionVa
lue; }; |
| 16022 FractionSizing.prototype.get$isFraction = function() { |
| 16023 return true; |
| 16024 } |
| 16025 FractionSizing.prototype.toString = function() { |
| 16026 return ("FixedSizing: " + this.fractionValue + "fr"); |
| 16027 } |
| 16028 FractionSizing.prototype.toString$0 = FractionSizing.prototype.toString; |
| 16029 // ********** Code for MinContentSizing ************** |
| 16030 $inherits(MinContentSizing, SizingFunction); |
| 16031 function MinContentSizing() { |
| 16032 SizingFunction.call(this); |
| 16033 } |
| 16034 MinContentSizing.prototype.get$isMinContentSized = function() { |
| 16035 return true; |
| 16036 } |
| 16037 MinContentSizing.prototype.toString = function() { |
| 16038 return "MinContentSizing"; |
| 16039 } |
| 16040 MinContentSizing.prototype.toString$0 = MinContentSizing.prototype.toString; |
| 16041 // ********** Code for MaxContentSizing ************** |
| 16042 $inherits(MaxContentSizing, SizingFunction); |
| 16043 function MaxContentSizing() { |
| 16044 SizingFunction.call(this); |
| 16045 } |
| 16046 MaxContentSizing.prototype.get$isMaxContentSized = function() { |
| 16047 return true; |
| 16048 } |
| 16049 MaxContentSizing.prototype.toString = function() { |
| 16050 return "MaxContentSizing"; |
| 16051 } |
| 16052 MaxContentSizing.prototype.toString$0 = MaxContentSizing.prototype.toString; |
| 16053 // ********** Code for TrackSizing ************** |
| 16054 function TrackSizing(min, max) { |
| 16055 this.min = min; |
| 16056 this.max = max; |
| 16057 } |
| 16058 TrackSizing.auto$ctor = function() { |
| 16059 this.min = const$0017; |
| 16060 this.max = const$0018; |
| 16061 } |
| 16062 TrackSizing.auto$ctor.prototype = TrackSizing.prototype; |
| 16063 TrackSizing.prototype.clone = function() { |
| 16064 return new TrackSizing(this.min.clone$0(), this.max.clone$0()); |
| 16065 } |
| 16066 TrackSizing.prototype.clone$0 = TrackSizing.prototype.clone; |
| 16067 // ********** Code for _UsedBreadthAccumulator ************** |
| 16068 function _UsedBreadthAccumulator() { |
| 16069 |
| 16070 } |
| 16071 _UsedBreadthAccumulator.prototype.setSize = function(t, value) { |
| 16072 t.usedBreadth = value; |
| 16073 } |
| 16074 _UsedBreadthAccumulator.prototype.getSize = function(t) { |
| 16075 return t.usedBreadth; |
| 16076 } |
| 16077 _UsedBreadthAccumulator.prototype.getSizingFunction = function(t) { |
| 16078 return t.get$minSizing(); |
| 16079 } |
| 16080 // ********** Code for _MaxBreadthAccumulator ************** |
| 16081 function _MaxBreadthAccumulator() { |
| 16082 |
| 16083 } |
| 16084 _MaxBreadthAccumulator.prototype.setSize = function(t, value) { |
| 16085 t.maxBreadth = value; |
| 16086 } |
| 16087 _MaxBreadthAccumulator.prototype.getSize = function(t) { |
| 16088 return t.maxBreadth; |
| 16089 } |
| 16090 _MaxBreadthAccumulator.prototype.getSizingFunction = function(t) { |
| 16091 return t.get$maxSizing(); |
| 16092 } |
| 16093 // ********** Code for Dimension ************** |
| 16094 function Dimension() {} |
| 16095 Dimension._internal$ctor = function(name) { |
| 16096 this.name = name; |
| 16097 } |
| 16098 Dimension._internal$ctor.prototype = Dimension.prototype; |
| 16099 Dimension.prototype.get$name = function() { return this.name; }; |
| 16100 // ********** Code for ContentSizeMode ************** |
| 16101 function ContentSizeMode() {} |
| 16102 ContentSizeMode._internal$ctor = function(name) { |
| 16103 this.name = name; |
| 16104 } |
| 16105 ContentSizeMode._internal$ctor.prototype = ContentSizeMode.prototype; |
| 16106 ContentSizeMode.prototype.get$name = function() { return this.name; }; |
| 16107 // ********** Code for top level ************** |
| 16108 // ********** Library view ************** |
| 16109 // ********** Code for View ************** |
| 16110 function View() { |
| 16111 this.customStyle = new HashMapImplementation(); |
| 16112 } |
| 16113 View.fromNode$ctor = function(_node) { |
| 16114 this._node = _node; |
| 16115 this.customStyle = new HashMapImplementation(); |
| 16116 } |
| 16117 View.fromNode$ctor.prototype = View.prototype; |
| 16118 View.html$ctor = function(html) { |
| 16119 this._node = ElementWrappingImplementation.ElementWrappingImplementation$html$
factory(html); |
| 16120 this.customStyle = new HashMapImplementation(); |
| 16121 } |
| 16122 View.html$ctor.prototype = View.prototype; |
| 16123 View.prototype.get$node = function() { |
| 16124 if (this._node == null) { |
| 16125 this._render(); |
| 16126 } |
| 16127 return this._node; |
| 16128 } |
| 16129 View.prototype.get$childViews = function() { |
| 16130 return const$0016; |
| 16131 } |
| 16132 View.prototype.childViewAdded = function(child) { |
| 16133 if (this.get$isInDocument()) { |
| 16134 child._enterDocument(); |
| 16135 this.doLayout(); |
| 16136 } |
| 16137 } |
| 16138 View.prototype.childViewRemoved = function(child) { |
| 16139 if (this.get$isInDocument()) { |
| 16140 child._exitDocument(); |
| 16141 } |
| 16142 } |
| 16143 View.prototype.get$isRendered = function() { |
| 16144 return this._node != null; |
| 16145 } |
| 16146 View.prototype.get$isInDocument = function() { |
| 16147 return this._node != null && this.get$node().get$document().contains(this.get$
node()); |
| 16148 } |
| 16149 View.prototype.addToDocument = function(parentNode) { |
| 16150 this._render(); |
| 16151 parentNode.get$nodes().add$1(this._node); |
| 16152 this._hookGlobalLayoutEvents(); |
| 16153 this._enterDocument(); |
| 16154 } |
| 16155 View.prototype.render = function() { |
| 16156 $throw("abstract"); |
| 16157 } |
| 16158 View.prototype.afterRender = function(node) { |
| 16159 |
| 16160 } |
| 16161 View.prototype.enterDocument = function() { |
| 16162 |
| 16163 } |
| 16164 View.prototype.exitDocument = function() { |
| 16165 |
| 16166 } |
| 16167 View.prototype.windowResized = function() { |
| 16168 |
| 16169 } |
| 16170 View.prototype.watch = function(observable, watcher) { |
| 16171 var summary = new EventSummary(observable); |
| 16172 watcher.call$1(summary); |
| 16173 this.attachWatch(observable, watcher); |
| 16174 } |
| 16175 View.prototype.attachWatch = function(observable, watcher) { |
| 16176 observable.addChangeListener(watcher); |
| 16177 } |
| 16178 View.prototype.addOnClick = function(handler) { |
| 16179 this._node.get$on().get$click().add$1(handler); |
| 16180 } |
| 16181 View.prototype.set$hidden = function(hidden) { |
| 16182 if (hidden) { |
| 16183 this.get$node().get$style().set$display("none"); |
| 16184 } |
| 16185 else { |
| 16186 this.get$node().get$style().set$display(""); |
| 16187 } |
| 16188 } |
| 16189 View.prototype.addClass = function(className) { |
| 16190 this.get$node().get$classes().add(className); |
| 16191 } |
| 16192 View.prototype.removeClass = function(className) { |
| 16193 this.get$node().get$classes().remove(className); |
| 16194 } |
| 16195 View.div = function(cssClass, body) { |
| 16196 if (body == null) { |
| 16197 body = ""; |
| 16198 } |
| 16199 return new View.html$ctor(("<div class=\"" + cssClass + "\">" + body + "</div>
")); |
| 16200 } |
| 16201 View.prototype._render = function() { |
| 16202 if (this._node == null) { |
| 16203 this._node = this.render(); |
| 16204 } |
| 16205 this.afterRender(this._node); |
| 16206 } |
| 16207 View.prototype._enterDocument = function() { |
| 16208 var $$list = this.get$childViews(); |
| 16209 for (var $$i = $$list.iterator$0(); $$i.hasNext$0(); ) { |
| 16210 var child = $$i.next$0(); |
| 16211 child._enterDocument$0(); |
| 16212 } |
| 16213 this.enterDocument(); |
| 16214 } |
| 16215 View.prototype.get$layout = function() { |
| 16216 if (this._view_layout == null) { |
| 16217 this._view_layout = ViewLayout.ViewLayout$fromView$factory(this); |
| 16218 } |
| 16219 return this._view_layout; |
| 16220 } |
| 16221 View.prototype._exitDocument = function() { |
| 16222 this.exitDocument(); |
| 16223 var $$list = this.get$childViews(); |
| 16224 for (var $$i = $$list.iterator$0(); $$i.hasNext$0(); ) { |
| 16225 var child = $$i.next$0(); |
| 16226 child._exitDocument$0(); |
| 16227 } |
| 16228 } |
| 16229 View.prototype._hookGlobalLayoutEvents = function() { |
| 16230 var $this = this; // closure support |
| 16231 if (this._resizeHandler == null) { |
| 16232 this._resizeHandler = to$call$1(EventBatch.wrap((function (e) { |
| 16233 return $this.doLayout(); |
| 16234 }) |
| 16235 )); |
| 16236 } |
| 16237 html_get$window().get$on().get$resize().add(this._resizeHandler, false); |
| 16238 this.doLayout(); |
| 16239 } |
| 16240 View.prototype.doLayout = function() { |
| 16241 var $this = this; // closure support |
| 16242 this._measureLayout().then((function (changed) { |
| 16243 if (changed) { |
| 16244 $this._applyLayoutToChildren(); |
| 16245 } |
| 16246 }) |
| 16247 ); |
| 16248 } |
| 16249 View.prototype._measureLayout = function() { |
| 16250 var changed = new CompleterImpl(); |
| 16251 this._measureLayoutHelper(changed); |
| 16252 html_get$window().requestLayoutFrame((function () { |
| 16253 if (!changed.get$future().get$isComplete()) { |
| 16254 changed.complete$1(false); |
| 16255 } |
| 16256 }) |
| 16257 ); |
| 16258 return changed.get$future(); |
| 16259 } |
| 16260 View.prototype._measureLayoutHelper = function(changed) { |
| 16261 this.windowResized(); |
| 16262 if (ViewLayout.hasCustomLayout(this)) { |
| 16263 var sizeCompleter = new CompleterImpl(); |
| 16264 this._node.get$rect().then((function (rect) { |
| 16265 sizeCompleter.complete(new Size(rect.client.get$width(), rect.client.get$h
eight())); |
| 16266 }) |
| 16267 ); |
| 16268 this.get$layout().measureLayout(sizeCompleter.get$future(), changed); |
| 16269 } |
| 16270 else { |
| 16271 var $$list = this.get$childViews(); |
| 16272 for (var $$i = $$list.iterator$0(); $$i.hasNext$0(); ) { |
| 16273 var child = $$i.next$0(); |
| 16274 child._measureLayoutHelper$1(changed); |
| 16275 } |
| 16276 } |
| 16277 } |
| 16278 View.prototype._applyLayoutToChildren = function() { |
| 16279 var $$list = this.get$childViews(); |
| 16280 for (var $$i = $$list.iterator$0(); $$i.hasNext$0(); ) { |
| 16281 var child = $$i.next$0(); |
| 16282 child._applyLayout$0(); |
| 16283 } |
| 16284 } |
| 16285 View.prototype._applyLayout = function() { |
| 16286 if (this._view_layout != null) { |
| 16287 this._view_layout.applyLayout$0(); |
| 16288 } |
| 16289 this._applyLayoutToChildren(); |
| 16290 } |
| 16291 View.prototype.set$transform = function(transform) { |
| 16292 this.get$node().get$style().set$transform(transform); |
| 16293 } |
| 16294 View.prototype._applyLayout$0 = View.prototype._applyLayout; |
| 16295 View.prototype._enterDocument$0 = View.prototype._enterDocument; |
| 16296 View.prototype._exitDocument$0 = View.prototype._exitDocument; |
| 16297 View.prototype._measureLayoutHelper$1 = View.prototype._measureLayoutHelper; |
| 16298 View.prototype.addClass$1 = View.prototype.addClass; |
| 16299 View.prototype.doLayout$0 = View.prototype.doLayout; |
| 16300 // ********** Code for CompositeView ************** |
| 16301 $inherits(CompositeView, View); |
| 16302 function CompositeView(_cssName, nestedContainer, scrollable, vertical, showScro
llbar) { |
| 16303 this._nestedContainer = nestedContainer; |
| 16304 this._view_cssName = _cssName; |
| 16305 this._view_vertical = vertical; |
| 16306 this.childViews = new Array(); |
| 16307 this._view_showScrollbar = showScrollbar; |
| 16308 this._view_scrollable = scrollable; |
| 16309 View.call(this); |
| 16310 } |
| 16311 CompositeView.prototype.get$childViews = function() { return this.childViews; }; |
| 16312 CompositeView.prototype.set$childViews = function(value) { return this.childView
s = value; }; |
| 16313 CompositeView.prototype.render = function() { |
| 16314 var node = ElementWrappingImplementation.ElementWrappingImplementation$html$fa
ctory(("<div class=\"" + this._view_cssName + "\"></div>")); |
| 16315 if (this._nestedContainer) { |
| 16316 this.container = ElementWrappingImplementation.ElementWrappingImplementation
$html$factory("<div class=\"scroll-container\"></div>"); |
| 16317 node.get$nodes().add$1(this.container); |
| 16318 } |
| 16319 else { |
| 16320 this.container = node; |
| 16321 } |
| 16322 if (this._view_scrollable) { |
| 16323 this.scroller = new Scroller(this.container, this._view_vertical, !this._vie
w_vertical, true, null, (1), null, false); |
| 16324 if (this._view_showScrollbar) { |
| 16325 this._view_scrollbar = new Scrollbar(this.scroller, true); |
| 16326 } |
| 16327 } |
| 16328 var $$list = this.childViews; |
| 16329 for (var $$i = 0;$$i < $$list.get$length(); $$i++) { |
| 16330 var childView = $$list.$index($$i); |
| 16331 this.container.get$nodes().add$1(childView.get$node()); |
| 16332 } |
| 16333 return node; |
| 16334 } |
| 16335 CompositeView.prototype.afterRender = function(node) { |
| 16336 if (this._view_scrollbar != null) { |
| 16337 this._view_scrollbar.initialize(); |
| 16338 } |
| 16339 } |
| 16340 CompositeView.prototype.addChild = function(view) { |
| 16341 this.childViews.add$1(view); |
| 16342 if (this.container != null) { |
| 16343 this.container.get$nodes().add$1(view.get$node()); |
| 16344 } |
| 16345 this.childViewAdded(view); |
| 16346 return view; |
| 16347 } |
| 16348 CompositeView.prototype.removeChild = function(view) { |
| 16349 this.childViews = this.childViews.filter$1(function _(e) { |
| 16350 return $ne(view, e); |
| 16351 } |
| 16352 ); |
| 16353 if (this.container != null) { |
| 16354 view.get$node().remove(); |
| 16355 } |
| 16356 } |
| 16357 CompositeView.prototype.removeChild$1 = CompositeView.prototype.removeChild; |
| 16358 // ********** Code for ConveyorView ************** |
| 16359 $inherits(ConveyorView, CompositeView); |
| 16360 function ConveyorView() { |
| 16361 this.animationTimeoutId = null; |
| 16362 CompositeView.call(this, "conveyor-view", true, false, false, false); |
| 16363 } |
| 16364 ConveyorView.prototype.render = function() { |
| 16365 var result = CompositeView.prototype.render.call(this); |
| 16366 this.container.get$attributes().$setindex("class", "conveyor-view-container"); |
| 16367 return result; |
| 16368 } |
| 16369 ConveyorView.prototype.selectView = function(targetView_, animate) { |
| 16370 this.selectedView = targetView_; |
| 16371 if (this.get$isRendered()) { |
| 16372 this.adjustOffset(animate); |
| 16373 } |
| 16374 } |
| 16375 ConveyorView.prototype.adjustOffset = function(animate) { |
| 16376 var $this = this; // closure support |
| 16377 var index = this.getIndexOfSelectedView(); |
| 16378 var durationSeconds = animate ? (0.25) : (0); |
| 16379 var style = this.container.get$style(); |
| 16380 style.set$transitionDuration(("" + durationSeconds + "s")); |
| 16381 var xTranslationPercent = -index * (100); |
| 16382 style.set$transform(("translate3d(" + xTranslationPercent + "%, 0px, 0px)")); |
| 16383 if (this.animationTimeoutId != null) { |
| 16384 html_get$window().clearTimeout(this.animationTimeoutId); |
| 16385 } |
| 16386 if (animate) { |
| 16387 this.animationTimeoutId = html_get$window().setTimeout((function () { |
| 16388 $this._onAnimationEnd(); |
| 16389 }) |
| 16390 , (durationSeconds * (1000)).toInt()); |
| 16391 } |
| 16392 } |
| 16393 ConveyorView.prototype.getIndexOfSelectedView = function() { |
| 16394 for (var i = (0); |
| 16395 i < this.childViews.get$length(); i++) { |
| 16396 if ($eq(this.childViews.$index(i), this.selectedView)) { |
| 16397 return i; |
| 16398 } |
| 16399 } |
| 16400 $throw("view not found"); |
| 16401 } |
| 16402 ConveyorView.prototype.addChild = function(view) { |
| 16403 view.addClass("conveyor-item"); |
| 16404 view.set$transform("translate3d(" + (this.childViews.get$length() * (100)) + "
%, 0, 0)"); |
| 16405 return CompositeView.prototype.addChild.call(this, view); |
| 16406 } |
| 16407 ConveyorView.prototype._onAnimationEnd = function() { |
| 16408 if (this.viewSelected != null) { |
| 16409 this.viewSelected.call$1(this.selectedView); |
| 16410 } |
| 16411 } |
| 16412 // ********** Code for MeasureText ************** |
| 16413 function MeasureText(font) { |
| 16414 this.font = font; |
| 16415 if ($globals.MeasureText__context == null) { |
| 16416 var canvas = ElementWrappingImplementation.ElementWrappingImplementation$tag
$factory("canvas"); |
| 16417 $globals.MeasureText__context = canvas.getContext("2d"); |
| 16418 } |
| 16419 if (this._spaceLength == null) { |
| 16420 $globals.MeasureText__context.set$font(this.font); |
| 16421 this._spaceLength = $globals.MeasureText__context.measureText(" ").get$width
(); |
| 16422 this._typicalCharLength = $globals.MeasureText__context.measureText("k").get
$width(); |
| 16423 } |
| 16424 } |
| 16425 MeasureText.prototype.get$font = function() { return this.font; }; |
| 16426 MeasureText.isWhitespace = function(character) { |
| 16427 return character == " " || character == "\t" || character == "\n"; |
| 16428 } |
| 16429 MeasureText.prototype.addLineBrokenText = function(sb, text, lineWidth, maxLines
) { |
| 16430 text = text.trim(); |
| 16431 if (sb == null) { |
| 16432 $globals.MeasureText__context.set$font(this.font); |
| 16433 var textWidth = $globals.MeasureText__context.measureText(text).get$width().
toInt(); |
| 16434 if (textWidth >= (lineWidth + this._spaceLength) * (maxLines - (1))) { |
| 16435 return maxLines; |
| 16436 } |
| 16437 else if (textWidth == (0)) { |
| 16438 return (0); |
| 16439 } |
| 16440 else if (textWidth < lineWidth) { |
| 16441 return (1); |
| 16442 } |
| 16443 } |
| 16444 var lines = (0); |
| 16445 this.lineBreak(text, lineWidth, maxLines, (function (start, end, width) { |
| 16446 lines++; |
| 16447 if (lines == maxLines) { |
| 16448 end = Math.min(end + (50), text.length); |
| 16449 } |
| 16450 if (sb != null) { |
| 16451 if (lines > (1)) { |
| 16452 sb.add("<br>"); |
| 16453 } |
| 16454 sb.add(text.substring(start, end)); |
| 16455 } |
| 16456 }) |
| 16457 ); |
| 16458 return lines; |
| 16459 } |
| 16460 MeasureText.prototype.lineBreak = function(text, lineWidth, maxLines, callback)
{ |
| 16461 $globals.MeasureText__context.set$font(this.font); |
| 16462 var lines = (0); |
| 16463 var currentLength = (0); |
| 16464 var startIndex = (0); |
| 16465 var wordStartIndex = null; |
| 16466 var lastWordEndIndex = null; |
| 16467 var lastWhitespace = true; |
| 16468 for (var i = (0), len = text.length; |
| 16469 i <= len; i++) { |
| 16470 var whitespace = i == len || MeasureText.isWhitespace(text[i]); |
| 16471 if (whitespace && !lastWhitespace) { |
| 16472 var wordLength = $globals.MeasureText__context.measureText(text.substring(
wordStartIndex, i)).get$width(); |
| 16473 currentLength += wordLength; |
| 16474 if (currentLength > lineWidth) { |
| 16475 if (lastWordEndIndex != null) { |
| 16476 lines++; |
| 16477 callback.call$3(startIndex, lastWordEndIndex, currentLength - wordLeng
th); |
| 16478 } |
| 16479 if (lines == maxLines) { |
| 16480 return; |
| 16481 } |
| 16482 startIndex = wordStartIndex; |
| 16483 currentLength = wordLength; |
| 16484 } |
| 16485 lastWordEndIndex = i; |
| 16486 currentLength += this._spaceLength; |
| 16487 wordStartIndex = null; |
| 16488 } |
| 16489 else if (wordStartIndex == null && !whitespace) { |
| 16490 wordStartIndex = i; |
| 16491 } |
| 16492 lastWhitespace = whitespace; |
| 16493 } |
| 16494 if (currentLength > (0)) { |
| 16495 callback.call$3(startIndex, text.length, currentLength); |
| 16496 } |
| 16497 } |
| 16498 // ********** Code for PageState ************** |
| 16499 function PageState() { |
| 16500 this.target = new ObservableValue_int((0)); |
| 16501 this.current = new ObservableValue_int((0)); |
| 16502 this.length = new ObservableValue_int((1)); |
| 16503 } |
| 16504 PageState.prototype.get$target = function() { return this.target; }; |
| 16505 PageState.prototype.get$length = function() { return this.length; }; |
| 16506 // ********** Code for PagedContentView ************** |
| 16507 $inherits(PagedContentView, CompositeView); |
| 16508 function PagedContentView(content) { |
| 16509 this.content = content; |
| 16510 this.pages = new PageState(); |
| 16511 CompositeView.call(this, "paged-content", false, false, false, false); |
| 16512 this.addChild(new PagedColumnView(this.pages, this.content)); |
| 16513 this.addChild(new PageNumberView(this.pages)); |
| 16514 } |
| 16515 // ********** Code for PageNumberView ************** |
| 16516 $inherits(PageNumberView, View); |
| 16517 function PageNumberView(pages) { |
| 16518 this.pages = pages; |
| 16519 View.call(this); |
| 16520 } |
| 16521 PageNumberView.prototype.render = function() { |
| 16522 var node = ElementWrappingImplementation.ElementWrappingImplementation$html$fa
ctory(" <div class=\"page-number\">\n <div class=\"page-number-l
eft\">‹</div>\n <div class=\"page-number-label\"></div>\n
<div class=\"page-number-right\">›</div>\n </div>\n "); |
| 16523 this._left = node.query$1(".page-number-left"); |
| 16524 this._label = node.query$1(".page-number-label"); |
| 16525 this._right = node.query$1(".page-number-right"); |
| 16526 return node; |
| 16527 } |
| 16528 PageNumberView.prototype.enterDocument = function() { |
| 16529 var $this = this; // closure support |
| 16530 this.watch(this.pages.current, (function (s) { |
| 16531 return $this._update(); |
| 16532 }) |
| 16533 ); |
| 16534 this.watch(this.pages.length, (function (s) { |
| 16535 return $this._update(); |
| 16536 }) |
| 16537 ); |
| 16538 this._left.get$on().get$click().add$1((function (e) { |
| 16539 if ($this.pages.current.get$value() > (0)) { |
| 16540 $this.pages.target.set$value($this.pages.current.get$value() - (1)); |
| 16541 } |
| 16542 }) |
| 16543 ); |
| 16544 this._right.get$on().get$click().add$1((function (e) { |
| 16545 if ($this.pages.current.get$value() + (1) < $this.pages.length.get$value())
{ |
| 16546 $this.pages.target.set$value($this.pages.current.get$value() + (1)); |
| 16547 } |
| 16548 }) |
| 16549 ); |
| 16550 } |
| 16551 PageNumberView.prototype._update = function() { |
| 16552 this._label.set$text(("" + (this.pages.current.get$value() + (1)) + " of " + t
his.pages.length.get$value())); |
| 16553 } |
| 16554 // ********** Code for PagedColumnView ************** |
| 16555 $inherits(PagedColumnView, View); |
| 16556 function PagedColumnView(pages, contentView) { |
| 16557 this.pages = pages; |
| 16558 this.contentView = contentView; |
| 16559 View.call(this); |
| 16560 } |
| 16561 PagedColumnView.prototype.render = function() { |
| 16562 var $this = this; // closure support |
| 16563 var node = ElementWrappingImplementation.ElementWrappingImplementation$html$fa
ctory(" <div class=\"paged-column\">\n <div class=\"paged-column-con
tainer\"></div>\n </div>"); |
| 16564 this._container = node.query$1(".paged-column-container"); |
| 16565 this._container.get$nodes().add$1(this.contentView.get$node()); |
| 16566 this.scroller = new Scroller(this._container, false, true, true, (function ()
{ |
| 16567 var completer = new CompleterImpl(); |
| 16568 $this._container.get$rect().then((function (rect) { |
| 16569 completer.complete$1(new Size($this._getViewLength(rect), (1))); |
| 16570 }) |
| 16571 ); |
| 16572 return completer.get$future(); |
| 16573 }) |
| 16574 , (0.84), null, false); |
| 16575 this.scroller.get$onDecelStart().add(this.get$_snapToPage(), false); |
| 16576 this.scroller.get$onScrollerDragEnd().add(this.get$_snapToPage(), false); |
| 16577 this.scroller.get$onContentMoved().add(this.get$_onContentMoved(), false); |
| 16578 return node; |
| 16579 } |
| 16580 PagedColumnView.prototype._getViewLength = function(rect) { |
| 16581 return this._computePageSize(rect) * this.pages.length.get$value(); |
| 16582 } |
| 16583 PagedColumnView.prototype.enterDocument = function() { |
| 16584 var $this = this; // closure support |
| 16585 this.contentView.get$node().get$computedStyle().then((function (style) { |
| 16586 $this._computeColumnGap(style); |
| 16587 $this.windowResized(); |
| 16588 var $$list = $this.contentView.get$node().queryAll("img"); |
| 16589 for (var $$i = $$list.iterator$0(); $$i.hasNext$0(); ) { |
| 16590 var img = $$i.next$0(); |
| 16591 if (!img.get$complete()) { |
| 16592 img.get$on().get$load().add$1((function (e) { |
| 16593 $this._updatePageCount(to$call$0(null)); |
| 16594 }) |
| 16595 ); |
| 16596 } |
| 16597 } |
| 16598 $this.watch($this.pages.target, (function (s) { |
| 16599 return $this._view_onPageSelected(); |
| 16600 }) |
| 16601 ); |
| 16602 $this.watch($this.pages.length, (function (s) { |
| 16603 return $this._view_onPageSelected(); |
| 16604 }) |
| 16605 ); |
| 16606 }) |
| 16607 ); |
| 16608 } |
| 16609 PagedColumnView.prototype._computeColumnGap = function(style) { |
| 16610 var gap = style.get$columnGap(); |
| 16611 if (gap == "normal") { |
| 16612 gap = style.get$fontSize(); |
| 16613 } |
| 16614 this._columnGap = PagedColumnView._toPixels(gap, "column-gap or font-size"); |
| 16615 this._columnWidth = PagedColumnView._toPixels(style.get$columnWidth(), "column
-width"); |
| 16616 } |
| 16617 PagedColumnView._toPixels = function(value, message) { |
| 16618 if (value.endsWith("px")) { |
| 16619 value = value.substring((0), value.length - (2)); |
| 16620 } |
| 16621 return Math.parseDouble(value).round().toInt(); |
| 16622 } |
| 16623 PagedColumnView.prototype.windowResized = function() { |
| 16624 var $this = this; // closure support |
| 16625 this.get$node().get$rect().then((function (rect) { |
| 16626 $this.contentView.get$node().get$style().set$height(("" + rect.offset.get$he
ight() + "px")); |
| 16627 }) |
| 16628 ); |
| 16629 this._updatePageCount(to$call$0(null)); |
| 16630 } |
| 16631 PagedColumnView.prototype._updatePageCount = function(callback) { |
| 16632 var $this = this; // closure support |
| 16633 var pageLength = (1); |
| 16634 this._container.get$rect().then((function (rect) { |
| 16635 if (rect.scroll.get$width() > rect.offset.get$width()) { |
| 16636 pageLength = (rect.scroll.get$width() / $this._computePageSize(rect)).ceil
().toInt(); |
| 16637 } |
| 16638 pageLength = Math.max(pageLength, (1)); |
| 16639 var oldPage = $this.pages.target.get$value(); |
| 16640 var newPage = Math.min(oldPage, pageLength - (1)); |
| 16641 if (oldPage == newPage) { |
| 16642 $this.pages.target.set$value((0)); |
| 16643 } |
| 16644 $this.pages.target.set$value(newPage); |
| 16645 $this.pages.length.set$value(pageLength); |
| 16646 if (callback != null) { |
| 16647 callback.call$0(); |
| 16648 } |
| 16649 }) |
| 16650 ); |
| 16651 } |
| 16652 PagedColumnView.prototype._onContentMoved = function(e) { |
| 16653 var $this = this; // closure support |
| 16654 this._container.get$rect().then((function (rect) { |
| 16655 var current = $this.scroller.get$contentOffset().x; |
| 16656 var pageSize = $this._computePageSize(rect); |
| 16657 $this.pages.current.set$value(-(current / pageSize).round().toInt()); |
| 16658 }) |
| 16659 ); |
| 16660 } |
| 16661 PagedColumnView.prototype.get$_onContentMoved = function() { |
| 16662 return this._onContentMoved.bind(this); |
| 16663 } |
| 16664 PagedColumnView.prototype._snapToPage = function(e) { |
| 16665 var $this = this; // closure support |
| 16666 var current = this.scroller.get$contentOffset().x; |
| 16667 var currentTarget = this.scroller.get$currentTarget().x; |
| 16668 this._container.get$rect().then((function (rect) { |
| 16669 var pageSize = $this._computePageSize(rect); |
| 16670 var destination; |
| 16671 var currentPageNumber = -(current / pageSize).round(); |
| 16672 var pageNumber = -currentTarget / pageSize; |
| 16673 if (current == currentTarget) { |
| 16674 pageNumber = pageNumber.round(); |
| 16675 } |
| 16676 else { |
| 16677 if (currentPageNumber == pageNumber.round() && (pageNumber - currentPageNu
mber).abs() > (0.01) && -current + $this._viewportSize < $this._getViewLength(re
ct) && current < (0)) { |
| 16678 pageNumber = currentTarget < current ? currentPageNumber + (1) : current
PageNumber - (1); |
| 16679 } |
| 16680 else { |
| 16681 pageNumber = pageNumber.round(); |
| 16682 } |
| 16683 } |
| 16684 pageNumber = pageNumber.toInt(); |
| 16685 var translate = -pageNumber * pageSize; |
| 16686 $this.pages.current.set$value(pageNumber); |
| 16687 if (currentTarget != translate) { |
| 16688 $this.scroller.throwTo(translate, (0)); |
| 16689 } |
| 16690 else { |
| 16691 $this.pages.target.set$value(pageNumber); |
| 16692 } |
| 16693 }) |
| 16694 ); |
| 16695 } |
| 16696 PagedColumnView.prototype.get$_snapToPage = function() { |
| 16697 return this._snapToPage.bind(this); |
| 16698 } |
| 16699 PagedColumnView.prototype._computePageSize = function(rect) { |
| 16700 this._viewportSize = rect.offset.get$width(); |
| 16701 var perPage = Math.max((1), $truncdiv((this._viewportSize + this._columnGap),
(this._columnWidth + this._columnGap))); |
| 16702 var columnSize = $truncdiv((this._viewportSize - (perPage - (1)) * this._colum
nGap), perPage); |
| 16703 return perPage * (columnSize + this._columnGap); |
| 16704 } |
| 16705 PagedColumnView.prototype._view_onPageSelected = function() { |
| 16706 var $this = this; // closure support |
| 16707 this._container.get$rect().then((function (rect) { |
| 16708 var translate = -$this.pages.target.get$value() * $this._computePageSize(rec
t); |
| 16709 $this.scroller.throwTo(translate, (0)); |
| 16710 }) |
| 16711 ); |
| 16712 } |
| 16713 // ********** Code for SliderMenu ************** |
| 16714 $inherits(SliderMenu, View); |
| 16715 function SliderMenu(_menuItems, onSelect) { |
| 16716 this._menuItems = _menuItems; |
| 16717 this.onSelect = onSelect; |
| 16718 View.call(this); |
| 16719 } |
| 16720 SliderMenu.prototype.render = function() { |
| 16721 var items = new StringBufferImpl(""); |
| 16722 var $$list = this._menuItems; |
| 16723 for (var $$i = 0;$$i < $$list.get$length(); $$i++) { |
| 16724 var item = $$list.$index($$i); |
| 16725 items.add$1(("<div class=\"sm-item\">" + item + "</div>")); |
| 16726 } |
| 16727 return ElementWrappingImplementation.ElementWrappingImplementation$html$factor
y((" <div class=\"sm-root\">\n <div class=\"sm-item-box\">\n
<div class=\"sm-item-filler\"></div>\n " + items + "\n
<div class=\"sm-item-filler\"></div>\n </div>\n <div clas
s=\"sm-slider-box\">\n <div class=\"sm-triangle\"></div>\n <
/div>\n </div>\n ")); |
| 16728 } |
| 16729 SliderMenu.prototype.enterDocument = function() { |
| 16730 var $this = this; // closure support |
| 16731 this.selectItem(this.get$node().query(".sm-item"), false); |
| 16732 if (Device.get$supportsTouch()) { |
| 16733 this.get$node().get$on().get$touchStart().add$1((function (event) { |
| 16734 $this.touchItem = $this.itemOfTouchEvent(event); |
| 16735 if ($this.touchItem != null) { |
| 16736 $this.selectItemText($this.touchItem); |
| 16737 } |
| 16738 event.preventDefault$0(); |
| 16739 }) |
| 16740 ); |
| 16741 this.get$node().get$on().get$touchEnd().add$1((function (event) { |
| 16742 if ($this.touchItem != null) { |
| 16743 if ($eq($this.itemOfTouchEvent(event), $this.touchItem)) { |
| 16744 $this.selectItem($this.touchItem, true); |
| 16745 } |
| 16746 else { |
| 16747 $this.selectItemText($this.selectedItem); |
| 16748 } |
| 16749 $this.touchItem = null; |
| 16750 } |
| 16751 event.preventDefault$0(); |
| 16752 }) |
| 16753 ); |
| 16754 } |
| 16755 else { |
| 16756 this.get$node().get$on().get$click().add$1((function (event) { |
| 16757 return $this.selectItem(event.get$target(), true); |
| 16758 }) |
| 16759 ); |
| 16760 } |
| 16761 html_get$window().get$on().get$resize().add((function (event) { |
| 16762 return $this.updateIndicator(false); |
| 16763 }) |
| 16764 , false); |
| 16765 } |
| 16766 SliderMenu.prototype.itemOfTouchEvent = function(event) { |
| 16767 var node = event.get$changedTouches().$index((0)).get$target(); |
| 16768 return this.itemOfNode(node); |
| 16769 } |
| 16770 SliderMenu.prototype.itemOfNode = function(node) { |
| 16771 while (node != null && $ne(node, html_get$document())) { |
| 16772 if (!!(node && node.is$html_html_Element())) { |
| 16773 var element = node; |
| 16774 if (element.get$classes().contains("sm-item")) { |
| 16775 return element; |
| 16776 } |
| 16777 } |
| 16778 node = node.get$parent(); |
| 16779 } |
| 16780 return null; |
| 16781 } |
| 16782 SliderMenu.prototype.selectItemText = function(item) { |
| 16783 var $$list = this.get$node().queryAll(".sm-item"); |
| 16784 for (var $$i = $$list.iterator$0(); $$i.hasNext$0(); ) { |
| 16785 var sliderItem = $$i.next$0(); |
| 16786 sliderItem.get$classes().remove$1("sel"); |
| 16787 } |
| 16788 item.get$classes().add("sel"); |
| 16789 } |
| 16790 SliderMenu.prototype.selectItem = function(item, animate) { |
| 16791 if (!item.get$classes().contains("sm-item")) { |
| 16792 return; |
| 16793 } |
| 16794 this.selectedItem = item; |
| 16795 this.selectItemText(item); |
| 16796 this.updateIndicator(animate); |
| 16797 this.onSelect.call$1(item.get$text()); |
| 16798 } |
| 16799 SliderMenu.prototype.selectNext = function(animate) { |
| 16800 var result = this.get$node().query(".sm-item.sel").get$nextElementSibling(); |
| 16801 if (result != null) { |
| 16802 this.selectItem(result, animate); |
| 16803 } |
| 16804 } |
| 16805 SliderMenu.prototype.selectPrevious = function(animate) { |
| 16806 var result = this.get$node().query(".sm-item.sel").get$previousElementSibling(
); |
| 16807 if (result != null) { |
| 16808 this.selectItem(result, animate); |
| 16809 } |
| 16810 } |
| 16811 SliderMenu.prototype.updateIndicator = function(animate) { |
| 16812 var $this = this; // closure support |
| 16813 if (this.selectedItem != null) { |
| 16814 this.selectedItem.get$rect().then((function (rect) { |
| 16815 var x = rect.offset.get$left() + rect.offset.get$width() / (2) - (12); |
| 16816 $this._moveIndicator(x, animate); |
| 16817 }) |
| 16818 ); |
| 16819 } |
| 16820 else { |
| 16821 this._moveIndicator((0), animate); |
| 16822 } |
| 16823 } |
| 16824 SliderMenu.prototype._moveIndicator = function(x, animate) { |
| 16825 var duration = animate ? ".3s" : "0s"; |
| 16826 var triangle = this.get$node().query(".sm-triangle"); |
| 16827 triangle.get$style().set$transitionDuration(duration); |
| 16828 FxUtil.setWebkitTransform(triangle, x, (0), (0)); |
| 16829 } |
| 16830 // ********** Code for top level ************** |
| 16831 // ********** Library swarmlib ************** |
| 16832 // ********** Code for App ************** |
| 16833 function App() { |
| 16834 |
| 16835 } |
| 16836 App.prototype.run = function() { |
| 16837 var $this = this; // closure support |
| 16838 if (html_get$document().get$readyState() == "interactive" || html_get$document
().get$readyState() == "complete" || html_get$document().get$readyState() == "lo
aded") { |
| 16839 html_get$window().setTimeout((function () { |
| 16840 return $this.onLoad(); |
| 16841 }) |
| 16842 , (0)); |
| 16843 } |
| 16844 else { |
| 16845 html_get$window().get$on().get$contentLoaded().add(to$call$1(EventBatch.wrap
((function (event) { |
| 16846 return $this.onLoad(); |
| 16847 }) |
| 16848 )), false); |
| 16849 } |
| 16850 } |
| 16851 App.prototype.onLoad = function() { |
| 16852 var $this = this; // closure support |
| 16853 html_get$document().get$on().get$touchMove().add((function (event) { |
| 16854 return event.preventDefault(); |
| 16855 }) |
| 16856 , false); |
| 16857 if (!this.swapAndReloadCache()) { |
| 16858 html_get$window().get$applicationCache().get$on().get$updateReady().add((fun
ction (e) { |
| 16859 return $this.swapAndReloadCache(); |
| 16860 }) |
| 16861 , false); |
| 16862 } |
| 16863 } |
| 16864 App.prototype.eraseSplashScreen = function() { |
| 16865 var splash = html_get$document().query("#appSplash"); |
| 16866 if (splash != null) { |
| 16867 splash.remove$0(); |
| 16868 } |
| 16869 } |
| 16870 App.prototype.swapAndReloadCache = function() { |
| 16871 var appCache = html_get$window().get$applicationCache(); |
| 16872 if (appCache.get$status() != (4)) { |
| 16873 return false; |
| 16874 } |
| 16875 dart_core_print("App cache update ready, now swapping..."); |
| 16876 html_get$window().get$applicationCache().swapCache(); |
| 16877 dart_core_print("App cache swapped, now reloading page..."); |
| 16878 html_get$window().get$location().reload(); |
| 16879 return true; |
| 16880 } |
| 16881 // ********** Code for BiIterator ************** |
| 16882 function BiIterator(list, oldListeners) { |
| 16883 this.currentIndex = new ObservableValue_int((0)); |
| 16884 this.list = list; |
| 16885 if (oldListeners != null) { |
| 16886 this.currentIndex.listeners = oldListeners; |
| 16887 } |
| 16888 } |
| 16889 BiIterator.prototype.next = function() { |
| 16890 var $0; |
| 16891 if (this.currentIndex.get$value() < this.list.get$length() - (1)) { |
| 16892 ($0 = this.currentIndex).set$value($0.get$value() + (1)); |
| 16893 } |
| 16894 return this.list.$index(this.currentIndex.get$value()); |
| 16895 } |
| 16896 BiIterator.prototype.get$current = function() { |
| 16897 return this.list.$index(this.currentIndex.get$value()); |
| 16898 } |
| 16899 BiIterator.prototype.previous = function() { |
| 16900 var $0; |
| 16901 if (this.currentIndex.get$value() > (0)) { |
| 16902 ($0 = this.currentIndex).set$value($0.get$value() - (1)); |
| 16903 } |
| 16904 return this.list.$index(this.currentIndex.get$value()); |
| 16905 } |
| 16906 BiIterator.prototype.jumpToValue = function(val) { |
| 16907 for (var i = (0); |
| 16908 i < this.list.get$length(); i++) { |
| 16909 if (this.list.$index(i) == val) { |
| 16910 this.currentIndex.set$value(i); |
| 16911 break; |
| 16912 } |
| 16913 } |
| 16914 } |
| 16915 BiIterator.prototype.next$0 = BiIterator.prototype.next; |
| 16916 // ********** Code for BiIterator_Article ************** |
| 16917 $inherits(BiIterator_Article, BiIterator); |
| 16918 function BiIterator_Article(list, oldListeners) { |
| 16919 this.currentIndex = new ObservableValue_int((0)); |
| 16920 this.list = list; |
| 16921 if (oldListeners != null) { |
| 16922 this.currentIndex.listeners = oldListeners; |
| 16923 } |
| 16924 } |
| 16925 BiIterator_Article.prototype.next = function() { |
| 16926 var $0; |
| 16927 if (this.currentIndex.get$value() < this.list.get$length() - (1)) { |
| 16928 ($0 = this.currentIndex).set$value($0.get$value() + (1)); |
| 16929 } |
| 16930 return this.list.$index(this.currentIndex.get$value()); |
| 16931 } |
| 16932 BiIterator_Article.prototype.previous = function() { |
| 16933 var $0; |
| 16934 if (this.currentIndex.get$value() > (0)) { |
| 16935 ($0 = this.currentIndex).set$value($0.get$value() - (1)); |
| 16936 } |
| 16937 return this.list.$index(this.currentIndex.get$value()); |
| 16938 } |
| 16939 BiIterator_Article.prototype.jumpToValue = function(val) { |
| 16940 for (var i = (0); |
| 16941 i < this.list.get$length(); i++) { |
| 16942 if (this.list.$index(i) == val) { |
| 16943 this.currentIndex.set$value(i); |
| 16944 break; |
| 16945 } |
| 16946 } |
| 16947 } |
| 16948 // ********** Code for BiIterator_Feed ************** |
| 16949 $inherits(BiIterator_Feed, BiIterator); |
| 16950 function BiIterator_Feed(list, oldListeners) { |
| 16951 this.currentIndex = new ObservableValue_int((0)); |
| 16952 this.list = list; |
| 16953 if (oldListeners != null) { |
| 16954 this.currentIndex.listeners = oldListeners; |
| 16955 } |
| 16956 } |
| 16957 BiIterator_Feed.prototype.next = function() { |
| 16958 var $0; |
| 16959 if (this.currentIndex.get$value() < this.list.get$length() - (1)) { |
| 16960 ($0 = this.currentIndex).set$value($0.get$value() + (1)); |
| 16961 } |
| 16962 return this.list.$index(this.currentIndex.get$value()); |
| 16963 } |
| 16964 BiIterator_Feed.prototype.previous = function() { |
| 16965 var $0; |
| 16966 if (this.currentIndex.get$value() > (0)) { |
| 16967 ($0 = this.currentIndex).set$value($0.get$value() - (1)); |
| 16968 } |
| 16969 return this.list.$index(this.currentIndex.get$value()); |
| 16970 } |
| 16971 BiIterator_Feed.prototype.jumpToValue = function(val) { |
| 16972 for (var i = (0); |
| 16973 i < this.list.get$length(); i++) { |
| 16974 if (this.list.$index(i) == val) { |
| 16975 this.currentIndex.set$value(i); |
| 16976 break; |
| 16977 } |
| 16978 } |
| 16979 } |
| 16980 // ********** Code for BiIterator_Section ************** |
| 16981 $inherits(BiIterator_Section, BiIterator); |
| 16982 function BiIterator_Section(list, oldListeners) { |
| 16983 this.currentIndex = new ObservableValue_int((0)); |
| 16984 this.list = list; |
| 16985 if (oldListeners != null) { |
| 16986 this.currentIndex.listeners = oldListeners; |
| 16987 } |
| 16988 } |
| 16989 BiIterator_Section.prototype.jumpToValue = function(val) { |
| 16990 for (var i = (0); |
| 16991 i < this.list.get$length(); i++) { |
| 16992 if (this.list.$index(i) == val) { |
| 16993 this.currentIndex.set$value(i); |
| 16994 break; |
| 16995 } |
| 16996 } |
| 16997 } |
| 16998 // ********** Code for DialogView ************** |
| 16999 $inherits(DialogView, View); |
| 17000 function DialogView(_title, _cssName, _content) { |
| 17001 this._content = _content; |
| 17002 this._title = _title; |
| 17003 this._cssName = _cssName; |
| 17004 View.call(this); |
| 17005 } |
| 17006 DialogView.prototype.render = function() { |
| 17007 var $this = this; // closure support |
| 17008 var node = ElementWrappingImplementation.ElementWrappingImplementation$html$fa
ctory((" <div class=\"dialog-modal\">\n <div class=\"dialog " + this
._cssName + "\">\n <div class=\"dialog-title-area\">\n <span
class=\"dialog-title\">" + this._title + "</span>\n </div>\n
<div class=\"dialog-body\"></div>\n </div>\n </div>")); |
| 17009 this._done = new PushButtonView("Done", "done-button", EventBatch.wrap((functi
on (e) { |
| 17010 return $this.onDone(); |
| 17011 }) |
| 17012 )); |
| 17013 var titleArea = node.query$1(".dialog-title-area"); |
| 17014 titleArea.get$nodes().add$1(this._done.get$node()); |
| 17015 this.container = node.query$1(".dialog-body"); |
| 17016 this.container.get$nodes().add$1(this._content.get$node()); |
| 17017 return node; |
| 17018 } |
| 17019 DialogView.prototype.onDone = function() { |
| 17020 |
| 17021 } |
| 17022 // ********** Code for ConfigHintDialog ************** |
| 17023 $inherits(ConfigHintDialog, DialogView); |
| 17024 function ConfigHintDialog() {} |
| 17025 ConfigHintDialog._impl$ctor = function(_parent, _doneHandler, content) { |
| 17026 this._doneHandler = _doneHandler; |
| 17027 this._parent = _parent; |
| 17028 DialogView.call(this, "Feed configuration", "", content); |
| 17029 } |
| 17030 ConfigHintDialog._impl$ctor.prototype = ConfigHintDialog.prototype; |
| 17031 ConfigHintDialog.ConfigHintDialog$factory = function(parent, doneHandler) { |
| 17032 var content = ConfigHintDialog.makeContent(); |
| 17033 return new ConfigHintDialog._impl$ctor(parent, doneHandler, content); |
| 17034 } |
| 17035 ConfigHintDialog.prototype.onDone = function() { |
| 17036 this._doneHandler.call$0(); |
| 17037 } |
| 17038 ConfigHintDialog.makeContent = function() { |
| 17039 return new View.html$ctor(" <div>\n Add or remove feeds in\n
<a href=\"https://www.google.com/reader\" target=\"_blank\">\n
Google Reader</a>'s \"Subscriptions\".\n Then come back here and clic
k \"Done\" and we'll load your updated\n list of subscriptions.\n
</div>\n "); |
| 17040 } |
| 17041 // ********** Code for HelpDialog ************** |
| 17042 $inherits(HelpDialog, DialogView); |
| 17043 function HelpDialog(_parent, _doneHandler) { |
| 17044 this._doneHandler = _doneHandler; |
| 17045 this._parent = _parent; |
| 17046 DialogView.call(this, "Information", "", HelpDialog.makeContent()); |
| 17047 } |
| 17048 HelpDialog.prototype.onDone = function() { |
| 17049 this._doneHandler.call$0(); |
| 17050 } |
| 17051 HelpDialog.makeContent = function() { |
| 17052 return new View.html$ctor((" <div>\n \n <p>\n
Keyboard shortcuts: \n " + HelpDialog.generateTableHtml() + " \n
</p>\n\n <p>\n <div id=\"dart-logo\"> \n <a href
=\"http://dartlang.org\">\n Dart, the programming language</a>.\n
</div>\n </p>\n </div>\n ")); |
| 17053 } |
| 17054 HelpDialog.generateTableHtml = function() { |
| 17055 var cellStart = "<th valign=\"middle\" align=\"center\">"; |
| 17056 return ("<table width=\"90%\" border=1 cellspacing=\"0\" cellpadding=\"2\">\n
<tr bgcolor=\"#c3d9ff\"> \n " + cellStart + " Shortcut K
ey </th>\n " + cellStart + " Action </th>\n </tr>\n
<tr>\n " + cellStart + " j, <down arrow> </th>\n
" + cellStart + " Next Article </th>\n </tr>\n <tr
>\n " + cellStart + " k, <up arrow> </th>\n " +
cellStart + " Previous Article </th>\n </tr>\n <tr>\n
" + cellStart + " o, <enter> </th>\n " + cellStart +
" Open Article </th>\n </tr>\n <tr>\n " + ce
llStart + " <esc>, <delete> </th>\n " + cellStart + " B
ack </th>\n </tr>\n <tr>\n " + cellStart + "
a, h, <left arrow> </th>\n " + cellStart + " Left </th>\n
</tr>\n <tr>\n " + cellStart + " d, l, <right
arrow> </th>\n " + cellStart + " Right </th>\n </tr>
\n <tr>\n " + cellStart + " n </th>\n " + c
ellStart + " Next Category </th>\n </tr>\n <tr>\n
" + cellStart + " p </th>\n " + cellStart + " Previous Categor
y </th>\n </tr>\n\n </table>"); |
| 17057 } |
| 17058 // ********** Code for UIState ************** |
| 17059 function UIState() { |
| 17060 |
| 17061 } |
| 17062 UIState.prototype.startHistoryTracking = function() { |
| 17063 var $this = this; // closure support |
| 17064 this.stopHistoryTracking(); |
| 17065 var firstEvent = true; |
| 17066 this._historyTracking = to$call$1(EventBatch.wrap((function (event) { |
| 17067 var state = html_get$window().get$location().get$hash(); |
| 17068 if (state.startsWith("#")) { |
| 17069 state = state.substring((1), state.length); |
| 17070 } |
| 17071 if (firstEvent && state != "") { |
| 17072 html_get$window().get$history().replaceState(null, html_get$document().get
$title(), "#"); |
| 17073 } |
| 17074 else if (state != "") { |
| 17075 $this.loadFromHistory(json_JSON.parse(state)); |
| 17076 } |
| 17077 firstEvent = false; |
| 17078 }) |
| 17079 )); |
| 17080 html_get$window().get$on().get$popState().add(this._historyTracking, false); |
| 17081 } |
| 17082 UIState.prototype.stopHistoryTracking = function() { |
| 17083 if (this._historyTracking != null) { |
| 17084 html_get$window().get$on().get$popState().add(this._historyTracking, false); |
| 17085 } |
| 17086 } |
| 17087 UIState.prototype.pushToHistory = function() { |
| 17088 if (this._historyTracking == null) { |
| 17089 $throw("history tracking not started"); |
| 17090 } |
| 17091 var state = json_JSON.stringify(this.toHistory()); |
| 17092 html_get$window().get$history().pushState(null, html_get$document().get$title(
), "#" + state); |
| 17093 } |
| 17094 // ********** Code for SwarmState ************** |
| 17095 $inherits(SwarmState, UIState); |
| 17096 function SwarmState(_dataModel) { |
| 17097 var $this = this; // closure support |
| 17098 this._dataModel = _dataModel; |
| 17099 this.currentArticle = new ObservableValue_Article(); |
| 17100 this.storyMaximized = new ObservableValue_bool(false); |
| 17101 this.storyTextMode = new ObservableValue_bool(true); |
| 17102 this.selectedArticle = new ObservableValue_Article(); |
| 17103 UIState.call(this); |
| 17104 this.startHistoryTracking(); |
| 17105 this._sectionIterator = new BiIterator_Section(this._dataModel.get$sections())
; |
| 17106 this._feedIterator = new BiIterator_Feed(this._sectionIterator.get$current().f
eeds); |
| 17107 this._articleIterator = new BiIterator_Article(this._feedIterator.get$current(
).articles); |
| 17108 this.currentArticle.addChangeListener((function (e) { |
| 17109 $this._articleIterator.jumpToValue($this.currentArticle.get$value()); |
| 17110 }) |
| 17111 ); |
| 17112 } |
| 17113 SwarmState.prototype.toHistory = function() { |
| 17114 var data = new HashMapImplementation(); |
| 17115 data.$setindex("section", this.get$currentSection().id); |
| 17116 data.$setindex("feed", this.get$currentFeed().id); |
| 17117 if (this.currentArticle.get$value() != null) { |
| 17118 data.$setindex("article", this.currentArticle.get$value().id); |
| 17119 } |
| 17120 return data; |
| 17121 } |
| 17122 SwarmState.prototype.loadFromHistory = function(values) { |
| 17123 if (values.$index("section") != null) { |
| 17124 this._sectionIterator.jumpToValue(this._dataModel.findSectionById(values.$in
dex("section"))); |
| 17125 } |
| 17126 else { |
| 17127 this._sectionIterator = new BiIterator_Section(this._dataModel.get$sections(
)); |
| 17128 } |
| 17129 if (values.$index("feed") != null && this.get$currentSection() != null) { |
| 17130 this._feedIterator.jumpToValue(this.get$currentSection().findFeed(values.$in
dex("feed"))); |
| 17131 } |
| 17132 else { |
| 17133 this._feedIterator = new BiIterator_Feed(this._sectionIterator.get$current()
.feeds); |
| 17134 } |
| 17135 if (values.$index("article") != null && this.get$currentFeed() != null) { |
| 17136 this.currentArticle.set$value(this.get$currentFeed().findArticle(values.$ind
ex("article"))); |
| 17137 this._articleIterator.jumpToValue(this.currentArticle.get$value()); |
| 17138 } |
| 17139 else { |
| 17140 this._articleIterator = new BiIterator_Article(this._feedIterator.get$curren
t().articles); |
| 17141 this.currentArticle.set$value(null); |
| 17142 } |
| 17143 this.storyMaximized.set$value(false); |
| 17144 } |
| 17145 SwarmState.prototype.goToNextArticle = function() { |
| 17146 this.currentArticle.set$value(this._articleIterator.next()); |
| 17147 this.selectedArticle.set$value(this._articleIterator.get$current()); |
| 17148 } |
| 17149 SwarmState.prototype.goToPreviousArticle = function() { |
| 17150 this.currentArticle.set$value(this._articleIterator.previous()); |
| 17151 this.selectedArticle.set$value(this._articleIterator.get$current()); |
| 17152 } |
| 17153 SwarmState.prototype.goToNextSelectedArticle = function() { |
| 17154 this.selectedArticle.set$value(this._articleIterator.next()); |
| 17155 } |
| 17156 SwarmState.prototype.goToPreviousSelectedArticle = function() { |
| 17157 this.selectedArticle.set$value(this._articleIterator.previous()); |
| 17158 } |
| 17159 SwarmState.prototype.goToNextFeed = function() { |
| 17160 var newFeed = this._feedIterator.next(); |
| 17161 var oldIndex = this._articleIterator.currentIndex.get$value(); |
| 17162 this._articleIterator = new BiIterator_Article(newFeed.get$articles(), this._a
rticleIterator.currentIndex.listeners); |
| 17163 this._articleIterator.currentIndex.set$value(oldIndex); |
| 17164 this.selectedArticle.set$value(this._articleIterator.get$current()); |
| 17165 } |
| 17166 SwarmState.prototype.goToPreviousFeed = function() { |
| 17167 var newFeed = this._feedIterator.previous(); |
| 17168 var oldIndex = this._articleIterator.currentIndex.get$value(); |
| 17169 this._articleIterator = new BiIterator_Article(newFeed.get$articles(), this._a
rticleIterator.currentIndex.listeners); |
| 17170 this._articleIterator.currentIndex.set$value(oldIndex); |
| 17171 this.selectedArticle.set$value(this._articleIterator.get$current()); |
| 17172 } |
| 17173 SwarmState.prototype.goToNextSection = function(sliderMenu) { |
| 17174 var oldSection = this.get$currentSection(); |
| 17175 var oldIndex = this._articleIterator.currentIndex.get$value(); |
| 17176 sliderMenu.selectNext(true); |
| 17177 if ($ne(oldSection, this._sectionIterator.get$current())) { |
| 17178 this._feedIterator = new BiIterator_Feed(this._sectionIterator.get$current()
.feeds, this._feedIterator.currentIndex.listeners); |
| 17179 this._articleIterator = new BiIterator_Article(this._feedIterator.get$curren
t().articles, this._articleIterator.currentIndex.listeners); |
| 17180 this._articleIterator.currentIndex.set$value(oldIndex); |
| 17181 this.selectedArticle.set$value(this._articleIterator.get$current()); |
| 17182 } |
| 17183 } |
| 17184 SwarmState.prototype.goToPreviousSection = function(sliderMenu) { |
| 17185 var oldSection = this.get$currentSection(); |
| 17186 var oldIndex = this._articleIterator.currentIndex.get$value(); |
| 17187 sliderMenu.selectPrevious(true); |
| 17188 if ($ne(oldSection, this._sectionIterator.get$current())) { |
| 17189 this._feedIterator = new BiIterator_Feed(this._sectionIterator.get$current()
.feeds, this._feedIterator.currentIndex.listeners); |
| 17190 this._feedIterator.currentIndex.set$value(this._feedIterator.list.get$length
() - (1)); |
| 17191 this._articleIterator = new BiIterator_Article(this._feedIterator.get$curren
t().articles, this._articleIterator.currentIndex.listeners); |
| 17192 this._articleIterator.currentIndex.set$value(oldIndex); |
| 17193 this.selectedArticle.set$value(this._articleIterator.get$current()); |
| 17194 } |
| 17195 } |
| 17196 SwarmState.prototype.selectStoryAsCurrent = function() { |
| 17197 this.currentArticle.set$value(this._articleIterator.get$current()); |
| 17198 this.selectedArticle.set$value(this._articleIterator.get$current()); |
| 17199 } |
| 17200 SwarmState.prototype.clearCurrentArticle = function() { |
| 17201 this.currentArticle.set$value(null); |
| 17202 } |
| 17203 SwarmState.prototype.goToFirstArticleInSection = function() { |
| 17204 this.selectedArticle.set$value(this._articleIterator.get$current()); |
| 17205 } |
| 17206 SwarmState.prototype.get$inMainView = function() { |
| 17207 return this.currentArticle.get$value() == null; |
| 17208 } |
| 17209 SwarmState.prototype.get$hasArticleSelected = function() { |
| 17210 return this.selectedArticle.get$value() != null; |
| 17211 } |
| 17212 SwarmState.prototype.markCurrentAsRead = function() { |
| 17213 this.currentArticle.get$value().unread.set$value(false); |
| 17214 } |
| 17215 SwarmState.prototype.moveToNewSection = function(sectionTitle) { |
| 17216 this._sectionIterator.currentIndex.set$value(this._dataModel.findSectionIndex(
sectionTitle)); |
| 17217 this._feedIterator = new BiIterator_Feed(this._sectionIterator.get$current().f
eeds, this._feedIterator.currentIndex.listeners); |
| 17218 this._articleIterator = new BiIterator_Article(this._feedIterator.get$current(
).articles, this._articleIterator.currentIndex.listeners); |
| 17219 } |
| 17220 SwarmState.prototype.get$currentSection = function() { |
| 17221 return this._sectionIterator.get$current(); |
| 17222 } |
| 17223 SwarmState.prototype.get$currentFeed = function() { |
| 17224 return this._feedIterator.get$current(); |
| 17225 } |
| 17226 // ********** Code for FrontView ************** |
| 17227 $inherits(FrontView, CompositeView); |
| 17228 function FrontView(swarm) { |
| 17229 var $this = this; // closure support |
| 17230 this.backKeyPresses = HashSetImplementation.HashSetImplementation$from$factory
([(8), (27)]); |
| 17231 this.rightKeyPresses = HashSetImplementation.HashSetImplementation$from$factor
y([(39), (68), (76)]); |
| 17232 this.swarm = swarm; |
| 17233 this.previousPageKeyPresses = HashSetImplementation.HashSetImplementation$from
$factory([(80)]); |
| 17234 this.nextPageKeyPresses = HashSetImplementation.HashSetImplementation$from$fac
tory([(78)]); |
| 17235 this.leftKeyPresses = HashSetImplementation.HashSetImplementation$from$factory
([(37), (65), (72)]); |
| 17236 this.openKeyPresses = HashSetImplementation.HashSetImplementation$from$factory
([(13), (79)]); |
| 17237 this.nextPrevShown = false; |
| 17238 this.downKeyPresses = HashSetImplementation.HashSetImplementation$from$factory
([(74), (40)]); |
| 17239 this.upKeyPresses = HashSetImplementation.HashSetImplementation$from$factory([
(75), (38)]); |
| 17240 CompositeView.call(this, "front-view fullpage", false, false, false, false); |
| 17241 this.topView = new CompositeView("top-view", false, false, false, false); |
| 17242 this.headerView = new HeaderView(this.swarm); |
| 17243 this.topView.addChild(this.headerView); |
| 17244 this.sliderMenu = new SliderMenu(this.swarm.sections.get$sectionTitles(), (fun
ction (sectionTitle) { |
| 17245 $this.swarm.state.moveToNewSection(sectionTitle); |
| 17246 $this._onSectionSelected(sectionTitle); |
| 17247 $this.swarm.state.selectedArticle.set$value(null); |
| 17248 }) |
| 17249 ); |
| 17250 this.topView.addChild(this.sliderMenu); |
| 17251 this.addChild(this.topView); |
| 17252 this.bottomView = new CompositeView("bottom-view", false, false, false, false)
; |
| 17253 this.addChild(this.bottomView); |
| 17254 this.sections = new ConveyorView(); |
| 17255 this.sections.viewSelected = this.get$_onSectionTransitionEnded(); |
| 17256 } |
| 17257 FrontView.prototype.get$currentSection = function() { |
| 17258 var view = this.sections.selectedView; |
| 17259 if (view == null) { |
| 17260 view = this.sections.childViews.$index((0)); |
| 17261 this.sections.selectView(view, true); |
| 17262 } |
| 17263 return view; |
| 17264 } |
| 17265 FrontView.prototype.afterRender = function(node) { |
| 17266 var $this = this; // closure support |
| 17267 this._createSectionViews(); |
| 17268 this.attachWatch(this.swarm.state.currentArticle, (function (e) { |
| 17269 $this._refreshCurrentArticle(); |
| 17270 }) |
| 17271 ); |
| 17272 this.attachWatch(this.swarm.state.storyMaximized, (function (e) { |
| 17273 $this._refreshMaximized(); |
| 17274 }) |
| 17275 ); |
| 17276 } |
| 17277 FrontView.prototype._refreshCurrentArticle = function() { |
| 17278 if (!this.swarm.state.get$inMainView()) { |
| 17279 this._animateToStory(this.swarm.state.currentArticle.get$value()); |
| 17280 } |
| 17281 else { |
| 17282 this._animateToMainView(); |
| 17283 } |
| 17284 } |
| 17285 FrontView.prototype._animateToMainView = function() { |
| 17286 var $this = this; // closure support |
| 17287 this.sliderMenu.removeClass("hidden"); |
| 17288 this.storyView.addClass("hidden-story"); |
| 17289 this.get$currentSection().set$storyMode(false); |
| 17290 this.headerView.startTransitionToMainView(); |
| 17291 this.get$currentSection().dataSourceView.reattachSubview(this.detachedView.sou
rce, this.detachedView, true); |
| 17292 this.storyView.get$node().get$on().get$transitionEnd().add$1(function handler(
e) { |
| 17293 $this.storyView.get$node().get$on().get$transitionEnd().remove$2(handler, fa
lse); |
| 17294 $this.get$currentSection().set$hidden(false); |
| 17295 $this.removeChild($this.storyView); |
| 17296 $this.storyView = null; |
| 17297 $this.detachedView.removeClass("sel"); |
| 17298 $this.detachedView = null; |
| 17299 } |
| 17300 ); |
| 17301 } |
| 17302 FrontView.prototype._animateToStory = function(item) { |
| 17303 var $this = this; // closure support |
| 17304 var source = item.dataSource; |
| 17305 if (this.detachedView != null && $ne(this.detachedView.source, source)) { |
| 17306 return; |
| 17307 } |
| 17308 if (this.storyView != null) { |
| 17309 this.removeChild(this.storyView); |
| 17310 this.storyView = this.addChild(new StoryContentView(this.swarm, item)); |
| 17311 } |
| 17312 else { |
| 17313 var view = this.get$currentSection().findView(source); |
| 17314 var newPosition = FxUtil.computeRelativePosition(view.get$node(), this.botto
mView.get$node()); |
| 17315 this.get$currentSection().dataSourceView.detachSubview(view.get$source()); |
| 17316 this.detachedView = view; |
| 17317 FxUtil.setPosition(view.get$node(), newPosition); |
| 17318 this.bottomView.addChild(view); |
| 17319 view.addClass$1("sel"); |
| 17320 this.get$currentSection().set$storyMode(true); |
| 17321 this.storyView = new StoryContentView(this.swarm, item); |
| 17322 html_get$window().setTimeout((function () { |
| 17323 $this._animateDataSourceToMinimized(); |
| 17324 $this.sliderMenu.addClass("hidden"); |
| 17325 html_get$window().setTimeout((function () { |
| 17326 $this.storyView.addClass("hidden-story"); |
| 17327 $this.addChild($this.storyView); |
| 17328 html_get$window().setTimeout((function () { |
| 17329 $this.storyView.removeClass("hidden-story"); |
| 17330 }) |
| 17331 , (0)); |
| 17332 $this.headerView.endTransitionToStoryView(); |
| 17333 }) |
| 17334 , (0)); |
| 17335 }) |
| 17336 , (0)); |
| 17337 } |
| 17338 } |
| 17339 FrontView.prototype._refreshMaximized = function() { |
| 17340 if (this.swarm.state.storyMaximized.get$value()) { |
| 17341 this._animateDataSourceToMaximized(); |
| 17342 } |
| 17343 else { |
| 17344 this._animateDataSourceToMinimized(); |
| 17345 } |
| 17346 } |
| 17347 FrontView.prototype._animateDataSourceToMaximized = function() { |
| 17348 FxUtil.setWebkitTransform(this.topView.get$node(), (0), (-80), (0)); |
| 17349 if (this.detachedView != null) { |
| 17350 FxUtil.setWebkitTransform(this.detachedView.get$node(), (0), (-34), (0)); |
| 17351 } |
| 17352 } |
| 17353 FrontView.prototype._animateDataSourceToMinimized = function() { |
| 17354 if (this.detachedView != null) { |
| 17355 FxUtil.setWebkitTransform(this.detachedView.get$node(), (0), (0), (0)); |
| 17356 FxUtil.setWebkitTransform(this.topView.get$node(), (0), (0), (0)); |
| 17357 } |
| 17358 } |
| 17359 FrontView.prototype._onSectionTransitionEnded = function(selectedView) { |
| 17360 var $$list = this.sections.childViews; |
| 17361 for (var $$i = 0;$$i < $$list.get$length(); $$i++) { |
| 17362 var view = $$list.$index($$i); |
| 17363 if ($eq(view, selectedView)) { |
| 17364 view.showSources(); |
| 17365 } |
| 17366 else { |
| 17367 view.hideSources(); |
| 17368 } |
| 17369 } |
| 17370 } |
| 17371 FrontView.prototype.get$_onSectionTransitionEnded = function() { |
| 17372 return this._onSectionTransitionEnded.bind(this); |
| 17373 } |
| 17374 FrontView.prototype._onSectionSelected = function(sectionTitle) { |
| 17375 var section = this.swarm.sections.findSection(sectionTitle); |
| 17376 var $$list = this.sections.childViews; |
| 17377 for (var $$i = 0;$$i < $$list.get$length(); $$i++) { |
| 17378 var view = $$list.$index($$i); |
| 17379 if ($eq(view.get$section(), section)) { |
| 17380 this.sections.selectView(view, true); |
| 17381 break; |
| 17382 } |
| 17383 } |
| 17384 } |
| 17385 FrontView.prototype._createSectionViews = function() { |
| 17386 var $$list = this.swarm.sections; |
| 17387 for (var $$i = $$list.iterator(); $$i.hasNext(); ) { |
| 17388 var section = $$i.next$0(); |
| 17389 var viewFactory = new DataSourceViewFactory(this.swarm); |
| 17390 var sectionView = new SectionView(this.swarm, section, viewFactory); |
| 17391 sectionView.get$node(); |
| 17392 this.sections.addChild(sectionView); |
| 17393 } |
| 17394 this.addChild(this.sections); |
| 17395 } |
| 17396 FrontView.prototype.processKeyEvent = function(e) { |
| 17397 var code = e.get$keyCode(); |
| 17398 if (this.swarm.state.get$inMainView()) { |
| 17399 if (!this.swarm.state.get$hasArticleSelected()) { |
| 17400 this.swarm.state.goToFirstArticleInSection(); |
| 17401 } |
| 17402 else if (this.rightKeyPresses.contains(code)) { |
| 17403 this.swarm.state.goToNextFeed(); |
| 17404 } |
| 17405 else if (this.leftKeyPresses.contains(code)) { |
| 17406 this.swarm.state.goToPreviousFeed(); |
| 17407 } |
| 17408 else if (this.downKeyPresses.contains(code)) { |
| 17409 this.swarm.state.goToNextSelectedArticle(); |
| 17410 } |
| 17411 else if (this.upKeyPresses.contains(code)) { |
| 17412 this.swarm.state.goToPreviousSelectedArticle(); |
| 17413 } |
| 17414 else if (this.openKeyPresses.contains(code)) { |
| 17415 this.swarm.state.selectStoryAsCurrent(); |
| 17416 } |
| 17417 else if (this.nextPageKeyPresses.contains(code)) { |
| 17418 this.swarm.state.goToNextSection(this.sliderMenu); |
| 17419 } |
| 17420 else if (this.previousPageKeyPresses.contains(code)) { |
| 17421 this.swarm.state.goToPreviousSection(this.sliderMenu); |
| 17422 } |
| 17423 } |
| 17424 else { |
| 17425 if (this.downKeyPresses.contains(code)) { |
| 17426 this.swarm.state.goToNextArticle(); |
| 17427 } |
| 17428 else if (this.upKeyPresses.contains(code)) { |
| 17429 this.swarm.state.goToPreviousArticle(); |
| 17430 } |
| 17431 else if (this.backKeyPresses.contains(code)) { |
| 17432 this.swarm.state.clearCurrentArticle(); |
| 17433 } |
| 17434 } |
| 17435 } |
| 17436 // ********** Code for SwarmBackButton ************** |
| 17437 $inherits(SwarmBackButton, View); |
| 17438 function SwarmBackButton(swarm) { |
| 17439 this.swarm = swarm; |
| 17440 View.call(this); |
| 17441 } |
| 17442 SwarmBackButton.prototype.render = function() { |
| 17443 return ElementWrappingImplementation.ElementWrappingImplementation$html$factor
y("<div class=\"back-arrow button\"></div>"); |
| 17444 } |
| 17445 SwarmBackButton.prototype.afterRender = function(node) { |
| 17446 var $this = this; // closure support |
| 17447 this.addOnClick((function (e) { |
| 17448 _backToMain($this.swarm.state); |
| 17449 }) |
| 17450 ); |
| 17451 } |
| 17452 // ********** Code for HeaderView ************** |
| 17453 $inherits(HeaderView, CompositeView); |
| 17454 function HeaderView(swarm) { |
| 17455 this.swarm = swarm; |
| 17456 CompositeView.call(this, "header-view", false, false, false, false); |
| 17457 this._backButton = this.addChild(new SwarmBackButton(this.swarm)); |
| 17458 this._title = this.addChild(View.div("app-title", "Swarm")); |
| 17459 this._configButton = this.addChild(View.div("config button")); |
| 17460 this._refreshButton = this.addChild(View.div("refresh button")); |
| 17461 this._infoButton = this.addChild(View.div("info-button button")); |
| 17462 this._webBackButton = this.addChild(new WebBackButton()); |
| 17463 this._webForwardButton = this.addChild(new WebForwardButton()); |
| 17464 this._newWindowButton = this.addChild(View.div("new-window-button button")); |
| 17465 } |
| 17466 HeaderView.prototype.afterRender = function(node) { |
| 17467 var $this = this; // closure support |
| 17468 this.attachWatch(this.swarm.state.storyTextMode, (function (e) { |
| 17469 $this.refreshWebStoryButtons(); |
| 17470 }) |
| 17471 ); |
| 17472 this._title.addOnClick((function (e) { |
| 17473 _backToMain($this.swarm.state); |
| 17474 }) |
| 17475 ); |
| 17476 this._configButton.addOnClick((function (e) { |
| 17477 if ($this._configDialog == null) { |
| 17478 $this._configDialog = ConfigHintDialog.ConfigHintDialog$factory($this.swar
m.frontView, (function () { |
| 17479 $this.swarm.frontView.removeChild($this._configDialog); |
| 17480 $this._configDialog = null; |
| 17481 $this.swarm.sections.refresh(); |
| 17482 }) |
| 17483 ); |
| 17484 $this.swarm.frontView.addChild($this._configDialog); |
| 17485 } |
| 17486 }) |
| 17487 ); |
| 17488 this._refreshButton.addOnClick(to$call$1(EventBatch.wrap((function (e) { |
| 17489 $this.swarm.refresh(); |
| 17490 }) |
| 17491 ))); |
| 17492 this._infoButton.addOnClick((function (e) { |
| 17493 if ($this._infoDialog == null) { |
| 17494 $this._infoDialog = new HelpDialog($this.swarm.frontView, (function () { |
| 17495 $this.swarm.frontView.removeChild($this._infoDialog); |
| 17496 $this._infoDialog = null; |
| 17497 $this.swarm.sections.refresh(); |
| 17498 }) |
| 17499 ); |
| 17500 $this.swarm.frontView.addChild($this._infoDialog); |
| 17501 } |
| 17502 }) |
| 17503 ); |
| 17504 this._newWindowButton.addOnClick((function (e) { |
| 17505 var currentArticleSrcUrl = $this.swarm.state.currentArticle.get$value().srcU
rl; |
| 17506 html_get$window().open(currentArticleSrcUrl, "_blank"); |
| 17507 }) |
| 17508 ); |
| 17509 this.startTransitionToMainView(); |
| 17510 } |
| 17511 HeaderView.prototype.refreshWebStoryButtons = function() { |
| 17512 var webButtonsHidden = true; |
| 17513 if (this.swarm.state.currentArticle.get$value() != null) { |
| 17514 webButtonsHidden = this.swarm.state.storyTextMode.get$value(); |
| 17515 } |
| 17516 this._webBackButton.set$hidden(webButtonsHidden); |
| 17517 this._webForwardButton.set$hidden(webButtonsHidden); |
| 17518 this._newWindowButton.set$hidden(webButtonsHidden); |
| 17519 } |
| 17520 HeaderView.prototype.startTransitionToMainView = function() { |
| 17521 this._title.removeClass("in-story"); |
| 17522 this._backButton.removeClass("in-story"); |
| 17523 this._configButton.removeClass("in-story"); |
| 17524 this._refreshButton.removeClass("in-story"); |
| 17525 this._infoButton.removeClass("in-story"); |
| 17526 this.refreshWebStoryButtons(); |
| 17527 } |
| 17528 HeaderView.prototype.endTransitionToStoryView = function() { |
| 17529 this._title.addClass("in-story"); |
| 17530 this._backButton.addClass("in-story"); |
| 17531 this._configButton.addClass("in-story"); |
| 17532 this._refreshButton.addClass("in-story"); |
| 17533 this._infoButton.addClass("in-story"); |
| 17534 } |
| 17535 // ********** Code for WebBackButton ************** |
| 17536 $inherits(WebBackButton, View); |
| 17537 function WebBackButton() { |
| 17538 View.call(this); |
| 17539 } |
| 17540 WebBackButton.prototype.render = function() { |
| 17541 return ElementWrappingImplementation.ElementWrappingImplementation$html$factor
y("<div class=\"web-back-button button\"></div>"); |
| 17542 } |
| 17543 WebBackButton.prototype.afterRender = function(node) { |
| 17544 var $this = this; // closure support |
| 17545 this.addOnClick((function (e) { |
| 17546 WebBackButton.back(); |
| 17547 }) |
| 17548 ); |
| 17549 } |
| 17550 WebBackButton.back = function() { |
| 17551 html_get$window().get$history().back(); |
| 17552 } |
| 17553 // ********** Code for WebForwardButton ************** |
| 17554 $inherits(WebForwardButton, View); |
| 17555 function WebForwardButton() { |
| 17556 View.call(this); |
| 17557 } |
| 17558 WebForwardButton.prototype.render = function() { |
| 17559 return ElementWrappingImplementation.ElementWrappingImplementation$html$factor
y("<div class=\"web-forward-button button\"></div>"); |
| 17560 } |
| 17561 WebForwardButton.prototype.afterRender = function(node) { |
| 17562 var $this = this; // closure support |
| 17563 this.addOnClick((function (e) { |
| 17564 WebForwardButton.forward(); |
| 17565 }) |
| 17566 ); |
| 17567 } |
| 17568 WebForwardButton.forward = function() { |
| 17569 html_get$window().get$history().forward(); |
| 17570 } |
| 17571 // ********** Code for DataSourceViewFactory ************** |
| 17572 function DataSourceViewFactory(swarm) { |
| 17573 this.swarm = swarm; |
| 17574 } |
| 17575 DataSourceViewFactory.prototype.newView = function(data) { |
| 17576 return new DataSourceView(data, this.swarm); |
| 17577 } |
| 17578 DataSourceViewFactory.prototype.get$width = function() { |
| 17579 return ArticleViewLayout.getSingleton().width; |
| 17580 } |
| 17581 DataSourceViewFactory.prototype.get$height = function() { |
| 17582 return null; |
| 17583 } |
| 17584 // ********** Code for DataSourceView ************** |
| 17585 $inherits(DataSourceView, CompositeView); |
| 17586 function DataSourceView(source, swarm) { |
| 17587 this.source = source; |
| 17588 CompositeView.call(this, "query", false, false, false, false); |
| 17589 this.get$node().get$nodes().add$1(ElementWrappingImplementation.ElementWrappin
gImplementation$html$factory(("<h2>" + this.source.title + "</h2>"))); |
| 17590 this.itemsView = this.addChild(new VariableSizeListView_Article(this.source.ar
ticles, new ArticleViewFactory(swarm), true, true, swarm.state.currentArticle, !
Device.get$supportsTouch(), false, true, !Device.get$supportsTouch())); |
| 17591 this.itemsView.addClass("story-section"); |
| 17592 this.get$node().get$nodes().add$1(ElementWrappingImplementation.ElementWrappin
gImplementation$html$factory("<div class=\"query-name-shadow\"></div>")); |
| 17593 this.get$node().get$on().get$mouseDown().add$2((function (e) { |
| 17594 swarm.state.storyMaximized.set$value(false); |
| 17595 }) |
| 17596 , false); |
| 17597 } |
| 17598 DataSourceView.prototype.get$source = function() { return this.source; }; |
| 17599 // ********** Code for ArticleViewFactory ************** |
| 17600 function ArticleViewFactory(swarm) { |
| 17601 this.layout = ArticleViewLayout.getSingleton(); |
| 17602 this.swarm = swarm; |
| 17603 } |
| 17604 ArticleViewFactory.prototype.get$layout = function() { return this.layout; }; |
| 17605 ArticleViewFactory.prototype.set$layout = function(value) { return this.layout =
value; }; |
| 17606 ArticleViewFactory.prototype.newView = function(item) { |
| 17607 return new ArticleView(item, this.swarm, this.layout); |
| 17608 } |
| 17609 ArticleViewFactory.prototype.getWidth = function(item) { |
| 17610 return this.layout.width; |
| 17611 } |
| 17612 ArticleViewFactory.prototype.getHeight = function(item) { |
| 17613 return this.layout.computeHeight(item); |
| 17614 } |
| 17615 // ********** Code for ArticleViewMetrics ************** |
| 17616 function ArticleViewMetrics(height, titleLines, bodyLines) { |
| 17617 this.titleLines = titleLines; |
| 17618 this.bodyLines = bodyLines; |
| 17619 this.height = height; |
| 17620 } |
| 17621 ArticleViewMetrics.prototype.get$height = function() { return this.height; }; |
| 17622 // ********** Code for ArticleViewLayout ************** |
| 17623 function ArticleViewLayout() { |
| 17624 this.measureTitleText = new MeasureText("bold 13px arial,sans-serif"); |
| 17625 this.measureBodyText = new MeasureText("13px arial,sans-serif"); |
| 17626 var screenWidth = html_get$window().get$screen().get$width(); |
| 17627 this.width = (297); |
| 17628 } |
| 17629 ArticleViewLayout.prototype.get$width = function() { return this.width; }; |
| 17630 ArticleViewLayout.prototype.set$width = function(value) { return this.width = va
lue; }; |
| 17631 ArticleViewLayout.getSingleton = function() { |
| 17632 if ($globals.ArticleViewLayout__singleton == null) { |
| 17633 $globals.ArticleViewLayout__singleton = new ArticleViewLayout(); |
| 17634 } |
| 17635 return $globals.ArticleViewLayout__singleton; |
| 17636 } |
| 17637 ArticleViewLayout.prototype.computeHeight = function(item) { |
| 17638 if (item == null) { |
| 17639 dart_core_print("Null item encountered."); |
| 17640 return (0); |
| 17641 } |
| 17642 return this.computeLayout(item, null, null).height; |
| 17643 } |
| 17644 ArticleViewLayout.prototype.computeLayout = function(item, titleBuffer, snippetB
uffer) { |
| 17645 var titleWidth = this.width - (36); |
| 17646 if (item.hasThumbnail) { |
| 17647 titleWidth = this.width - (107); |
| 17648 } |
| 17649 var titleLines = this.measureTitleText.addLineBrokenText(titleBuffer, item.tit
le, titleWidth, (2)); |
| 17650 var bodyLines = this.measureBodyText.addLineBrokenText(snippetBuffer, item.tex
tBody, this.width - (36), (4)); |
| 17651 var height = bodyLines * (18) + (102); |
| 17652 if ($eq(bodyLines, (0))) { |
| 17653 height = (92); |
| 17654 } |
| 17655 return new ArticleViewMetrics(height, titleLines, bodyLines); |
| 17656 } |
| 17657 // ********** Code for ArticleView ************** |
| 17658 $inherits(ArticleView, View); |
| 17659 function ArticleView(item, swarm, articleLayout) { |
| 17660 this.articleLayout = articleLayout; |
| 17661 this.item = item; |
| 17662 this.swarm = swarm; |
| 17663 View.call(this); |
| 17664 } |
| 17665 ArticleView.prototype.render = function() { |
| 17666 var node; |
| 17667 var byline = this.item.author.length > (0) ? this.item.author : this.item.data
Source.title; |
| 17668 var date = DateUtils.toRecentTimeString(this.item.date); |
| 17669 var storyClass = "story no-thumb"; |
| 17670 var thumbnail = ""; |
| 17671 if (this.item.hasThumbnail) { |
| 17672 storyClass = "story"; |
| 17673 thumbnail = ("<img src=\"" + this.item.get$thumbUrl() + "\"></img>"); |
| 17674 } |
| 17675 var title = new StringBufferImpl(""); |
| 17676 var snippet = new StringBufferImpl(""); |
| 17677 var metrics = this.articleLayout.computeLayout(this.item, title, snippet); |
| 17678 node = ElementWrappingImplementation.ElementWrappingImplementation$html$factor
y(("<div class=\"" + storyClass + "\">\n " + thumbnail + "\n <div class=\"titl
e\">" + title + "</div>\n <div class=\"byline\">" + byline + "</div>\n <div cl
ass=\"dateline\">" + date + "</div>\n <div class=\"snippet\">" + snippet + "</d
iv>\n</div>")); |
| 17679 if ((this.item.textBody == null) || (this.item.textBody.trim() == "")) { |
| 17680 node.query(".snippet").remove(); |
| 17681 } |
| 17682 return node; |
| 17683 } |
| 17684 ArticleView.prototype.afterRender = function(node) { |
| 17685 var $this = this; // closure support |
| 17686 this.addOnClick((function (e) { |
| 17687 $this.item.unread.set$value(false); |
| 17688 var oldArticle = $this.swarm.state.currentArticle.get$value(); |
| 17689 $this.swarm.state.currentArticle.set$value($this.item); |
| 17690 $this.swarm.state.storyTextMode.set$value(true); |
| 17691 if (oldArticle == null) { |
| 17692 $this.swarm.state.pushToHistory(); |
| 17693 } |
| 17694 }) |
| 17695 ); |
| 17696 this.watch(this.swarm.state.currentArticle, (function (e) { |
| 17697 if (!$this.swarm.state.get$inMainView()) { |
| 17698 $this.swarm.state.markCurrentAsRead(); |
| 17699 } |
| 17700 $this._refreshSelected($this.swarm.state.currentArticle); |
| 17701 }) |
| 17702 ); |
| 17703 this.watch(this.swarm.state.selectedArticle, (function (e) { |
| 17704 $this._refreshSelected($this.swarm.state.selectedArticle); |
| 17705 $this._updateViewForSelectedArticle(); |
| 17706 }) |
| 17707 ); |
| 17708 this.watch(this.item.unread, (function (e) { |
| 17709 if ($this.item.unread.get$value()) { |
| 17710 node.get$classes().add("story-unread"); |
| 17711 } |
| 17712 else { |
| 17713 node.get$classes().remove("story-unread"); |
| 17714 } |
| 17715 }) |
| 17716 ); |
| 17717 } |
| 17718 ArticleView.prototype._updateViewForSelectedArticle = function() { |
| 17719 var selArticle = this.swarm.state.selectedArticle.get$value(); |
| 17720 if (this.swarm.state.get$hasArticleSelected()) { |
| 17721 if (!this.swarm.state.get$inMainView()) { |
| 17722 this.swarm.frontView.detachedView.itemsView.showView(selArticle); |
| 17723 } |
| 17724 else { |
| 17725 if (this.swarm.frontView.get$currentSection().inCurrentView(selArticle)) { |
| 17726 this.swarm.frontView.get$currentSection().dataSourceView.showView(selArt
icle.dataSource); |
| 17727 var dataView = this.swarm.frontView.get$currentSection().findView(selArt
icle.dataSource); |
| 17728 if (dataView != null) { |
| 17729 dataView.itemsView.showView(selArticle); |
| 17730 } |
| 17731 } |
| 17732 } |
| 17733 } |
| 17734 } |
| 17735 ArticleView.prototype._refreshSelected = function(curItem) { |
| 17736 if ($eq(curItem.get$value(), this.item)) { |
| 17737 this.addClass("sel"); |
| 17738 } |
| 17739 else { |
| 17740 this.removeClass("sel"); |
| 17741 } |
| 17742 } |
| 17743 ArticleView.prototype.item$1 = function($0) { |
| 17744 return this.item.call$1($0); |
| 17745 }; |
| 17746 // ********** Code for StoryContentView ************** |
| 17747 $inherits(StoryContentView, View); |
| 17748 function StoryContentView(swarm, item) { |
| 17749 this.item = item; |
| 17750 this.swarm = swarm; |
| 17751 View.call(this); |
| 17752 } |
| 17753 StoryContentView.prototype.get$childViews = function() { |
| 17754 return [this._pagedStory]; |
| 17755 } |
| 17756 StoryContentView.prototype.render = function() { |
| 17757 var storyContent = ElementWrappingImplementation.ElementWrappingImplementation
$html$factory(("<div class=\"story-content\">" + this.item.get$htmlBody() + "</d
iv>")); |
| 17758 var $$list = storyContent.queryAll$1("iframe, script, style, object, embed, fr
ameset, frame"); |
| 17759 for (var $$i = $$list.iterator$0(); $$i.hasNext$0(); ) { |
| 17760 var element = $$i.next$0(); |
| 17761 element.remove(); |
| 17762 } |
| 17763 this._pagedStory = new PagedContentView(new View.fromNode$ctor(storyContent)); |
| 17764 var $$list = storyContent.queryAll$1("a"); |
| 17765 for (var $$i = $$list.iterator$0(); $$i.hasNext$0(); ) { |
| 17766 var anchor = $$i.next$0(); |
| 17767 anchor.set$target("_blank"); |
| 17768 } |
| 17769 var date = DateUtils.toRecentTimeString(this.item.date); |
| 17770 var container = ElementWrappingImplementation.ElementWrappingImplementation$ht
ml$factory((" <div class=\"story-view\">\n <div class=\"story-text-v
iew\">\n <div class=\"story-header\">\n <a class=\"story-tit
le\" href=\"" + this.item.srcUrl + "\" target=\"_blank\">\n " + thi
s.item.title + "</a>\n <div class=\"story-byline\">\n "
+ this.item.author + " - " + this.item.dataSource.title + "\n </div>\
n <div class=\"story-dateline\">" + date + "</div>\n </div>\
n <div class=\"paged-story\"></div>\n <div class=\"spacer\"></
div>\n </div>\n </div>")); |
| 17771 container.query$1(".paged-story").replaceWith$1(this._pagedStory.get$node()); |
| 17772 return container; |
| 17773 } |
| 17774 StoryContentView.prototype.item$1 = function($0) { |
| 17775 return this.item.call$1($0); |
| 17776 }; |
| 17777 // ********** Code for SectionView ************** |
| 17778 $inherits(SectionView, CompositeView); |
| 17779 function SectionView(swarm, section, _viewFactory) { |
| 17780 this.pageState = new PageState(); |
| 17781 this.swarm = swarm; |
| 17782 this.section = section; |
| 17783 this._viewFactory = _viewFactory; |
| 17784 this.loadingText = new View.html$ctor("<div class=\"loading-section\"></div>")
; |
| 17785 CompositeView.call(this, "section-view", false, false, false, false); |
| 17786 this.addChild(this.loadingText); |
| 17787 } |
| 17788 SectionView.prototype.get$section = function() { return this.section; }; |
| 17789 SectionView.prototype.showSources = function() { |
| 17790 this.loadingText.get$node().get$style().set$display("none"); |
| 17791 if (this.dataSourceView == null) { |
| 17792 this.dataSourceView = new ListView_Feed(this.section.feeds, this._viewFactor
y, true, false, null, true, true, true, false, this.pageState); |
| 17793 this.dataSourceView.addClass("data-source-view"); |
| 17794 this.addChild(this.dataSourceView); |
| 17795 this.pageNumberView = this.addChild(new PageNumberView(this.pageState)); |
| 17796 this.get$node().get$style().set$opacity("1"); |
| 17797 } |
| 17798 else { |
| 17799 this.addChild(this.dataSourceView); |
| 17800 this.addChild(this.pageNumberView); |
| 17801 this.get$node().get$style().set$opacity("1"); |
| 17802 } |
| 17803 this.dataSourceView.scroller.reconfigure((function () { |
| 17804 |
| 17805 }) |
| 17806 ); |
| 17807 } |
| 17808 SectionView.prototype.hideSources = function() { |
| 17809 if (this.dataSourceView != null) { |
| 17810 this.get$node().get$style().set$opacity("0.6"); |
| 17811 this.removeChild(this.dataSourceView); |
| 17812 this.removeChild(this.pageNumberView); |
| 17813 } |
| 17814 this.loadingText.get$node().get$style().set$display("block"); |
| 17815 } |
| 17816 SectionView.prototype.findView = function(dataSource) { |
| 17817 return this.dataSourceView.getSubview(this.dataSourceView.findIndex(dataSource
)); |
| 17818 } |
| 17819 SectionView.prototype.inCurrentView = function(article) { |
| 17820 return this.dataSourceView.findIndex(article.dataSource) != null; |
| 17821 } |
| 17822 SectionView.prototype.set$storyMode = function(inStoryMode) { |
| 17823 if (inStoryMode) { |
| 17824 this.addClass("hide-all-queries"); |
| 17825 } |
| 17826 else { |
| 17827 this.removeClass("hide-all-queries"); |
| 17828 } |
| 17829 } |
| 17830 // ********** Code for Swarm ************** |
| 17831 $inherits(Swarm, App); |
| 17832 function Swarm() { |
| 17833 var $this = this; // closure support |
| 17834 this.onLoadFired = false; |
| 17835 App.call(this); |
| 17836 Sections.initializeFromUrl((function (currSections) { |
| 17837 $this.sections = currSections; |
| 17838 $this.state = new SwarmState($this.sections); |
| 17839 $this.setupApp(); |
| 17840 }) |
| 17841 ); |
| 17842 html_get$document().get$on().get$keyUp().add((function (e) { |
| 17843 if ($this.frontView != null) { |
| 17844 $this.frontView.processKeyEvent(e); |
| 17845 } |
| 17846 }) |
| 17847 , false); |
| 17848 } |
| 17849 Swarm.prototype.refresh = function() { |
| 17850 var $this = this; // closure support |
| 17851 this.sections.refresh(); |
| 17852 this.sections.get$sectionTitles().forEach((function (title) { |
| 17853 var section = $this.sections.findSection(title); |
| 17854 section.feeds.addChangeListener((function (data) { |
| 17855 dart_core_print("Refresh sections not impl yet."); |
| 17856 }) |
| 17857 ); |
| 17858 }) |
| 17859 ); |
| 17860 } |
| 17861 Swarm.prototype.onLoad = function() { |
| 17862 this.onLoadFired = true; |
| 17863 App.prototype.onLoad.call(this); |
| 17864 this.setupApp(); |
| 17865 } |
| 17866 Swarm.prototype.setupApp = function() { |
| 17867 if (this.onLoadFired && this.state != null) { |
| 17868 this.render(); |
| 17869 this.refresh(); |
| 17870 this.eraseSplashScreen(); |
| 17871 } |
| 17872 } |
| 17873 Swarm.prototype.render = function() { |
| 17874 this.frontView = new FrontView(this); |
| 17875 this.frontView.addToDocument(html_get$document().get$body()); |
| 17876 } |
| 17877 // ********** Code for Sections ************** |
| 17878 function Sections(_sections) { |
| 17879 this._sections = _sections; |
| 17880 } |
| 17881 Sections.prototype.$index = function(i) { |
| 17882 return this._sections.$index(i); |
| 17883 } |
| 17884 Sections.prototype.get$length = function() { |
| 17885 return this._sections.get$length(); |
| 17886 } |
| 17887 Sections.prototype.get$sectionTitles = function() { |
| 17888 return CollectionUtils.map(this._sections, (function (s) { |
| 17889 return s.get$title(); |
| 17890 }) |
| 17891 ); |
| 17892 } |
| 17893 Sections.prototype.refresh = function() { |
| 17894 |
| 17895 } |
| 17896 Sections.prototype.findSection = function(name) { |
| 17897 return CollectionUtils.find(this._sections, (function (sect) { |
| 17898 return $eq(sect.get$title(), name); |
| 17899 }) |
| 17900 ); |
| 17901 } |
| 17902 Sections.prototype.iterator = function() { |
| 17903 return this._sections.iterator$0(); |
| 17904 } |
| 17905 Sections.get$runningFromFile = function() { |
| 17906 return html_get$window().get$location().get$protocol().startsWith("file:"); |
| 17907 } |
| 17908 Sections.get$home = function() { |
| 17909 return html_get$window().get$location().get$protocol() + "//" + html_get$windo
w().get$location().get$host(); |
| 17910 } |
| 17911 Sections.initializeFromData = function(data, callback) { |
| 17912 var decoder = new Decoder(data); |
| 17913 var nSections = decoder.readInt$0(); |
| 17914 var sections = new Array(); |
| 17915 for (var i = (0); |
| 17916 i < nSections; i++) { |
| 17917 sections.add$1(Section.decode(decoder)); |
| 17918 } |
| 17919 callback.call$1(new Sections(sections)); |
| 17920 } |
| 17921 Sections.initializeFromUrl = function(callback) { |
| 17922 if (Sections.get$runningFromFile()) { |
| 17923 Sections.initializeFromData(const$0029.$index("user.data"), callback); |
| 17924 } |
| 17925 else { |
| 17926 XMLHttpRequestWrappingImplementation.XMLHttpRequestWrappingImplementation$ge
tTEMPNAME$factory(("" + Sections.get$home() + "/data/user.data"), to$call$1(Even
tBatch.wrap((function (request) { |
| 17927 Sections.initializeFromData(request.get$responseText(), callback); |
| 17928 }) |
| 17929 ))); |
| 17930 } |
| 17931 } |
| 17932 Sections.prototype.findSectionById = function(id) { |
| 17933 return CollectionUtils.find(this._sections, (function (section) { |
| 17934 return $eq(section.get$id(), id); |
| 17935 }) |
| 17936 ); |
| 17937 } |
| 17938 Sections.prototype.findSectionIndex = function(name) { |
| 17939 for (var i = (0); |
| 17940 i < this._sections.get$length(); i++) { |
| 17941 if (name == this._sections.$index(i).get$title()) { |
| 17942 return i; |
| 17943 } |
| 17944 } |
| 17945 return (-1); |
| 17946 } |
| 17947 Sections.prototype.get$sections = function() { |
| 17948 return this._sections; |
| 17949 } |
| 17950 Sections.prototype.filter = function(f) { |
| 17951 return Collections.filter(this, new Array(), f); |
| 17952 } |
| 17953 Sections.prototype.some = function(f) { |
| 17954 return Collections.some(this, f); |
| 17955 } |
| 17956 Sections.prototype.forEach = function(f) { |
| 17957 Collections.forEach(this, f); |
| 17958 } |
| 17959 Sections.prototype.isEmpty = function() { |
| 17960 return this.get$length() == (0); |
| 17961 } |
| 17962 Sections.prototype.filter$1 = function($0) { |
| 17963 return this.filter(to$call$1($0)); |
| 17964 }; |
| 17965 Sections.prototype.forEach$1 = function($0) { |
| 17966 return this.forEach(to$call$1($0)); |
| 17967 }; |
| 17968 Sections.prototype.iterator$0 = Sections.prototype.iterator; |
| 17969 // ********** Code for Section ************** |
| 17970 function Section(id, title, feeds) { |
| 17971 this.title = title; |
| 17972 this.id = id; |
| 17973 this.feeds = feeds; |
| 17974 } |
| 17975 Section.prototype.get$id = function() { return this.id; }; |
| 17976 Section.prototype.get$title = function() { return this.title; }; |
| 17977 Section.decode = function(decoder) { |
| 17978 var sectionId = decoder.readString(); |
| 17979 var sectionTitle = decoder.readString(); |
| 17980 var nSources = decoder.readInt(); |
| 17981 var feeds = new ObservableList_Feed(); |
| 17982 for (var j = (0); |
| 17983 j < nSources; j++) { |
| 17984 feeds.add$1(Feed.decode(decoder)); |
| 17985 } |
| 17986 return new Section(sectionId, sectionTitle, feeds); |
| 17987 } |
| 17988 Section.prototype.findFeed = function(id_) { |
| 17989 return CollectionUtils.find(this.feeds, (function (feed) { |
| 17990 return $eq(feed.get$id(), id_); |
| 17991 }) |
| 17992 ); |
| 17993 } |
| 17994 // ********** Code for Feed ************** |
| 17995 function Feed(id, title, iconUrl, description) { |
| 17996 this.title = title; |
| 17997 this.error = new ObservableValue_bool(false); |
| 17998 this.description = description; |
| 17999 this.iconUrl = iconUrl; |
| 18000 this.id = id; |
| 18001 this.articles = new ObservableList_Article(); |
| 18002 } |
| 18003 Feed.prototype.get$id = function() { return this.id; }; |
| 18004 Feed.prototype.set$id = function(value) { return this.id = value; }; |
| 18005 Feed.prototype.get$title = function() { return this.title; }; |
| 18006 Feed.prototype.get$articles = function() { return this.articles; }; |
| 18007 Feed.prototype.set$articles = function(value) { return this.articles = value; }; |
| 18008 Feed.decode = function(decoder) { |
| 18009 var sourceId = decoder.readString(); |
| 18010 var sourceTitle = decoder.readString(); |
| 18011 var sourceIcon = decoder.readString(); |
| 18012 var feed = new Feed(sourceId, sourceTitle, sourceIcon, ""); |
| 18013 var nItems = decoder.readInt(); |
| 18014 for (var i = (0); |
| 18015 i < nItems; i++) { |
| 18016 feed.get$articles().add$1(Article.decodeHeader(feed, decoder)); |
| 18017 } |
| 18018 return feed; |
| 18019 } |
| 18020 Feed.prototype.findArticle = function(id_) { |
| 18021 return CollectionUtils.find(this.articles, (function (article) { |
| 18022 return $eq(article.get$id(), id_); |
| 18023 }) |
| 18024 ); |
| 18025 } |
| 18026 // ********** Code for Article ************** |
| 18027 function Article(dataSource, id, date, title, author, srcUrl, hasThumbnail, text
Body, _htmlBody, unread, error) { |
| 18028 this.title = title; |
| 18029 this.dataSource = dataSource; |
| 18030 this.date = date; |
| 18031 this.srcUrl = srcUrl; |
| 18032 this.unread = new ObservableValue_bool(unread); |
| 18033 this.hasThumbnail = hasThumbnail; |
| 18034 this.textBody = textBody; |
| 18035 this.id = id; |
| 18036 this.error = error; |
| 18037 this.author = author; |
| 18038 this._htmlBody = _htmlBody; |
| 18039 } |
| 18040 Article.prototype.get$id = function() { return this.id; }; |
| 18041 Article.prototype.get$title = function() { return this.title; }; |
| 18042 Article.prototype.get$htmlBody = function() { |
| 18043 this._ensureLoaded(); |
| 18044 return this._htmlBody; |
| 18045 } |
| 18046 Article.prototype.get$dataUri = function() { |
| 18047 return Uri.encodeComponent(this.id).replaceAll(",", "%2C").replaceAll("%2F", "
/"); |
| 18048 } |
| 18049 Article.prototype.get$thumbUrl = function() { |
| 18050 if (!this.hasThumbnail) return null; |
| 18051 var home; |
| 18052 if (Sections.get$runningFromFile()) { |
| 18053 home = "http://dart.googleplex.com"; |
| 18054 } |
| 18055 else { |
| 18056 home = Sections.get$home(); |
| 18057 } |
| 18058 return ("" + home + "/data/" + this.get$dataUri() + ".jpg?v=0"); |
| 18059 } |
| 18060 Article.prototype._ensureLoaded = function() { |
| 18061 if (this._htmlBody != null) return; |
| 18062 var name = ("" + this.get$dataUri() + ".html"); |
| 18063 if (Sections.get$runningFromFile()) { |
| 18064 this._htmlBody = const$0029.$index(name); |
| 18065 } |
| 18066 else { |
| 18067 var req = XMLHttpRequestWrappingImplementation.XMLHttpRequestWrappingImpleme
ntation$factory(); |
| 18068 req.open$3("GET", ("" + Sections.get$home() + "/data/" + name), false); |
| 18069 req.send$0(); |
| 18070 this._htmlBody = req.get$responseText(); |
| 18071 } |
| 18072 } |
| 18073 Article.decodeHeader = function(source, decoder) { |
| 18074 var id = decoder.readString(); |
| 18075 var title = decoder.readString(); |
| 18076 var srcUrl = decoder.readString(); |
| 18077 var hasThumbnail = decoder.readBool(); |
| 18078 var author = decoder.readString(); |
| 18079 var dateInSeconds = decoder.readInt(); |
| 18080 var snippet = decoder.readString(); |
| 18081 var date = new DateImplementation.fromEpoch$ctor(dateInSeconds * (1000), new T
imeZoneImplementation.utc$ctor()); |
| 18082 return new Article(source, id, date, title, author, srcUrl, hasThumbnail, snip
pet, null, true, false); |
| 18083 } |
| 18084 // ********** Code for Decoder ************** |
| 18085 function Decoder(data) { |
| 18086 this.data = data; |
| 18087 this.index = (0); |
| 18088 } |
| 18089 Decoder.prototype.readInt = function() { |
| 18090 var r = (0); |
| 18091 for (var i = (0); |
| 18092 ; i = $add(i, (1))) { |
| 18093 var v = this.data.charCodeAt(this.index++); |
| 18094 r = r | ((v & (63)) << ((6) * i)); |
| 18095 if ((v & (64)) == (0)) break; |
| 18096 } |
| 18097 return r.toInt$0(); |
| 18098 } |
| 18099 Decoder.prototype.readBool = function() { |
| 18100 var ch = this.data[this.index++]; |
| 18101 return $eq(ch, "T"); |
| 18102 } |
| 18103 Decoder.prototype.readString = function() { |
| 18104 var len = this.readInt(); |
| 18105 var s = this.data.substring(this.index, this.index + len); |
| 18106 this.index = this.index + len; |
| 18107 return s; |
| 18108 } |
| 18109 Decoder.prototype.readInt$0 = Decoder.prototype.readInt; |
| 18110 // ********** Code for _PlaceholderView ************** |
| 18111 $inherits(_PlaceholderView, View); |
| 18112 function _PlaceholderView() { |
| 18113 View.call(this); |
| 18114 } |
| 18115 _PlaceholderView.prototype.render = function() { |
| 18116 return ElementWrappingImplementation.ElementWrappingImplementation$tag$factory
("div"); |
| 18117 } |
| 18118 // ********** Code for GenericListView ************** |
| 18119 $inherits(GenericListView, View); |
| 18120 function GenericListView(_layout, _data, _scrollable, _vertical, _selectedItem,
_snapToItems, _paginate, _removeClippedViews, _showScrollbar, _pages) { |
| 18121 var $this = this; // closure support |
| 18122 this._snapToItems = _snapToItems; |
| 18123 this._selectedItem = _selectedItem; |
| 18124 this._vertical = _vertical; |
| 18125 this._data = _data; |
| 18126 this._itemViews = new HashMapImplementation(); |
| 18127 this._scrollable = _scrollable; |
| 18128 this._paginate = _paginate; |
| 18129 this._removeClippedViews = _removeClippedViews; |
| 18130 this._layout = _layout; |
| 18131 this._pages = _pages; |
| 18132 this._viewLength = (0); |
| 18133 this._activeInterval = new Interval((0), (0)); |
| 18134 this._showScrollbar = _showScrollbar; |
| 18135 View.call(this); |
| 18136 if (this._scrollable) { |
| 18137 html_get$window().get$on().get$resize().add((function (event) { |
| 18138 if ($this.get$isInDocument()) { |
| 18139 $this.onResize(); |
| 18140 } |
| 18141 }) |
| 18142 , false); |
| 18143 } |
| 18144 } |
| 18145 GenericListView.prototype.onSelectedItemChange = function() { |
| 18146 this._select(this.findIndex(this._lastSelectedItem), false); |
| 18147 this._select(this.findIndex(this._selectedItem.get$value()), true); |
| 18148 this._lastSelectedItem = this._selectedItem.get$value(); |
| 18149 } |
| 18150 GenericListView.prototype.get$childViews = function() { |
| 18151 return this._itemViews.getValues$0(); |
| 18152 } |
| 18153 GenericListView.prototype._onClick = function(e) { |
| 18154 var index = this._findAssociatedIndex(e.get$target()); |
| 18155 if (index != null) { |
| 18156 this._selectedItem.set$value(this._data.$index(index)); |
| 18157 } |
| 18158 } |
| 18159 GenericListView.prototype._findAssociatedIndex = function(leafNode) { |
| 18160 var node = leafNode; |
| 18161 while (node != null && $ne(node, this._containerElem)) { |
| 18162 if ($eq(node.get$parent(), this._containerElem)) { |
| 18163 return this._nodeToIndex(node); |
| 18164 } |
| 18165 node = node.get$parent(); |
| 18166 } |
| 18167 return null; |
| 18168 } |
| 18169 GenericListView.prototype._nodeToIndex = function(node) { |
| 18170 var index = node.get$attributes().$index("data-index"); |
| 18171 if (index != null && index.length > (0)) { |
| 18172 return Math.parseInt(index); |
| 18173 } |
| 18174 return null; |
| 18175 } |
| 18176 GenericListView.prototype.render = function() { |
| 18177 var $this = this; // closure support |
| 18178 var node = ElementWrappingImplementation.ElementWrappingImplementation$tag$fac
tory("div"); |
| 18179 if (this._scrollable) { |
| 18180 this._containerElem = ElementWrappingImplementation.ElementWrappingImplement
ation$tag$factory("div"); |
| 18181 this._containerElem.set$tabIndex((-1)); |
| 18182 node.get$nodes().add$1(this._containerElem); |
| 18183 } |
| 18184 else { |
| 18185 this._containerElem = node; |
| 18186 } |
| 18187 if (this._scrollable) { |
| 18188 this.scroller = new Scroller(this._containerElem, this._vertical, !this._ver
tical, true, (function () { |
| 18189 var width = $this._layout.getWidth($this._viewLength); |
| 18190 var height = $this._layout.getHeight($this._viewLength); |
| 18191 width = width != null ? width : (0); |
| 18192 height = height != null ? height : (0); |
| 18193 var completer = new CompleterImpl(); |
| 18194 completer.complete$1(new Size(width, height)); |
| 18195 return completer.get$future(); |
| 18196 }) |
| 18197 , this._paginate && this._snapToItems ? (0.84) : (1), null, false); |
| 18198 this.scroller.get$onContentMoved().add((function (e) { |
| 18199 return $this.renderVisibleItems(false); |
| 18200 }) |
| 18201 , false); |
| 18202 if (this._pages != null) { |
| 18203 this.watch(this._pages.target, (function (s) { |
| 18204 return $this._onPageSelected(); |
| 18205 }) |
| 18206 ); |
| 18207 } |
| 18208 if (this._snapToItems) { |
| 18209 this.scroller.get$onDecelStart().add((function (e) { |
| 18210 return $this._decelStart(); |
| 18211 }) |
| 18212 , false); |
| 18213 this.scroller.get$onScrollerDragEnd().add((function (e) { |
| 18214 return $this._decelStart(); |
| 18215 }) |
| 18216 , false); |
| 18217 } |
| 18218 if (this._showScrollbar) { |
| 18219 this._scrollbar = new Scrollbar(this.scroller, true); |
| 18220 } |
| 18221 } |
| 18222 else { |
| 18223 this._reserveArea(); |
| 18224 this.renderVisibleItems(true); |
| 18225 } |
| 18226 return node; |
| 18227 } |
| 18228 GenericListView.prototype.afterRender = function(node) { |
| 18229 var $this = this; // closure support |
| 18230 var $0; |
| 18231 if (!!(($0 = this._data) && $0.is$ObservableList_D())) { |
| 18232 var observable = this._data; |
| 18233 this.attachWatch(observable, (function (e) { |
| 18234 if ($eq(e.target, observable)) { |
| 18235 $this.onDataChange(); |
| 18236 } |
| 18237 }) |
| 18238 ); |
| 18239 } |
| 18240 if (this._selectedItem != null) { |
| 18241 this.addOnClick(function function_(e) { |
| 18242 $this._onClick(e); |
| 18243 } |
| 18244 ); |
| 18245 } |
| 18246 if (this._selectedItem != null) { |
| 18247 this.watch(this._selectedItem, (function (summary) { |
| 18248 return $this.onSelectedItemChange(); |
| 18249 }) |
| 18250 ); |
| 18251 } |
| 18252 } |
| 18253 GenericListView.prototype.onDataChange = function() { |
| 18254 this._layout.onDataChange(); |
| 18255 this._renderItems(); |
| 18256 } |
| 18257 GenericListView.prototype._reserveArea = function() { |
| 18258 var style = this._containerElem.get$style(); |
| 18259 var width = this._layout.getWidth(this._viewLength); |
| 18260 var height = this._layout.getHeight(this._viewLength); |
| 18261 if (width != null) { |
| 18262 style.set$width(("" + width + "px")); |
| 18263 } |
| 18264 if (height != null) { |
| 18265 style.set$height(("" + height + "px")); |
| 18266 } |
| 18267 style.set$overflow("hidden"); |
| 18268 } |
| 18269 GenericListView.prototype.onResize = function() { |
| 18270 var $this = this; // closure support |
| 18271 var lastViewLength = this._viewLength; |
| 18272 this.get$node().get$rect().then((function (rect) { |
| 18273 $this._viewLength = $this._vertical ? rect.offset.get$height() : rect.offset
.get$width(); |
| 18274 if ($this._viewLength != lastViewLength) { |
| 18275 if ($this._scrollbar != null) { |
| 18276 $this._scrollbar.refresh(); |
| 18277 } |
| 18278 $this.renderVisibleItems(true); |
| 18279 } |
| 18280 }) |
| 18281 ); |
| 18282 } |
| 18283 GenericListView.prototype.enterDocument = function() { |
| 18284 if (this.scroller != null) { |
| 18285 this.onResize(); |
| 18286 if (this._scrollbar != null) { |
| 18287 this._scrollbar.initialize(); |
| 18288 } |
| 18289 } |
| 18290 } |
| 18291 GenericListView.prototype.getNextIndex = function(index, forward) { |
| 18292 var delta = forward ? (1) : (-1); |
| 18293 if (this._paginate) { |
| 18294 var newPage = Math.max((0), this._layout.getPage(index, this._viewLength) +
delta); |
| 18295 index = this._layout.getPageStartIndex(newPage, this._viewLength); |
| 18296 } |
| 18297 else { |
| 18298 index += delta; |
| 18299 } |
| 18300 return GoogleMath.clamp(index, (0), this._data.get$length() - (1)); |
| 18301 } |
| 18302 GenericListView.prototype._decelStart = function() { |
| 18303 var currentTarget = this.scroller.verticalEnabled ? this.scroller.get$currentT
arget().y : this.scroller.get$currentTarget().x; |
| 18304 var current = this.scroller.verticalEnabled ? this.scroller.get$contentOffset(
).y : this.scroller.get$contentOffset().x; |
| 18305 var targetIndex = this._layout.getSnapIndex(currentTarget, this._viewLength); |
| 18306 if (current != currentTarget) { |
| 18307 var currentIndex = this._layout.getSnapIndex(current, this._viewLength); |
| 18308 if (currentIndex == targetIndex && (currentTarget - current).abs() > (15) &&
-this._layout.getOffset(targetIndex) != currentTarget) { |
| 18309 var snappedCurrentPosition = -this._layout.getOffset(targetIndex); |
| 18310 targetIndex = this.getNextIndex(targetIndex, currentTarget < current); |
| 18311 } |
| 18312 } |
| 18313 var targetPosition = -this._layout.getOffset(targetIndex); |
| 18314 if (currentTarget != targetPosition) { |
| 18315 if (this.scroller.verticalEnabled) { |
| 18316 this.scroller.throwTo(this.scroller.get$contentOffset().x, targetPosition)
; |
| 18317 } |
| 18318 else { |
| 18319 this.scroller.throwTo(targetPosition, this.scroller.get$contentOffset().y)
; |
| 18320 } |
| 18321 } |
| 18322 else { |
| 18323 if (this._pages != null) { |
| 18324 this._pages.target.set$value(this._layout.getPage(targetIndex, this._viewL
ength)); |
| 18325 } |
| 18326 } |
| 18327 } |
| 18328 GenericListView.prototype._renderItems = function() { |
| 18329 for (var i = this._activeInterval.start; |
| 18330 i < this._activeInterval.end; i++) { |
| 18331 this._removeView(i); |
| 18332 } |
| 18333 this._itemViews.clear(); |
| 18334 this._activeInterval = new Interval((0), (0)); |
| 18335 if (this.scroller == null) { |
| 18336 this._reserveArea(); |
| 18337 } |
| 18338 this.renderVisibleItems(false); |
| 18339 } |
| 18340 GenericListView.prototype._onPageSelected = function() { |
| 18341 if ($ne(this._pages.target, this._layout.getPage(this._activeInterval.start, t
his._viewLength))) { |
| 18342 this._throwTo(this._layout.getOffset(this._layout.getPageStartIndex(this._pa
ges.target.get$value(), this._viewLength))); |
| 18343 } |
| 18344 } |
| 18345 GenericListView.prototype.get$_offset = function() { |
| 18346 return this.scroller.verticalEnabled ? this.scroller.getVerticalOffset() : thi
s.scroller.getHorizontalOffset(); |
| 18347 } |
| 18348 GenericListView.prototype.getVisibleInterval = function() { |
| 18349 return this._layout.computeVisibleInterval(this.get$_offset(), this._viewLengt
h, (0)); |
| 18350 } |
| 18351 GenericListView.prototype.renderVisibleItems = function(lengthChanged) { |
| 18352 var targetInterval; |
| 18353 if (this.scroller != null) { |
| 18354 targetInterval = this.getVisibleInterval(); |
| 18355 } |
| 18356 else { |
| 18357 targetInterval = new Interval((0), this._data.get$length()); |
| 18358 } |
| 18359 if (this._pages != null) { |
| 18360 this._pages.current.set$value(this._layout.getPage(targetInterval.start, thi
s._viewLength)); |
| 18361 } |
| 18362 if (this._pages != null) { |
| 18363 this._pages.length.set$value(this._data.get$length() > (0) ? this._layout.ge
tPage(this._data.get$length() - (1), this._viewLength) + (1) : (0)); |
| 18364 } |
| 18365 if (!this._removeClippedViews) { |
| 18366 targetInterval = targetInterval.union(this._activeInterval); |
| 18367 } |
| 18368 if ($eq(lengthChanged, false) && $eq(targetInterval, this._activeInterval)) { |
| 18369 return; |
| 18370 } |
| 18371 for (var i = this._activeInterval.start, end = Math.min(targetInterval.start,
this._activeInterval.end); |
| 18372 i < end; i++) { |
| 18373 this._removeView(i); |
| 18374 } |
| 18375 for (var i = Math.max(targetInterval.end, this._activeInterval.start); |
| 18376 i < this._activeInterval.end; i++) { |
| 18377 this._removeView(i); |
| 18378 } |
| 18379 for (var i = targetInterval.start, end = Math.min(this._activeInterval.start,
targetInterval.end); |
| 18380 i < end; i++) { |
| 18381 this._addView(i); |
| 18382 } |
| 18383 for (var i = Math.max(this._activeInterval.end, targetInterval.start); |
| 18384 i < targetInterval.end; i++) { |
| 18385 this._addView(i); |
| 18386 } |
| 18387 this._activeInterval = targetInterval; |
| 18388 } |
| 18389 GenericListView.prototype._removeView = function(index) { |
| 18390 if (!((this._itemViews.$index(index) instanceof _PlaceholderView))) { |
| 18391 this._itemViews.$index(index).get$node().remove$0(); |
| 18392 this.childViewRemoved(this._itemViews.$index(index)); |
| 18393 } |
| 18394 } |
| 18395 GenericListView.prototype._newView = function(index) { |
| 18396 var view = this._layout.newView(index); |
| 18397 view.get$node().get$attributes().$setindex("data-index", index.toString$0()); |
| 18398 return view; |
| 18399 } |
| 18400 GenericListView.prototype._addView = function(index) { |
| 18401 if (this._itemViews.containsKey(index)) { |
| 18402 var view = this._itemViews.$index(index); |
| 18403 this._addViewHelper(view, index); |
| 18404 this.childViewAdded(view); |
| 18405 return view; |
| 18406 } |
| 18407 var view = this._newView(index); |
| 18408 this._itemViews.$setindex(index, view); |
| 18409 if (index == (0)) { |
| 18410 view.addClass$1("first-child"); |
| 18411 } |
| 18412 this._selectHelper(view, $eq(this._data.$index(index), this._lastSelectedItem)
); |
| 18413 this._addViewHelper(view, index); |
| 18414 this.childViewAdded(view); |
| 18415 return view; |
| 18416 } |
| 18417 GenericListView.prototype._addViewHelper = function(view, index) { |
| 18418 this._positionSubview(view.get$node(), index); |
| 18419 if ($ne(view.get$node().get$parent(), this._containerElem)) { |
| 18420 this._containerElem.get$nodes().add$1(view.get$node()); |
| 18421 } |
| 18422 } |
| 18423 GenericListView.prototype.findIndex = function(targetItem) { |
| 18424 var i = (0); |
| 18425 var $$list = this._data; |
| 18426 for (var $$i = 0;$$i < $$list.get$length(); $$i++) { |
| 18427 var item = $$list.$index($$i); |
| 18428 if ($eq(item, targetItem)) { |
| 18429 return i; |
| 18430 } |
| 18431 i++; |
| 18432 } |
| 18433 return null; |
| 18434 } |
| 18435 GenericListView.prototype._positionSubview = function(node, index) { |
| 18436 if (this._vertical) { |
| 18437 FxUtil.setTranslate(node, (0), this._layout.getOffset(index), (0)); |
| 18438 } |
| 18439 else { |
| 18440 FxUtil.setTranslate(node, this._layout.getOffset(index), (0), (0)); |
| 18441 } |
| 18442 node.get$style().set$zIndex(index.toString$0()); |
| 18443 } |
| 18444 GenericListView.prototype._select = function(index, selected) { |
| 18445 if (index != null) { |
| 18446 var subview = this.getSubview(index); |
| 18447 if (subview != null) { |
| 18448 this._selectHelper(subview, selected); |
| 18449 } |
| 18450 } |
| 18451 } |
| 18452 GenericListView.prototype._selectHelper = function(view, selected) { |
| 18453 if (selected) { |
| 18454 view.addClass("sel"); |
| 18455 } |
| 18456 else { |
| 18457 view.removeClass("sel"); |
| 18458 } |
| 18459 } |
| 18460 GenericListView.prototype.getSubview = function(index) { |
| 18461 return this._itemViews.$index(index); |
| 18462 } |
| 18463 GenericListView.prototype.showView = function(targetItem) { |
| 18464 var index = this.findIndex(targetItem); |
| 18465 if (index != null) { |
| 18466 if (this._layout.getOffset(index) < -this.get$_offset()) { |
| 18467 this._throwTo(this._layout.getOffset(index)); |
| 18468 } |
| 18469 else if (this._layout.getOffset(index + (1)) > (-this.get$_offset() + this._
viewLength)) { |
| 18470 this._throwTo(this._layout.getOffset(index + (1)) - this._viewLength); |
| 18471 } |
| 18472 } |
| 18473 } |
| 18474 GenericListView.prototype._throwTo = function(offset) { |
| 18475 if (this._vertical) { |
| 18476 this.scroller.throwTo((0), -offset); |
| 18477 } |
| 18478 else { |
| 18479 this.scroller.throwTo(-offset, (0)); |
| 18480 } |
| 18481 } |
| 18482 // ********** Code for GenericListView_Article ************** |
| 18483 $inherits(GenericListView_Article, GenericListView); |
| 18484 function GenericListView_Article(_layout, _data, _scrollable, _vertical, _select
edItem, _snapToItems, _paginate, _removeClippedViews, _showScrollbar, _pages) { |
| 18485 var $this = this; // closure support |
| 18486 this._removeClippedViews = _removeClippedViews; |
| 18487 this._layout = _layout; |
| 18488 this._pages = _pages; |
| 18489 this._showScrollbar = _showScrollbar; |
| 18490 this._viewLength = (0); |
| 18491 this._data = _data; |
| 18492 this._itemViews = new HashMapImplementation(); |
| 18493 this._vertical = _vertical; |
| 18494 this._paginate = _paginate; |
| 18495 this._activeInterval = new Interval((0), (0)); |
| 18496 this._snapToItems = _snapToItems; |
| 18497 this._selectedItem = _selectedItem; |
| 18498 this._scrollable = _scrollable; |
| 18499 View.call(this); |
| 18500 if (this._scrollable) { |
| 18501 html_get$window().get$on().get$resize().add((function (event) { |
| 18502 if ($this.get$isInDocument()) { |
| 18503 $this.onResize(); |
| 18504 } |
| 18505 }) |
| 18506 , false); |
| 18507 } |
| 18508 } |
| 18509 GenericListView_Article.prototype.onResize = function() { |
| 18510 var $this = this; // closure support |
| 18511 var lastViewLength = this._viewLength; |
| 18512 this.get$node().get$rect().then((function (rect) { |
| 18513 $this._viewLength = $this._vertical ? rect.offset.get$height() : rect.offset
.get$width(); |
| 18514 if ($this._viewLength != lastViewLength) { |
| 18515 if ($this._scrollbar != null) { |
| 18516 $this._scrollbar.refresh(); |
| 18517 } |
| 18518 $this.renderVisibleItems(true); |
| 18519 } |
| 18520 }) |
| 18521 ); |
| 18522 } |
| 18523 GenericListView_Article.prototype.getVisibleInterval = function() { |
| 18524 return this._layout.computeVisibleInterval(this.get$_offset(), this._viewLengt
h, (0)); |
| 18525 } |
| 18526 GenericListView_Article.prototype.renderVisibleItems = function(lengthChanged) { |
| 18527 var targetInterval; |
| 18528 if (this.scroller != null) { |
| 18529 targetInterval = this.getVisibleInterval(); |
| 18530 } |
| 18531 else { |
| 18532 targetInterval = new Interval((0), this._data.get$length()); |
| 18533 } |
| 18534 if (this._pages != null) { |
| 18535 this._pages.current.set$value(this._layout.getPage(targetInterval.start, thi
s._viewLength)); |
| 18536 } |
| 18537 if (this._pages != null) { |
| 18538 this._pages.length.set$value(this._data.get$length() > (0) ? this._layout.ge
tPage(this._data.get$length() - (1), this._viewLength) + (1) : (0)); |
| 18539 } |
| 18540 if (!this._removeClippedViews) { |
| 18541 targetInterval = targetInterval.union(this._activeInterval); |
| 18542 } |
| 18543 if ($eq(lengthChanged, false) && $eq(targetInterval, this._activeInterval)) { |
| 18544 return; |
| 18545 } |
| 18546 for (var i = this._activeInterval.start, end = Math.min(targetInterval.start,
this._activeInterval.end); |
| 18547 i < end; i++) { |
| 18548 this._removeView(i); |
| 18549 } |
| 18550 for (var i = Math.max(targetInterval.end, this._activeInterval.start); |
| 18551 i < this._activeInterval.end; i++) { |
| 18552 this._removeView(i); |
| 18553 } |
| 18554 for (var i = targetInterval.start, end = Math.min(this._activeInterval.start,
targetInterval.end); |
| 18555 i < end; i++) { |
| 18556 this._addView(i); |
| 18557 } |
| 18558 for (var i = Math.max(this._activeInterval.end, targetInterval.start); |
| 18559 i < targetInterval.end; i++) { |
| 18560 this._addView(i); |
| 18561 } |
| 18562 this._activeInterval = targetInterval; |
| 18563 } |
| 18564 GenericListView_Article.prototype._removeView = function(index) { |
| 18565 if (!((this._itemViews.$index(index) instanceof _PlaceholderView))) { |
| 18566 this._itemViews.$index(index).get$node().remove$0(); |
| 18567 this.childViewRemoved(this._itemViews.$index(index)); |
| 18568 } |
| 18569 } |
| 18570 GenericListView_Article.prototype._newView = function(index) { |
| 18571 var view = this._layout.newView(index); |
| 18572 view.get$node().get$attributes().$setindex("data-index", index.toString$0()); |
| 18573 return view; |
| 18574 } |
| 18575 GenericListView_Article.prototype._addView = function(index) { |
| 18576 if (this._itemViews.containsKey(index)) { |
| 18577 var view = this._itemViews.$index(index); |
| 18578 this._addViewHelper(view, index); |
| 18579 this.childViewAdded(view); |
| 18580 return view; |
| 18581 } |
| 18582 var view = this._newView(index); |
| 18583 this._itemViews.$setindex(index, view); |
| 18584 if (index == (0)) { |
| 18585 view.addClass$1("first-child"); |
| 18586 } |
| 18587 this._selectHelper(view, $eq(this._data.$index(index), this._lastSelectedItem)
); |
| 18588 this._addViewHelper(view, index); |
| 18589 this.childViewAdded(view); |
| 18590 return view; |
| 18591 } |
| 18592 GenericListView_Article.prototype._addViewHelper = function(view, index) { |
| 18593 this._positionSubview(view.get$node(), index); |
| 18594 if ($ne(view.get$node().get$parent(), this._containerElem)) { |
| 18595 this._containerElem.get$nodes().add$1(view.get$node()); |
| 18596 } |
| 18597 } |
| 18598 GenericListView_Article.prototype.findIndex = function(targetItem) { |
| 18599 var i = (0); |
| 18600 var $$list = this._data; |
| 18601 for (var $$i = 0;$$i < $$list.get$length(); $$i++) { |
| 18602 var item = $$list.$index($$i); |
| 18603 if ($eq(item, targetItem)) { |
| 18604 return i; |
| 18605 } |
| 18606 i++; |
| 18607 } |
| 18608 return null; |
| 18609 } |
| 18610 GenericListView_Article.prototype._positionSubview = function(node, index) { |
| 18611 if (this._vertical) { |
| 18612 FxUtil.setTranslate(node, (0), this._layout.getOffset(index), (0)); |
| 18613 } |
| 18614 else { |
| 18615 FxUtil.setTranslate(node, this._layout.getOffset(index), (0), (0)); |
| 18616 } |
| 18617 node.get$style().set$zIndex(index.toString$0()); |
| 18618 } |
| 18619 GenericListView_Article.prototype._selectHelper = function(view, selected) { |
| 18620 if (selected) { |
| 18621 view.addClass("sel"); |
| 18622 } |
| 18623 else { |
| 18624 view.removeClass("sel"); |
| 18625 } |
| 18626 } |
| 18627 GenericListView_Article.prototype.showView = function(targetItem) { |
| 18628 var index = this.findIndex(targetItem); |
| 18629 if (index != null) { |
| 18630 if (this._layout.getOffset(index) < -this.get$_offset()) { |
| 18631 this._throwTo(this._layout.getOffset(index)); |
| 18632 } |
| 18633 else if (this._layout.getOffset(index + (1)) > (-this.get$_offset() + this._
viewLength)) { |
| 18634 this._throwTo(this._layout.getOffset(index + (1)) - this._viewLength); |
| 18635 } |
| 18636 } |
| 18637 } |
| 18638 GenericListView_Article.prototype._throwTo = function(offset) { |
| 18639 if (this._vertical) { |
| 18640 this.scroller.throwTo((0), -offset); |
| 18641 } |
| 18642 else { |
| 18643 this.scroller.throwTo(-offset, (0)); |
| 18644 } |
| 18645 } |
| 18646 // ********** Code for GenericListView_D ************** |
| 18647 $inherits(GenericListView_D, GenericListView); |
| 18648 function GenericListView_D(_layout, _data, _scrollable, _vertical, _selectedItem
, _snapToItems, _paginate, _removeClippedViews, _showScrollbar, _pages) { |
| 18649 var $this = this; // closure support |
| 18650 this._vertical = _vertical; |
| 18651 this._data = _data; |
| 18652 this._itemViews = new HashMapImplementation(); |
| 18653 this._paginate = _paginate; |
| 18654 this._removeClippedViews = _removeClippedViews; |
| 18655 this._layout = _layout; |
| 18656 this._pages = _pages; |
| 18657 this._viewLength = (0); |
| 18658 this._showScrollbar = _showScrollbar; |
| 18659 this._snapToItems = _snapToItems; |
| 18660 this._selectedItem = _selectedItem; |
| 18661 this._scrollable = _scrollable; |
| 18662 this._activeInterval = new Interval((0), (0)); |
| 18663 View.call(this); |
| 18664 if (this._scrollable) { |
| 18665 html_get$window().get$on().get$resize().add((function (event) { |
| 18666 if ($this.get$isInDocument()) { |
| 18667 $this.onResize(); |
| 18668 } |
| 18669 }) |
| 18670 , false); |
| 18671 } |
| 18672 } |
| 18673 GenericListView_D.prototype.onResize = function() { |
| 18674 var $this = this; // closure support |
| 18675 var lastViewLength = this._viewLength; |
| 18676 this.get$node().get$rect().then((function (rect) { |
| 18677 $this._viewLength = $this._vertical ? rect.offset.get$height() : rect.offset
.get$width(); |
| 18678 if ($this._viewLength != lastViewLength) { |
| 18679 if ($this._scrollbar != null) { |
| 18680 $this._scrollbar.refresh(); |
| 18681 } |
| 18682 $this.renderVisibleItems(true); |
| 18683 } |
| 18684 }) |
| 18685 ); |
| 18686 } |
| 18687 GenericListView_D.prototype.getVisibleInterval = function() { |
| 18688 return this._layout.computeVisibleInterval(this.get$_offset(), this._viewLengt
h, (0)); |
| 18689 } |
| 18690 GenericListView_D.prototype.renderVisibleItems = function(lengthChanged) { |
| 18691 var targetInterval; |
| 18692 if (this.scroller != null) { |
| 18693 targetInterval = this.getVisibleInterval(); |
| 18694 } |
| 18695 else { |
| 18696 targetInterval = new Interval((0), this._data.get$length()); |
| 18697 } |
| 18698 if (this._pages != null) { |
| 18699 this._pages.current.set$value(this._layout.getPage(targetInterval.start, thi
s._viewLength)); |
| 18700 } |
| 18701 if (this._pages != null) { |
| 18702 this._pages.length.set$value(this._data.get$length() > (0) ? this._layout.ge
tPage(this._data.get$length() - (1), this._viewLength) + (1) : (0)); |
| 18703 } |
| 18704 if (!this._removeClippedViews) { |
| 18705 targetInterval = targetInterval.union(this._activeInterval); |
| 18706 } |
| 18707 if ($eq(lengthChanged, false) && $eq(targetInterval, this._activeInterval)) { |
| 18708 return; |
| 18709 } |
| 18710 for (var i = this._activeInterval.start, end = Math.min(targetInterval.start,
this._activeInterval.end); |
| 18711 i < end; i++) { |
| 18712 this._removeView(i); |
| 18713 } |
| 18714 for (var i = Math.max(targetInterval.end, this._activeInterval.start); |
| 18715 i < this._activeInterval.end; i++) { |
| 18716 this._removeView(i); |
| 18717 } |
| 18718 for (var i = targetInterval.start, end = Math.min(this._activeInterval.start,
targetInterval.end); |
| 18719 i < end; i++) { |
| 18720 this._addView(i); |
| 18721 } |
| 18722 for (var i = Math.max(this._activeInterval.end, targetInterval.start); |
| 18723 i < targetInterval.end; i++) { |
| 18724 this._addView(i); |
| 18725 } |
| 18726 this._activeInterval = targetInterval; |
| 18727 } |
| 18728 GenericListView_D.prototype._removeView = function(index) { |
| 18729 if (!((this._itemViews.$index(index) instanceof _PlaceholderView))) { |
| 18730 this._itemViews.$index(index).get$node().remove$0(); |
| 18731 this.childViewRemoved(this._itemViews.$index(index)); |
| 18732 } |
| 18733 } |
| 18734 GenericListView_D.prototype._newView = function(index) { |
| 18735 var view = this._layout.newView(index); |
| 18736 view.get$node().get$attributes().$setindex("data-index", index.toString$0()); |
| 18737 return view; |
| 18738 } |
| 18739 GenericListView_D.prototype._addView = function(index) { |
| 18740 if (this._itemViews.containsKey(index)) { |
| 18741 var view = this._itemViews.$index(index); |
| 18742 this._addViewHelper(view, index); |
| 18743 this.childViewAdded(view); |
| 18744 return view; |
| 18745 } |
| 18746 var view = this._newView(index); |
| 18747 this._itemViews.$setindex(index, view); |
| 18748 if (index == (0)) { |
| 18749 view.addClass$1("first-child"); |
| 18750 } |
| 18751 this._selectHelper(view, $eq(this._data.$index(index), this._lastSelectedItem)
); |
| 18752 this._addViewHelper(view, index); |
| 18753 this.childViewAdded(view); |
| 18754 return view; |
| 18755 } |
| 18756 GenericListView_D.prototype._addViewHelper = function(view, index) { |
| 18757 this._positionSubview(view.get$node(), index); |
| 18758 if ($ne(view.get$node().get$parent(), this._containerElem)) { |
| 18759 this._containerElem.get$nodes().add$1(view.get$node()); |
| 18760 } |
| 18761 } |
| 18762 GenericListView_D.prototype._positionSubview = function(node, index) { |
| 18763 if (this._vertical) { |
| 18764 FxUtil.setTranslate(node, (0), this._layout.getOffset(index), (0)); |
| 18765 } |
| 18766 else { |
| 18767 FxUtil.setTranslate(node, this._layout.getOffset(index), (0), (0)); |
| 18768 } |
| 18769 node.get$style().set$zIndex(index.toString$0()); |
| 18770 } |
| 18771 GenericListView_D.prototype._selectHelper = function(view, selected) { |
| 18772 if (selected) { |
| 18773 view.addClass("sel"); |
| 18774 } |
| 18775 else { |
| 18776 view.removeClass("sel"); |
| 18777 } |
| 18778 } |
| 18779 // ********** Code for GenericListView_Feed ************** |
| 18780 $inherits(GenericListView_Feed, GenericListView); |
| 18781 function GenericListView_Feed(_layout, _data, _scrollable, _vertical, _selectedI
tem, _snapToItems, _paginate, _removeClippedViews, _showScrollbar, _pages) { |
| 18782 var $this = this; // closure support |
| 18783 this._viewLength = (0); |
| 18784 this._activeInterval = new Interval((0), (0)); |
| 18785 this._snapToItems = _snapToItems; |
| 18786 this._selectedItem = _selectedItem; |
| 18787 this._scrollable = _scrollable; |
| 18788 this._removeClippedViews = _removeClippedViews; |
| 18789 this._layout = _layout; |
| 18790 this._pages = _pages; |
| 18791 this._showScrollbar = _showScrollbar; |
| 18792 this._vertical = _vertical; |
| 18793 this._data = _data; |
| 18794 this._itemViews = new HashMapImplementation(); |
| 18795 this._paginate = _paginate; |
| 18796 View.call(this); |
| 18797 if (this._scrollable) { |
| 18798 html_get$window().get$on().get$resize().add((function (event) { |
| 18799 if ($this.get$isInDocument()) { |
| 18800 $this.onResize(); |
| 18801 } |
| 18802 }) |
| 18803 , false); |
| 18804 } |
| 18805 } |
| 18806 GenericListView_Feed.prototype.onResize = function() { |
| 18807 var $this = this; // closure support |
| 18808 var lastViewLength = this._viewLength; |
| 18809 this.get$node().get$rect().then((function (rect) { |
| 18810 $this._viewLength = $this._vertical ? rect.offset.get$height() : rect.offset
.get$width(); |
| 18811 if ($this._viewLength != lastViewLength) { |
| 18812 if ($this._scrollbar != null) { |
| 18813 $this._scrollbar.refresh(); |
| 18814 } |
| 18815 $this.renderVisibleItems(true); |
| 18816 } |
| 18817 }) |
| 18818 ); |
| 18819 } |
| 18820 GenericListView_Feed.prototype.getVisibleInterval = function() { |
| 18821 return this._layout.computeVisibleInterval(this.get$_offset(), this._viewLengt
h, (0)); |
| 18822 } |
| 18823 GenericListView_Feed.prototype.renderVisibleItems = function(lengthChanged) { |
| 18824 var targetInterval; |
| 18825 if (this.scroller != null) { |
| 18826 targetInterval = this.getVisibleInterval(); |
| 18827 } |
| 18828 else { |
| 18829 targetInterval = new Interval((0), this._data.get$length()); |
| 18830 } |
| 18831 if (this._pages != null) { |
| 18832 this._pages.current.set$value(this._layout.getPage(targetInterval.start, thi
s._viewLength)); |
| 18833 } |
| 18834 if (this._pages != null) { |
| 18835 this._pages.length.set$value(this._data.get$length() > (0) ? this._layout.ge
tPage(this._data.get$length() - (1), this._viewLength) + (1) : (0)); |
| 18836 } |
| 18837 if (!this._removeClippedViews) { |
| 18838 targetInterval = targetInterval.union(this._activeInterval); |
| 18839 } |
| 18840 if ($eq(lengthChanged, false) && $eq(targetInterval, this._activeInterval)) { |
| 18841 return; |
| 18842 } |
| 18843 for (var i = this._activeInterval.start, end = Math.min(targetInterval.start,
this._activeInterval.end); |
| 18844 i < end; i++) { |
| 18845 this._removeView(i); |
| 18846 } |
| 18847 for (var i = Math.max(targetInterval.end, this._activeInterval.start); |
| 18848 i < this._activeInterval.end; i++) { |
| 18849 this._removeView(i); |
| 18850 } |
| 18851 for (var i = targetInterval.start, end = Math.min(this._activeInterval.start,
targetInterval.end); |
| 18852 i < end; i++) { |
| 18853 this._addView(i); |
| 18854 } |
| 18855 for (var i = Math.max(this._activeInterval.end, targetInterval.start); |
| 18856 i < targetInterval.end; i++) { |
| 18857 this._addView(i); |
| 18858 } |
| 18859 this._activeInterval = targetInterval; |
| 18860 } |
| 18861 GenericListView_Feed.prototype._removeView = function(index) { |
| 18862 if (!((this._itemViews.$index(index) instanceof _PlaceholderView))) { |
| 18863 this._itemViews.$index(index).get$node().remove$0(); |
| 18864 this.childViewRemoved(this._itemViews.$index(index)); |
| 18865 } |
| 18866 } |
| 18867 GenericListView_Feed.prototype._newView = function(index) { |
| 18868 var view = this._layout.newView(index); |
| 18869 view.get$node().get$attributes().$setindex("data-index", index.toString$0()); |
| 18870 return view; |
| 18871 } |
| 18872 GenericListView_Feed.prototype._addView = function(index) { |
| 18873 if (this._itemViews.containsKey(index)) { |
| 18874 var view = this._itemViews.$index(index); |
| 18875 this._addViewHelper(view, index); |
| 18876 this.childViewAdded(view); |
| 18877 return view; |
| 18878 } |
| 18879 var view = this._newView(index); |
| 18880 this._itemViews.$setindex(index, view); |
| 18881 if (index == (0)) { |
| 18882 view.addClass$1("first-child"); |
| 18883 } |
| 18884 this._selectHelper(view, $eq(this._data.$index(index), this._lastSelectedItem)
); |
| 18885 this._addViewHelper(view, index); |
| 18886 this.childViewAdded(view); |
| 18887 return view; |
| 18888 } |
| 18889 GenericListView_Feed.prototype._addViewHelper = function(view, index) { |
| 18890 this._positionSubview(view.get$node(), index); |
| 18891 if ($ne(view.get$node().get$parent(), this._containerElem)) { |
| 18892 this._containerElem.get$nodes().add$1(view.get$node()); |
| 18893 } |
| 18894 } |
| 18895 GenericListView_Feed.prototype.detachSubview = function(itemData) { |
| 18896 var index = this.findIndex(itemData); |
| 18897 var view = this._itemViews.$index(index); |
| 18898 if (view == null) { |
| 18899 this._addView(index); |
| 18900 view = this._itemViews.$index(index); |
| 18901 } |
| 18902 var placeholder = new _PlaceholderView(); |
| 18903 view.get$node().replaceWith(placeholder.get$node()); |
| 18904 this._itemViews.$setindex(index, placeholder); |
| 18905 return view; |
| 18906 } |
| 18907 GenericListView_Feed.prototype.reattachSubview = function(data, view, animate) { |
| 18908 var $this = this; // closure support |
| 18909 var index = this.findIndex(data); |
| 18910 var currentPosition; |
| 18911 if (animate) { |
| 18912 currentPosition = FxUtil.computeRelativePosition(view.get$node(), this._cont
ainerElem); |
| 18913 } |
| 18914 view.enterDocument(); |
| 18915 this._itemViews.$index(index).get$node().replaceWith$1(view.get$node()); |
| 18916 this._itemViews.$setindex(index, view); |
| 18917 if (animate) { |
| 18918 FxUtil.setTranslate(view.get$node(), currentPosition.get$x(), currentPositio
n.get$y(), (0)); |
| 18919 html_get$window().setTimeout((function () { |
| 18920 $this._positionSubview(view.get$node(), index); |
| 18921 }) |
| 18922 , (0)); |
| 18923 } |
| 18924 else { |
| 18925 this._positionSubview(view.get$node(), index); |
| 18926 } |
| 18927 } |
| 18928 GenericListView_Feed.prototype.findIndex = function(targetItem) { |
| 18929 var i = (0); |
| 18930 var $$list = this._data; |
| 18931 for (var $$i = 0;$$i < $$list.get$length(); $$i++) { |
| 18932 var item = $$list.$index($$i); |
| 18933 if ($eq(item, targetItem)) { |
| 18934 return i; |
| 18935 } |
| 18936 i++; |
| 18937 } |
| 18938 return null; |
| 18939 } |
| 18940 GenericListView_Feed.prototype._positionSubview = function(node, index) { |
| 18941 if (this._vertical) { |
| 18942 FxUtil.setTranslate(node, (0), this._layout.getOffset(index), (0)); |
| 18943 } |
| 18944 else { |
| 18945 FxUtil.setTranslate(node, this._layout.getOffset(index), (0), (0)); |
| 18946 } |
| 18947 node.get$style().set$zIndex(index.toString$0()); |
| 18948 } |
| 18949 GenericListView_Feed.prototype._selectHelper = function(view, selected) { |
| 18950 if (selected) { |
| 18951 view.addClass("sel"); |
| 18952 } |
| 18953 else { |
| 18954 view.removeClass("sel"); |
| 18955 } |
| 18956 } |
| 18957 GenericListView_Feed.prototype.getSubview = function(index) { |
| 18958 return this._itemViews.$index(index); |
| 18959 } |
| 18960 GenericListView_Feed.prototype.showView = function(targetItem) { |
| 18961 var index = this.findIndex(targetItem); |
| 18962 if (index != null) { |
| 18963 if (this._layout.getOffset(index) < -this.get$_offset()) { |
| 18964 this._throwTo(this._layout.getOffset(index)); |
| 18965 } |
| 18966 else if (this._layout.getOffset(index + (1)) > (-this.get$_offset() + this._
viewLength)) { |
| 18967 this._throwTo(this._layout.getOffset(index + (1)) - this._viewLength); |
| 18968 } |
| 18969 } |
| 18970 } |
| 18971 GenericListView_Feed.prototype._throwTo = function(offset) { |
| 18972 if (this._vertical) { |
| 18973 this.scroller.throwTo((0), -offset); |
| 18974 } |
| 18975 else { |
| 18976 this.scroller.throwTo(-offset, (0)); |
| 18977 } |
| 18978 } |
| 18979 // ********** Code for FixedSizeListViewLayout ************** |
| 18980 function FixedSizeListViewLayout(itemViewFactory, _data, _vertical, _paginate) { |
| 18981 this._paginate = _paginate; |
| 18982 this.itemViewFactory = itemViewFactory; |
| 18983 this._vertical = _vertical; |
| 18984 this._data = _data; |
| 18985 } |
| 18986 FixedSizeListViewLayout.prototype.onDataChange = function() { |
| 18987 |
| 18988 } |
| 18989 FixedSizeListViewLayout.prototype.newView = function(index) { |
| 18990 return this.itemViewFactory.newView(this._data.$index(index)); |
| 18991 } |
| 18992 FixedSizeListViewLayout.prototype.get$_itemLength = function() { |
| 18993 return this._vertical ? this.itemViewFactory.get$height() : this.itemViewFacto
ry.get$width(); |
| 18994 } |
| 18995 FixedSizeListViewLayout.prototype.getWidth = function(viewLength) { |
| 18996 return this._vertical ? this.itemViewFactory.get$width() : this.getLength(view
Length); |
| 18997 } |
| 18998 FixedSizeListViewLayout.prototype.getHeight = function(viewLength) { |
| 18999 return this._vertical ? this.getLength(viewLength) : this.itemViewFactory.get$
height(); |
| 19000 } |
| 19001 FixedSizeListViewLayout.prototype.getLength = function(viewLength) { |
| 19002 var itemLength = this._vertical ? this.itemViewFactory.get$height() : this.ite
mViewFactory.get$width(); |
| 19003 if (viewLength == null || viewLength == (0)) { |
| 19004 return itemLength * this._data.get$length(); |
| 19005 } |
| 19006 else if (this._paginate) { |
| 19007 if (this._data.get$length() > (0)) { |
| 19008 var pageLength = this.getPageLength(viewLength); |
| 19009 return this.getPage(this._data.get$length() - (1), viewLength) * pageLengt
h + Math.max(viewLength, pageLength); |
| 19010 } |
| 19011 else { |
| 19012 return (0); |
| 19013 } |
| 19014 } |
| 19015 else { |
| 19016 return itemLength * (this._data.get$length() - (1)) + Math.max(viewLength, i
temLength); |
| 19017 } |
| 19018 } |
| 19019 FixedSizeListViewLayout.prototype.getOffset = function(index) { |
| 19020 return index * this.get$_itemLength(); |
| 19021 } |
| 19022 FixedSizeListViewLayout.prototype.getPageLength = function(viewLength) { |
| 19023 var itemsPerPage = (viewLength / this.get$_itemLength()).floor(); |
| 19024 return (Math.max((1), itemsPerPage) * this.get$_itemLength()).toInt(); |
| 19025 } |
| 19026 FixedSizeListViewLayout.prototype.getPage = function(index, viewLength) { |
| 19027 return (this.getOffset(index) / this.getPageLength(viewLength)).floor().toInt(
); |
| 19028 } |
| 19029 FixedSizeListViewLayout.prototype.getPageStartIndex = function(page, viewLength)
{ |
| 19030 return (this.getPageLength(viewLength) / this.get$_itemLength()).toInt() * pag
e; |
| 19031 } |
| 19032 FixedSizeListViewLayout.prototype.getSnapIndex = function(offset, viewLength) { |
| 19033 var index = (-offset / this.get$_itemLength()).round().toInt(); |
| 19034 if (this._paginate) { |
| 19035 index = this.getPageStartIndex(this.getPage(index, viewLength), viewLength); |
| 19036 } |
| 19037 return GoogleMath.clamp(index, (0), this._data.get$length() - (1)); |
| 19038 } |
| 19039 FixedSizeListViewLayout.prototype.computeVisibleInterval = function(offset, view
Length, bufferLength) { |
| 19040 var targetIntervalStart = Math.max((0), ((-offset - bufferLength) / this.get$_
itemLength()).floor()); |
| 19041 var targetIntervalEnd = GoogleMath.clamp(((-offset + viewLength + bufferLength
) / this.get$_itemLength()).ceil(), targetIntervalStart, this._data.get$length()
); |
| 19042 return new Interval(targetIntervalStart.toInt(), targetIntervalEnd.toInt()); |
| 19043 } |
| 19044 // ********** Code for FixedSizeListViewLayout_D ************** |
| 19045 $inherits(FixedSizeListViewLayout_D, FixedSizeListViewLayout); |
| 19046 function FixedSizeListViewLayout_D(itemViewFactory, _data, _vertical, _paginate)
{ |
| 19047 this._paginate = _paginate; |
| 19048 this._data = _data; |
| 19049 this._vertical = _vertical; |
| 19050 this.itemViewFactory = itemViewFactory; |
| 19051 } |
| 19052 // ********** Code for FixedSizeListViewLayout_Feed ************** |
| 19053 $inherits(FixedSizeListViewLayout_Feed, FixedSizeListViewLayout); |
| 19054 function FixedSizeListViewLayout_Feed(itemViewFactory, _data, _vertical, _pagina
te) { |
| 19055 this._paginate = _paginate; |
| 19056 this._data = _data; |
| 19057 this._vertical = _vertical; |
| 19058 this.itemViewFactory = itemViewFactory; |
| 19059 } |
| 19060 // ********** Code for ListView ************** |
| 19061 $inherits(ListView, GenericListView_D); |
| 19062 function ListView(data, itemViewFactory, scrollable, vertical, selectedItem, sna
pToItems, paginate, removeClippedViews, showScrollbar, pages) { |
| 19063 GenericListView_D.call(this, new FixedSizeListViewLayout_D(itemViewFactory, da
ta, vertical, paginate), data, scrollable, vertical, selectedItem, snapToItems,
paginate, removeClippedViews, showScrollbar, pages); |
| 19064 } |
| 19065 // ********** Code for ListView_Feed ************** |
| 19066 $inherits(ListView_Feed, ListView); |
| 19067 function ListView_Feed(data, itemViewFactory, scrollable, vertical, selectedItem
, snapToItems, paginate, removeClippedViews, showScrollbar, pages) { |
| 19068 GenericListView_Feed.call(this, new FixedSizeListViewLayout_Feed(itemViewFacto
ry, data, vertical, paginate), data, scrollable, vertical, selectedItem, snapToI
tems, paginate, removeClippedViews, showScrollbar, pages); |
| 19069 } |
| 19070 // ********** Code for VariableSizeListViewLayout ************** |
| 19071 function VariableSizeListViewLayout(itemViewFactory, data, _vertical, _paginate)
{ |
| 19072 this._lastVisibleInterval = new Interval((0), (0)); |
| 19073 this._vertical = _vertical; |
| 19074 this._data = data; |
| 19075 this.itemViewFactory = itemViewFactory; |
| 19076 this._lastOffset = (0); |
| 19077 this._paginate = _paginate; |
| 19078 this._itemOffsets = []; |
| 19079 this._lengths = []; |
| 19080 this._itemOffsets.add$1((0)); |
| 19081 } |
| 19082 VariableSizeListViewLayout.prototype.onDataChange = function() { |
| 19083 this._itemOffsets.clear$0(); |
| 19084 this._itemOffsets.add$1((0)); |
| 19085 this._lengths.clear$0(); |
| 19086 } |
| 19087 VariableSizeListViewLayout.prototype.newView = function(index) { |
| 19088 return this.itemViewFactory.newView(this._data.$index(index)); |
| 19089 } |
| 19090 VariableSizeListViewLayout.prototype.getWidth = function(viewLength) { |
| 19091 if (this._vertical) { |
| 19092 return this.itemViewFactory.getWidth(null); |
| 19093 } |
| 19094 else { |
| 19095 return this.getLength(viewLength); |
| 19096 } |
| 19097 } |
| 19098 VariableSizeListViewLayout.prototype.getHeight = function(viewLength) { |
| 19099 if (this._vertical) { |
| 19100 return this.getLength(viewLength); |
| 19101 } |
| 19102 else { |
| 19103 return this.itemViewFactory.getHeight(null); |
| 19104 } |
| 19105 } |
| 19106 VariableSizeListViewLayout.prototype.getLength = function(viewLength) { |
| 19107 if (this._data.get$length() == (0)) { |
| 19108 return viewLength; |
| 19109 } |
| 19110 else { |
| 19111 this.getOffset(this._data.get$length()); |
| 19112 return (this.getOffset(this._data.get$length() - (1)) - this.getOffset((0)))
+ Math.max(this._lengths.$index(this._lengths.get$length() - (1)), viewLength); |
| 19113 } |
| 19114 } |
| 19115 VariableSizeListViewLayout.prototype.getOffset = function(index) { |
| 19116 if (index >= this._itemOffsets.get$length()) { |
| 19117 var offset = this._itemOffsets.$index(this._itemOffsets.get$length() - (1)); |
| 19118 for (var i = this._itemOffsets.get$length(); |
| 19119 i <= index; i++) { |
| 19120 var length = this._vertical ? this.itemViewFactory.getHeight(this._data.$i
ndex(i - (1))) : this.itemViewFactory.getWidth(this._data.$index(i - (1))); |
| 19121 offset += length; |
| 19122 this._itemOffsets.add$1(offset); |
| 19123 this._lengths.add$1(length); |
| 19124 } |
| 19125 } |
| 19126 return this._itemOffsets.$index(index); |
| 19127 } |
| 19128 VariableSizeListViewLayout.prototype.getPage = function(index, viewLength) { |
| 19129 $throw("Not implemented"); |
| 19130 } |
| 19131 VariableSizeListViewLayout.prototype.getPageStartIndex = function(page, viewLeng
th) { |
| 19132 $throw("Not implemented"); |
| 19133 } |
| 19134 VariableSizeListViewLayout.prototype.getSnapIndex = function(offset, viewLength)
{ |
| 19135 for (var i = (1); |
| 19136 i < this._data.get$length(); i++) { |
| 19137 if (this.getOffset(i) + this.getOffset(i - (1)) > -offset * (2)) { |
| 19138 return i - (1); |
| 19139 } |
| 19140 } |
| 19141 return this._data.get$length() - (1); |
| 19142 } |
| 19143 VariableSizeListViewLayout.prototype.computeVisibleInterval = function(offset, v
iewLength, bufferLength) { |
| 19144 offset = offset.toInt(); |
| 19145 var start = this._findFirstItemBefore(-offset - bufferLength, this._lastVisibl
eInterval != null ? this._lastVisibleInterval.start : (0)); |
| 19146 var end = this._findFirstItemAfter(-offset + viewLength + bufferLength, this._
lastVisibleInterval != null ? this._lastVisibleInterval.end : (0)); |
| 19147 this._lastVisibleInterval = new Interval(start, Math.max(start, end)); |
| 19148 this._lastOffset = offset; |
| 19149 return this._lastVisibleInterval; |
| 19150 } |
| 19151 VariableSizeListViewLayout.prototype._findFirstItemAfter = function(target, hint
) { |
| 19152 for (var i = (0); |
| 19153 i < this._data.get$length(); i++) { |
| 19154 if (this.getOffset(i) > target) { |
| 19155 return i; |
| 19156 } |
| 19157 } |
| 19158 return this._data.get$length(); |
| 19159 } |
| 19160 VariableSizeListViewLayout.prototype._findFirstItemBefore = function(target, hin
t) { |
| 19161 for (var i = (1); |
| 19162 i < this._data.get$length(); i++) { |
| 19163 if (this.getOffset(i) >= target) { |
| 19164 return i - (1); |
| 19165 } |
| 19166 } |
| 19167 return Math.max(this._data.get$length() - (1), (0)); |
| 19168 } |
| 19169 // ********** Code for VariableSizeListView ************** |
| 19170 $inherits(VariableSizeListView, GenericListView_D); |
| 19171 function VariableSizeListView(data, itemViewFactory, scrollable, vertical, selec
tedItem, snapToItems, paginate, removeClippedViews, showScrollbar, pages) { |
| 19172 GenericListView_D.call(this, new VariableSizeListViewLayout(itemViewFactory, d
ata, vertical, paginate), data, scrollable, vertical, selectedItem, snapToItems,
paginate, removeClippedViews, showScrollbar, pages); |
| 19173 } |
| 19174 // ********** Code for VariableSizeListView_Article ************** |
| 19175 $inherits(VariableSizeListView_Article, VariableSizeListView); |
| 19176 function VariableSizeListView_Article(data, itemViewFactory, scrollable, vertica
l, selectedItem, snapToItems, paginate, removeClippedViews, showScrollbar, pages
) { |
| 19177 GenericListView_Article.call(this, new VariableSizeListViewLayout(itemViewFact
ory, data, vertical, paginate), data, scrollable, vertical, selectedItem, snapTo
Items, paginate, removeClippedViews, showScrollbar, pages); |
| 19178 } |
| 19179 // ********** Code for PushButtonView ************** |
| 19180 $inherits(PushButtonView, View); |
| 19181 function PushButtonView(_text, _cssClass, _clickHandler) { |
| 19182 this._text = _text; |
| 19183 this._cssClass = _cssClass; |
| 19184 this._clickHandler = _clickHandler; |
| 19185 View.call(this); |
| 19186 } |
| 19187 PushButtonView.prototype.render = function() { |
| 19188 return ElementWrappingImplementation.ElementWrappingImplementation$html$factor
y(("<button class=\"" + this._cssClass + "\">" + this._text + "</button>")); |
| 19189 } |
| 19190 PushButtonView.prototype.afterRender = function(node) { |
| 19191 this.addOnClick(to$call$1(this._clickHandler)); |
| 19192 } |
| 19193 // ********** Code for CannedData ************** |
| 19194 function CannedData() {} |
| 19195 // ********** Code for top level ************** |
| 19196 function _backToMain(state) { |
| 19197 if (state.currentArticle.get$value() != null) { |
| 19198 state.clearCurrentArticle(); |
| 19199 state.storyTextMode.set$value(true); |
| 19200 state.pushToHistory(); |
| 19201 } |
| 19202 } |
| 19203 // ********** Library swarm ************** |
| 19204 // ********** Code for top level ************** |
| 19205 function main() { |
| 19206 new Swarm().run(); |
| 19207 } |
| 19208 // ********** Generic Type Inheritance ************** |
| 19209 /** Implements extends for generic types. */ |
| 19210 function $inheritsMembers(child, parent) { |
| 19211 child = child.prototype; |
| 19212 parent = parent.prototype; |
| 19213 Object.getOwnPropertyNames(parent).forEach(function(name) { |
| 19214 if (typeof(child[name]) == 'undefined') child[name] = parent[name]; |
| 19215 }); |
| 19216 } |
| 19217 $inheritsMembers(_DoubleLinkedQueueEntrySentinel_E, DoubleLinkedQueueEntry_E); |
| 19218 $inheritsMembers(_DoubleLinkedQueueEntrySentinel_KeyValuePair_K$V, DoubleLinkedQ
ueueEntry_KeyValuePair_K$V); |
| 19219 $inheritsMembers(_FixedSizeListIterator_html_html_Touch, _VariableSizeListIterat
or_html_html_Touch); |
| 19220 $inheritsMembers(ListView_Feed, GenericListView_Feed); |
| 19221 $inheritsMembers(VariableSizeListView_Article, GenericListView_Article); |
| 19222 // 376 dynamic types. |
| 19223 // 502 types |
| 19224 // 41 !leaf |
| 19225 (function(){ |
| 19226 var v0/*CSSValueList*/ = 'CSSValueList|WebKitCSSFilterValue|WebKitCSSTransform
Value'; |
| 19227 var v1/*HTMLInputElement*/ = 'HTMLInputElement|HTMLIsIndexElement'; |
| 19228 var v2/*HTMLMediaElement*/ = 'HTMLMediaElement|HTMLAudioElement|HTMLVideoEleme
nt'; |
| 19229 var v3/*SVGTextPositioningElement*/ = 'SVGTextPositioningElement|SVGAltGlyphEl
ement|SVGTRefElement|SVGTSpanElement|SVGTextElement'; |
| 19230 var v4/*SVGComponentTransferFunctionElement*/ = 'SVGComponentTransferFunctionE
lement|SVGFEFuncAElement|SVGFEFuncBElement|SVGFEFuncGElement|SVGFEFuncRElement'; |
| 19231 var v5/*SVGGradientElement*/ = 'SVGGradientElement|SVGLinearGradientElement|SV
GRadialGradientElement'; |
| 19232 var v6/*SVGTextContentElement*/ = [v3/*SVGTextPositioningElement*/,'SVGTextCon
tentElement|SVGTextPathElement'].join('|'); |
| 19233 var v7/*HTMLElement*/ = [v1/*HTMLInputElement*/,v2/*HTMLMediaElement*/,'HTMLEl
ement|HTMLAnchorElement|HTMLAppletElement|HTMLAreaElement|HTMLBRElement|HTMLBase
Element|HTMLBaseFontElement|HTMLBodyElement|HTMLButtonElement|HTMLCanvasElement|
HTMLDListElement|HTMLDataListElement|HTMLDetailsElement|HTMLDirectoryElement|HTM
LDivElement|HTMLEmbedElement|HTMLFieldSetElement|HTMLFontElement|HTMLFormElement
|HTMLFrameElement|HTMLFrameSetElement|HTMLHRElement|HTMLHeadElement|HTMLHeadingE
lement|HTMLHtmlElement|HTMLIFrameElement|HTMLImageElement|HTMLKeygenElement|HTML
LIElement|HTMLLabelElement|HTMLLegendElement|HTMLLinkElement|HTMLMapElement|HTML
MarqueeElement|HTMLMenuElement|HTMLMetaElement|HTMLMeterElement|HTMLModElement|H
TMLOListElement|HTMLObjectElement|HTMLOptGroupElement|HTMLOptionElement|HTMLOutp
utElement|HTMLParagraphElement|HTMLParamElement|HTMLPreElement|HTMLProgressEleme
nt|HTMLQuoteElement|HTMLScriptElement|HTMLSelectElement|HTMLSourceElement|HTMLSp
anElement|HTMLStyleElement|HTMLTableCaptionElement|HTMLTableCellElement|HTMLTabl
eColElement|HTMLTableElement|HTMLTableRowElement|HTMLTableSectionElement|HTMLTex
tAreaElement|HTMLTitleElement|HTMLTrackElement|HTMLUListElement|HTMLUnknownEleme
nt'].join('|'); |
| 19234 var v8/*SVGElement*/ = [v4/*SVGComponentTransferFunctionElement*/,v5/*SVGGradi
entElement*/,v6/*SVGTextContentElement*/,'SVGElement|SVGAElement|SVGAltGlyphDefE
lement|SVGAltGlyphItemElement|SVGAnimationElement|SVGAnimateColorElement|SVGAnim
ateElement|SVGAnimateMotionElement|SVGAnimateTransformElement|SVGSetElement|SVGC
ircleElement|SVGClipPathElement|SVGCursorElement|SVGDefsElement|SVGDescElement|S
VGEllipseElement|SVGFEBlendElement|SVGFEColorMatrixElement|SVGFEComponentTransfe
rElement|SVGFECompositeElement|SVGFEConvolveMatrixElement|SVGFEDiffuseLightingEl
ement|SVGFEDisplacementMapElement|SVGFEDistantLightElement|SVGFEDropShadowElemen
t|SVGFEFloodElement|SVGFEGaussianBlurElement|SVGFEImageElement|SVGFEMergeElement
|SVGFEMergeNodeElement|SVGFEMorphologyElement|SVGFEOffsetElement|SVGFEPointLight
Element|SVGFESpecularLightingElement|SVGFESpotLightElement|SVGFETileElement|SVGF
ETurbulenceElement|SVGFilterElement|SVGFontElement|SVGFontFaceElement|SVGFontFac
eFormatElement|SVGFontFaceNameElement|SVGFontFaceSrcElement|SVGFontFaceUriElemen
t|SVGForeignObjectElement|SVGGElement|SVGGlyphElement|SVGGlyphRefElement|SVGHKer
nElement|SVGImageElement|SVGLineElement|SVGMPathElement|SVGMarkerElement|SVGMask
Element|SVGMetadataElement|SVGMissingGlyphElement|SVGPathElement|SVGPatternEleme
nt|SVGPolygonElement|SVGPolylineElement|SVGRectElement|SVGSVGElement|SVGScriptEl
ement|SVGStopElement|SVGStyleElement|SVGSwitchElement|SVGSymbolElement|SVGTitleE
lement|SVGUseElement|SVGVKernElement|SVGViewElement'].join('|'); |
| 19235 var v9/*UIEvent*/ = 'UIEvent|CompositionEvent|KeyboardEvent|MouseEvent|SVGZoom
Event|TextEvent|TouchEvent|WheelEvent'; |
| 19236 var v10/*CharacterData*/ = 'CharacterData|Comment|Text|CDATASection'; |
| 19237 var v11/*Document*/ = 'Document|HTMLDocument|SVGDocument'; |
| 19238 var v12/*Element*/ = [v7/*HTMLElement*/,v8/*SVGElement*/,'Element'].join('|'); |
| 19239 var table = [ |
| 19240 // [dynamic-dispatch-tag, tags of classes implementing dynamic-dispatch-tag] |
| 19241 ['AbstractWorker', 'AbstractWorker|SharedWorker|Worker'], |
| 19242 ['ArrayBufferView', 'ArrayBufferView|DataView|Float32Array|Float64Array|Int1
6Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array'], |
| 19243 ['AudioNode', 'AudioNode|AudioChannelMerger|AudioChannelSplitter|AudioDestin
ationNode|AudioGainNode|AudioPannerNode|AudioSourceNode|AudioBufferSourceNode|Me
diaElementAudioSourceNode|BiquadFilterNode|ConvolverNode|DelayNode|DynamicsCompr
essorNode|HighPass2FilterNode|JavaScriptAudioNode|LowPass2FilterNode|RealtimeAna
lyserNode|WaveShaperNode'], |
| 19244 ['AudioParam', 'AudioParam|AudioGain'], |
| 19245 ['Blob', 'Blob|File'], |
| 19246 ['CSSRule', 'CSSRule|CSSCharsetRule|CSSFontFaceRule|CSSImportRule|CSSMediaRu
le|CSSPageRule|CSSStyleRule|CSSUnknownRule|WebKitCSSKeyframeRule|WebKitCSSKeyfra
mesRule'], |
| 19247 ['CSSValueList', v0/*CSSValueList*/], |
| 19248 ['CSSValue', [v0/*CSSValueList*/,'CSSValue|CSSPrimitiveValue|SVGColor|SVGPai
nt'].join('|')], |
| 19249 ['CanvasRenderingContext', 'CanvasRenderingContext|CanvasRenderingContext2D|
WebGLRenderingContext'], |
| 19250 ['CharacterData', v10/*CharacterData*/], |
| 19251 ['DOMTokenList', 'DOMTokenList|DOMSettableTokenList'], |
| 19252 ['DOMWindow', 'DOMWindow|Window'], |
| 19253 ['Document', v11/*Document*/], |
| 19254 ['HTMLInputElement', v1/*HTMLInputElement*/], |
| 19255 ['HTMLMediaElement', v2/*HTMLMediaElement*/], |
| 19256 ['HTMLElement', v7/*HTMLElement*/], |
| 19257 ['SVGComponentTransferFunctionElement', v4/*SVGComponentTransferFunctionElem
ent*/], |
| 19258 ['SVGGradientElement', v5/*SVGGradientElement*/], |
| 19259 ['SVGTextPositioningElement', v3/*SVGTextPositioningElement*/], |
| 19260 ['SVGTextContentElement', v6/*SVGTextContentElement*/], |
| 19261 ['SVGElement', v8/*SVGElement*/], |
| 19262 ['Element', v12/*Element*/], |
| 19263 ['Entry', 'Entry|DirectoryEntry|FileEntry'], |
| 19264 ['EntrySync', 'EntrySync|DirectoryEntrySync|FileEntrySync'], |
| 19265 ['UIEvent', v9/*UIEvent*/], |
| 19266 ['Event', [v9/*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('|')], |
| 19267 ['HTMLCollection', 'HTMLCollection|HTMLOptionsCollection|HTMLPropertiesColle
ction'], |
| 19268 ['IDBCursor', 'IDBCursor|IDBCursorWithValue'], |
| 19269 ['IDBRequest', 'IDBRequest|IDBVersionChangeRequest'], |
| 19270 ['Node', [v10/*CharacterData*/,v11/*Document*/,v12/*Element*/,'Node|Attr|Doc
umentFragment|DocumentType|Entity|EntityReference|Notation|ProcessingInstruction
'].join('|')], |
| 19271 ['SVGLocatable', 'SVGLocatable|SVGTransformable'], |
| 19272 ['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'], |
| 19273 ['SVGStylable', 'SVGStylable|SVGFilterPrimitiveStandardAttributes'], |
| 19274 ['SVGZoomAndPan', 'SVGZoomAndPan|SVGViewSpec'], |
| 19275 ['StyleSheet', 'StyleSheet|CSSStyleSheet'], |
| 19276 ['WorkerContext', 'WorkerContext|DedicatedWorkerContext|SharedWorkercontext'
], |
| 19277 ]; |
| 19278 $dynamicSetMetadata(table); |
| 19279 })(); |
| 19280 // ********** Globals ************** |
| 19281 function $static_init(){ |
| 19282 $globals.Scroller__dragInProgress = false; |
| 19283 $globals._firstMeasurementRequest = true; |
| 19284 $globals._nextMeasurementFrameScheduled = false; |
| 19285 } |
| 19286 var const$0000 = Object.create(_DeletedKeySentinel.prototype, {}); |
| 19287 var const$0001 = Object.create(NoMoreElementsException.prototype, {}); |
| 19288 var const$0002 = new JSSyntaxRegExp("<(\\w+)"); |
| 19289 var const$0003 = Object.create(IllegalAccessException.prototype, {}); |
| 19290 var const$0004 = Object.create(EmptyQueueException.prototype, {}); |
| 19291 var const$0005 = _constMap(["body", "html", "head", "html", "caption", "table",
"td", "tr", "tbody", "table", "colgroup", "table", "col", "colgroup", "tr", "tbo
dy", "tbody", "table", "tfoot", "table", "thead", "table", "track", "audio"]); |
| 19292 var const$0007 = new JSSyntaxRegExp("iPhone|iPod|iPad"); |
| 19293 var const$0010 = Object.create(SimpleClientRect.prototype, {left: {"value": (0),
writeable: false}, top: {"value": (0), writeable: false}, width: {"value": (0),
writeable: false}, height: {"value": (0), writeable: false}, }); |
| 19294 var const$0011 = ImmutableList.ImmutableList$from$factory([]); |
| 19295 var const$0012 = Object.create(EmptyElementRect.prototype, {client: {"value": co
nst$0010, writeable: false}, scroll: {"value": const$0010, writeable: false}, bo
unding: {"value": const$0010, writeable: false}, clientRects: {"value": const$00
11, writeable: false}, offset: {"value": const$0010, writeable: false}, }); |
| 19296 var const$0013 = Object.create(UnsupportedOperationException.prototype, {_messag
e: {"value": "", writeable: false}, }); |
| 19297 var const$0014 = Object.create(NotImplementedException.prototype, {}); |
| 19298 var const$0015 = ImmutableList.ImmutableList$from$factory(["Monday", "Tuesday",
"Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]); |
| 19299 var const$0016 = ImmutableList.ImmutableList$from$factory([]); |
| 19300 var const$0017 = Object.create(MinContentSizing.prototype, {}); |
| 19301 var const$0018 = Object.create(MaxContentSizing.prototype, {}); |
| 19302 var const$0019 = Object.create(TrackSizing.prototype, {min: {"value": const$0017
, writeable: false}, max: {"value": const$0018, writeable: false}, }); |
| 19303 var const$0020 = Object.create(IllegalArgumentException.prototype, {_args: {"val
ue": "Invalid list length", writeable: false}, }); |
| 19304 var const$0021 = Object.create(Dimension.prototype, {name: {"value": "width", wr
iteable: false}, }); |
| 19305 var const$0022 = Object.create(UnsupportedOperationException.prototype, {_messag
e: {"value": "TODO(jacobr): should we impl?", writeable: false}, }); |
| 19306 var const$0023 = Object.create(Dimension.prototype, {name: {"value": "height", w
riteable: false}, }); |
| 19307 var const$0024 = Object.create(_UsedBreadthAccumulator.prototype, {}); |
| 19308 var const$0025 = Object.create(_MaxBreadthAccumulator.prototype, {}); |
| 19309 var const$0026 = Object.create(ContentSizeMode.prototype, {name: {"value": "min"
, writeable: false}, }); |
| 19310 var const$0027 = Object.create(ContentSizeMode.prototype, {name: {"value": "max"
, writeable: false}, }); |
| 19311 var const$0028 = _constMap([]); |
| 19312 var const$0029 = _constMap(["Test0_0_0.html", "Lorem ipsum something or other...
", "Test0_0_1.html", "Lorem ipsum something or other...", "Test0_0_2.html", "Lor
em ipsum something or other...", "Test0_0_3.html", "Lorem ipsum something or oth
er...", "Test0_0_4.html", "Lorem ipsum something or other...", "Test0_0_5.html",
"Lorem ipsum something or other...", "Test0_0_6.html", "Lorem ipsum something o
r other...", "Test0_0_7.html", "Lorem ipsum something or other...", "Test0_1_0.h
tml", "Lorem ipsum something or other...", "Test0_1_1.html", "Lorem ipsum someth
ing or other...", "Test0_1_2.html", "Lorem ipsum something or other...", "Test0_
1_3.html", "Lorem ipsum something or other...", "Test0_1_4.html", "Lorem ipsum s
omething or other...", "Test0_1_5.html", "Lorem ipsum something or other...", "T
est0_1_6.html", "Lorem ipsum something or other...", "Test0_1_7.html", "Lorem ip
sum something or other...", "Test0_2_0.html", "Lorem ipsum something or other...
", "Test0_2_1.html", "Lorem ipsum something or other...", "Test0_2_2.html", "Lor
em ipsum something or other...", "Test0_2_3.html", "Lorem ipsum something or oth
er...", "Test0_2_4.html", "Lorem ipsum something or other...", "Test0_2_5.html",
"Lorem ipsum something or other...", "Test0_2_6.html", "Lorem ipsum something o
r other...", "Test0_2_7.html", "Lorem ipsum something or other...", "Test0_3_0.h
tml", "Lorem ipsum something or other...", "Test0_3_1.html", "Lorem ipsum someth
ing or other...", "Test0_3_2.html", "Lorem ipsum something or other...", "Test0_
3_3.html", "Lorem ipsum something or other...", "Test0_3_4.html", "Lorem ipsum s
omething or other...", "Test0_3_5.html", "Lorem ipsum something or other...", "T
est0_3_6.html", "Lorem ipsum something or other...", "Test0_3_7.html", "Lorem ip
sum something or other...", "Test1_0_0.html", "Lorem ipsum something or other...
", "Test1_0_1.html", "Lorem ipsum something or other...", "Test1_0_2.html", "Lor
em ipsum something or other...", "Test1_0_3.html", "Lorem ipsum something or oth
er...", "Test1_0_4.html", "Lorem ipsum something or other...", "Test1_0_5.html",
"Lorem ipsum something or other...", "Test1_0_6.html", "Lorem ipsum something o
r other...", "Test1_0_7.html", "Lorem ipsum something or other...", "Test1_1_0.h
tml", "Lorem ipsum something or other...", "Test1_1_1.html", "Lorem ipsum someth
ing or other...", "Test1_1_2.html", "Lorem ipsum something or other...", "Test1_
1_3.html", "Lorem ipsum something or other...", "Test1_1_4.html", "Lorem ipsum s
omething or other...", "Test1_1_5.html", "Lorem ipsum something or other...", "T
est1_1_6.html", "Lorem ipsum something or other...", "Test1_1_7.html", "Lorem ip
sum something or other...", "Test1_2_0.html", "Lorem ipsum something or other...
", "Test1_2_1.html", "Lorem ipsum something or other...", "Test1_2_2.html", "Lor
em ipsum something or other...", "Test1_2_3.html", "Lorem ipsum something or oth
er...", "Test1_2_4.html", "Lorem ipsum something or other...", "Test1_2_5.html",
"Lorem ipsum something or other...", "Test1_2_6.html", "Lorem ipsum something o
r other...", "Test1_2_7.html", "Lorem ipsum something or other...", "Test1_3_0.h
tml", "Lorem ipsum something or other...", "Test1_3_1.html", "Lorem ipsum someth
ing or other...", "Test1_3_2.html", "Lorem ipsum something or other...", "Test1_
3_3.html", "Lorem ipsum something or other...", "Test1_3_4.html", "Lorem ipsum s
omething or other...", "Test1_3_5.html", "Lorem ipsum something or other...", "T
est1_3_6.html", "Lorem ipsum something or other...", "Test1_3_7.html", "Lorem ip
sum something or other...", "Test2_0_0.html", "Lorem ipsum something or other...
", "Test2_0_1.html", "Lorem ipsum something or other...", "Test2_0_2.html", "Lor
em ipsum something or other...", "Test2_0_3.html", "Lorem ipsum something or oth
er...", "Test2_0_4.html", "Lorem ipsum something or other...", "Test2_0_5.html",
"Lorem ipsum something or other...", "Test2_0_6.html", "Lorem ipsum something o
r other...", "Test2_0_7.html", "Lorem ipsum something or other...", "Test2_1_0.h
tml", "Lorem ipsum something or other...", "Test2_1_1.html", "Lorem ipsum someth
ing or other...", "Test2_1_2.html", "Lorem ipsum something or other...", "Test2_
1_3.html", "Lorem ipsum something or other...", "Test2_1_4.html", "Lorem ipsum s
omething or other...", "Test2_1_5.html", "Lorem ipsum something or other...", "T
est2_1_6.html", "Lorem ipsum something or other...", "Test2_1_7.html", "Lorem ip
sum something or other...", "Test2_2_0.html", "Lorem ipsum something or other...
", "Test2_2_1.html", "Lorem ipsum something or other...", "Test2_2_2.html", "Lor
em ipsum something or other...", "Test2_2_3.html", "Lorem ipsum something or oth
er...", "Test2_2_4.html", "Lorem ipsum something or other...", "Test2_2_5.html",
"Lorem ipsum something or other...", "Test2_2_6.html", "Lorem ipsum something o
r other...", "Test2_2_7.html", "Lorem ipsum something or other...", "Test2_3_0.h
tml", "Lorem ipsum something or other...", "Test2_3_1.html", "Lorem ipsum someth
ing or other...", "Test2_3_2.html", "Lorem ipsum something or other...", "Test2_
3_3.html", "Lorem ipsum something or other...", "Test2_3_4.html", "Lorem ipsum s
omething or other...", "Test2_3_5.html", "Lorem ipsum something or other...", "T
est2_3_6.html", "Lorem ipsum something or other...", "Test2_3_7.html", "Lorem ip
sum something or other...", "user.data", "\x03\x05Test0\tSection 1\x04\x07Test0_
0\x08Feed 0_0F\x01http://s2.googleusercontent.com/s2/favicons?domain=google.com&
alt=feed\x08\tTest0_0_0\rArticle 0_0_0\x00F\x04anon\x00!Lorem ipsum something or
other...\tTest0_0_1\rArticle 0_0_1\x00F\x04anon\x00!Lorem ipsum something or ot
her...\tTest0_0_2\rArticle 0_0_2\x00F\x04anon\x00!Lorem ipsum something or other
...\tTest0_0_3\rArticle 0_0_3\x00F\x04anon\x00!Lorem ipsum something or other...
\tTest0_0_4\rArticle 0_0_4\x00F\x04anon\x00!Lorem ipsum something or other...\tT
est0_0_5\rArticle 0_0_5\x00F\x04anon\x00!Lorem ipsum something or other...\tTest
0_0_6\rArticle 0_0_6\x00F\x04anon\x00!Lorem ipsum something or other...\tTest0_0
_7\rArticle 0_0_7\x00F\x04anon\x00!Lorem ipsum something or other...\x07Test0_1\
x08Feed 0_1F\x01http://s2.googleusercontent.com/s2/favicons?domain=google.com&al
t=feed\x08\tTest0_1_0\rArticle 0_1_0\x00F\x04anon\x00!Lorem ipsum something or o
ther...\tTest0_1_1\rArticle 0_1_1\x00F\x04anon\x00!Lorem ipsum something or othe
r...\tTest0_1_2\rArticle 0_1_2\x00F\x04anon\x00!Lorem ipsum something or other..
.\tTest0_1_3\rArticle 0_1_3\x00F\x04anon\x00!Lorem ipsum something or other...\t
Test0_1_4\rArticle 0_1_4\x00F\x04anon\x00!Lorem ipsum something or other...\tTes
t0_1_5\rArticle 0_1_5\x00F\x04anon\x00!Lorem ipsum something or other...\tTest0_
1_6\rArticle 0_1_6\x00F\x04anon\x00!Lorem ipsum something or other...\tTest0_1_7
\rArticle 0_1_7\x00F\x04anon\x00!Lorem ipsum something or other...\x07Test0_2\x0
8Feed 0_2F\x01http://s2.googleusercontent.com/s2/favicons?domain=google.com&alt=
feed\x08\tTest0_2_0\rArticle 0_2_0\x00F\x04anon\x00!Lorem ipsum something or oth
er...\tTest0_2_1\rArticle 0_2_1\x00F\x04anon\x00!Lorem ipsum something or other.
..\tTest0_2_2\rArticle 0_2_2\x00F\x04anon\x00!Lorem ipsum something or other...\
tTest0_2_3\rArticle 0_2_3\x00F\x04anon\x00!Lorem ipsum something or other...\tTe
st0_2_4\rArticle 0_2_4\x00F\x04anon\x00!Lorem ipsum something or other...\tTest0
_2_5\rArticle 0_2_5\x00F\x04anon\x00!Lorem ipsum something or other...\tTest0_2_
6\rArticle 0_2_6\x00F\x04anon\x00!Lorem ipsum something or other...\tTest0_2_7\r
Article 0_2_7\x00F\x04anon\x00!Lorem ipsum something or other...\x07Test0_3\x08F
eed 0_3F\x01http://s2.googleusercontent.com/s2/favicons?domain=google.com&alt=fe
ed\x08\tTest0_3_0\rArticle 0_3_0\x00F\x04anon\x00!Lorem ipsum something or other
...\tTest0_3_1\rArticle 0_3_1\x00F\x04anon\x00!Lorem ipsum something or other...
\tTest0_3_2\rArticle 0_3_2\x00F\x04anon\x00!Lorem ipsum something or other...\tT
est0_3_3\rArticle 0_3_3\x00F\x04anon\x00!Lorem ipsum something or other...\tTest
0_3_4\rArticle 0_3_4\x00F\x04anon\x00!Lorem ipsum something or other...\tTest0_3
_5\rArticle 0_3_5\x00F\x04anon\x00!Lorem ipsum something or other...\tTest0_3_6\
rArticle 0_3_6\x00F\x04anon\x00!Lorem ipsum something or other...\tTest0_3_7\rAr
ticle 0_3_7\x00F\x04anon\x00!Lorem ipsum something or other...\x05Test1\tSection
2\x04\x07Test1_0\x08Feed 1_0F\x01http://s2.googleusercontent.com/s2/favicons?do
main=google.com&alt=feed\x08\tTest1_0_0\rArticle 1_0_0\x00F\x04anon\x00!Lorem ip
sum something or other...\tTest1_0_1\rArticle 1_0_1\x00F\x04anon\x00!Lorem ipsum
something or other...\tTest1_0_2\rArticle 1_0_2\x00F\x04anon\x00!Lorem ipsum so
mething or other...\tTest1_0_3\rArticle 1_0_3\x00F\x04anon\x00!Lorem ipsum somet
hing or other...\tTest1_0_4\rArticle 1_0_4\x00F\x04anon\x00!Lorem ipsum somethin
g or other...\tTest1_0_5\rArticle 1_0_5\x00F\x04anon\x00!Lorem ipsum something o
r other...\tTest1_0_6\rArticle 1_0_6\x00F\x04anon\x00!Lorem ipsum something or o
ther...\tTest1_0_7\rArticle 1_0_7\x00F\x04anon\x00!Lorem ipsum something or othe
r...\x07Test1_1\x08Feed 1_1F\x01http://s2.googleusercontent.com/s2/favicons?doma
in=google.com&alt=feed\x08\tTest1_1_0\rArticle 1_1_0\x00F\x04anon\x00!Lorem ipsu
m something or other...\tTest1_1_1\rArticle 1_1_1\x00F\x04anon\x00!Lorem ipsum s
omething or other...\tTest1_1_2\rArticle 1_1_2\x00F\x04anon\x00!Lorem ipsum some
thing or other...\tTest1_1_3\rArticle 1_1_3\x00F\x04anon\x00!Lorem ipsum somethi
ng or other...\tTest1_1_4\rArticle 1_1_4\x00F\x04anon\x00!Lorem ipsum something
or other...\tTest1_1_5\rArticle 1_1_5\x00F\x04anon\x00!Lorem ipsum something or
other...\tTest1_1_6\rArticle 1_1_6\x00F\x04anon\x00!Lorem ipsum something or oth
er...\tTest1_1_7\rArticle 1_1_7\x00F\x04anon\x00!Lorem ipsum something or other.
..\x07Test1_2\x08Feed 1_2F\x01http://s2.googleusercontent.com/s2/favicons?domain
=google.com&alt=feed\x08\tTest1_2_0\rArticle 1_2_0\x00F\x04anon\x00!Lorem ipsum
something or other...\tTest1_2_1\rArticle 1_2_1\x00F\x04anon\x00!Lorem ipsum som
ething or other...\tTest1_2_2\rArticle 1_2_2\x00F\x04anon\x00!Lorem ipsum someth
ing or other...\tTest1_2_3\rArticle 1_2_3\x00F\x04anon\x00!Lorem ipsum something
or other...\tTest1_2_4\rArticle 1_2_4\x00F\x04anon\x00!Lorem ipsum something or
other...\tTest1_2_5\rArticle 1_2_5\x00F\x04anon\x00!Lorem ipsum something or ot
her...\tTest1_2_6\rArticle 1_2_6\x00F\x04anon\x00!Lorem ipsum something or other
...\tTest1_2_7\rArticle 1_2_7\x00F\x04anon\x00!Lorem ipsum something or other...
\x07Test1_3\x08Feed 1_3F\x01http://s2.googleusercontent.com/s2/favicons?domain=g
oogle.com&alt=feed\x08\tTest1_3_0\rArticle 1_3_0\x00F\x04anon\x00!Lorem ipsum so
mething or other...\tTest1_3_1\rArticle 1_3_1\x00F\x04anon\x00!Lorem ipsum somet
hing or other...\tTest1_3_2\rArticle 1_3_2\x00F\x04anon\x00!Lorem ipsum somethin
g or other...\tTest1_3_3\rArticle 1_3_3\x00F\x04anon\x00!Lorem ipsum something o
r other...\tTest1_3_4\rArticle 1_3_4\x00F\x04anon\x00!Lorem ipsum something or o
ther...\tTest1_3_5\rArticle 1_3_5\x00F\x04anon\x00!Lorem ipsum something or othe
r...\tTest1_3_6\rArticle 1_3_6\x00F\x04anon\x00!Lorem ipsum something or other..
.\tTest1_3_7\rArticle 1_3_7\x00F\x04anon\x00!Lorem ipsum something or other...\x
05Test2\tSection 3\x04\x07Test2_0\x08Feed 2_0F\x01http://s2.googleusercontent.co
m/s2/favicons?domain=google.com&alt=feed\x08\tTest2_0_0\rArticle 2_0_0\x00F\x04a
non\x00!Lorem ipsum something or other...\tTest2_0_1\rArticle 2_0_1\x00F\x04anon
\x00!Lorem ipsum something or other...\tTest2_0_2\rArticle 2_0_2\x00F\x04anon\x0
0!Lorem ipsum something or other...\tTest2_0_3\rArticle 2_0_3\x00F\x04anon\x00!L
orem ipsum something or other...\tTest2_0_4\rArticle 2_0_4\x00F\x04anon\x00!Lore
m ipsum something or other...\tTest2_0_5\rArticle 2_0_5\x00F\x04anon\x00!Lorem i
psum something or other...\tTest2_0_6\rArticle 2_0_6\x00F\x04anon\x00!Lorem ipsu
m something or other...\tTest2_0_7\rArticle 2_0_7\x00F\x04anon\x00!Lorem ipsum s
omething or other...\x07Test2_1\x08Feed 2_1F\x01http://s2.googleusercontent.com/
s2/favicons?domain=google.com&alt=feed\x08\tTest2_1_0\rArticle 2_1_0\x00F\x04ano
n\x00!Lorem ipsum something or other...\tTest2_1_1\rArticle 2_1_1\x00F\x04anon\x
00!Lorem ipsum something or other...\tTest2_1_2\rArticle 2_1_2\x00F\x04anon\x00!
Lorem ipsum something or other...\tTest2_1_3\rArticle 2_1_3\x00F\x04anon\x00!Lor
em ipsum something or other...\tTest2_1_4\rArticle 2_1_4\x00F\x04anon\x00!Lorem
ipsum something or other...\tTest2_1_5\rArticle 2_1_5\x00F\x04anon\x00!Lorem ips
um something or other...\tTest2_1_6\rArticle 2_1_6\x00F\x04anon\x00!Lorem ipsum
something or other...\tTest2_1_7\rArticle 2_1_7\x00F\x04anon\x00!Lorem ipsum som
ething or other...\x07Test2_2\x08Feed 2_2F\x01http://s2.googleusercontent.com/s2
/favicons?domain=google.com&alt=feed\x08\tTest2_2_0\rArticle 2_2_0\x00F\x04anon\
x00!Lorem ipsum something or other...\tTest2_2_1\rArticle 2_2_1\x00F\x04anon\x00
!Lorem ipsum something or other...\tTest2_2_2\rArticle 2_2_2\x00F\x04anon\x00!Lo
rem ipsum something or other...\tTest2_2_3\rArticle 2_2_3\x00F\x04anon\x00!Lorem
ipsum something or other...\tTest2_2_4\rArticle 2_2_4\x00F\x04anon\x00!Lorem ip
sum something or other...\tTest2_2_5\rArticle 2_2_5\x00F\x04anon\x00!Lorem ipsum
something or other...\tTest2_2_6\rArticle 2_2_6\x00F\x04anon\x00!Lorem ipsum so
mething or other...\tTest2_2_7\rArticle 2_2_7\x00F\x04anon\x00!Lorem ipsum somet
hing or other...\x07Test2_3\x08Feed 2_3F\x01http://s2.googleusercontent.com/s2/f
avicons?domain=google.com&alt=feed\x08\tTest2_3_0\rArticle 2_3_0\x00F\x04anon\x0
0!Lorem ipsum something or other...\tTest2_3_1\rArticle 2_3_1\x00F\x04anon\x00!L
orem ipsum something or other...\tTest2_3_2\rArticle 2_3_2\x00F\x04anon\x00!Lore
m ipsum something or other...\tTest2_3_3\rArticle 2_3_3\x00F\x04anon\x00!Lorem i
psum something or other...\tTest2_3_4\rArticle 2_3_4\x00F\x04anon\x00!Lorem ipsu
m something or other...\tTest2_3_5\rArticle 2_3_5\x00F\x04anon\x00!Lorem ipsum s
omething or other...\tTest2_3_6\rArticle 2_3_6\x00F\x04anon\x00!Lorem ipsum some
thing or other...\tTest2_3_7\rArticle 2_3_7\x00F\x04anon\x00!Lorem ipsum somethi
ng or other..."]); |
| 19313 var $globals = {}; |
| 19314 $static_init(); |
| 19315 main(); |
OLD | NEW |