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:
Gae24 2025-05-07 17:11:37 +02:00 committed by GitHub
parent 348eede37b
commit 5b913441d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 151 additions and 13 deletions

View file

@ -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]