Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 [ | 1 [ |
| 2 { | 2 { |
| 3 "namespace": "experimental.devtools.inspectedWindow", | 3 "namespace": "experimental.devtools.inspectedWindow", |
| 4 "types": [ | 4 "types": [ |
| 5 { | 5 { |
| 6 "id": "Resource", | 6 "id": "Resource", |
| 7 "type": "object", | 7 "type": "object", |
| 8 "description": "A resource within the inspected page, such as a document , a script, or an image.", | 8 "description": "A resource within the inspected page, such as a document , a script, or an image.", |
| 9 "properties": { | 9 "properties": { |
| 10 "url": { | 10 "url": { |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 219 ] | 219 ] |
| 220 } | 220 } |
| 221 ] | 221 ] |
| 222 } | 222 } |
| 223 ] | 223 ] |
| 224 }, | 224 }, |
| 225 { | 225 { |
| 226 "id": "ExtensionPanel", | 226 "id": "ExtensionPanel", |
| 227 "type": "object", | 227 "type": "object", |
| 228 "description": "Represents a panel created by extension.", | 228 "description": "Represents a panel created by extension.", |
| 229 "functions": [ | |
| 230 { | |
| 231 "name": "createStatusBarButton", | |
| 232 "description": "Appends a button to the status bar of the panel.", | |
| 233 "parameters": [ | |
| 234 { | |
| 235 "name": "iconPath", | |
| 236 "type": "string", | |
| 237 "description": "Path to the icon of the button. The file should contain a 64x24 pixels image composed of two 32x24 icons. The left icon is used for inactive state of the button and the right one is displayed while the button is depressed." | |
| 238 }, | |
| 239 { | |
| 240 "name": "tooltipText", | |
| 241 "type": "string", | |
| 242 "description": "Text shown as a tooltip when user hovers the mou se over the button." | |
| 243 }, | |
| 244 { | |
| 245 "name": "disabled", | |
| 246 "type": "boolean", | |
| 247 "description": "Whether the button is disabled." | |
| 248 } | |
| 249 ], | |
| 250 "returns": { "$ref": "Button" } | |
| 251 } | |
| 252 ], | |
| 229 "events": [ | 253 "events": [ |
| 230 { | 254 { |
| 231 "name": "onSearch", | 255 "name": "onSearch", |
| 232 "description": "Fired upon a search action (start of a new search, s earch result navigation, or search being canceled).", | 256 "description": "Fired upon a search action (start of a new search, s earch result navigation, or search being canceled).", |
| 233 "parameters": [ | 257 "parameters": [ |
| 234 { | 258 { |
| 235 "name": "action", | 259 "name": "action", |
| 236 "type": "string", | 260 "type": "string", |
| 237 "description": "Type of search action being performed." | 261 "description": "Type of search action being performed." |
| 238 }, | 262 }, |
| (...skipping 30 matching lines...) Expand all Loading... | |
| 269 "description": "A sidebar created by the extension.", | 293 "description": "A sidebar created by the extension.", |
| 270 "functions": [ | 294 "functions": [ |
| 271 { | 295 { |
| 272 "name": "setHeight", | 296 "name": "setHeight", |
| 273 "type": "function", | 297 "type": "function", |
| 274 "description": "Sets the height of the sidebar.", | 298 "description": "Sets the height of the sidebar.", |
| 275 "parameters": [ | 299 "parameters": [ |
| 276 { | 300 { |
| 277 "name": "height", | 301 "name": "height", |
| 278 "type": "string", | 302 "type": "string", |
| 279 "description": "A CSS-like size specification, e.g. '10px' or '1 2pt'." | 303 "description": "A CSS-like size specification, such as <code>'10 0px'</code> or <code>'12ex'</code>." |
| 280 } | 304 } |
| 281 ] | 305 ] |
| 282 }, | 306 }, |
| 283 { | 307 { |
| 284 "name": "setExpression", | 308 "name": "setExpression", |
| 285 "type": "function", | 309 "type": "function", |
| 286 "description": "Sets an expression that is evaluated within the insp ected page. The result is displayed in the sidebar pane.", | 310 "description": "Sets an expression that is evaluated within the insp ected page. The result is displayed in the sidebar pane.", |
| 287 "parameters": [ | 311 "parameters": [ |
| 288 { | 312 { |
| 289 "name": "expression", | 313 "name": "expression", |
| 290 "type": "string", | 314 "type": "string", |
| 291 "description": "An expression to be evaluated in context of the inspected page. JavaScript objects and DOM nodes are displayed in an expandable tree similar to the console/watch." | 315 "description": "An expression to be evaluated in context of the inspected page. JavaScript objects and DOM nodes are displayed in an expandable tree similar to the console/watch." |
| 292 }, | 316 }, |
| 293 { | 317 { |
| 294 "name": "rootTitle", | 318 "name": "rootTitle", |
| 295 "type": "string", | 319 "type": "string", |
| 296 "optional": true, | 320 "optional": true, |
| 297 "description": "An optional title for the root of the expression tree." | 321 "description": "An optional title for the root of the expression tree." |
| 322 }, | |
| 323 { | |
| 324 "name": "callback", | |
| 325 "type": "function", | |
| 326 "optional": true, | |
| 327 "description": "A callback invoked after the sidebar pane is upd ated with the the expression evaluation results." | |
|
mkearney
2011/11/18 18:56:52
Remove extra 'the'.
| |
| 298 } | 328 } |
| 299 ] | 329 ] |
| 300 }, | 330 }, |
| 301 { | 331 { |
| 302 "name": "setObject", | 332 "name": "setObject", |
| 303 "type": "function", | 333 "type": "function", |
| 304 "description": "Sets a JSON-compliant object to be displayed in the sidebar pane.", | 334 "description": "Sets a JSON-compliant object to be displayed in the sidebar pane.", |
| 305 "parameters": [ | 335 "parameters": [ |
| 306 { | 336 { |
| 307 "name": "jsonObject", | 337 "name": "jsonObject", |
| 308 "type": "string", | 338 "type": "string", |
| 309 "description": "An object to be displayed in context of the insp ected page. Evaluated in the context of the caller (API client)." | 339 "description": "An object to be displayed in context of the insp ected page. Evaluated in the context of the caller (API client)." |
| 310 }, | 340 }, |
| 311 { | 341 { |
| 312 "name": "rootTitle", | 342 "name": "rootTitle", |
| 313 "type": "string", | 343 "type": "string", |
| 314 "optional": true, | 344 "optional": true, |
| 315 "description": "An optional title for the root of the expression tree." | 345 "description": "An optional title for the root of the expression tree." |
| 346 }, | |
| 347 { | |
| 348 "name": "callback", | |
| 349 "type": "function", | |
| 350 "optional": true, | |
| 351 "description": "A callback invoked after the sidebar is updated with the object." | |
| 316 } | 352 } |
| 317 ] | 353 ] |
| 318 }, | 354 }, |
| 319 { | 355 { |
| 320 "name": "setPage", | 356 "name": "setPage", |
| 321 "type": "function", | 357 "type": "function", |
| 322 "description": "Sets an HTML page to be displayed in the sidebar pan e.", | 358 "description": "Sets an HTML page to be displayed in the sidebar pan e.", |
| 323 "parameters": [ | 359 "parameters": [ |
| 324 { | 360 { |
| 325 "name": "path", | 361 "name": "path", |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 342 "description": "The <code>window</code> object of the sidebar pa ge, if one was set with the <code>setPage()</code> method." | 378 "description": "The <code>window</code> object of the sidebar pa ge, if one was set with the <code>setPage()</code> method." |
| 343 } | 379 } |
| 344 ] | 380 ] |
| 345 }, | 381 }, |
| 346 { | 382 { |
| 347 "name": "onHidden", | 383 "name": "onHidden", |
| 348 "type": "function", | 384 "type": "function", |
| 349 "description": "Fired when the sidebar pane becomes hidden as a resu lt of the user switching away from the panel that hosts the sidebar pane." | 385 "description": "Fired when the sidebar pane becomes hidden as a resu lt of the user switching away from the panel that hosts the sidebar pane." |
| 350 } | 386 } |
| 351 ] | 387 ] |
| 388 }, | |
| 389 { | |
| 390 "id": "Button", | |
| 391 "type": "object", | |
| 392 "description": "A button created by the extension.", | |
| 393 "functions": [ | |
| 394 { | |
| 395 "name": "update", | |
| 396 "description": "Updates the attributes of the button. If some of the arguments are omitted or <code>null</code>, the corresponding attributes are no t updated.", | |
| 397 "parameters": [ | |
| 398 { | |
| 399 "name": "iconPath", | |
| 400 "type": "string", | |
| 401 "optional": true, | |
| 402 "description": "Path to the new icon of the button." | |
| 403 }, | |
| 404 { | |
| 405 "name": "tooltipText", | |
| 406 "type": "string", | |
| 407 "optional": true, | |
| 408 "description": "Text shown as a tooltip when user hovers the mou se over the button." | |
| 409 }, | |
| 410 { | |
| 411 "name": "disabled", | |
| 412 "type": "boolean", | |
| 413 "optional": true, | |
| 414 "description": "Whether the button is disabled." | |
| 415 } | |
| 416 ] | |
| 417 } | |
| 418 ], | |
| 419 "events": [ | |
| 420 { | |
| 421 "name": "onClicked", | |
| 422 "type": "function", | |
| 423 "description": "Fired when the button is clicked." | |
| 424 } | |
| 425 ] | |
| 352 } | 426 } |
| 353 ], | 427 ], |
| 354 "properties": { | 428 "properties": { |
| 355 "elements": { | 429 "elements": { |
| 356 "$ref": "ElementsPanel", | 430 "$ref": "ElementsPanel", |
| 357 "description": "Elements panel." | 431 "description": "Elements panel." |
| 358 } | 432 } |
| 359 }, | 433 }, |
| 360 "functions": [ | 434 "functions": [ |
| 361 { | 435 { |
| (...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 762 "type": "string" | 836 "type": "string" |
| 763 }, | 837 }, |
| 764 "Severe": { | 838 "Severe": { |
| 765 "type": "string" | 839 "type": "string" |
| 766 } | 840 } |
| 767 } | 841 } |
| 768 } | 842 } |
| 769 ] | 843 ] |
| 770 } | 844 } |
| 771 ] | 845 ] |
| OLD | NEW |