diff options
author | Andreas Kling <kling@serenityos.org> | 2020-12-08 21:44:42 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-12-08 23:36:19 +0100 |
commit | eda9fb13cc96f9b2885f96c4b525907f5acd7582 (patch) | |
tree | eefbe5c14d5bb23dfead715d728e0ca083522813 /Libraries/LibWeb/WebViewHooks.h | |
parent | 52dbdf42455b27b05935f9c0f024e462718237c2 (diff) | |
download | serenity-eda9fb13cc96f9b2885f96c4b525907f5acd7582.zip |
LibWeb+WebContent: Add on_load_finish hook to web views
This isn't entirely symmetrical with on_load_start as it will also fire
on reloads and back/forward navigations. However, it's good enough for
some basic use cases, and we can do more sophisticated notifications
later on when we need them.
Diffstat (limited to 'Libraries/LibWeb/WebViewHooks.h')
-rw-r--r-- | Libraries/LibWeb/WebViewHooks.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Libraries/LibWeb/WebViewHooks.h b/Libraries/LibWeb/WebViewHooks.h index d93655bcea..198526e019 100644 --- a/Libraries/LibWeb/WebViewHooks.h +++ b/Libraries/LibWeb/WebViewHooks.h @@ -42,6 +42,7 @@ public: Function<void(const URL&)> on_link_hover; Function<void(const String&)> on_title_change; Function<void(const URL&)> on_load_start; + Function<void(const URL&)> on_load_finish; Function<void(const Gfx::Bitmap&)> on_favicon_change; Function<void(const URL&)> on_url_drop; Function<void(DOM::Document*)> on_set_document; |