| 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 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 711 ] | 711 ] |
| 712 }, | 712 }, |
| 713 { | 713 { |
| 714 "name": "executeScript", | 714 "name": "executeScript", |
| 715 "type": "function", | 715 "type": "function", |
| 716 "description": "", | 716 "description": "", |
| 717 "parameters": [ | 717 "parameters": [ |
| 718 {"type": "integer", "name": "tabId", "optional": true, "description":
"The id of tab which run the script, default to selected tab of current window."
}, | 718 {"type": "integer", "name": "tabId", "optional": true, "description":
"The id of tab which run the script, default to selected tab of current window."
}, |
| 719 { | 719 { |
| 720 "type": "object", | 720 "type": "object", |
| 721 "name": "scriptDef", | 721 "name": "details", |
| 722 "description": "Note:scripts are injected in the following definitio
n order.", | 722 "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.", |
| 723 "properties": { | 723 "properties": { |
| 724 "code": {"type": "string", "optional": true, "description": "JavaS
cript code to execute."}, | 724 "code": {"type": "string", "optional": true, "description": "JavaS
cript code to execute."}, |
| 725 "file": {"type": "string", "optional": true, "description": "JavaS
cript file to execute."} | 725 "file": {"type": "string", "optional": true, "description": "JavaS
cript file to execute."}, |
| 726 "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."} |
| 726 }, | 727 }, |
| 727 "optional": true | 728 "optional": true |
| 728 }, | 729 }, |
| 729 { | 730 { |
| 730 "type": "function", | 731 "type": "function", |
| 731 "name": "callback", | 732 "name": "callback", |
| 732 "optional": true, | 733 "optional": true, |
| 733 "description": "When all scripts are executed, this callback is call
ed.", | 734 "description": "When all scripts are executed, this callback is call
ed.", |
| 734 "parameters": [] | 735 "parameters": [] |
| 735 } | 736 } |
| 736 ] | 737 ] |
| 737 }, | 738 }, |
| 738 { | 739 { |
| 739 "name": "insertCSS", | 740 "name": "insertCSS", |
| 740 "type": "function", | 741 "type": "function", |
| 741 "description": "", | 742 "description": "", |
| 742 "parameters": [ | 743 "parameters": [ |
| 743 {"type": "integer", "name": "tabId", "optional": true, "description":
"The id of tab which run the script, default to selected tab of current window."
}, | 744 {"type": "integer", "name": "tabId", "optional": true, "description":
"The id of tab which run the script, default to selected tab of current window."
}, |
| 744 { | 745 { |
| 745 "type": "object", | 746 "type": "object", |
| 746 "name": "scriptDef", | 747 "name": "details", |
| 747 "description": "Note:css are injected in the following definition or
der.", | 748 "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.", |
| 748 "properties": { | 749 "properties": { |
| 749 "code": {"type": "string", "optional": true, "description": "CSS c
ode to be injected."}, | 750 "code": {"type": "string", "optional": true, "description": "CSS c
ode to be injected."}, |
| 750 "file": {"type": "string", "optional": true, "description": "CSS f
ile to be injected."} | 751 "file": {"type": "string", "optional": true, "description": "CSS f
ile to be injected."}, |
| 752 "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."} |
| 751 }, | 753 }, |
| 752 "optional": true | 754 "optional": true |
| 753 }, | 755 }, |
| 754 { | 756 { |
| 755 "type": "function", | 757 "type": "function", |
| 756 "name": "callback", | 758 "name": "callback", |
| 757 "optional": true, | 759 "optional": true, |
| 758 "description": "When all css are inserted, this callback is called."
, | 760 "description": "When all css are inserted, this callback is called."
, |
| 759 "parameters": [] | 761 "parameters": [] |
| 760 } | 762 } |
| (...skipping 988 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1749 "type": "function", | 1751 "type": "function", |
| 1750 "description": "Logs a message during internal unit testing.", | 1752 "description": "Logs a message during internal unit testing.", |
| 1751 "parameters": [ | 1753 "parameters": [ |
| 1752 {"type": "string", "name": "message"} | 1754 {"type": "string", "name": "message"} |
| 1753 ] | 1755 ] |
| 1754 } | 1756 } |
| 1755 ], | 1757 ], |
| 1756 "events": [] | 1758 "events": [] |
| 1757 } | 1759 } |
| 1758 ] | 1760 ] |
| OLD | NEW |