domain/tabs/view-history
Classes
Section titled “Classes”ViewHistory
Section titled “ViewHistory”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.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ViewHistory():
ViewHistory
Returns
Section titled “Returns”Accessors
Section titled “Accessors”canGoBack
Section titled “canGoBack”Get Signature
Section titled “Get Signature”get canGoBack():
boolean
Defined in: app/src/domain/tabs/view-history.ts:29
Whether an earlier view exists.
Returns
Section titled “Returns”boolean
canGoForward
Section titled “canGoForward”Get Signature
Section titled “Get Signature”get canGoForward():
boolean
Defined in: app/src/domain/tabs/view-history.ts:34
Whether a later view exists.
Returns
Section titled “Returns”boolean
Methods
Section titled “Methods”goBack()
Section titled “goBack()”goBack(
current):ViewSnapshot|undefined
Defined in: app/src/domain/tabs/view-history.ts:56
Steps back to the previous view.
Parameters
Section titled “Parameters”current
Section titled “current”History of the view that closes; it becomes the next view.
Returns
Section titled “Returns”ViewSnapshot | undefined
The view to restore, or undefined if there is none.
goForward()
Section titled “goForward()”goForward(
current):ViewSnapshot|undefined
Defined in: app/src/domain/tabs/view-history.ts:69
Steps forward to the next view.
Parameters
Section titled “Parameters”current
Section titled “current”History of the view that closes; it becomes the previous view.
Returns
Section titled “Returns”ViewSnapshot | undefined
The view to restore, or undefined if there is none.
leave()
Section titled “leave()”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.
Parameters
Section titled “Parameters”current
Section titled “current”History of the view that closes.
Returns
Section titled “Returns”void
Interfaces
Section titled “Interfaces”HistoryEntry
Section titled “HistoryEntry”Defined in: app/src/domain/tabs/view-history.ts:2
One entry of a view’s history, as Chromium reports it.
Properties
Section titled “Properties”pageState?
Section titled “pageState?”
readonlyoptionalpageState?:string
Defined in: app/src/domain/tabs/view-history.ts:6
Chromium’s serialized state of the page, such as its form values.
readonlytitle:string
Defined in: app/src/domain/tabs/view-history.ts:4
readonlyurl:string
Defined in: app/src/domain/tabs/view-history.ts:3
ViewSnapshot
Section titled “ViewSnapshot”Defined in: app/src/domain/tabs/view-history.ts:10
The history of one view: its entries and the position of the current one.
Properties
Section titled “Properties”entries
Section titled “entries”
readonlyentries: readonlyHistoryEntry[]
Defined in: app/src/domain/tabs/view-history.ts:11
readonlyindex:number
Defined in: app/src/domain/tabs/view-history.ts:12