diff options
author | Timothy Flynn <trflynn89@pm.me> | 2023-03-20 18:39:20 -0400 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-03-21 09:39:49 +0000 |
commit | e6fc35897f1daf67074bb823193301713f011189 (patch) | |
tree | 33d2d6b5b975fdfc0b0a8886438cd173aea65790 /Userland/Libraries/LibWeb/Page | |
parent | 78ed798852117a7e129de057b585dc5b642b40ee (diff) | |
download | serenity-e6fc35897f1daf67074bb823193301713f011189.zip |
WebContent+Everywhere: Add an option to not activate new tabs over IPC
WebDriver, for example, will want to create new tabs without activating
them.
Diffstat (limited to 'Userland/Libraries/LibWeb/Page')
-rw-r--r-- | Userland/Libraries/LibWeb/Page/Page.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Page/Page.h b/Userland/Libraries/LibWeb/Page/Page.h index 05c15a18b4..f3b54501aa 100644 --- a/Userland/Libraries/LibWeb/Page/Page.h +++ b/Userland/Libraries/LibWeb/Page/Page.h @@ -25,6 +25,7 @@ #include <LibWeb/CSS/PreferredColorScheme.h> #include <LibWeb/Cookie/Cookie.h> #include <LibWeb/Forward.h> +#include <LibWeb/HTML/ActivateTab.h> #include <LibWeb/Loader/FileRequest.h> #include <LibWeb/PixelUnits.h> @@ -201,7 +202,7 @@ public: virtual void page_did_set_cookie(const AK::URL&, Cookie::ParsedCookie const&, Cookie::Source) { } virtual void page_did_update_cookie(Web::Cookie::Cookie) { } virtual void page_did_update_resource_count(i32) { } - virtual String page_did_request_new_tab() { return {}; } + virtual String page_did_request_new_tab(HTML::ActivateTab) { return {}; } virtual void page_did_close_browsing_context(HTML::BrowsingContext const&) { } virtual void request_file(FileRequest) = 0; |