mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 16:37:47 +00:00
WebContent+Everywhere: Add a WebContent IPC to activate a tab
This commit is contained in:
parent
a77daf77bd
commit
f8b6369c23
18 changed files with 50 additions and 0 deletions
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue