mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-24 00:49:46 +00:00
LibWebView+UI: Move clipboard handling from the WebView to the App
Clipboard handling largely has nothing to do with the individual web views. Rather, we interact with the system clipboard at the application level. So let's move these implementations to the Application.
This commit is contained in:
parent
4f31e492e7
commit
ca082d6d73
Notes:
github-actions[bot]
2025-09-19 10:39:59 +00:00
Author: https://github.com/trflynn89
Commit: ca082d6d73
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6228
15 changed files with 131 additions and 145 deletions
|
|
@ -130,7 +130,6 @@ public:
|
|||
void file_picker_closed(Vector<Web::HTML::SelectedFile> selected_files);
|
||||
void select_dropdown_closed(Optional<u32> const& selected_item_id);
|
||||
|
||||
void insert_text_into_clipboard(ByteString) const;
|
||||
void paste_text_from_clipboard();
|
||||
void retrieved_clipboard_entries(u64 request_id, ReadonlySpan<Web::Clipboard::SystemClipboardItem>);
|
||||
|
||||
|
|
@ -217,9 +216,6 @@ public:
|
|||
Function<void(JsonValue)> on_reference_test_metadata;
|
||||
Function<void(size_t current_match_index, Optional<size_t> const& total_match_count)> on_find_in_page;
|
||||
Function<void(Gfx::Color)> on_theme_color_change;
|
||||
Function<void(Web::Clipboard::SystemClipboardRepresentation, String const&)> on_insert_clipboard_entry;
|
||||
Function<String()> on_request_clipboard_text;
|
||||
Function<void(u64 request_id)> on_request_clipboard_entries;
|
||||
Function<void(Web::HTML::AudioPlayState)> on_audio_play_state_changed;
|
||||
Function<void()> on_web_content_crashed;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue