Index: chrome/common/extensions/api/tabs.json |
diff --git a/chrome/common/extensions/api/tabs.json b/chrome/common/extensions/api/tabs.json |
index ef78c2ebab4d17e1e02071be1e77ec7bdc76ccc1..848bae4337cdbd928a24e92ac4f57df883ce8702 100644 |
--- a/chrome/common/extensions/api/tabs.json |
+++ b/chrome/common/extensions/api/tabs.json |
@@ -605,7 +605,13 @@ |
"properties": { |
"code": {"type": "string", "optional": true, "description": "JavaScript code 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 script is injected only into the top main frame."} |
+ "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 script is injected only into the top main frame."}, |
+ "runAt": { |
+ "type": "string", |
+ "optional": true, |
+ "enum": ["document_start", "document_end", "document_idle"], |
+ "description": "The soonest that the script will be injected into the tab. Defaults to \"document_idle\"." |
+ } |
} |
}, |
{ |
@@ -630,7 +636,13 @@ |
"properties": { |
"code": {"type": "string", "optional": true, "description": "CSS code 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 CSS is injected only into the top main frame."} |
+ "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 CSS is injected only into the top main frame."}, |
+ "runAt": { |
+ "type": "string", |
+ "optional": true, |
+ "enum": ["document_start", "document_end", "document_idle"], |
+ "description": "The soonest that the CSS will be injected into the tab. Defaults to \"document_idle\"." |
+ } |
} |
}, |
{ |