diff options
author | Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com> | 2023-03-14 17:12:09 +0300 |
---|---|---|
committer | Tim Flynn <trflynn89@pm.me> | 2023-03-16 13:17:37 -0400 |
commit | a9f8d4eadaf792eb6907a6ce7302acfe623635f6 (patch) | |
tree | 896d40f6cc7613707d84d3bdd8a6696ad3d9047f /Userland/Services/WebContent | |
parent | 4717d645d3112967e6e7da1dbc5d5409f8312fb2 (diff) | |
download | serenity-a9f8d4eadaf792eb6907a6ce7302acfe623635f6.zip |
LibWeb+LibWebView+WebContent+Ladybird: Add IPC call that opens new tab
Diffstat (limited to 'Userland/Services/WebContent')
-rw-r--r-- | Userland/Services/WebContent/PageHost.cpp | 5 | ||||
-rw-r--r-- | Userland/Services/WebContent/PageHost.h | 1 | ||||
-rw-r--r-- | Userland/Services/WebContent/WebContentClient.ipc | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/Userland/Services/WebContent/PageHost.cpp b/Userland/Services/WebContent/PageHost.cpp index 582d731735..069124ffdd 100644 --- a/Userland/Services/WebContent/PageHost.cpp +++ b/Userland/Services/WebContent/PageHost.cpp @@ -377,6 +377,11 @@ void PageHost::page_did_update_resource_count(i32 count_waiting) m_client.async_did_update_resource_count(count_waiting); } +String PageHost::page_did_request_new_tab() +{ + return m_client.did_request_new_tab(); +} + void PageHost::page_did_close_browsing_context(Web::HTML::BrowsingContext const&) { m_client.async_did_close_browsing_context(); diff --git a/Userland/Services/WebContent/PageHost.h b/Userland/Services/WebContent/PageHost.h index fafbb8f676..447774796f 100644 --- a/Userland/Services/WebContent/PageHost.h +++ b/Userland/Services/WebContent/PageHost.h @@ -98,6 +98,7 @@ private: virtual void page_did_set_cookie(const URL&, Web::Cookie::ParsedCookie const&, Web::Cookie::Source) override; virtual void page_did_update_cookie(Web::Cookie::Cookie) override; virtual void page_did_update_resource_count(i32) override; + virtual String page_did_request_new_tab() override; virtual void page_did_close_browsing_context(Web::HTML::BrowsingContext const&) override; virtual void request_file(Web::FileRequest) override; diff --git a/Userland/Services/WebContent/WebContentClient.ipc b/Userland/Services/WebContent/WebContentClient.ipc index 2f6423b343..cc7c201291 100644 --- a/Userland/Services/WebContent/WebContentClient.ipc +++ b/Userland/Services/WebContent/WebContentClient.ipc @@ -55,6 +55,7 @@ endpoint WebContentClient did_request_fullscreen_window() => (Gfx::IntRect window_rect) did_request_file(DeprecatedString path, i32 request_id) =| did_finish_handling_input_event(bool event_was_accepted) =| + did_request_new_tab() => (String handle) did_output_js_console_message(i32 message_index) =| did_get_js_console_messages(i32 start_index, Vector<DeprecatedString> message_types, Vector<DeprecatedString> messages) =| |