summaryrefslogtreecommitdiff
path: root/Libraries/LibWeb/HtmlView.h
diff options
context:
space:
mode:
authorFalseHonesty <thefalsehonesty@gmail.com>2020-05-23 13:03:13 -0400
committerAndreas Kling <kling@serenityos.org>2020-05-24 02:20:08 +0200
commit51e79a2bbcd1652d1980df301a72da72ee82f175 (patch)
treebc0d338a821cdbf1d533e7b3256ac483ab68ff70 /Libraries/LibWeb/HtmlView.h
parent391237a8e1dcd4467702977b51f23adf3a9e640d (diff)
downloadserenity-51e79a2bbcd1652d1980df301a72da72ee82f175.zip
LibWeb: Add hook to HtmlView when a new document is set
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 4804a12087..649535227e 100644
--- a/Libraries/LibWeb/HtmlView.h
+++ b/Libraries/LibWeb/HtmlView.h
@@ -65,6 +65,7 @@ public:
Function<void(const URL&)> on_load_start;
Function<void(const Gfx::Bitmap&)> on_favicon_change;
Function<void(const URL&)> on_url_drop;
+ Function<void(Document*)> on_set_document;
virtual bool accepts_focus() const override { return true; }