mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 09:39:39 +00:00
LibWeb: Implement navigator.clipboard.read
This commit is contained in:
parent
a4e9a27343
commit
912009f6b3
Notes:
github-actions[bot]
2025-05-02 21:47:14 +00:00
Author: https://github.com/trflynn89
Commit: 912009f6b3
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4548
Reviewed-by: https://github.com/shannonbooth
5 changed files with 163 additions and 1 deletions
|
@ -89,6 +89,12 @@ WebIDL::ExceptionOr<GC::Ref<ClipboardItem>> ClipboardItem::construct_impl(JS::Re
|
|||
return clipboard_item;
|
||||
}
|
||||
|
||||
void ClipboardItem::append_representation(Representation representation)
|
||||
{
|
||||
m_types.append(representation.mime_type);
|
||||
m_representations.append(move(representation));
|
||||
}
|
||||
|
||||
// https://w3c.github.io/clipboard-apis/#dom-clipboarditem-gettype
|
||||
WebIDL::ExceptionOr<GC::Ref<WebIDL::Promise>> ClipboardItem::get_type(String const& type)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue