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

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: review comments addressed 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..ca83d602987c64de6f21ef3927d8a255bfaff601 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 the 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."
+ },
+ "userAgent": {
+ "type": "string",
+ "optional": true,
+ "description": "If specified, the string will override the value of the <code>User-Agent</code> HTTP header that's sent while loading the resources of the inspected page. The string will also override the value of the <code>navigator.userAgent</code> property that's returned to any scripts that are running within the inspected page."
+ },
+ "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&mdash;for example, if the user presses Ctrl+R."
+ }
+ }
}
]
},
« 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