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 /Ladybird/BrowserWindow.h | |
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 'Ladybird/BrowserWindow.h')
-rw-r--r-- | Ladybird/BrowserWindow.h | 8 |
1 files changed, 2 insertions, 6 deletions
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 <LibCore/Forward.h> +#include <LibWeb/HTML/ActivateTab.h> #include <QIcon> #include <QLineEdit> #include <QMainWindow> @@ -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(); |