diff options
author | Karol Kosek <krkk@serenityos.org> | 2022-06-14 19:38:32 +0200 |
---|---|---|
committer | Sam Atkins <atkinssj@gmail.com> | 2022-06-20 12:55:50 +0100 |
commit | 03cda8a01304396f17df459a7a6e2c360b57944a (patch) | |
tree | d0b1d9f40ca78c791c10d49c3c43d9ae74e90b15 /Userland/Services | |
parent | 0e045326238c0ecbb5d3a6dc06c454dd668b949f (diff) | |
download | serenity-03cda8a01304396f17df459a7a6e2c360b57944a.zip |
LibWeb+LibWebView+WebContent: Get doubleclick events from LibGUI
Diffstat (limited to 'Userland/Services')
-rw-r--r-- | Userland/Services/WebContent/ConnectionFromClient.cpp | 5 | ||||
-rw-r--r-- | Userland/Services/WebContent/ConnectionFromClient.h | 1 | ||||
-rw-r--r-- | Userland/Services/WebContent/WebContentServer.ipc | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/Userland/Services/WebContent/ConnectionFromClient.cpp b/Userland/Services/WebContent/ConnectionFromClient.cpp index 89f7620de7..89f03fa9ea 100644 --- a/Userland/Services/WebContent/ConnectionFromClient.cpp +++ b/Userland/Services/WebContent/ConnectionFromClient.cpp @@ -163,6 +163,11 @@ void ConnectionFromClient::mouse_wheel(Gfx::IntPoint const& position, unsigned i page().handle_mousewheel(position, button, modifiers, wheel_delta_x, wheel_delta_y); } +void ConnectionFromClient::doubleclick(Gfx::IntPoint const& position, unsigned int button, [[maybe_unused]] unsigned int buttons, unsigned int modifiers) +{ + page().handle_doubleclick(position, button, modifiers); +} + void ConnectionFromClient::key_down(i32 key, unsigned int modifiers, u32 code_point) { page().handle_keydown((KeyCode)key, modifiers, code_point); diff --git a/Userland/Services/WebContent/ConnectionFromClient.h b/Userland/Services/WebContent/ConnectionFromClient.h index a9e1535220..943e4ff359 100644 --- a/Userland/Services/WebContent/ConnectionFromClient.h +++ b/Userland/Services/WebContent/ConnectionFromClient.h @@ -48,6 +48,7 @@ private: virtual void mouse_move(Gfx::IntPoint const&, unsigned, unsigned, unsigned) override; virtual void mouse_up(Gfx::IntPoint const&, unsigned, unsigned, unsigned) override; virtual void mouse_wheel(Gfx::IntPoint const&, unsigned, unsigned, unsigned, i32, i32) override; + virtual void doubleclick(Gfx::IntPoint const&, unsigned, unsigned, unsigned) override; virtual void key_down(i32, unsigned, u32) override; virtual void key_up(i32, unsigned, u32) override; virtual void add_backing_store(i32, Gfx::ShareableBitmap const&) override; diff --git a/Userland/Services/WebContent/WebContentServer.ipc b/Userland/Services/WebContent/WebContentServer.ipc index dca0221d36..418c33a32d 100644 --- a/Userland/Services/WebContent/WebContentServer.ipc +++ b/Userland/Services/WebContent/WebContentServer.ipc @@ -23,6 +23,7 @@ endpoint WebContentServer mouse_move(Gfx::IntPoint position, unsigned button, unsigned buttons, unsigned modifiers) =| mouse_up(Gfx::IntPoint position, unsigned button, unsigned buttons, unsigned modifiers) =| mouse_wheel(Gfx::IntPoint position, unsigned button, unsigned buttons, unsigned modifiers, i32 wheel_delta_x, i32 wheel_delta_y) =| + doubleclick(Gfx::IntPoint position, unsigned button, unsigned buttons, unsigned modifiers) =| key_down(i32 key, unsigned modifiers, u32 code_point) =| key_up(i32 key, unsigned modifiers, u32 code_point) =| |