mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
feat: add BrowserWindow.showAllTabs() for macOS (#38965)
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -210,6 +210,7 @@ class BaseWindow : public gin_helper::TrackableObject<BaseWindow>,
|
||||
void SetEscapeTouchBarItem(gin_helper::PersistentDictionary item);
|
||||
void SelectPreviousTab();
|
||||
void SelectNextTab();
|
||||
void ShowAllTabs();
|
||||
void MergeAllWindows();
|
||||
void MoveTabToNewWindow();
|
||||
void ToggleTabBar();
|
||||
|
||||
Reference in New Issue
Block a user