Module windows

Index

Variables

Interfaces

Functions

Variables

WINDOW_ID_CURRENT: number

WINDOW_ID_NONE: number

onCreated: WindowCreatedEvent

onFocusChanged: WindowFocusChangedEvent

onRemoved: WindowRemovedEvent

Functions

create(createData?: CreateData, callback?: (window: chrome.windows.Window) => void)

Parameters

  • createData?: CreateData optional
  • callback?: (window: chrome.windows.Window) => void optional

get(windowId: number, callback: (window: chrome.windows.Window) => void)

Parameters

  • windowId: number
  • callback: (window: chrome.windows.Window) => void

get(windowId: number, getInfo: GetInfo, callback: (window: chrome.windows.Window) => void)

Parameters

  • windowId: number
  • getInfo: GetInfo
  • callback: (window: chrome.windows.Window) => void

getAll(callback: (windows: chrome.windows.Window[]) => void)

Parameters

  • callback: (windows: chrome.windows.Window[]) => void

getAll(getInfo: GetInfo, callback: (windows: chrome.windows.Window[]) => void)

Parameters

  • getInfo: GetInfo
  • callback: (windows: chrome.windows.Window[]) => void

getCurrent(callback: (window: chrome.windows.Window) => void)

Parameters

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

getCurrent(getInfo: GetInfo, callback: (window: chrome.windows.Window) => void)

Parameters

  • getInfo: GetInfo
  • callback: (window: chrome.windows.Window) => void

getLastFocused(callback: (window: chrome.windows.Window) => void)

Parameters

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

getLastFocused(getInfo: GetInfo, callback: (window: chrome.windows.Window) => void)

Parameters

  • getInfo: GetInfo
  • callback: (window: chrome.windows.Window) => void

remove(windowId: number, callback?: Function)

Parameters

  • windowId: number
  • callback?: Function optional

update(windowId: number, updateInfo: UpdateInfo, callback?: (window: chrome.windows.Window) => void)

Parameters

  • windowId: number
  • updateInfo: UpdateInfo
  • callback?: (window: chrome.windows.Window) => void optional