diff options
author | Timothy Flynn <trflynn89@pm.me> | 2023-03-20 19:52:00 -0400 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-03-21 09:39:49 +0000 |
commit | f8b6369c238a57abb2fb3f5b093c5b629070e1f4 (patch) | |
tree | 7faaf422c0727e429f19c02fed969e928e39446a /Userland/Services | |
parent | a77daf77bdc44d8150f3da698dcf3aa1f4917347 (diff) | |
download | serenity-f8b6369c238a57abb2fb3f5b093c5b629070e1f4.zip |
WebContent+Everywhere: Add a WebContent IPC to activate a tab
Diffstat (limited to 'Userland/Services')
-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 0ddc552154..005a619fde 100644 --- a/Userland/Services/WebContent/PageHost.cpp +++ b/Userland/Services/WebContent/PageHost.cpp @@ -382,6 +382,11 @@ String PageHost::page_did_request_new_tab(Web::HTML::ActivateTab activate_tab) return m_client.did_request_new_tab(activate_tab); } +void PageHost::page_did_request_activate_tab() +{ + m_client.async_did_request_activate_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 faf8e2250b..7d81a7cb2a 100644 --- a/Userland/Services/WebContent/PageHost.h +++ b/Userland/Services/WebContent/PageHost.h @@ -99,6 +99,7 @@ private: 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(Web::HTML::ActivateTab activate_tab) override; + virtual void page_did_request_activate_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 4d7df2ef50..06f0516a30 100644 --- a/Userland/Services/WebContent/WebContentClient.ipc +++ b/Userland/Services/WebContent/WebContentClient.ipc @@ -48,6 +48,7 @@ endpoint WebContentClient did_update_cookie(Web::Cookie::Cookie cookie) =| did_update_resource_count(i32 count_waiting) =| did_request_new_tab(Web::HTML::ActivateTab activate_tab) => (String handle) + did_request_activate_tab() =| did_close_browsing_context() =| did_request_restore_window() =| did_request_reposition_window(Gfx::IntPoint position) => (Gfx::IntPoint window_position) |