mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 23:37:35 +00:00
LibWeb+LibWebView+WebContent+Ladybird: Add IPC call that opens new tab
This commit is contained in:
parent
4717d645d3
commit
a9f8d4eada
12 changed files with 32 additions and 0 deletions
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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) =|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue