mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-06 16:19:23 +00:00
LibWeb: Add Web::UIEvents::MouseButton enum, drop dependency on LibGUI
This was the only thing LibWeb needed from LibGUI, and we can just duplicate the enum in LibWeb and get rid of a bogus dependency.
This commit is contained in:
parent
3e46874858
commit
09980af4ea
Notes:
sideshowbarker
2024-07-16 20:08:14 +09:00
Author: https://github.com/awesomekling
Commit: 09980af4ea
Pull-request: https://github.com/SerenityOS/serenity/pull/24526
21 changed files with 86 additions and 67 deletions
|
@ -63,8 +63,8 @@ ErrorOr<Web::MouseEvent> IPC::decode(Decoder& decoder)
|
|||
auto type = TRY(decoder.decode<Web::MouseEvent::Type>());
|
||||
auto position = TRY(decoder.decode<Web::DevicePixelPoint>());
|
||||
auto screen_position = TRY(decoder.decode<Web::DevicePixelPoint>());
|
||||
auto button = TRY(decoder.decode<GUI::MouseButton>());
|
||||
auto buttons = TRY(decoder.decode<GUI::MouseButton>());
|
||||
auto button = TRY(decoder.decode<Web::UIEvents::MouseButton>());
|
||||
auto buttons = TRY(decoder.decode<Web::UIEvents::MouseButton>());
|
||||
auto modifiers = TRY(decoder.decode<KeyModifier>());
|
||||
auto wheel_delta_x = TRY(decoder.decode<int>());
|
||||
auto wheel_delta_y = TRY(decoder.decode<int>());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue