Class: ChromeApi

ChromeApi()

new ChromeApi()

Abstraction class to interact with the chrome extension API
Source:

Methods

(static) createIncognitoTab(obj)

Create new tab in incognito window
Parameters:
Name Type Description
obj Object Object argument for createIncognitoTab
Properties
Name Type Description
url string url for the tab
Source:

(static) createIncognitoWindow()

Create incognito window
Source:

(static) getActiveTab()

Get active tab of the given window
Parameters:
Type Description
Number
Source:

(static) getTabInfo(tab)

Get tab info based on it's tab id
Parameters:
Name Type Description
tab Number id
Source:

(static) getWindow(window)

Get window information
Parameters:
Name Type Description
window Number id
Source:

(static) onIncognitoWindowClosed(window)

Callback of chrome.windows.onRemoved
Parameters:
Name Type Description
window Number id
Source:

(static) openHelpPage()

Open help page
Source: