|
@@ -24,6 +24,8 @@
|
|
|
|
|
|
package js.html;
|
|
package js.html;
|
|
|
|
|
|
|
|
+import js.lib.Promise;
|
|
|
|
+
|
|
/**
|
|
/**
|
|
The `Window` interface represents a window containing a DOM document; the `document` property points to the DOM document loaded in that window.
|
|
The `Window` interface represents a window containing a DOM document; the `document` property points to the DOM document loaded in that window.
|
|
|
|
|
|
@@ -33,197 +35,197 @@ package js.html;
|
|
**/
|
|
**/
|
|
@:native("Window")
|
|
@:native("Window")
|
|
extern class Window extends EventTarget {
|
|
extern class Window extends EventTarget {
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Returns a reference to the current window.
|
|
Returns a reference to the current window.
|
|
**/
|
|
**/
|
|
var window(default,null) : Window;
|
|
var window(default,null) : Window;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Returns an object reference to the window object itself.
|
|
Returns an object reference to the window object itself.
|
|
**/
|
|
**/
|
|
var self(default,null) : Window;
|
|
var self(default,null) : Window;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Returns a reference to the document that the window contains.
|
|
Returns a reference to the document that the window contains.
|
|
**/
|
|
**/
|
|
var document(default,null) : HTMLDocument;
|
|
var document(default,null) : HTMLDocument;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Gets/sets the name of the window.
|
|
Gets/sets the name of the window.
|
|
**/
|
|
**/
|
|
var name : String;
|
|
var name : String;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Gets/sets the location, or current URL, of the window object.
|
|
Gets/sets the location, or current URL, of the window object.
|
|
**/
|
|
**/
|
|
var location(default,null) : Location;
|
|
var location(default,null) : Location;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Returns a reference to the history object.
|
|
Returns a reference to the history object.
|
|
**/
|
|
**/
|
|
var history(default,null) : History;
|
|
var history(default,null) : History;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Returns the locationbar object, whose visibility can be toggled in the window.
|
|
Returns the locationbar object, whose visibility can be toggled in the window.
|
|
**/
|
|
**/
|
|
var locationbar(default,null) : BarProp;
|
|
var locationbar(default,null) : BarProp;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Returns the menubar object, whose visibility can be toggled in the window.
|
|
Returns the menubar object, whose visibility can be toggled in the window.
|
|
**/
|
|
**/
|
|
var menubar(default,null) : BarProp;
|
|
var menubar(default,null) : BarProp;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Returns the personalbar object, whose visibility can be toggled in the window.
|
|
Returns the personalbar object, whose visibility can be toggled in the window.
|
|
**/
|
|
**/
|
|
var personalbar(default,null) : BarProp;
|
|
var personalbar(default,null) : BarProp;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Returns the scrollbars object, whose visibility can be toggled in the window.
|
|
Returns the scrollbars object, whose visibility can be toggled in the window.
|
|
**/
|
|
**/
|
|
var scrollbars(default,null) : BarProp;
|
|
var scrollbars(default,null) : BarProp;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Returns the statusbar object, whose visibility can be toggled in the window.
|
|
Returns the statusbar object, whose visibility can be toggled in the window.
|
|
**/
|
|
**/
|
|
var statusbar(default,null) : BarProp;
|
|
var statusbar(default,null) : BarProp;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Returns the toolbar object, whose visibility can be toggled in the window.
|
|
Returns the toolbar object, whose visibility can be toggled in the window.
|
|
**/
|
|
**/
|
|
var toolbar(default,null) : BarProp;
|
|
var toolbar(default,null) : BarProp;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Gets/sets the text in the statusbar at the bottom of the browser.
|
|
Gets/sets the text in the statusbar at the bottom of the browser.
|
|
**/
|
|
**/
|
|
var status : String;
|
|
var status : String;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
This property indicates whether the current window is closed or not.
|
|
This property indicates whether the current window is closed or not.
|
|
**/
|
|
**/
|
|
var closed(default,null) : Bool;
|
|
var closed(default,null) : Bool;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
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.
|
|
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.
|
|
**/
|
|
**/
|
|
var event(default,null) : Dynamic;
|
|
var event(default,null) : Dynamic;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Returns an array of the subframes in the current window.
|
|
Returns an array of the subframes in the current window.
|
|
**/
|
|
**/
|
|
var frames(default,null) : Window;
|
|
var frames(default,null) : Window;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Returns the number of frames in the window. See also `window.frames`.
|
|
Returns the number of frames in the window. See also `window.frames`.
|
|
**/
|
|
**/
|
|
var length(default,null) : Int;
|
|
var length(default,null) : Int;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Returns a reference to the topmost window in the window hierarchy. This property is read only.
|
|
Returns a reference to the topmost window in the window hierarchy. This property is read only.
|
|
**/
|
|
**/
|
|
var top(default,null) : Window;
|
|
var top(default,null) : Window;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Returns a reference to the window that opened this current window.
|
|
Returns a reference to the window that opened this current window.
|
|
**/
|
|
**/
|
|
var opener : Dynamic;
|
|
var opener : Dynamic;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Returns a reference to the parent of the current window or subframe.
|
|
Returns a reference to the parent of the current window or subframe.
|
|
**/
|
|
**/
|
|
var parent(default,null) : Window;
|
|
var parent(default,null) : Window;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Returns the element in which the window is embedded, or null if the window is not embedded.
|
|
Returns the element in which the window is embedded, or null if the window is not embedded.
|
|
**/
|
|
**/
|
|
var frameElement(default,null) : Element;
|
|
var frameElement(default,null) : Element;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Returns a reference to the navigator object.
|
|
Returns a reference to the navigator object.
|
|
**/
|
|
**/
|
|
var navigator(default,null) : Navigator;
|
|
var navigator(default,null) : Navigator;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Returns a reference to the console object which provides access to the browser's debugging console.
|
|
Returns a reference to the console object which provides access to the browser's debugging console.
|
|
**/
|
|
**/
|
|
var console(default,null) : ConsoleInstance;
|
|
var console(default,null) : ConsoleInstance;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Returns a reference to the screen object associated with the window.
|
|
Returns a reference to the screen object associated with the window.
|
|
**/
|
|
**/
|
|
var screen(default,null) : Screen;
|
|
var screen(default,null) : Screen;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Gets the width of the content area of the browser window including, if rendered, the vertical scrollbar.
|
|
Gets the width of the content area of the browser window including, if rendered, the vertical scrollbar.
|
|
**/
|
|
**/
|
|
var innerWidth : Dynamic;
|
|
var innerWidth : Dynamic;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Gets the height of the content area of the browser window including, if rendered, the horizontal scrollbar.
|
|
Gets the height of the content area of the browser window including, if rendered, the horizontal scrollbar.
|
|
**/
|
|
**/
|
|
var innerHeight : Dynamic;
|
|
var innerHeight : Dynamic;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Returns the number of pixels that the document has already been scrolled horizontally.
|
|
Returns the number of pixels that the document has already been scrolled horizontally.
|
|
**/
|
|
**/
|
|
var scrollX(default,null) : Float;
|
|
var scrollX(default,null) : Float;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
An alias for `window.scrollX`.
|
|
An alias for `window.scrollX`.
|
|
**/
|
|
**/
|
|
var pageXOffset(default,null) : Float;
|
|
var pageXOffset(default,null) : Float;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Returns the number of pixels that the document has already been scrolled vertically.
|
|
Returns the number of pixels that the document has already been scrolled vertically.
|
|
**/
|
|
**/
|
|
var scrollY(default,null) : Float;
|
|
var scrollY(default,null) : Float;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
An alias for `window.scrollY`
|
|
An alias for `window.scrollY`
|
|
**/
|
|
**/
|
|
var pageYOffset(default,null) : Float;
|
|
var pageYOffset(default,null) : Float;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Returns the horizontal distance of the left border of the user's browser from the left side of the screen.
|
|
Returns the horizontal distance of the left border of the user's browser from the left side of the screen.
|
|
**/
|
|
**/
|
|
var screenX : Dynamic;
|
|
var screenX : Dynamic;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Returns the vertical distance of the top border of the user's browser from the top side of the screen.
|
|
Returns the vertical distance of the top border of the user's browser from the top side of the screen.
|
|
**/
|
|
**/
|
|
var screenY : Dynamic;
|
|
var screenY : Dynamic;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Gets the width of the outside of the browser window.
|
|
Gets the width of the outside of the browser window.
|
|
**/
|
|
**/
|
|
var outerWidth : Dynamic;
|
|
var outerWidth : Dynamic;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Gets the height of the outside of the browser window.
|
|
Gets the height of the outside of the browser window.
|
|
**/
|
|
**/
|
|
var outerHeight : Dynamic;
|
|
var outerHeight : Dynamic;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
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.
|
|
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.
|
|
**/
|
|
**/
|
|
var performance(default,null) : Performance;
|
|
var performance(default,null) : Performance;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Returns the ratio between physical pixels and device independent pixels in the current display.
|
|
Returns the ratio between physical pixels and device independent pixels in the current display.
|
|
**/
|
|
**/
|
|
var devicePixelRatio(default,null) : Float;
|
|
var devicePixelRatio(default,null) : Float;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
The maximum offset that the window can be scrolled to horizontally, that is the document width minus the viewport width.
|
|
The maximum offset that the window can be scrolled to horizontally, that is the document width minus the viewport width.
|
|
**/
|
|
**/
|
|
var scrollMaxX(default,null) : Int;
|
|
var scrollMaxX(default,null) : Int;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
The maximum offset that the window can be scrolled to vertically (i.e., the document height minus the viewport height).
|
|
The maximum offset that the window can be scrolled to vertically (i.e., the document height minus the viewport height).
|
|
**/
|
|
**/
|
|
var scrollMaxY(default,null) : Int;
|
|
var scrollMaxY(default,null) : Int;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
This property indicates whether the window is displayed in full screen or not.
|
|
This property indicates whether the window is displayed in full screen or not.
|
|
**/
|
|
**/
|
|
@@ -234,18 +236,18 @@ extern class Window extends EventTarget {
|
|
var ondeviceproximity : haxe.Constraints.Function;
|
|
var ondeviceproximity : haxe.Constraints.Function;
|
|
var onuserproximity : haxe.Constraints.Function;
|
|
var onuserproximity : haxe.Constraints.Function;
|
|
var ondevicelight : haxe.Constraints.Function;
|
|
var ondevicelight : haxe.Constraints.Function;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
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.
|
|
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.
|
|
**/
|
|
**/
|
|
var content(default,null) : Dynamic;
|
|
var content(default,null) : Dynamic;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Returns the orientation in degrees (in 90 degree increments) of the viewport relative to the device's natural orientation.
|
|
Returns the orientation in degrees (in 90 degree increments) of the viewport relative to the device's natural orientation.
|
|
**/
|
|
**/
|
|
var orientation(default,null) : Int;
|
|
var orientation(default,null) : Int;
|
|
var onorientationchange : haxe.Constraints.Function;
|
|
var onorientationchange : haxe.Constraints.Function;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Returns the browser crypto object.
|
|
Returns the browser crypto object.
|
|
**/
|
|
**/
|
|
@@ -333,7 +335,7 @@ extern class Window extends EventTarget {
|
|
var onwebkitanimationstart : haxe.Constraints.Function;
|
|
var onwebkitanimationstart : haxe.Constraints.Function;
|
|
var onwebkittransitionend : haxe.Constraints.Function;
|
|
var onwebkittransitionend : haxe.Constraints.Function;
|
|
var onerror : haxe.extern.EitherType<Event,String> -> String -> Int -> Int -> Dynamic -> Dynamic;
|
|
var onerror : haxe.extern.EitherType<Event,String> -> String -> Int -> Int -> Dynamic -> Dynamic;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Returns a `SpeechSynthesis` object, which is the entry point into using Web Speech API speech synthesis functionality.
|
|
Returns a `SpeechSynthesis` object, which is the entry point into using Web Speech API speech synthesis functionality.
|
|
**/
|
|
**/
|
|
@@ -356,207 +358,207 @@ extern class Window extends EventTarget {
|
|
var onpopstate : haxe.Constraints.Function;
|
|
var onpopstate : haxe.Constraints.Function;
|
|
var onstorage : haxe.Constraints.Function;
|
|
var onstorage : haxe.Constraints.Function;
|
|
var onunload : haxe.Constraints.Function;
|
|
var onunload : haxe.Constraints.Function;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Returns a reference to the local storage object used to store data that may only be accessed by the origin that created it.
|
|
Returns a reference to the local storage object used to store data that may only be accessed by the origin that created it.
|
|
**/
|
|
**/
|
|
var localStorage(default,null) : Storage;
|
|
var localStorage(default,null) : Storage;
|
|
var origin(default,null) : String;
|
|
var origin(default,null) : String;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Indicates whether a context is capable of using features that require secure contexts.
|
|
Indicates whether a context is capable of using features that require secure contexts.
|
|
**/
|
|
**/
|
|
var isSecureContext(default,null) : Bool;
|
|
var isSecureContext(default,null) : Bool;
|
|
var indexedDB(default,null) : js.html.idb.Factory;
|
|
var indexedDB(default,null) : js.html.idb.Factory;
|
|
var caches(default,null) : CacheStorage;
|
|
var caches(default,null) : CacheStorage;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Returns a reference to the session storage object used to store data that may only be accessed by the origin that created it.
|
|
Returns a reference to the session storage object used to store data that may only be accessed by the origin that created it.
|
|
**/
|
|
**/
|
|
var sessionStorage(default,null) : Storage;
|
|
var sessionStorage(default,null) : Storage;
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Closes the current window.
|
|
Closes the current window.
|
|
@throws DOMError
|
|
@throws DOMError
|
|
**/
|
|
**/
|
|
function close() : Void;
|
|
function close() : Void;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
This method stops window loading.
|
|
This method stops window loading.
|
|
@throws DOMError
|
|
@throws DOMError
|
|
**/
|
|
**/
|
|
function stop() : Void;
|
|
function stop() : Void;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Sets focus on the current window.
|
|
Sets focus on the current window.
|
|
@throws DOMError
|
|
@throws DOMError
|
|
**/
|
|
**/
|
|
function focus() : Void;
|
|
function focus() : Void;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Sets focus away from the window.
|
|
Sets focus away from the window.
|
|
@throws DOMError
|
|
@throws DOMError
|
|
**/
|
|
**/
|
|
function blur() : Void;
|
|
function blur() : Void;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Opens a new window.
|
|
Opens a new window.
|
|
@throws DOMError
|
|
@throws DOMError
|
|
**/
|
|
**/
|
|
function open( url : String = "", target : String = "", features : String = "" ) : Window;
|
|
function open( url : String = "", target : String = "", features : String = "" ) : Window;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Displays an alert dialog.
|
|
Displays an alert dialog.
|
|
@throws DOMError
|
|
@throws DOMError
|
|
**/
|
|
**/
|
|
@:overload( function() : Void {} )
|
|
@:overload( function() : Void {} )
|
|
function alert( message : String ) : Void;
|
|
function alert( message : String ) : Void;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Displays a dialog with a message that the user needs to respond to.
|
|
Displays a dialog with a message that the user needs to respond to.
|
|
@throws DOMError
|
|
@throws DOMError
|
|
**/
|
|
**/
|
|
function confirm( message : String = "" ) : Bool;
|
|
function confirm( message : String = "" ) : Bool;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Returns the text entered by the user in a prompt dialog.
|
|
Returns the text entered by the user in a prompt dialog.
|
|
@throws DOMError
|
|
@throws DOMError
|
|
**/
|
|
**/
|
|
function prompt( message : String = "", default_ : String = "" ) : String;
|
|
function prompt( message : String = "", default_ : String = "" ) : String;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Opens the Print Dialog to print the current document.
|
|
Opens the Print Dialog to print the current document.
|
|
@throws DOMError
|
|
@throws DOMError
|
|
**/
|
|
**/
|
|
function print() : Void;
|
|
function print() : Void;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
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.
|
|
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.
|
|
@throws DOMError
|
|
@throws DOMError
|
|
**/
|
|
**/
|
|
function postMessage( message : Dynamic, targetOrigin : String, ?transfer : Array<Dynamic> ) : Void;
|
|
function postMessage( message : Dynamic, targetOrigin : String, ?transfer : Array<Dynamic> ) : Void;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Registers the window to capture all events of the specified type.
|
|
Registers the window to capture all events of the specified type.
|
|
**/
|
|
**/
|
|
function captureEvents() : Void;
|
|
function captureEvents() : Void;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Releases the window from trapping events of a specific type.
|
|
Releases the window from trapping events of a specific type.
|
|
**/
|
|
**/
|
|
function releaseEvents() : Void;
|
|
function releaseEvents() : Void;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Returns the selection object representing the selected item(s).
|
|
Returns the selection object representing the selected item(s).
|
|
@throws DOMError
|
|
@throws DOMError
|
|
**/
|
|
**/
|
|
function getSelection() : Selection;
|
|
function getSelection() : Selection;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Gets computed style for the specified element. Computed style indicates the computed values of all CSS properties of the element.
|
|
Gets computed style for the specified element. Computed style indicates the computed values of all CSS properties of the element.
|
|
@throws DOMError
|
|
@throws DOMError
|
|
**/
|
|
**/
|
|
function getComputedStyle( elt : Element, pseudoElt : String = "" ) : CSSStyleDeclaration;
|
|
function getComputedStyle( elt : Element, pseudoElt : String = "" ) : CSSStyleDeclaration;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Returns a `MediaQueryList` object representing the specified media query string.
|
|
Returns a `MediaQueryList` object representing the specified media query string.
|
|
@throws DOMError
|
|
@throws DOMError
|
|
**/
|
|
**/
|
|
function matchMedia( query : String ) : MediaQueryList;
|
|
function matchMedia( query : String ) : MediaQueryList;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Moves the window to the specified coordinates.
|
|
Moves the window to the specified coordinates.
|
|
@throws DOMError
|
|
@throws DOMError
|
|
**/
|
|
**/
|
|
function moveTo( x : Int, y : Int ) : Void;
|
|
function moveTo( x : Int, y : Int ) : Void;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Moves the current window by a specified amount.
|
|
Moves the current window by a specified amount.
|
|
@throws DOMError
|
|
@throws DOMError
|
|
**/
|
|
**/
|
|
function moveBy( x : Int, y : Int ) : Void;
|
|
function moveBy( x : Int, y : Int ) : Void;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Dynamically resizes window.
|
|
Dynamically resizes window.
|
|
@throws DOMError
|
|
@throws DOMError
|
|
**/
|
|
**/
|
|
function resizeTo( x : Int, y : Int ) : Void;
|
|
function resizeTo( x : Int, y : Int ) : Void;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Resizes the current window by a certain amount.
|
|
Resizes the current window by a certain amount.
|
|
@throws DOMError
|
|
@throws DOMError
|
|
**/
|
|
**/
|
|
function resizeBy( x : Int, y : Int ) : Void;
|
|
function resizeBy( x : Int, y : Int ) : Void;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Scrolls the window to a particular place in the document.
|
|
Scrolls the window to a particular place in the document.
|
|
**/
|
|
**/
|
|
@:overload( function( x : Float, y : Float ) : Void {} )
|
|
@:overload( function( x : Float, y : Float ) : Void {} )
|
|
function scroll( ?options : ScrollToOptions ) : Void;
|
|
function scroll( ?options : ScrollToOptions ) : Void;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Scrolls to a particular set of coordinates in the document.
|
|
Scrolls to a particular set of coordinates in the document.
|
|
**/
|
|
**/
|
|
@:overload( function( x : Float, y : Float ) : Void {} )
|
|
@:overload( function( x : Float, y : Float ) : Void {} )
|
|
function scrollTo( ?options : ScrollToOptions ) : Void;
|
|
function scrollTo( ?options : ScrollToOptions ) : Void;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Scrolls the document in the window by the given amount.
|
|
Scrolls the document in the window by the given amount.
|
|
**/
|
|
**/
|
|
@:overload( function( x : Float, y : Float ) : Void {} )
|
|
@:overload( function( x : Float, y : Float ) : Void {} )
|
|
function scrollBy( ?options : ScrollToOptions ) : Void;
|
|
function scrollBy( ?options : ScrollToOptions ) : Void;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Tells the browser that an animation is in progress, requesting that the browser schedule a repaint of the window for the next animation frame.
|
|
Tells the browser that an animation is in progress, requesting that the browser schedule a repaint of the window for the next animation frame.
|
|
@throws DOMError
|
|
@throws DOMError
|
|
**/
|
|
**/
|
|
function requestAnimationFrame( callback : Float -> Void ) : Int;
|
|
function requestAnimationFrame( callback : Float -> Void ) : Int;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Enables you to cancel a callback previously scheduled with `Window.requestAnimationFrame`.
|
|
Enables you to cancel a callback previously scheduled with `Window.requestAnimationFrame`.
|
|
@throws DOMError
|
|
@throws DOMError
|
|
**/
|
|
**/
|
|
function cancelAnimationFrame( handle : Int ) : Void;
|
|
function cancelAnimationFrame( handle : Int ) : Void;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Gets default computed style for the specified element, ignoring author stylesheets.
|
|
Gets default computed style for the specified element, ignoring author stylesheets.
|
|
@throws DOMError
|
|
@throws DOMError
|
|
**/
|
|
**/
|
|
function getDefaultComputedStyle( elt : Element, pseudoElt : String = "" ) : CSSStyleDeclaration;
|
|
function getDefaultComputedStyle( elt : Element, pseudoElt : String = "" ) : CSSStyleDeclaration;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Scrolls the document by the given number of lines.
|
|
Scrolls the document by the given number of lines.
|
|
**/
|
|
**/
|
|
function scrollByLines( numLines : Int, ?options : ScrollOptions ) : Void;
|
|
function scrollByLines( numLines : Int, ?options : ScrollOptions ) : Void;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Scrolls the current document by the specified number of pages.
|
|
Scrolls the current document by the specified number of pages.
|
|
**/
|
|
**/
|
|
function scrollByPages( numPages : Int, ?options : ScrollOptions ) : Void;
|
|
function scrollByPages( numPages : Int, ?options : ScrollOptions ) : Void;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Sizes the window according to its content.
|
|
Sizes the window according to its content.
|
|
@throws DOMError
|
|
@throws DOMError
|
|
**/
|
|
**/
|
|
function sizeToContent() : Void;
|
|
function sizeToContent() : Void;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Updates the state of commands of the current chrome window (UI).
|
|
Updates the state of commands of the current chrome window (UI).
|
|
**/
|
|
**/
|
|
function updateCommands( action : String, ?sel : Selection, reason : Int = 0 ) : Void;
|
|
function updateCommands( action : String, ?sel : Selection, reason : Int = 0 ) : Void;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Searches for a given string in a window.
|
|
Searches for a given string in a window.
|
|
@throws DOMError
|
|
@throws DOMError
|
|
**/
|
|
**/
|
|
function find( str : String = "", caseSensitive : Bool = false, backwards : Bool = false, wrapAround : Bool = false, wholeWord : Bool = false, searchInFrames : Bool = false, showDialog : Bool = false ) : Bool;
|
|
function find( str : String = "", caseSensitive : Bool = false, backwards : Bool = false, wrapAround : Bool = false, wholeWord : Bool = false, searchInFrames : Bool = false, showDialog : Bool = false ) : Bool;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Writes a message to the console.
|
|
Writes a message to the console.
|
|
**/
|
|
**/
|
|
function dump( str : String ) : Void;
|
|
function dump( str : String ) : Void;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
Toggles a user's ability to resize a window.
|
|
Toggles a user's ability to resize a window.
|
|
**/
|
|
**/
|