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

LibWeb: Add in all of the plumbing required to use the JS console over IPC

This commit is contained in:
Brandon Scott 2021-02-27 21:47:14 -06:00 committed by Andreas Kling
parent 51f073ff39
commit 0682af7b65
5 changed files with 27 additions and 1 deletions

View file

@ -136,6 +136,11 @@ void WebContentClient::handle(const Messages::WebContentClient::DidGetSource& me
m_view.notify_server_did_get_source(message.url(), message.source());
}
void WebContentClient::handle(const Messages::WebContentClient::DidJSConsoleOutput& message)
{
m_view.notify_server_did_js_console_output(message.method(), message.line());
}
OwnPtr<Messages::WebContentClient::DidRequestAlertResponse> WebContentClient::handle(const Messages::WebContentClient::DidRequestAlert& message)
{
m_view.notify_server_did_request_alert({}, message.message());