mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-10 11:36:22 +00:00
WebContent+Everywhere: Add a WebContent IPC to activate a tab
This commit is contained in:
parent
a77daf77bd
commit
f8b6369c23
Notes:
sideshowbarker
2024-07-17 00:27:16 +09:00
Author: https://github.com/trflynn89
Commit: f8b6369c23
Pull-request: https://github.com/SerenityOS/serenity/pull/17950
Reviewed-by: https://github.com/linusg ✅
18 changed files with 50 additions and 0 deletions
|
@ -64,6 +64,10 @@ Tab::Tab(BrowserWindow* window, StringView webdriver_content_ipc_path)
|
|||
m_toolbar->addAction(m_home_action);
|
||||
m_toolbar->addWidget(m_location_edit);
|
||||
|
||||
QObject::connect(m_view, &WebContentView::activate_tab, [this] {
|
||||
m_window->activate_tab(tab_index());
|
||||
});
|
||||
|
||||
QObject::connect(m_view, &WebContentView::close, [this] {
|
||||
m_window->close_tab(tab_index());
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue