Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(314)

Side by Side Diff: chrome/common/extensions/api/tabs.json

Issue 10697017: Tabs Extension: Implementation of tabs.duplicate api. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "dependencies": [ "extension", "windows" ], 8 "dependencies": [ "extension", "windows" ],
9 "types": [ 9 "types": [
10 { 10 {
11 "id": "Tab", 11 "id": "Tab",
12 "type": "object", 12 "type": "object",
13 "properties": { 13 "properties": {
14 "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."},
15 "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."},
16 "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."},
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 "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."},
18 "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},
19 "highlighted": {"type": "boolean", "description": "Whether the tab is highlighted."}, 19 "highlighted": {"type": "boolean", "description": "Whether the tab is highlighted."},
20 "active": {"type": "boolean", "description": "Whether the tab is activ e in its window."}, 20 "active": {"type": "boolean", "description": "Whether the tab is activ e in its window."},
21 "pinned": {"type": "boolean", "description": "Whether the tab is pinne d."}, 21 "pinned": {"type": "boolean", "description": "Whether the tab is pinne d."},
22 "url": {"type": "string", "description": "The URL the tab is displayin g."}, 22 "url": {"type": "string", "optional": true, "description": "The URL th e tab is displaying."},
23 "title": {"type": "string", "optional": true, "description": "The titl e of the tab. This may not be available if the tab is loading."}, 23 "title": {"type": "string", "optional": true, "description": "The titl e of the tab. This may not be available if the tab is loading."},
24 "favIconUrl": {"type": "string", "optional": true, "description": "The URL of the tab's favicon. This may not be available if the tab is loading."}, 24 "favIconUrl": {"type": "string", "optional": true, "description": "The URL of the tab's favicon. This may not be available if the tab is loading."},
25 "status": {"type": "string", "optional": true, "description": "Either <em>loading</em> or <em>complete</em>."}, 25 "status": {"type": "string", "optional": true, "description": "Either <em>loading</em> or <em>complete</em>."},
26 "incognito": {"type": "boolean", "description": "Whether the tab is in an incognito window."} 26 "incognito": {"type": "boolean", "description": "Whether the tab is in an incognito window."}
27 } 27 }
28 } 28 }
29 ], 29 ],
30 "functions": [ 30 "functions": [
31 { 31 {
32 "name": "get", 32 "name": "get",
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 { 251 {
252 "name": "tab", 252 "name": "tab",
253 "$ref": "Tab", 253 "$ref": "Tab",
254 "description": "Details about the created tab. Will contain the ID of the new tab." 254 "description": "Details about the created tab. Will contain the ID of the new tab."
255 } 255 }
256 ] 256 ]
257 } 257 }
258 ] 258 ]
259 }, 259 },
260 { 260 {
261 "name": "duplicate",
262 "type": "function",
263 "description": "Duplicates a tab. Note: This function can be used withou t requesting the 'tabs' permission in the manifest.",
264 "parameters": [
265 {
266 "type": "integer",
267 "name": "tabId",
268 "minimum": 0,
269 "description": "The ID of the tab which is to be duplicated."
270 },
271 {
272 "type": "function",
273 "name": "callback",
274 "optional": true,
275 "parameters": [
276 {
277 "name": "tab",
278 "optional": true,
279 "description": "Details about the duplicated tab. The Tab object doesn't contain url, title and faviconUrl if the 'tabs' permission has not been requested.",
280 "$ref": "Tab"
281 }
282 ]
283 }
284 ]
285 },
286 {
261 "name": "query", 287 "name": "query",
262 "type": "function", 288 "type": "function",
263 "description": "Gets all tabs that have the specified properties, or all tabs if no properties are specified.", 289 "description": "Gets all tabs that have the specified properties, or all tabs if no properties are specified.",
264 "parameters": [ 290 "parameters": [
265 { 291 {
266 "type": "object", 292 "type": "object",
267 "name": "queryInfo", 293 "name": "queryInfo",
268 "properties": { 294 "properties": {
269 "active": { 295 "active": {
270 "type": "boolean", 296 "type": "boolean",
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after
886 "name": "removeInfo", 912 "name": "removeInfo",
887 "properties": { 913 "properties": {
888 "isWindowClosing": {"type": "boolean", "description": "True when t he tab is being closed because its window is being closed." } 914 "isWindowClosing": {"type": "boolean", "description": "True when t he tab is being closed because its window is being closed." }
889 } 915 }
890 } 916 }
891 ] 917 ]
892 } 918 }
893 ] 919 ]
894 } 920 }
895 ] 921 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698