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

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 {
(...skipping 240 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 "$ref": "Tab",
279 "optional": true,
280 "description": "Details about the duplicated tab, or <code>null< /code> if the 'tabs' permission has not been requested."
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