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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
281 ] | 281 ] |
282 }, | 282 }, |
283 { | 283 { |
284 "name": "onHidden", | 284 "name": "onHidden", |
285 "type": "function", | 285 "type": "function", |
286 "description": "Fired when the user switches away from the panel." | 286 "description": "Fired when the user switches away from the panel." |
287 } | 287 } |
288 ] | 288 ] |
289 }, | 289 }, |
290 { | 290 { |
291 "id": "ExtensionSidebarPane", | |
Aaron Boodman
2011/12/21 08:38:20
Wrong 'sidebar'. This should stay.
| |
292 "type": "object", | |
293 "description": "A sidebar created by the extension.", | |
294 "functions": [ | |
295 { | |
296 "name": "setHeight", | |
297 "type": "function", | |
298 "description": "Sets the height of the sidebar.", | |
299 "parameters": [ | |
300 { | |
301 "name": "height", | |
302 "type": "string", | |
303 "description": "A CSS-like size specification, such as <code>'10 0px'</code> or <code>'12ex'</code>." | |
304 } | |
305 ] | |
306 }, | |
307 { | |
308 "name": "setExpression", | |
309 "type": "function", | |
310 "description": "Sets an expression that is evaluated within the insp ected page. The result is displayed in the sidebar pane.", | |
311 "parameters": [ | |
312 { | |
313 "name": "expression", | |
314 "type": "string", | |
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." | |
316 }, | |
317 { | |
318 "name": "rootTitle", | |
319 "type": "string", | |
320 "optional": true, | |
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 expression evaluation results." | |
328 } | |
329 ] | |
330 }, | |
331 { | |
332 "name": "setObject", | |
333 "type": "function", | |
334 "description": "Sets a JSON-compliant object to be displayed in the sidebar pane.", | |
335 "parameters": [ | |
336 { | |
337 "name": "jsonObject", | |
338 "type": "string", | |
339 "description": "An object to be displayed in context of the insp ected page. Evaluated in the context of the caller (API client)." | |
340 }, | |
341 { | |
342 "name": "rootTitle", | |
343 "type": "string", | |
344 "optional": true, | |
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." | |
352 } | |
353 ] | |
354 }, | |
355 { | |
356 "name": "setPage", | |
357 "type": "function", | |
358 "description": "Sets an HTML page to be displayed in the sidebar pan e.", | |
359 "parameters": [ | |
360 { | |
361 "name": "path", | |
362 "type": "string", | |
363 "description": "Relative path of an extension page to display wi thin the sidebar." | |
364 } | |
365 ] | |
366 } | |
367 ], | |
368 "events": [ | |
369 { | |
370 "name": "onShown", | |
371 "type": "function", | |
372 "description": "Fired when the sidebar pane becomes visible as a res ult of user switching to the panel that hosts it.", | |
373 "parameters": [ | |
374 { | |
375 "name": "window", | |
376 "type": "DOMWindow", | |
377 "optional": true, | |
378 "description": "The <code>window</code> object of the sidebar pa ge, if one was set with the <code>setPage()</code> method." | |
379 } | |
380 ] | |
381 }, | |
382 { | |
383 "name": "onHidden", | |
384 "type": "function", | |
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." | |
386 } | |
387 ] | |
388 }, | |
389 { | |
390 "id": "Button", | 291 "id": "Button", |
391 "type": "object", | 292 "type": "object", |
392 "description": "A button created by the extension.", | 293 "description": "A button created by the extension.", |
393 "functions": [ | 294 "functions": [ |
394 { | 295 { |
395 "name": "update", | 296 "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.", | 297 "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": [ | 298 "parameters": [ |
398 { | 299 { |
399 "name": "iconPath", | 300 "name": "iconPath", |
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
836 "type": "string" | 737 "type": "string" |
837 }, | 738 }, |
838 "Severe": { | 739 "Severe": { |
839 "type": "string" | 740 "type": "string" |
840 } | 741 } |
841 } | 742 } |
842 } | 743 } |
843 ] | 744 ] |
844 } | 745 } |
845 ] | 746 ] |
OLD | NEW |