summaryrefslogtreecommitdiff
path: root/Libraries/LibWeb/HtmlView.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-05-05 22:42:21 +0200
committerAndreas Kling <kling@serenityos.org>2020-05-05 22:42:21 +0200
commitf32989a3e71ee665f084f2f3887969d57fef335a (patch)
treef01d8a063019aea33eed5d7129360e10c2cae0ef /Libraries/LibWeb/HtmlView.h
parent1061127ca77ccaec436b1b9f55899a243539a55e (diff)
downloadserenity-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.h1
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;