mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 08:47:34 +00:00
LibWebView+WebContent: Add an IPC hook to insert data into the clipboard
This commit is contained in:
parent
4b94b0b561
commit
306850652f
6 changed files with 15 additions and 0 deletions
|
@ -499,4 +499,9 @@ void PageHost::page_did_change_theme_color(Gfx::Color color)
|
|||
m_client.async_did_change_theme_color(color);
|
||||
}
|
||||
|
||||
void PageHost::page_did_insert_clipboard_entry(String data, String presentation_style, String mime_type)
|
||||
{
|
||||
m_client.async_did_insert_clipboard_entry(move(data), move(presentation_style), move(mime_type));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -120,6 +120,7 @@ private:
|
|||
virtual void page_did_request_color_picker(Color current_color) override;
|
||||
virtual void page_did_finish_text_test() override;
|
||||
virtual void page_did_change_theme_color(Gfx::Color color) override;
|
||||
virtual void page_did_insert_clipboard_entry(String data, String presentation_style, String mime_type) override;
|
||||
|
||||
explicit PageHost(ConnectionFromClient&);
|
||||
|
||||
|
|
|
@ -63,6 +63,7 @@ endpoint WebContentClient
|
|||
did_request_color_picker(Color current_color) =|
|
||||
did_finish_handling_input_event(bool event_was_accepted) =|
|
||||
did_change_theme_color(Gfx::Color color) =|
|
||||
did_insert_clipboard_entry(String data, String presentation_style, String mime_type) =|
|
||||
|
||||
did_output_js_console_message(i32 message_index) =|
|
||||
did_get_js_console_messages(i32 start_index, Vector<DeprecatedString> message_types, Vector<DeprecatedString> messages) =|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue