Skip to content

main/bookmarks

Defined in: app/src/main/bookmarks.ts:14

The bookmarks in the browser process: which addresses have a bookmark, for the star in the address bar, and the changes that the star and the bookmarks page make. The addresses load with the first web page a tab shows, so the data service does not start for a window that shows only the browser’s own pages.

new Bookmarks(data, router, internal, onChange, logger): Bookmarks

Defined in: app/src/main/bookmarks.ts:33

DataClient

The data service.

IpcRouter

IPC router, to tell open bookmarks pages about changes.

Session

Session of the browser’s own pages.

() => void

Called when the bookmarked addresses changed, to update the shells.

Logger

Receives failures.

Bookmarks

barItems(): object[]

Defined in: app/src/main/bookmarks.ts:62

The items of the bookmarks bar. The first call loads the bookmarks; the shells update when they arrive.

object[]

changed(): Promise<void>

Defined in: app/src/main/bookmarks.ts:104

Loads the bookmarked addresses again and tells the shells and bookmarks pages.

Promise<void>

contents(folder): BookmarkEntry[]

Defined in: app/src/main/bookmarks.ts:71

The bookmarks and folders in a folder, in their order.

number

The folder’s id.

BookmarkEntry[]

has(url): boolean

Defined in: app/src/main/bookmarks.ts:52

Whether a page has a bookmark. The first web page loads the bookmarked addresses; the shells update when they arrive.

string

The page’s address.

boolean

toggle(url, title): void

Defined in: app/src/main/bookmarks.ts:82

Adds a bookmark for a page to the bookmarks bar, or removes every bookmark of the page.

string

The page’s address.

string

The page’s title.

void

Defined in: app/src/main/bookmarks.ts:128

A bookmark or folder; folders have no address.

readonly id: number

Defined in: app/src/main/bookmarks.ts:129

readonly parentId: number | null

Defined in: app/src/main/bookmarks.ts:130

readonly title: string

Defined in: app/src/main/bookmarks.ts:131

readonly url: string | null

Defined in: app/src/main/bookmarks.ts:132