Skip to content

Commit

Permalink
Update and stablize the Clipboard API
Browse files Browse the repository at this point in the history
  • Loading branch information
evilpie committed Jun 18, 2024
1 parent dd50433 commit 4343264
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 343 deletions.
5 changes: 0 additions & 5 deletions crates/web-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,8 @@ ClientQueryOptions = []
ClientRectsAndTexts = []
ClientType = []
Clients = []
Clipboard = ["EventTarget"]
ClipboardEvent = ["Event"]
ClipboardEventInit = []
ClipboardItem = []
ClipboardItemOptions = []
ClipboardPermissionDescriptor = []
CloseEvent = ["Event"]
CloseEventInit = []
CodecState = []
Expand Down Expand Up @@ -987,7 +983,6 @@ PresentationConnectionList = ["EventTarget"]
PresentationConnectionState = []
PresentationReceiver = []
PresentationRequest = ["EventTarget"]
PresentationStyle = []
ProcessingInstruction = ["CharacterData", "EventTarget", "Node"]
ProfileTimelineLayerRect = []
ProfileTimelineMarker = []
Expand Down
63 changes: 0 additions & 63 deletions crates/web-sys/src/features/gen_Clipboard.rs

This file was deleted.

75 changes: 0 additions & 75 deletions crates/web-sys/src/features/gen_ClipboardItem.rs

This file was deleted.

52 changes: 0 additions & 52 deletions crates/web-sys/src/features/gen_ClipboardItemOptions.rs

This file was deleted.

61 changes: 0 additions & 61 deletions crates/web-sys/src/features/gen_ClipboardPermissionDescriptor.rs

This file was deleted.

12 changes: 0 additions & 12 deletions crates/web-sys/src/features/gen_Navigator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,18 +126,6 @@ extern "C" {
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn bluetooth(this: &Navigator) -> Option<Bluetooth>;
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "Clipboard")]
# [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = clipboard)]
#[doc = "Getter for the `clipboard` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/clipboard)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Clipboard`, `Navigator`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn clipboard(this: &Navigator) -> Option<Clipboard>;
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "MediaSession")]
# [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = mediaSession)]
#[doc = "Getter for the `mediaSession` field of this object."]
Expand Down
17 changes: 0 additions & 17 deletions crates/web-sys/src/features/gen_PresentationStyle.rs

This file was deleted.

35 changes: 0 additions & 35 deletions crates/web-sys/src/features/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1097,13 +1097,6 @@ mod gen_Clients;
#[allow(unused_imports)]
pub use gen_Clients::*;

#[cfg(feature = "Clipboard")]
#[allow(non_snake_case)]
mod gen_Clipboard;
#[cfg(feature = "Clipboard")]
#[allow(unused_imports)]
pub use gen_Clipboard::*;

#[cfg(feature = "ClipboardEvent")]
#[allow(non_snake_case)]
mod gen_ClipboardEvent;
Expand All @@ -1118,27 +1111,6 @@ mod gen_ClipboardEventInit;
#[allow(unused_imports)]
pub use gen_ClipboardEventInit::*;

#[cfg(feature = "ClipboardItem")]
#[allow(non_snake_case)]
mod gen_ClipboardItem;
#[cfg(feature = "ClipboardItem")]
#[allow(unused_imports)]
pub use gen_ClipboardItem::*;

#[cfg(feature = "ClipboardItemOptions")]
#[allow(non_snake_case)]
mod gen_ClipboardItemOptions;
#[cfg(feature = "ClipboardItemOptions")]
#[allow(unused_imports)]
pub use gen_ClipboardItemOptions::*;

#[cfg(feature = "ClipboardPermissionDescriptor")]
#[allow(non_snake_case)]
mod gen_ClipboardPermissionDescriptor;
#[cfg(feature = "ClipboardPermissionDescriptor")]
#[allow(unused_imports)]
pub use gen_ClipboardPermissionDescriptor::*;

#[cfg(feature = "CloseEvent")]
#[allow(non_snake_case)]
mod gen_CloseEvent;
Expand Down Expand Up @@ -6690,13 +6662,6 @@ mod gen_PresentationRequest;
#[allow(unused_imports)]
pub use gen_PresentationRequest::*;

#[cfg(feature = "PresentationStyle")]
#[allow(non_snake_case)]
mod gen_PresentationStyle;
#[cfg(feature = "PresentationStyle")]
#[allow(unused_imports)]
pub use gen_PresentationStyle::*;

#[cfg(feature = "ProcessingInstruction")]
#[allow(non_snake_case)]
mod gen_ProcessingInstruction;
Expand Down
Loading

0 comments on commit 4343264

Please sign in to comment.