| OLD | NEW |
| 1 [ | 1 [ |
| 2 { | 2 { |
| 3 "namespace": "extension", | 3 "namespace": "extension", |
| 4 "unprivileged": true, | 4 "unprivileged": true, |
| 5 "types": [ | 5 "types": [ |
| 6 { | 6 { |
| 7 "id": "MessageSender", | 7 "id": "MessageSender", |
| 8 "type": "object", | 8 "type": "object", |
| 9 "description": "An object containing information about the script contex
t that sent a message or request.", | 9 "description": "An object containing information about the script contex
t that sent a message or request.", |
| 10 "properties": { | 10 "properties": { |
| (...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 710 ] | 710 ] |
| 711 }, | 711 }, |
| 712 { | 712 { |
| 713 "name": "executeScript", | 713 "name": "executeScript", |
| 714 "type": "function", | 714 "type": "function", |
| 715 "description": "", | 715 "description": "", |
| 716 "parameters": [ | 716 "parameters": [ |
| 717 {"type": "integer", "name": "tabId", "optional": true, "description":
"The id of tab which run the script, default to selected tab of current window."
}, | 717 {"type": "integer", "name": "tabId", "optional": true, "description":
"The id of tab which run the script, default to selected tab of current window."
}, |
| 718 { | 718 { |
| 719 "type": "object", | 719 "type": "object", |
| 720 "name": "scriptDef", | 720 "name": "details", |
| 721 "description": "Note:scripts are injected in the following definitio
n order.", | 721 "description": "Details of the script to run. Either the code or fil
e property must be set, but both may not be set at the same time.", |
| 722 "properties": { | 722 "properties": { |
| 723 "code": {"type": "string", "optional": true, "description": "JavaS
cript code to execute."}, | 723 "code": {"type": "string", "optional": true, "description": "JavaS
cript code to execute."}, |
| 724 "file": {"type": "string", "optional": true, "description": "JavaS
cript file to execute."} | 724 "file": {"type": "string", "optional": true, "description": "JavaS
cript file to execute."}, |
| 725 "allFrames": {"type": "boolean", "optional": true, "description":
"If allFrames is true, this function injects script into all frames of current p
age. By default, it's false and only inject script into top main frame."} |
| 725 }, | 726 }, |
| 726 "optional": true | 727 "optional": true |
| 727 }, | 728 }, |
| 728 { | 729 { |
| 729 "type": "function", | 730 "type": "function", |
| 730 "name": "callback", | 731 "name": "callback", |
| 731 "optional": true, | 732 "optional": true, |
| 732 "description": "When all scripts are executed, this callback is call
ed.", | 733 "description": "When all scripts are executed, this callback is call
ed.", |
| 733 "parameters": [] | 734 "parameters": [] |
| 734 } | 735 } |
| 735 ] | 736 ] |
| 736 }, | 737 }, |
| 737 { | 738 { |
| 738 "name": "insertCSS", | 739 "name": "insertCSS", |
| 739 "type": "function", | 740 "type": "function", |
| 740 "description": "", | 741 "description": "", |
| 741 "parameters": [ | 742 "parameters": [ |
| 742 {"type": "integer", "name": "tabId", "optional": true, "description":
"The id of tab which run the script, default to selected tab of current window."
}, | 743 {"type": "integer", "name": "tabId", "optional": true, "description":
"The id of tab which run the script, default to selected tab of current window."
}, |
| 743 { | 744 { |
| 744 "type": "object", | 745 "type": "object", |
| 745 "name": "scriptDef", | 746 "name": "details", |
| 746 "description": "Note:css are injected in the following definition or
der.", | 747 "description": "Details of the css text to insert. Either the code o
r file property must be set, but both may not be set at the same time.", |
| 747 "properties": { | 748 "properties": { |
| 748 "code": {"type": "string", "optional": true, "description": "CSS c
ode to be injected."}, | 749 "code": {"type": "string", "optional": true, "description": "CSS c
ode to be injected."}, |
| 749 "file": {"type": "string", "optional": true, "description": "CSS f
ile to be injected."} | 750 "file": {"type": "string", "optional": true, "description": "CSS f
ile to be injected."}, |
| 751 "allFrames": {"type": "boolean", "optional": true, "description":
"If allFrames is true, this function injects css text into all frames of current
page. By default, it's false and only inject css text into top main frame."} |
| 750 }, | 752 }, |
| 751 "optional": true | 753 "optional": true |
| 752 }, | 754 }, |
| 753 { | 755 { |
| 754 "type": "function", | 756 "type": "function", |
| 755 "name": "callback", | 757 "name": "callback", |
| 756 "optional": true, | 758 "optional": true, |
| 757 "description": "When all css are inserted, this callback is called."
, | 759 "description": "When all css are inserted, this callback is called."
, |
| 758 "parameters": [] | 760 "parameters": [] |
| 759 } | 761 } |
| (...skipping 993 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1753 "type": "function", | 1755 "type": "function", |
| 1754 "description": "Logs a message during internal unit testing.", | 1756 "description": "Logs a message during internal unit testing.", |
| 1755 "parameters": [ | 1757 "parameters": [ |
| 1756 {"type": "string", "name": "message"} | 1758 {"type": "string", "name": "message"} |
| 1757 ] | 1759 ] |
| 1758 } | 1760 } |
| 1759 ], | 1761 ], |
| 1760 "events": [] | 1762 "events": [] |
| 1761 } | 1763 } |
| 1762 ] | 1764 ] |
| OLD | NEW |