mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:37:45 +00:00
WebContent+Everywhere: Add a WebContent IPC to activate a tab
This commit is contained in:
parent
a77daf77bd
commit
f8b6369c23
18 changed files with 50 additions and 0 deletions
|
@ -401,6 +401,11 @@ Tab& BrowserWindow::new_tab(QString const& url, Web::HTML::ActivateTab activate_
|
|||
return *tab_ptr;
|
||||
}
|
||||
|
||||
void BrowserWindow::activate_tab(int index)
|
||||
{
|
||||
m_tabs_container->setCurrentIndex(index);
|
||||
}
|
||||
|
||||
void BrowserWindow::close_tab(int index)
|
||||
{
|
||||
auto* tab = m_tabs_container->widget(index);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue