From e6fc35897f1daf67074bb823193301713f011189 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Mon, 20 Mar 2023 18:39:20 -0400 Subject: WebContent+Everywhere: Add an option to not activate new tabs over IPC WebDriver, for example, will want to create new tabs without activating them. --- Ladybird/BrowserWindow.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'Ladybird/BrowserWindow.h') diff --git a/Ladybird/BrowserWindow.h b/Ladybird/BrowserWindow.h index dc8f9b80fb..1e6ed62ebf 100644 --- a/Ladybird/BrowserWindow.h +++ b/Ladybird/BrowserWindow.h @@ -9,6 +9,7 @@ #include "Tab.h" #include +#include #include #include #include @@ -31,15 +32,10 @@ public: int tab_index(Tab*); - enum class Activate { - Yes, - No, - }; - public slots: void tab_title_changed(int index, QString const&); void tab_favicon_changed(int index, QIcon icon); - Tab& new_tab(QString const&, Activate); + Tab& new_tab(QString const&, Web::HTML::ActivateTab); void close_tab(int index); void close_current_tab(); void open_next_tab(); -- cgit v1.2.3