1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 00:37:34 +00:00

LibWeb: Add hook when context menu is requested by right-clicking link

This commit is contained in:
Andreas Kling 2020-05-05 22:42:21 +02:00
parent 1061127ca7
commit f32989a3e7
2 changed files with 11 additions and 5 deletions

View file

@ -58,6 +58,7 @@ public:
void set_should_show_line_box_borders(bool value) { m_should_show_line_box_borders = value; }
Function<void(const String& href, const String& target, unsigned modifiers)> on_link_click;
Function<void(const String& href, const Gfx::Point& screen_position)> on_link_context_menu_request;
Function<void(const String&)> on_link_hover;
Function<void(const String&)> on_title_change;
Function<void(const URL&)> on_load_start;