Chromium Code Reviews| 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 "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 Loading... | |
| 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, or the ID of t he duplicate tab if the 'tabs' permission has not been requested.", | |
| 280 "choices": [ | |
| 281 {"type": "integer", "name": "tabId"}, | |
|
Aaron Boodman
2012/07/05 18:14:44
On second thought, I would prefer to return a Tab
SanjoyPal
2012/07/10 08:51:09
Done.
| |
| 282 {"$ref": "Tab", "name": "tab"} | |
| 283 ] | |
| 284 } | |
| 285 ] | |
| 286 } | |
| 287 ] | |
| 288 }, | |
| 289 { | |
| 261 "name": "query", | 290 "name": "query", |
| 262 "type": "function", | 291 "type": "function", |
| 263 "description": "Gets all tabs that have the specified properties, or all tabs if no properties are specified.", | 292 "description": "Gets all tabs that have the specified properties, or all tabs if no properties are specified.", |
| 264 "parameters": [ | 293 "parameters": [ |
| 265 { | 294 { |
| 266 "type": "object", | 295 "type": "object", |
| 267 "name": "queryInfo", | 296 "name": "queryInfo", |
| 268 "properties": { | 297 "properties": { |
| 269 "active": { | 298 "active": { |
| 270 "type": "boolean", | 299 "type": "boolean", |
| (...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 886 "name": "removeInfo", | 915 "name": "removeInfo", |
| 887 "properties": { | 916 "properties": { |
| 888 "isWindowClosing": {"type": "boolean", "description": "True when t he tab is being closed because its window is being closed." } | 917 "isWindowClosing": {"type": "boolean", "description": "True when t he tab is being closed because its window is being closed." } |
| 889 } | 918 } |
| 890 } | 919 } |
| 891 ] | 920 ] |
| 892 } | 921 } |
| 893 ] | 922 ] |
| 894 } | 923 } |
| 895 ] | 924 ] |
| OLD | NEW |