mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 18:47:44 +00:00
WebContent+Everywhere: Add an option to not activate new tabs over IPC
WebDriver, for example, will want to create new tabs without activating them.
This commit is contained in:
parent
78ed798852
commit
e6fc35897f
21 changed files with 81 additions and 62 deletions
|
@ -377,9 +377,9 @@ 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()
|
||||
String PageHost::page_did_request_new_tab(Web::HTML::ActivateTab activate_tab)
|
||||
{
|
||||
return m_client.did_request_new_tab();
|
||||
return m_client.did_request_new_tab(activate_tab);
|
||||
}
|
||||
|
||||
void PageHost::page_did_close_browsing_context(Web::HTML::BrowsingContext const&)
|
||||
|
|
|
@ -98,7 +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 String page_did_request_new_tab(Web::HTML::ActivateTab activate_tab) override;
|
||||
virtual void page_did_close_browsing_context(Web::HTML::BrowsingContext const&) override;
|
||||
virtual void request_file(Web::FileRequest) override;
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
#include <LibGfx/ShareableBitmap.h>
|
||||
#include <LibWeb/Cookie/Cookie.h>
|
||||
#include <LibWeb/Cookie/ParsedCookie.h>
|
||||
#include <LibWeb/HTML/ActivateTab.h>
|
||||
|
||||
endpoint WebContentClient
|
||||
{
|
||||
|
@ -46,6 +47,7 @@ endpoint WebContentClient
|
|||
did_set_cookie(URL url, Web::Cookie::ParsedCookie cookie, u8 source) =|
|
||||
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_close_browsing_context() =|
|
||||
did_request_restore_window() =|
|
||||
did_request_reposition_window(Gfx::IntPoint position) => (Gfx::IntPoint window_position)
|
||||
|
@ -55,7 +57,6 @@ 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