diff options
author | Andreas Kling <kling@serenityos.org> | 2020-05-05 22:42:21 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-05 22:42:21 +0200 |
commit | f32989a3e71ee665f084f2f3887969d57fef335a (patch) | |
tree | f01d8a063019aea33eed5d7129360e10c2cae0ef /Libraries/LibWeb/HtmlView.h | |
parent | 1061127ca77ccaec436b1b9f55899a243539a55e (diff) | |
download | serenity-f32989a3e71ee665f084f2f3887969d57fef335a.zip |
LibWeb: Add hook when context menu is requested by right-clicking link
Diffstat (limited to 'Libraries/LibWeb/HtmlView.h')
-rw-r--r-- | Libraries/LibWeb/HtmlView.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Libraries/LibWeb/HtmlView.h b/Libraries/LibWeb/HtmlView.h index 7c6c37bdad..6c47830bda 100644 --- a/Libraries/LibWeb/HtmlView.h +++ b/Libraries/LibWeb/HtmlView.h @@ -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; |