| OLD | NEW |
| 1 [ | 1 [ |
| 2 { | 2 { |
| 3 "namespace": "extension", | 3 "namespace": "extension", |
| 4 "types": [ | 4 "types": [ |
| 5 { | 5 { |
| 6 "id": "Port", | 6 "id": "Port", |
| 7 "type": "object", | 7 "type": "object", |
| 8 "description": "An object which allows two way communication with other
pages.", | 8 "description": "An object which allows two way communication with other
pages.", |
| 9 "properties": { | 9 "properties": { |
| 10 "name": {"type": "string"}, | 10 "name": {"type": "string"}, |
| (...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 468 "parameters": [ | 468 "parameters": [ |
| 469 {"type": "integer", "name": "tabId", "minimum": 0}, | 469 {"type": "integer", "name": "tabId", "minimum": 0}, |
| 470 { | 470 { |
| 471 "type": "object", | 471 "type": "object", |
| 472 "name": "updateProperties", | 472 "name": "updateProperties", |
| 473 "properties": { | 473 "properties": { |
| 474 "url": {"type": "string", "optional": true}, | 474 "url": {"type": "string", "optional": true}, |
| 475 "selected": {"type": "boolean", "optional": true} | 475 "selected": {"type": "boolean", "optional": true} |
| 476 } | 476 } |
| 477 }, | 477 }, |
| 478 {"type": "function", "name": "callback", "optional": true, "parameters
": []} | 478 { |
| 479 "type": "function", |
| 480 "name": "callback", |
| 481 "optional": true, |
| 482 "parameters": [ |
| 483 { |
| 484 "name": "tab", |
| 485 "$ref": "Tab", |
| 486 "description": "Details about the updated tab." |
| 487 } |
| 488 ] |
| 489 } |
| 479 ] | 490 ] |
| 480 }, | 491 }, |
| 481 { | 492 { |
| 482 "name": "move", | 493 "name": "move", |
| 483 "type": "function", | 494 "type": "function", |
| 484 "description": "Move a tab to a new position within its window, or to a
new window.", | 495 "description": "Move a tab to a new position within its window, or to a
new window.", |
| 485 "parameters": [ | 496 "parameters": [ |
| 486 {"type": "integer", "name": "tabId", "minimum": 0}, | 497 {"type": "integer", "name": "tabId", "minimum": 0}, |
| 487 { | 498 { |
| 488 "type": "object", | 499 "type": "object", |
| 489 "name": "moveProperties", | 500 "name": "moveProperties", |
| 490 "properties": { | 501 "properties": { |
| 491 "windowId": { | 502 "windowId": { |
| 492 "type": "integer", | 503 "type": "integer", |
| 493 "minimum": 0, | 504 "minimum": 0, |
| 494 "optional": true, | 505 "optional": true, |
| 495 "description": "Defaults to the window the tab is currently in." | 506 "description": "Defaults to the window the tab is currently in." |
| 496 }, | 507 }, |
| 497 "index": { | 508 "index": { |
| 498 "type": "integer", | 509 "type": "integer", |
| 499 "minimum": 0, | 510 "minimum": 0, |
| 500 "description": "The position to move the window to. The provided
value will be clamped to between zero and the number of tabs in the window." | 511 "description": "The position to move the window to. The provided
value will be clamped to between zero and the number of tabs in the window." |
| 501 } | 512 } |
| 502 } | 513 } |
| 503 }, | 514 }, |
| 504 {"type": "function", "name": "callback", "optional": true, "parameters
": []} | 515 { |
| 516 "type": "function", |
| 517 "name": "callback", |
| 518 "optional": true, |
| 519 "parameters": [ |
| 520 { |
| 521 "name": "tab", |
| 522 "$ref": "Tab", |
| 523 "description": "Details about the moved tab." |
| 524 } |
| 525 ] |
| 526 } |
| 505 ] | 527 ] |
| 506 }, | 528 }, |
| 507 { | 529 { |
| 508 "name": "remove", | 530 "name": "remove", |
| 509 "type": "function", | 531 "type": "function", |
| 510 "description": "Closes a tab.", | 532 "description": "Closes a tab.", |
| 511 "parameters": [ | 533 "parameters": [ |
| 512 {"type": "integer", "name": "tabId", "minimum": 0}, | 534 {"type": "integer", "name": "tabId", "minimum": 0}, |
| 513 {"type": "function", "name": "callback", "optional": true, "parameters
": []} | 535 {"type": "function", "name": "callback", "optional": true, "parameters
": []} |
| 514 ] | 536 ] |
| (...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1088 "type": "function", | 1110 "type": "function", |
| 1089 "description": "Logs a message during internal unit testing.", | 1111 "description": "Logs a message during internal unit testing.", |
| 1090 "parameters": [ | 1112 "parameters": [ |
| 1091 {"type": "string", "name": "message"} | 1113 {"type": "string", "name": "message"} |
| 1092 ] | 1114 ] |
| 1093 } | 1115 } |
| 1094 ], | 1116 ], |
| 1095 "events": [] | 1117 "events": [] |
| 1096 } | 1118 } |
| 1097 ] | 1119 ] |
| OLD | NEW |