When requested, a windows.Window contains an array of tabs.Tab objects. You mustdeclare the "tabs" permission in your manifest if you need access to the url,pendingUrl, title, or favIconUrl properties of tabs.Tab. For example:
For example, say an extension creates a few tabs or windows from a single HTML file, and that theHTML file contains a call to tabs.query(). The current window is the window that contains thepage that made the call, no matter what the topmost window is.
If true, the windows.Window object has a tabs property that contains a list of the tabs.Tab objects. The Tab objects only contain the url, pendingUrl, title, and favIconUrl properties if the extension's manifest file includes the "tabs" permission.
The ID of the window. Window IDs are unique within a browser session. In some circumstances a window may not be assigned an ID property; for example, when querying windows using the sessions API, in which case a session ID may be present.
The offset of the window from the left edge of the screen in pixels. In some circumstances a window may not be assigned a left property; for example, when querying closed windows from the sessions API.
Fired when the currently focused window changes. Returns chrome.windows.WINDOW_ID_NONE if all Chrome windows have lost focus. Note: On some Linux window managers, WINDOW_ID_NONE is always sent immediately preceding a switch from one Chrome window to another.