Index: chrome/common/extensions/api/tabs.json |
diff --git a/chrome/common/extensions/api/tabs.json b/chrome/common/extensions/api/tabs.json |
index 735f00e69c20d13183aee729ce4d11e9bea4b804..419b9b95d094574cd2b6dbb10f7911385f41d68a 100644 |
--- a/chrome/common/extensions/api/tabs.json |
+++ b/chrome/common/extensions/api/tabs.json |
@@ -562,7 +562,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": ["now", "document_start", "document_end", "document_idle"], |
+ "descrption": "The soonest that the script will be injected into the tab. Defaults to \"document_idle\"" |
Aaron Boodman
2012/03/03 00:59:10
Add a period to the end of this sentence. Same bel
eaugusti
2012/03/27 00:43:33
Done.
|
+ } |
} |
}, |
{ |
@@ -587,7 +593,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": ["now", "document_start", "document_end", "document_idle"], |
+ "descrption": "The soonest that the CSS will be injected into the tab. Defaults to \"document_idle\"" |
+ } |
} |
}, |
{ |