feat: add BrowserWindow.showAllTabs()
for macOS (#38965)
This commit is contained in:
parent
040e9a027a
commit
56b5c00312
11 changed files with 31 additions and 2 deletions
|
@ -915,6 +915,10 @@ void BaseWindow::SelectNextTab() {
|
|||
window_->SelectNextTab();
|
||||
}
|
||||
|
||||
void BaseWindow::ShowAllTabs() {
|
||||
window_->ShowAllTabs();
|
||||
}
|
||||
|
||||
void BaseWindow::MergeAllWindows() {
|
||||
window_->MergeAllWindows();
|
||||
}
|
||||
|
@ -1280,6 +1284,7 @@ void BaseWindow::BuildPrototype(v8::Isolate* isolate,
|
|||
#if BUILDFLAG(IS_MAC)
|
||||
.SetMethod("selectPreviousTab", &BaseWindow::SelectPreviousTab)
|
||||
.SetMethod("selectNextTab", &BaseWindow::SelectNextTab)
|
||||
.SetMethod("showAllTabs", &BaseWindow::ShowAllTabs)
|
||||
.SetMethod("mergeAllWindows", &BaseWindow::MergeAllWindows)
|
||||
.SetMethod("moveTabToNewWindow", &BaseWindow::MoveTabToNewWindow)
|
||||
.SetMethod("toggleTabBar", &BaseWindow::ToggleTabBar)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue