Module tabs

Index

Variables

Interfaces

Functions

Variables

onActivated: TabActivatedEvent

onAttached: TabAttachedEvent

onCreated: TabCreatedEvent

onDetached: TabDetachedEvent

onHighlighted: TabHighlightedEvent

onMoved: TabMovedEvent

onRemoved: TabRemovedEvent

onReplaced: TabReplacedEvent

onUpdated: TabUpdatedEvent

Functions

captureVisibleTab(callback: (dataUrl: string) => void)

Parameters

  • callback: (dataUrl: string) => void

captureVisibleTab(windowId: number, callback: (dataUrl: string) => void)

Parameters

  • windowId: number
  • callback: (dataUrl: string) => void

captureVisibleTab(options: CaptureVisibleTabOptions, callback: (dataUrl: string) => void)

Parameters

captureVisibleTab(windowId: number, options: CaptureVisibleTabOptions, callback: (dataUrl: string) => void)

Parameters

connect(tabId: number, connectInfo?: ConnectInfo)

Parameters

create(createProperties: CreateProperties, callback?: (tab: chrome.tabs.Tab) => void)

Parameters

  • createProperties: CreateProperties
  • callback?: (tab: chrome.tabs.Tab) => void optional

detectLanguage(callback: (language: string) => void)

Parameters

  • callback: (language: string) => void

detectLanguage(tabId: number, callback: (language: string) => void)

Parameters

  • tabId: number
  • callback: (language: string) => void

duplicate(tabId: number, callback?: (tab?: chrome.tabs.Tab) => void)

Parameters

  • tabId: number
  • callback?: (tab?: chrome.tabs.Tab) => void optional

executeScript(details: InjectDetails, callback?: (result: any[]) => void)

Parameters

  • details: InjectDetails
  • callback?: (result: any[]) => void optional

executeScript(tabId: number, details: InjectDetails, callback?: (result: any[]) => void)

Parameters

  • tabId: number
  • details: InjectDetails
  • callback?: (result: any[]) => void optional

get(tabId: number, callback: (tab: chrome.tabs.Tab) => void)

Parameters

  • tabId: number
  • callback: (tab: chrome.tabs.Tab) => void

getCurrent(callback: (tab?: chrome.tabs.Tab) => void)

Parameters

  • callback: (tab?: chrome.tabs.Tab) => void

highlight(highlightInfo: HighlightInfo, callback: (window: chrome.windows.Window) => void)

Parameters

  • highlightInfo: HighlightInfo
  • callback: (window: chrome.windows.Window) => void

insertCSS(tabId: number, details: InjectDetails, callback?: Function)

Parameters

  • tabId: number
  • details: InjectDetails
  • callback?: Function optional

move(tabId: number, moveProperties: MoveProperties, callback?: (tab: chrome.tabs.Tab) => void)

Parameters

  • tabId: number
  • moveProperties: MoveProperties
  • callback?: (tab: chrome.tabs.Tab) => void optional

move(tabIds: Array<number>, moveProperties: MoveProperties, callback?: (tabs: chrome.tabs.Tab[]) => void)

Parameters

  • tabIds: Array<number>
  • moveProperties: MoveProperties
  • callback?: (tabs: chrome.tabs.Tab[]) => void optional

query(queryInfo: QueryInfo, callback: (result: chrome.tabs.Tab[]) => void)

Parameters

  • queryInfo: QueryInfo
  • callback: (result: chrome.tabs.Tab[]) => void

reload(tabId?: number, reloadProperties?: ReloadProperties, func?: Function)

Parameters

  • tabId?: number optional
  • reloadProperties?: ReloadProperties optional
  • func?: Function optional

remove(tabId: number, callback?: Function)

Parameters

  • tabId: number
  • callback?: Function optional

remove(tabIds: Array<number>, callback?: Function)

Parameters

  • tabIds: Array<number>
  • callback?: Function optional

sendMessage(tabId: number, message: any, responseCallback?: (response: any) => void)

Parameters

  • tabId: number
  • message: any
  • responseCallback?: (response: any) => void optional

update(updateProperties: UpdateProperties, callback?: (tab?: chrome.tabs.Tab) => void)

Parameters

  • updateProperties: UpdateProperties
  • callback?: (tab?: chrome.tabs.Tab) => void optional

update(tabId: number, updateProperties: UpdateProperties, callback?: (tab?: chrome.tabs.Tab) => void)

Parameters

  • tabId: number
  • updateProperties: UpdateProperties
  • callback?: (tab?: chrome.tabs.Tab) => void optional