1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:58:11 +00:00

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.
This commit is contained in:
Andreas Kling 2020-12-08 21:44:42 +01:00
parent 52dbdf4245
commit eda9fb13cc
12 changed files with 31 additions and 7 deletions

View file

@ -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;