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

Unified Diff: chrome/common/extensions/api/devtools/inspected_window.json

Issue 283603003: fixes for issue #51 in devtools-docs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed some problems after figuring out how to preview the files Created 6 years, 7 months 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
Index: chrome/common/extensions/api/devtools/inspected_window.json
diff --git a/chrome/common/extensions/api/devtools/inspected_window.json b/chrome/common/extensions/api/devtools/inspected_window.json
index bd5b764a8c623cd27386401317f01a60b24f92cb..c9623b71f27073e0cd12fb5bcc69b78dd0caa43e 100644
--- a/chrome/common/extensions/api/devtools/inspected_window.json
+++ b/chrome/common/extensions/api/devtools/inspected_window.json
@@ -96,6 +96,29 @@
"description": "An expression to evaluate."
},
{
+ "name": "options",
+ "type": "object",
+ "optional": true,
+ "description": "The options parameter can contain one or more of three options.",
caseq 2014/05/15 14:31:34 nit: can we drop the exact options count? I bet we
mem 2014/05/15 20:19:03 Done.
+ "properties": {
+ "frameURL": {
+ "type": "string",
+ "optional": true,
+ "description": "Specify a frame other than the inspected window's top frame."
caseq 2014/05/15 14:31:34 If specified, the expression is evaluated on the i
mem 2014/05/15 20:19:03 Done.
+ },
+ "useContentScriptContext": {
+ "type": "boolean",
+ "optional": true,
+ "description": "Evaluate the expression in the JS context with the same Web Origin as this extension. If this extension has no content script, the result will be a console.warn message."
caseq 2014/05/15 14:31:34 "Evaluate the expression in the context of the con
mem 2014/05/15 20:19:03 Done.
+ },
+ "contextSecurityOrigin": {
+ "type": "string",
+ "optional": true,
+ "description": "Evaluate the expression in the JS environment with a WebOrigin matching the given string. If given, the contextSecurityOrigin overrides the 'true' setting on userContentScriptContext."
caseq 2014/05/15 14:31:34 ... in the context of a content script of an exten
mem 2014/05/15 20:19:03 Done.
+ }
+ }
+ },
+ {
"name": "callback",
"type": "function",
"description": "A function called when evaluation completes.",
@@ -109,8 +132,9 @@
},
{
"name": "isException",
caseq 2014/05/15 14:31:34 Let's also rename this to exception or exceptionIn
mem 2014/05/15 20:19:03 Done.
- "type": "boolean",
- "description": "Set if an exception was caught while evaluating the expression."
+ "type": "object",
+ "additionalProperties": {"type": "any"},
caseq 2014/05/15 14:31:34 We may want to document some properties. isErorr,
mem 2014/05/15 20:19:03 Done.
+ "description": "An object providing details if an exception occurred while evaluating the expression."
}
]
}
@@ -140,6 +164,11 @@
"type": "string",
"optional": true,
"description": "If specified, the script will be injected into every frame of the inspected page immediately upon load, before any of the frame's scripts. The script will not be injected after subsequent reloads—for example, if the user presses Ctrl+R."
+ },
+ "preprocessorScript": {
+ "type": "string",
+ "optional": true,
+ "description": "If specified, this is a JavaScript function that takes three string arguments: the source to preprocess, the URL of the source, and a function name if the source is an DOM event handler. The preprocessorerScript function should return a string to be compiled by Chrome in place of the input source. In the case that the source is a DOM event handler, the returned source must compile to a single JS function."
caseq 2014/05/15 14:31:34 "If specified, this is a script that evaluates int
mem 2014/05/15 20:19:03 Done.
}
}
}
« no previous file with comments | « no previous file | chrome/common/extensions/api/devtools/panels.json » ('j') | chrome/common/extensions/api/devtools/panels.json » ('J')

Powered by Google App Engine
This is Rietveld 408576698