1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 17:27:35 +00:00

Ladybird: Add URL and 'open in background' parameters to new_tab()

This will avoid loading starting about:blank page in places when we know
exactly what we want to load.

The opening in background part might be useful for future things like
file drops and right-click open in new tab.
This commit is contained in:
Karol Kosek 2023-01-08 11:21:55 +01:00 committed by Linus Groh
parent 194ddca24f
commit 731fec525e
2 changed files with 16 additions and 8 deletions

View file

@ -32,10 +32,15 @@ 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);
void new_tab();
void new_tab(QString const&, Activate);
void close_tab(int index);
void close_current_tab();
void open_next_tab();