mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
LibWeb+LibWebVew+WebContent+UI: Add IPC to retrieve the system clipboard
We currently have a single IPC to set clipboard data. We will also need an IPC to retrieve that data from the UI. This defines system clipboard data in LibWeb to handle this transfer, and adds the IPC to provide it.
This commit is contained in:
parent
5fb5066e89
commit
61c0f67c8c
Notes:
github-actions[bot]
2025-05-02 21:47:42 +00:00
Author: https://github.com/trflynn89
Commit: 61c0f67c8c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4548
Reviewed-by: https://github.com/shannonbooth
23 changed files with 255 additions and 28 deletions
|
@ -649,9 +649,14 @@ void PageClient::page_did_change_theme_color(Gfx::Color color)
|
|||
client().async_did_change_theme_color(m_id, color);
|
||||
}
|
||||
|
||||
void PageClient::page_did_insert_clipboard_entry(StringView data, StringView presentation_style, StringView mime_type)
|
||||
void PageClient::page_did_insert_clipboard_entry(Web::Clipboard::SystemClipboardRepresentation const& entry, StringView presentation_style)
|
||||
{
|
||||
client().async_did_insert_clipboard_entry(m_id, data, presentation_style, mime_type);
|
||||
client().async_did_insert_clipboard_entry(m_id, entry, presentation_style);
|
||||
}
|
||||
|
||||
void PageClient::page_did_request_clipboard_entries(u64 request_id)
|
||||
{
|
||||
client().async_did_request_clipboard_entries(m_id, request_id);
|
||||
}
|
||||
|
||||
void PageClient::page_did_change_audio_play_state(Web::HTML::AudioPlayState play_state)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue