Chromium Code Reviews| Index: chrome/common/extensions/api/declarative_content.json |
| diff --git a/chrome/common/extensions/api/declarative_content.json b/chrome/common/extensions/api/declarative_content.json |
| index 7c383b58e2488cde704d5bc0a362beb348feebd4..61e82aebc6667d807d8700ccfba2469fcafeb5b7 100644 |
| --- a/chrome/common/extensions/api/declarative_content.json |
| +++ b/chrome/common/extensions/api/declarative_content.json |
| @@ -48,6 +48,29 @@ |
| "nodoc": true |
| } |
| } |
| + }, |
| + { |
| + "id": "RequestContentScript", |
| + "description": "Declarative event action that injects a content script.", |
| + "type": "object", |
| + "properties": { |
| + "css": { |
| + "type": "array", |
| + "optional": true, |
| + "description": "Names of CSS files to be injected as a part of content script.", |
| + "items": { "type": "string" } |
| + }, |
| + "js": { |
| + "type": "array", |
| + "optional": true, |
| + "description": "Names of Javascript files to be injected as a part of content script.", |
| + "items": { "type": "string" } |
| + }, |
| + "instanceType": { |
| + "type": "string", "enum": ["declarativeContent.RequestContentScript"], |
| + "nodoc": true |
| + } |
| + } |
| } |
| ], |
| "functions": [ |
| @@ -63,6 +86,39 @@ |
| "declarativeContent.ShowPageAction" |
| ] |
| } |
| + }, |
| + { |
| + "name": "onDocumentStart", |
| + "options": { |
| + "supportsListeners": false, |
| + "supportsRules": true, |
| + "conditions": ["declarativeContent.PageStateMatcher"], |
| + "actions": [ |
| + "declarativeContent.RequestContentScript" |
| + ] |
| + } |
| + }, |
| + { |
| + "name": "onDocumentEnd", |
| + "options": { |
| + "supportsListeners": false, |
| + "supportsRules": true, |
| + "conditions": ["declarativeContent.PageStateMatcher"], |
| + "actions": [ |
| + "declarativeContent.RequestContentScript" |
| + ] |
| + } |
| + }, |
| + { |
| + "name": "onDocumentIdle", |
|
not at google - send to devlin
2014/06/25 14:38:57
please document these 3 events (makes sense to use
Mark Dittmer
2014/06/26 17:23:23
Done.
|
| + "options": { |
| + "supportsListeners": false, |
| + "supportsRules": true, |
| + "conditions": ["declarativeContent.PageStateMatcher"], |
| + "actions": [ |
| + "declarativeContent.RequestContentScript" |
| + ] |
| + } |
| } |
| ] |
| } |