| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 2 // for details. All rights reserved. Use of this source code is governed by a | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 // WARNING: Do not edit - generated code. | |
| 6 | |
| 7 class _DOMWindowWrappingImplementation extends DOMWrapperBase implements DOMWind
ow { | |
| 8 _DOMWindowWrappingImplementation() : super() {} | |
| 9 | |
| 10 static create__DOMWindowWrappingImplementation() native { | |
| 11 return new _DOMWindowWrappingImplementation(); | |
| 12 } | |
| 13 | |
| 14 DOMApplicationCache get applicationCache() { return _get_applicationCache(this
); } | |
| 15 static DOMApplicationCache _get_applicationCache(var _this) native; | |
| 16 | |
| 17 Navigator get clientInformation() { return _get_clientInformation(this); } | |
| 18 static Navigator _get_clientInformation(var _this) native; | |
| 19 | |
| 20 bool get closed() { return _get_closed(this); } | |
| 21 static bool _get_closed(var _this) native; | |
| 22 | |
| 23 Console get console() { return _get_console(this); } | |
| 24 static Console _get_console(var _this) native; | |
| 25 | |
| 26 Crypto get crypto() { return _get_crypto(this); } | |
| 27 static Crypto _get_crypto(var _this) native; | |
| 28 | |
| 29 String get defaultStatus() { return _get_defaultStatus(this); } | |
| 30 static String _get_defaultStatus(var _this) native; | |
| 31 | |
| 32 void set defaultStatus(String value) { _set_defaultStatus(this, value); } | |
| 33 static void _set_defaultStatus(var _this, String value) native; | |
| 34 | |
| 35 String get defaultstatus() { return _get_defaultstatus(this); } | |
| 36 static String _get_defaultstatus(var _this) native; | |
| 37 | |
| 38 void set defaultstatus(String value) { _set_defaultstatus(this, value); } | |
| 39 static void _set_defaultstatus(var _this, String value) native; | |
| 40 | |
| 41 num get devicePixelRatio() { return _get_devicePixelRatio(this); } | |
| 42 static num _get_devicePixelRatio(var _this) native; | |
| 43 | |
| 44 Document get document() { return _get_document(this); } | |
| 45 static Document _get_document(var _this) native; | |
| 46 | |
| 47 Event get event() { return _get_event(this); } | |
| 48 static Event _get_event(var _this) native; | |
| 49 | |
| 50 Element get frameElement() { return _get_frameElement(this); } | |
| 51 static Element _get_frameElement(var _this) native; | |
| 52 | |
| 53 DOMWindow get frames() { return _get_frames(this); } | |
| 54 static DOMWindow _get_frames(var _this) native; | |
| 55 | |
| 56 History get history() { return _get_history(this); } | |
| 57 static History _get_history(var _this) native; | |
| 58 | |
| 59 int get innerHeight() { return _get_innerHeight(this); } | |
| 60 static int _get_innerHeight(var _this) native; | |
| 61 | |
| 62 int get innerWidth() { return _get_innerWidth(this); } | |
| 63 static int _get_innerWidth(var _this) native; | |
| 64 | |
| 65 int get length() { return _get_length(this); } | |
| 66 static int _get_length(var _this) native; | |
| 67 | |
| 68 Storage get localStorage() { return _get_localStorage(this); } | |
| 69 static Storage _get_localStorage(var _this) native; | |
| 70 | |
| 71 Location get location() { return _get_location(this); } | |
| 72 static Location _get_location(var _this) native; | |
| 73 | |
| 74 void set location(Location value) { _set_location(this, value); } | |
| 75 static void _set_location(var _this, Location value) native; | |
| 76 | |
| 77 BarInfo get locationbar() { return _get_locationbar(this); } | |
| 78 static BarInfo _get_locationbar(var _this) native; | |
| 79 | |
| 80 BarInfo get menubar() { return _get_menubar(this); } | |
| 81 static BarInfo _get_menubar(var _this) native; | |
| 82 | |
| 83 String get name() { return _get_name(this); } | |
| 84 static String _get_name(var _this) native; | |
| 85 | |
| 86 void set name(String value) { _set_name(this, value); } | |
| 87 static void _set_name(var _this, String value) native; | |
| 88 | |
| 89 Navigator get navigator() { return _get_navigator(this); } | |
| 90 static Navigator _get_navigator(var _this) native; | |
| 91 | |
| 92 bool get offscreenBuffering() { return _get_offscreenBuffering(this); } | |
| 93 static bool _get_offscreenBuffering(var _this) native; | |
| 94 | |
| 95 DOMWindow get opener() { return _get_opener(this); } | |
| 96 static DOMWindow _get_opener(var _this) native; | |
| 97 | |
| 98 int get outerHeight() { return _get_outerHeight(this); } | |
| 99 static int _get_outerHeight(var _this) native; | |
| 100 | |
| 101 int get outerWidth() { return _get_outerWidth(this); } | |
| 102 static int _get_outerWidth(var _this) native; | |
| 103 | |
| 104 int get pageXOffset() { return _get_pageXOffset(this); } | |
| 105 static int _get_pageXOffset(var _this) native; | |
| 106 | |
| 107 int get pageYOffset() { return _get_pageYOffset(this); } | |
| 108 static int _get_pageYOffset(var _this) native; | |
| 109 | |
| 110 DOMWindow get parent() { return _get_parent(this); } | |
| 111 static DOMWindow _get_parent(var _this) native; | |
| 112 | |
| 113 Performance get performance() { return _get_performance(this); } | |
| 114 static Performance _get_performance(var _this) native; | |
| 115 | |
| 116 BarInfo get personalbar() { return _get_personalbar(this); } | |
| 117 static BarInfo _get_personalbar(var _this) native; | |
| 118 | |
| 119 Screen get screen() { return _get_screen(this); } | |
| 120 static Screen _get_screen(var _this) native; | |
| 121 | |
| 122 int get screenLeft() { return _get_screenLeft(this); } | |
| 123 static int _get_screenLeft(var _this) native; | |
| 124 | |
| 125 int get screenTop() { return _get_screenTop(this); } | |
| 126 static int _get_screenTop(var _this) native; | |
| 127 | |
| 128 int get screenX() { return _get_screenX(this); } | |
| 129 static int _get_screenX(var _this) native; | |
| 130 | |
| 131 int get screenY() { return _get_screenY(this); } | |
| 132 static int _get_screenY(var _this) native; | |
| 133 | |
| 134 int get scrollX() { return _get_scrollX(this); } | |
| 135 static int _get_scrollX(var _this) native; | |
| 136 | |
| 137 int get scrollY() { return _get_scrollY(this); } | |
| 138 static int _get_scrollY(var _this) native; | |
| 139 | |
| 140 BarInfo get scrollbars() { return _get_scrollbars(this); } | |
| 141 static BarInfo _get_scrollbars(var _this) native; | |
| 142 | |
| 143 DOMWindow get self() { return _get_self(this); } | |
| 144 static DOMWindow _get_self(var _this) native; | |
| 145 | |
| 146 Storage get sessionStorage() { return _get_sessionStorage(this); } | |
| 147 static Storage _get_sessionStorage(var _this) native; | |
| 148 | |
| 149 String get status() { return _get_status(this); } | |
| 150 static String _get_status(var _this) native; | |
| 151 | |
| 152 void set status(String value) { _set_status(this, value); } | |
| 153 static void _set_status(var _this, String value) native; | |
| 154 | |
| 155 BarInfo get statusbar() { return _get_statusbar(this); } | |
| 156 static BarInfo _get_statusbar(var _this) native; | |
| 157 | |
| 158 StyleMedia get styleMedia() { return _get_styleMedia(this); } | |
| 159 static StyleMedia _get_styleMedia(var _this) native; | |
| 160 | |
| 161 BarInfo get toolbar() { return _get_toolbar(this); } | |
| 162 static BarInfo _get_toolbar(var _this) native; | |
| 163 | |
| 164 DOMWindow get top() { return _get_top(this); } | |
| 165 static DOMWindow _get_top(var _this) native; | |
| 166 | |
| 167 IDBFactory get webkitIndexedDB() { return _get_webkitIndexedDB(this); } | |
| 168 static IDBFactory _get_webkitIndexedDB(var _this) native; | |
| 169 | |
| 170 NotificationCenter get webkitNotifications() { return _get_webkitNotifications
(this); } | |
| 171 static NotificationCenter _get_webkitNotifications(var _this) native; | |
| 172 | |
| 173 StorageInfo get webkitStorageInfo() { return _get_webkitStorageInfo(this); } | |
| 174 static StorageInfo _get_webkitStorageInfo(var _this) native; | |
| 175 | |
| 176 DOMWindow get window() { return _get_window(this); } | |
| 177 static DOMWindow _get_window(var _this) native; | |
| 178 | |
| 179 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) { | |
| 180 if (useCapture === null) { | |
| 181 _addEventListener_DOMWindow(this, type, listener); | |
| 182 return; | |
| 183 } else { | |
| 184 _addEventListener_DOMWindow_2(this, type, listener, useCapture); | |
| 185 return; | |
| 186 } | |
| 187 } | |
| 188 static void _addEventListener_DOMWindow(receiver, type, listener) native; | |
| 189 static void _addEventListener_DOMWindow_2(receiver, type, listener, useCapture
) native; | |
| 190 | |
| 191 void alert(String message) { | |
| 192 _alert(this, message); | |
| 193 return; | |
| 194 } | |
| 195 static void _alert(receiver, message) native; | |
| 196 | |
| 197 String atob(String string) { | |
| 198 return _atob(this, string); | |
| 199 } | |
| 200 static String _atob(receiver, string) native; | |
| 201 | |
| 202 void blur() { | |
| 203 _blur(this); | |
| 204 return; | |
| 205 } | |
| 206 static void _blur(receiver) native; | |
| 207 | |
| 208 String btoa(String string) { | |
| 209 return _btoa(this, string); | |
| 210 } | |
| 211 static String _btoa(receiver, string) native; | |
| 212 | |
| 213 void captureEvents() { | |
| 214 _captureEvents(this); | |
| 215 return; | |
| 216 } | |
| 217 static void _captureEvents(receiver) native; | |
| 218 | |
| 219 void clearInterval(int handle) { | |
| 220 _clearInterval(this, handle); | |
| 221 return; | |
| 222 } | |
| 223 static void _clearInterval(receiver, handle) native; | |
| 224 | |
| 225 void clearTimeout(int handle) { | |
| 226 _clearTimeout(this, handle); | |
| 227 return; | |
| 228 } | |
| 229 static void _clearTimeout(receiver, handle) native; | |
| 230 | |
| 231 void close() { | |
| 232 _close(this); | |
| 233 return; | |
| 234 } | |
| 235 static void _close(receiver) native; | |
| 236 | |
| 237 bool confirm(String message) { | |
| 238 return _confirm(this, message); | |
| 239 } | |
| 240 static bool _confirm(receiver, message) native; | |
| 241 | |
| 242 bool dispatchEvent(Event evt) { | |
| 243 return _dispatchEvent_DOMWindow(this, evt); | |
| 244 } | |
| 245 static bool _dispatchEvent_DOMWindow(receiver, evt) native; | |
| 246 | |
| 247 bool find(String string, bool caseSensitive, bool backwards, bool wrap, bool w
holeWord, bool searchInFrames, bool showDialog) { | |
| 248 return _find(this, string, caseSensitive, backwards, wrap, wholeWord, search
InFrames, showDialog); | |
| 249 } | |
| 250 static bool _find(receiver, string, caseSensitive, backwards, wrap, wholeWord,
searchInFrames, showDialog) native; | |
| 251 | |
| 252 void focus() { | |
| 253 _focus(this); | |
| 254 return; | |
| 255 } | |
| 256 static void _focus(receiver) native; | |
| 257 | |
| 258 CSSStyleDeclaration getComputedStyle(Element element, String pseudoElement) { | |
| 259 return _getComputedStyle(this, element, pseudoElement); | |
| 260 } | |
| 261 static CSSStyleDeclaration _getComputedStyle(receiver, element, pseudoElement)
native; | |
| 262 | |
| 263 CSSRuleList getMatchedCSSRules(Element element, String pseudoElement) { | |
| 264 return _getMatchedCSSRules(this, element, pseudoElement); | |
| 265 } | |
| 266 static CSSRuleList _getMatchedCSSRules(receiver, element, pseudoElement) nativ
e; | |
| 267 | |
| 268 DOMSelection getSelection() { | |
| 269 return _getSelection(this); | |
| 270 } | |
| 271 static DOMSelection _getSelection(receiver) native; | |
| 272 | |
| 273 MediaQueryList matchMedia(String query) { | |
| 274 return _matchMedia(this, query); | |
| 275 } | |
| 276 static MediaQueryList _matchMedia(receiver, query) native; | |
| 277 | |
| 278 void moveBy(num x, num y) { | |
| 279 _moveBy(this, x, y); | |
| 280 return; | |
| 281 } | |
| 282 static void _moveBy(receiver, x, y) native; | |
| 283 | |
| 284 void moveTo(num x, num y) { | |
| 285 _moveTo(this, x, y); | |
| 286 return; | |
| 287 } | |
| 288 static void _moveTo(receiver, x, y) native; | |
| 289 | |
| 290 DOMWindow open(String url, String name, [String options = null]) { | |
| 291 if (options === null) { | |
| 292 return _open(this, url, name); | |
| 293 } else { | |
| 294 return _open_2(this, url, name, options); | |
| 295 } | |
| 296 } | |
| 297 static DOMWindow _open(receiver, url, name) native; | |
| 298 static DOMWindow _open_2(receiver, url, name, options) native; | |
| 299 | |
| 300 Database openDatabase(String name, String version, String displayName, int est
imatedSize, [DatabaseCallback creationCallback = null]) { | |
| 301 return _openDatabase(this, name, version, displayName, estimatedSize, creati
onCallback); | |
| 302 } | |
| 303 static Database _openDatabase(receiver, name, version, displayName, estimatedS
ize, creationCallback) native; | |
| 304 | |
| 305 void postMessage(Dynamic message, String targetOrigin, [List messagePorts = nu
ll]) { | |
| 306 if (messagePorts === null) { | |
| 307 _postMessage(this, message, targetOrigin); | |
| 308 return; | |
| 309 } else { | |
| 310 _postMessage_2(this, message, targetOrigin, messagePorts); | |
| 311 return; | |
| 312 } | |
| 313 } | |
| 314 static void _postMessage(receiver, message, targetOrigin) native; | |
| 315 static void _postMessage_2(receiver, message, targetOrigin, messagePorts) nati
ve; | |
| 316 | |
| 317 void print() { | |
| 318 _print(this); | |
| 319 return; | |
| 320 } | |
| 321 static void _print(receiver) native; | |
| 322 | |
| 323 String prompt(String message, String defaultValue) { | |
| 324 return _prompt(this, message, defaultValue); | |
| 325 } | |
| 326 static String _prompt(receiver, message, defaultValue) native; | |
| 327 | |
| 328 void releaseEvents() { | |
| 329 _releaseEvents(this); | |
| 330 return; | |
| 331 } | |
| 332 static void _releaseEvents(receiver) native; | |
| 333 | |
| 334 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) { | |
| 335 if (useCapture === null) { | |
| 336 _removeEventListener_DOMWindow(this, type, listener); | |
| 337 return; | |
| 338 } else { | |
| 339 _removeEventListener_DOMWindow_2(this, type, listener, useCapture); | |
| 340 return; | |
| 341 } | |
| 342 } | |
| 343 static void _removeEventListener_DOMWindow(receiver, type, listener) native; | |
| 344 static void _removeEventListener_DOMWindow_2(receiver, type, listener, useCapt
ure) native; | |
| 345 | |
| 346 void resizeBy(num x, num y) { | |
| 347 _resizeBy(this, x, y); | |
| 348 return; | |
| 349 } | |
| 350 static void _resizeBy(receiver, x, y) native; | |
| 351 | |
| 352 void resizeTo(num width, num height) { | |
| 353 _resizeTo(this, width, height); | |
| 354 return; | |
| 355 } | |
| 356 static void _resizeTo(receiver, width, height) native; | |
| 357 | |
| 358 void scroll(int x, int y) { | |
| 359 _scroll(this, x, y); | |
| 360 return; | |
| 361 } | |
| 362 static void _scroll(receiver, x, y) native; | |
| 363 | |
| 364 void scrollBy(int x, int y) { | |
| 365 _scrollBy(this, x, y); | |
| 366 return; | |
| 367 } | |
| 368 static void _scrollBy(receiver, x, y) native; | |
| 369 | |
| 370 void scrollTo(int x, int y) { | |
| 371 _scrollTo(this, x, y); | |
| 372 return; | |
| 373 } | |
| 374 static void _scrollTo(receiver, x, y) native; | |
| 375 | |
| 376 int setInterval(TimeoutHandler handler, int timeout) { | |
| 377 return _setInterval(this, handler, timeout); | |
| 378 } | |
| 379 static int _setInterval(receiver, handler, timeout) native; | |
| 380 | |
| 381 int setTimeout(TimeoutHandler handler, int timeout) { | |
| 382 return _setTimeout(this, handler, timeout); | |
| 383 } | |
| 384 static int _setTimeout(receiver, handler, timeout) native; | |
| 385 | |
| 386 Object showModalDialog(String url, [Object dialogArgs = null, String featureAr
gs = null]) { | |
| 387 if (dialogArgs === null) { | |
| 388 if (featureArgs === null) { | |
| 389 return _showModalDialog(this, url); | |
| 390 } | |
| 391 } else { | |
| 392 if (featureArgs === null) { | |
| 393 return _showModalDialog_2(this, url, dialogArgs); | |
| 394 } else { | |
| 395 return _showModalDialog_3(this, url, dialogArgs, featureArgs); | |
| 396 } | |
| 397 } | |
| 398 throw "Incorrect number or type of arguments"; | |
| 399 } | |
| 400 static Object _showModalDialog(receiver, url) native; | |
| 401 static Object _showModalDialog_2(receiver, url, dialogArgs) native; | |
| 402 static Object _showModalDialog_3(receiver, url, dialogArgs, featureArgs) nativ
e; | |
| 403 | |
| 404 void stop() { | |
| 405 _stop(this); | |
| 406 return; | |
| 407 } | |
| 408 static void _stop(receiver) native; | |
| 409 | |
| 410 void webkitCancelAnimationFrame(int id) { | |
| 411 _webkitCancelAnimationFrame(this, id); | |
| 412 return; | |
| 413 } | |
| 414 static void _webkitCancelAnimationFrame(receiver, id) native; | |
| 415 | |
| 416 void webkitCancelRequestAnimationFrame(int id) { | |
| 417 _webkitCancelRequestAnimationFrame(this, id); | |
| 418 return; | |
| 419 } | |
| 420 static void _webkitCancelRequestAnimationFrame(receiver, id) native; | |
| 421 | |
| 422 WebKitPoint webkitConvertPointFromNodeToPage(Node node, WebKitPoint p) { | |
| 423 return _webkitConvertPointFromNodeToPage(this, node, p); | |
| 424 } | |
| 425 static WebKitPoint _webkitConvertPointFromNodeToPage(receiver, node, p) native
; | |
| 426 | |
| 427 WebKitPoint webkitConvertPointFromPageToNode(Node node, WebKitPoint p) { | |
| 428 return _webkitConvertPointFromPageToNode(this, node, p); | |
| 429 } | |
| 430 static WebKitPoint _webkitConvertPointFromPageToNode(receiver, node, p) native
; | |
| 431 | |
| 432 void webkitPostMessage(Dynamic message, String targetOrigin, [List transferLis
t = null]) { | |
| 433 if (transferList === null) { | |
| 434 _webkitPostMessage(this, message, targetOrigin); | |
| 435 return; | |
| 436 } else { | |
| 437 _webkitPostMessage_2(this, message, targetOrigin, transferList); | |
| 438 return; | |
| 439 } | |
| 440 } | |
| 441 static void _webkitPostMessage(receiver, message, targetOrigin) native; | |
| 442 static void _webkitPostMessage_2(receiver, message, targetOrigin, transferList
) native; | |
| 443 | |
| 444 int webkitRequestAnimationFrame(RequestAnimationFrameCallback callback, Elemen
t element) { | |
| 445 return _webkitRequestAnimationFrame(this, callback, element); | |
| 446 } | |
| 447 static int _webkitRequestAnimationFrame(receiver, callback, element) native; | |
| 448 | |
| 449 void webkitRequestFileSystem(int type, int size, FileSystemCallback successCal
lback, [ErrorCallback errorCallback = null]) { | |
| 450 _webkitRequestFileSystem(this, type, size, successCallback, errorCallback); | |
| 451 return; | |
| 452 } | |
| 453 static void _webkitRequestFileSystem(receiver, type, size, successCallback, er
rorCallback) native; | |
| 454 | |
| 455 void webkitResolveLocalFileSystemURL(String url, [EntryCallback successCallbac
k = null, ErrorCallback errorCallback = null]) { | |
| 456 _webkitResolveLocalFileSystemURL(this, url, successCallback, errorCallback); | |
| 457 return; | |
| 458 } | |
| 459 static void _webkitResolveLocalFileSystemURL(receiver, url, successCallback, e
rrorCallback) native; | |
| 460 | |
| 461 String get typeName() { return "DOMWindow"; } | |
| 462 } | |
| OLD | NEW |