OLD | NEW |
---|---|
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.panels", | 7 "namespace": "devtools.panels", |
8 "description": "Use the <code>chrome.devtools.panels</code> API to integrate your extension into Developer Tools window UI: create your own panels, access e xisting panels, and add sidebars.", | 8 "description": "Use the <code>chrome.devtools.panels</code> API to integrate your extension into Developer Tools window UI: create your own panels, access e xisting panels, and add sidebars.", |
9 "nocompile": true, | 9 "nocompile": true, |
10 "types": [ | 10 "types": [ |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
249 "type": "function", | 249 "type": "function", |
250 "description": "Fired when the button is clicked." | 250 "description": "Fired when the button is clicked." |
251 } | 251 } |
252 ] | 252 ] |
253 } | 253 } |
254 ], | 254 ], |
255 "properties": { | 255 "properties": { |
256 "elements": { | 256 "elements": { |
257 "$ref": "ElementsPanel", | 257 "$ref": "ElementsPanel", |
258 "description": "Elements panel." | 258 "description": "Elements panel." |
259 }, | |
260 "sources": { | |
261 "$ref": "SourcesPanel", | |
262 "description": "Sources panel." | |
259 } | 263 } |
260 }, | 264 }, |
261 "functions": [ | 265 "functions": [ |
262 { | 266 { |
263 "name": "create", | 267 "name": "create", |
264 "type": "function", | 268 "type": "function", |
265 "description": "Creates an extension panel.", | 269 "description": "Creates an extension panel.", |
266 "parameters": [ | 270 "parameters": [ |
267 { | 271 { |
268 "name": "title", | 272 "name": "title", |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
306 "description": "A function that is called when the user clicks on a valid resource link in Developer Tools window. Note that if the user clicks an i nvalid URL or an XHR, this function is not called.", | 310 "description": "A function that is called when the user clicks on a valid resource link in Developer Tools window. Note that if the user clicks an i nvalid URL or an XHR, this function is not called.", |
307 "parameters": [ | 311 "parameters": [ |
308 { | 312 { |
309 "name": "resource", | 313 "name": "resource", |
310 "$ref": "devtools.inspectedWindow.Resource", | 314 "$ref": "devtools.inspectedWindow.Resource", |
311 "description": "A $(ref:devtools.inspectedWindow.Resource) objec t for the resource that was clicked." | 315 "description": "A $(ref:devtools.inspectedWindow.Resource) objec t for the resource that was clicked." |
312 } | 316 } |
313 ] | 317 ] |
314 } | 318 } |
315 ] | 319 ] |
320 }, | |
321 { | |
322 "name": "openResource", | |
323 "type": "function", | |
324 "description": "Allows extensions to open a URL in a Developer Tools pan el.", | |
caseq
2014/05/15 14:31:34
"Requests DevTools to open a URL..."
mem
2014/05/15 20:19:03
Done.
| |
325 "parameters": [ | |
326 { | |
327 "name": "url", | |
328 "type": "string", | |
329 "description": "The URL of the resource to open." | |
330 }, | |
331 { | |
332 "name": "lineNumber", | |
333 "type": "integer", | |
334 "description": "Specifies the line number to scroll to when the reso urce is loaded." | |
335 }, | |
336 { | |
337 "name": "callback", | |
338 "type": "function", | |
339 "optional": true, | |
340 "description": "A function that is called when the resource has been successfully loaded." | |
341 } | |
342 ] | |
343 }, | |
344 { | |
345 "name": "applyStyleSheet", | |
caseq
2014/05/15 14:31:34
Let's not make this one public yet, I'm not sure i
mem
2014/05/15 20:19:03
Done.
| |
346 "type": "function", | |
347 "description": "Allows you to customize the styling of the DevTools pane l.", | |
348 "parameters": [ | |
349 { | |
350 "name": "responseText", | |
351 "type": "string", | |
352 "description": "Contains the response from the request." | |
353 } | |
354 ] | |
316 } | 355 } |
317 ] | 356 ] |
318 } | 357 } |
319 ] | 358 ] |
OLD | NEW |