| 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": "Requests DevTools to open a URL in a Developer Tools pan
el.", |
| 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 ] |
| 316 } | 343 } |
| 317 ] | 344 ] |
| 318 } | 345 } |
| 319 ] | 346 ] |
| OLD | NEW |