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."
172 "description": "A function that is called upon request completion.",
176 "description": "An ExtensionPanel object representing the created panel.",
177 "$ref": "ExtensionPanel"
186 "namespace": "experimental.webInspector.resources",
191 "description": "Represents a resource (document, script, image etc). See HAR Specification for reference.",
194 "name": "getContent",
196 "description": "Returns resource content.",
201 "description": "A function that is called upon request completion.",
206 "description": "Resource content (potentially encoded)."
211 "description": "Empty if content is not encoded, encoding name otherwise. Currently, only base64 supported."
224 "description": "Returns HAR archive that contains all known resource objects.",
229 "description": "A function that is called upon request completion.",
234 "description": "A HAR archieve. See HAR specification for details."
243 "name": "onFinished",
245 "description": "Fired when a resource request is finished and all resource data are available.",
247 { "name": "resource", "$ref": "Resource" }
251 "name": "onNavigation",
253 "description": "Fired when an inspected window navigates to a new URL.",
258 "description": "URL of the new page."
265 "namespace": "experimental.webInspector.audits",
268 "name": "addCategory",
270 "description": "Adds an audit category.",
272 { "name": "displayName", "type": "string", "description": "A display name for the category" },
273 { "name": "resultCount", "type": "number", "description": "The expected number of audit results in the category." }
276 "$ref": "AuditCategory"
282 "id": "AuditCategory",
284 "description": "A set of audit rules",
287 "name": "onAuditStarted",
289 "description": "Fired when the audit is started, if the category is enabled -- the extension is expected to begin executing audit rules.",
291 { "name": "results", "$ref": "AuditResults" }
297 "id": "FormattedValue",
299 "description": "A value returned from one of the formatters (an URL, code snippet etc), to be passed to createResult or addChild"
302 "id": "AuditResults",
304 "description": "A collection of audit results for current run of the audit category",
311 "name": "displayName",
313 "description": "A concise, high-level description of audit rule result"
316 "name": "description",
318 "description": "A detailed description of what the displayName means"
322 "$ref": "AuditResultSeverety"
326 "$ref": "AuditResultNode",
328 "description": "A subtree that appears under added result that may provide additional details on the violations found"
333 "name": "createResult",
335 "description": "Creates a result node that may be user as details parameters to addResult",
338 "name": "content ...",
340 { "type": "string" },
341 { "$ref": "FormattedValue" }
343 "description": "Either string or formatted values returned by one of AuditResult formatters (url, snippet etc)"
347 "$ref": "AuditResultNode"
353 "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."
358 "description": "Render passed value as an URL in the Audits panel",
360 { "name": "href", "type": "string", "description": "An URL that will appear as href value on resulting link" },
361 { "name": "displayText", "type": "string", "description": "A text that will appear to user", "optional": true }
363 "returns": { "$ref": "FormattedValue" }
368 "description": "Render passed text as a code snippet in the Audits panel",
370 { "name": "text", "type": "string", "description": "Snippet text" }
372 "returns": { "$ref": "FormattedValue" }
377 "$ref": "AuditResultSeverity",
378 "description": "A class that contains possible values for audit result severities."
382 "description": "The contents of the node."
387 "items": { "$ref": "AuditResultNode" },
388 "description": "Children of this node."
393 "description": "Whether the node is expanded by default."
398 "id": "AuditResultNode",
400 "description": "A node in the audit result trees. Displays some content and optionally has children node",
404 "description": "Adds another child node to this node",
407 "name": "content ...",
409 { "type": "string" },
410 { "$ref": "FormattedValue" }
412 "description": "Either string or formatted values returned by one of AuditResult formatters (url, snippet etc)"
416 "$ref": "AuditResultNode"
423 "description": "If set, the subtree will always be expanded"
428 "id": "AuditResultSeverity",