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

Side by Side Diff: chrome/common/extensions/api/devtools/inspected_window.json

Issue 2179673002: Clean up DevTools API docs following removal of old APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 [ 5 [
6 { 6 {
7 "namespace": "devtools.inspectedWindow", 7 "namespace": "devtools.inspectedWindow",
8 "description": "Use the <code>chrome.devtools.inspectedWindow</code> API to interact with the inspected window: obtain the tab ID for the inspected page, ev aluate the code in the context of the inspected window, reload the page, or obta in the list of resources within the page.", 8 "description": "Use the <code>chrome.devtools.inspectedWindow</code> API to interact with the inspected window: obtain the tab ID for the inspected page, ev aluate the code in the context of the inspected window, reload the page, or obta in the list of resources within the page.",
9 "nocompile": true, 9 "nocompile": true,
10 "types": [ 10 "types": [
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 }, 183 },
184 "userAgent": { 184 "userAgent": {
185 "type": "string", 185 "type": "string",
186 "optional": true, 186 "optional": true,
187 "description": "If specified, the string will override the value of the <code>User-Agent</code> HTTP header that's sent while loading the resour ces 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 runn ing within the inspected page." 187 "description": "If specified, the string will override the value of the <code>User-Agent</code> HTTP header that's sent while loading the resour ces 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 runn ing within the inspected page."
188 }, 188 },
189 "injectedScript": { 189 "injectedScript": {
190 "type": "string", 190 "type": "string",
191 "optional": true, 191 "optional": true,
192 "description": "If specified, the script will be injected into e very 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 ex ample, if the user presses Ctrl+R." 192 "description": "If specified, the script will be injected into e very 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 ex ample, if the user presses Ctrl+R."
193 },
194 "preprocessorScript": {
195 "type": "string",
196 "deprecated": "Please avoid using this parameter, it will be rem oved soon.",
197 "optional": true,
198 "description": "If specified, this script evaluates into a funct ion that accepts three string arguments: the source to preprocess, the URL of th e source, and a function name if the source is an DOM event handler. The preproc essorerScript 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 ret urned source must compile to a single JS function."
199 } 193 }
200 } 194 }
201 } 195 }
202 ] 196 ]
203 }, 197 },
204 { 198 {
205 "name": "getResources", 199 "name": "getResources",
206 "type": "function", 200 "type": "function",
207 "description": "Retrieves the list of resources from the inspected page. ", 201 "description": "Retrieves the list of resources from the inspected page. ",
208 "parameters": [ 202 "parameters": [
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 { 238 {
245 "name": "content", 239 "name": "content",
246 "type": "string", 240 "type": "string",
247 "description": "New content of the resource." 241 "description": "New content of the resource."
248 } 242 }
249 ] 243 ]
250 } 244 }
251 ] 245 ]
252 } 246 }
253 ] 247 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698