| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 [ | 5 [ |
| 6 { | 6 { |
| 7 "namespace": "tabs", | 7 "namespace": "tabs", |
| 8 "description": "Use the <code>chrome.tabs</code> module to interact with the
browser's tab system. You can use this module to create, modify, and rearrange
tabs in the browser.", |
| 8 "types": [ | 9 "types": [ |
| 9 { | 10 { |
| 10 "id": "Tab", | 11 "id": "Tab", |
| 11 "type": "object", | 12 "type": "object", |
| 12 "properties": { | 13 "properties": { |
| 13 "id": {"type": "integer", "minimum": 0, "description": "The ID of the
tab. Tab IDs are unique within a browser session."}, | 14 "id": {"type": "integer", "minimum": 0, "description": "The ID of the
tab. Tab IDs are unique within a browser session."}, |
| 14 "index": {"type": "integer", "minimum": 0, "description": "The zero-ba
sed index of the tab within its window."}, | 15 "index": {"type": "integer", "minimum": 0, "description": "The zero-ba
sed index of the tab within its window."}, |
| 15 "windowId": {"type": "integer", "minimum": 0, "description": "The ID o
f the window the tab is contained within."}, | 16 "windowId": {"type": "integer", "minimum": 0, "description": "The ID o
f the window the tab is contained within."}, |
| 16 "openerTabId": {"type": "integer", "minimum": 0, "optional": true, "de
scription": "The ID of the tab that opened this tab, if any. This will only be p
resent if the opener tab still exists."}, | 17 "openerTabId": {"type": "integer", "minimum": 0, "optional": true, "de
scription": "The ID of the tab that opened this tab, if any. This will only be p
resent if the opener tab still exists."}, |
| 17 "selected": {"type": "boolean", "description": "Whether the tab is sel
ected.", "nodoc": true}, | 18 "selected": {"type": "boolean", "description": "Whether the tab is sel
ected.", "nodoc": true}, |
| (...skipping 910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 928 "type": "function", | 929 "type": "function", |
| 929 "description": "Fired when a tab is replaced with another tab due to pre
rendering or instant.", | 930 "description": "Fired when a tab is replaced with another tab due to pre
rendering or instant.", |
| 930 "parameters": [ | 931 "parameters": [ |
| 931 {"type": "integer", "name": "addedTabId", "minimum": 0}, | 932 {"type": "integer", "name": "addedTabId", "minimum": 0}, |
| 932 {"type": "integer", "name": "removedTabId", "minimum": 0} | 933 {"type": "integer", "name": "removedTabId", "minimum": 0} |
| 933 ] | 934 ] |
| 934 } | 935 } |
| 935 ] | 936 ] |
| 936 } | 937 } |
| 937 ] | 938 ] |
| OLD | NEW |