mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:37:35 +00:00
Ladybird: Handle close event in WebContentView
This commit is contained in:
parent
cc41233be4
commit
59752807c4
3 changed files with 7 additions and 0 deletions
|
@ -49,6 +49,7 @@ public:
|
|||
explicit WebContentView(StringView webdriver_content_ipc_path);
|
||||
virtual ~WebContentView() override;
|
||||
|
||||
Function<void()> on_close;
|
||||
Function<void(Gfx::IntPoint screen_position)> on_context_menu_request;
|
||||
Function<void(const AK::URL&, DeprecatedString const& target, unsigned modifiers)> on_link_click;
|
||||
Function<void(const AK::URL&, Gfx::IntPoint screen_position)> on_link_context_menu_request;
|
||||
|
@ -154,6 +155,7 @@ public:
|
|||
virtual void notify_server_did_finish_handling_input_event(bool event_was_accepted) override;
|
||||
|
||||
signals:
|
||||
void close();
|
||||
void link_hovered(QString, int timeout = 0);
|
||||
void link_unhovered();
|
||||
void back_mouse_button();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue