Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2839)

Unified Diff: chrome/common/extensions/api/extension_api.json

Issue 518013: Merge 32634 - Make executeScript and insertCSS inject code into all frames.... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/249/src/
Patch Set: Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.cc ('k') | chrome/common/render_messages_internal.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/extension_api.json
===================================================================
--- chrome/common/extensions/api/extension_api.json (revision 35240)
+++ 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": "Details of the script to run. Either the code or file property must be set, but both may not be set at the same time.",
"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": "Details of the css text to insert. Either the code or file property must be set, but both may not be set 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
},
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.cc ('k') | chrome/common/render_messages_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698