mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
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:
committed by
Andreas Kling
parent
4bb9168712
commit
948b6de3b1
Notes:
github-actions[bot]
2024-08-19 11:30:20 +00:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/948b6de3b12 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1111
@@ -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&);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user