main/browser-menu
Interfaces
Section titled “Interfaces”FolderEntry
Section titled “FolderEntry”Defined in: app/src/main/browser-menu.ts:230
A bookmark or folder for the menu of a folder of the bookmarks bar.
Properties
Section titled “Properties”
readonlyid:number
Defined in: app/src/main/browser-menu.ts:231
readonlytitle:string
Defined in: app/src/main/browser-menu.ts:232
readonlyurl:string|null
Defined in: app/src/main/browser-menu.ts:233
Functions
Section titled “Functions”macMenuBar()
Section titled “macMenuBar()”macMenuBar(
run):Menu
Defined in: app/src/main/browser-menu.ts:138
The menu bar of macOS, with the browser’s settings in the application menu and the tools of the page in the View menu. Its items run the commands of the window, as the keys do, so they act on the page and not on the browser’s own views, and the policies apply.
Parameters
Section titled “Parameters”(command) => void
Runs a command in the frontmost window.
Returns
Section titled “Returns”Menu
popupBookmarkFolder()
Section titled “popupBookmarkFolder()”popupBookmarkFolder(
window,position,folder,contents,open):void
Defined in: app/src/main/browser-menu.ts:250
Shows the contents of a folder of the bookmarks bar as a menu, with a submenu for each folder in it. Choosing a bookmark opens it in the active tab, or with Ctrl or Command in a new tab.
Parameters
Section titled “Parameters”window
Section titled “window”The window whose bookmarks bar was clicked.
position
Section titled “position”Where the menu opens, in the window’s coordinates.
number
number
folder
Section titled “folder”The folder, and how many of its first entries the menu leaves out because the bookmarks bar shows them.
number
number
contents
Section titled “contents”(folder) => readonly FolderEntry[]
Lists what a folder contains.
(url, newTab) => void
Opens a bookmark.
Returns
Section titled “Returns”void
popupBrowserMenu()
Section titled “popupBrowserMenu()”popupBrowserMenu(
window,position,options):void
Defined in: app/src/main/browser-menu.ts:17
Shows the browser menu of a window. Its shortcuts are shown for reference only: the window handles them itself, also while a page has the focus.
Parameters
Section titled “Parameters”window
Section titled “window”The window whose menu button was clicked.
position
Section titled “position”Where the menu opens, in the window’s coordinates.
number
number
options
Section titled “options”Whether people may open private windows.
privateWindows
Section titled “privateWindows”boolean
Returns
Section titled “Returns”void
runFromMenuBar()
Section titled “runFromMenuBar()”runFromMenuBar(
windows,command,openPrivateWindow):void
Defined in: app/src/main/browser-menu.ts:116
Runs a command of the menu bar of macOS in the window that was used last. With no window open, a command that opens a window opens only that window, and any other command runs in a new window.
Parameters
Section titled “Parameters”windows
Section titled “windows”Pick<WindowManager, "lastUsed" | "open">
The browser’s windows.
command
Section titled “command”The command.
openPrivateWindow
Section titled “openPrivateWindow”() => void
Opens a private window, if people may.
Returns
Section titled “Returns”void
showBlockerSaveError()
Section titled “showBlockerSaveError()”showBlockerSaveError(
window,managed):void
Defined in: app/src/main/browser-menu.ts:99
Tells that an exception of the content blocker could not be saved.
Parameters
Section titled “Parameters”window
Section titled “window”The window whose blocker menu was used.
managed
Section titled “managed”boolean
Whether a policy manages the exceptions.
Returns
Section titled “Returns”void