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..f4f0b01812452ea9767cffdcc288b0ceadaf9486 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.", |
not at google - send to devlin
2014/07/08 15:25:59
"...part of the content script" same below
Mark Dittmer
2014/07/10 15:53:58
Done.
|
+ "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" } |
+ }, |
not at google - send to devlin
2014/07/08 15:25:59
can we also support "allFrames" and "matchAboutBla
Mark Dittmer
2014/07/10 15:53:58
Done. Also added code to store these in RequestCon
|
+ "instanceType": { |
+ "type": "string", "enum": ["declarativeContent.RequestContentScript"], |
+ "nodoc": true |
+ } |
+ } |
} |
], |
"functions": [ |
@@ -60,7 +83,8 @@ |
"supportsRules": true, |
"conditions": ["declarativeContent.PageStateMatcher"], |
"actions": [ |
- "declarativeContent.ShowPageAction" |
+ "declarativeContent.ShowPageAction", |
+ "declarativeContent.RequestContentScript" |
not at google - send to devlin
2014/07/08 15:25:58
nit: alphabetic
Mark Dittmer
2014/07/10 15:53:58
Done.
|
] |
} |
} |