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

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

Issue 8392043: Document optional parameters of ...devtools.inspectedWindow.reload() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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
« no previous file with comments | « no previous file | chrome/common/extensions/docs/experimental.devtools.inspectedWindow.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/devtools_api.json
diff --git a/chrome/common/extensions/api/devtools_api.json b/chrome/common/extensions/api/devtools_api.json
index e0f0e646d4e41f53a6c21cb5d46b5d9fde9d3522..b398c2237d28e9259b7c6fe4e4ba1db45f4e186e 100644
--- a/chrome/common/extensions/api/devtools_api.json
+++ b/chrome/common/extensions/api/devtools_api.json
@@ -109,13 +109,29 @@
{
"name": "reload",
"type": "function",
- "description": "Reloads the inspected page, optionally setting override for the user agent string.",
+ "description": "Reloads the inspected page.",
"parameters": [
{
- "name": "userAgent",
- "type": "string",
+ "type": "object",
+ "name": "reloadOptions",
"optional": true,
- "description": "A user agent override string."
+ "properties": {
+ "ignoreCache": {
+ "type": "boolean",
+ "optional": true,
+ "description": "When true, the loader will ignore cache for all inspected page resources loaded before the <code>load</code> event is fired. The effect is similar to pressing Ctrl+Shift+R in the inspected window or within the Developer Tools window."
kathyw 2011/10/26 18:02:28 cache -> the cache
+ },
+ "userAgent": {
+ "type": "string",
+ "optional": true,
+ "description": "If specified, the string will override the value of <code>User-Agent</code> HTTP header sent while loading the resources of inspected page and the value of the <code>navigator.userAgent</code> property returned to the scripts running within the inspected page."
kathyw 2011/10/26 18:02:28 This sentence is very long, is missing some articl
+ },
+ "injectedScript": {
+ "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 user presses Ctrl+R."
kathyw 2011/10/26 18:02:28 , for example -> &mdash;for example
+ }
+ }
}
]
},
« no previous file with comments | « no previous file | chrome/common/extensions/docs/experimental.devtools.inspectedWindow.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698