-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#![allow(unused_imports)] | ||
#![allow(clippy::all)] | ||
use super::*; | ||
use wasm_bindgen::prelude::*; | ||
#[wasm_bindgen] | ||
extern "C" { | ||
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = UserActivation , typescript_type = "UserActivation")] | ||
#[derive(Debug, Clone, PartialEq, Eq)] | ||
#[doc = "The `UserActivation` class."] | ||
#[doc = ""] | ||
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UserActivation)"] | ||
#[doc = ""] | ||
#[doc = "*This API requires the following crate features to be activated: `UserActivation`*"] | ||
pub type UserActivation; | ||
# [wasm_bindgen (structural , method , getter , js_class = "UserActivation" , js_name = hasBeenActive)] | ||
#[doc = "Getter for the `hasBeenActive` field of this object."] | ||
#[doc = ""] | ||
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UserActivation/hasBeenActive)"] | ||
#[doc = ""] | ||
#[doc = "*This API requires the following crate features to be activated: `UserActivation`*"] | ||
pub fn has_been_active(this: &UserActivation) -> bool; | ||
# [wasm_bindgen (structural , method , getter , js_class = "UserActivation" , js_name = isActive)] | ||
#[doc = "Getter for the `isActive` field of this object."] | ||
#[doc = ""] | ||
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UserActivation/isActive)"] | ||
#[doc = ""] | ||
#[doc = "*This API requires the following crate features to be activated: `UserActivation`*"] | ||
pub fn is_active(this: &UserActivation) -> bool; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[Exposed=Window] | ||
interface UserActivation { | ||
readonly attribute boolean hasBeenActive; | ||
readonly attribute boolean isActive; | ||
}; | ||
|
||
partial interface Navigator { | ||
[SameObject] readonly attribute UserActivation userActivation; | ||
}; |