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 711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
722 }, | 722 }, |
723 { | 723 { |
724 "name": "onUpdated", | 724 "name": "onUpdated", |
725 "type": "function", | 725 "type": "function", |
726 "description": "Fires when a tab is updated.", | 726 "description": "Fires when a tab is updated.", |
727 "parameters": [ | 727 "parameters": [ |
728 {"type": "integer", "name": "tabId", "minimum": 0}, | 728 {"type": "integer", "name": "tabId", "minimum": 0}, |
729 { | 729 { |
730 "type": "object", | 730 "type": "object", |
731 "name": "changeInfo", | 731 "name": "changeInfo", |
| 732 "description": "Lists the changes to the state of the tab that was u
pdated.", |
732 "properties": { | 733 "properties": { |
733 "status": { | 734 "status": { |
734 "type": "string", | 735 "type": "string", |
735 "description": "The status of the tab. Can be either <em>loading
</em> or <em>complete</em>." | 736 "description": "The status of the tab. Can be either <em>loading
</em> or <em>complete</em>." |
736 }, | 737 }, |
737 "url": { | 738 "url": { |
738 "type": "string", | 739 "type": "string", |
739 "optional": true, | 740 "optional": true, |
740 "description": "Only specified if the tab's URL changed." | 741 "description": "Only specified if the tab's URL changed." |
741 } | 742 } |
742 } | 743 } |
| 744 }, |
| 745 { |
| 746 "$ref": "Tab", |
| 747 "name": "tab", |
| 748 "description": "Gives the state of the tab that was updated." |
743 } | 749 } |
744 ] | 750 ] |
745 }, | 751 }, |
746 { | 752 { |
747 "name": "onMoved", | 753 "name": "onMoved", |
748 "type": "function", | 754 "type": "function", |
749 "description": "Fires when a tab is moved within a window. Only one move
event is fired, representing the tab the user directly moved. Move events are n
ot fired for the other tabs that must move in response. This event is not fired
when a tab is moved between windows. For that, see <a href='#event-onDetached'>o
nDetached</a>.", | 755 "description": "Fires when a tab is moved within a window. Only one move
event is fired, representing the tab the user directly moved. Move events are n
ot fired for the other tabs that must move in response. This event is not fired
when a tab is moved between windows. For that, see <a href='#event-onDetached'>o
nDetached</a>.", |
750 "parameters": [ | 756 "parameters": [ |
751 {"type": "integer", "name": "tabId", "minimum": 0}, | 757 {"type": "integer", "name": "tabId", "minimum": 0}, |
752 { | 758 { |
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1464 "type": "function", | 1470 "type": "function", |
1465 "description": "Logs a message during internal unit testing.", | 1471 "description": "Logs a message during internal unit testing.", |
1466 "parameters": [ | 1472 "parameters": [ |
1467 {"type": "string", "name": "message"} | 1473 {"type": "string", "name": "message"} |
1468 ] | 1474 ] |
1469 } | 1475 } |
1470 ], | 1476 ], |
1471 "events": [] | 1477 "events": [] |
1472 } | 1478 } |
1473 ] | 1479 ] |
OLD | NEW |