mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
async clipboard: implement readText
(#36689)
part of #36084 Testing: Only idl harness tests will pass for now --------- Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
This commit is contained in:
parent
348eede37b
commit
5b913441d4
5 changed files with 151 additions and 13 deletions
|
@ -29,13 +29,13 @@ const CUSTOM_FORMAT_PREFIX: &str = "web ";
|
|||
|
||||
/// <https://w3c.github.io/clipboard-apis/#representation>
|
||||
#[derive(JSTraceable, MallocSizeOf)]
|
||||
struct Representation {
|
||||
pub(super) struct Representation {
|
||||
#[no_trace]
|
||||
#[ignore_malloc_size_of = "Extern type"]
|
||||
mime_type: Mime,
|
||||
is_custom: bool,
|
||||
pub mime_type: Mime,
|
||||
pub is_custom: bool,
|
||||
#[ignore_malloc_size_of = "Rc is hard"]
|
||||
data: Rc<Promise>,
|
||||
pub data: Rc<Promise>,
|
||||
}
|
||||
|
||||
#[dom_struct]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue