Skip to content

domain/tabs/view-history

Defined in: app/src/domain/tabs/view-history.ts:24

The history of a tab across its views. Web pages and internal pages are shown in views of different sessions, and each view has its own history. When a tab switches to a view of the other kind, the old view closes and its history is kept here, so Back and Forward cross the switch.

new ViewHistory(): ViewHistory

ViewHistory

get canGoBack(): boolean

Defined in: app/src/domain/tabs/view-history.ts:29

Whether an earlier view exists.

boolean

get canGoForward(): boolean

Defined in: app/src/domain/tabs/view-history.ts:34

Whether a later view exists.

boolean

goBack(current): ViewSnapshot | undefined

Defined in: app/src/domain/tabs/view-history.ts:56

Steps back to the previous view.

ViewSnapshot

History of the view that closes; it becomes the next view.

ViewSnapshot | undefined

The view to restore, or undefined if there is none.

goForward(current): ViewSnapshot | undefined

Defined in: app/src/domain/tabs/view-history.ts:69

Steps forward to the next view.

ViewSnapshot

History of the view that closes; it becomes the previous view.

ViewSnapshot | undefined

The view to restore, or undefined if there is none.

leave(current): void

Defined in: app/src/domain/tabs/view-history.ts:43

Keeps the view that the tab leaves for a new page. Later views are dropped, as when a page navigates after going back.

ViewSnapshot

History of the view that closes.

void

Defined in: app/src/domain/tabs/view-history.ts:2

One entry of a view’s history, as Chromium reports it.

readonly optional pageState?: string

Defined in: app/src/domain/tabs/view-history.ts:6

Chromium’s serialized state of the page, such as its form values.

readonly title: string

Defined in: app/src/domain/tabs/view-history.ts:4

readonly url: string

Defined in: app/src/domain/tabs/view-history.ts:3


Defined in: app/src/domain/tabs/view-history.ts:10

The history of one view: its entries and the position of the current one.

readonly entries: readonly HistoryEntry[]

Defined in: app/src/domain/tabs/view-history.ts:11

readonly index: number

Defined in: app/src/domain/tabs/view-history.ts:12