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
parent 4bb9168712
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

@@ -82,7 +82,7 @@ struct DragEvent {
OwnPtr<ChromeInputData> chrome_data;
};
using InputEvent = Variant<KeyEvent, MouseEvent>;
using InputEvent = Variant<KeyEvent, MouseEvent, DragEvent>;
}
@@ -100,4 +100,10 @@ ErrorOr<void> encode(Encoder&, Web::MouseEvent const&);
template<>
ErrorOr<Web::MouseEvent> decode(Decoder&);
template<>
ErrorOr<void> encode(Encoder&, Web::DragEvent const&);
template<>
ErrorOr<Web::DragEvent> decode(Decoder&);
}