OLD | NEW |
1 [ | 1 [ |
2 { | 2 { |
3 "namespace": "tabs", | 3 "namespace": "tabs", |
4 "compile": true, | |
5 "types": [ | 4 "types": [ |
6 { | 5 { |
7 "id": "Tab", | 6 "id": "Tab", |
8 "type": "object", | 7 "type": "object", |
9 "properties": { | 8 "properties": { |
10 "id": {"type": "integer", "minimum": 0, "description": "The ID of the
tab. Tab IDs are unique within a browser session."}, | 9 "id": {"type": "integer", "minimum": 0, "description": "The ID of the
tab. Tab IDs are unique within a browser session."}, |
11 "index": {"type": "integer", "minimum": 0, "description": "The zero-ba
sed index of the tab within its window."}, | 10 "index": {"type": "integer", "minimum": 0, "description": "The zero-ba
sed index of the tab within its window."}, |
12 "windowId": {"type": "integer", "minimum": 0, "description": "The ID o
f the window the tab is contained within."}, | 11 "windowId": {"type": "integer", "minimum": 0, "description": "The ID o
f the window the tab is contained within."}, |
13 "selected": {"type": "boolean", "description": "Whether the tab is sel
ected.", "nodoc": true}, | 12 "selected": {"type": "boolean", "description": "Whether the tab is sel
ected.", "nodoc": true}, |
14 "highlighted": {"type": "boolean", "description": "Whether the tab is
highlighted."}, | 13 "highlighted": {"type": "boolean", "description": "Whether the tab is
highlighted."}, |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 "items": { | 279 "items": { |
281 "$ref": "Tab" | 280 "$ref": "Tab" |
282 } | 281 } |
283 } | 282 } |
284 ] | 283 ] |
285 } | 284 } |
286 ] | 285 ] |
287 }, | 286 }, |
288 { | 287 { |
289 "name": "highlight", | 288 "name": "highlight", |
| 289 "nocompile": true, |
290 "type": "function", | 290 "type": "function", |
291 "description": "Highlights the given tabs.", | 291 "description": "Highlights the given tabs.", |
292 "parameters": [ | 292 "parameters": [ |
293 { | 293 { |
294 "type": "object", | 294 "type": "object", |
295 "name": "highlightInfo", | 295 "name": "highlightInfo", |
296 "properties": { | 296 "properties": { |
297 "windowId": { | 297 "windowId": { |
298 "type": "integer", | 298 "type": "integer", |
299 "description": "The window that contains the tabs." | 299 "description": "The window that contains the tabs." |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 "minimum": 0, | 331 "minimum": 0, |
332 "optional": true, | 332 "optional": true, |
333 "description": "Defaults to the selected tab of the <a href='windows
.html#current-window'>current window</a>." | 333 "description": "Defaults to the selected tab of the <a href='windows
.html#current-window'>current window</a>." |
334 }, | 334 }, |
335 { | 335 { |
336 "type": "object", | 336 "type": "object", |
337 "name": "updateProperties", | 337 "name": "updateProperties", |
338 "properties": { | 338 "properties": { |
339 "url": { | 339 "url": { |
340 "optional": true, | 340 "optional": true, |
| 341 "type": "string", |
341 "description": "A URL to navigate the tab to." | 342 "description": "A URL to navigate the tab to." |
342 }, | 343 }, |
343 "active": { | 344 "active": { |
344 "type": "boolean", | 345 "type": "boolean", |
345 "optional": true, | 346 "optional": true, |
346 "description": "Whether the tab should be active." | 347 "description": "Whether the tab should be active." |
347 }, | 348 }, |
348 "highlighted": { | 349 "highlighted": { |
349 "type": "boolean", | 350 "type": "boolean", |
350 "optional": true, | 351 "optional": true, |
(...skipping 22 matching lines...) Expand all Loading... |
373 "$ref": "Tab", | 374 "$ref": "Tab", |
374 "optional": true, | 375 "optional": true, |
375 "description": "Details about the updated tab, or <code>null</co
de> if the 'tabs' permission has not been requested." | 376 "description": "Details about the updated tab, or <code>null</co
de> if the 'tabs' permission has not been requested." |
376 } | 377 } |
377 ] | 378 ] |
378 } | 379 } |
379 ] | 380 ] |
380 }, | 381 }, |
381 { | 382 { |
382 "name": "move", | 383 "name": "move", |
| 384 "nocompile": true, |
383 "type": "function", | 385 "type": "function", |
384 "description": "Moves one or more tabs to a new position within its wind
ow, or to a new window. Note that tabs can only be moved to and from normal (win
dow.type === \"normal\") windows.", | 386 "description": "Moves one or more tabs to a new position within its wind
ow, or to a new window. Note that tabs can only be moved to and from normal (win
dow.type === \"normal\") windows.", |
385 "parameters": [ | 387 "parameters": [ |
386 { | 388 { |
387 "name": "tabIds", | 389 "name": "tabIds", |
388 "description": "The tab or list of tabs to move.", | 390 "description": "The tab or list of tabs to move.", |
389 "choices": [ | 391 "choices": [ |
390 {"type": "integer", "minimum": 0}, | 392 {"type": "integer", "minimum": 0}, |
391 {"type": "array", "items": {"type": "integer", "minimum": 0}} | 393 {"type": "array", "items": {"type": "integer", "minimum": 0}} |
392 ] | 394 ] |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 "optional": true, | 443 "optional": true, |
442 "description": "Whether using any local cache. Default is false.
" | 444 "description": "Whether using any local cache. Default is false.
" |
443 } | 445 } |
444 } | 446 } |
445 }, | 447 }, |
446 {"type": "function", "name": "callback", "optional": true, "parameters
": []} | 448 {"type": "function", "name": "callback", "optional": true, "parameters
": []} |
447 ] | 449 ] |
448 }, | 450 }, |
449 { | 451 { |
450 "name": "remove", | 452 "name": "remove", |
| 453 "nocompile": true, |
451 "type": "function", | 454 "type": "function", |
452 "description": "Closes one or more tabs. Note: This function can be used
without requesting the 'tabs' permission in the manifest.", | 455 "description": "Closes one or more tabs. Note: This function can be used
without requesting the 'tabs' permission in the manifest.", |
453 "parameters": [ | 456 "parameters": [ |
454 { | 457 { |
455 "name": "tabIds", | 458 "name": "tabIds", |
456 "description": "The tab or list of tabs to close.", | 459 "description": "The tab or list of tabs to close.", |
457 "choices": [ | 460 "choices": [ |
458 {"type": "integer", "minimum": 0}, | 461 {"type": "integer", "minimum": 0}, |
459 {"type": "array", "items": {"type": "integer", "minimum": 0}} | 462 {"type": "array", "items": {"type": "integer", "minimum": 0}} |
460 ] | 463 ] |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
760 "name": "removeInfo", | 763 "name": "removeInfo", |
761 "properties": { | 764 "properties": { |
762 "isWindowClosing": {"type": "boolean", "description": "True when t
he tab is being closed because its window is being closed." } | 765 "isWindowClosing": {"type": "boolean", "description": "True when t
he tab is being closed because its window is being closed." } |
763 } | 766 } |
764 } | 767 } |
765 ] | 768 ] |
766 } | 769 } |
767 ] | 770 ] |
768 } | 771 } |
769 ] | 772 ] |
OLD | NEW |