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 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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": "details", | 721 "name": "details", |
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.", | 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 "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."} |
727 }, | 727 } |
728 "optional": true | |
729 }, | 728 }, |
730 { | 729 { |
731 "type": "function", | 730 "type": "function", |
732 "name": "callback", | 731 "name": "callback", |
733 "optional": true, | 732 "optional": true, |
734 "description": "When all scripts are executed, this callback is call
ed.", | 733 "description": "When all scripts are executed, this callback is call
ed.", |
735 "parameters": [] | 734 "parameters": [] |
736 } | 735 } |
737 ] | 736 ] |
738 }, | 737 }, |
739 { | 738 { |
740 "name": "insertCSS", | 739 "name": "insertCSS", |
741 "type": "function", | 740 "type": "function", |
742 "description": "", | 741 "description": "", |
743 "parameters": [ | 742 "parameters": [ |
744 {"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."
}, |
745 { | 744 { |
746 "type": "object", | 745 "type": "object", |
747 "name": "details", | 746 "name": "details", |
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.", | 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.", |
749 "properties": { | 748 "properties": { |
750 "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."}, |
751 "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."}, |
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 "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."} |
753 }, | 752 } |
754 "optional": true | |
755 }, | 753 }, |
756 { | 754 { |
757 "type": "function", | 755 "type": "function", |
758 "name": "callback", | 756 "name": "callback", |
759 "optional": true, | 757 "optional": true, |
760 "description": "When all css are inserted, this callback is called."
, | 758 "description": "When all css are inserted, this callback is called."
, |
761 "parameters": [] | 759 "parameters": [] |
762 } | 760 } |
763 ] | 761 ] |
764 } | 762 } |
(...skipping 1185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1950 "type": "function", | 1948 "type": "function", |
1951 "description": "Logs a message during internal unit testing.", | 1949 "description": "Logs a message during internal unit testing.", |
1952 "parameters": [ | 1950 "parameters": [ |
1953 {"type": "string", "name": "message"} | 1951 {"type": "string", "name": "message"} |
1954 ] | 1952 ] |
1955 } | 1953 } |
1956 ], | 1954 ], |
1957 "events": [] | 1955 "events": [] |
1958 } | 1956 } |
1959 ] | 1957 ] |
OLD | NEW |