LibWeb+LibWebView+WebContent: Add IPC to send drag-and-drop events

This adds the IPC and related hooks to allow the UI to send drag-and-
drop events from the UI process to the WebContent process.
This commit is contained in:
Timothy Flynn 2024-08-17 13:36:28 -04:00 committed by Andreas Kling
commit 948b6de3b1
Notes: github-actions[bot] 2024-08-19 11:30:20 +00:00
7 changed files with 65 additions and 8 deletions

View file

@ -203,6 +203,7 @@ public:
Function<void(Web::HTML::FileFilter const& accepted_file_types, Web::HTML::AllowMultipleFiles)> on_request_file_picker;
Function<void(Gfx::IntPoint content_position, i32 minimum_width, Vector<Web::HTML::SelectItem> items)> on_request_select_dropdown;
Function<void(Web::KeyEvent const&)> on_finish_handling_key_event;
Function<void(Web::DragEvent const&)> on_finish_handling_drag_event;
Function<void()> on_text_test_finish;
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;