3 "namespace": "experimental.webInspector.panels",
6 "id": "PanelWithSidebars",
8 "isInstanceOf": "Panel",
9 "description": "A panel within Web Inspector UI that has sidebars.",
12 "name": "createSidebarPane",
14 "description": "Creates a pane within panel's sidebar.",
19 "description": "A text that is displayed in sidebar caption."
24 "description": "A callback invoked when sidebar is created",
28 "description": "An ExtensionSidebarPane object for created sidebar pane",
29 "$ref": "ExtensionSidebarPane"
38 "id": "ElementsPanel",
40 "isInstanceOf": "PanelWithSidebars",
41 "description": "Represents Elements panel",
44 "name": "onSelectionChanged",
45 "description": "Fired when an objects is selected in the panel."
50 "id": "ExtensionPanel",
52 "isInstanceOf": "Panel",
53 "description": "Represents a panel created by extension",
57 "description": "Fired upon a search action (start of a new search, search result navigation or search being canceled).",
62 "description": "Type of search action being performed."
65 "name": "queryString",
68 "description": "Query string (only for 'performSearch')"
75 "id": "ExtensionSidebarPane",
77 "description": "A sidebar created by the extension.",
82 "description": "Sets the height of the sidebar.",
87 "description": "A CSS-like size specification, e.g. '10px' or '12pt'"
92 "name": "setExpression",
94 "description": "Sets an expression that is evaluated within the inspected page. The result is displayed in the sidebar pane.",
99 "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."
105 "description": "An optional title for the root of the expression tree."
112 "description": "Sets a JSON-compliant object to be displayed in the sidebar pane.",
115 "name": "jsonObject",
117 "description": "An object to be displayed in context of the inspected page. Evaluated in the context of the caller (API client)."
123 "description": "An optional title for the root of the expression tree."
130 "description": "Sets an HTML page to be displayed in the sidebar pane.",
135 "description": "An URL of an extension page to display within the sidebar."
144 "$ref": "ScriptsPanel",
145 "description": "Scripts panel"
152 "description": "Creates an extension panel.",
157 "description": "Title that is displayed under the extension icon in the toolbar."
162 "description": "An URL of the toolbar icon."
167 "description": "An URL of the page that represents this panel."
171 "$ref": "ExtensionPanel",
172 "description": "A panel that was created."
178 "namespace": "experimental.webInspector.resources",
183 "description": "Represents a resource (document, script, image etc). See HAR Specification for reference.",
186 "name": "getContent",
188 "description": "Returns resource content.",
193 "description": "A function that is called upon request completion.",
198 "description": "Resource content (potentially encoded)."
203 "description": "Empty if content is not encoded, encoding name otherwise. Currently, only base64 supported."
216 "description": "Returns HAR archive that contains all known resource objects.",
221 "description": "A function that is called upon request completion.",
226 "description": "A HAR archieve. See HAR specification for details."
235 "name": "onFinished",
237 "description": "Fired when a resource request is finished and all resource data are available.",
239 { "name": "resource", "$ref": "Resource" }
245 "namespace": "experimental.webInspector.audits",
248 "name": "addCategory",
250 "description": "Adds an audit category.",
252 { "name": "displayName", "type": "string", "description": "A display name for the category" },
253 { "name": "resultCount", "type": "number", "description": "The expected number of audit results in the category." }
256 "$ref": "AuditCategory"
262 "id": "AuditCategory",
264 "description": "A set of audit rules",
267 "name": "onAuditStarted",
269 "description": "Fired when the audit is started, if the category is enabled -- the extension is expected to begin executing audit rules.",
271 { "name": "results", "$ref": "AuditResults" }
277 "id": "FormattedValue",
279 "description": "A value returned from one of the formatters (an URL, code snippet etc), to be passed to createResult or addChild"
282 "id": "AuditResults",
284 "description": "A collection of audit results for current run of the audit category",
291 "name": "displayName",
293 "description": "A concise, high-level description of audit rule result"
296 "name": "description",
298 "description": "A detailed description of what the displayName means"
302 "$ref": "AuditResultSeverety"
306 "$ref": "AuditResultNode",
308 "description": "A subtree that appears under added result that may provide additional details on the violations found"
313 "name": "createResult",
315 "description": "Creates a result node that may be user as details parameters to addResult",
318 "name": "content ...",
320 { "type": "string" },
321 { "$ref": "FormattedValue" }
323 "description": "Either string or formatted values returned by one of AuditResult formatters (url, snippet etc)"
327 "$ref": "AuditResultNode"
333 "description": "Signals the WebInspector Audits panel that the run of this category is over. Normally the run completes automatically when a number of added top-level results is equal to that declared when AuditCategory was created."
338 "description": "Render passed value as an URL in the Audits panel",
340 { "name": "href", "type": "string", "description": "An URL that will appear as href value on resulting link" },
341 { "name": "displayText", "type": "string", "description": "A text that will appear to user", "optional": true }
343 "returns": { "$ref": "FormattedValue" }
348 "description": "Render passed text as a code snippet in the Audits panel",
350 { "name": "text", "type": "string", "description": "Snippet text" }
352 "returns": { "$ref": "FormattedValue" }
357 "$ref": "AuditResultSeverity",
358 "description": "A class that contains possible values for audit result severities."
362 "description": "The contents of the node."
367 "items": { "$ref": "AuditResultNode" },
368 "description": "Children of this node."
373 "description": "Whether the node is expanded by default."
378 "id": "AuditResultNode",
380 "description": "A node in the audit result trees. Displays some content and optionally has children node",
384 "description": "Adds another child node to this node",
387 "name": "content ...",
389 { "type": "string" },
390 { "$ref": "FormattedValue" }
392 "description": "Either string or formatted values returned by one of AuditResult formatters (url, snippet etc)"
396 "$ref": "AuditResultNode"
403 "description": "If set, the subtree will always be expanded"
408 "id": "AuditResultSeverity",