forked from LeenkxTeam/LNXSDK
Update
This commit is contained in:
@ -0,0 +1,34 @@
|
||||
package js.html;
|
||||
|
||||
import js.lib.Promise;
|
||||
|
||||
/**
|
||||
The `BeforeInstallPromptEvent` is fired at the `Window.onbeforeinstallprompt` handler,
|
||||
before a user is prompted to install a web site to a home screen.
|
||||
|
||||
@see https://developer.mozilla.org/en-US/docs/Web/API/BeforeInstallPromptEvent
|
||||
**/
|
||||
@:native("BeforeInstallPromptEvent")
|
||||
extern class BeforeInstallPromptEvent extends Event {
|
||||
|
||||
/** The platforms on which this event was dispatched. **/
|
||||
final platforms: Array<String>;
|
||||
|
||||
/** The user's choice to the install prompt. **/
|
||||
final userChoice: Promise<BeforeInstallPromptUserChoice>;
|
||||
|
||||
/** Creates a new `BeforeInstallPromptEvent`. **/
|
||||
function new();
|
||||
|
||||
/** Shows the install prompt. **/
|
||||
function prompt(): Promise<Dynamic>;
|
||||
}
|
||||
|
||||
typedef BeforeInstallPromptUserChoice = {
|
||||
final outcome: BeforeInstallPromptUserChoiceOutcome;
|
||||
}
|
||||
|
||||
enum abstract BeforeInstallPromptUserChoiceOutcome(String) {
|
||||
var Accepted = "accepted";
|
||||
var Dismissed = "dismissed";
|
||||
}
|
||||
@ -391,7 +391,6 @@ extern class DOMElement extends Node {
|
||||
Inserts a given element node at a given position relative to the element it is invoked upon.
|
||||
@throws DOMError
|
||||
**/
|
||||
@:pure
|
||||
function insertAdjacentElement( where : String, element : Element ) : Element;
|
||||
|
||||
/**
|
||||
@ -504,8 +503,8 @@ extern class DOMElement extends Node {
|
||||
Asynchronously asks the browser to make the element full-screen.
|
||||
@throws DOMError
|
||||
**/
|
||||
function requestFullscreen() : Void;
|
||||
|
||||
function requestFullscreen(?options: FullscreenOptions) : js.lib.Promise<Void>;
|
||||
|
||||
/**
|
||||
Allows to asynchronously ask for the pointer to be locked on the given element.
|
||||
**/
|
||||
@ -550,4 +549,4 @@ extern class DOMElement extends Node {
|
||||
/** @throws DOMError */
|
||||
@:overload( function( nodes : haxe.extern.Rest<String>) : Void {} )
|
||||
function append( nodes : haxe.extern.Rest<Node> ) : Void;
|
||||
}
|
||||
}
|
||||
|
||||
60
Kha/Tools/windows_x64/std/js/html/DialogElement.hx
Normal file
60
Kha/Tools/windows_x64/std/js/html/DialogElement.hx
Normal file
@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright (C)2005-2022 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
package js.html;
|
||||
|
||||
/**
|
||||
The `HTMLDialogElement` interface provides methods to manipulate `<dialog>` elements.
|
||||
It inherits properties and methods from the `HTMLElement` interface.
|
||||
|
||||
@see <https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement>
|
||||
**/
|
||||
@:native("HTMLDialogElement")
|
||||
extern class DialogElement extends Element {
|
||||
|
||||
/**
|
||||
A `Boolean` reflecting the open HTML attribute, indicating whether the dialog is available for interaction.
|
||||
**/
|
||||
var open: Bool;
|
||||
|
||||
/**
|
||||
A `DOMString` that sets or returns the return value for the dialog.
|
||||
**/
|
||||
var returnValue: String;
|
||||
|
||||
/**
|
||||
Closes the dialog.
|
||||
An optional `DOMString` may be passed as an argument, updating the `returnValue` of the the dialog.
|
||||
**/
|
||||
function close(?returnValue: String): Void;
|
||||
|
||||
/**
|
||||
Displays the dialog modelessly, i.e. still allowing interaction with content outside of the dialog.
|
||||
**/
|
||||
function show(): Void;
|
||||
|
||||
/**
|
||||
Displays the dialog as a modal, over the top of any other dialogs that might be present.
|
||||
Interaction outside the dialog is blocked.
|
||||
**/
|
||||
function showModal(): Void;
|
||||
}
|
||||
@ -510,8 +510,13 @@ extern class Document extends Node {
|
||||
Releases the current mouse capture if it's on an element in this document.
|
||||
**/
|
||||
function releaseCapture() : Void;
|
||||
function exitFullscreen() : Void;
|
||||
|
||||
|
||||
/**
|
||||
Requests that the element on this document which is currently being presented in fullscreen mode
|
||||
be taken out of fullscreen mode, restoring the previous state of the screen.
|
||||
**/
|
||||
function exitFullscreen() : js.lib.Promise<Void>;
|
||||
|
||||
/**
|
||||
Release the pointer lock.
|
||||
**/
|
||||
|
||||
40
Kha/Tools/windows_x64/std/js/html/FullscreenOptions.hx
Normal file
40
Kha/Tools/windows_x64/std/js/html/FullscreenOptions.hx
Normal file
@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright (C)2005-2022 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
package js.html;
|
||||
|
||||
/**
|
||||
An object that controls the behavior of the transition to fullscreen mode.
|
||||
**/
|
||||
typedef FullscreenOptions = {
|
||||
|
||||
/**
|
||||
Controls whether or not to show navigation UI while the element is in fullscreen mode.
|
||||
**/
|
||||
var ?navigationUI: FullscreenOptionsNavigationUI;
|
||||
}
|
||||
|
||||
enum abstract FullscreenOptionsNavigationUI(String) {
|
||||
var Auto = "auto";
|
||||
var Hide = "hide";
|
||||
var Show = "show";
|
||||
}
|
||||
@ -192,5 +192,6 @@ extern class HTMLDocument extends Document {
|
||||
inline function createTableRowElement() : TableRowElement { return cast createElement("tr"); }
|
||||
/** Shorthand for creating an HTML `<html>` element. */
|
||||
inline function createHtmlElement() : HtmlElement { return cast createElement("html"); }
|
||||
|
||||
}
|
||||
/** Shorthand for creating an HTML `<dialog>` element. */
|
||||
inline function createDialoglElement() : DialogElement { return cast createElement("dialog"); }
|
||||
}
|
||||
|
||||
@ -20,8 +20,6 @@
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\Window.webidl. Do not edit!
|
||||
|
||||
package js.html;
|
||||
|
||||
import js.lib.Promise;
|
||||
@ -559,6 +557,11 @@ extern class Window extends EventTarget {
|
||||
**/
|
||||
function dump( str : String ) : Void;
|
||||
|
||||
/**
|
||||
Creates a deep clone of a given value using the structured clone algorithm.
|
||||
**/
|
||||
function structuredClone<T>(value: T, ?options: {transfer: Array<Any>}): T;
|
||||
|
||||
/**
|
||||
Toggles a user's ability to resize a window.
|
||||
**/
|
||||
|
||||
@ -20,8 +20,6 @@
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\WorkerGlobalScope.webidl. Do not edit!
|
||||
|
||||
package js.html;
|
||||
|
||||
import js.lib.Promise;
|
||||
@ -83,6 +81,12 @@ extern class WorkerGlobalScope extends EventTarget {
|
||||
Allows you to write a message to stdout — i.e. in your terminal. This is the same as Firefox's `window.dump`, but for workers.
|
||||
**/
|
||||
function dump( ?str : String ) : Void;
|
||||
|
||||
/**
|
||||
Creates a deep clone of a given value using the structured clone algorithm.
|
||||
**/
|
||||
function structuredClone<T>(value: T, ?options: {transfer: Array<Any>}): T;
|
||||
|
||||
/** @throws DOMError */
|
||||
function btoa( btoa : String ) : String;
|
||||
/** @throws DOMError */
|
||||
|
||||
Reference in New Issue
Block a user