Web Inspector: Restrict domains at the target level instead of only at the window...
[WebKit-https.git] / Source / WebInspectorUI / Versions / Inspector-iOS-10.0.json
1 {"domains":[
2 {
3     "domain": "ApplicationCache",
4     "availability": ["web"],
5     "types": [
6         {
7             "id": "ApplicationCacheResource",
8             "type": "object",
9             "description": "Detailed application cache resource information.",
10             "properties": [
11                 { "name": "url", "type": "string", "description": "Resource url." },
12                 { "name": "size", "type": "integer", "description": "Resource size." },
13                 { "name": "type", "type": "string", "description": "Resource type." }
14             ]
15         },
16         {
17             "id": "ApplicationCache",
18             "type": "object",
19             "description": "Detailed application cache information.",
20             "properties": [
21                 { "name": "manifestURL", "type": "string", "description": "Manifest URL." },
22                 { "name": "size", "type": "number", "description": "Application cache size." },
23                 { "name": "creationTime", "type": "number", "description": "Application cache creation time." },
24                 { "name": "updateTime", "type": "number", "description": "Application cache update time." },
25                 { "name": "resources", "type": "array", "items": { "$ref": "ApplicationCacheResource" }, "description": "Application cache resources." }
26             ]
27         },
28         {
29             "id": "FrameWithManifest",
30             "type": "object",
31             "description": "Frame identifier - manifest URL pair.",
32             "properties": [
33                 { "name": "frameId", "$ref": "Network.FrameId", "description": "Frame identifier." },
34                 { "name": "manifestURL", "type": "string", "description": "Manifest URL." },
35                 { "name": "status", "type": "integer", "description": "Application cache status." }
36             ]
37         }
38     ],
39     "commands": [
40         {
41             "name": "getFramesWithManifests",
42             "returns": [
43                 { "name": "frameIds", "type": "array", "items": { "$ref": "FrameWithManifest" }, "description": "Array of frame identifiers with manifest urls for each frame containing a document associated with some application cache." }
44             ],
45             "description": "Returns array of frame identifiers with manifest urls for each frame containing a document associated with some application cache."
46         },
47         {
48             "name": "enable",
49             "description": "Enables application cache domain notifications."
50         },
51         {
52             "name": "getManifestForFrame",
53             "parameters": [
54                 { "name": "frameId", "$ref": "Network.FrameId", "description": "Identifier of the frame containing document whose manifest is retrieved." }
55             ],
56             "returns": [
57                 { "name": "manifestURL", "type": "string", "description": "Manifest URL for document in the given frame." }
58             ],
59             "description": "Returns manifest URL for document in the given frame."
60         },
61         {
62             "name": "getApplicationCacheForFrame",
63             "parameters": [
64                 { "name": "frameId", "$ref": "Network.FrameId", "description": "Identifier of the frame containing document whose application cache is retrieved." }
65             ],
66             "returns": [
67                 { "name": "applicationCache", "$ref": "ApplicationCache", "description": "Relevant application cache data for the document in given frame." }
68             ],
69             "description": "Returns relevant application cache data for the document in given frame."
70         }
71     ],
72     "events": [
73         {
74             "name": "applicationCacheStatusUpdated",
75             "parameters": [
76                 { "name": "frameId", "$ref": "Network.FrameId", "description": "Identifier of the frame containing document whose application cache updated status." },
77                 { "name": "manifestURL", "type": "string", "description": "Manifest URL." },
78                 { "name": "status", "type": "integer", "description": "Updated application cache status." }
79             ]
80         },
81         {
82             "name": "networkStateUpdated",
83             "parameters": [
84                 { "name": "isNowOnline", "type": "boolean" }
85             ]
86         }
87     ]
88 }
89 ,
90 {
91     "domain": "CSS",
92     "description": "This domain exposes CSS read/write operations. All CSS objects, like stylesheets, rules, and styles, have an associated <code>id</code> used in subsequent operations on the related object. Each object type has a specific <code>id</code> structure, and those are not interchangeable between objects of different kinds. CSS objects can be loaded using the <code>get*ForNode()</code> calls (which accept a DOM node id). Alternatively, a client can discover all the existing stylesheets with the <code>getAllStyleSheets()</code> method and subsequently load the required stylesheet contents using the <code>getStyleSheet[Text]()</code> methods.",
93     "availability": ["web"],
94     "types": [
95         {
96             "id": "StyleSheetId",
97             "type": "string"
98         },
99         {
100             "id": "CSSStyleId",
101             "type": "object",
102             "properties": [
103                 { "name": "styleSheetId", "$ref": "StyleSheetId", "description": "Enclosing stylesheet identifier." },
104                 { "name": "ordinal", "type": "integer", "description": "The style ordinal within the stylesheet." }
105             ],
106             "description": "This object identifies a CSS style in a unique way."
107         },
108         {
109             "id": "StyleSheetOrigin",
110             "type": "string",
111             "enum": ["user", "user-agent", "inspector", "regular"],
112             "description": "Stylesheet type: \"user\" for user stylesheets, \"user-agent\" for user-agent stylesheets, \"inspector\" for stylesheets created by the inspector (i.e. those holding the \"via inspector\" rules), \"regular\" for regular stylesheets."
113         },
114         {
115             "id": "CSSRuleId",
116             "type": "object",
117             "properties": [
118                 { "name": "styleSheetId", "$ref": "StyleSheetId", "description": "Enclosing stylesheet identifier." },
119                 { "name": "ordinal", "type": "integer", "description": "The rule ordinal within the stylesheet." }
120             ],
121             "description": "This object identifies a CSS rule in a unique way."
122         },
123         {
124             "id": "PseudoIdMatches",
125             "type": "object",
126             "properties": [
127                 { "name": "pseudoId", "type": "integer", "description": "Pseudo style identifier (see <code>enum PseudoId</code> in <code>RenderStyleConstants.h</code>)."},
128                 { "name": "matches", "type": "array", "items": { "$ref": "RuleMatch" }, "description": "Matches of CSS rules applicable to the pseudo style."}
129             ],
130             "description": "CSS rule collection for a single pseudo style."
131         },
132         {
133             "id": "InheritedStyleEntry",
134             "type": "object",
135             "properties": [
136                 { "name": "inlineStyle", "$ref": "CSSStyle", "optional": true, "description": "The ancestor node's inline style, if any, in the style inheritance chain." },
137                 { "name": "matchedCSSRules", "type": "array", "items": { "$ref": "RuleMatch" }, "description": "Matches of CSS rules matching the ancestor node in the style inheritance chain." }
138             ],
139             "description": "CSS rule collection for a single pseudo style."
140         },
141         {
142             "id": "RuleMatch",
143             "type": "object",
144             "properties": [
145                 { "name": "rule", "$ref": "CSSRule", "description": "CSS rule in the match." },
146                 { "name": "matchingSelectors", "type": "array", "items": { "type": "integer" }, "description": "Matching selector indices in the rule's selectorList selectors (0-based)." }
147             ],
148             "description": "Match data for a CSS rule."
149         },
150         {
151             "id": "CSSSelector",
152             "type": "object",
153             "properties": [
154                 { "name": "text", "type": "string", "description": "Canonicalized selector text." },
155                 { "name": "specificity", "optional": true, "type": "array", "items": { "type": "integer" }, "description": "Specificity (a, b, c) tuple. Included if the selector is sent in response to CSS.getMatchedStylesForNode which provides a context element." },
156                 { "name": "dynamic", "optional": true, "type": "boolean", "description": "Whether or not the specificity can be dynamic. Included if the selector is sent in response to CSS.getMatchedStylesForNode which provides a context element." }
157             ],
158             "description": "CSS selector."
159         },
160         {
161             "id": "SelectorList",
162             "type": "object",
163             "properties": [
164                 { "name": "selectors", "type": "array", "items": { "$ref": "CSSSelector" }, "description": "Selectors in the list." },
165                 { "name": "text", "type": "string", "description": "Rule selector text." },
166                 { "name": "range", "$ref": "SourceRange", "optional": true, "description": "Rule selector range in the underlying resource (if available)." }
167             ],
168             "description": "Selector list data."
169         },
170         {
171             "id": "CSSStyleAttribute",
172             "type": "object",
173             "properties": [
174                 { "name": "name", "type": "string", "description": "DOM attribute name (e.g. \"width\")."},
175                 { "name": "style", "$ref": "CSSStyle", "description": "CSS style generated by the respective DOM attribute."}
176             ],
177             "description": "CSS style information for a DOM style attribute."
178         },
179         {
180             "id": "CSSStyleSheetHeader",
181             "type": "object",
182             "properties": [
183                 { "name": "styleSheetId", "$ref": "StyleSheetId", "description": "The stylesheet identifier."},
184                 { "name": "frameId", "$ref": "Network.FrameId", "description": "Owner frame identifier."},
185                 { "name": "sourceURL", "type": "string", "description": "Stylesheet resource URL."},
186                 { "name": "origin", "$ref": "StyleSheetOrigin", "description": "Stylesheet origin."},
187                 { "name": "title", "type": "string", "description": "Stylesheet title."},
188                 { "name": "disabled", "type": "boolean", "description": "Denotes whether the stylesheet is disabled."},
189                 { "name": "isInline", "type": "boolean", "description": "Whether this stylesheet is a <style> tag created by the parser. This is not set for document.written <style> tags." },
190                 { "name": "startLine", "type": "number", "description": "Line offset of the stylesheet within the resource (zero based)." },
191                 { "name": "startColumn", "type": "number", "description": "Column offset of the stylesheet within the resource (zero based)." }
192             ],
193             "description": "CSS stylesheet metainformation."
194         },
195         {
196             "id": "CSSStyleSheetBody",
197             "type": "object",
198             "properties": [
199                 { "name": "styleSheetId", "$ref": "StyleSheetId", "description": "The stylesheet identifier."},
200                 { "name": "rules", "type": "array", "items": { "$ref": "CSSRule" }, "description": "Stylesheet resource URL."},
201                 { "name": "text", "type": "string", "optional": true, "description": "Stylesheet resource contents (if available)."}
202             ],
203             "description": "CSS stylesheet contents."
204         },
205         {
206             "id": "CSSRule",
207             "type": "object",
208             "properties": [
209                 { "name": "ruleId", "$ref": "CSSRuleId", "optional": true, "description": "The CSS rule identifier (absent for user agent stylesheet and user-specified stylesheet rules)."},
210                 { "name": "selectorList", "$ref": "SelectorList", "description": "Rule selector data." },
211                 { "name": "sourceURL", "type": "string", "optional": true, "description": "Parent stylesheet resource URL (for regular rules)."},
212                 { "name": "sourceLine", "type": "integer", "description": "Line ordinal of the rule selector start character in the resource."},
213                 { "name": "origin", "$ref": "StyleSheetOrigin", "description": "Parent stylesheet's origin."},
214                 { "name": "style", "$ref": "CSSStyle", "description": "Associated style declaration." },
215                 { "name": "media", "type": "array", "items": { "$ref": "CSSMedia" }, "optional": true, "description": "Media list array (for rules involving media queries). The array enumerates media queries starting with the innermost one, going outwards." }
216             ],
217             "description": "CSS rule representation."
218         },
219         {
220             "id": "SourceRange",
221             "type": "object",
222             "properties": [
223                 { "name": "startLine", "type": "integer", "description": "Start line of range." },
224                 { "name": "startColumn", "type": "integer", "description": "Start column of range (inclusive)." },
225                 { "name": "endLine", "type": "integer", "description": "End line of range" },
226                 { "name": "endColumn", "type": "integer", "description": "End column of range (exclusive)." }
227             ],
228             "description": "Text range within a resource."
229         },
230         {
231             "id": "ShorthandEntry",
232             "type": "object",
233             "properties": [
234                 { "name": "name", "type": "string", "description": "Shorthand name." },
235                 { "name": "value", "type": "string", "description": "Shorthand value." }
236             ]
237         },
238         {
239             "id": "CSSPropertyInfo",
240             "type": "object",
241             "properties": [
242                 { "name": "name", "type": "string", "description": "Property name." },
243                 { "name": "longhands", "type": "array", "optional": true, "items": { "type": "string" }, "description": "Longhand property names." },
244                 { "name": "values", "type": "array", "optional": true, "items": { "type": "string" }, "description": "Supported values for this property." }
245             ]
246         },
247         {
248             "id": "CSSComputedStyleProperty",
249             "type": "object",
250             "properties": [
251                 { "name": "name", "type": "string", "description": "Computed style property name." },
252                 { "name": "value", "type": "string", "description": "Computed style property value." }
253             ]
254         },
255         {
256             "id": "CSSStyle",
257             "type": "object",
258             "properties": [
259                 { "name": "styleId", "$ref": "CSSStyleId", "optional": true, "description": "The CSS style identifier (absent for attribute styles)." },
260                 { "name": "cssProperties", "type": "array", "items": { "$ref": "CSSProperty" }, "description": "CSS properties in the style." },
261                 { "name": "shorthandEntries", "type": "array", "items": { "$ref": "ShorthandEntry" }, "description": "Computed values for all shorthands found in the style." },
262                 { "name": "cssText", "type": "string", "optional": true, "description": "Style declaration text (if available)." },
263                 { "name": "range", "$ref": "SourceRange", "optional": true, "description": "Style declaration range in the enclosing stylesheet (if available)." },
264                 { "name": "width", "type": "string", "optional": true, "description": "The effective \"width\" property value from this style." },
265                 { "name": "height", "type": "string", "optional": true, "description": "The effective \"height\" property value from this style." }
266             ],
267             "description": "CSS style representation."
268         },
269         {
270             "id": "CSSPropertyStatus",
271             "type": "string",
272             "enum": ["active", "inactive", "disabled", "style"],
273             "description": "The property status: \"active\" if the property is effective in the style, \"inactive\" if the property is overridden by a same-named property in this style later on, \"disabled\" if the property is disabled by the user, \"style\" (implied if absent) if the property is reported by the browser rather than by the CSS source parser."
274         },
275         {
276             "id": "CSSProperty",
277             "type": "object",
278             "properties": [
279                 { "name": "name", "type": "string", "description": "The property name." },
280                 { "name": "value", "type": "string", "description": "The property value." },
281                 { "name": "priority", "type": "string", "optional": true, "description": "The property priority (implies \"\" if absent)." },
282                 { "name": "implicit", "type": "boolean", "optional": true, "description": "Whether the property is implicit (implies <code>false</code> if absent)." },
283                 { "name": "text", "type": "string", "optional": true, "description": "The full property text as specified in the style." },
284                 { "name": "parsedOk", "type": "boolean", "optional": true, "description": "Whether the property is understood by the browser (implies <code>true</code> if absent)." },
285                 { "name": "status", "$ref": "CSSPropertyStatus", "optional": true, "description": "Whether the property is active or disabled." },
286                 { "name": "range", "$ref": "SourceRange", "optional": true, "description": "The entire property range in the enclosing style declaration (if available)." }
287             ],
288             "description": "CSS style effective visual dimensions and source offsets."
289         },
290         {
291             "id": "CSSMedia",
292             "type": "object",
293             "properties": [
294                 { "name": "text", "type": "string", "description": "Media query text." },
295                 { "name": "source", "type": "string", "enum": ["mediaRule", "importRule", "linkedSheet", "inlineSheet"], "description": "Source of the media query: \"mediaRule\" if specified by a @media rule, \"importRule\" if specified by an @import rule, \"linkedSheet\" if specified by a \"media\" attribute in a linked stylesheet's LINK tag, \"inlineSheet\" if specified by a \"media\" attribute in an inline stylesheet's STYLE tag." },
296                 { "name": "sourceURL", "type": "string", "optional": true, "description": "URL of the document containing the media query description." },
297                 { "name": "sourceLine", "type": "integer", "optional": true, "description": "Line in the document containing the media query (not defined for the \"stylesheet\" source)." }
298             ],
299             "description": "CSS media query descriptor."
300         },
301         {
302             "id": "Region",
303             "type": "object",
304             "properties": [
305                 { "name": "regionOverset", "type": "string", "enum": ["overset", "fit", "empty"], "description": "The \"overset\" attribute of a Named Flow." },
306                 { "name": "nodeId", "$ref": "DOM.NodeId", "description": "The corresponding DOM node id." }
307             ],
308             "description": "This object represents a region that flows from a Named Flow."
309         },
310         {
311             "id": "NamedFlow",
312             "type": "object",
313             "properties": [
314                 { "name": "documentNodeId", "$ref": "DOM.NodeId", "description": "The document node id." },
315                 { "name": "name", "type": "string", "description": "Named Flow identifier." },
316                 { "name": "overset", "type": "boolean", "description": "The \"overset\" attribute of a Named Flow." },
317                 { "name": "content", "type": "array", "items": { "$ref": "DOM.NodeId" }, "description": "An array of nodes that flow into the Named Flow." },
318                 { "name": "regions", "type": "array", "items": { "$ref": "Region" }, "description": "An array of regions associated with the Named Flow." }
319             ],
320             "description": "This object represents a Named Flow."
321         }
322     ],
323     "commands": [
324         {
325             "name": "enable",
326             "description": "Enables the CSS agent for the given page. Clients should not assume that the CSS agent has been enabled until the result of this command is received."
327         },
328         {
329             "name": "disable",
330             "description": "Disables the CSS agent for the given page."
331         },
332         {
333             "name": "getMatchedStylesForNode",
334             "parameters": [
335                 { "name": "nodeId", "$ref": "DOM.NodeId" },
336                 { "name": "includePseudo", "type": "boolean", "optional": true, "description": "Whether to include pseudo styles (default: true)." },
337                 { "name": "includeInherited", "type": "boolean", "optional": true, "description": "Whether to include inherited styles (default: true)." }
338             ],
339             "returns": [
340                 { "name": "matchedCSSRules", "type": "array", "items": { "$ref": "RuleMatch" }, "optional": true, "description": "CSS rules matching this node, from all applicable stylesheets." },
341                 { "name": "pseudoElements", "type": "array", "items": { "$ref": "PseudoIdMatches" }, "optional": true, "description": "Pseudo style matches for this node." },
342                 { "name": "inherited", "type": "array", "items": { "$ref": "InheritedStyleEntry" }, "optional": true, "description": "A chain of inherited styles (from the immediate node parent up to the DOM tree root)." }
343             ],
344             "description": "Returns requested styles for a DOM node identified by <code>nodeId</code>."
345         },
346         {
347             "name": "getInlineStylesForNode",
348             "parameters": [
349                 { "name": "nodeId", "$ref": "DOM.NodeId" }
350             ],
351             "returns": [
352                 { "name": "inlineStyle", "$ref": "CSSStyle", "optional": true, "description": "Inline style for the specified DOM node." },
353                 { "name": "attributesStyle", "$ref": "CSSStyle", "optional": true, "description": "Attribute-defined element style (e.g. resulting from \"width=20 height=100%\")."}
354             ],
355             "description": "Returns the styles defined inline (explicitly in the \"style\" attribute and implicitly, using DOM attributes) for a DOM node identified by <code>nodeId</code>."
356         },
357         {
358             "name": "getComputedStyleForNode",
359             "parameters": [
360                 { "name": "nodeId", "$ref": "DOM.NodeId" }
361             ],
362             "returns": [
363                 { "name": "computedStyle", "type": "array", "items": { "$ref": "CSSComputedStyleProperty" }, "description": "Computed style for the specified DOM node." }
364             ],
365             "description": "Returns the computed style for a DOM node identified by <code>nodeId</code>."
366         },
367         {
368             "name": "getAllStyleSheets",
369             "returns": [
370                 { "name": "headers", "type": "array", "items": { "$ref": "CSSStyleSheetHeader" }, "description": "Descriptor entries for all available stylesheets." }
371             ],
372             "description": "Returns metainfo entries for all known stylesheets."
373         },
374         {
375             "name": "getStyleSheet",
376             "parameters": [
377                 { "name": "styleSheetId", "$ref": "StyleSheetId" }
378             ],
379             "returns": [
380                 { "name": "styleSheet", "$ref": "CSSStyleSheetBody", "description": "Stylesheet contents for the specified <code>styleSheetId</code>." }
381             ],
382             "description": "Returns stylesheet data for the specified <code>styleSheetId</code>."
383         },
384         {
385             "name": "getStyleSheetText",
386             "parameters": [
387                 { "name": "styleSheetId", "$ref": "StyleSheetId" }
388             ],
389             "returns": [
390                 { "name": "text", "type": "string", "description": "The stylesheet text." }
391             ],
392             "description": "Returns the current textual content and the URL for a stylesheet."
393         },
394         {
395             "name": "setStyleSheetText",
396             "parameters": [
397                 { "name": "styleSheetId", "$ref": "StyleSheetId" },
398                 { "name": "text", "type": "string" }
399             ],
400             "description": "Sets the new stylesheet text, thereby invalidating all existing <code>CSSStyleId</code>'s and <code>CSSRuleId</code>'s contained by this stylesheet."
401         },
402         {
403             "name": "setStyleText",
404             "parameters": [
405                 { "name": "styleId", "$ref": "CSSStyleId" },
406                 { "name": "text", "type": "string" }
407             ],
408             "returns": [
409                 { "name": "style", "$ref": "CSSStyle", "description": "The resulting style after the text modification." }
410             ],
411             "description": "Sets the new <code>text</code> for the respective style."
412         },
413         {
414             "name": "setRuleSelector",
415             "parameters": [
416                 { "name": "ruleId", "$ref": "CSSRuleId" },
417                 { "name": "selector", "type": "string" }
418             ],
419             "returns": [
420                 { "name": "rule", "$ref": "CSSRule", "description": "The resulting rule after the selector modification." }
421             ],
422             "description": "Modifies the rule selector."
423         },
424         {
425             "name": "createStyleSheet",
426             "parameters": [
427                 { "name": "frameId", "$ref": "Network.FrameId", "description": "Identifier of the frame where the new \"inspector\" stylesheet should be created." }
428             ],
429             "returns": [
430                 { "name": "styleSheetId", "$ref": "StyleSheetId", "description": "Identifier of the created \"inspector\" stylesheet." }
431             ],
432             "description": "Creates a new special \"inspector\" stylesheet in the frame with given <code>frameId</code>."
433         },
434         {
435             "name": "addRule",
436             "parameters": [
437                 { "name": "styleSheetId", "$ref": "StyleSheetId" },
438                 { "name": "selector", "type": "string" }
439             ],
440             "returns": [
441                 { "name": "rule", "$ref": "CSSRule", "description": "The newly created rule." }
442             ],
443             "description": "Creates a new empty rule with the given <code>selector</code> in a stylesheet with given <code>styleSheetId</code>."
444         },
445         {
446             "name": "getSupportedCSSProperties",
447             "returns": [
448                 { "name": "cssProperties", "type": "array", "items": { "$ref": "CSSPropertyInfo" }, "description": "Supported property metainfo." }
449             ],
450             "description": "Returns all supported CSS property names."
451         },
452         {
453             "name": "getSupportedSystemFontFamilyNames",
454             "returns": [
455                 { "name": "fontFamilyNames", "type": "array", "items": { "type": "string" }, "description": "Supported system font families." }
456             ],
457             "description": "Returns all supported system font family names."
458         },
459         {
460             "name": "forcePseudoState",
461             "parameters": [
462                 { "name": "nodeId", "$ref": "DOM.NodeId", "description": "The element id for which to force the pseudo state." },
463                 { "name": "forcedPseudoClasses", "type": "array", "items": { "type": "string", "enum": ["active", "focus", "hover", "visited"] }, "description": "Element pseudo classes to force when computing the element's style." }
464             ],
465             "description": "Ensures that the given node will have specified pseudo-classes whenever its style is computed by the browser."
466         },
467         {
468             "name": "getNamedFlowCollection",
469             "parameters": [
470                 { "name": "documentNodeId", "$ref": "DOM.NodeId", "description": "The document node id for which to get the Named Flow Collection." }
471             ],
472             "returns": [
473                 { "name": "namedFlows", "type": "array", "items": { "$ref": "NamedFlow" }, "description": "An array containing the Named Flows in the document." }
474             ],
475             "description": "Returns the Named Flows from the document."
476         }
477     ],
478     "events": [
479         {
480             "name": "mediaQueryResultChanged",
481             "description": "Fires whenever a MediaQuery result changes (for example, after a browser window has been resized.) The current implementation considers only viewport-dependent media features."
482         },
483         {
484             "name": "styleSheetChanged",
485             "parameters": [
486                 { "name": "styleSheetId", "$ref": "StyleSheetId" }
487             ],
488             "description": "Fired whenever a stylesheet is changed as a result of the client operation."
489         },
490         {
491             "name": "styleSheetAdded",
492             "parameters": [
493                 { "name": "header", "$ref": "CSSStyleSheetHeader", "description": "Added stylesheet metainfo." }
494             ],
495             "description": "Fired whenever an active document stylesheet is added."
496         },
497         {
498             "name": "styleSheetRemoved",
499             "parameters": [
500                 { "name": "styleSheetId", "$ref": "StyleSheetId", "description": "Identifier of the removed stylesheet." }
501             ],
502             "description": "Fired whenever an active document stylesheet is removed."
503         },
504         {
505             "name": "namedFlowCreated",
506             "parameters": [
507                 { "name": "namedFlow", "$ref": "NamedFlow", "description": "The new Named Flow." }
508             ],
509             "description": "Fires when a Named Flow is created."
510         },
511         {
512             "name": "namedFlowRemoved",
513             "parameters": [
514                 { "name": "documentNodeId", "$ref": "DOM.NodeId", "description": "The document node id." },
515                 { "name": "flowName", "type": "string", "description": "Identifier of the removed Named Flow." }
516             ],
517             "description": "Fires when a Named Flow is removed: has no associated content nodes and regions."
518         },
519         {
520             "name": "regionOversetChanged",
521             "parameters": [
522                 { "name": "namedFlow", "$ref": "NamedFlow", "description": "The Named Flow containing the regions whose regionOverset values changed." }
523             ],
524             "description": "Fires if any of the regionOverset values changed in a Named Flow's region chain."
525         },
526         {
527             "name": "registeredNamedFlowContentElement",
528             "parameters": [
529                 { "name": "documentNodeId", "$ref": "DOM.NodeId", "description": "The document node id." },
530                 { "name": "flowName", "type": "string", "description": "Named Flow identifier for which the new content element was registered." },
531                 { "name": "contentNodeId", "$ref": "DOM.NodeId", "description": "The node id of the registered content node." },
532                 { "name": "nextContentNodeId", "$ref": "DOM.NodeId", "description": "The node id of the element following the registered content node." }
533             ],
534             "description": "Fires when a Named Flow's has been registered with a new content node."
535         },
536         {
537             "name": "unregisteredNamedFlowContentElement",
538             "parameters": [
539                 { "name": "documentNodeId", "$ref": "DOM.NodeId", "description": "The document node id." },
540                 { "name": "flowName", "type": "string", "description": "Named Flow identifier for which the new content element was unregistered." },
541                 { "name": "contentNodeId", "$ref": "DOM.NodeId", "description": "The node id of the unregistered content node." }
542             ],
543             "description": "Fires when a Named Flow's has been registered with a new content node."
544         }
545     ]
546 }
547 ,
548 {
549     "domain": "Console",
550     "description": "Console domain defines methods and events for interaction with the JavaScript console. Console collects messages created by means of the <a href='http://getfirebug.com/wiki/index.php/Console_API'>JavaScript Console API</a>. One needs to enable this domain using <code>enable</code> command in order to start receiving the console messages. Browser collects messages issued while console domain is not enabled as well and reports them using <code>messageAdded</code> notification upon enabling.",
551     "types": [
552         {
553             "id": "ConsoleMessage",
554             "type": "object",
555             "description": "Console message.",
556             "properties": [
557                 { "name": "source", "type": "string", "enum": ["xml", "javascript", "network", "console-api", "storage", "appcache", "rendering", "css", "security", "content-blocker", "other"], "description": "Message source." },
558                 { "name": "level", "type": "string", "enum": ["log", "info", "warning", "error", "debug"], "description": "Message severity." },
559                 { "name": "text", "type": "string", "description": "Message text." },
560                 { "name": "type", "type": "string", "optional": true, "enum": ["log", "dir", "dirxml", "table", "trace", "clear", "startGroup", "startGroupCollapsed", "endGroup", "assert", "timing", "profile", "profileEnd"], "description": "Console message type." },
561                 { "name": "url", "type": "string", "optional": true, "description": "URL of the message origin." },
562                 { "name": "line", "type": "integer", "optional": true, "description": "Line number in the resource that generated this message." },
563                 { "name": "column", "type": "integer", "optional": true, "description": "Column number on the line in the resource that generated this message." },
564                 { "name": "repeatCount", "type": "integer", "optional": true, "description": "Repeat count for repeated messages." },
565                 { "name": "parameters", "type": "array", "items": { "$ref": "Runtime.RemoteObject" }, "optional": true, "description": "Message parameters in case of the formatted message." },
566                 { "name": "stackTrace", "$ref": "StackTrace", "optional": true, "description": "JavaScript stack trace for assertions and error messages." },
567                 { "name": "networkRequestId", "$ref": "Network.RequestId", "optional": true, "description": "Identifier of the network request associated with this message." }
568             ]
569         },
570         {
571             "id": "CallFrame",
572             "type": "object",
573             "description": "Stack entry for console errors and assertions.",
574             "properties": [
575                 { "name": "functionName", "type": "string", "description": "JavaScript function name." },
576                 { "name": "url", "type": "string", "description": "JavaScript script name or url." },
577                 { "name": "scriptId", "$ref": "Debugger.ScriptId", "description": "Script identifier." },
578                 { "name": "lineNumber", "type": "integer", "description": "JavaScript script line number." },
579                 { "name": "columnNumber", "type": "integer", "description": "JavaScript script column number." }
580             ]
581         },
582         {
583             "id": "StackTrace",
584             "type": "array",
585             "items": { "$ref": "CallFrame" },
586             "description": "Call frames for assertions or error messages."
587         }
588     ],
589     "commands": [
590         {
591             "name": "enable",
592             "description": "Enables console domain, sends the messages collected so far to the client by means of the <code>messageAdded</code> notification."
593         },
594         {
595             "name": "disable",
596             "description": "Disables console domain, prevents further console messages from being reported to the client."
597         },
598         {
599             "name": "clearMessages",
600             "description": "Clears console messages collected in the browser."
601         },
602         {
603             "name": "setMonitoringXHREnabled",
604             "parameters": [
605                 { "name": "enabled", "type": "boolean", "description": "Monitoring enabled state." }
606             ],
607             "description": "Toggles monitoring of XMLHttpRequest. If <code>true</code>, console will receive messages upon each XHR issued."
608         },
609         {
610             "name": "addInspectedNode",
611             "parameters": [
612                 { "name": "nodeId", "$ref": "DOM.NodeId", "description": "DOM node id to be accessible by means of $0 command line API." }
613             ],
614             "description": "Enables console to refer to the node with given id via $0 (see Command Line API for more details)."
615         }
616     ],
617     "events": [
618         {
619             "name": "messageAdded",
620             "parameters": [
621                 { "name": "message", "$ref": "ConsoleMessage", "description": "Console message that has been added." }
622             ],
623             "description": "Issued when new console message is added."
624         },
625         {
626             "name": "messageRepeatCountUpdated",
627             "parameters": [
628                 { "name": "count", "type": "integer", "description": "New repeat count value." }
629             ],
630             "description": "Issued when subsequent message(s) are equal to the previous one(s)."
631         },
632         {
633             "name": "messagesCleared",
634             "description": "Issued when console is cleared. This happens either upon <code>clearMessages</code> command or after page navigation."
635         },
636         {
637             "name": "heapSnapshot",
638             "description": "Issued from console.takeHeapSnapshot.",
639             "parameters": [
640                 { "name": "timestamp", "type": "number" },
641                 { "name": "snapshotData", "$ref": "Heap.HeapSnapshotData", "description": "Snapshot at the end of tracking." },
642                 { "name": "title", "type": "string", "optional": true, "description": "Optional title provided to console.takeHeapSnapshot." }
643             ]
644         }
645     ]
646 }
647 ,
648 {
649     "domain": "DOM",
650     "description": "This domain exposes DOM read/write operations. Each DOM Node is represented with its mirror object that has an <code>id</code>. This <code>id</code> can be used to get additional information on the Node, resolve it into the JavaScript object wrapper, etc. It is important that client receives DOM events only for the nodes that are known to the client. Backend keeps track of the nodes that were sent to the client and never sends the same node twice. It is client's responsibility to collect information about the nodes that were sent to the client.<p>Note that <code>iframe</code> owner elements will return corresponding document elements as their child nodes.</p>",
651     "availability": ["web"],
652     "types": [
653         {
654             "id": "NodeId",
655             "type": "integer",
656             "description": "Unique DOM node identifier."
657         },
658         {
659             "id": "BackendNodeId",
660             "type": "integer",
661             "description": "Unique DOM node identifier used to reference a node that may not have been pushed to the front-end."
662         },
663         {
664             "id": "PseudoType",
665             "type": "string",
666             "enum": ["before", "after"],
667             "description": "Pseudo element type."
668         },
669         {
670             "id": "ShadowRootType",
671             "type": "string",
672             "enum": ["user-agent", "open", "closed"],
673             "description": "Shadow root type."
674         },
675         {
676             "id": "LiveRegionRelevant",
677             "type": "string",
678             "enum": ["additions", "removals", "text"],
679             "description": "Token values of @aria-relevant attribute."
680         },
681         {
682             "id": "Node",
683             "type": "object",
684             "properties": [
685                 { "name": "nodeId", "$ref": "NodeId", "description": "Node identifier that is passed into the rest of the DOM messages as the <code>nodeId</code>. Backend will only push node with given <code>id</code> once. It is aware of all requested nodes and will only fire DOM events for nodes known to the client." },
686                 { "name": "nodeType", "type": "integer", "description": "<code>Node</code>'s nodeType." },
687                 { "name": "nodeName", "type": "string", "description": "<code>Node</code>'s nodeName." },
688                 { "name": "localName", "type": "string", "description": "<code>Node</code>'s localName." },
689                 { "name": "nodeValue", "type": "string", "description": "<code>Node</code>'s nodeValue." },
690                 { "name": "childNodeCount", "type": "integer", "optional": true, "description": "Child count for <code>Container</code> nodes." },
691                 { "name": "children", "type": "array", "optional": true, "items": { "$ref": "Node" }, "description": "Child nodes of this node when requested with children." },
692                 { "name": "attributes", "type": "array", "optional": true, "items": { "type": "string" }, "description": "Attributes of the <code>Element</code> node in the form of flat array <code>[name1, value1, name2, value2]</code>." },
693                 { "name": "documentURL", "type": "string", "optional": true, "description": "Document URL that <code>Document</code> or <code>FrameOwner</code> node points to." },
694                 { "name": "baseURL", "type": "string", "optional": true, "description": "Base URL that <code>Document</code> or <code>FrameOwner</code> node uses for URL completion." },
695                 { "name": "publicId", "type": "string", "optional": true, "description": "<code>DocumentType</code>'s publicId." },
696                 { "name": "systemId", "type": "string", "optional": true, "description": "<code>DocumentType</code>'s systemId." },
697                 { "name": "internalSubset", "type": "string", "optional": true, "description": "<code>DocumentType</code>'s internalSubset." },
698                 { "name": "xmlVersion", "type": "string", "optional": true, "description": "<code>Document</code>'s XML version in case of XML documents." },
699                 { "name": "name", "type": "string", "optional": true, "description": "<code>Attr</code>'s name." },
700                 { "name": "value", "type": "string", "optional": true, "description": "<code>Attr</code>'s value." },
701                 { "name": "pseudoType", "$ref": "PseudoType", "optional": true, "description": "Pseudo element type for this node." },
702                 { "name": "shadowRootType", "$ref": "ShadowRootType", "optional": true, "description": "Shadow root type." },
703                 { "name": "frameId", "$ref": "Network.FrameId", "optional": true, "description": "Frame ID for frame owner elements." },
704                 { "name": "contentDocument", "$ref": "Node", "optional": true, "description": "Content document for frame owner elements." },
705                 { "name": "shadowRoots", "type": "array", "optional": true, "items": { "$ref": "Node" }, "description": "Shadow root list for given element host." },
706                 { "name": "templateContent", "$ref": "Node", "optional": true, "description": "Content document fragment for template elements" },
707                 { "name": "pseudoElements", "type": "array", "items": { "$ref": "Node" }, "optional": true, "description": "Pseudo elements associated with this node." },
708                 { "name": "role", "type": "string", "optional": true, "description": "Computed value for first recognized role token, default role per element, or overridden role." },
709                 { "name": "contentSecurityPolicyHash", "type": "string", "optional": true, "description": "Computed SHA-256 Content Security Policy hash source for given element." }
710             ],
711             "description": "DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. DOMNode is a base node mirror type."
712         },
713         {
714             "id": "EventListener",
715             "type": "object",
716             "properties": [
717                 { "name": "type", "type": "string", "description": "<code>EventListener</code>'s type." },
718                 { "name": "useCapture", "type": "boolean", "description": "<code>EventListener</code>'s useCapture." },
719                 { "name": "isAttribute", "type": "boolean", "description": "<code>EventListener</code>'s isAttribute." },
720                 { "name": "nodeId", "$ref": "NodeId", "description": "Target <code>DOMNode</code> id." },
721                 { "name": "handlerBody", "type": "string", "description": "Event handler function body." },
722                 { "name": "location", "$ref": "Debugger.Location", "optional": true, "description": "Handler code location." },
723                 { "name": "sourceName", "type": "string", "optional": true, "description": "Source script URL." },
724                 { "name": "handler", "$ref": "Runtime.RemoteObject", "optional": true, "description": "Event handler function value." }
725             ],
726             "description": "A structure holding event listener properties."
727         },
728         {
729             "id": "AccessibilityProperties",
730             "description": "A structure holding accessibility properties.",
731             "type": "object",
732             "properties": [
733                 { "name": "activeDescendantNodeId", "$ref": "NodeId", "optional": true, "description": "<code>DOMNode</code> id of the accessibility object referenced by aria-activedescendant." },
734                 { "name": "busy", "type": "boolean", "optional": true, "description": "Value of @aria-busy on current or ancestor node." },
735                 { "name": "checked", "type": "string", "optional": true, "enum": ["true", "false", "mixed"], "description": "Checked state of certain form controls." },
736                 { "name": "childNodeIds", "type": "array", "items": { "$ref": "NodeId" }, "optional": true, "description": "Array of <code>DOMNode</code> ids of the accessibility tree children if available." },
737                 { "name": "controlledNodeIds", "type": "array", "items": { "$ref": "NodeId" }, "optional": true, "description": "Array of <code>DOMNode</code> ids of any nodes referenced via @aria-controls." },
738                 { "name": "current", "type": "string", "optional": true, "enum": ["true", "false", "page", "step", "location", "date", "time"], "description": "Current item within a container or set of related elements." },
739                 { "name": "disabled", "type": "boolean", "optional": true, "description": "Disabled state of form controls." },
740                 { "name": "exists", "type": "boolean", "description": "Indicates whether there is an existing AX object for the DOM node. If this is false, all the other properties will be default values." },
741                 { "name": "expanded", "type": "boolean", "optional": true, "description": "Expanded state." },
742                 { "name": "flowedNodeIds", "type": "array", "items": { "$ref": "NodeId" }, "optional": true, "description": "Array of <code>DOMNode</code> ids of any nodes referenced via @aria-flowto." },
743                 { "name": "focused", "type": "boolean", "optional": true, "description": "Focused state. Only defined on focusable elements." },
744                 { "name": "ignored", "type": "boolean", "optional": true, "description": "Indicates whether the accessibility of the associated AX object node is ignored, whether heuristically or explicitly." },
745                 { "name": "ignoredByDefault", "type": "boolean", "optional": true, "description": "State indicating whether the accessibility of the associated AX object node is ignored by default for node type." },
746                 { "name": "invalid", "type": "string", "optional": true, "enum": ["true", "false", "grammar", "spelling"], "description": "Invalid status of form controls." },
747                 { "name": "hidden", "type": "boolean", "optional": true, "description": "Hidden state. True if node or an ancestor is hidden via CSS or explicit @aria-hidden, to clarify why the element is ignored." },
748                 { "name": "label", "type": "string", "description": "Computed label value for the node, sometimes calculated by referencing other nodes." },
749                 { "name": "liveRegionAtomic", "type": "boolean", "optional": true, "description": "Value of @aria-atomic." },
750                 { "name": "liveRegionRelevant", "type": "array", "items": { "type": "string" }, "optional": true, "description": "Token value(s) of element's @aria-relevant attribute. Array of string values matching $ref LiveRegionRelevant. FIXME: Enum values blocked by http://webkit.org/b/133711" },
751                 { "name": "liveRegionStatus", "type": "string", "optional": true, "enum": ["assertive", "polite", "off"], "description": "Value of element's @aria-live attribute." },
752                 { "name": "mouseEventNodeId", "$ref": "NodeId", "optional": true, "description": "<code>DOMNode</code> id of node or closest ancestor node that has a mousedown, mouseup, or click event handler." },
753                 { "name": "nodeId", "$ref": "NodeId", "description": "Target <code>DOMNode</code> id." },
754                 { "name": "ownedNodeIds", "type": "array", "items": { "$ref": "NodeId" }, "optional": true, "description": "Array of <code>DOMNode</code> ids of any nodes referenced via @aria-owns." },
755                 { "name": "parentNodeId", "$ref": "NodeId", "optional": true, "description": "<code>DOMNode</code> id of the accessibility tree parent object if available." },
756                 { "name": "pressed", "type": "boolean", "optional": true, "description": "Pressed state for toggle buttons." },
757                 { "name": "readonly", "type": "boolean", "optional": true, "description": "Readonly state of text controls." },
758                 { "name": "required", "type": "boolean", "optional": true, "description": "Required state of form controls." },
759                 { "name": "role", "type": "string", "description": "Computed value for first recognized role token, default role per element, or overridden role." },
760                 { "name": "selected", "type": "boolean", "optional": true, "description": "Selected state of certain form controls." },
761                 { "name": "selectedChildNodeIds", "type": "array", "items": { "$ref": "NodeId" }, "optional": true, "description": "Array of <code>DOMNode</code> ids of any children marked as selected." }
762             ]
763         },
764         {
765             "id": "RGBAColor",
766             "type": "object",
767             "properties": [
768                 { "name": "r", "type": "integer", "description": "The red component, in the [0-255] range." },
769                 { "name": "g", "type": "integer", "description": "The green component, in the [0-255] range." },
770                 { "name": "b", "type": "integer", "description": "The blue component, in the [0-255] range." },
771                 { "name": "a", "type": "number", "optional": true, "description": "The alpha component, in the [0-1] range (default: 1)." }
772             ],
773             "description": "A structure holding an RGBA color."
774         },
775         {
776             "id": "Quad",
777             "type": "array",
778             "items": { "type": "number" },
779             "minItems": 8,
780             "maxItems": 8,
781             "description": "An array of quad vertices, x immediately followed by y for each point, points clock-wise."
782         },
783         {
784             "id": "HighlightConfig",
785             "type": "object",
786             "properties": [
787                 { "name": "showInfo", "type": "boolean", "optional": true, "description": "Whether the node info tooltip should be shown (default: false)." },
788                 { "name": "contentColor", "$ref": "RGBAColor", "optional": true, "description": "The content box highlight fill color (default: transparent)." },
789                 { "name": "paddingColor", "$ref": "RGBAColor", "optional": true, "description": "The padding highlight fill color (default: transparent)." },
790                 { "name": "borderColor", "$ref": "RGBAColor", "optional": true, "description": "The border highlight fill color (default: transparent)." },
791                 { "name": "marginColor", "$ref": "RGBAColor", "optional": true, "description": "The margin highlight fill color (default: transparent)." }
792             ],
793             "description": "Configuration data for the highlighting of page elements."
794         }
795     ],
796     "commands": [
797         {
798             "name": "getDocument",
799             "returns": [
800                 { "name": "root", "$ref": "Node", "description": "Resulting node." }
801             ],
802             "description": "Returns the root DOM node to the caller."
803         },
804         {
805             "name": "requestChildNodes",
806             "parameters": [
807                 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to get children for." },
808                 { "name": "depth", "type": "integer", "optional": true, "description": "The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0." }
809             ],
810             "description": "Requests that children of the node with given id are returned to the caller in form of <code>setChildNodes</code> events where not only immediate children are retrieved, but all children down to the specified depth."
811         },
812         {
813             "name": "querySelector",
814             "parameters": [
815                 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to query upon." },
816                 { "name": "selector", "type": "string", "description": "Selector string." }
817             ],
818             "returns": [
819                 { "name": "nodeId", "$ref": "NodeId", "description": "Query selector result." }
820             ],
821             "description": "Executes <code>querySelector</code> on a given node."
822         },
823         {
824             "name": "querySelectorAll",
825             "parameters": [
826                 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to query upon." },
827                 { "name": "selector", "type": "string", "description": "Selector string." }
828             ],
829             "returns": [
830                 { "name": "nodeIds", "type": "array", "items": { "$ref": "NodeId" }, "description": "Query selector result." }
831             ],
832             "description": "Executes <code>querySelectorAll</code> on a given node."
833         },
834         {
835             "name": "setNodeName",
836             "parameters": [
837                 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to set name for." },
838                 { "name": "name", "type": "string", "description": "New node's name." }
839             ],
840             "returns": [
841                 { "name": "nodeId", "$ref": "NodeId", "description": "New node's id." }
842             ],
843             "description": "Sets node name for a node with given id."
844         },
845         {
846             "name": "setNodeValue",
847             "parameters": [
848                 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to set value for." },
849                 { "name": "value", "type": "string", "description": "New node's value." }
850             ],
851             "description": "Sets node value for a node with given id."
852         },
853         {
854             "name": "removeNode",
855             "parameters": [
856                 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to remove." }
857             ],
858             "description": "Removes node with given id."
859         },
860         {
861             "name": "setAttributeValue",
862             "parameters": [
863                 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the element to set attribute for." },
864                 { "name": "name", "type": "string", "description": "Attribute name." },
865                 { "name": "value", "type": "string", "description": "Attribute value." }
866             ],
867             "description": "Sets attribute for an element with given id."
868         },
869         {
870             "name": "setAttributesAsText",
871             "parameters": [
872                 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the element to set attributes for." },
873                 { "name": "text", "type": "string", "description": "Text with a number of attributes. Will parse this text using HTML parser." },
874                 { "name": "name", "type": "string", "optional": true, "description": "Attribute name to replace with new attributes derived from text in case text parsed successfully." }
875             ],
876             "description": "Sets attributes on element with given id. This method is useful when user edits some existing attribute value and types in several attribute name/value pairs."
877         },
878         {
879             "name": "removeAttribute",
880             "parameters": [
881                 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the element to remove attribute from." },
882                 { "name": "name", "type": "string", "description": "Name of the attribute to remove." }
883             ],
884             "description": "Removes attribute with given name from an element with given id."
885         },
886         {
887             "name": "getEventListenersForNode",
888             "parameters": [
889                 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to get listeners for." },
890                 { "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name for handler value. Handler value is not returned without this parameter specified." }
891             ],
892             "returns": [
893                 { "name": "listeners", "type": "array", "items": { "$ref": "EventListener"}, "description": "Array of relevant listeners." }
894             ],
895             "description": "Returns event listeners relevant to the node."
896         },
897         {
898             "name": "getAccessibilityPropertiesForNode",
899             "description": "Returns a dictionary of accessibility properties for the node.",
900             "parameters": [
901                 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node for which to get accessibility properties." }
902             ],
903             "returns": [
904                 { "name": "properties", "$ref": "AccessibilityProperties", "description": "Dictionary of relevant accessibility properties." }
905             ]
906         },
907         {
908             "name": "getOuterHTML",
909             "parameters": [
910                 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to get markup for." }
911             ],
912             "returns": [
913                 { "name": "outerHTML", "type": "string", "description": "Outer HTML markup." }
914             ],
915             "description": "Returns node's HTML markup."
916         },
917         {
918             "name": "setOuterHTML",
919             "parameters": [
920                 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to set markup for." },
921                 { "name": "outerHTML", "type": "string", "description": "Outer HTML markup to set." }
922             ],
923             "description": "Sets node HTML markup, returns new node id."
924         },
925         {
926             "name": "performSearch",
927             "parameters": [
928                 { "name": "query", "type": "string", "description": "Plain text or query selector or XPath search query." },
929                 { "name": "nodeIds", "type": "array", "items": { "$ref": "NodeId" }, "optional": true, "description": "Ids of nodes to use as starting points for the search." }
930             ],
931             "returns": [
932                 { "name": "searchId", "type": "string", "description": "Unique search session identifier." },
933                 { "name": "resultCount", "type": "integer", "description": "Number of search results." }
934             ],
935             "description": "Searches for a given string in the DOM tree. Use <code>getSearchResults</code> to access search results or <code>cancelSearch</code> to end this search session."
936         },
937         {
938             "name": "getSearchResults",
939             "parameters": [
940                 { "name": "searchId", "type": "string", "description": "Unique search session identifier." },
941                 { "name": "fromIndex", "type": "integer", "description": "Start index of the search result to be returned." },
942                 { "name": "toIndex", "type": "integer", "description": "End index of the search result to be returned." }
943             ],
944             "returns": [
945                 { "name": "nodeIds", "type": "array", "items": { "$ref": "NodeId" }, "description": "Ids of the search result nodes." }
946             ],
947             "description": "Returns search results from given <code>fromIndex</code> to given <code>toIndex</code> from the sarch with the given identifier."
948         },
949         {
950             "name": "discardSearchResults",
951             "parameters": [
952                 { "name": "searchId", "type": "string", "description": "Unique search session identifier." }
953             ],
954             "description": "Discards search results from the session with the given id. <code>getSearchResults</code> should no longer be called for that search."
955         },
956         {
957             "name": "requestNode",
958             "parameters": [
959                 { "name": "objectId", "$ref": "Runtime.RemoteObjectId", "description": "JavaScript object id to convert into node." }
960             ],
961             "returns": [
962                 { "name": "nodeId", "$ref": "NodeId", "description": "Node id for given object." }
963             ],
964             "description": "Requests that the node is sent to the caller given the JavaScript node object reference. All nodes that form the path from the node to the root are also sent to the client as a series of <code>setChildNodes</code> notifications."
965         },
966         {
967             "name": "setInspectModeEnabled",
968             "parameters": [
969                 { "name": "enabled", "type": "boolean", "description": "True to enable inspection mode, false to disable it." },
970                 { "name": "highlightConfig", "$ref": "HighlightConfig", "optional": true, "description": "A descriptor for the highlight appearance of hovered-over nodes. May be omitted if <code>enabled == false</code>." }
971             ],
972             "description": "Enters the 'inspect' mode. In this mode, elements that user is hovering over are highlighted. Backend then generates 'inspect' command upon element selection."
973         },
974         {
975             "name": "highlightRect",
976             "parameters": [
977                 { "name": "x", "type": "integer", "description": "X coordinate" },
978                 { "name": "y", "type": "integer", "description": "Y coordinate" },
979                 { "name": "width", "type": "integer", "description": "Rectangle width" },
980                 { "name": "height", "type": "integer", "description": "Rectangle height" },
981                 { "name": "color", "$ref": "RGBAColor", "optional": true, "description": "The highlight fill color (default: transparent)." },
982                 { "name": "outlineColor", "$ref": "RGBAColor", "optional": true, "description": "The highlight outline color (default: transparent)." },
983                 { "name": "usePageCoordinates", "type": "boolean", "optional": true, "description": "Indicates whether the provided parameters are in page coordinates or in viewport coordinates (the default)." }
984             ],
985             "description": "Highlights given rectangle. Coordinates are absolute with respect to the main frame viewport."
986         },
987         {
988             "name": "highlightQuad",
989             "parameters": [
990                 { "name": "quad", "$ref": "Quad", "description": "Quad to highlight" },
991                 { "name": "color", "$ref": "RGBAColor", "optional": true, "description": "The highlight fill color (default: transparent)." },
992                 { "name": "outlineColor", "$ref": "RGBAColor", "optional": true, "description": "The highlight outline color (default: transparent)." },
993                 { "name": "usePageCoordinates", "type": "boolean", "optional": true, "description": "Indicates whether the provided parameters are in page coordinates or in viewport coordinates (the default)." }
994             ],
995             "description": "Highlights given quad. Coordinates are absolute with respect to the main frame viewport."
996         },
997         {
998             "name": "highlightSelector",
999             "parameters": [
1000                 { "name": "highlightConfig", "$ref": "HighlightConfig", "description": "A descriptor for the highlight appearance." },
1001                 { "name": "selectorString", "type": "string", "description": "A CSS selector for finding matching nodes to highlight." },
1002                 { "name": "frameId", "type": "string", "optional": true, "description": "Identifier of the frame which will be searched using the selector.  If not provided, the main frame will be used." }
1003             ],
1004             "description": "Highlights all DOM nodes that match a given selector. A string containing a CSS selector must be specified."
1005         },
1006         {
1007             "name": "highlightNode",
1008             "parameters": [
1009                 { "name": "highlightConfig", "$ref": "HighlightConfig", "description": "A descriptor for the highlight appearance." },
1010                 { "name": "nodeId", "$ref": "NodeId", "optional": true, "description": "Identifier of the node to highlight." },
1011                 { "name": "objectId", "$ref": "Runtime.RemoteObjectId", "optional": true, "description": "JavaScript object id of the node to be highlighted." }
1012             ],
1013             "description": "Highlights DOM node with given id or with the given JavaScript object wrapper. Either nodeId or objectId must be specified."
1014         },
1015         {
1016             "name": "hideHighlight",
1017             "description": "Hides DOM node highlight."
1018         },
1019         {
1020             "name": "highlightFrame",
1021             "parameters": [
1022                 { "name": "frameId", "$ref": "Network.FrameId", "description": "Identifier of the frame to highlight." },
1023                 { "name": "contentColor", "$ref": "RGBAColor", "optional": true, "description": "The content box highlight fill color (default: transparent)." },
1024                 { "name": "contentOutlineColor", "$ref": "RGBAColor", "optional": true, "description": "The content box highlight outline color (default: transparent)." }
1025             ],
1026             "description": "Highlights owner element of the frame with given id."
1027         },
1028         {
1029             "name": "pushNodeByPathToFrontend",
1030             "parameters": [
1031                 { "name": "path", "type": "string", "description": "Path to node in the proprietary format." }
1032             ],
1033             "returns": [
1034                 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node for given path." }
1035             ],
1036             "description": "Requests that the node is sent to the caller given its path. // FIXME, use XPath"
1037         },
1038         {
1039             "name": "pushNodeByBackendIdToFrontend",
1040             "parameters": [
1041                 { "name": "backendNodeId", "$ref": "BackendNodeId", "description": "The backend node id of the node." }
1042             ],
1043             "returns": [
1044                 { "name": "nodeId", "$ref": "NodeId", "description": "The pushed node's id." }
1045             ],
1046             "description": "Requests that the node is sent to the caller given its backend node id."
1047         },
1048         {
1049             "name": "releaseBackendNodeIds",
1050             "parameters": [
1051                 { "name": "nodeGroup", "type": "string", "description": "The backend node ids group name." }
1052             ],
1053             "description": "Requests that group of <code>BackendNodeIds</code> is released."
1054         },
1055         {
1056             "name": "resolveNode",
1057             "parameters": [
1058                 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to resolve." },
1059                 { "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name that can be used to release multiple objects." }
1060             ],
1061             "returns": [
1062                 { "name": "object", "$ref": "Runtime.RemoteObject", "description": "JavaScript object wrapper for given node." }
1063             ],
1064             "description": "Resolves JavaScript node object for given node id."
1065         },
1066         {
1067             "name": "getAttributes",
1068             "parameters": [
1069                 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to retrieve attibutes for." }
1070             ],
1071             "returns": [
1072                 { "name": "attributes", "type": "array", "items": { "type": "string" }, "description": "An interleaved array of node attribute names and values." }
1073             ],
1074             "description": "Returns attributes for the specified node."
1075         },
1076         {
1077             "name": "moveTo",
1078             "parameters": [
1079                 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to drop." },
1080                 { "name": "targetNodeId", "$ref": "NodeId", "description": "Id of the element to drop into." },
1081                 { "name": "insertBeforeNodeId", "$ref": "NodeId", "optional": true, "description": "Drop node before given one." }
1082             ],
1083             "returns": [
1084                 { "name": "nodeId", "$ref": "NodeId", "description": "New id of the moved node." }
1085             ],
1086             "description": "Moves node into the new container, places it before the given anchor."
1087         },
1088         {
1089             "name": "undo",
1090             "description": "Undoes the last performed action."
1091         },
1092         {
1093             "name": "redo",
1094             "description": "Re-does the last undone action."
1095         },
1096         {
1097             "name": "markUndoableState",
1098             "description": "Marks last undoable state."
1099         },
1100         {
1101             "name": "focus",
1102             "parameters": [
1103                 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to focus." }
1104             ],
1105             "description": "Focuses the given element."
1106         }
1107     ],
1108     "events": [
1109         {
1110             "name": "documentUpdated",
1111             "description": "Fired when <code>Document</code> has been totally updated. Node ids are no longer valid."
1112         },
1113         {
1114             "name": "setChildNodes",
1115             "parameters": [
1116                 { "name": "parentId", "$ref": "NodeId", "description": "Parent node id to populate with children." },
1117                 { "name": "nodes", "type": "array", "items": { "$ref": "Node"}, "description": "Child nodes array." }
1118             ],
1119             "description": "Fired when backend wants to provide client with the missing DOM structure. This happens upon most of the calls requesting node ids."
1120         },
1121         {
1122             "name": "attributeModified",
1123             "parameters": [
1124                 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node that has changed." },
1125                 { "name": "name", "type": "string", "description": "Attribute name." },
1126                 { "name": "value", "type": "string", "description": "Attribute value." }
1127             ],
1128             "description": "Fired when <code>Element</code>'s attribute is modified."
1129         },
1130         {
1131             "name": "attributeRemoved",
1132             "parameters": [
1133                 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node that has changed." },
1134                 { "name": "name", "type": "string", "description": "A ttribute name." }
1135             ],
1136             "description": "Fired when <code>Element</code>'s attribute is removed."
1137         },
1138         {
1139             "name": "inlineStyleInvalidated",
1140             "parameters": [
1141                 { "name": "nodeIds", "type": "array", "items": { "$ref": "NodeId" }, "description": "Ids of the nodes for which the inline styles have been invalidated." }
1142             ],
1143             "description": "Fired when <code>Element</code>'s inline style is modified via a CSS property modification."
1144         },
1145         {
1146             "name": "characterDataModified",
1147             "parameters": [
1148                 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node that has changed." },
1149                 { "name": "characterData", "type": "string", "description": "New text value." }
1150             ],
1151             "description": "Mirrors <code>DOMCharacterDataModified</code> event."
1152         },
1153         {
1154             "name": "childNodeCountUpdated",
1155             "parameters": [
1156                 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node that has changed." },
1157                 { "name": "childNodeCount", "type": "integer", "description": "New node count." }
1158             ],
1159             "description": "Fired when <code>Container</code>'s child node count has changed."
1160         },
1161         {
1162             "name": "childNodeInserted",
1163             "parameters": [
1164                 { "name": "parentNodeId", "$ref": "NodeId", "description": "Id of the node that has changed." },
1165                 { "name": "previousNodeId", "$ref": "NodeId", "description": "If of the previous siblint." },
1166                 { "name": "node", "$ref": "Node", "description": "Inserted node data." }
1167             ],
1168             "description": "Mirrors <code>DOMNodeInserted</code> event."
1169         },
1170         {
1171             "name": "childNodeRemoved",
1172             "parameters": [
1173                 { "name": "parentNodeId", "$ref": "NodeId", "description": "Parent id." },
1174                 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node that has been removed." }
1175             ],
1176             "description": "Mirrors <code>DOMNodeRemoved</code> event."
1177         },
1178         {
1179             "name": "shadowRootPushed",
1180             "parameters": [
1181                 { "name": "hostId", "$ref": "NodeId", "description": "Host element id." },
1182                 { "name": "root", "$ref": "Node", "description": "Shadow root." }
1183             ],
1184             "description": "Called when shadow root is pushed into the element."
1185         },
1186         {
1187             "name": "shadowRootPopped",
1188             "parameters": [
1189                 { "name": "hostId", "$ref": "NodeId", "description": "Host element id." },
1190                 { "name": "rootId", "$ref": "NodeId", "description": "Shadow root id." }
1191             ],
1192             "description": "Called when shadow root is popped from the element."
1193         },
1194         {
1195             "name": "pseudoElementAdded",
1196             "parameters": [
1197                 { "name": "parentId", "$ref": "NodeId", "description": "Pseudo element's parent element id." },
1198                 { "name": "pseudoElement", "$ref": "Node", "description": "The added pseudo element." }
1199             ],
1200             "description": "Called when a pseudo element is added to an element."
1201         },
1202         {
1203             "name": "pseudoElementRemoved",
1204             "parameters": [
1205                 { "name": "parentId", "$ref": "NodeId", "description": "Pseudo element's parent element id." },
1206                 { "name": "pseudoElementId", "$ref": "NodeId", "description": "The removed pseudo element id." }
1207             ],
1208             "description": "Called when a pseudo element is removed from an element."
1209         }
1210     ]
1211 }
1212 ,
1213 {
1214     "domain": "DOMStorage",
1215     "description": "Query and modify DOM storage.",
1216     "availability": ["web"],
1217     "types": [
1218         {
1219             "id": "StorageId",
1220             "type": "object",
1221             "description": "DOM Storage identifier.",
1222             "properties": [
1223                 { "name": "securityOrigin", "type": "string", "description": "Security origin for the storage." },
1224                 { "name": "isLocalStorage", "type": "boolean", "description": "Whether the storage is local storage (not session storage)." }
1225             ]
1226         },
1227         {
1228             "id": "Item",
1229             "type": "array",
1230             "description": "DOM Storage item.",
1231             "items": { "type": "string" }
1232         }
1233     ],
1234     "commands": [
1235         {
1236             "name": "enable",
1237             "description": "Enables storage tracking, storage events will now be delivered to the client."
1238         },
1239         {
1240             "name": "disable",
1241             "description": "Disables storage tracking, prevents storage events from being sent to the client."
1242         },
1243         {
1244             "name": "getDOMStorageItems",
1245             "parameters": [
1246                 { "name": "storageId", "$ref": "StorageId" }
1247             ],
1248             "returns": [
1249                 { "name": "entries", "type": "array", "items": { "$ref": "Item" } }
1250             ]
1251         },
1252         {
1253             "name": "setDOMStorageItem",
1254             "parameters": [
1255                 { "name": "storageId", "$ref": "StorageId" },
1256                 { "name": "key", "type": "string" },
1257                 { "name": "value", "type": "string" }
1258             ]
1259         },
1260         {
1261             "name": "removeDOMStorageItem",
1262             "parameters": [
1263                 { "name": "storageId", "$ref": "StorageId" },
1264                 { "name": "key", "type": "string" }
1265             ]
1266         }
1267     ],
1268     "events": [
1269         {
1270             "name": "domStorageItemsCleared",
1271             "parameters": [
1272                 { "name": "storageId", "$ref": "StorageId" }
1273             ]
1274         },
1275         {
1276             "name": "domStorageItemRemoved",
1277             "parameters": [
1278                 { "name": "storageId", "$ref": "StorageId" },
1279                 { "name": "key", "type": "string" }
1280             ]
1281         },
1282         {
1283             "name": "domStorageItemAdded",
1284             "parameters": [
1285                 { "name": "storageId", "$ref": "StorageId" },
1286                 { "name": "key", "type": "string" },
1287                 { "name": "newValue", "type": "string" }
1288             ]
1289         },
1290         {
1291             "name": "domStorageItemUpdated",
1292             "parameters": [
1293                 { "name": "storageId", "$ref": "StorageId" },
1294                 { "name": "key", "type": "string" },
1295                 { "name": "oldValue", "type": "string" },
1296                 { "name": "newValue", "type": "string" }
1297             ]
1298         }
1299     ]
1300 }
1301 ,
1302 {
1303     "domain": "Database",
1304     "availability": ["web"],
1305     "types": [
1306         {
1307             "id": "DatabaseId",
1308             "type": "string",
1309             "description": "Unique identifier of Database object."
1310         },
1311         {
1312             "id": "Database",
1313             "type": "object",
1314             "description": "Database object.",
1315             "properties": [
1316                 { "name": "id", "$ref": "DatabaseId", "description": "Database ID." },
1317                 { "name": "domain", "type": "string", "description": "Database domain." },
1318                 { "name": "name", "type": "string", "description": "Database name." },
1319                 { "name": "version", "type": "string", "description": "Database version." }
1320             ]
1321         },
1322         {
1323             "id": "Error",
1324             "type": "object",
1325             "description": "Database error.",
1326             "properties": [
1327                 { "name": "message", "type": "string", "description": "Error message." },
1328                 { "name": "code", "type": "integer", "description": "Error code." }
1329             ]
1330         }
1331     ],
1332     "commands": [
1333         {
1334             "name": "enable",
1335             "description": "Enables database tracking, database events will now be delivered to the client."
1336         },
1337         {
1338             "name": "disable",
1339             "description": "Disables database tracking, prevents database events from being sent to the client."
1340         },
1341         {
1342             "name": "getDatabaseTableNames",
1343             "parameters": [
1344                 { "name": "databaseId", "$ref": "DatabaseId" }
1345             ],
1346             "returns": [
1347                 { "name": "tableNames", "type": "array", "items": { "type": "string" } }
1348             ]
1349         },
1350         {
1351             "name": "executeSQL",
1352             "async": true,
1353             "parameters": [
1354                 { "name": "databaseId", "$ref": "DatabaseId" },
1355                 { "name": "query", "type": "string" }
1356             ],
1357             "returns": [
1358                 { "name": "columnNames", "type": "array", "optional": true, "items": { "type": "string" } },
1359                 { "name": "values", "type": "array", "optional": true, "items": { "type": "any" }},
1360                 { "name": "sqlError", "$ref": "Error", "optional": true }
1361             ]
1362         }
1363     ],
1364     "events": [
1365         {
1366             "name": "addDatabase",
1367             "parameters": [
1368                 { "name": "database", "$ref": "Database" }
1369             ]
1370         }
1371     ]
1372 }
1373 ,
1374 {
1375     "domain": "Debugger",
1376     "description": "Debugger domain exposes JavaScript debugging capabilities. It allows setting and removing breakpoints, stepping through execution, exploring stack traces, etc.",
1377     "types": [
1378         {
1379             "id": "BreakpointId",
1380             "type": "string",
1381             "description": "Breakpoint identifier."
1382         },
1383         {
1384             "id": "BreakpointActionIdentifier",
1385             "type": "integer",
1386             "description": "Breakpoint action identifier."
1387         },
1388         {
1389             "id": "ScriptId",
1390             "type": "string",
1391             "description": "Unique script identifier."
1392         },
1393         {
1394             "id": "CallFrameId",
1395             "type": "string",
1396             "description": "Call frame identifier."
1397         },
1398         {
1399             "id": "Location",
1400             "type": "object",
1401             "properties": [
1402                 { "name": "scriptId", "$ref": "ScriptId", "description": "Script identifier as reported in the <code>Debugger.scriptParsed</code>." },
1403                 { "name": "lineNumber", "type": "integer", "description": "Line number in the script." },
1404                 { "name": "columnNumber", "type": "integer", "optional": true, "description": "Column number in the script." }
1405             ],
1406             "description": "Location in the source code."
1407         },
1408         {
1409             "id": "BreakpointAction",
1410             "type": "object",
1411             "properties": [
1412                 { "name": "type", "type": "string", "enum": ["log", "evaluate", "sound", "probe"], "description": "Different kinds of breakpoint actions." },
1413                 { "name": "data", "type": "string", "optional": true, "description": "Data associated with this breakpoint type (e.g. for type \"eval\" this is the JavaScript string to evalulate)." },
1414                 { "name": "id", "$ref": "BreakpointActionIdentifier", "optional": true, "description": "A frontend-assigned identifier for this breakpoint action." }
1415             ],
1416             "description": "Action to perform when a breakpoint is triggered."
1417         },
1418         {
1419             "id": "BreakpointOptions",
1420             "type": "object",
1421             "properties": [
1422                 { "name": "condition", "type": "string", "optional": true, "description": "Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true." },
1423                 { "name": "actions", "type": "array", "optional": true, "items": { "$ref": "BreakpointAction" }, "description": "Actions to perform automatically when the breakpoint is triggered." },
1424                 { "name": "autoContinue", "type": "boolean", "optional": true, "description": "Automatically continue after hitting this breakpoint and running actions." },
1425                 { "name": "ignoreCount", "type": "integer", "optional": true, "description": "Number of times to ignore this breakpoint, before stopping on the breakpoint and running actions." }
1426             ],
1427             "description": "Extra options that modify breakpoint behavior."
1428         },
1429         {
1430             "id": "FunctionDetails",
1431             "type": "object",
1432             "properties": [
1433                 { "name": "location", "$ref": "Location", "description": "Location of the function." },
1434                 { "name": "name", "type": "string", "optional": true, "description": "Name of the function. Not present for anonymous functions." },
1435                 { "name": "displayName", "type": "string", "optional": true, "description": "Display name of the function(specified in 'displayName' property on the function object)." },
1436                 { "name": "scopeChain", "type": "array", "optional": true, "items": { "$ref": "Scope" }, "description": "Scope chain for this closure." }
1437             ],
1438             "description": "Information about the function."
1439         },
1440         {
1441             "id": "CallFrame",
1442             "type": "object",
1443             "properties": [
1444                 { "name": "callFrameId", "$ref": "CallFrameId", "description": "Call frame identifier. This identifier is only valid while the virtual machine is paused." },
1445                 { "name": "functionName", "type": "string", "description": "Name of the JavaScript function called on this call frame." },
1446                 { "name": "location", "$ref": "Location", "description": "Location in the source code." },
1447                 { "name": "scopeChain", "type": "array", "items": { "$ref": "Scope" }, "description": "Scope chain for this call frame." },
1448                 { "name": "this", "$ref": "Runtime.RemoteObject", "description": "<code>this</code> object for this call frame." },
1449                 { "name": "isTailDeleted", "type": "boolean", "description": "Is the current frame tail deleted from a tail call." }
1450             ],
1451             "description": "JavaScript call frame. Array of call frames form the call stack."
1452         },
1453         {
1454             "id": "Scope",
1455             "type": "object",
1456             "properties": [
1457                 { "name": "object", "$ref": "Runtime.RemoteObject", "description": "Object representing the scope. For <code>global</code> and <code>with</code> scopes it represents the actual object; for the rest of the scopes, it is artificial transient object enumerating scope variables as its properties." },
1458                 { "name": "type", "type": "string", "enum": ["global", "with", "closure", "catch", "functionName", "globalLexicalEnvironment", "nestedLexical"], "description": "Scope type." },
1459                 { "name": "name", "type": "string", "optional": true, "description": "Name associated with the scope." },
1460                 { "name": "location", "$ref": "Location", "optional": true, "description": "Location if available of the scope definition." }
1461             ],
1462             "description": "Scope description."
1463         },
1464         {
1465             "id": "ProbeSample",
1466             "description": "A sample collected by evaluating a probe breakpoint action.",
1467             "type": "object",
1468             "properties": [
1469                 { "name": "probeId", "$ref": "BreakpointActionIdentifier", "description": "Identifier of the probe breakpoint action that created the sample." },
1470                 { "name": "sampleId", "type": "integer", "description": "Unique identifier for this sample." },
1471                 { "name": "batchId", "type": "integer", "description": "A batch identifier which is the same for all samples taken at the same breakpoint hit." },
1472                 { "name": "timestamp", "type": "number", "description": "Timestamp of when the sample was taken." },
1473                 { "name": "payload", "$ref": "Runtime.RemoteObject", "description": "Contents of the sample." }
1474             ]
1475         },
1476         {
1477             "id": "AssertPauseReason",
1478             "description": "The pause reason auxiliary data when paused because of an assertion.",
1479             "type": "object",
1480             "properties": [
1481                 { "name": "message", "type": "string", "optional": true, "description": "The console.assert message string if provided." }
1482             ]
1483         },
1484         {
1485             "id": "BreakpointPauseReason",
1486             "description": "The pause reason auxiliary data when paused because of hitting a breakpoint.",
1487             "type": "object",
1488             "properties": [
1489                 { "name": "breakpointId", "type": "string", "description": "The identifier of the breakpoint causing the pause." }
1490             ]
1491         },
1492         {
1493             "id": "CSPViolationPauseReason",
1494             "description": "The pause reason auxiliary data when paused because of a Content Security Policy directive.",
1495             "type": "object",
1496             "properties": [
1497                 { "name": "directive", "type": "string", "description": "The CSP directive that blocked script execution." }
1498             ]
1499         }
1500     ],
1501     "commands": [
1502         {
1503             "name": "enable",
1504             "description": "Enables debugger for the given page. Clients should not assume that the debugging has been enabled until the result for this command is received."
1505         },
1506         {
1507             "name": "disable",
1508             "description": "Disables debugger for given page."
1509         },
1510         {
1511             "name": "setBreakpointsActive",
1512             "parameters": [
1513                 { "name": "active", "type": "boolean", "description": "New value for breakpoints active state." }
1514             ],
1515             "description": "Activates / deactivates all breakpoints on the page."
1516         },
1517         {
1518             "name": "setBreakpointByUrl",
1519             "parameters": [
1520                 { "name": "lineNumber", "type": "integer", "description": "Line number to set breakpoint at." },
1521                 { "name": "url", "type": "string", "optional": true, "description": "URL of the resources to set breakpoint on." },
1522                 { "name": "urlRegex", "type": "string", "optional": true, "description": "Regex pattern for the URLs of the resources to set breakpoints on. Either <code>url</code> or <code>urlRegex</code> must be specified." },
1523                 { "name": "columnNumber", "type": "integer", "optional": true, "description": "Offset in the line to set breakpoint at." },
1524                 { "name": "options", "$ref": "BreakpointOptions", "optional": true, "description": "Options to apply to this breakpoint to modify its behavior." }
1525             ],
1526             "returns": [
1527                 { "name": "breakpointId", "$ref": "BreakpointId", "description": "Id of the created breakpoint for further reference." },
1528                 { "name": "locations", "type": "array", "items": { "$ref": "Location"}, "description": "List of the locations this breakpoint resolved into upon addition." }
1529             ],
1530             "description": "Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this command is issued, all existing parsed scripts will have breakpoints resolved and returned in <code>locations</code> property. Further matching script parsing will result in subsequent <code>breakpointResolved</code> events issued. This logical breakpoint will survive page reloads."
1531         },
1532         {
1533             "name": "setBreakpoint",
1534             "parameters": [
1535                 { "name": "location", "$ref": "Location", "description": "Location to set breakpoint in." },
1536                 { "name": "options", "$ref": "BreakpointOptions", "optional": true, "description": "Options to apply to this breakpoint to modify its behavior." }
1537             ],
1538             "returns": [
1539                 { "name": "breakpointId", "$ref": "BreakpointId", "description": "Id of the created breakpoint for further reference." },
1540                 { "name": "actualLocation", "$ref": "Location", "description": "Location this breakpoint resolved into." }
1541             ],
1542             "description": "Sets JavaScript breakpoint at a given location."
1543         },
1544         {
1545             "name": "removeBreakpoint",
1546             "parameters": [
1547                 { "name": "breakpointId", "$ref": "BreakpointId" }
1548             ],
1549             "description": "Removes JavaScript breakpoint."
1550         },
1551         {
1552             "name": "continueToLocation",
1553             "parameters": [
1554                 { "name": "location", "$ref": "Location", "description": "Location to continue to." }
1555             ],
1556             "description": "Continues execution until specific location is reached."
1557         },
1558         {
1559             "name": "stepOver",
1560             "description": "Steps over the statement."
1561         },
1562         {
1563             "name": "stepInto",
1564             "description": "Steps into the function call."
1565         },
1566         {
1567             "name": "stepOut",
1568             "description": "Steps out of the function call."
1569         },
1570         {
1571             "name": "pause",
1572             "description": "Stops on the next JavaScript statement."
1573         },
1574         {
1575             "name": "resume",
1576             "description": "Resumes JavaScript execution."
1577         },
1578         {
1579             "name": "searchInContent",
1580             "description": "Searches for given string in script content.",
1581             "parameters": [
1582                 { "name": "scriptId", "$ref": "ScriptId", "description": "Id of the script to search in." },
1583                 { "name": "query", "type": "string", "description": "String to search for." },
1584                 { "name": "caseSensitive", "type": "boolean", "optional": true, "description": "If true, search is case sensitive." },
1585                 { "name": "isRegex", "type": "boolean", "optional": true, "description": "If true, treats string parameter as regex." }
1586             ],
1587             "returns": [
1588                 { "name": "result", "type": "array", "items": { "$ref": "GenericTypes.SearchMatch" }, "description": "List of search matches." }
1589             ]
1590         },
1591         {
1592             "name": "getScriptSource",
1593             "parameters": [
1594                 { "name": "scriptId", "$ref": "ScriptId", "description": "Id of the script to get source for." }
1595             ],
1596             "returns": [
1597                 { "name": "scriptSource", "type": "string", "description": "Script source." }
1598             ],
1599             "description": "Returns source for the script with given id."
1600         },
1601         {
1602             "name": "getFunctionDetails",
1603             "parameters": [
1604                 { "name": "functionId", "$ref": "Runtime.RemoteObjectId", "description": "Id of the function to get location for." }
1605             ],
1606             "returns": [
1607                 { "name": "details", "$ref": "FunctionDetails", "description": "Information about the function." }
1608             ],
1609             "description": "Returns detailed information on given function."
1610         },
1611         {
1612             "name": "setPauseOnExceptions",
1613             "parameters": [
1614                 { "name": "state", "type": "string", "enum": ["none", "uncaught", "all"], "description": "Pause on exceptions mode." }
1615             ],
1616             "description": "Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions or no exceptions. Initial pause on exceptions state is <code>none</code>."
1617         },
1618         {
1619             "name": "evaluateOnCallFrame",
1620             "parameters": [
1621                 { "name": "callFrameId", "$ref": "CallFrameId", "description": "Call frame identifier to evaluate on." },
1622                 { "name": "expression", "type": "string", "description": "Expression to evaluate." },
1623                 { "name": "objectGroup", "type": "string", "optional": true, "description": "String object group name to put result into (allows rapid releasing resulting object handles using <code>releaseObjectGroup</code>)." },
1624                 { "name": "includeCommandLineAPI", "type": "boolean", "optional": true, "description": "Specifies whether command line API should be available to the evaluated expression, defaults to false." },
1625                 { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "boolean", "optional": true, "description": "Specifies whether evaluation should stop on exceptions and mute console. Overrides setPauseOnException state." },
1626                 { "name": "returnByValue", "type": "boolean", "optional": true, "description": "Whether the result is expected to be a JSON object that should be sent by value." },
1627                 { "name": "generatePreview", "type": "boolean", "optional": true, "description": "Whether preview should be generated for the result." },
1628                 { "name": "saveResult", "type": "boolean", "optional": true, "description": "Whether the resulting value should be considered for saving in the $n history." }
1629             ],
1630             "returns": [
1631                 { "name": "result", "$ref": "Runtime.RemoteObject", "description": "Object wrapper for the evaluation result." },
1632                 { "name": "wasThrown", "type": "boolean", "optional": true, "description": "True if the result was thrown during the evaluation." },
1633                 { "name": "savedResultIndex", "type": "integer", "optional": true, "description": "If the result was saved, this is the $n index that can be used to access the value." }
1634             ],
1635             "description": "Evaluates expression on a given call frame."
1636         },
1637         {
1638             "name": "setOverlayMessage",
1639             "parameters": [
1640                 { "name": "message", "type": "string", "optional": true, "description": "Overlay message to display when paused in debugger." }
1641             ],
1642             "description": "Sets overlay message."
1643         }
1644     ],
1645     "events": [
1646         {
1647             "name": "globalObjectCleared",
1648             "description": "Called when global has been cleared and debugger client should reset its state. Happens upon navigation or reload."
1649         },
1650         {
1651             "name": "scriptParsed",
1652             "parameters": [
1653                 { "name": "scriptId", "$ref": "ScriptId", "description": "Identifier of the script parsed." },
1654                 { "name": "url", "type": "string", "description": "URL of the script parsed (if any)." },
1655                 { "name": "startLine", "type": "integer", "description": "Line offset of the script within the resource with given URL (for script tags)." },
1656                 { "name": "startColumn", "type": "integer", "description": "Column offset of the script within the resource with given URL." },
1657                 { "name": "endLine", "type": "integer", "description": "Last line of the script." },
1658                 { "name": "endColumn", "type": "integer", "description": "Length of the last line of the script." },
1659                 { "name": "isContentScript", "type": "boolean", "optional": true, "description": "Determines whether this script is a user extension script." },
1660                 { "name": "sourceURL", "type": "string", "optional": true, "description": "sourceURL name of the script (if any)." },
1661                 { "name": "sourceMapURL", "type": "string", "optional": true, "description": "URL of source map associated with script (if any)." }
1662             ],
1663             "description": "Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger."
1664         },
1665         {
1666             "name": "scriptFailedToParse",
1667             "parameters": [
1668                 { "name": "url", "type": "string", "description": "URL of the script that failed to parse." },
1669                 { "name": "scriptSource", "type": "string", "description": "Source text of the script that failed to parse." },
1670                 { "name": "startLine", "type": "integer", "description": "Line offset of the script within the resource." },
1671                 { "name": "errorLine", "type": "integer", "description": "Line with error." },
1672                 { "name": "errorMessage", "type": "string", "description": "Parse error message." }
1673             ],
1674             "description": "Fired when virtual machine fails to parse the script."
1675         },
1676         {
1677             "name": "breakpointResolved",
1678             "parameters": [
1679                 { "name": "breakpointId", "$ref": "BreakpointId", "description": "Breakpoint unique identifier." },
1680                 { "name": "location", "$ref": "Location", "description": "Actual breakpoint location." }
1681             ],
1682             "description": "Fired when breakpoint is resolved to an actual script and location."
1683         },
1684         {
1685             "name": "paused",
1686             "parameters": [
1687                 { "name": "callFrames", "type": "array", "items": { "$ref": "CallFrame" }, "description": "Call stack the virtual machine stopped on." },
1688                 { "name": "reason", "type": "string", "enum": ["XHR", "DOM", "EventListener", "exception", "assert", "CSPViolation", "DebuggerStatement", "Breakpoint", "PauseOnNextStatement", "other"], "description": "Pause reason." },
1689                 { "name": "data", "type": "object", "optional": true, "description": "Object containing break-specific auxiliary properties." }
1690             ],
1691             "description": "Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria."
1692         },
1693         {
1694             "name": "resumed",
1695             "description": "Fired when the virtual machine resumed execution."
1696         },
1697         {
1698             "name": "didSampleProbe",
1699             "description": "Fires when a new probe sample is collected.",
1700             "parameters": [
1701                 { "name": "sample", "$ref": "ProbeSample", "description": "A collected probe sample." }
1702             ]
1703         },
1704         {
1705             "name": "playBreakpointActionSound",
1706             "description": "Fired when a \"sound\" breakpoint action is triggered on a breakpoint.",
1707             "parameters": [
1708                 { "name": "breakpointActionId", "$ref": "BreakpointActionIdentifier", "description": "Breakpoint action identifier." }
1709             ]
1710         }
1711     ]
1712 }
1713 ,
1714 {
1715     "domain": "GenericTypes",
1716     "description": "Exposes generic types to be used by any domain.",
1717     "types": [
1718         {
1719             "id": "SearchMatch",
1720             "type": "object",
1721             "description": "Search match in a resource.",
1722             "properties": [
1723                 { "name": "lineNumber", "type": "number", "description": "Line number in resource content." },
1724                 { "name": "lineContent", "type": "string", "description": "Line with match content." }
1725             ]
1726         }
1727     ]
1728 }
1729 ,
1730 {
1731     "domain": "Heap",
1732     "description": "Heap domain exposes JavaScript heap attributes and capabilities.",
1733     "types": [
1734         {
1735             "id": "GarbageCollection",
1736             "description": "Information about a garbage collection.",
1737             "type": "object",
1738             "properties": [
1739                 { "name": "type", "type": "string", "enum": ["full", "partial"], "description": "The type of garbage collection." },
1740                 { "name": "startTime", "type": "number" },
1741                 { "name": "endTime", "type": "number" }
1742             ]
1743         },
1744         {
1745             "id": "HeapSnapshotData",
1746             "description": "JavaScriptCore HeapSnapshot JSON data.",
1747             "type": "string"
1748         }
1749     ],
1750     "commands": [
1751         {
1752             "name": "enable",
1753             "description": "Enables Heap domain events."
1754         },
1755         {
1756             "name": "disable",
1757             "description": "Disables Heap domain events."
1758         },
1759         {
1760             "name": "gc",
1761             "description": "Trigger a full garbage collection."
1762         },
1763         {
1764             "name": "snapshot",
1765             "description": "Take a heap snapshot.",
1766             "returns": [
1767                 { "name": "timestamp", "type": "number" },
1768                 { "name": "snapshotData", "$ref": "HeapSnapshotData" }
1769             ]
1770         },
1771         {
1772             "name": "startTracking",
1773             "description": "Start tracking heap changes. This will produce a `trackingStart` event."
1774         },
1775         {
1776             "name": "stopTracking",
1777             "description": "Stop tracking heap changes. This will produce a `trackingComplete` event."
1778         },
1779         {
1780             "name": "getPreview",
1781             "description": "Returns a preview (string, Debugger.FunctionDetails, or Runtime.ObjectPreview) for a Heap.HeapObjectId.",
1782             "parameters": [
1783                 { "name": "heapObjectId", "type": "integer", "description": "Identifier of the heap object within the snapshot." }
1784             ],
1785             "returns": [
1786                 { "name": "string", "type": "string", "optional": true, "description": "String value." },
1787                 { "name": "functionDetails", "$ref": "Debugger.FunctionDetails", "optional": true, "description": "Function details." },
1788                 { "name": "preview", "$ref": "Runtime.ObjectPreview", "optional": true, "description": "Object preview." }
1789             ]
1790         },
1791         {
1792             "name": "getRemoteObject",
1793             "description": "Returns the strongly referenced Runtime.RemoteObject for a Heap.HeapObjectId.",
1794             "parameters": [
1795                 { "name": "heapObjectId", "type": "integer", "description": "Identifier of the heap object within the snapshot." },
1796                 { "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name that can be used to release multiple objects." }
1797             ],
1798             "returns": [
1799                 { "name": "result", "$ref": "Runtime.RemoteObject", "description": "Resulting object." }
1800             ]
1801         }
1802     ],
1803     "events": [
1804         {
1805             "name": "garbageCollected",
1806             "description": "Information about the garbage collection.",
1807             "parameters": [
1808                 { "name": "collection", "$ref": "GarbageCollection" }
1809             ]
1810         },
1811         {
1812             "name": "trackingStart",
1813             "description": "Tracking started.",
1814             "parameters": [
1815                 { "name": "timestamp", "type": "number" },
1816                 { "name": "snapshotData", "$ref": "HeapSnapshotData", "description": "Snapshot at the start of tracking." }
1817             ]
1818         },
1819         {
1820             "name": "trackingComplete",
1821             "description": "Tracking stopped.",
1822             "parameters": [
1823                 { "name": "timestamp", "type": "number" },
1824                 { "name": "snapshotData", "$ref": "HeapSnapshotData", "description": "Snapshot at the end of tracking." }
1825             ]
1826         }
1827     ]
1828 }
1829 ,
1830 {
1831     "domain": "IndexedDB",
1832     "featureGuard": "ENABLE(INDEXED_DATABASE)",
1833     "availability": ["web"],
1834     "types": [
1835         {
1836             "id": "DatabaseWithObjectStores",
1837             "type": "object",
1838             "description": "Database with an array of object stores.",
1839             "properties": [
1840                 { "name": "name", "type": "string", "description": "Database name." },
1841                 { "name": "version", "type": "number", "description": "Database version." },
1842                 { "name": "objectStores", "type": "array", "items": { "$ref": "ObjectStore" }, "description": "Object stores in this database." }
1843             ]
1844         },
1845         {
1846             "id": "ObjectStore",
1847             "type": "object",
1848             "description": "Object store.",
1849             "properties": [
1850                 { "name": "name", "type": "string", "description": "Object store name." },
1851                 { "name": "keyPath", "$ref": "KeyPath", "description": "Object store key path." },
1852                 { "name": "autoIncrement", "type": "boolean", "description": "If true, object store has auto increment flag set." },
1853                 { "name": "indexes", "type": "array", "items": { "$ref": "ObjectStoreIndex" }, "description": "Indexes in this object store." }
1854             ]
1855         },
1856         {
1857             "id": "ObjectStoreIndex",
1858             "type": "object",
1859             "description": "Object store index.",
1860             "properties": [
1861                 { "name": "name", "type": "string", "description": "Index name." },
1862                 { "name": "keyPath", "$ref": "KeyPath", "description": "Index key path." },
1863                 { "name": "unique", "type": "boolean", "description": "If true, index is unique." },
1864                 { "name": "multiEntry", "type": "boolean", "description": "If true, index allows multiple entries for a key." }
1865             ]
1866         },
1867         {
1868             "id": "Key",
1869             "type": "object",
1870             "description": "Key.",
1871             "properties": [
1872                 { "name": "type", "type": "string", "enum": ["number", "string", "date", "array"], "description": "Key type." },
1873                 { "name": "number", "type": "number", "optional": true, "description": "Number value." },
1874                 { "name": "string", "type": "string", "optional": true, "description": "String value." },
1875                 { "name": "date", "type": "number", "optional": true, "description": "Date value." },
1876                 { "name": "array", "type": "array", "optional": true, "items": { "$ref": "Key" }, "description": "Array value." }
1877             ]
1878         },
1879         {
1880             "id": "KeyRange",
1881             "type": "object",
1882             "description": "Key range.",
1883             "properties": [
1884                 { "name": "lower", "$ref": "Key", "optional": true, "description": "Lower bound." },
1885                 { "name": "upper", "$ref": "Key", "optional": true, "description": "Upper bound." },
1886                 { "name": "lowerOpen", "type": "boolean", "description": "If true lower bound is open." },
1887                 { "name": "upperOpen", "type": "boolean", "description": "If true upper bound is open." }
1888             ]
1889         },
1890         {
1891             "id": "DataEntry",
1892             "type": "object",
1893             "description": "Data entry.",
1894             "properties": [
1895                 { "name": "key", "$ref": "Runtime.RemoteObject", "description": "Key." },
1896                 { "name": "primaryKey", "$ref": "Runtime.RemoteObject", "description": "Primary key." },
1897                 { "name": "value", "$ref": "Runtime.RemoteObject", "description": "Value." }
1898             ]
1899         },
1900         {
1901             "id": "KeyPath",
1902             "type": "object",
1903             "description": "Key path.",
1904             "properties": [
1905                 { "name": "type", "type": "string", "enum": ["null", "string", "array"], "description": "Key path type." },
1906                 { "name": "string", "type": "string", "optional": true, "description": "String value." },
1907                 { "name": "array", "type": "array", "optional": true, "items": { "type": "string" }, "description": "Array value." }
1908             ]
1909         }
1910     ],
1911     "commands": [
1912         {
1913             "name": "enable",
1914             "description": "Enables events from backend."
1915         },
1916         {
1917             "name": "disable",
1918             "description": "Disables events from backend."
1919         },
1920         {
1921             "name": "requestDatabaseNames",
1922             "async": true,
1923             "parameters": [
1924                 { "name": "securityOrigin", "type": "string", "description": "Security origin." }
1925             ],
1926             "returns": [
1927                 { "name": "databaseNames", "type": "array", "items": { "type": "string" }, "description": "Database names for origin." }
1928             ],
1929             "description": "Requests database names for given security origin."
1930         },
1931         {
1932             "name": "requestDatabase",
1933             "async": true,
1934             "parameters": [
1935                 { "name": "securityOrigin", "type": "string", "description": "Security origin." },
1936                 { "name": "databaseName", "type": "string", "description": "Database name." }
1937             ],
1938             "returns": [
1939                 { "name": "databaseWithObjectStores", "$ref": "DatabaseWithObjectStores", "description": "Database with an array of object stores." }
1940             ],
1941             "description": "Requests database with given name in given frame."
1942         },
1943         {
1944             "name": "requestData",
1945             "async": true,
1946             "parameters": [
1947                 { "name": "securityOrigin", "type": "string", "description": "Security origin." },
1948                 { "name": "databaseName", "type": "string", "description": "Database name." },
1949                 { "name": "objectStoreName", "type": "string", "description": "Object store name." },
1950                 { "name": "indexName", "type": "string", "description": "Index name, empty string for object store data requests." },
1951                 { "name": "skipCount", "type": "integer", "description": "Number of records to skip." },
1952                 { "name": "pageSize", "type": "integer", "description": "Number of records to fetch." },
1953                 { "name": "keyRange", "$ref": "KeyRange", "optional": true, "description": "Key range." }
1954             ],
1955             "returns": [
1956                 { "name": "objectStoreDataEntries", "type": "array", "items": { "$ref": "DataEntry" }, "description": "Array of object store data entries." },
1957                 { "name": "hasMore", "type": "boolean", "description": "If true, there are more entries to fetch in the given range." }
1958             ],
1959             "description": "Requests data from object store or index."
1960         },
1961         {
1962             "name": "clearObjectStore",
1963             "async": true,
1964             "parameters": [
1965                 { "name": "securityOrigin", "type": "string", "description": "Security origin." },
1966                 { "name": "databaseName", "type": "string", "description": "Database name." },
1967                 { "name": "objectStoreName", "type": "string", "description": "Object store name." }
1968             ],
1969             "returns": [
1970             ],
1971             "description": "Clears all entries from an object store."
1972         }
1973     ]
1974 }
1975 ,
1976 {
1977     "domain": "Inspector",
1978     "availability": ["javascript", "web"],
1979     "types": [],
1980     "commands": [
1981         {
1982             "name": "enable",
1983             "description": "Enables inspector domain notifications."
1984         },
1985         {
1986             "name": "disable",
1987             "description": "Disables inspector domain notifications."
1988         },
1989         {
1990             "name": "initialized",
1991             "description": "Sent by the frontend after all initialization messages have been sent."
1992         }
1993     ],
1994     "events": [
1995         {
1996             "name": "evaluateForTestInFrontend",
1997             "parameters": [
1998                 { "name": "script", "type": "string" }
1999             ]
2000         },
2001         {
2002             "name": "inspect",
2003             "parameters": [
2004                 { "name": "object", "$ref": "Runtime.RemoteObject" },
2005                 { "name": "hints", "type": "object" }
2006             ]
2007         },
2008         {
2009             "name": "activateExtraDomains",
2010             "description": "Fired when the backend has alternate domains that need to be activated.",
2011             "parameters": [
2012                 { "name": "domains", "type": "array", "items": { "type": "string" }, "description": "Domain names that need activation" }
2013             ]
2014         }
2015     ]
2016 }
2017 ,
2018 {
2019     "domain": "LayerTree",
2020     "availability": ["web"],
2021     "types": [
2022         {
2023             "id": "LayerId",
2024             "type": "string",
2025             "description": "Unique RenderLayer identifier."
2026         },
2027         {
2028             "id": "PseudoElementId",
2029             "type": "string",
2030             "description": "Unique PseudoElement identifier."
2031         },
2032         {
2033             "id": "IntRect",
2034             "type": "object",
2035             "description": "A rectangle.",
2036             "properties": [
2037                 { "name": "x", "type": "integer", "description": "The x position." },
2038                 { "name": "y", "type": "integer", "description": "The y position." },
2039                 { "name": "width", "type": "integer", "description": "The width metric." },
2040                 { "name": "height", "type": "integer", "description": "The height metric." }
2041             ]
2042         },
2043         {
2044             "id": "Layer",
2045             "type": "object",
2046             "description": "Information about a compositing layer.",
2047             "properties": [
2048                 { "name": "layerId", "$ref": "LayerId", "description": "The unique id for this layer." },
2049                 { "name": "nodeId", "$ref": "DOM.NodeId", "description": "The id for the node associated with this layer." },
2050                 { "name": "bounds", "$ref": "IntRect", "description": "Bounds of the layer in absolute page coordinates." },
2051                 { "name": "paintCount", "type": "integer", "description": "Indicates how many time this layer has painted." },
2052                 { "name": "memory", "type": "integer", "description": "Estimated memory used by this layer." },
2053                 { "name": "compositedBounds", "$ref": "IntRect", "description": "The bounds of the composited layer." },
2054                 { "name": "isInShadowTree", "type": "boolean", "optional": true, "description": "Indicates whether this layer is associated with an element hosted in a shadow tree." },
2055                 { "name": "isReflection", "type": "boolean", "optional": true, "description": "Indicates whether this layer was used to provide a reflection for the element." },
2056                 { "name": "isGeneratedContent", "type": "boolean", "optional": true, "description": "Indicates whether the layer is attached to a pseudo element that is CSS generated content." },
2057                 { "name": "isAnonymous", "type": "boolean", "optional": true, "description": "Indicates whether the layer was created for a CSS anonymous block or box." },
2058                 { "name": "pseudoElementId", "$ref": "PseudoElementId", "optional": true, "description": "The id for the pseudo element associated with this layer." },
2059                 { "name": "pseudoElement", "type": "string", "optional": true, "description": "The name of the CSS pseudo-element that prompted the layer to be generated." }
2060             ]
2061         },
2062         {
2063             "id": "CompositingReasons",
2064             "type": "object",
2065             "description": "An object containing the reasons why the layer was composited as properties.",
2066             "properties": [
2067                 { "name": "transform3D", "type": "boolean", "optional": true, "description": "Composition due to association with an element with a CSS 3D transform." },
2068                 { "name": "video", "type": "boolean", "optional": true, "description": "Composition due to association with a <video> element." },
2069                 { "name": "canvas", "type": "boolean", "optional": true, "description": "Composition due to the element being a <canvas> element." },
2070                 { "name": "plugin", "type": "boolean", "optional": true, "description": "Composition due to association with a plugin." },
2071                 { "name": "iFrame", "type": "boolean", "optional": true, "description": "Composition due to association with an <iframe> element." },
2072                 { "name": "backfaceVisibilityHidden", "type": "boolean", "optional": true, "description": "Composition due to association with an element with a \"backface-visibility: hidden\" style." },
2073                 { "name": "clipsCompositingDescendants", "type": "boolean", "optional": true, "description": "Composition due to association with an element clipping compositing descendants." },
2074                 { "name": "animation", "type": "boolean", "optional": true, "description": "Composition due to association with an animated element." },
2075                 { "name": "filters", "type": "boolean", "optional": true, "description": "Composition due to association with an element with CSS filters applied." },
2076                 { "name": "positionFixed", "type": "boolean", "optional": true, "description": "Composition due to association with an element with a \"position: fixed\" style." },
2077                 { "name": "positionSticky", "type": "boolean", "optional": true, "description": "Composition due to association with an element with a \"position: sticky\" style." },
2078                 { "name": "overflowScrollingTouch", "type": "boolean", "optional": true, "description": "Composition due to association with an element with a \"overflow-scrolling: touch\" style." },
2079                 { "name": "stacking", "type": "boolean", "optional": true, "description": "Composition due to association with an element establishing a stacking context." },
2080                 { "name": "overlap", "type": "boolean", "optional": true, "description": "Composition due to association with an element overlapping other composited elements." },
2081                 { "name": "negativeZIndexChildren", "type": "boolean", "optional": true, "description": "Composition due to association with an element with descendants that have a negative z-index." },
2082                 { "name": "transformWithCompositedDescendants", "type": "boolean", "optional": true, "description": "Composition due to association with an element with composited descendants." },
2083                 { "name": "opacityWithCompositedDescendants", "type": "boolean", "optional": true, "description": "Composition due to association with an element with opacity applied and composited descendants." },
2084                 { "name": "maskWithCompositedDescendants", "type": "boolean", "optional": true, "description": "Composition due to association with a masked element and composited descendants." },
2085                 { "name": "reflectionWithCompositedDescendants", "type": "boolean", "optional": true, "description": "Composition due to association with an element with a reflection and composited descendants." },
2086                 { "name": "filterWithCompositedDescendants", "type": "boolean", "optional": true, "description": "Composition due to association with an element with CSS filters applied and composited descendants." },
2087                 { "name": "blendingWithCompositedDescendants", "type": "boolean", "optional": true, "description": "Composition due to association with an element with CSS blending applied and composited descendants." },
2088                 { "name": "isolatesCompositedBlendingDescendants", "type": "boolean", "optional": true, "description": "Composition due to association with an element isolating compositing descendants having CSS blending applied." },
2089                 { "name": "perspective", "type": "boolean", "optional": true, "description": "Composition due to association with an element with perspective applied." },
2090                 { "name": "preserve3D", "type": "boolean", "optional": true, "description": "Composition due to association with an element with a \"transform-style: preserve-3d\" style." },
2091                 { "name": "willChange", "type": "boolean", "optional": true, "description": "Composition due to association with an element with a \"will-change\" style." },
2092                 { "name": "root", "type": "boolean", "optional": true, "description": "Composition due to association with the root element." },
2093                 { "name": "blending", "type": "boolean", "optional": true, "description": "Composition due to association with an element with a \"blend-mode\" style." }
2094             ]
2095         }
2096     ],
2097     "commands": [
2098         {
2099             "name": "enable",
2100             "description": "Enables compositing tree inspection."
2101         },
2102         {
2103             "name": "disable",
2104             "description": "Disables compositing tree inspection."
2105         },
2106         {
2107             "name": "layersForNode",
2108             "parameters": [
2109                 { "name": "nodeId", "$ref": "DOM.NodeId", "description": "Root of the subtree for which we want to gather layers." }                ],
2110             "description": "Returns the layer tree structure of the current page.",
2111             "returns": [
2112                 { "name": "layers", "type": "array", "items": { "$ref": "Layer" }, "description": "Child layers." }
2113             ]
2114         },
2115         {
2116             "name": "reasonsForCompositingLayer",
2117             "parameters": [
2118                 { "name": "layerId", "$ref": "LayerId", "description": "The id of the layer for which we want to get the reasons it was composited." }
2119             ],
2120             "description": "Provides the reasons why the given layer was composited.",
2121             "returns": [
2122                 { "name": "compositingReasons", "$ref": "CompositingReasons", "description": "An object containing the reasons why the layer was composited as properties." }
2123             ]
2124         }
2125     ],
2126     "events": [
2127         {
2128             "name": "layerTreeDidChange"
2129         }
2130     ]
2131 }
2132 ,
2133 {
2134     "domain": "Memory",
2135     "description": "Memory domain exposes page memory tracking.",
2136     "featureGuard": "ENABLE(RESOURCE_USAGE)",
2137     "availability": ["web"],
2138     "types": [
2139         {
2140             "id": "Event",
2141             "type": "object",
2142             "properties": [
2143                 { "name": "timestamp", "type": "number" },
2144                 { "name": "categories", "type": "array", "items": { "$ref": "CategoryData" }, "description": "Breakdown of memory in categories." }
2145             ]
2146         },
2147         {
2148             "id": "CategoryData",
2149             "type": "object",
2150             "properties": [
2151                 { "name": "type", "type": "string", "enum": ["javascript", "jit", "images", "layers", "page", "other"], "description": "Category type." },
2152                 { "name": "size", "type": "number", "description": "Category size in bytes." }
2153             ]
2154         }
2155     ],
2156     "commands": [
2157         {
2158             "name": "enable",
2159             "description": "Enables Memory domain events."
2160         },
2161         {
2162             "name": "disable",
2163             "description": "Disables Memory domain events."
2164         },
2165         {
2166             "name": "startTracking",
2167             "description": "Start tracking memory. This will produce a `trackingStart` event."
2168         },
2169         {
2170             "name": "stopTracking",
2171             "description": "Stop tracking memory. This will produce a `trackingComplete` event."
2172         }
2173     ],
2174     "events": [
2175         {
2176             "name": "memoryPressure",
2177             "description": "Memory pressure was encountered.",
2178             "parameters": [
2179                 { "name": "timestamp", "type": "number" },
2180                 { "name": "severity", "type": "string", "enum": ["critical", "non-critical"], "description": "The severity of the memory pressure event." }
2181             ]
2182         },
2183         {
2184             "name": "trackingStart",
2185             "description": "Tracking started.",
2186             "parameters": [
2187                 { "name": "timestamp", "type": "number" }
2188             ]
2189         },
2190         {
2191             "name": "trackingUpdate",
2192             "description": "Periodic tracking updates with event data.",
2193             "parameters": [
2194                 { "name": "event", "$ref": "Event" }
2195             ]
2196         },
2197         {
2198             "name": "trackingComplete",
2199             "description": "Tracking stopped."
2200         }
2201     ]
2202 }
2203 ,
2204 {
2205     "domain": "Network",
2206     "description": "Network domain allows tracking network activities of the page. It exposes information about http, file, data and other requests and responses, their headers, bodies, timing, etc.",
2207     "availability": ["web"],
2208     "types": [
2209         {
2210             "id": "LoaderId",
2211             "type": "string",
2212             "description": "Unique loader identifier."
2213         },
2214         {
2215             "id": "FrameId",
2216             "type": "string",
2217             "description": "Unique frame identifier."
2218         },
2219         {
2220             "id": "RequestId",
2221             "type": "string",
2222             "description": "Unique request identifier."
2223         },
2224         {
2225             "id": "Timestamp",
2226             "type": "number",
2227             "description": "Number of seconds since epoch."
2228         },
2229         {
2230             "id": "Headers",
2231             "type": "object",
2232             "description": "Request / response headers as keys / values of JSON object."
2233         },
2234         {
2235             "id": "ResourceTiming",
2236             "type": "object",
2237             "description": "Timing information for the request.",
2238             "properties": [
2239                 { "name": "navigationStart", "type": "number", "description": "Timing's navigationStart is a baseline in seconds, while the other numbers are ticks in milliseconds relatively to this navigationStart." },
2240                 { "name": "domainLookupStart", "type": "number", "description": "Started DNS address resolve." },
2241                 { "name": "domainLookupEnd", "type": "number", "description": "Finished DNS address resolve." },
2242                 { "name": "connectStart", "type": "number", "description": "Started connecting to the remote host." },
2243                 { "name": "connectEnd", "type": "number", "description": "Connected to the remote host." },
2244                 { "name": "secureConnectionStart", "type": "number", "description": "Started SSL handshake." },
2245                 { "name": "requestStart", "type": "number", "description": "Started sending request." },
2246                 { "name": "responseStart", "type": "number", "description": "Started receiving response headers." }
2247             ]
2248         },
2249         {
2250             "id": "Request",
2251             "type": "object",
2252             "description": "HTTP request data.",
2253             "properties": [
2254                 { "name": "url", "type": "string", "description": "Request URL." },
2255                 { "name": "method", "type": "string", "description": "HTTP request method." },
2256                 { "name": "headers", "$ref": "Headers", "description": "HTTP request headers." },
2257                 { "name": "postData", "type": "string", "optional": true, "description": "HTTP POST request data." }
2258             ]
2259         },
2260         {
2261             "id": "Response",
2262             "type": "object",
2263             "description": "HTTP response data.",
2264             "properties": [
2265                 { "name": "url", "type": "string", "description": "Response URL. This URL can be different from CachedResource.url in case of redirect." },
2266                 { "name": "status", "type": "number", "description": "HTTP response status code." },
2267                 { "name": "statusText", "type": "string", "description": "HTTP response status text." },
2268                 { "name": "headers", "$ref": "Headers", "description": "HTTP response headers." },
2269                 { "name": "headersText", "type": "string", "optional": true, "description": "HTTP response headers text." },
2270                 { "name": "mimeType", "type": "string", "description": "Resource mimeType as determined by the browser." },
2271                 { "name": "requestHeaders", "$ref": "Headers", "optional": true, "description": "Refined HTTP request headers that were actually transmitted over the network." },
2272                 { "name": "requestHeadersText", "type": "string", "optional": true, "description": "HTTP request headers text." },
2273                 { "name": "fromDiskCache", "type": "boolean", "optional": true, "description": "Specifies that the request was served from the disk cache." },
2274                 { "name": "timing", "$ref": "ResourceTiming", "optional": true, "description": "Timing information for the given request." }
2275             ]
2276         },
2277         {
2278             "id": "WebSocketRequest",
2279             "type": "object",
2280             "description": "WebSocket request data.",
2281             "properties": [
2282                 { "name": "headers", "$ref": "Headers", "description": "HTTP response headers." }
2283             ]
2284         },
2285         {
2286             "id": "WebSocketResponse",
2287             "type": "object",
2288             "description": "WebSocket response data.",
2289             "properties": [
2290                 { "name": "status", "type": "number", "description": "HTTP response status code." },
2291                 { "name": "statusText", "type": "string", "description": "HTTP response status text." },
2292                 { "name": "headers", "$ref": "Headers", "description": "HTTP response headers." }
2293             ]
2294         },
2295         {
2296             "id": "WebSocketFrame",
2297             "type": "object",
2298             "description": "WebSocket frame data.",
2299             "properties": [
2300                 { "name": "opcode", "type": "number", "description": "WebSocket frame opcode." },
2301                 { "name": "mask", "type": "boolean", "description": "WebSocket frame mask." },
2302                 { "name": "payloadData", "type": "string", "description": "WebSocket frame payload data." }
2303             ]
2304         },
2305         {
2306             "id": "CachedResource",
2307             "type": "object",
2308             "description": "Information about the cached resource.",
2309             "properties": [
2310                 { "name": "url", "type": "string", "description": "Resource URL. This is the url of the original network request." },
2311                 { "name": "type", "$ref": "Page.ResourceType", "description": "Type of this resource." },
2312                 { "name": "response", "$ref": "Response", "optional": true, "description": "Cached response data." },
2313                 { "name": "bodySize", "type": "number", "description": "Cached response body size." },
2314                 { "name": "sourceMapURL", "type": "string", "optional": true, "description": "URL of source map associated with this resource (if any)." }
2315             ]
2316         },
2317         {
2318             "id": "Initiator",
2319             "type": "object",
2320             "description": "Information about the request initiator.",
2321             "properties": [
2322                 { "name": "type", "type": "string", "enum": ["parser", "script", "other"], "description": "Type of this initiator." },
2323                 { "name": "stackTrace", "$ref": "Console.StackTrace", "optional": true, "description": "Initiator JavaScript stack trace, set for Script only." },
2324                 { "name": "url", "type": "string", "optional": true, "description": "Initiator URL, set for Parser type only." },
2325                 { "name": "lineNumber", "type": "number", "optional": true, "description": "Initiator line number, set for Parser type only." }
2326             ]
2327         }
2328     ],
2329     "commands": [
2330         {
2331             "name": "enable",
2332             "description": "Enables network tracking, network events will now be delivered to the client."
2333         },
2334         {
2335             "name": "disable",
2336             "description": "Disables network tracking, prevents network events from being sent to the client."
2337         },
2338         {
2339             "name": "setExtraHTTPHeaders",
2340             "description": "Specifies whether to always send extra HTTP headers with the requests from this page.",
2341             "parameters": [
2342                 { "name": "headers", "$ref": "Headers", "description": "Map with extra HTTP headers." }
2343             ]
2344         },
2345         {
2346             "name": "getResponseBody",
2347             "description": "Returns content served for the given request.",
2348             "parameters": [
2349                 { "name": "requestId", "$ref": "RequestId", "description": "Identifier of the network request to get content for." }
2350             ],
2351             "returns": [
2352                 { "name": "body", "type": "string", "description": "Response body." },
2353                 { "name": "base64Encoded", "type": "boolean", "description": "True, if content was sent as base64." }
2354             ]
2355         },
2356         {
2357             "name": "loadResource",
2358             "async": true,
2359             "parameters": [
2360                 { "name": "frameId", "$ref": "FrameId", "description": "Frame to load the resource from." },
2361                 { "name": "url", "type": "string", "description": "URL of the resource to load." }
2362             ],
2363             "returns": [
2364                 { "name": "content", "type": "string", "description": "Resource content." },
2365                 { "name": "mimeType", "type": "string", "description": "Resource mimeType." },
2366                 { "name": "status", "type": "number", "description": "HTTP response status code." }
2367             ],
2368             "description": "Loads a resource in the context of a frame on the inspected page without cross origin checks."
2369         }
2370     ],
2371     "events": [
2372         {
2373             "name": "requestWillBeSent",
2374             "description": "Fired when page is about to send HTTP request.",
2375             "parameters": [
2376                 { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
2377                 { "name": "frameId", "$ref": "FrameId", "description": "Frame identifier." },
2378                 { "name": "loaderId", "$ref": "LoaderId", "description": "Loader identifier." },
2379                 { "name": "documentURL", "type": "string", "description": "URL of the document this request is loaded for." },
2380                 { "name": "request", "$ref": "Request", "description": "Request data." },
2381                 { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." },
2382                 { "name": "initiator", "$ref": "Initiator", "description": "Request initiator." },
2383                 { "name": "redirectResponse", "optional": true, "$ref": "Response", "description": "Redirect response data." },
2384                 { "name": "type", "$ref": "Page.ResourceType", "optional": true, "description": "Resource type." }
2385             ]
2386         },
2387         {
2388             "name": "requestServedFromCache",
2389             "description": "Fired if request ended up loading from cache.",
2390             "parameters": [
2391                 { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." }
2392             ]
2393         },
2394         {
2395             "name": "responseReceived",
2396             "description": "Fired when HTTP response is available.",
2397             "parameters": [
2398                 { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
2399                 { "name": "frameId", "$ref": "FrameId", "description": "Frame identifier." },
2400                 { "name": "loaderId", "$ref": "LoaderId", "description": "Loader identifier." },
2401                 { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." },
2402                 { "name": "type", "$ref": "Page.ResourceType", "description": "Resource type." },
2403                 { "name": "response", "$ref": "Response", "description": "Response data." }
2404             ]
2405         },
2406         {
2407             "name": "dataReceived",
2408             "description": "Fired when data chunk was received over the network.",
2409             "parameters": [
2410                 { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
2411                 { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." },
2412                 { "name": "dataLength", "type": "integer", "description": "Data chunk length." },
2413                 { "name": "encodedDataLength", "type": "integer", "description": "Actual bytes received (might be less than dataLength for compressed encodings)." }
2414             ]
2415         },
2416         {
2417             "name": "loadingFinished",
2418             "description": "Fired when HTTP request has finished loading.",
2419             "parameters": [
2420                 { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
2421                 { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." },
2422                 { "name": "sourceMapURL", "type": "string", "optional": true, "description": "URL of source map associated with this resource (if any)." }
2423             ]
2424         },
2425         {
2426             "name": "loadingFailed",
2427             "description": "Fired when HTTP request has failed to load.",
2428             "parameters": [
2429                 { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
2430                 { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." },
2431                 { "name": "errorText", "type": "string", "description": "User friendly error message." },
2432                 { "name": "canceled", "type": "boolean", "optional": true, "description": "True if loading was canceled." }
2433             ]
2434         },
2435         {
2436             "name": "requestServedFromMemoryCache",
2437             "description": "Fired when HTTP request has been served from memory cache.",
2438             "parameters": [
2439                 { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
2440                 { "name": "frameId", "$ref": "FrameId", "description": "Frame identifier." },
2441                 { "name": "loaderId", "$ref": "LoaderId", "description": "Loader identifier." },
2442                 { "name": "documentURL", "type": "string", "description": "URL of the document this request is loaded for." },
2443                 { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." },
2444                 { "name": "initiator", "$ref": "Initiator", "description": "Request initiator." },
2445                 { "name": "resource", "$ref": "CachedResource", "description": "Cached resource data." }
2446             ]
2447         },
2448         {
2449             "name": "webSocketWillSendHandshakeRequest",
2450             "description": "Fired when WebSocket is about to initiate handshake.",
2451             "parameters": [
2452                 { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
2453                 { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." },
2454                 { "name": "request", "$ref": "WebSocketRequest", "description": "WebSocket request data." }
2455             ]
2456         },
2457         {
2458             "name": "webSocketHandshakeResponseReceived",
2459             "description": "Fired when WebSocket handshake response becomes available.",
2460             "parameters": [
2461                 { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
2462                 { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." },
2463                 { "name": "response", "$ref": "WebSocketResponse", "description": "WebSocket response data." }
2464             ]
2465         },
2466         {
2467             "name": "webSocketCreated",
2468             "description": "Fired upon WebSocket creation.",
2469             "parameters": [
2470                 { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
2471                 { "name": "url", "type": "string", "description": "WebSocket request URL." }
2472             ]
2473         },
2474         {
2475             "name": "webSocketClosed",
2476             "description": "Fired when WebSocket is closed.",
2477             "parameters": [
2478                 { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
2479                 { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." }
2480             ]
2481         },
2482         {
2483             "name": "webSocketFrameReceived",
2484             "description": "Fired when WebSocket frame is received.",
2485             "parameters": [
2486                 { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
2487                 { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." },
2488                 { "name": "response", "$ref": "WebSocketFrame", "description": "WebSocket response data." }
2489             ]
2490         },
2491         {
2492             "name": "webSocketFrameError",
2493             "description": "Fired when WebSocket frame error occurs.",
2494             "parameters": [
2495                 { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
2496                 { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." },
2497                 { "name": "errorMessage", "type": "string", "description": "WebSocket frame error message." }
2498             ]
2499         },
2500         {
2501             "name": "webSocketFrameSent",
2502             "description": "Fired when WebSocket frame is sent.",
2503             "parameters": [
2504                 { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
2505                 { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." },
2506                 { "name": "response", "$ref": "WebSocketFrame", "description": "WebSocket response data." }
2507             ]
2508         }
2509     ]
2510 }
2511 ,
2512 {
2513     "domain": "OverlayTypes",
2514     "description": "Exposes types to be used by the inspector overlay.",
2515     "types": [
2516         {
2517             "id": "Point",
2518             "type": "object",
2519             "properties": [
2520                 { "name": "x", "type": "number" },
2521                 { "name": "y", "type": "number" }
2522             ]
2523         },
2524         {
2525             "id": "Size",
2526             "type": "object",
2527             "properties": [
2528                 { "name": "width", "type": "integer" },
2529                 { "name": "height", "type": "integer" }
2530             ]
2531         },
2532         {
2533             "id": "Quad",
2534             "description": "A quad is a collection of 4 points. When initialized from a rect, the points are in clockwise order from top left.",
2535             "type": "array",
2536             "items": { "$ref": "Point" }
2537         },
2538         {
2539             "id": "Rect",
2540             "description": "A rectangle specified by a reference coordinate and width/height offsets.",
2541             "type": "object",
2542             "properties": [
2543                 { "name": "x", "type": "number" },
2544                 { "name": "y", "type": "number" },
2545                 { "name": "width", "type": "number" },
2546                 { "name": "height", "type": "number" }
2547             ]
2548         },
2549         {