Chromium Code Reviews| Index: chrome/common/extensions/api/extension_api.json |
| =================================================================== |
| --- chrome/common/extensions/api/extension_api.json (revision 32199) |
| +++ chrome/common/extensions/api/extension_api.json (working copy) |
| @@ -717,11 +717,12 @@ |
| {"type": "integer", "name": "tabId", "optional": true, "description": "The id of tab which run the script, default to selected tab of current window."}, |
| { |
| "type": "object", |
| - "name": "scriptDef", |
| - "description": "Note:scripts are injected in the following definition order.", |
| + "name": "details", |
| + "description": "Note: code or file can't be specified at the same time.", |
|
Aaron Boodman
2009/11/19 21:16:22
Make the description:
Details of the script to ru
|
| "properties": { |
| "code": {"type": "string", "optional": true, "description": "JavaScript code to execute."}, |
| - "file": {"type": "string", "optional": true, "description": "JavaScript file to execute."} |
| + "file": {"type": "string", "optional": true, "description": "JavaScript file to execute."}, |
| + "allFrames": {"type": "boolean", "optional": true, "description": "If allFrames is true, this function injects script into all frames of current page. By default, it's false and only inject script into top main frame."} |
| }, |
| "optional": true |
| }, |
| @@ -742,11 +743,12 @@ |
| {"type": "integer", "name": "tabId", "optional": true, "description": "The id of tab which run the script, default to selected tab of current window."}, |
| { |
| "type": "object", |
| - "name": "scriptDef", |
| - "description": "Note:css are injected in the following definition order.", |
| + "name": "details", |
| + "description": "Note: code or file can't be specified at the same time.", |
| "properties": { |
| "code": {"type": "string", "optional": true, "description": "CSS code to be injected."}, |
| - "file": {"type": "string", "optional": true, "description": "CSS file to be injected."} |
| + "file": {"type": "string", "optional": true, "description": "CSS file to be injected."}, |
| + "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."} |
| }, |
| "optional": true |
| }, |