Chromium Code Reviews| 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": "Note: code or file can't be specified at the same ti me.", |
|
Aaron Boodman
2009/11/19 21:16:22
Make the description:
Details of the script to ru
| |
| 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": "Note: code or file can't be specified at the same ti me.", |
| 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 986 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1746 "type": "function", | 1748 "type": "function", |
| 1747 "description": "Logs a message during internal unit testing.", | 1749 "description": "Logs a message during internal unit testing.", |
| 1748 "parameters": [ | 1750 "parameters": [ |
| 1749 {"type": "string", "name": "message"} | 1751 {"type": "string", "name": "message"} |
| 1750 ] | 1752 ] |
| 1751 } | 1753 } |
| 1752 ], | 1754 ], |
| 1753 "events": [] | 1755 "events": [] |
| 1754 } | 1756 } |
| 1755 ] | 1757 ] |
| OLD | NEW |