1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:17:35 +00:00

LibWeb: Added get source functionality and hook event

This commit is contained in:
Brandon Scott 2021-02-23 06:17:23 -06:00 committed by Andreas Kling
parent 306501fd4a
commit 2f56a86a4e
5 changed files with 20 additions and 0 deletions

View file

@ -50,6 +50,7 @@ public:
void load_empty_document();
void debug_request(const String& request, const String& argument = {});
void get_source();
void notify_server_did_layout(Badge<WebContentClient>, const Gfx::IntSize& content_size);
void notify_server_did_paint(Badge<WebContentClient>, i32 bitmap_id);
@ -68,6 +69,7 @@ public:
void notify_server_did_request_alert(Badge<WebContentClient>, const String& message);
bool notify_server_did_request_confirm(Badge<WebContentClient>, const String& message);
String notify_server_did_request_prompt(Badge<WebContentClient>, const String& message, const String& default_);
void notify_server_did_get_source(const URL& url, const String& source);
private:
OutOfProcessWebView();