mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibWebView+WebContent: Add an IPC hook to insert data into the clipboard
This commit is contained in:
parent
4b94b0b561
commit
306850652f
Notes:
sideshowbarker
2024-07-17 18:08:55 +09:00
Author: https://github.com/trflynn89
Commit: 306850652f
Pull-request: https://github.com/SerenityOS/serenity/pull/21878
6 changed files with 15 additions and 0 deletions
|
@ -402,4 +402,10 @@ void WebContentClient::did_change_theme_color(Gfx::Color color)
|
|||
m_view.on_theme_color_change(color);
|
||||
}
|
||||
|
||||
void WebContentClient::did_insert_clipboard_entry(String const& data, String const& presentation_style, String const& mime_type)
|
||||
{
|
||||
if (m_view.on_insert_clipboard_entry)
|
||||
m_view.on_insert_clipboard_entry(data, presentation_style, mime_type);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue