Window.hx 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608
  1. /*
  2. * Copyright (C)2005-2019 Haxe Foundation
  3. *
  4. * Permission is hereby granted, free of charge, to any person obtaining a
  5. * copy of this software and associated documentation files (the "Software"),
  6. * to deal in the Software without restriction, including without limitation
  7. * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  8. * and/or sell copies of the Software, and to permit persons to whom the
  9. * Software is furnished to do so, subject to the following conditions:
  10. *
  11. * The above copyright notice and this permission notice shall be included in
  12. * all copies or substantial portions of the Software.
  13. *
  14. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  17. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  18. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  19. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  20. * DEALINGS IN THE SOFTWARE.
  21. */
  22. // This file is generated from mozilla\Window.webidl. Do not edit!
  23. package js.html;
  24. import js.lib.Promise;
  25. /**
  26. The `Window` interface represents a window containing a DOM document; the `document` property points to the DOM document loaded in that window.
  27. Documentation [Window](https://developer.mozilla.org/en-US/docs/Web/API/Window) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/Window$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
  28. @see <https://developer.mozilla.org/en-US/docs/Web/API/Window>
  29. **/
  30. @:native("Window")
  31. extern class Window extends EventTarget {
  32. /**
  33. Returns a reference to the current window.
  34. **/
  35. var window(default,null) : Window;
  36. /**
  37. Returns an object reference to the window object itself.
  38. **/
  39. var self(default,null) : Window;
  40. /**
  41. Returns a reference to the document that the window contains.
  42. **/
  43. var document(default,null) : HTMLDocument;
  44. /**
  45. Gets/sets the name of the window.
  46. **/
  47. var name : String;
  48. /**
  49. Gets/sets the location, or current URL, of the window object.
  50. **/
  51. var location(default,null) : Location;
  52. /**
  53. Returns a reference to the history object.
  54. **/
  55. var history(default,null) : History;
  56. /**
  57. Returns the locationbar object, whose visibility can be toggled in the window.
  58. **/
  59. var locationbar(default,null) : BarProp;
  60. /**
  61. Returns the menubar object, whose visibility can be toggled in the window.
  62. **/
  63. var menubar(default,null) : BarProp;
  64. /**
  65. Returns the personalbar object, whose visibility can be toggled in the window.
  66. **/
  67. var personalbar(default,null) : BarProp;
  68. /**
  69. Returns the scrollbars object, whose visibility can be toggled in the window.
  70. **/
  71. var scrollbars(default,null) : BarProp;
  72. /**
  73. Returns the statusbar object, whose visibility can be toggled in the window.
  74. **/
  75. var statusbar(default,null) : BarProp;
  76. /**
  77. Returns the toolbar object, whose visibility can be toggled in the window.
  78. **/
  79. var toolbar(default,null) : BarProp;
  80. /**
  81. Gets/sets the text in the statusbar at the bottom of the browser.
  82. **/
  83. var status : String;
  84. /**
  85. This property indicates whether the current window is closed or not.
  86. **/
  87. var closed(default,null) : Bool;
  88. /**
  89. Returns the current event, which is the event currently being handled by the JavaScript code's context, or `undefined` if no event is currently being handled. The `Event` object passed directly to event handlers should be used instead whenever possible.
  90. **/
  91. var event(default,null) : Dynamic;
  92. /**
  93. Returns an array of the subframes in the current window.
  94. **/
  95. var frames(default,null) : Window;
  96. /**
  97. Returns the number of frames in the window. See also `window.frames`.
  98. **/
  99. var length(default,null) : Int;
  100. /**
  101. Returns a reference to the topmost window in the window hierarchy. This property is read only.
  102. **/
  103. var top(default,null) : Window;
  104. /**
  105. Returns a reference to the window that opened this current window.
  106. **/
  107. var opener : Dynamic;
  108. /**
  109. Returns a reference to the parent of the current window or subframe.
  110. **/
  111. var parent(default,null) : Window;
  112. /**
  113. Returns the element in which the window is embedded, or null if the window is not embedded.
  114. **/
  115. var frameElement(default,null) : Element;
  116. /**
  117. Returns a reference to the navigator object.
  118. **/
  119. var navigator(default,null) : Navigator;
  120. /**
  121. Returns a reference to the console object which provides access to the browser's debugging console.
  122. **/
  123. var console(default,null) : ConsoleInstance;
  124. /**
  125. Returns a reference to the screen object associated with the window.
  126. **/
  127. var screen(default,null) : Screen;
  128. /**
  129. Gets the width of the content area of the browser window including, if rendered, the vertical scrollbar.
  130. **/
  131. var innerWidth : Dynamic;
  132. /**
  133. Gets the height of the content area of the browser window including, if rendered, the horizontal scrollbar.
  134. **/
  135. var innerHeight : Dynamic;
  136. /**
  137. Returns the number of pixels that the document has already been scrolled horizontally.
  138. **/
  139. var scrollX(default,null) : Float;
  140. /**
  141. An alias for `window.scrollX`.
  142. **/
  143. var pageXOffset(default,null) : Float;
  144. /**
  145. Returns the number of pixels that the document has already been scrolled vertically.
  146. **/
  147. var scrollY(default,null) : Float;
  148. /**
  149. An alias for `window.scrollY`
  150. **/
  151. var pageYOffset(default,null) : Float;
  152. /**
  153. Returns the horizontal distance of the left border of the user's browser from the left side of the screen.
  154. **/
  155. var screenX : Dynamic;
  156. /**
  157. Returns the vertical distance of the top border of the user's browser from the top side of the screen.
  158. **/
  159. var screenY : Dynamic;
  160. /**
  161. Gets the width of the outside of the browser window.
  162. **/
  163. var outerWidth : Dynamic;
  164. /**
  165. Gets the height of the outside of the browser window.
  166. **/
  167. var outerHeight : Dynamic;
  168. /**
  169. Returns a `Performance` object, which includes the `Performance.timing` and `Performance.navigation` attributes, each of which is an object providing performance-related data. See also Using Navigation Timing for additional information and examples.
  170. **/
  171. var performance(default,null) : Performance;
  172. /**
  173. Returns the ratio between physical pixels and device independent pixels in the current display.
  174. **/
  175. var devicePixelRatio(default,null) : Float;
  176. /**
  177. The maximum offset that the window can be scrolled to horizontally, that is the document width minus the viewport width.
  178. **/
  179. var scrollMaxX(default,null) : Int;
  180. /**
  181. The maximum offset that the window can be scrolled to vertically (i.e., the document height minus the viewport height).
  182. **/
  183. var scrollMaxY(default,null) : Int;
  184. /**
  185. This property indicates whether the window is displayed in full screen or not.
  186. **/
  187. var fullScreen : Bool;
  188. var ondevicemotion : haxe.Constraints.Function;
  189. var ondeviceorientation : haxe.Constraints.Function;
  190. var onabsolutedeviceorientation : haxe.Constraints.Function;
  191. var ondeviceproximity : haxe.Constraints.Function;
  192. var onuserproximity : haxe.Constraints.Function;
  193. var ondevicelight : haxe.Constraints.Function;
  194. /**
  195. Returns a reference to the content element in the current window. Since Firefox 57 (initially Nightly-only), both versions are only available from chrome (privileged) code, and not available to the web anymore.
  196. **/
  197. var content(default,null) : Dynamic;
  198. /**
  199. Returns the orientation in degrees (in 90 degree increments) of the viewport relative to the device's natural orientation.
  200. **/
  201. var orientation(default,null) : Int;
  202. var onorientationchange : haxe.Constraints.Function;
  203. /**
  204. Returns the browser crypto object.
  205. **/
  206. var crypto(default,null) : Crypto;
  207. var onabort : haxe.Constraints.Function;
  208. var onblur : haxe.Constraints.Function;
  209. var onfocus : haxe.Constraints.Function;
  210. var onauxclick : haxe.Constraints.Function;
  211. var oncanplay : haxe.Constraints.Function;
  212. var oncanplaythrough : haxe.Constraints.Function;
  213. var onchange : haxe.Constraints.Function;
  214. var onclick : haxe.Constraints.Function;
  215. var onclose : haxe.Constraints.Function;
  216. var oncontextmenu : haxe.Constraints.Function;
  217. var ondblclick : haxe.Constraints.Function;
  218. var ondrag : haxe.Constraints.Function;
  219. var ondragend : haxe.Constraints.Function;
  220. var ondragenter : haxe.Constraints.Function;
  221. var ondragexit : haxe.Constraints.Function;
  222. var ondragleave : haxe.Constraints.Function;
  223. var ondragover : haxe.Constraints.Function;
  224. var ondragstart : haxe.Constraints.Function;
  225. var ondrop : haxe.Constraints.Function;
  226. var ondurationchange : haxe.Constraints.Function;
  227. var onemptied : haxe.Constraints.Function;
  228. var onended : haxe.Constraints.Function;
  229. var oninput : haxe.Constraints.Function;
  230. var oninvalid : haxe.Constraints.Function;
  231. var onkeydown : haxe.Constraints.Function;
  232. var onkeypress : haxe.Constraints.Function;
  233. var onkeyup : haxe.Constraints.Function;
  234. var onload : haxe.Constraints.Function;
  235. var onloadeddata : haxe.Constraints.Function;
  236. var onloadedmetadata : haxe.Constraints.Function;
  237. var onloadend : haxe.Constraints.Function;
  238. var onloadstart : haxe.Constraints.Function;
  239. var onmousedown : haxe.Constraints.Function;
  240. var onmouseenter : haxe.Constraints.Function;
  241. var onmouseleave : haxe.Constraints.Function;
  242. var onmousemove : haxe.Constraints.Function;
  243. var onmouseout : haxe.Constraints.Function;
  244. var onmouseover : haxe.Constraints.Function;
  245. var onmouseup : haxe.Constraints.Function;
  246. var onwheel : haxe.Constraints.Function;
  247. var onpause : haxe.Constraints.Function;
  248. var onplay : haxe.Constraints.Function;
  249. var onplaying : haxe.Constraints.Function;
  250. var onprogress : haxe.Constraints.Function;
  251. var onratechange : haxe.Constraints.Function;
  252. var onreset : haxe.Constraints.Function;
  253. var onresize : haxe.Constraints.Function;
  254. var onscroll : haxe.Constraints.Function;
  255. var onseeked : haxe.Constraints.Function;
  256. var onseeking : haxe.Constraints.Function;
  257. var onselect : haxe.Constraints.Function;
  258. var onshow : haxe.Constraints.Function;
  259. var onstalled : haxe.Constraints.Function;
  260. var onsubmit : haxe.Constraints.Function;
  261. var onsuspend : haxe.Constraints.Function;
  262. var ontimeupdate : haxe.Constraints.Function;
  263. var onvolumechange : haxe.Constraints.Function;
  264. var onwaiting : haxe.Constraints.Function;
  265. var onselectstart : haxe.Constraints.Function;
  266. var ontoggle : haxe.Constraints.Function;
  267. var onpointercancel : haxe.Constraints.Function;
  268. var onpointerdown : haxe.Constraints.Function;
  269. var onpointerup : haxe.Constraints.Function;
  270. var onpointermove : haxe.Constraints.Function;
  271. var onpointerout : haxe.Constraints.Function;
  272. var onpointerover : haxe.Constraints.Function;
  273. var onpointerenter : haxe.Constraints.Function;
  274. var onpointerleave : haxe.Constraints.Function;
  275. var ongotpointercapture : haxe.Constraints.Function;
  276. var onlostpointercapture : haxe.Constraints.Function;
  277. var onanimationcancel : haxe.Constraints.Function;
  278. var onanimationend : haxe.Constraints.Function;
  279. var onanimationiteration : haxe.Constraints.Function;
  280. var onanimationstart : haxe.Constraints.Function;
  281. var ontransitioncancel : haxe.Constraints.Function;
  282. var ontransitionend : haxe.Constraints.Function;
  283. var ontransitionrun : haxe.Constraints.Function;
  284. var ontransitionstart : haxe.Constraints.Function;
  285. var onwebkitanimationend : haxe.Constraints.Function;
  286. var onwebkitanimationiteration : haxe.Constraints.Function;
  287. var onwebkitanimationstart : haxe.Constraints.Function;
  288. var onwebkittransitionend : haxe.Constraints.Function;
  289. var onerror : haxe.extern.EitherType<Event,String> -> String -> Int -> Int -> Dynamic -> Dynamic;
  290. /**
  291. Returns a `SpeechSynthesis` object, which is the entry point into using Web Speech API speech synthesis functionality.
  292. **/
  293. var speechSynthesis(default,null) : SpeechSynthesis;
  294. var ontouchstart : haxe.Constraints.Function;
  295. var ontouchend : haxe.Constraints.Function;
  296. var ontouchmove : haxe.Constraints.Function;
  297. var ontouchcancel : haxe.Constraints.Function;
  298. var onafterprint : haxe.Constraints.Function;
  299. var onbeforeprint : haxe.Constraints.Function;
  300. var onbeforeunload : Event -> Null<String>;
  301. var onhashchange : haxe.Constraints.Function;
  302. var onlanguagechange : haxe.Constraints.Function;
  303. var onmessage : haxe.Constraints.Function;
  304. var onmessageerror : haxe.Constraints.Function;
  305. var onoffline : haxe.Constraints.Function;
  306. var ononline : haxe.Constraints.Function;
  307. var onpagehide : haxe.Constraints.Function;
  308. var onpageshow : haxe.Constraints.Function;
  309. var onpopstate : haxe.Constraints.Function;
  310. var onstorage : haxe.Constraints.Function;
  311. var onunload : haxe.Constraints.Function;
  312. /**
  313. Returns a reference to the local storage object used to store data that may only be accessed by the origin that created it.
  314. **/
  315. var localStorage(default,null) : Storage;
  316. var origin(default,null) : String;
  317. /**
  318. Indicates whether a context is capable of using features that require secure contexts.
  319. **/
  320. var isSecureContext(default,null) : Bool;
  321. var indexedDB(default,null) : js.html.idb.Factory;
  322. var caches(default,null) : CacheStorage;
  323. /**
  324. Returns a reference to the session storage object used to store data that may only be accessed by the origin that created it.
  325. **/
  326. var sessionStorage(default,null) : Storage;
  327. /**
  328. Closes the current window.
  329. @throws DOMError
  330. **/
  331. function close() : Void;
  332. /**
  333. This method stops window loading.
  334. @throws DOMError
  335. **/
  336. function stop() : Void;
  337. /**
  338. Sets focus on the current window.
  339. @throws DOMError
  340. **/
  341. function focus() : Void;
  342. /**
  343. Sets focus away from the window.
  344. @throws DOMError
  345. **/
  346. function blur() : Void;
  347. /**
  348. Opens a new window.
  349. @throws DOMError
  350. **/
  351. function open( url : String = "", target : String = "", features : String = "" ) : Window;
  352. /**
  353. Displays an alert dialog.
  354. @throws DOMError
  355. **/
  356. @:overload( function() : Void {} )
  357. function alert( message : String ) : Void;
  358. /**
  359. Displays a dialog with a message that the user needs to respond to.
  360. @throws DOMError
  361. **/
  362. function confirm( message : String = "" ) : Bool;
  363. /**
  364. Returns the text entered by the user in a prompt dialog.
  365. @throws DOMError
  366. **/
  367. function prompt( message : String = "", default_ : String = "" ) : String;
  368. /**
  369. Opens the Print Dialog to print the current document.
  370. @throws DOMError
  371. **/
  372. function print() : Void;
  373. /**
  374. Provides a secure means for one window to send a string of data to another window, which need not be within the same domain as the first.
  375. @throws DOMError
  376. **/
  377. function postMessage( message : Dynamic, targetOrigin : String, ?transfer : Array<Dynamic> ) : Void;
  378. /**
  379. Registers the window to capture all events of the specified type.
  380. **/
  381. function captureEvents() : Void;
  382. /**
  383. Releases the window from trapping events of a specific type.
  384. **/
  385. function releaseEvents() : Void;
  386. /**
  387. Returns the selection object representing the selected item(s).
  388. @throws DOMError
  389. **/
  390. function getSelection() : Selection;
  391. /**
  392. Gets computed style for the specified element. Computed style indicates the computed values of all CSS properties of the element.
  393. @throws DOMError
  394. **/
  395. function getComputedStyle( elt : Element, pseudoElt : String = "" ) : CSSStyleDeclaration;
  396. /**
  397. Returns a `MediaQueryList` object representing the specified media query string.
  398. @throws DOMError
  399. **/
  400. function matchMedia( query : String ) : MediaQueryList;
  401. /**
  402. Moves the window to the specified coordinates.
  403. @throws DOMError
  404. **/
  405. function moveTo( x : Int, y : Int ) : Void;
  406. /**
  407. Moves the current window by a specified amount.
  408. @throws DOMError
  409. **/
  410. function moveBy( x : Int, y : Int ) : Void;
  411. /**
  412. Dynamically resizes window.
  413. @throws DOMError
  414. **/
  415. function resizeTo( x : Int, y : Int ) : Void;
  416. /**
  417. Resizes the current window by a certain amount.
  418. @throws DOMError
  419. **/
  420. function resizeBy( x : Int, y : Int ) : Void;
  421. /**
  422. Scrolls the window to a particular place in the document.
  423. **/
  424. @:overload( function( x : Float, y : Float ) : Void {} )
  425. function scroll( ?options : ScrollToOptions ) : Void;
  426. /**
  427. Scrolls to a particular set of coordinates in the document.
  428. **/
  429. @:overload( function( x : Float, y : Float ) : Void {} )
  430. function scrollTo( ?options : ScrollToOptions ) : Void;
  431. /**
  432. Scrolls the document in the window by the given amount.
  433. **/
  434. @:overload( function( x : Float, y : Float ) : Void {} )
  435. function scrollBy( ?options : ScrollToOptions ) : Void;
  436. /**
  437. Tells the browser that an animation is in progress, requesting that the browser schedule a repaint of the window for the next animation frame.
  438. @throws DOMError
  439. **/
  440. function requestAnimationFrame( callback : Float -> Void ) : Int;
  441. /**
  442. Enables you to cancel a callback previously scheduled with `Window.requestAnimationFrame`.
  443. @throws DOMError
  444. **/
  445. function cancelAnimationFrame( handle : Int ) : Void;
  446. /**
  447. Gets default computed style for the specified element, ignoring author stylesheets.
  448. @throws DOMError
  449. **/
  450. function getDefaultComputedStyle( elt : Element, pseudoElt : String = "" ) : CSSStyleDeclaration;
  451. /**
  452. Scrolls the document by the given number of lines.
  453. **/
  454. function scrollByLines( numLines : Int, ?options : ScrollOptions ) : Void;
  455. /**
  456. Scrolls the current document by the specified number of pages.
  457. **/
  458. function scrollByPages( numPages : Int, ?options : ScrollOptions ) : Void;
  459. /**
  460. Sizes the window according to its content.
  461. @throws DOMError
  462. **/
  463. function sizeToContent() : Void;
  464. /**
  465. Updates the state of commands of the current chrome window (UI).
  466. **/
  467. function updateCommands( action : String, ?sel : Selection, reason : Int = 0 ) : Void;
  468. /**
  469. Searches for a given string in a window.
  470. @throws DOMError
  471. **/
  472. function find( str : String = "", caseSensitive : Bool = false, backwards : Bool = false, wrapAround : Bool = false, wholeWord : Bool = false, searchInFrames : Bool = false, showDialog : Bool = false ) : Bool;
  473. /**
  474. Writes a message to the console.
  475. **/
  476. function dump( str : String ) : Void;
  477. /**
  478. Toggles a user's ability to resize a window.
  479. **/
  480. function setResizable( resizable : Bool ) : Void;
  481. /** @throws DOMError */
  482. function btoa( btoa : String ) : String;
  483. /** @throws DOMError */
  484. function atob( atob : String ) : String;
  485. /** @throws DOMError */
  486. @:overload( function( handler : haxe.Constraints.Function, timeout : Float = 0, arguments : haxe.extern.Rest<Dynamic> ) : Int {} )
  487. function setTimeout( handler : String, timeout : Float = 0, unused : haxe.extern.Rest<Dynamic> ) : Int;
  488. function clearTimeout( handle : Int = 0 ) : Void;
  489. /** @throws DOMError */
  490. @:overload( function( handler : haxe.Constraints.Function, timeout : Float = 0, arguments : haxe.extern.Rest<Dynamic> ) : Int {} )
  491. function setInterval( handler : String, timeout : Float = 0, unused : haxe.extern.Rest<Dynamic> ) : Int;
  492. function clearInterval( handle : Int = 0 ) : Void;
  493. /** @throws DOMError */
  494. @:overload( function( aImage : VideoElement) : Promise<ImageBitmap> {} )
  495. @:overload( function( aImage : CanvasElement) : Promise<ImageBitmap> {} )
  496. @:overload( function( aImage : Blob) : Promise<ImageBitmap> {} )
  497. @:overload( function( aImage : ImageData) : Promise<ImageBitmap> {} )
  498. @:overload( function( aImage : CanvasRenderingContext2D) : Promise<ImageBitmap> {} )
  499. @:overload( function( aImage : ImageBitmap) : Promise<ImageBitmap> {} )
  500. @:overload( function( aImage : js.lib.ArrayBufferView) : Promise<ImageBitmap> {} )
  501. @:overload( function( aImage : js.lib.ArrayBuffer) : Promise<ImageBitmap> {} )
  502. @:overload( function( aImage : VideoElement, aSx : Int, aSy : Int, aSw : Int, aSh : Int) : Promise<ImageBitmap> {} )
  503. @:overload( function( aImage : CanvasElement, aSx : Int, aSy : Int, aSw : Int, aSh : Int) : Promise<ImageBitmap> {} )
  504. @:overload( function( aImage : Blob, aSx : Int, aSy : Int, aSw : Int, aSh : Int) : Promise<ImageBitmap> {} )
  505. @:overload( function( aImage : ImageData, aSx : Int, aSy : Int, aSw : Int, aSh : Int) : Promise<ImageBitmap> {} )
  506. @:overload( function( aImage : CanvasRenderingContext2D, aSx : Int, aSy : Int, aSw : Int, aSh : Int) : Promise<ImageBitmap> {} )
  507. @:overload( function( aImage : ImageBitmap, aSx : Int, aSy : Int, aSw : Int, aSh : Int) : Promise<ImageBitmap> {} )
  508. @:overload( function( aImage : js.lib.ArrayBufferView, aSx : Int, aSy : Int, aSw : Int, aSh : Int) : Promise<ImageBitmap> {} )
  509. @:overload( function( aImage : js.lib.ArrayBuffer, aSx : Int, aSy : Int, aSw : Int, aSh : Int) : Promise<ImageBitmap> {} )
  510. @:overload( function( aImage : VideoElement, aOffset : Int, aLength : Int, aFormat : ImageBitmapFormat, aLayout : Array<ChannelPixelLayout>) : Promise<ImageBitmap> {} )
  511. @:overload( function( aImage : CanvasElement, aOffset : Int, aLength : Int, aFormat : ImageBitmapFormat, aLayout : Array<ChannelPixelLayout>) : Promise<ImageBitmap> {} )
  512. @:overload( function( aImage : Blob, aOffset : Int, aLength : Int, aFormat : ImageBitmapFormat, aLayout : Array<ChannelPixelLayout>) : Promise<ImageBitmap> {} )
  513. @:overload( function( aImage : ImageData, aOffset : Int, aLength : Int, aFormat : ImageBitmapFormat, aLayout : Array<ChannelPixelLayout>) : Promise<ImageBitmap> {} )
  514. @:overload( function( aImage : CanvasRenderingContext2D, aOffset : Int, aLength : Int, aFormat : ImageBitmapFormat, aLayout : Array<ChannelPixelLayout>) : Promise<ImageBitmap> {} )
  515. @:overload( function( aImage : ImageBitmap, aOffset : Int, aLength : Int, aFormat : ImageBitmapFormat, aLayout : Array<ChannelPixelLayout>) : Promise<ImageBitmap> {} )
  516. @:overload( function( aImage : js.lib.ArrayBufferView, aOffset : Int, aLength : Int, aFormat : ImageBitmapFormat, aLayout : Array<ChannelPixelLayout>) : Promise<ImageBitmap> {} )
  517. @:overload( function( aImage : js.lib.ArrayBuffer, aOffset : Int, aLength : Int, aFormat : ImageBitmapFormat, aLayout : Array<ChannelPixelLayout>) : Promise<ImageBitmap> {} )
  518. @:overload( function( aImage : ImageElement ) : Promise<ImageBitmap> {} )
  519. @:overload( function( aImage : ImageElement, aSx : Int, aSy : Int, aSw : Int, aSh : Int ) : Promise<ImageBitmap> {} )
  520. function createImageBitmap( aImage : ImageElement, aOffset : Int, aLength : Int, aFormat : ImageBitmapFormat, aLayout : Array<ChannelPixelLayout> ) : Promise<ImageBitmap>;
  521. @:overload( function( input : String, ?init : RequestInit) : Promise<Response> {} )
  522. function fetch( input : Request, ?init : RequestInit ) : Promise<Response>;
  523. }